2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
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
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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
='package-unused'
589 PACKAGE_TARNAME
='libphobos'
590 PACKAGE_VERSION
='version-unused'
591 PACKAGE_STRING
='package-unused version-unused'
595 ac_unique_file
="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='am__EXEEXT_FALSE
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
707 phobos_compiler_shared_flag
708 phobos_compiler_pic_flag
710 ENABLE_DARWIN_AT_RPATH_FALSE
711 ENABLE_DARWIN_AT_RPATH_TRUE
736 MAINTAINER_MODE_FALSE
754 INSTALL_STRIP_PROGRAM
819 program_transform_name
830 ac_subst_files
='DRTSTUFF_SPEC'
832 enable_option_checking
835 enable_maintainer_mode
843 enable_darwin_at_rpath
844 with_gcc_major_version_only
848 with_target_system_zlib
850 enable_version_specific_runtime_libs
853 with_libphobos_druntime_only
854 enable_libphobos_checking
856 ac_precious_vars
='build_alias
867 # Initialize some variables set by options.
869 ac_init_version
=false
870 ac_unrecognized_opts
=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
881 program_transform_name
=s
,x
,x
,
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir
='${exec_prefix}/bin'
896 sbindir
='${exec_prefix}/sbin'
897 libexecdir
='${exec_prefix}/libexec'
898 datarootdir
='${prefix}/share'
899 datadir
='${datarootdir}'
900 sysconfdir
='${prefix}/etc'
901 sharedstatedir
='${prefix}/com'
902 localstatedir
='${prefix}/var'
903 includedir
='${prefix}/include'
904 oldincludedir
='/usr/include'
905 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir
='${datarootdir}/info'
911 libdir
='${exec_prefix}/lib'
912 localedir
='${datarootdir}/locale'
913 mandir
='${datarootdir}/man'
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\
$ac_option
927 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
938 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
940 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
943 -build |
--build |
--buil |
--bui |
--bu)
944 ac_prev
=build_alias
;;
945 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
946 build_alias
=$ac_optarg ;;
948 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
949 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
950 ac_prev
=cache_file
;;
951 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
952 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
953 cache_file
=$ac_optarg ;;
956 cache_file
=config.cache
;;
958 -datadir |
--datadir |
--datadi |
--datad)
960 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
961 datadir
=$ac_optarg ;;
963 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
964 |
--dataroo |
--dataro |
--datar)
965 ac_prev
=datarootdir
;;
966 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
967 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
968 datarootdir
=$ac_optarg ;;
970 -disable-* |
--disable-*)
971 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
974 as_fn_error $?
"invalid feature name: $ac_useropt"
975 ac_useropt_orig
=$ac_useropt
976 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep
=', ';;
984 eval enable_
$ac_useropt=no
;;
986 -docdir |
--docdir |
--docdi |
--doc |
--do)
988 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
991 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
993 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
996 -enable-* |
--enable-*)
997 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1000 as_fn_error $?
"invalid feature name: $ac_useropt"
1001 ac_useropt_orig
=$ac_useropt
1002 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_
$ac_useropt"
1007 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep
=', ';;
1010 eval enable_
$ac_useropt=\
$ac_optarg ;;
1012 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1013 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1014 |
--exec |
--exe |
--ex)
1015 ac_prev
=exec_prefix
;;
1016 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1017 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1018 |
--exec=* |
--exe=* |
--ex=*)
1019 exec_prefix
=$ac_optarg ;;
1021 -gas |
--gas |
--ga |
--g)
1022 # Obsolete; use --with-gas.
1025 -help |
--help |
--hel |
--he |
-h)
1026 ac_init_help
=long
;;
1027 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1028 ac_init_help
=recursive
;;
1029 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1030 ac_init_help
=short
;;
1032 -host |
--host |
--hos |
--ho)
1033 ac_prev
=host_alias
;;
1034 -host=* |
--host=* |
--hos=* |
--ho=*)
1035 host_alias
=$ac_optarg ;;
1037 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1039 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1041 htmldir
=$ac_optarg ;;
1043 -includedir |
--includedir |
--includedi |
--included |
--include \
1044 |
--includ |
--inclu |
--incl |
--inc)
1045 ac_prev
=includedir
;;
1046 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1047 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1048 includedir
=$ac_optarg ;;
1050 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1052 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1053 infodir
=$ac_optarg ;;
1055 -libdir |
--libdir |
--libdi |
--libd)
1057 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1058 libdir
=$ac_optarg ;;
1060 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1061 |
--libexe |
--libex |
--libe)
1062 ac_prev
=libexecdir
;;
1063 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1064 |
--libexe=* |
--libex=* |
--libe=*)
1065 libexecdir
=$ac_optarg ;;
1067 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1068 ac_prev
=localedir
;;
1069 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1070 localedir
=$ac_optarg ;;
1072 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1073 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1074 ac_prev
=localstatedir
;;
1075 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1076 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1077 localstatedir
=$ac_optarg ;;
1079 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1081 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1082 mandir
=$ac_optarg ;;
1084 -nfp |
--nfp |
--nf)
1085 # Obsolete; use --without-fp.
1088 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1089 |
--no-cr |
--no-c |
-n)
1092 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1093 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1096 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1097 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1098 |
--oldin |
--oldi |
--old |
--ol |
--o)
1099 ac_prev
=oldincludedir
;;
1100 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1101 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1102 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1103 oldincludedir
=$ac_optarg ;;
1105 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1107 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1108 prefix
=$ac_optarg ;;
1110 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1111 |
--program-pre |
--program-pr |
--program-p)
1112 ac_prev
=program_prefix
;;
1113 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1114 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1115 program_prefix
=$ac_optarg ;;
1117 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1118 |
--program-suf |
--program-su |
--program-s)
1119 ac_prev
=program_suffix
;;
1120 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1121 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1122 program_suffix
=$ac_optarg ;;
1124 -program-transform-name |
--program-transform-name \
1125 |
--program-transform-nam |
--program-transform-na \
1126 |
--program-transform-n |
--program-transform- \
1127 |
--program-transform |
--program-transfor \
1128 |
--program-transfo |
--program-transf \
1129 |
--program-trans |
--program-tran \
1130 |
--progr-tra |
--program-tr |
--program-t)
1131 ac_prev
=program_transform_name
;;
1132 -program-transform-name=* |
--program-transform-name=* \
1133 |
--program-transform-nam=* |
--program-transform-na=* \
1134 |
--program-transform-n=* |
--program-transform-=* \
1135 |
--program-transform=* |
--program-transfor=* \
1136 |
--program-transfo=* |
--program-transf=* \
1137 |
--program-trans=* |
--program-tran=* \
1138 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1139 program_transform_name
=$ac_optarg ;;
1141 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1143 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1144 pdfdir
=$ac_optarg ;;
1146 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1148 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1151 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1152 |
-silent |
--silent |
--silen |
--sile |
--sil)
1155 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1157 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1159 sbindir
=$ac_optarg ;;
1161 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1162 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1163 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1165 ac_prev
=sharedstatedir
;;
1166 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1167 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1168 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1170 sharedstatedir
=$ac_optarg ;;
1172 -site |
--site |
--sit)
1174 -site=* |
--site=* |
--sit=*)
1177 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1179 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1180 srcdir
=$ac_optarg ;;
1182 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1183 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1184 ac_prev
=sysconfdir
;;
1185 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1186 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1187 sysconfdir
=$ac_optarg ;;
1189 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1190 ac_prev
=target_alias
;;
1191 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1192 target_alias
=$ac_optarg ;;
1194 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1197 -version |
--version |
--versio |
--versi |
--vers |
-V)
1198 ac_init_version
=: ;;
1201 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1204 as_fn_error $?
"invalid package name: $ac_useropt"
1205 ac_useropt_orig
=$ac_useropt
1206 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1211 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep
=', ';;
1214 eval with_
$ac_useropt=\
$ac_optarg ;;
1216 -without-* |
--without-*)
1217 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1220 as_fn_error $?
"invalid package name: $ac_useropt"
1221 ac_useropt_orig
=$ac_useropt
1222 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep
=', ';;
1230 eval with_
$ac_useropt=no
;;
1233 # Obsolete; use --with-x.
1236 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1237 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1238 ac_prev
=x_includes
;;
1239 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1240 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1241 x_includes
=$ac_optarg ;;
1243 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1244 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1245 ac_prev
=x_libraries
;;
1246 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1247 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1248 x_libraries
=$ac_optarg ;;
1250 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1255 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1259 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1261 eval $ac_envvar=\
$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275 if test -n "$ac_prev"; then
1276 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $?
"missing argument to $ac_option"
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 # Check all directory arguments for consistency.
1289 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val
=\$
$ac_var
1295 # Remove trailing slashes.
1298 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\
$ac_val;;
1301 # Be sure to have absolute directory names.
1303 [\\/$
]* | ?
:[\\/]* ) continue;;
1304 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1306 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1314 target
=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x
; then
1318 if test "x$build_alias" = x
; then
1319 cross_compiling
=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1326 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1328 test "$silent" = yes && exec 6>/dev
/null
1331 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di
=`ls -di .` &&
1333 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $?
"working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $?
"pwd does not report name of working directory"
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted
=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir
=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1371 ac_srcdir_defaulted
=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1375 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1377 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1389 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 for ac_var
in $ac_precious_vars; do
1392 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1394 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1399 # Report the --help message.
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1405 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1412 Defaults for the options are specified in brackets.
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1436 For better control, use the options below.
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1468 --build=BUILD configure
for building on BUILD
[guessed
]
1469 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1470 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive
) echo "Configuration of package-unused version-unused:";;
1481 --disable-option-checking ignore unrecognized
--enable/--with options
1482 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1483 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1484 --enable-multilib build many library versions
(default
)
1485 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1486 --disable-silent-rules verbose build output
(undo
: "make V=0")
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful
(and
1489 sometimes confusing
) to the casual installer
1490 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1491 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1492 --enable-static[=PKGS
] build static libraries
[default
=yes]
1493 --enable-fast-install[=PKGS
]
1494 optimize
for fast installation
[default
=yes]
1495 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1496 --enable-darwin-at-rpath
1497 install libraries with @rpath
/library-name
, requires
1498 rpaths to be added to executables
1499 --enable-werror turns on
-Werror [default
=no
]
1500 --enable-version-specific-runtime-libs
1501 Specify that runtime libraries should be installed
1502 in a compiler-specific directory
1503 --enable-libphobos Enable libphobos
1504 --enable-libphobos-checking[=LIST
]
1505 enable expensive run-time checks. With LIST
, enable
1506 only specific categories of checks. Categories are
:
1507 yes,no
,all
,none
,release. Flags are
: assert
,valgrind
1511 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1512 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1513 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1515 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1516 --with-gcc-major-version-only
1517 use only GCC major number
in filesystem paths
1518 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1519 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1521 --with-target-system-zlib={yes,no
,auto
}
1522 use installed libz
(default
: no
)
1523 --with-cross-host=HOST configuring with a cross compiler
1524 --with-toolexeclibdir=DIR
1525 install libraries built with a cross compiler within
1527 --with-libphobos-druntime-only={yes,no
,auto
}
1528 build only the druntime library
(default
: auto
)
1530 Some influential environment variables
:
1531 CC C compiler
command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1534 nonstandard directory
<lib dir
>
1535 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1536 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1537 you have headers
in a nonstandard directory
<include dir
>
1539 CCAS assembler compiler
command (defaults to CC
)
1540 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1541 GDC D compiler
command
1542 GDCFLAGS D compiler flags
1544 Use these variables to override the choices made by
`configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to the package provider.
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1610 package-unused configure version-unused
1611 generated by GNU Autoconf 2.69
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1634 *) ac_try_echo
=$ac_try;;
1636 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1640 if test -s conftest.err
; then
1641 grep -v '^ *+' conftest.err
>conftest.er1
1642 cat conftest.er1
>&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.
$ac_objext; then :
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.
$ac_ext >&5
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status
$ac_retval
1660 } # ac_fn_c_try_compile
1662 # ac_fn_c_try_cpp LINENO
1663 # ----------------------
1664 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1668 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } > conftest.i && {
1684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1699 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1702 # the include files in INCLUDES and setting the cache variable VAR
1704 ac_fn_c_check_header_mongrel ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if eval \${$3+:} false; then :
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1717 # Is the header compilable?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1719 $as_echo_n "checking $2 usability... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 ac_header_compiler=yes
1728 ac_header_compiler=no
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1732 $as_echo "$ac_header_compiler" >&6; }
1734 # Is the header present?
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1736 $as_echo_n "checking $2 presence... " >&6; }
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1741 if ac_fn_c_try_cpp "$LINENO"; then :
1742 ac_header_preproc=yes
1744 ac_header_preproc=no
1746 rm -f conftest.err conftest.i conftest.$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1748 $as_echo "$ac_header_preproc" >&6; }
1750 # So? What about this header?
1751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1754 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1760 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1762 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1764 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1766 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1776 eval "$3=\$ac_header_compiler"
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_header_mongrel
1786 # ac_fn_c_try_run LINENO
1787 # ----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1789 # that executables *can* be run.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1796 *) ac_try_echo
=$ac_try;;
1798 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1804 { { case "(($ac_try" in
1805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_try") 2>&5
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; }; }; then :
1816 $as_echo "$as_me: program exited with status $ac_status" >&5
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=$ac_status
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1828 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists and can be compiled using the include files in
1831 # INCLUDES, setting the cache variable VAR accordingly.
1832 ac_fn_c_check_header_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1845 if ac_fn_c_try_compile "$LINENO"; then :
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_header_compile
1859 # ac_fn_d_try_compile LINENO
1860 # --------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_d_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1869 *) ac_try_echo
=$ac_try;;
1871 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1875 if test -s conftest.err
; then
1876 grep -v '^ *+' conftest.err
>conftest.er1
1877 cat conftest.er1
>&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_d_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.
$ac_objext; then :
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.
$ac_ext >&5
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status
$ac_retval
1895 } # ac_fn_d_try_compile
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1903 rm -f conftest.
$ac_objext conftest
$ac_exeext
1904 if { { ac_try
="$ac_link"
1906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_link
1943 # ac_fn_c_check_func LINENO FUNC VAR
1944 # ----------------------------------
1945 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1946 ac_fn_c_check_func ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1958 #define $2 innocuous_$2
1960 /* System header to define __stub macros and hopefully few prototypes,
1961 which can conflict with char $2 (); below.
1962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1963 <limits.h> exists even on freestanding compilers. */
1966 # include <limits.h>
1968 # include <assert.h>
1973 /* Override any GCC internal prototype to avoid an error.
1974 Use char because int might match the return type of a GCC
1975 builtin and then its argument prototype would still apply. */
1980 /* The GNU C library defines this for functions which it implements
1981 to always fail with ENOSYS. Some functions are actually named
1982 something starting with __ and the normal name is an alias. */
1983 #if defined __stub_$2 || defined __stub___$2
1995 if ac_fn_c_try_link "$LINENO"; then :
2000 rm -f core conftest.err conftest.$ac_objext \
2001 conftest$ac_exeext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 } # ac_fn_c_check_func
2010 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2011 # ----------------------------------------------------
2012 # Tries to find if the field MEMBER exists in type AGGR, after including
2013 # INCLUDES, setting cache variable VAR accordingly.
2014 ac_fn_c_check_member ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2018 $as_echo_n "checking for $2.$3... " >&6; }
2019 if eval \${$4+:} false; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2035 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2045 if (sizeof ac_aggr.$3)
2051 if ac_fn_c_try_compile "$LINENO"; then :
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 } # ac_fn_c_check_member
2067 # ac_fn_d_try_link LINENO
2068 # -----------------------
2069 # Try to link conftest.$ac_ext, and return whether this succeeded.
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 rm -f conftest.$ac_objext conftest$ac_exeext
2074 if { { ac_try="$ac_link"
2076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2077 *) ac_try_echo
=$ac_try;;
2079 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_link") 2>conftest.err
2083 if test -s conftest.err
; then
2084 grep -v '^ *+' conftest.err
>conftest.er1
2085 cat conftest.er1
>&5
2086 mv -f conftest.er1 conftest.err
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; } && {
2090 test -z "$ac_d_werror_flag" ||
2091 test ! -s conftest.err
2092 } && test -s conftest
$ac_exeext && {
2093 test "$cross_compiling" = yes ||
2094 test -x conftest
$ac_exeext
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.
$ac_ext >&5
2103 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2104 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2105 # interfere with the next link command; also delete a directory that is
2106 # left behind by Apple's compiler. We do this before executing the actions.
2107 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 as_fn_set_status
$ac_retval
2111 } # ac_fn_d_try_link
2112 cat >config.log
<<_ACEOF
2113 This file contains any messages produced by compilers while
2114 running configure, to aid debugging if configure makes a mistake.
2116 It was created by package-unused $as_me version-unused, which was
2117 generated by GNU Autoconf 2.69. Invocation command line was
2129 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2130 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2131 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2132 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2133 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2135 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2136 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2138 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2139 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2140 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2141 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2142 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2143 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2144 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir
=.
2153 $as_echo "PATH: $as_dir"
2169 # Keep a trace of the command line.
2170 # Strip out --no-create and --no-recursion so they do not pile up.
2171 # Strip out --silent because we don't want to record it for future runs.
2172 # Also quote any args containing shell meta-characters.
2173 # Make two passes to allow for proper duplicate-argument suppression.
2177 ac_must_keep_next
=false
2183 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2184 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2185 |
-silent |
--silent |
--silen |
--sile |
--sil)
2188 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2193 as_fn_append ac_configure_args1
" '$ac_arg'"
2194 if test $ac_must_keep_next = true
; then
2195 ac_must_keep_next
=false
# Got value, back to normal.
2198 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2199 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2200 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2201 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2202 case "$ac_configure_args0 " in
2203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206 -* ) ac_must_keep_next
=true
;;
2209 as_fn_append ac_configure_args
" '$ac_arg'"
2214 { ac_configure_args0
=; unset ac_configure_args0
;}
2215 { ac_configure_args1
=; unset ac_configure_args1
;}
2217 # When interrupted or exit'd, cleanup temporary files, and complete
2218 # config.log. We remove comments because anyway the quotes in there
2219 # would cause problems or look ugly.
2220 # WARNING: Use '\'' to represent an apostrophe within the trap.
2221 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222 trap 'exit_status=$?
2223 # Save into config.log some information that might help in debugging.
2227 $as_echo "## ---------------- ##
2228 ## Cache variables. ##
2229 ## ---------------- ##"
2231 # The following way of writing the cache mishandles newlines in values,
2233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234 eval ac_val=\$$ac_var
2238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2242 _ | IFS | as_nl) ;; #(
2243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2244 *) { eval $ac_var=; unset $ac_var;} ;;
2249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2250 *${as_nl}ac_space=\ *)
2252 "s/'\''/'\''\\\\'\'''\''/g;
2253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263 $as_echo "## ----------------- ##
2264 ## Output variables. ##
2265 ## ----------------- ##"
2267 for ac_var in $ac_subst_vars
2269 eval ac_val=\$$ac_var
2271 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273 $as_echo "$ac_var='\''$ac_val'\''"
2277 if test -n "$ac_subst_files"; then
2278 $as_echo "## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##"
2282 for ac_var
in $ac_subst_files
2284 eval ac_val
=\$
$ac_var
2286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288 $as_echo "$ac_var='\''$ac_val'\''"
2293 if test -s confdefs.h; then
2294 $as_echo "## ----------- ##
2301 test "$ac_signal" != 0 &&
2302 $as_echo "$as_me: caught signal $ac_signal"
2303 $as_echo "$as_me: exit $exit_status"
2305 rm -f core *.core core.conftest.* &&
2306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2309 for ac_signal
in 1 2 13 15; do
2310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest
* confdefs.h
2317 $as_echo "/* confdefs.h */" > confdefs.h
2319 # Predefined preprocessor variables.
2321 cat >>confdefs.h
<<_ACEOF
2322 #define PACKAGE_NAME "$PACKAGE_NAME"
2325 cat >>confdefs.h
<<_ACEOF
2326 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329 cat >>confdefs.h
<<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2333 cat >>confdefs.h
<<_ACEOF
2334 #define PACKAGE_STRING "$PACKAGE_STRING"
2337 cat >>confdefs.h
<<_ACEOF
2338 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2341 cat >>confdefs.h
<<_ACEOF
2342 #define PACKAGE_URL "$PACKAGE_URL"
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2350 if test -n "$CONFIG_SITE"; then
2351 # We do not want a PATH search for config.site.
2352 case $CONFIG_SITE in #((
2353 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2354 */*) ac_site_file1
=$CONFIG_SITE;;
2355 *) ac_site_file1
=.
/$CONFIG_SITE;;
2357 elif test "x$prefix" != xNONE
; then
2358 ac_site_file1
=$prefix/share
/config.site
2359 ac_site_file2
=$prefix/etc
/config.site
2361 ac_site_file1
=$ac_default_prefix/share
/config.site
2362 ac_site_file2
=$ac_default_prefix/etc
/config.site
2364 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2366 test "x$ac_site_file" = xNONE
&& continue
2367 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2370 sed 's/^/| /' "$ac_site_file" >&5
2372 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 as_fn_error $?
"failed to load site script $ac_site_file
2375 See \`config.log' for more details" "$LINENO" 5; }
2379 if test -r "$cache_file"; then
2380 # Some versions of bash will fail to source /dev/null (special files
2381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2382 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 $as_echo "$as_me: loading cache $cache_file" >&6;}
2386 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2387 *) .
"./$cache_file";;
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 $as_echo "$as_me: creating cache $cache_file" >&6;}
2396 # Check that the precious variables saved in the cache have kept the same
2398 ac_cache_corrupted
=false
2399 for ac_var
in $ac_precious_vars; do
2400 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2401 eval ac_new_set
=\
$ac_env_${ac_var}_set
2402 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2403 eval ac_new_val
=\
$ac_env_${ac_var}_value
2404 case $ac_old_set,$ac_new_set in
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2408 ac_cache_corrupted
=: ;;
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2412 ac_cache_corrupted
=: ;;
2415 if test "x$ac_old_val" != "x$ac_new_val"; then
2416 # differences in whitespace do not lead to failure.
2417 ac_old_val_w
=`echo x $ac_old_val`
2418 ac_new_val_w
=`echo x $ac_new_val`
2419 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422 ac_cache_corrupted
=:
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426 eval $ac_var=\
$ac_old_val
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2429 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2431 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2434 # Pass precious variables to config.status.
2435 if test "$ac_new_set" = set; then
2437 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 *) ac_arg
=$ac_var=$ac_new_val ;;
2440 case " $ac_configure_args " in
2441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2442 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2446 if $ac_cache_corrupted; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2453 ## -------------------- ##
2454 ## Main body of script. ##
2455 ## -------------------- ##
2458 ac_cpp
='$CPP $CPPFLAGS'
2459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2468 ac_config_headers
="$ac_config_headers config.h"
2471 # Default to --enable-multilib
2472 # Check whether --enable-multilib was given.
2473 if test "${enable_multilib+set}" = set; then :
2474 enableval
=$enable_multilib; case "$enableval" in
2475 yes) multilib
=yes ;;
2477 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2484 # We may get other options which we leave undocumented:
2485 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2486 # See config-ml.in if you want the gory details.
2488 if test "$srcdir" = "."; then
2489 if test "$with_target_subdir" != "."; then
2490 multi_basedir
="$srcdir/$with_multisrctop../.."
2492 multi_basedir
="$srcdir/$with_multisrctop.."
2495 multi_basedir
="$srcdir/.."
2499 # Even if the default multilib is not a cross compilation,
2500 # it may be that some of the other multilibs are.
2501 if test $cross_compiling = no
&& test $multilib = yes \
2502 && test "x${with_multisubdir}" != x
; then
2503 cross_compiling
=maybe
2506 ac_config_commands
="$ac_config_commands default-1"
2509 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510 if test -f "$ac_dir/install-sh"; then
2512 ac_install_sh
="$ac_aux_dir/install-sh -c"
2514 elif test -f "$ac_dir/install.sh"; then
2516 ac_install_sh
="$ac_aux_dir/install.sh -c"
2518 elif test -f "$ac_dir/shtool"; then
2520 ac_install_sh
="$ac_aux_dir/shtool install -c"
2524 if test -z "$ac_aux_dir"; then
2525 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2528 # These three variables are undocumented and unsupported,
2529 # and are intended to be withdrawn in a future Autoconf release.
2530 # They can cause serious problems if a builder's source tree is in a directory
2531 # whose full name contains unusual characters.
2532 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2533 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2534 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2537 # Make sure we can run config.sub.
2538 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2539 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2542 $as_echo_n "checking build system type... " >&6; }
2543 if ${ac_cv_build+:} false
; then :
2544 $as_echo_n "(cached) " >&6
2546 ac_build_alias
=$build_alias
2547 test "x$ac_build_alias" = x
&&
2548 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2549 test "x$ac_build_alias" = x
&&
2550 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2551 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2552 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2556 $as_echo "$ac_cv_build" >&6; }
2557 case $ac_cv_build in
2559 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2562 ac_save_IFS
=$IFS; IFS
='-'
2568 # Remember, the first character of IFS is used to create $*,
2569 # except with old shells:
2572 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2576 $as_echo_n "checking host system type... " >&6; }
2577 if ${ac_cv_host+:} false
; then :
2578 $as_echo_n "(cached) " >&6
2580 if test "x$host_alias" = x
; then
2581 ac_cv_host
=$ac_cv_build
2583 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2584 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2589 $as_echo "$ac_cv_host" >&6; }
2592 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2595 ac_save_IFS
=$IFS; IFS
='-'
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2605 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2609 $as_echo_n "checking target system type... " >&6; }
2610 if ${ac_cv_target+:} false
; then :
2611 $as_echo_n "(cached) " >&6
2613 if test "x$target_alias" = x
; then
2614 ac_cv_target
=$ac_cv_host
2616 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2617 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2622 $as_echo "$ac_cv_target" >&6; }
2623 case $ac_cv_target in
2625 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2627 target
=$ac_cv_target
2628 ac_save_IFS
=$IFS; IFS
='-'
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2638 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2641 # The aliases save the names the user supplied, while $host etc.
2642 # will get canonicalized.
2643 test -n "$target_alias" &&
2644 test "$program_prefix$program_suffix$program_transform_name" = \
2646 program_prefix
=${target_alias}-
2648 # Expand $ac_aux_dir to an absolute path.
2649 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2652 ac_cpp
='$CPP $CPPFLAGS'
2653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2658 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_CC+:} false
; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC
="$CC" # Let the user override the test.
2667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir
=.
2672 for ac_exec_ext
in '' $ac_executable_extensions; do
2673 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test -n "$CC"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2687 $as_echo "$CC" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2695 if test -z "$ac_cv_prog_CC"; then
2697 # Extract the first word of "gcc", so it can be a program name with args.
2698 set dummy gcc
; ac_word
=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir
=.
2712 for ac_exec_ext
in '' $ac_executable_extensions; do
2713 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2714 ac_cv_prog_ac_ct_CC
="gcc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2727 $as_echo "$ac_ct_CC" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2733 if test "x$ac_ct_CC" = x
; then
2736 case $cross_compiling:$ac_tool_warned in
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned
=yes ;;
2748 if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false
; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC
="$CC" # Let the user override the test.
2760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir
=.
2765 for ac_exec_ext
in '' $ac_executable_extensions; do
2766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2789 if test -z "$CC"; then
2790 # Extract the first word of "cc", so it can be a program name with args.
2791 set dummy cc
; ac_word
=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_CC+:} false
; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC
="$CC" # Let the user override the test.
2801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir
=.
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2809 ac_prog_rejected
=yes
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test $ac_prog_rejected = yes; then
2821 # We found a bogon in the path, so make sure we never use it.
2822 set dummy
$ac_cv_prog_CC
2824 if test $# != 0; then
2825 # We chose a different compiler from the bogus one.
2826 # However, it has the same basename, so the bogon will be chosen
2827 # first if we set CC to just the basename; use the full file name.
2829 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2845 if test -z "$CC"; then
2846 if test -n "$ac_tool_prefix"; then
2847 for ac_prog
in cl.exe
2849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false
; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC
="$CC" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2886 test -n "$CC" && break
2889 if test -z "$CC"; then
2891 for ac_prog
in cl.exe
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy
$ac_prog; ac_word
=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2898 $as_echo_n "(cached) " >&6
2900 if test -n "$ac_ct_CC"; then
2901 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir
=.
2908 for ac_exec_ext
in '' $ac_executable_extensions; do
2909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_ac_ct_CC
="$ac_prog"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2923 $as_echo "$ac_ct_CC" >&6; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2930 test -n "$ac_ct_CC" && break
2933 if test "x$ac_ct_CC" = x
; then
2936 case $cross_compiling:$ac_tool_warned in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned
=yes ;;
2949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error $?
"no acceptable C compiler found in \$PATH
2952 See \`config.log' for more details" "$LINENO" 5; }
2954 # Provide some information about the compiler.
2955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2958 for ac_option
in --version -v -V -qversion; do
2959 { { ac_try
="$ac_compiler $ac_option >&5"
2961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2968 if test -s conftest.err; then
2970 ... rest of stderr output deleted ...
2971 10q' conftest.err >conftest.er1
2972 cat conftest.er1 >&5
2974 rm -f conftest.er1 conftest.err
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }
2979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980 /* end confdefs.h. */
2990 ac_clean_files_save=$ac_clean_files
2991 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2992 # Try to create an executable without -o first, disregard a.out.
2993 # It will help us diagnose broken compilers, and finding out an intuition
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2996 $as_echo_n "checking whether the C compiler works... " >&6; }
2997 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2999 # The possible output files:
3000 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3003 for ac_file in $ac_files
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3012 if { { ac_try="$ac_link_default"
3014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3015 *) ac_try_echo
=$ac_try;;
3017 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_link_default") 2>&5
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }; then :
3023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3026 # so that the user can short-circuit this test for compilers unknown to
3028 for ac_file
in $ac_files ''
3030 test -f "$ac_file" ||
continue
3032 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3035 # We found the default executable, but exeext='' is most
3039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3041 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3043 # We set ac_cv_exeext here because the later test for it is not
3044 # safe: cross compilers may not add the suffix if given an `-o'
3045 # argument, so we may need to know it at that point already.
3046 # Even if this section looks crufty: it has the advantage of
3053 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3058 if test -z "$ac_file"; then :
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 $as_echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.
$ac_ext >&5
3064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 as_fn_error
77 "C compiler cannot create executables
3067 See \`config.log' for more details" "$LINENO" 5; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070 $as_echo "yes" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3073 $as_echo_n "checking for C compiler default output file name... " >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3075 $as_echo "$ac_file" >&6; }
3076 ac_exeext
=$ac_cv_exeext
3078 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3079 ac_clean_files
=$ac_clean_files_save
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3081 $as_echo_n "checking for suffix of executables... " >&6; }
3082 if { { ac_try
="$ac_link"
3084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link") 2>&5
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3094 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3097 for ac_file
in conftest.exe conftest conftest.
*; do
3098 test -f "$ac_file" ||
continue
3100 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3101 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3110 See \`config.log' for more details" "$LINENO" 5; }
3112 rm -f conftest conftest
$ac_cv_exeext
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3114 $as_echo "$ac_cv_exeext" >&6; }
3116 rm -f conftest.
$ac_ext
3117 EXEEXT
=$ac_cv_exeext
3119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3125 FILE *f = fopen ("conftest.out", "w");
3126 return ferror (f) || fclose (f) != 0;
3132 ac_clean_files
="$ac_clean_files conftest.out"
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3136 $as_echo_n "checking whether we are cross compiling... " >&6; }
3137 if test "$cross_compiling" != yes; then
3138 { { ac_try
="$ac_link"
3140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }
3149 if { ac_try='./conftest$ac_cv_exeext'
3150 { { case "(($ac_try" in
3151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3152 *) ac_try_echo
=$ac_try;;
3154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_try") 2>&5
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; }; then
3162 if test "$cross_compiling" = maybe
; then
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error $?
"cannot run C compiled programs.
3168 If you meant to cross compile, use \`--host'.
3169 See \`config.log' for more details" "$LINENO" 5; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3174 $as_echo "$cross_compiling" >&6; }
3176 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3177 ac_clean_files
=$ac_clean_files_save
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3179 $as_echo_n "checking for suffix of object files... " >&6; }
3180 if ${ac_cv_objext+:} false
; then :
3181 $as_echo_n "(cached) " >&6
3183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3194 rm -f conftest.o conftest.obj
3195 if { { ac_try
="$ac_compile"
3197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_compile") 2>&5
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }; then :
3206 for ac_file in conftest.o conftest.obj conftest.*; do
3207 test -f "$ac_file" || continue;
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3221 See \
`config.log' for more details" "$LINENO" 5; }
3223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3226 $as_echo "$ac_cv_objext" >&6; }
3227 OBJEXT=$ac_cv_objext
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3230 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3231 if ${ac_cv_c_compiler_gnu+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"; then :
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3258 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3259 if test $ac_compiler_gnu = yes; then
3264 ac_test_CFLAGS=${CFLAGS+set}
3265 ac_save_CFLAGS=$CFLAGS
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3267 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3268 if ${ac_cv_prog_cc_g+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 ac_save_c_werror_flag=$ac_c_werror_flag
3272 ac_c_werror_flag=yes
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3286 if ac_fn_c_try_compile "$LINENO"; then :
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_c_werror_flag=$ac_save_c_werror_flag
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3317 if ac_fn_c_try_compile "$LINENO"; then :
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 ac_c_werror_flag=$ac_save_c_werror_flag
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3328 $as_echo "$ac_cv_prog_cc_g" >&6; }
3329 if test "$ac_test_CFLAGS" = set; then
3330 CFLAGS=$ac_save_CFLAGS
3331 elif test $ac_cv_prog_cc_g = yes; then
3332 if test "$GCC" = yes; then
3338 if test "$GCC" = yes; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3345 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3346 if ${ac_cv_prog_cc_c89+:} false; then :
3347 $as_echo_n "(cached) " >&6
3349 ac_cv_prog_cc_c89=no
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3356 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3357 struct buf { int x; };
3358 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3359 static char *e (p, i)
3365 static char *f (char * (*g) (char **, int), char **p, ...)
3370 s = g (p, va_arg (v,int));
3375 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3376 function prototypes and stuff, but not '\xHH' hex character constants.
3377 These don't provoke an error unfortunately, instead are silently treated
3378 as 'x'. The following induces an error, until -std is added to get
3379 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3380 array size at least. It's necessary to write '\x00'==0 to get something
3381 that's true only with -std. */
3382 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3384 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3385 inside strings and character constants. */
3387 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3389 int test (int i, double x);
3390 struct s1 {int (*f) (int a);};
3391 struct s2 {int (*f) (double a);};
3392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3403 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3404 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3406 CC="$ac_save_CC $ac_arg"
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_c89=$ac_arg
3410 rm -f core conftest.err conftest.$ac_objext
3411 test "x$ac_cv_prog_cc_c89" != "xno" && break
3413 rm -f conftest.$ac_ext
3418 case "x$ac_cv_prog_cc_c89" in
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3421 $as_echo "none needed" >&6; } ;;
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3424 $as_echo "unsupported" >&6; } ;;
3426 CC="$CC $ac_cv_prog_cc_c89"
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3428 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3430 if test "x$ac_cv_prog_cc_c89" != xno; then :
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3446 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3447 if ${am_cv_prog_cc_c_o+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3461 # Make sure it works both with $CC and with simple cc.
3462 # Following AC_PROG_CC_C_O, we do the test twice because some
3463 # compilers refuse to overwrite an existing .o file with -o,
3464 # though they will create one.
3465 am_cv_prog_cc_c_o=yes
3467 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3468 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } \
3472 && test -f conftest2.$ac_objext; then
3475 am_cv_prog_cc_c_o=no
3479 rm -f core conftest*
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3483 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3484 if test "$am_cv_prog_cc_c_o" != yes; then
3485 # Losing compiler, so override with the script.
3486 # FIXME: It is wrong to rewrite CC.
3487 # But if we don't then we get into trouble of one sort or another.
3488 # A longer-term fix would be to have automake use am__CC in this case,
3489 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3490 CC="$am_aux_dir/compile $CC"
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3506 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3507 # On Suns, sometimes $CPP names a directory.
3508 if test -n "$CPP" && test -d "$CPP"; then
3511 if test -z "$CPP"; then
3512 if ${ac_cv_prog_CPP+:} false; then :
3513 $as_echo_n "(cached) " >&6
3515 # Double quotes because CPP needs to be expanded
3516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3519 for ac_c_preproc_warn_flag in '' yes
3521 # Use a header file that comes with gcc, so configuring glibc
3522 # with a fresh cross-compiler works.
3523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524 # <limits.h> exists even on freestanding compilers.
3525 # On the NeXT, cc -E runs the code through the compiler's parser,
3526 # not just through cpp. "Syntax error" is here to catch this case.
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3530 # include <limits.h>
3532 # include <assert.h>
3536 if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: fails on valid input.
3542 rm -f conftest.err conftest.i conftest.$ac_ext
3544 # OK, works on sane cases. Now check whether nonexistent headers
3545 # can be detected and how.
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548 #include <ac_nonexistent.h>
3550 if ac_fn_c_try_cpp "$LINENO"; then :
3551 # Broken: success on invalid input.
3554 # Passes both tests.
3558 rm -f conftest.err conftest.i conftest.$ac_ext
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.i conftest.err conftest.
$ac_ext
3563 if $ac_preproc_ok; then :
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3576 $as_echo "$CPP" >&6; }
3578 for ac_c_preproc_warn_flag
in '' yes
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error" is here to catch this case.
3586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3589 # include <limits.h>
3591 # include <assert.h>
3595 if ac_fn_c_try_cpp
"$LINENO"; then :
3598 # Broken: fails on valid input.
3601 rm -f conftest.err conftest.i conftest.
$ac_ext
3603 # OK, works on sane cases. Now check whether nonexistent headers
3604 # can be detected and how.
3605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3609 if ac_fn_c_try_cpp
"$LINENO"; then :
3610 # Broken: success on invalid input.
3613 # Passes both tests.
3617 rm -f conftest.err conftest.i conftest.
$ac_ext
3620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3621 rm -f conftest.i conftest.err conftest.
$ac_ext
3622 if $ac_preproc_ok; then :
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3628 See \`config.log' for more details" "$LINENO" 5; }
3632 ac_cpp
='$CPP $CPPFLAGS'
3633 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3639 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3640 if ${ac_cv_path_GREP+:} false
; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -z "$GREP"; then
3644 ac_path_GREP_found
=false
3645 # Loop through the user's path and test for each of PROGNAME-LIST
3646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3647 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3650 test -z "$as_dir" && as_dir
=.
3651 for ac_prog
in grep ggrep
; do
3652 for ac_exec_ext
in '' $ac_executable_extensions; do
3653 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3654 as_fn_executable_p
"$ac_path_GREP" ||
continue
3655 # Check for GNU ac_path_GREP and select it if it is found.
3656 # Check for GNU $ac_path_GREP
3657 case `"$ac_path_GREP" --version 2>&1` in
3659 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3662 $as_echo_n 0123456789 >"conftest.in"
3665 cat "conftest.in" "conftest.in" >"conftest.tmp"
3666 mv "conftest.tmp" "conftest.in"
3667 cp "conftest.in" "conftest.nl"
3668 $as_echo 'GREP' >> "conftest.nl"
3669 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3670 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3671 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3672 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3673 # Best one so far, save it but keep looking for a better one
3674 ac_cv_path_GREP
="$ac_path_GREP"
3675 ac_path_GREP_max
=$ac_count
3677 # 10*(2^10) chars as input seems more than enough
3678 test $ac_count -gt 10 && break
3680 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3683 $ac_path_GREP_found && break 3
3688 if test -z "$ac_cv_path_GREP"; then
3689 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3692 ac_cv_path_GREP
=$GREP
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3697 $as_echo "$ac_cv_path_GREP" >&6; }
3698 GREP
="$ac_cv_path_GREP"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3702 $as_echo_n "checking for egrep... " >&6; }
3703 if ${ac_cv_path_EGREP+:} false
; then :
3704 $as_echo_n "(cached) " >&6
3706 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3707 then ac_cv_path_EGREP
="$GREP -E"
3709 if test -z "$EGREP"; then
3710 ac_path_EGREP_found
=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3713 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3716 test -z "$as_dir" && as_dir
=.
3717 for ac_prog
in egrep; do
3718 for ac_exec_ext
in '' $ac_executable_extensions; do
3719 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3720 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3721 # Check for GNU ac_path_EGREP and select it if it is found.
3722 # Check for GNU $ac_path_EGREP
3723 case `"$ac_path_EGREP" --version 2>&1` in
3725 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3728 $as_echo_n 0123456789 >"conftest.in"
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 $as_echo 'EGREP' >> "conftest.nl"
3735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3736 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3737 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_EGREP
="$ac_path_EGREP"
3741 ac_path_EGREP_max
=$ac_count
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3746 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3749 $ac_path_EGREP_found && break 3
3754 if test -z "$ac_cv_path_EGREP"; then
3755 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3758 ac_cv_path_EGREP
=$EGREP
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3764 $as_echo "$ac_cv_path_EGREP" >&6; }
3765 EGREP
="$ac_cv_path_EGREP"
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3769 $as_echo_n "checking for ANSI C header files... " >&6; }
3770 if ${ac_cv_header_stdc+:} false
; then :
3771 $as_echo_n "(cached) " >&6
3773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3788 if ac_fn_c_try_compile
"$LINENO"; then :
3789 ac_cv_header_stdc
=yes
3791 ac_cv_header_stdc
=no
3793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3795 if test $ac_cv_header_stdc = yes; then
3796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803 $EGREP "memchr" >/dev
/null
2>&1; then :
3806 ac_cv_header_stdc
=no
3812 if test $ac_cv_header_stdc = yes; then
3813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3820 $EGREP "free" >/dev
/null
2>&1; then :
3823 ac_cv_header_stdc
=no
3829 if test $ac_cv_header_stdc = yes; then
3830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3831 if test "$cross_compiling" = yes; then :
3834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3838 #if ((' ' & 0x0FF) == 0x020)
3839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3842 # define ISLOWER(c) \
3843 (('a' <= (c) && (c) <= 'i') \
3844 || ('j' <= (c) && (c) <= 'r') \
3845 || ('s' <= (c) && (c) <= 'z'))
3846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3854 for (i = 0; i < 256; i++)
3855 if (XOR (islower (i), ISLOWER (i))
3856 || toupper (i) != TOUPPER (i))
3861 if ac_fn_c_try_run
"$LINENO"; then :
3864 ac_cv_header_stdc
=no
3866 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3867 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3873 $as_echo "$ac_cv_header_stdc" >&6; }
3874 if test $ac_cv_header_stdc = yes; then
3876 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3880 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3881 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3882 inttypes.h stdint.h unistd.h
3884 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3885 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3887 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3888 cat >>confdefs.h
<<_ACEOF
3889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3898 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3899 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3906 if test "$MINIX" = yes; then
3908 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3911 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3914 $as_echo "#define _MINIX 1" >>confdefs.h
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3920 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3921 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3922 $as_echo_n "(cached) " >&6
3924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3927 # define __EXTENSIONS__ 1
3928 $ac_includes_default
3937 if ac_fn_c_try_compile
"$LINENO"; then :
3938 ac_cv_safe_to_define___extensions__
=yes
3940 ac_cv_safe_to_define___extensions__
=no
3942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3945 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3946 test $ac_cv_safe_to_define___extensions__ = yes &&
3947 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3949 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3951 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3953 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3955 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3959 target_alias
=${target_alias-$target}
3962 # 1.11.1: Require that version of automake.
3963 # foreign: Don't require README, INSTALL, NEWS, etc.
3964 # no-define: Don't define PACKAGE and VERSION.
3965 # no-dependencies: Don't generate automatic dependencies.
3966 # (because it breaks when using bootstrap-lean, since some of the
3967 # headers are gone at "make install" time).
3968 # subdir-objects: Build objects in sub-directories.
3969 # -Wall: Issue all automake warnings.
3970 # -Wno-portability: Don't warn about constructs supported by GNU make.
3971 # (because GCC requires GNU make anyhow).
3972 # -Wno-override: Overrides used in testsuite.
3973 am__api_version
='1.15'
3975 # Find a good install program. We prefer a C program (faster),
3976 # so one script is as good as another. But avoid the broken or
3977 # incompatible versions:
3978 # SysV /etc/install, /usr/sbin/install
3979 # SunOS /usr/etc/install
3980 # IRIX /sbin/install
3982 # AmigaOS /C/install, which installs bootblocks on floppy discs
3983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3986 # OS/2's system install, which has a completely different semantic
3987 # ./install, which can be erroneously created by make from ./install.sh.
3988 # Reject install programs that cannot install multiple files.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3990 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3991 if test -z "$INSTALL"; then
3992 if ${ac_cv_path_install+:} false
; then :
3993 $as_echo_n "(cached) " >&6
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 # Account for people who put trailing slashes in PATH elements.
4001 case $as_dir/ in #((
4002 .
/ | .
// |
/[cC
]/* | \
4003 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4004 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4007 # OSF1 and SCO ODT 3.0 have their own names for install.
4008 # Don't use installbsd from OSF since it installs stuff as root
4010 for ac_prog
in ginstall scoinst
install; do
4011 for ac_exec_ext
in '' $ac_executable_extensions; do
4012 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4013 if test $ac_prog = install &&
4014 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4015 # AIX install. It has an incompatible calling convention.
4017 elif test $ac_prog = install &&
4018 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4019 # program-specific install script used by HP pwplus--don't use.
4022 rm -rf conftest.one conftest.two conftest.dir
4023 echo one
> conftest.one
4024 echo two
> conftest.two
4026 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4027 test -s conftest.one
&& test -s conftest.two
&&
4028 test -s conftest.dir
/conftest.one
&&
4029 test -s conftest.dir
/conftest.two
4031 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4044 rm -rf conftest.one conftest.two conftest.dir
4047 if test "${ac_cv_path_install+set}" = set; then
4048 INSTALL
=$ac_cv_path_install
4050 # As a last resort, use the slow shell script. Don't cache a
4051 # value for INSTALL within a source directory, because that will
4052 # break other packages using the cache if that directory is
4053 # removed, or if the value is a relative name.
4054 INSTALL
=$ac_install_sh
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4058 $as_echo "$INSTALL" >&6; }
4060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4061 # It thinks the first close brace ends the variable substitution.
4062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4066 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4069 $as_echo_n "checking whether build environment is sane... " >&6; }
4070 # Reject unsafe characters in $srcdir or the absolute working directory
4071 # name. Accept space and tab only in the latter.
4075 *[\\\"\
#\$\&\'\`$am_lf]*)
4076 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4079 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4080 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4083 # Do 'set' in a subshell so we don't clobber the current shell's
4084 # arguments. Must try -L first in case configure is actually a
4085 # symlink; some systems play weird games with the mod time of symlinks
4086 # (eg FreeBSD returns the mod time of the symlink's containing
4090 for am_try
in 1 2; do
4091 echo "timestamp, slept: $am_has_slept" > conftest.
file
4092 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4093 if test "$*" = "X"; then
4095 set X
`ls -t "$srcdir/configure" conftest.file`
4097 if test "$*" != "X $srcdir/configure conftest.file" \
4098 && test "$*" != "X conftest.file $srcdir/configure"; then
4100 # If neither matched, then we have a broken ls. This can happen
4101 # if, for instance, CONFIG_SHELL is bash and it inherits a
4102 # broken ls alias from the environment. This has actually
4103 # happened. Such a system could not be considered "sane".
4104 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4105 alias in your environment" "$LINENO" 5
4107 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4114 test "$2" = conftest.
file
4120 as_fn_error $?
"newly created file is older than distributed files!
4121 Check your system clock" "$LINENO" 5
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4124 $as_echo "yes" >&6; }
4125 # If we didn't sleep, we still need to ensure time stamps of config.status and
4126 # generated files are strictly newer.
4128 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4135 test "$program_prefix" != NONE
&&
4136 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4137 # Use a double $ so make ignores it.
4138 test "$program_suffix" != NONE
&&
4139 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4140 # Double any \ or $.
4141 # By default was `s,x,x', remove it if useless.
4142 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4143 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4145 if test x
"${MISSING+set}" != xset
; then
4148 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4150 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4153 # Use eval to expand $SHELL
4154 if eval "$MISSING --is-lightweight"; then
4155 am_missing_run
="$MISSING "
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4159 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4162 if test x
"${install_sh+set}" != xset
; then
4165 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4167 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4171 # Installed binaries are usually stripped using 'strip' when the user
4172 # run "make install-strip". However 'strip' might not be the right
4173 # tool to use in cross-compilation environments, therefore Automake
4174 # will honor the 'STRIP' environment variable to overrule this program.
4175 if test "$cross_compiling" != no
; then
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4178 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_prog_STRIP+:} false
; then :
4182 $as_echo_n "(cached) " >&6
4184 if test -n "$STRIP"; then
4185 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir
=.
4192 for ac_exec_ext
in '' $ac_executable_extensions; do
4193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 STRIP
=$ac_cv_prog_STRIP
4205 if test -n "$STRIP"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4207 $as_echo "$STRIP" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4215 if test -z "$ac_cv_prog_STRIP"; then
4217 # Extract the first word of "strip", so it can be a program name with args.
4218 set dummy strip
; ac_word
=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4222 $as_echo_n "(cached) " >&6
4224 if test -n "$ac_ct_STRIP"; then
4225 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4231 test -z "$as_dir" && as_dir
=.
4232 for ac_exec_ext
in '' $ac_executable_extensions; do
4233 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4234 ac_cv_prog_ac_ct_STRIP
="strip"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4245 if test -n "$ac_ct_STRIP"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4247 $as_echo "$ac_ct_STRIP" >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4253 if test "x$ac_ct_STRIP" = x
; then
4256 case $cross_compiling:$ac_tool_warned in
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4260 ac_tool_warned
=yes ;;
4265 STRIP
="$ac_cv_prog_STRIP"
4269 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4272 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4273 if test -z "$MKDIR_P"; then
4274 if ${ac_cv_path_mkdir+:} false
; then :
4275 $as_echo_n "(cached) " >&6
4277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4278 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4281 test -z "$as_dir" && as_dir
=.
4282 for ac_prog
in mkdir gmkdir
; do
4283 for ac_exec_ext
in '' $ac_executable_extensions; do
4284 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4285 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4286 'mkdir (GNU coreutils) '* | \
4287 'mkdir (coreutils) '* | \
4288 'mkdir (fileutils) '4.1*)
4289 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4299 test -d .
/--version && rmdir .
/--version
4300 if test "${ac_cv_path_mkdir+set}" = set; then
4301 MKDIR_P
="$ac_cv_path_mkdir -p"
4303 # As a last resort, use the slow shell script. Don't cache a
4304 # value for MKDIR_P within a source directory, because that will
4305 # break other packages using the cache if that directory is
4306 # removed, or if the value is a relative name.
4307 MKDIR_P
="$ac_install_sh -d"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4311 $as_echo "$MKDIR_P" >&6; }
4313 for ac_prog
in gawk mawk nawk
awk
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy
$ac_prog; ac_word
=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_AWK+:} false
; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -n "$AWK"; then
4323 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir
=.
4330 for ac_exec_ext
in '' $ac_executable_extensions; do
4331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_AWK
="$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 if test -n "$AWK"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4345 $as_echo "$AWK" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4352 test -n "$AWK" && break
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4356 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4358 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4359 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4360 $as_echo_n "(cached) " >&6
4362 cat >conftest.
make <<\_ACEOF
4365 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4367 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4368 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4370 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4372 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4376 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 $as_echo "yes" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 SET_MAKE
="MAKE=${MAKE-make}"
4386 rm -rf .tst
2>/dev
/null
4387 mkdir .tst
2>/dev
/null
4388 if test -d .tst
; then
4393 rmdir .tst
2>/dev
/null
4395 # Check whether --enable-silent-rules was given.
4396 if test "${enable_silent_rules+set}" = set; then :
4397 enableval
=$enable_silent_rules;
4400 case $enable_silent_rules in # (((
4401 yes) AM_DEFAULT_VERBOSITY
=0;;
4402 no
) AM_DEFAULT_VERBOSITY
=1;;
4403 *) AM_DEFAULT_VERBOSITY
=1;;
4405 am_make
=${MAKE-make}
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4407 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4408 if ${am_cv_make_support_nested_variables+:} false
; then :
4409 $as_echo_n "(cached) " >&6
4411 if $as_echo 'TRUE=$(BAR$(V))
4417 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4418 am_cv_make_support_nested_variables
=yes
4420 am_cv_make_support_nested_variables
=no
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4424 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4425 if test $am_cv_make_support_nested_variables = yes; then
4427 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4429 AM_V
=$AM_DEFAULT_VERBOSITY
4430 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4434 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4435 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4436 # is not polluted with repeated "-I."
4437 am__isrc
=' -I$(srcdir)'
4438 # test to see if srcdir already configured
4439 if test -f $srcdir/config.status
; then
4440 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4444 # test whether we have cygpath
4445 if test -z "$CYGPATH_W"; then
4446 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4447 CYGPATH_W
='cygpath -w'
4454 # Define the identity of the package.
4456 VERSION
='version-unused'
4459 # Some tools Automake needs.
4461 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4464 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4467 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4470 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4473 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4475 # For better backward compatibility. To be removed once Automake 1.9.x
4476 # dies out for good. For more background, see:
4477 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4478 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4479 mkdir_p
='$(MKDIR_P)'
4481 # We need awk for the "check" target (and possibly the TAP driver). The
4482 # system "awk" is bad on some platforms.
4483 # Always define AMTAR for backward compatibility. Yes, it's still used
4484 # in the wild :-( We should find a proper way to deprecate it ...
4488 # We'll loop over all known methods to create a tar archive until one works.
4489 _am_tools
='gnutar pax cpio none'
4491 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4498 # POSIX will say in a future version that running "rm -f" with no argument
4499 # is OK; and we want to be able to make that assumption in our Makefile
4500 # recipes. So use an aggressive probe to check that the usage we want is
4501 # actually supported "in the wild" to an acceptable degree.
4502 # See automake bug#10828.
4503 # To make any issue more visible, cause the running configure to be aborted
4504 # by default if the 'rm' program in use doesn't match our expectations; the
4505 # user can still override this though.
4506 if rm -f && rm -fr && rm -rf; then : OK
; else
4510 Your 'rm' program seems unable to run without file operands specified
4511 on the command line, even when the '-f' option is present. This is contrary
4512 to the behaviour of most rm programs out there, and not conforming with
4513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4515 Please tell bug-automake@gnu.org about your system, including the value
4516 of your $PATH and any error possibly output before this message. This
4517 can help us improve future automake versions.
4520 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4521 echo 'Configuration will proceed anyway, since you have set the' >&2
4522 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4526 Aborting the configuration process, to ensure you take notice of the issue.
4528 You can download and install GNU coreutils to get an 'rm' implementation
4529 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4531 If you want to complete the configuration process using your problematic
4532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4533 to "yes", and re-run configure.
4536 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4543 # By default we simply use the C compiler to build assembly code.
4545 test "${CCAS+set}" = set || CCAS
=$CC
4546 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4551 ac_cpp
='$CPP $CPPFLAGS'
4552 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4555 if test -n "$ac_tool_prefix"; then
4556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4557 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_prog_CC+:} false
; then :
4561 $as_echo_n "(cached) " >&6
4563 if test -n "$CC"; then
4564 ac_cv_prog_CC
="$CC" # Let the user override the test.
4566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir
=.
4571 for ac_exec_ext
in '' $ac_executable_extensions; do
4572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 if test -n "$CC"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4586 $as_echo "$CC" >&6; }
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4594 if test -z "$ac_cv_prog_CC"; then
4596 # Extract the first word of "gcc", so it can be a program name with args.
4597 set dummy gcc
; ac_word
=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$ac_ct_CC"; then
4604 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir
=.
4611 for ac_exec_ext
in '' $ac_executable_extensions; do
4612 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_CC
="gcc"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4624 if test -n "$ac_ct_CC"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4626 $as_echo "$ac_ct_CC" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4632 if test "x$ac_ct_CC" = x
; then
4635 case $cross_compiling:$ac_tool_warned in
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4639 ac_tool_warned
=yes ;;
4647 if test -z "$CC"; then
4648 if test -n "$ac_tool_prefix"; then
4649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4650 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_prog_CC+:} false
; then :
4654 $as_echo_n "(cached) " >&6
4656 if test -n "$CC"; then
4657 ac_cv_prog_CC
="$CC" # Let the user override the test.
4659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir
=.
4664 for ac_exec_ext
in '' $ac_executable_extensions; do
4665 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 if test -n "$CC"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4679 $as_echo "$CC" >&6; }
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4688 if test -z "$CC"; then
4689 # Extract the first word of "cc", so it can be a program name with args.
4690 set dummy cc
; ac_word
=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_CC+:} false
; then :
4694 $as_echo_n "(cached) " >&6
4696 if test -n "$CC"; then
4697 ac_cv_prog_CC
="$CC" # Let the user override the test.
4700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir
=.
4705 for ac_exec_ext
in '' $ac_executable_extensions; do
4706 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4708 ac_prog_rejected
=yes
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 if test $ac_prog_rejected = yes; then
4720 # We found a bogon in the path, so make sure we never use it.
4721 set dummy
$ac_cv_prog_CC
4723 if test $# != 0; then
4724 # We chose a different compiler from the bogus one.
4725 # However, it has the same basename, so the bogon will be chosen
4726 # first if we set CC to just the basename; use the full file name.
4728 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4734 if test -n "$CC"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4736 $as_echo "$CC" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4744 if test -z "$CC"; then
4745 if test -n "$ac_tool_prefix"; then
4746 for ac_prog
in cl.exe
4748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4749 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if ${ac_cv_prog_CC+:} false
; then :
4753 $as_echo_n "(cached) " >&6
4755 if test -n "$CC"; then
4756 ac_cv_prog_CC
="$CC" # Let the user override the test.
4758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir
=.
4763 for ac_exec_ext
in '' $ac_executable_extensions; do
4764 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 if test -n "$CC"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4778 $as_echo "$CC" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4785 test -n "$CC" && break
4788 if test -z "$CC"; then
4790 for ac_prog
in cl.exe
4792 # Extract the first word of "$ac_prog", so it can be a program name with args.
4793 set dummy
$ac_prog; ac_word
=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4797 $as_echo_n "(cached) " >&6
4799 if test -n "$ac_ct_CC"; then
4800 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir
=.
4807 for ac_exec_ext
in '' $ac_executable_extensions; do
4808 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_ac_ct_CC
="$ac_prog"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4820 if test -n "$ac_ct_CC"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4822 $as_echo "$ac_ct_CC" >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4829 test -n "$ac_ct_CC" && break
4832 if test "x$ac_ct_CC" = x
; then
4835 case $cross_compiling:$ac_tool_warned in
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839 ac_tool_warned
=yes ;;
4848 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4850 as_fn_error $?
"no acceptable C compiler found in \$PATH
4851 See \`config.log' for more details" "$LINENO" 5; }
4853 # Provide some information about the compiler.
4854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4857 for ac_option
in --version -v -V -qversion; do
4858 { { ac_try
="$ac_compiler $ac_option >&5"
4860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864 $as_echo "$ac_try_echo"; } >&5
4865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4867 if test -s conftest.err; then
4869 ... rest of stderr output deleted ...
4870 10q' conftest.err >conftest.er1
4871 cat conftest.er1 >&5
4873 rm -f conftest.er1 conftest.err
4874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4880 if ${ac_cv_c_compiler_gnu+:} false; then :
4881 $as_echo_n "(cached) " >&6
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4897 if ac_fn_c_try_compile "$LINENO"; then :
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4907 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4908 if test $ac_compiler_gnu = yes; then
4913 ac_test_CFLAGS=${CFLAGS+set}
4914 ac_save_CFLAGS=$CFLAGS
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4916 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4917 if ${ac_cv_prog_cc_g+:} false; then :
4918 $as_echo_n "(cached) " >&6
4920 ac_save_c_werror_flag=$ac_c_werror_flag
4921 ac_c_werror_flag=yes
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4935 if ac_fn_c_try_compile "$LINENO"; then :
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4950 if ac_fn_c_try_compile "$LINENO"; then :
4953 ac_c_werror_flag=$ac_save_c_werror_flag
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4966 if ac_fn_c_try_compile "$LINENO"; then :
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 ac_c_werror_flag=$ac_save_c_werror_flag
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4977 $as_echo "$ac_cv_prog_cc_g" >&6; }
4978 if test "$ac_test_CFLAGS" = set; then
4979 CFLAGS=$ac_save_CFLAGS
4980 elif test $ac_cv_prog_cc_g = yes; then
4981 if test "$GCC" = yes; then
4987 if test "$GCC" = yes; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4995 if ${ac_cv_prog_cc_c89+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 ac_cv_prog_cc_c89=no
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5006 struct buf { int x; };
5007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5008 static char *e (p, i)
5014 static char *f (char * (*g) (char **, int), char **p, ...)
5019 s = g (p, va_arg (v,int));
5024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5025 function prototypes and stuff, but not '\xHH' hex character constants.
5026 These don't provoke an error unfortunately, instead are silently treated
5027 as 'x'. The following induces an error, until -std is added to get
5028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5029 array size at least. It's necessary to write '\x00'==0 to get something
5030 that's true only with -std. */
5031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5034 inside strings and character constants. */
5036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5038 int test (int i, double x);
5039 struct s1 {int (*f) (int a);};
5040 struct s2 {int (*f) (double a);};
5041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5055 CC="$ac_save_CC $ac_arg"
5056 if ac_fn_c_try_compile "$LINENO"; then :
5057 ac_cv_prog_cc_c89=$ac_arg
5059 rm -f core conftest.err conftest.$ac_objext
5060 test "x$ac_cv_prog_cc_c89" != "xno" && break
5062 rm -f conftest.$ac_ext
5067 case "x$ac_cv_prog_cc_c89" in
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5070 $as_echo "none needed" >&6; } ;;
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5073 $as_echo "unsupported" >&6; } ;;
5075 CC="$CC $ac_cv_prog_cc_c89"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5077 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5079 if test "x$ac_cv_prog_cc_c89" != xno; then :
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 ac_cpp='$CPP $CPPFLAGS'
5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5095 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5096 if ${am_cv_prog_cc_c_o+:} false; then :
5097 $as_echo_n "(cached) " >&6
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5110 # Make sure it works both with $CC and with simple cc.
5111 # Following AC_PROG_CC_C_O, we do the test twice because some
5112 # compilers refuse to overwrite an existing .o file with -o,
5113 # though they will create one.
5114 am_cv_prog_cc_c_o=yes
5116 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5117 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } \
5121 && test -f conftest2.$ac_objext; then
5124 am_cv_prog_cc_c_o=no
5128 rm -f core conftest*
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5132 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5133 if test "$am_cv_prog_cc_c_o" != yes; then
5134 # Losing compiler, so override with the script.
5135 # FIXME: It is wrong to rewrite CC.
5136 # But if we don't then we get into trouble of one sort or another.
5137 # A longer-term fix would be to have automake use am__CC in this case,
5138 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5139 CC="$am_aux_dir/compile $CC"
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5150 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_GDC+:} false; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$GDC"; then
5161 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 if test -n "$GDC"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5183 $as_echo "$GDC" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5191 if test -z "$ac_cv_prog_GDC"; then
5193 # Extract the first word of "gdc", so it can be a program name with args.
5194 set dummy gdc; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5198 $as_echo_n "(cached) " >&6
5200 if test -n "$ac_ct_GDC"; then
5201 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_GDC="gdc"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5221 if test -n "$ac_ct_GDC"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5223 $as_echo "$ac_ct_GDC" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_ct_GDC" = x; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5241 GDC="$ac_cv_prog_GDC"
5244 if test -z "$GDC"; then
5245 if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5247 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_GDC+:} false; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -n "$GDC"; then
5254 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 if test -n "$GDC"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5276 $as_echo "$GDC" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5285 if test -z "$GDC"; then
5286 # Extract the first word of "gdc", so it can be a program name with args.
5287 set dummy gdc; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_prog_GDC+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 if test -n "$GDC"; then
5294 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5305 ac_prog_rejected=yes
5308 ac_cv_prog_GDC="gdc"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 if test $ac_prog_rejected = yes; then
5317 # We found a bogon in the path, so make sure we never use it.
5318 set dummy $ac_cv_prog_GDC
5320 if test $# != 0; then
5321 # We chose a different compiler from the bogus one.
5322 # However, it has the same basename, so the bogon will be chosen
5323 # first if we set GDC to just the basename; use the full file name.
5325 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5331 if test -n "$GDC"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5333 $as_echo "$GDC" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5343 # Provide some information about the compiler.
5344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5347 { { ac_try="$ac_compiler --version >&5"
5349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5350 *) ac_try_echo
=$ac_try;;
5352 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5353 $as_echo "$ac_try_echo"; } >&5
5354 (eval "$ac_compiler --version >&5") 2>conftest.err
5356 if test -s conftest.err
; then
5358 ... rest of stderr output deleted ...
5359 10q' conftest.err
>conftest.er1
5360 cat conftest.er1
>&5
5362 rm -f conftest.er1 conftest.err
5363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5364 test $ac_status = 0; }
5366 ac_cpp
='$CPP $CPPFLAGS'
5367 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5373 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5374 if ${phobos_cv_abs_srcdir+:} false
; then :
5375 $as_echo_n "(cached) " >&6
5377 phobos_cv_abs_srcdir
=`cd $srcdir && pwd`
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5380 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5381 if test -d "$phobos_cv_abs_srcdir"; then :
5384 as_fn_error $?
"can't find absolute libphobos source path" "$LINENO" 5
5390 gdc_save_DFLAGS
=$GDCFLAGS
5391 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5394 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5395 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5399 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5400 cat > conftest.
$ac_ext <<_ACEOF
5404 extern(C) int main() {
5408 if ac_fn_d_try_compile
"$LINENO"; then :
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410 $as_echo "yes" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 as_fn_error $?
"can't compile D sources!" "$LINENO" 5
5416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 ac_cpp
='$CPP $CPPFLAGS'
5419 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5424 GDCFLAGS
=$gdc_save_DFLAGS
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5432 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5433 # Check whether --enable-maintainer-mode was given.
5434 if test "${enable_maintainer_mode+set}" = set; then :
5435 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5437 USE_MAINTAINER_MODE
=no
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5441 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5442 if test $USE_MAINTAINER_MODE = yes; then
5443 MAINTAINER_MODE_TRUE
=
5444 MAINTAINER_MODE_FALSE
='#'
5446 MAINTAINER_MODE_TRUE
='#'
5447 MAINTAINER_MODE_FALSE
=
5450 MAINT
=$MAINTAINER_MODE_TRUE
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5455 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_RANLIB+:} false
; then :
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$RANLIB"; then
5462 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir
=.
5469 for ac_exec_ext
in '' $ac_executable_extensions; do
5470 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 RANLIB
=$ac_cv_prog_RANLIB
5482 if test -n "$RANLIB"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5484 $as_echo "$RANLIB" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5492 if test -z "$ac_cv_prog_RANLIB"; then
5493 ac_ct_RANLIB
=$RANLIB
5494 # Extract the first word of "ranlib", so it can be a program name with args.
5495 set dummy ranlib
; ac_word
=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5499 $as_echo_n "(cached) " >&6
5501 if test -n "$ac_ct_RANLIB"; then
5502 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir
=.
5509 for ac_exec_ext
in '' $ac_executable_extensions; do
5510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5522 if test -n "$ac_ct_RANLIB"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5524 $as_echo "$ac_ct_RANLIB" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5530 if test "x$ac_ct_RANLIB" = x
; then
5533 case $cross_compiling:$ac_tool_warned in
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537 ac_tool_warned
=yes ;;
5539 RANLIB
=$ac_ct_RANLIB
5542 RANLIB
="$ac_cv_prog_RANLIB"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5547 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5549 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5550 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5551 $as_echo_n "(cached) " >&6
5553 cat >conftest.
make <<\_ACEOF
5556 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5558 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5559 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5561 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5563 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5567 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 $as_echo "yes" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 SET_MAKE
="MAKE=${MAKE-make}"
5578 # Add CET specific flags if CET is enabled
5579 # Check whether --enable-cet was given.
5580 if test "${enable_cet+set}" = set; then :
5581 enableval
=$enable_cet;
5582 case "$enableval" in
5584 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5593 $as_echo_n "checking for CET support... " >&6; }
5595 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5597 i
[34567]86-*-linux* | x86_64-
*-linux*)
5598 case "$enable_cet" in
5600 # Check if target supports multi-byte NOPs
5601 # and if compiler and assembler support CET insn.
5602 cet_save_CFLAGS
="$CFLAGS"
5603 CFLAGS
="$CFLAGS -fcf-protection"
5604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5611 #if !defined(__SSE2__)
5612 #error target does not support multi-byte NOPs
5621 if ac_fn_c_try_compile
"$LINENO"; then :
5626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5627 CFLAGS
="$cet_save_CFLAGS"
5630 # Check if assembler supports CET.
5631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5642 if ac_fn_c_try_compile
"$LINENO"; then :
5645 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
5647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5655 if test x
$enable_cet = xyes
; then
5656 CET_FLAGS
="-fcf-protection -mshstk"
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 # To ensure that runtime code for CET is compiled in, add in D version flags.
5666 if test x
$enable_cet = xyes
; then :
5668 CET_DFLAGS
="$CET_FLAGS -fversion=CET"
5669 DCFG_ENABLE_CET
=true
5674 DCFG_ENABLE_CET
=false
5680 # This should be inherited in the recursive make, but ensure it is defined.
5684 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5692 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5697 macro_version
='2.2.7a'
5698 macro_revision
='1.3134'
5712 ltmain
="$ac_aux_dir/ltmain.sh"
5714 # Backslashify metacharacters that are still active within
5715 # double-quoted strings.
5716 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5718 # Same as above, but do not quote variable references.
5719 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5721 # Sed substitution to delay expansion of an escaped shell variable in a
5722 # double_quote_subst'ed string.
5723 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5725 # Sed substitution to delay expansion of an escaped single quote.
5726 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5728 # Sed substitution to avoid accidental globbing in evaled expressions
5729 no_glob_subst
='s/\*/\\\*/g'
5731 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5732 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5733 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5736 $as_echo_n "checking how to print strings... " >&6; }
5737 # Test print first, because it will be a builtin if present.
5738 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5739 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5741 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5744 # Use this function as a fallback that always works.
5745 func_fallback_echo ()
5747 eval 'cat <<_LTECHO_EOF
5751 ECHO='func_fallback_echo
'
5754 # func_echo_all arg...
5755 # Invoke $ECHO with all args, space-separated.
5762 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5763 $as_echo "printf" >&6; } ;;
5764 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5765 $as_echo "print -r" >&6; } ;;
5766 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5767 $as_echo "cat" >&6; } ;;
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5784 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5785 if ${ac_cv_path_SED+:} false; then :
5786 $as_echo_n "(cached) " >&6
5788 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5789 for ac_i in 1 2 3 4 5 6 7; do
5790 ac_script="$ac_script$as_nl$ac_script"
5792 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5793 { ac_script=; unset ac_script;}
5794 if test -z "$SED"; then
5795 ac_path_SED_found=false
5796 # Loop through the user's path and
test for each of PROGNAME-LIST
5797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir
=.
5802 for ac_prog
in sed gsed
; do
5803 for ac_exec_ext
in '' $ac_executable_extensions; do
5804 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5805 as_fn_executable_p
"$ac_path_SED" ||
continue
5806 # Check for GNU ac_path_SED and select it if it is found.
5807 # Check for GNU $ac_path_SED
5808 case `"$ac_path_SED" --version 2>&1` in
5810 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5813 $as_echo_n 0123456789 >"conftest.in"
5816 cat "conftest.in" "conftest.in" >"conftest.tmp"
5817 mv "conftest.tmp" "conftest.in"
5818 cp "conftest.in" "conftest.nl"
5819 $as_echo '' >> "conftest.nl"
5820 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5821 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5822 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5823 if test $ac_count -gt ${ac_path_SED_max-0}; then
5824 # Best one so far, save it but keep looking for a better one
5825 ac_cv_path_SED
="$ac_path_SED"
5826 ac_path_SED_max
=$ac_count
5828 # 10*(2^10) chars as input seems more than enough
5829 test $ac_count -gt 10 && break
5831 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5834 $ac_path_SED_found && break 3
5839 if test -z "$ac_cv_path_SED"; then
5840 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5848 $as_echo "$ac_cv_path_SED" >&6; }
5849 SED
="$ac_cv_path_SED"
5852 test -z "$SED" && SED
=sed
5853 Xsed
="$SED -e 1s/^X//"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5866 $as_echo_n "checking for fgrep... " >&6; }
5867 if ${ac_cv_path_FGREP+:} false
; then :
5868 $as_echo_n "(cached) " >&6
5870 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5871 then ac_cv_path_FGREP
="$GREP -F"
5873 if test -z "$FGREP"; then
5874 ac_path_FGREP_found
=false
5875 # Loop through the user's path and test for each of PROGNAME-LIST
5876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5877 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5880 test -z "$as_dir" && as_dir
=.
5881 for ac_prog
in fgrep
; do
5882 for ac_exec_ext
in '' $ac_executable_extensions; do
5883 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5884 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5885 # Check for GNU ac_path_FGREP and select it if it is found.
5886 # Check for GNU $ac_path_FGREP
5887 case `"$ac_path_FGREP" --version 2>&1` in
5889 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5892 $as_echo_n 0123456789 >"conftest.in"
5895 cat "conftest.in" "conftest.in" >"conftest.tmp"
5896 mv "conftest.tmp" "conftest.in"
5897 cp "conftest.in" "conftest.nl"
5898 $as_echo 'FGREP' >> "conftest.nl"
5899 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5900 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5901 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5902 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_FGREP
="$ac_path_FGREP"
5905 ac_path_FGREP_max
=$ac_count
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5910 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5913 $ac_path_FGREP_found && break 3
5918 if test -z "$ac_cv_path_FGREP"; then
5919 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5922 ac_cv_path_FGREP
=$FGREP
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5928 $as_echo "$ac_cv_path_FGREP" >&6; }
5929 FGREP
="$ac_cv_path_FGREP"
5932 test -z "$GREP" && GREP
=grep
5952 # Check whether --with-gnu-ld was given.
5953 if test "${with_gnu_ld+set}" = set; then :
5954 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5960 if test "$GCC" = yes; then
5961 # Check if gcc -print-prog-name=ld gives a path.
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5963 $as_echo_n "checking for ld used by $CC... " >&6; }
5966 # gcc leaves a trailing carriage return which upsets mingw
5967 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5969 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5972 # Accept absolute paths.
5974 re_direlt
='/[^/][^/]*/\.\./'
5975 # Canonicalize the pathname of ld
5976 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5977 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5978 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5980 test -z "$LD" && LD
="$ac_prog"
5983 # If it fails, then pretend we aren't using GCC.
5987 # If it is relative, then search for the first ld in PATH.
5991 elif test "$with_gnu_ld" = yes; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5993 $as_echo_n "checking for GNU ld... " >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5996 $as_echo_n "checking for non-GNU ld... " >&6; }
5998 if ${lt_cv_path_LD+:} false
; then :
5999 $as_echo_n "(cached) " >&6
6001 if test -z "$LD"; then
6002 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6003 for ac_dir
in $PATH; do
6005 test -z "$ac_dir" && ac_dir
=.
6006 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6007 lt_cv_path_LD
="$ac_dir/$ac_prog"
6008 # Check to see if the program is GNU ld. I'd rather use --version,
6009 # but apparently some variants of GNU ld only accept -v.
6010 # Break only if it was the GNU/non-GNU ld that we prefer.
6011 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6012 *GNU
* |
*'with BFD'*)
6013 test "$with_gnu_ld" != no
&& break
6016 test "$with_gnu_ld" != yes && break
6023 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6028 if test -n "$LD"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6030 $as_echo "$LD" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6035 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6038 if ${lt_cv_prog_gnu_ld+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6042 case `$LD -v 2>&1 </dev/null` in
6043 *GNU
* |
*'with BFD'*)
6044 lt_cv_prog_gnu_ld
=yes
6047 lt_cv_prog_gnu_ld
=no
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6052 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6053 with_gnu_ld
=$lt_cv_prog_gnu_ld
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6064 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6065 if ${lt_cv_path_NM+:} false
; then :
6066 $as_echo_n "(cached) " >&6
6068 if test -n "$NM"; then
6069 # Let the user override the nm to test.
6070 lt_nm_to_check
="$NM"
6072 lt_nm_to_check
="${ac_tool_prefix}nm"
6073 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6074 lt_nm_to_check
="$lt_nm_to_check nm"
6077 for lt_tmp_nm
in "$lt_nm_to_check"; do
6078 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6079 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6081 test -z "$ac_dir" && ac_dir
=.
6082 # Strip out any user-provided options from the nm to test twice,
6083 # the first time to test to see if nm (rather than its options) has
6084 # an explicit path, the second time to yield a file which can be
6086 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6087 case "$tmp_nm_path" in
6088 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
6089 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
6091 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6092 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
6093 # Check to see if the nm accepts a BSD-compat flag.
6094 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6095 # nm: unknown option "B" ignored
6096 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6097 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
6101 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6103 lt_cv_path_NM
="$tmp_nm -p"
6107 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6108 continue # so that we can try to find one that supports BSD flags
6117 : ${lt_cv_path_NM=no}
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6120 $as_echo "$lt_cv_path_NM" >&6; }
6121 if test "$lt_cv_path_NM" != "no"; then
6124 # Didn't find any BSD compatible name lister, look for dumpbin.
6125 if test -n "$DUMPBIN"; then :
6126 # Let the user override the test.
6128 if test -n "$ac_tool_prefix"; then
6129 for ac_prog
in dumpbin
"link -dump"
6131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6132 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6136 $as_echo_n "(cached) " >&6
6138 if test -n "$DUMPBIN"; then
6139 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir
=.
6146 for ac_exec_ext
in '' $ac_executable_extensions; do
6147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 DUMPBIN
=$ac_cv_prog_DUMPBIN
6159 if test -n "$DUMPBIN"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6161 $as_echo "$DUMPBIN" >&6; }
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6168 test -n "$DUMPBIN" && break
6171 if test -z "$DUMPBIN"; then
6172 ac_ct_DUMPBIN
=$DUMPBIN
6173 for ac_prog
in dumpbin
"link -dump"
6175 # Extract the first word of "$ac_prog", so it can be a program name with args.
6176 set dummy
$ac_prog; ac_word
=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6180 $as_echo_n "(cached) " >&6
6182 if test -n "$ac_ct_DUMPBIN"; then
6183 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir
=.
6190 for ac_exec_ext
in '' $ac_executable_extensions; do
6191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6203 if test -n "$ac_ct_DUMPBIN"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6205 $as_echo "$ac_ct_DUMPBIN" >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6212 test -n "$ac_ct_DUMPBIN" && break
6215 if test "x$ac_ct_DUMPBIN" = x
; then
6218 case $cross_compiling:$ac_tool_warned in
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned
=yes ;;
6224 DUMPBIN
=$ac_ct_DUMPBIN
6228 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6230 DUMPBIN
="$DUMPBIN -symbols"
6238 if test "$DUMPBIN" != ":"; then
6242 test -z "$NM" && NM
=nm
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6250 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6251 if ${lt_cv_nm_interface+:} false
; then :
6252 $as_echo_n "(cached) " >&6
6254 lt_cv_nm_interface
="BSD nm"
6255 echo "int some_variable = 0;" > conftest.
$ac_ext
6256 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6257 (eval "$ac_compile" 2>conftest.err
)
6258 cat conftest.err
>&5
6259 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6260 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6261 cat conftest.err
>&5
6262 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6263 cat conftest.out
>&5
6264 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6265 lt_cv_nm_interface
="MS dumpbin"
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6270 $as_echo "$lt_cv_nm_interface" >&6; }
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6273 $as_echo_n "checking whether ln -s works... " >&6; }
6275 if test "$LN_S" = "ln -s"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6277 $as_echo "yes" >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6280 $as_echo "no, using $LN_S" >&6; }
6283 # find the maximum length of command line arguments
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6285 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6286 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6287 $as_echo_n "(cached) " >&6
6294 # On DJGPP, this test can blow up pretty badly due to problems in libc
6295 # (any single argument exceeding 2000 bytes causes a buffer overrun
6296 # during glob expansion). Even if it were fixed, the result of this
6297 # check would be larger than it should be.
6298 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6302 # Under GNU Hurd, this test is not required because there is
6303 # no limit to the length of command line arguments.
6304 # Libtool will interpret -1 as no limit whatsoever
6305 lt_cv_sys_max_cmd_len
=-1;
6308 cygwin
* | mingw
* | cegcc
*)
6309 # On Win9x/ME, this test blows up -- it succeeds, but takes
6310 # about 5 minutes as the teststring grows exponentially.
6311 # Worse, since 9x/ME are not pre-emptively multitasking,
6312 # you end up with a "frozen" computer, even though with patience
6313 # the test eventually succeeds (with a max line length of 256k).
6314 # Instead, let's just punt: use the minimum linelength reported by
6315 # all of the supported platforms: 8192 (on NT/2K/XP).
6316 lt_cv_sys_max_cmd_len
=8192;
6320 # On MiNT this can take a long time and run out of memory.
6321 lt_cv_sys_max_cmd_len
=8192;
6325 # On AmigaOS with pdksh, this test takes hours, literally.
6326 # So we just punt and use a minimum line length of 8192.
6327 lt_cv_sys_max_cmd_len
=8192;
6330 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6331 # This has been around since 386BSD, at least. Likely further.
6332 if test -x /sbin
/sysctl
; then
6333 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6334 elif test -x /usr
/sbin
/sysctl
; then
6335 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6337 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6339 # And add a safety zone
6340 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6341 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6345 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6346 lt_cv_sys_max_cmd_len
=196608
6350 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6351 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6352 # nice to cause kernel panics so lets avoid the loop below.
6353 # First set a reasonable default.
6354 lt_cv_sys_max_cmd_len
=16384
6356 if test -x /sbin
/sysconfig
; then
6357 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6358 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6363 lt_cv_sys_max_cmd_len
=102400
6365 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6366 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6367 if test -n "$kargmax"; then
6368 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6370 lt_cv_sys_max_cmd_len
=32768
6374 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6375 if test -n "$lt_cv_sys_max_cmd_len"; then
6376 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6377 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6379 # Make teststring a little bigger before we do anything with it.
6380 # a 1K string should be a reasonable start.
6381 for i
in 1 2 3 4 5 6 7 8 ; do
6382 teststring
=$teststring$teststring
6384 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6385 # If test is not a shell built-in, we'll probably end up computing a
6386 # maximum length that is only half of the actual maximum length, but
6388 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6389 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6390 test $i != 17 # 1/2 MB should be enough
6393 teststring
=$teststring$teststring
6395 # Only check the string length outside the loop.
6396 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6398 # Add a significant safety factor because C++ compilers can tack on
6399 # massive amounts of additional arguments before passing them to the
6400 # linker. It appears as though 1/2 is a usable value.
6401 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6408 if test -n $lt_cv_sys_max_cmd_len ; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6410 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6413 $as_echo "none" >&6; }
6415 max_cmd_len
=$lt_cv_sys_max_cmd_len
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6427 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6428 # Try some XSI features
6431 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6433 && eval 'test $(( 1 + 1 )) -eq 2 \
6434 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6437 $as_echo "$xsi_shell" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6441 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6443 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6445 && lt_shell_append=yes
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6447 $as_echo "$lt_shell_append" >&6; }
6450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6460 # test EBCDIC or ASCII
6461 case `echo X|tr X '\101'` in
6462 A) # ASCII based system
6463 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6464 lt_SP2NL='tr \040 \012'
6465 lt_NL2SP='tr \015\012 \040\040'
6467 *) # EBCDIC based system
6468 lt_SP2NL='tr \100 \n'
6469 lt_NL2SP='tr \r\n \100\100'
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6482 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6483 if ${lt_cv_ld_reload_flag+:} false; then :
6484 $as_echo_n "(cached
) " >&6
6486 lt_cv_ld_reload_flag='-r'
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6489 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6490 reload_flag=$lt_cv_ld_reload_flag
6491 case $reload_flag in
6493 *) reload_flag=" $reload_flag" ;;
6495 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6498 if test "$GCC" = yes; then
6499 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6501 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6518 $as_echo_n "checking
for $ac_word...
" >&6; }
6519 if ${ac_cv_prog_OBJDUMP+:} false; then :
6520 $as_echo_n "(cached
) " >&6
6522 if test -n "$OBJDUMP"; then
6523 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6542 OBJDUMP=$ac_cv_prog_OBJDUMP
6543 if test -n "$OBJDUMP"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6545 $as_echo "$OBJDUMP" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6548 $as_echo "no
" >&6; }
6553 if test -z "$ac_cv_prog_OBJDUMP"; then
6554 ac_ct_OBJDUMP=$OBJDUMP
6555 # Extract the first word of "objdump
", so it can be a program name with args.
6556 set dummy objdump; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6558 $as_echo_n "checking
for $ac_word...
" >&6; }
6559 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6560 $as_echo_n "(cached
) " >&6
6562 if test -n "$ac_ct_OBJDUMP"; then
6563 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6583 if test -n "$ac_ct_OBJDUMP"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6585 $as_echo "$ac_ct_OBJDUMP" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6588 $as_echo "no
" >&6; }
6591 if test "x
$ac_ct_OBJDUMP" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6597 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6598 ac_tool_warned=yes ;;
6600 OBJDUMP=$ac_ct_OBJDUMP
6603 OBJDUMP="$ac_cv_prog_OBJDUMP"
6606 test -z "$OBJDUMP" && OBJDUMP=objdump
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6617 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6618 if ${lt_cv_deplibs_check_method+:} false; then :
6619 $as_echo_n "(cached
) " >&6
6621 lt_cv_file_magic_cmd='$MAGIC_CMD'
6622 lt_cv_file_magic_test_file=
6623 lt_cv_deplibs_check_method='unknown'
6624 # Need to set the preceding variable on all platforms that support
6625 # interlibrary dependencies.
6626 # 'none' -- dependencies not supported.
6627 # `unknown' -- same as none, but documents that we really don't know.
6628 # 'pass_all' -- all dependencies passed with no checks.
6629 # 'test_compile' -- check by making test program.
6630 # 'file_magic [[regex]]' -- check by looking for files in library path
6631 # which responds to the $file_magic_cmd with a given extended regex.
6632 # If you have `file' or equivalent on your system and you're not sure
6633 # whether `pass_all' will *always* work, you probably want this one.
6637 lt_cv_deplibs_check_method=pass_all
6641 lt_cv_deplibs_check_method=pass_all
6645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6646 lt_cv_file_magic_cmd='/usr/bin/file -L'
6647 lt_cv_file_magic_test_file=/shlib/libc.so
6651 # func_win32_libid is a shell function defined in ltmain.sh
6652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6653 lt_cv_file_magic_cmd='func_win32_libid'
6657 # Base MSYS/MinGW do not provide the 'file' command needed by
6658 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6659 # unless we find 'file', for example because we are cross-compiling.
6660 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6661 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6663 lt_cv_file_magic_cmd='func_win32_libid'
6665 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6666 lt_cv_file_magic_cmd='$OBJDUMP -f'
6671 # use the weaker test based on 'objdump'. See mingw*.
6672 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6673 lt_cv_file_magic_cmd='$OBJDUMP -f'
6676 darwin* | rhapsody*)
6677 lt_cv_deplibs_check_method=pass_all
6680 freebsd* | dragonfly*)
6681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6684 # Not sure whether the presence of OpenBSD here was a mistake.
6685 # Let's accept both of them until this is cleared up.
6686 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6687 lt_cv_file_magic_cmd=/usr/bin/file
6688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6692 lt_cv_deplibs_check_method=pass_all
6697 lt_cv_deplibs_check_method=pass_all
6701 lt_cv_deplibs_check_method=pass_all
6704 hpux10.20* | hpux11*)
6705 lt_cv_file_magic_cmd=/usr/bin/file
6708 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6709 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6712 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]'
6713 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6716 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6717 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6723 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6727 irix5* | irix6* | nonstopux*)
6729 *-32|*"-32 ") libmagic=32-bit;;
6730 *-n32|*"-n32 ") libmagic=N32;;
6731 *-64|*"-64 ") libmagic=64-bit;;
6732 *) libmagic=never-match;;
6734 lt_cv_deplibs_check_method=pass_all
6737 # This must be Linux ELF.
6738 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6739 lt_cv_deplibs_check_method=pass_all
6743 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6752 lt_cv_file_magic_cmd=/usr/bin/file
6753 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6757 lt_cv_deplibs_check_method=pass_all
6761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6768 osf3* | osf4* | osf5*)
6769 lt_cv_deplibs_check_method=pass_all
6773 lt_cv_deplibs_check_method=pass_all
6777 lt_cv_deplibs_check_method=pass_all
6780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6781 lt_cv_deplibs_check_method=pass_all
6785 case $host_vendor in
6787 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]'
6788 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6791 lt_cv_deplibs_check_method=pass_all
6794 lt_cv_file_magic_cmd='/bin/file'
6795 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6798 lt_cv_file_magic_cmd='/bin/file'
6799 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6800 lt_cv_file_magic_test_file=/lib/libc.so
6803 lt_cv_deplibs_check_method=pass_all
6806 lt_cv_deplibs_check_method=pass_all
6812 lt_cv_deplibs_check_method=pass_all
6815 # Assume VxWorks cross toolchains are built on Linux, possibly
6816 # as canadian for Windows hosts.
6817 lt_cv_deplibs_check_method=pass_all
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6823 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6824 file_magic_cmd=$lt_cv_file_magic_cmd
6825 deplibs_check_method=$lt_cv_deplibs_check_method
6826 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6840 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6841 for plugin in $plugin_names; do
6842 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6843 if test x$plugin_so = x$plugin; then
6844 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6846 if test x$plugin_so != x$plugin; then
6847 plugin_option="--plugin $plugin_so"
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}ar; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6856 $as_echo_n "checking
for $ac_word...
" >&6; }
6857 if ${ac_cv_prog_AR+:} false; then :
6858 $as_echo_n "(cached
) " >&6
6860 if test -n "$AR"; then
6861 ac_cv_prog_AR="$AR" # Let the user override the test.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_AR="${ac_tool_prefix}ar"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6881 if test -n "$AR"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6883 $as_echo "$AR" >&6; }
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6886 $as_echo "no
" >&6; }
6891 if test -z "$ac_cv_prog_AR"; then
6893 # Extract the first word of "ar", so it can be a program name with args.
6894 set dummy ar; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6896 $as_echo_n "checking
for $ac_word...
" >&6; }
6897 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6898 $as_echo_n "(cached
) " >&6
6900 if test -n "$ac_ct_AR"; then
6901 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_AR="ar"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6920 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6921 if test -n "$ac_ct_AR"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6923 $as_echo "$ac_ct_AR" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6926 $as_echo "no
" >&6; }
6929 if test "x
$ac_ct_AR" = x; then
6932 case $cross_compiling:$ac_tool_warned in
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6935 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6936 ac_tool_warned=yes ;;
6944 test -z "$AR" && AR=ar
6945 if test -n "$plugin_option"; then
6946 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6948 $AR $plugin_option rc conftest.a conftest.c
6949 if test "$?
" != 0; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6951 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6953 AR="$AR $plugin_option"
6958 test -z "$AR_FLAGS" && AR_FLAGS=cru
6970 if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6972 set dummy ${ac_tool_prefix}strip; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6974 $as_echo_n "checking
for $ac_word...
" >&6; }
6975 if ${ac_cv_prog_STRIP+:} false; then :
6976 $as_echo_n "(cached
) " >&6
6978 if test -n "$STRIP"; then
6979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6998 STRIP=$ac_cv_prog_STRIP
6999 if test -n "$STRIP"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7001 $as_echo "$STRIP" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7004 $as_echo "no
" >&6; }
7009 if test -z "$ac_cv_prog_STRIP"; then
7011 # Extract the first word of "strip
", so it can be a program name with args.
7012 set dummy strip; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7014 $as_echo_n "checking
for $ac_word...
" >&6; }
7015 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7016 $as_echo_n "(cached
) " >&6
7018 if test -n "$ac_ct_STRIP"; then
7019 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028 ac_cv_prog_ac_ct_STRIP="strip
"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7038 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7039 if test -n "$ac_ct_STRIP"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7041 $as_echo "$ac_ct_STRIP" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7044 $as_echo "no
" >&6; }
7047 if test "x
$ac_ct_STRIP" = x; then
7050 case $cross_compiling:$ac_tool_warned in
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7053 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7054 ac_tool_warned=yes ;;
7059 STRIP="$ac_cv_prog_STRIP"
7062 test -z "$STRIP" && STRIP=:
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7073 $as_echo_n "checking
for $ac_word...
" >&6; }
7074 if ${ac_cv_prog_RANLIB+:} false; then :
7075 $as_echo_n "(cached
) " >&6
7077 if test -n "$RANLIB"; then
7078 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7097 RANLIB=$ac_cv_prog_RANLIB
7098 if test -n "$RANLIB"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7100 $as_echo "$RANLIB" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7103 $as_echo "no
" >&6; }
7108 if test -z "$ac_cv_prog_RANLIB"; then
7109 ac_ct_RANLIB=$RANLIB
7110 # Extract the first word of "ranlib
", so it can be a program name with args.
7111 set dummy ranlib; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7113 $as_echo_n "checking
for $ac_word...
" >&6; }
7114 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7115 $as_echo_n "(cached
) " >&6
7117 if test -n "$ac_ct_RANLIB"; then
7118 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7137 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7138 if test -n "$ac_ct_RANLIB"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7140 $as_echo "$ac_ct_RANLIB" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7143 $as_echo "no
" >&6; }
7146 if test "x
$ac_ct_RANLIB" = x; then
7149 case $cross_compiling:$ac_tool_warned in
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7152 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7153 ac_tool_warned=yes ;;
7155 RANLIB=$ac_ct_RANLIB
7158 RANLIB="$ac_cv_prog_RANLIB"
7161 test -z "$RANLIB" && RANLIB=:
7162 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7163 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7164 RANLIB="$RANLIB $plugin_option"
7173 # Determine commands to create old-style static archives.
7174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7175 old_postinstall_cmds='chmod 644 $oldlib'
7176 old_postuninstall_cmds=
7178 if test -n "$RANLIB"; then
7181 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7184 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7187 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7192 lock_old_archive_extraction=yes ;;
7194 lock_old_archive_extraction=no ;;
7235 # If no C compiler was specified, use CC.
7238 # If no C compiler flags were specified, use CFLAGS.
7239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7241 # Allow CC to be a program name with arguments.
7245 # Check for command to grab the raw symbol name followed by C symbol from nm.
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7247 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7248 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7249 $as_echo_n "(cached
) " >&6
7252 # These are sane defaults that work on at least a few old systems.
7253 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7255 # Character class describing NM global symbol codes.
7256 symcode='[BCDEGRST]'
7258 # Regexp to match symbols that can be accessed directly from C.
7259 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7261 # Define system-specific variables.
7266 cygwin* | mingw* | pw32* | cegcc*)
7267 symcode='[ABCDGISTW]'
7270 if test "$host_cpu" = ia64; then
7271 symcode='[ABCDEGRST]'
7275 symcode='[BCDEGRST]'
7278 symcode='[BCDEGQRST]'
7289 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7297 # If we're using GNU nm, then use its standard symbol codes.
7298 case `$NM -V 2>&1` in
7299 *GNU* | *'with BFD'*)
7300 symcode='[ABCDGIRSTW]' ;;
7303 # Transform an extracted symbol line into a proper C declaration.
7304 # Some systems (esp. on ia64) link data and code symbols differently,
7305 # so use this general approach.
7306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7308 # Transform an extracted symbol line into symbol name and symbol address
7309 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7310 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'"
7312 # Handle CRLF in mingw tool chain
7316 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7320 # Try without a prefix underscore, then with it.
7321 for ac_symprfx in "" "_
"; do
7323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7324 symxfrm="\\1 $ac_symprfx\\2 \\2"
7326 # Write the raw and C identifiers.
7327 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7328 # Fake it for dumpbin and say T for any non-static function
7329 # and D for any global variable.
7330 # Also find C++ and __fastcall symbols from MSVC++,
7331 # which start with @ or ?.
7332 lt_cv_sys_global_symbol_pipe="$AWK '"\
7333 " {last_section=section; section=\$ 3};"\
7334 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7335 " \$ 0!~/External *\|/{next};"\
7336 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7337 " {if(hide[section]) next};"\
7338 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7339 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7340 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7341 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7342 " ' prfx
=^
$ac_symprfx"
7344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7347 # Check to see that the pipe works correctly.
7351 cat > conftest.$ac_ext <<_LT_EOF
7356 void nm_test_func(void);
7357 void nm_test_func(void){}
7361 int main(){nm_test_var='a';nm_test_func();return(0);}
7364 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365 (eval $ac_compile) 2>&5
7367 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7368 test $ac_status = 0; }; then
7369 # Now try to grab the symbols.
7371 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7372 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7374 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7375 test $ac_status = 0; } && test -s "$nlist"; then
7376 # Try sorting and uniquifying the output.
7377 if sort "$nlist" | uniq > "$nlist"T; then
7378 mv -f "$nlist"T "$nlist"
7383 # Make sure that we snagged all the symbols we need.
7384 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7385 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7386 cat <<_LT_EOF > conftest.$ac_ext
7392 # Now generate the symbol file.
7393 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7395 cat <<_LT_EOF >> conftest.$ac_ext
7397 /* The mapping between symbol names and symbols. */
7402 lt__PROGRAM__LTX_preloaded_symbols[] =
7404 { "@PROGRAM@
", (void *) 0 },
7406 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7407 cat <<\_LT_EOF >> conftest.$ac_ext
7411 /* This works around a problem in FreeBSD linker */
7412 #ifdef FREEBSD_WORKAROUND
7413 static const void *lt_preloaded_setup() {
7414 return lt__PROGRAM__LTX_preloaded_symbols;
7422 # Now try linking the two files.
7423 mv conftest.$ac_objext conftstm.$ac_objext
7424 lt_save_LIBS="$LIBS"
7425 lt_save_CFLAGS="$CFLAGS"
7426 LIBS="conftstm.
$ac_objext"
7427 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7428 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7429 (eval $ac_link) 2>&5
7431 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7432 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7435 LIBS="$lt_save_LIBS"
7436 CFLAGS="$lt_save_CFLAGS"
7438 echo "cannot
find nm_test_func
in $nlist" >&5
7441 echo "cannot
find nm_test_var
in $nlist" >&5
7444 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7447 echo "$progname: failed program was
:" >&5
7448 cat conftest.$ac_ext >&5
7450 rm -rf conftest* conftst*
7452 # Do not use the global_symbol_pipe unless it works.
7453 if test "$pipe_works" = yes; then
7456 lt_cv_sys_global_symbol_pipe=
7462 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7463 lt_cv_sys_global_symbol_to_cdecl=
7465 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7467 $as_echo "failed
" >&6; }
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7470 $as_echo "ok
" >&6; }
7494 # Check whether --enable-libtool-lock was given.
7495 if test "${enable_libtool_lock+set}" = set; then :
7496 enableval=$enable_libtool_lock;
7499 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7501 # Some flags need to be propagated to the compiler or linker for good
7505 # Find out which ABI we are using.
7506 echo 'int i;' > conftest.$ac_ext
7507 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508 (eval $ac_compile) 2>&5
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 case `/usr/bin/file conftest.$ac_objext` in
7524 # Find out which ABI we are using.
7525 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7526 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 if test "$lt_cv_prog_gnu_ld" = yes; then
7532 case `/usr/bin/file conftest.$ac_objext` in
7534 LD="${LD-ld} -melf32bsmip"
7537 LD="${LD-ld} -melf32bmipn32"
7540 LD="${LD-ld} -melf64bmip"
7544 case `/usr/bin/file conftest.$ac_objext` in
7560 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7561 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7562 # Find out which ABI we are using.
7563 echo 'int i;' > conftest.$ac_ext
7564 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7565 (eval $ac_compile) 2>&5
7567 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7568 test $ac_status = 0; }; then
7569 case `/usr/bin/file conftest.o` in
7572 x86_64-*kfreebsd*-gnu)
7573 LD="${LD-ld} -m elf_i386_fbsd
"
7576 case `/usr/bin/file conftest.o` in
7578 LD="${LD-ld} -m elf32_x86_64
"
7581 LD="${LD-ld} -m elf_i386
"
7585 powerpc64le-*linux*)
7586 LD="${LD-ld} -m elf32lppclinux
"
7589 LD="${LD-ld} -m elf32ppclinux
"
7592 LD="${LD-ld} -m elf_s390
"
7595 LD="${LD-ld} -m elf32_sparc
"
7601 x86_64-*kfreebsd*-gnu)
7602 LD="${LD-ld} -m elf_x86_64_fbsd
"
7605 LD="${LD-ld} -m elf_x86_64
"
7608 LD="${LD-ld} -m elf64lppc
"
7611 LD="${LD-ld} -m elf64ppc
"
7613 s390*-*linux*|s390*-*tpf*)
7614 LD="${LD-ld} -m elf64_s390
"
7617 LD="${LD-ld} -m elf64_sparc
"
7627 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7628 SAVE_CFLAGS="$CFLAGS"
7629 CFLAGS="$CFLAGS -belf"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7631 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7632 if ${lt_cv_cc_needs_belf+:} false; then :
7633 $as_echo_n "(cached
) " >&6
7636 ac_cpp='$CPP $CPPFLAGS'
7637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 lt_cv_cc_needs_belf=yes
7655 lt_cv_cc_needs_belf=no
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7667 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7668 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7669 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7670 CFLAGS="$SAVE_CFLAGS"
7674 # Find out which ABI we are using.
7675 echo 'int i;' > conftest.$ac_ext
7676 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7677 (eval $ac_compile) 2>&5
7679 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7680 test $ac_status = 0; }; then
7681 case `/usr/bin/file conftest.o` in
7683 case $lt_cv_prog_gnu_ld in
7684 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7686 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7698 need_locks="$enable_libtool_lock"
7702 rhapsody* | darwin*)
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7707 $as_echo_n "checking
for $ac_word...
" >&6; }
7708 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7709 $as_echo_n "(cached
) " >&6
7711 if test -n "$DSYMUTIL"; then
7712 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7731 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7732 if test -n "$DSYMUTIL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7734 $as_echo "$DSYMUTIL" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7737 $as_echo "no
" >&6; }
7742 if test -z "$ac_cv_prog_DSYMUTIL"; then
7743 ac_ct_DSYMUTIL=$DSYMUTIL
7744 # Extract the first word of "dsymutil
", so it can be a program name with args.
7745 set dummy dsymutil; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7747 $as_echo_n "checking
for $ac_word...
" >&6; }
7748 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7749 $as_echo_n "(cached
) " >&6
7751 if test -n "$ac_ct_DSYMUTIL"; then
7752 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7772 if test -n "$ac_ct_DSYMUTIL"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7774 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7777 $as_echo "no
" >&6; }
7780 if test "x
$ac_ct_DSYMUTIL" = x; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7786 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7787 ac_tool_warned=yes ;;
7789 DSYMUTIL=$ac_ct_DSYMUTIL
7792 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7799 $as_echo_n "checking
for $ac_word...
" >&6; }
7800 if ${ac_cv_prog_NMEDIT+:} false; then :
7801 $as_echo_n "(cached
) " >&6
7803 if test -n "$NMEDIT"; then
7804 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7823 NMEDIT=$ac_cv_prog_NMEDIT
7824 if test -n "$NMEDIT"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7826 $as_echo "$NMEDIT" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7829 $as_echo "no
" >&6; }
7834 if test -z "$ac_cv_prog_NMEDIT"; then
7835 ac_ct_NMEDIT=$NMEDIT
7836 # Extract the first word of "nmedit
", so it can be a program name with args.
7837 set dummy nmedit; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7839 $as_echo_n "checking
for $ac_word...
" >&6; }
7840 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7841 $as_echo_n "(cached
) " >&6
7843 if test -n "$ac_ct_NMEDIT"; then
7844 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7864 if test -n "$ac_ct_NMEDIT"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7866 $as_echo "$ac_ct_NMEDIT" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7869 $as_echo "no
" >&6; }
7872 if test "x
$ac_ct_NMEDIT" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7878 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7879 ac_tool_warned=yes ;;
7881 NMEDIT=$ac_ct_NMEDIT
7884 NMEDIT="$ac_cv_prog_NMEDIT"
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7891 $as_echo_n "checking
for $ac_word...
" >&6; }
7892 if ${ac_cv_prog_LIPO+:} false; then :
7893 $as_echo_n "(cached
) " >&6
7895 if test -n "$LIPO"; then
7896 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7915 LIPO=$ac_cv_prog_LIPO
7916 if test -n "$LIPO"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7918 $as_echo "$LIPO" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7921 $as_echo "no
" >&6; }
7926 if test -z "$ac_cv_prog_LIPO"; then
7928 # Extract the first word of "lipo
", so it can be a program name with args.
7929 set dummy lipo; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7931 $as_echo_n "checking
for $ac_word...
" >&6; }
7932 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7933 $as_echo_n "(cached
) " >&6
7935 if test -n "$ac_ct_LIPO"; then
7936 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_prog_ac_ct_LIPO="lipo
"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7955 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7956 if test -n "$ac_ct_LIPO"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7958 $as_echo "$ac_ct_LIPO" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7961 $as_echo "no
" >&6; }
7964 if test "x
$ac_ct_LIPO" = x; then
7967 case $cross_compiling:$ac_tool_warned in
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7970 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7971 ac_tool_warned=yes ;;
7976 LIPO="$ac_cv_prog_LIPO"
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}otool; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7983 $as_echo_n "checking
for $ac_word...
" >&6; }
7984 if ${ac_cv_prog_OTOOL+:} false; then :
7985 $as_echo_n "(cached
) " >&6
7987 if test -n "$OTOOL"; then
7988 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8007 OTOOL=$ac_cv_prog_OTOOL
8008 if test -n "$OTOOL"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8010 $as_echo "$OTOOL" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8013 $as_echo "no
" >&6; }
8018 if test -z "$ac_cv_prog_OTOOL"; then
8020 # Extract the first word of "otool
", so it can be a program name with args.
8021 set dummy otool; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8023 $as_echo_n "checking
for $ac_word...
" >&6; }
8024 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8025 $as_echo_n "(cached
) " >&6
8027 if test -n "$ac_ct_OTOOL"; then
8028 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_ac_ct_OTOOL="otool
"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8047 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8048 if test -n "$ac_ct_OTOOL"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8050 $as_echo "$ac_ct_OTOOL" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8053 $as_echo "no
" >&6; }
8056 if test "x
$ac_ct_OTOOL" = x; then
8059 case $cross_compiling:$ac_tool_warned in
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8062 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8063 ac_tool_warned=yes ;;
8068 OTOOL="$ac_cv_prog_OTOOL"
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8075 $as_echo_n "checking
for $ac_word...
" >&6; }
8076 if ${ac_cv_prog_OTOOL64+:} false; then :
8077 $as_echo_n "(cached
) " >&6
8079 if test -n "$OTOOL64"; then
8080 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8099 OTOOL64=$ac_cv_prog_OTOOL64
8100 if test -n "$OTOOL64"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8102 $as_echo "$OTOOL64" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8105 $as_echo "no
" >&6; }
8110 if test -z "$ac_cv_prog_OTOOL64"; then
8111 ac_ct_OTOOL64=$OTOOL64
8112 # Extract the first word of "otool64
", so it can be a program name with args.
8113 set dummy otool64; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8115 $as_echo_n "checking
for $ac_word...
" >&6; }
8116 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8117 $as_echo_n "(cached
) " >&6
8119 if test -n "$ac_ct_OTOOL64"; then
8120 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8139 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8140 if test -n "$ac_ct_OTOOL64"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8142 $as_echo "$ac_ct_OTOOL64" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8145 $as_echo "no
" >&6; }
8148 if test "x
$ac_ct_OTOOL64" = x; then
8151 case $cross_compiling:$ac_tool_warned in
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8154 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8155 ac_tool_warned=yes ;;
8157 OTOOL64=$ac_ct_OTOOL64
8160 OTOOL64="$ac_cv_prog_OTOOL64"
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8190 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8191 if ${lt_cv_apple_cc_single_mod+:} false; then :
8192 $as_echo_n "(cached
) " >&6
8194 lt_cv_apple_cc_single_mod=no
8195 if test -z "${LT_MULTI_MODULE}"; then
8196 # By default we will add the -single_module flag. You can override
8197 # by either setting the environment variable LT_MULTI_MODULE
8198 # non-empty at configure time, or by adding -multi_module to the
8200 rm -rf libconftest.dylib*
8201 echo "int foo
(void
){return 1;}" > conftest.c
8202 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8203 -dynamiclib -Wl,-single_module conftest.c
" >&5
8204 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8205 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8207 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8208 lt_cv_apple_cc_single_mod=yes
8210 cat conftest.err >&5
8212 rm -rf libconftest.dylib*
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8217 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8219 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8220 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8221 $as_echo_n "(cached
) " >&6
8223 lt_cv_ld_exported_symbols_list=no
8224 save_LDFLAGS=$LDFLAGS
8225 echo "_main
" > conftest.sym
8226 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8238 if ac_fn_c_try_link "$LINENO"; then :
8239 lt_cv_ld_exported_symbols_list=yes
8241 lt_cv_ld_exported_symbols_list=no
8243 rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LDFLAGS="$save_LDFLAGS"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8249 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8251 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8252 if ${lt_cv_ld_force_load+:} false; then :
8253 $as_echo_n "(cached
) " >&6
8255 lt_cv_ld_force_load=no
8256 cat > conftest.c << _LT_EOF
8257 int forced_loaded() { return 2;}
8259 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8260 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8261 echo "$AR cru libconftest.a conftest.o
" >&5
8262 $AR cru libconftest.a conftest.o 2>&5
8263 cat > conftest.c << _LT_EOF
8264 int main() { return 0;}
8266 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8267 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8269 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8270 lt_cv_ld_force_load=yes
8272 cat conftest.err >&5
8274 rm -f conftest.err libconftest.a conftest conftest.c
8275 rm -rf conftest.dSYM
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8279 $as_echo "$lt_cv_ld_force_load" >&6; }
8280 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8281 # build without first building modern cctools / linker.
8282 case $host_cpu-$host_os in
8283 *-rhapsody* | *-darwin1.[012])
8284 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8286 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8288 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8289 # deployment target is forced to an earlier version.
8290 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8291 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8294 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8301 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8302 _lt_dar_single_mod='$single_module'
8304 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8305 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8307 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8309 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8310 _lt_dsymutil='~$DSYMUTIL $lib || :'
8317 for ac_header in dlfcn.h
8319 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8321 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_DLFCN_H 1
8343 # Check whether --enable-shared was given.
8344 if test "${enable_shared+set}" = set; then :
8345 enableval=$enable_shared; p=${PACKAGE-default}
8347 yes) enable_shared=yes ;;
8348 no) enable_shared=no ;;
8351 # Look at the argument we got. We use all the common list separators.
8352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8353 for pkg in $enableval; do
8355 if test "X
$pkg" = "X
$p"; then
8374 # Check whether --enable-static was given.
8375 if test "${enable_static+set}" = set; then :
8376 enableval=$enable_static; p=${PACKAGE-default}
8378 yes) enable_static=yes ;;
8379 no) enable_static=no ;;
8382 # Look at the argument we got. We use all the common list separators.
8383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8384 for pkg in $enableval; do
8386 if test "X
$pkg" = "X
$p"; then
8406 # Check whether --with-pic was given.
8407 if test "${with_pic+set}" = set; then :
8408 withval=$with_pic; pic_mode="$withval"
8414 test -z "$pic_mode" && pic_mode=default
8422 # Check whether --enable-fast-install was given.
8423 if test "${enable_fast_install+set}" = set; then :
8424 enableval=$enable_fast_install; p=${PACKAGE-default}
8426 yes) enable_fast_install=yes ;;
8427 no) enable_fast_install=no ;;
8429 enable_fast_install=no
8430 # Look at the argument we got. We use all the common list separators.
8431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8432 for pkg in $enableval; do
8434 if test "X
$pkg" = "X
$p"; then
8435 enable_fast_install=yes
8442 enable_fast_install=yes
8455 # This can be used to rebuild libtool when needed
8456 LIBTOOL_DEPS="$ltmain"
8458 # Always use our own libtool.
8459 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8486 test -z "$LN_S" && LN_S="ln -s"
8501 if test -n "${ZSH_VERSION+set}" ; then
8502 setopt NO_GLOB_SUBST
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8506 $as_echo_n "checking
for objdir...
" >&6; }
8507 if ${lt_cv_objdir+:} false; then :
8508 $as_echo_n "(cached
) " >&6
8510 rm -f .libs 2>/dev/null
8511 mkdir .libs 2>/dev/null
8512 if test -d .libs; then
8515 # MS-DOS does not allow filenames that begin with a dot.
8518 rmdir .libs 2>/dev/null
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8521 $as_echo "$lt_cv_objdir" >&6; }
8522 objdir=$lt_cv_objdir
8528 cat >>confdefs.h <<_ACEOF
8529 #define LT_OBJDIR "$lt_cv_objdir/"
8537 # AIX sometimes has problems with the GCC collect2 program. For some
8538 # reason, if we set the COLLECT_NAMES environment variable, the problems
8539 # vanish in a puff of smoke.
8540 if test "X
${COLLECT_NAMES+set}" != Xset; then
8542 export COLLECT_NAMES
8549 can_build_shared=yes
8551 # All known linkers require a `.a' archive for static linking (except MSVC,
8552 # which needs '.lib').
8555 with_gnu_ld="$lt_cv_prog_gnu_ld"
8558 old_CFLAGS="$CFLAGS"
8560 # Set sane defaults for various variables
8561 test -z "$CC" && CC=cc
8562 test -z "$LTCC" && LTCC=$CC
8563 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8564 test -z "$LD" && LD=ld
8565 test -z "$ac_objext" && ac_objext=o
8567 for cc_temp in $compiler""; do
8569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8575 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8578 # Only perform the check for file, if the check method requires it
8579 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8580 case $deplibs_check_method in
8582 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8584 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8585 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8586 $as_echo_n "(cached
) " >&6
8590 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8593 lt_save_MAGIC_CMD="$MAGIC_CMD"
8594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8595 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8596 for ac_dir in $ac_dummy; do
8598 test -z "$ac_dir" && ac_dir=.
8599 if test -f $ac_dir/${ac_tool_prefix}file; then
8600 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8601 if test -n "$file_magic_test_file"; then
8602 case $deplibs_check_method in
8604 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8606 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8607 $EGREP "$file_magic_regex" > /dev/null; then
8612 *** Warning: the command libtool uses to detect shared libraries,
8613 *** $file_magic_cmd, produces output that libtool cannot recognize.
8614 *** The result is that libtool may fail to recognize shared libraries
8615 *** as such. This will affect the creation of libtool libraries that
8616 *** depend on shared libraries, but programs linked with such libtool
8617 *** libraries will work regardless of this problem. Nevertheless, you
8618 *** may want to report the problem to your system manager and/or to
8619 *** bug-libtool@gnu.org
8629 MAGIC_CMD="$lt_save_MAGIC_CMD"
8634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8635 if test -n "$MAGIC_CMD"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8637 $as_echo "$MAGIC_CMD" >&6; }
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8640 $as_echo "no
" >&6; }
8647 if test -z "$lt_cv_path_MAGIC_CMD"; then
8648 if test -n "$ac_tool_prefix"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8650 $as_echo_n "checking
for file...
" >&6; }
8651 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8652 $as_echo_n "(cached
) " >&6
8656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8659 lt_save_MAGIC_CMD="$MAGIC_CMD"
8660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8661 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8662 for ac_dir in $ac_dummy; do
8664 test -z "$ac_dir" && ac_dir=.
8665 if test -f $ac_dir/file; then
8666 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8667 if test -n "$file_magic_test_file"; then
8668 case $deplibs_check_method in
8670 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8673 $EGREP "$file_magic_regex" > /dev/null; then
8678 *** Warning: the command libtool uses to detect shared libraries,
8679 *** $file_magic_cmd, produces output that libtool cannot recognize.
8680 *** The result is that libtool may fail to recognize shared libraries
8681 *** as such. This will affect the creation of libtool libraries that
8682 *** depend on shared libraries, but programs linked with such libtool
8683 *** libraries will work regardless of this problem. Nevertheless, you
8684 *** may want to report the problem to your system manager and/or to
8685 *** bug-libtool@gnu.org
8695 MAGIC_CMD="$lt_save_MAGIC_CMD"
8700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8701 if test -n "$MAGIC_CMD"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8703 $as_echo "$MAGIC_CMD" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8706 $as_echo "no
" >&6; }
8719 # Use C for the default configuration in the libtool script
8723 ac_cpp='$CPP $CPPFLAGS'
8724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8729 # Source file extension for C test sources.
8732 # Object file extension for compiled C test sources.
8736 # Code to be used in simple compile tests
8737 lt_simple_compile_test_code="int some_variable
= 0;"
8739 # Code to be used in simple link tests
8740 lt_simple_link_test_code='int main(){return(0);}'
8748 # If no C compiler was specified, use CC.
8751 # If no C compiler flags were specified, use CFLAGS.
8752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8754 # Allow CC to be a program name with arguments.
8757 # Save the default compiler, since it gets overwritten when the other
8758 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8759 compiler_DEFAULT=$CC
8761 # save warnings/boilerplate of simple test code
8762 ac_outfile=conftest.$ac_objext
8763 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8764 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8765 _lt_compiler_boilerplate=`cat conftest.err`
8768 ac_outfile=conftest.$ac_objext
8769 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8770 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8771 _lt_linker_boilerplate=`cat conftest.err`
8776 ## There is no encapsulation within the following macros, do not change
8777 ## the running order or otherwise move them around unless you know exactly
8778 ## what you are doing...
8779 if test -n "$compiler"; then
8781 lt_prog_compiler_no_builtin_flag=
8783 if test "$GCC" = yes; then
8784 case $cc_basename in
8786 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8788 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8792 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8793 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8794 $as_echo_n "(cached
) " >&6
8796 lt_cv_prog_compiler_rtti_exceptions=no
8797 ac_outfile=conftest.$ac_objext
8798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8799 lt_compiler_flag="-fno-rtti -fno-exceptions"
8800 # Insert the option either (1) after the last *FLAGS variable, or
8801 # (2) before a word containing "conftest.
", or (3) at the end.
8802 # Note that $ac_compile itself does not contain backslashes and begins
8803 # with a dollar sign (not a hyphen), so the echo should work correctly.
8804 # The option is referenced via a variable to avoid confusing sed.
8805 lt_compile=`echo "$ac_compile" | $SED \
8806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808 -e 's:$: $lt_compiler_flag:'`
8809 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8810 (eval "$lt_compile" 2>conftest.err)
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8814 if (exit $ac_status) && test -s "$ac_outfile"; then
8815 # The compiler can only warn and ignore the option if not recognized
8816 # So say no if there are warnings other than the usual output.
8817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8820 lt_cv_prog_compiler_rtti_exceptions=yes
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8827 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8829 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8830 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8842 lt_prog_compiler_wl=
8843 lt_prog_compiler_pic=
8844 lt_prog_compiler_static=
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8847 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8849 if test "$GCC" = yes; then
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_static='-static'
8855 # All AIX code is PIC.
8856 if test "$host_cpu" = ia64; then
8857 # AIX 5 now supports IA64 processor
8858 lt_prog_compiler_static='-Bstatic'
8860 lt_prog_compiler_pic='-fPIC'
8866 # see comment about AmigaOS4 .so support
8867 lt_prog_compiler_pic='-fPIC'
8870 # FIXME: we need at least 68020 code to build shared libraries, but
8871 # adding the `-m68020' flag to GCC prevents building anything better,
8873 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8879 # PIC is the default for these OSes.
8882 mingw* | cygwin* | pw32* | os2* | cegcc*)
8883 # This hack is so that the source file can tell whether it is being
8884 # built for inclusion in a dll (and should export symbols for example).
8885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8886 # (--disable-auto-import) libraries
8887 lt_prog_compiler_pic='-DDLL_EXPORT'
8890 darwin* | rhapsody*)
8891 # PIC is the default on this platform
8892 # Common symbols not allowed in MH_DYLIB files
8893 lt_prog_compiler_pic='-fno-common'
8897 # PIC is the default for Haiku.
8898 # The "-static" flag exists, but is broken.
8899 lt_prog_compiler_static=
8903 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8904 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8905 # sets the default TLS model and affects inlining.
8911 lt_prog_compiler_pic='-fPIC'
8917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8918 # Instead, we relocate shared libraries at runtime.
8922 # Just because we use GCC doesn't mean we suddenly get shared libraries
8923 # on systems that don't support them.
8924 lt_prog_compiler_can_build_shared=no
8929 # QNX uses GNU C++, but need to define -shared option too, otherwise
8931 lt_prog_compiler_pic='-fPIC -shared'
8935 if test -d /usr/nec; then
8936 lt_prog_compiler_pic=-Kconform_pic
8941 lt_prog_compiler_pic='-fPIC'
8945 case $cc_basename in
8946 nvcc*) # Cuda Compiler Driver 2.2
8947 lt_prog_compiler_wl='-Xlinker '
8948 lt_prog_compiler_pic='-Xcompiler -fPIC'
8952 # PORTME Check for flag to pass linker flags through the system compiler.
8955 lt_prog_compiler_wl='-Wl,'
8956 if test "$host_cpu" = ia64; then
8957 # AIX 5 now supports IA64 processor
8958 lt_prog_compiler_static='-Bstatic'
8960 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8964 mingw* | cygwin* | pw32* | os2* | cegcc*)
8965 # This hack is so that the source file can tell whether it is being
8966 # built for inclusion in a dll (and should export symbols for example).
8967 lt_prog_compiler_pic='-DDLL_EXPORT'
8970 hpux9* | hpux10* | hpux11*)
8971 lt_prog_compiler_wl='-Wl,'
8972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8979 lt_prog_compiler_pic='+Z'
8982 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8983 lt_prog_compiler_static='${wl}-a ${wl}archive'
8986 irix5* | irix6* | nonstopux*)
8987 lt_prog_compiler_wl='-Wl,'
8988 # PIC (with -KPIC) is the default.
8989 lt_prog_compiler_static='-non_shared'
8992 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8993 case $cc_basename in
8994 # old Intel for x86_64 which still supported -KPIC.
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-static'
9000 # icc used to be incompatible with GCC.
9001 # ICC 10 doesn't accept -KPIC any more.
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_pic='-fPIC'
9005 lt_prog_compiler_static='-static'
9007 # Lahey Fortran 8.1.
9009 lt_prog_compiler_wl='-Wl,'
9010 lt_prog_compiler_pic='--shared'
9011 lt_prog_compiler_static='--static'
9013 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9014 # Portland Group compilers (*not* the Pentium gcc compiler,
9015 # which looks to be a dead project)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-fpic'
9018 lt_prog_compiler_static='-Bstatic'
9021 lt_prog_compiler_wl='-Wl,'
9022 # All Alpha code is PIC.
9023 lt_prog_compiler_static='-non_shared'
9025 xl* | bgxl* | bgf* | mpixl*)
9026 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_pic='-qpic'
9029 lt_prog_compiler_static='-qstaticlink'
9032 case `$CC -V 2>&1 | sed 5q` in
9033 *Sun\ F* | *Sun*Fortran*)
9034 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9035 lt_prog_compiler_pic='-KPIC'
9036 lt_prog_compiler_static='-Bstatic'
9037 lt_prog_compiler_wl=''
9041 lt_prog_compiler_pic='-KPIC'
9042 lt_prog_compiler_static='-Bstatic'
9043 lt_prog_compiler_wl='-Wl,'
9051 lt_prog_compiler_pic='-KPIC'
9052 lt_prog_compiler_static='-Bstatic'
9056 # QNX uses GNU C++, but need to define -shared option too, otherwise
9058 lt_prog_compiler_pic='-fPIC -shared'
9061 osf3* | osf4* | osf5*)
9062 lt_prog_compiler_wl='-Wl,'
9063 # All OSF/1 code is PIC.
9064 lt_prog_compiler_static='-non_shared'
9068 lt_prog_compiler_static='-non_shared'
9072 lt_prog_compiler_pic='-KPIC'
9073 lt_prog_compiler_static='-Bstatic'
9074 case $cc_basename in
9076 lt_prog_compiler_wl='-Qoption ld ';;
9078 lt_prog_compiler_wl='-Wl,';;
9083 lt_prog_compiler_wl='-Qoption ld '
9084 lt_prog_compiler_pic='-PIC'
9085 lt_prog_compiler_static='-Bstatic'
9088 sysv4 | sysv4.2uw2* | sysv4.3*)
9089 lt_prog_compiler_wl='-Wl,'
9090 lt_prog_compiler_pic='-KPIC'
9091 lt_prog_compiler_static='-Bstatic'
9095 if test -d /usr/nec ;then
9096 lt_prog_compiler_pic='-Kconform_pic'
9097 lt_prog_compiler_static='-Bstatic'
9101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_pic='-KPIC'
9104 lt_prog_compiler_static='-Bstatic'
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_can_build_shared=no
9113 lt_prog_compiler_pic='-pic'
9114 lt_prog_compiler_static='-Bstatic'
9118 lt_prog_compiler_can_build_shared=no
9124 # For platforms which do not support PIC, -DPIC is meaningless:
9126 lt_prog_compiler_pic=
9129 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9133 $as_echo "$lt_prog_compiler_pic" >&6; }
9141 # Check to make sure the PIC flag actually works.
9143 if test -n "$lt_prog_compiler_pic"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9145 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9146 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9147 $as_echo_n "(cached
) " >&6
9149 lt_cv_prog_compiler_pic_works=no
9150 ac_outfile=conftest.$ac_objext
9151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9153 # Insert the option either (1) after the last *FLAGS variable, or
9154 # (2) before a word containing "conftest.
", or (3) at the end.
9155 # Note that $ac_compile itself does not contain backslashes and begins
9156 # with a dollar sign (not a hyphen), so the echo should work correctly.
9157 # The option is referenced via a variable to avoid confusing sed.
9158 lt_compile=`echo "$ac_compile" | $SED \
9159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161 -e 's:$: $lt_compiler_flag:'`
9162 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9163 (eval "$lt_compile" 2>conftest.err)
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9167 if (exit $ac_status) && test -s "$ac_outfile"; then
9168 # The compiler can only warn and ignore the option if not recognized
9169 # So say no if there are warnings other than the usual output.
9170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9173 lt_cv_prog_compiler_pic_works=yes
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9180 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9182 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9183 case $lt_prog_compiler_pic in
9185 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9188 lt_prog_compiler_pic=
9189 lt_prog_compiler_can_build_shared=no
9200 # Check to make sure the static flag actually works.
9202 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9204 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9205 if ${lt_cv_prog_compiler_static_works+:} false; then :
9206 $as_echo_n "(cached
) " >&6
9208 lt_cv_prog_compiler_static_works=no
9209 save_LDFLAGS="$LDFLAGS"
9210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9211 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9213 # The linker can only warn and ignore the option if not recognized
9214 # So say no if there are warnings
9215 if test -s conftest.err; then
9216 # Append any errors to the config.log.
9217 cat conftest.err 1>&5
9218 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9220 if diff conftest.exp conftest.er2 >/dev/null; then
9221 lt_cv_prog_compiler_static_works=yes
9224 lt_cv_prog_compiler_static_works=yes
9228 LDFLAGS="$save_LDFLAGS"
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9232 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9234 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9237 lt_prog_compiler_static=
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9247 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9248 if ${lt_cv_prog_compiler_c_o+:} false; then :
9249 $as_echo_n "(cached
) " >&6
9251 lt_cv_prog_compiler_c_o=no
9252 $RM -r conftest 2>/dev/null
9256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9258 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9259 # Insert the option either (1) after the last *FLAGS variable, or
9260 # (2) before a word containing "conftest.
", or (3) at the end.
9261 # Note that $ac_compile itself does not contain backslashes and begins
9262 # with a dollar sign (not a hyphen), so the echo should work correctly.
9263 lt_compile=`echo "$ac_compile" | $SED \
9264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9266 -e 's:$: $lt_compiler_flag:'`
9267 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9268 (eval "$lt_compile" 2>out/conftest.err)
9270 cat out/conftest.err >&5
9271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9272 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9274 # The compiler can only warn and ignore the option if not recognized
9275 # So say no if there are warnings
9276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9277 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9278 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9279 lt_cv_prog_compiler_c_o=yes
9284 # SGI C++ compiler will create directory out/ii_files/ for
9285 # template instantiation
9286 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9287 $RM out/* && rmdir out
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9294 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9302 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9303 if ${lt_cv_prog_compiler_c_o+:} false; then :
9304 $as_echo_n "(cached
) " >&6
9306 lt_cv_prog_compiler_c_o=no
9307 $RM -r conftest 2>/dev/null
9311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9313 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9314 # Insert the option either (1) after the last *FLAGS variable, or
9315 # (2) before a word containing "conftest.
", or (3) at the end.
9316 # Note that $ac_compile itself does not contain backslashes and begins
9317 # with a dollar sign (not a hyphen), so the echo should work correctly.
9318 lt_compile=`echo "$ac_compile" | $SED \
9319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9321 -e 's:$: $lt_compiler_flag:'`
9322 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9323 (eval "$lt_compile" 2>out/conftest.err)
9325 cat out/conftest.err >&5
9326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9329 # The compiler can only warn and ignore the option if not recognized
9330 # So say no if there are warnings
9331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9334 lt_cv_prog_compiler_c_o=yes
9339 # SGI C++ compiler will create directory out/ii_files/ for
9340 # template instantiation
9341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9342 $RM out/* && rmdir out
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9349 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9354 hard_links="nottested
"
9355 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9356 # do not overwrite the value of need_locks provided by the user
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9358 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9363 ln conftest.a conftest.b 2>&5 || hard_links=no
9364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9366 $as_echo "$hard_links" >&6; }
9367 if test "$hard_links" = no; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9369 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9382 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9385 allow_undefined_flag=
9386 always_export_symbols=no
9388 archive_expsym_cmds=
9389 compiler_needs_object=no
9390 enable_shared_with_static_runtimes=no
9391 export_dynamic_flag_spec=
9392 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9393 hardcode_automatic=no
9395 hardcode_direct_absolute=no
9396 hardcode_libdir_flag_spec=
9397 hardcode_libdir_flag_spec_ld=
9398 hardcode_libdir_separator=
9400 hardcode_shlibpath_var=unsupported
9402 link_all_deplibs=unknown
9405 old_archive_from_new_cmds=
9406 old_archive_from_expsyms_cmds=
9407 thread_safe_flag_spec=
9408 whole_archive_flag_spec=
9409 # include_expsyms should be a list of space-separated symbols to be *always*
9410 # included in the symbol list
9412 # exclude_expsyms can be an extended regexp of symbols to exclude
9413 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9414 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9415 # as well as any symbol that contains `d'.
9416 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9417 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9418 # platforms (ab)use it in PIC code, but their linkers get confused if
9419 # the symbol is explicitly referenced. Since portable code cannot
9420 # rely on this symbol name, it's probably fine to never include it in
9421 # preloaded symbol tables.
9422 # Exclude shared library initialization/finalization symbols.
9423 extract_expsyms_cmds=
9426 cygwin* | mingw* | pw32* | cegcc*)
9427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9428 # When not using gcc, we currently assume that we are using
9429 # Microsoft Visual C++.
9430 if test "$GCC" != yes; then
9435 # we just hope/assume this is gcc and not c89 (= MSVC++)
9445 # On some targets, GNU ld is compatible enough with the native linker
9446 # that we're better off using the native interface for both.
9447 lt_use_gnu_ld_interface=no
9448 if test "$with_gnu_ld" = yes; then
9451 # The AIX port of GNU ld has always aspired to compatibility
9452 # with the native linker. However, as the warning in the GNU ld
9453 # block says, versions before 2.19.5* couldn't really create working
9454 # shared libraries, regardless of the interface used.
9455 case `$LD -v 2>&1` in
9456 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9457 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9458 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9460 lt_use_gnu_ld_interface=yes
9465 lt_use_gnu_ld_interface=yes
9470 if test "$lt_use_gnu_ld_interface" = yes; then
9471 # If archive_cmds runs LD, not CC, wlarc should be empty
9474 # Set some defaults for GNU ld with shared library support. These
9475 # are reset later if shared libraries are not supported. Putting them
9476 # here allows them to be overridden if necessary.
9477 runpath_var=LD_RUN_PATH
9478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479 export_dynamic_flag_spec='${wl}--export-dynamic'
9480 # ancient GNU ld didn't support --whole-archive et. al.
9481 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9482 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9484 whole_archive_flag_spec=
9486 supports_anon_versioning=no
9487 case `$LD -v 2>&1` in
9488 *GNU\ gold*) supports_anon_versioning=yes ;;
9489 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9490 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9491 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9492 *\ 2.11.*) ;; # other 2.11 versions
9493 *) supports_anon_versioning=yes ;;
9496 # See if GNU ld supports shared libraries.
9499 # On AIX/PPC, the GNU linker is very broken
9500 if test "$host_cpu" != ia64; then
9504 *** Warning: the GNU linker, at least up to release 2.19, is reported
9505 *** to be unable to reliably create shared libraries on AIX.
9506 *** Therefore, libtool is disabling shared libraries support. If you
9507 *** really care for shared libraries, you may want to install binutils
9508 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9509 *** You will then need to restart the configuration process.
9518 # see comment about AmigaOS4 .so support
9519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520 archive_expsym_cmds=''
9523 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)'
9524 hardcode_libdir_flag_spec
='-L$libdir'
9525 hardcode_minus_L
=yes
9531 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9532 allow_undefined_flag
=unsupported
9533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9534 # support --undefined. This deserves some investigation. FIXME
9535 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541 cygwin
* | mingw
* | pw32
* | cegcc
*)
9542 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9543 # as there is no search path for DLLs.
9544 hardcode_libdir_flag_spec
='-L$libdir'
9545 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9546 allow_undefined_flag
=unsupported
9547 always_export_symbols
=no
9548 enable_shared_with_static_runtimes
=yes
9549 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9551 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9552 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9553 # If the export-symbols file already is a .def file (1st line
9554 # is EXPORTS), use it as is; otherwise, prepend...
9555 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9556 cp $export_symbols $output_objdir/$soname.def;
9558 echo EXPORTS > $output_objdir/$soname.def;
9559 cat $export_symbols >> $output_objdir/$soname.def;
9561 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9568 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 link_all_deplibs
=yes
9574 hardcode_shlibpath_var
=no
9575 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9576 export_dynamic_flag_spec
='${wl}-E'
9577 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9578 # Instead, shared libraries are loaded at an image base (0x10000000 by
9579 # default) and relocated if they conflict, which is a slow very memory
9580 # consuming and fragmenting process. To avoid this, we pick a random,
9581 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9582 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9583 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9584 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'
9587 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9589 if test "$host_os" = linux-dietlibc
; then
9590 case $cc_basename in
9591 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9594 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9595 && test "$tmp_diet" = no
9597 tmp_addflag
=' $pic_flag'
9598 tmp_sharedflag
='-shared'
9599 case $cc_basename,$host_cpu in
9600 pgcc
*) # Portland Group C compiler
9601 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'
9602 tmp_addflag
=' $pic_flag'
9604 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9605 # Portland Group f77 and f90 compilers
9606 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'
9607 tmp_addflag
=' $pic_flag -Mnomain' ;;
9608 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9609 tmp_addflag
=' -i_dynamic' ;;
9610 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9611 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9612 ifc
* | ifort
*) # Intel Fortran compiler
9613 tmp_addflag
=' -nofor_main' ;;
9614 lf95
*) # Lahey Fortran 8.1
9615 whole_archive_flag_spec
=
9616 tmp_sharedflag
='--shared' ;;
9617 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9618 tmp_sharedflag
='-qmkshrobj'
9620 nvcc
*) # Cuda Compiler Driver 2.2
9621 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'
9622 compiler_needs_object
=yes
9625 case `$CC -V 2>&1 | sed 5q` in
9626 *Sun\ C
*) # Sun C 5.9
9627 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'
9628 compiler_needs_object
=yes
9629 tmp_sharedflag
='-G' ;;
9630 *Sun\ F
*) # Sun Fortran 8.3
9631 tmp_sharedflag
='-G' ;;
9633 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635 if test "x$supports_anon_versioning" = xyes
; then
9636 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9638 echo "local: *; };" >> $output_objdir/$libname.ver~
9639 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9642 case $cc_basename in
9643 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9644 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9645 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9646 hardcode_libdir_flag_spec
=
9647 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9648 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9649 if test "x$supports_anon_versioning" = xyes
; then
9650 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9652 echo "local: *; };" >> $output_objdir/$libname.ver~
9653 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9663 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9664 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9667 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9668 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9673 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9677 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9678 *** create shared libraries on Solaris systems. Therefore, libtool
9679 *** is disabling shared libraries support. We urge you to upgrade GNU
9680 *** binutils to release 2.9.1 or newer. Another option is to modify
9681 *** your PATH or compiler configuration so that the native linker is
9682 *** used, and then restart.
9685 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9686 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9687 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9693 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9694 case `$LD -v 2>&1` in
9695 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9699 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9700 *** reliably create shared libraries on SCO systems. Therefore, libtool
9701 *** is disabling shared libraries support. We urge you to upgrade GNU
9702 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9703 *** your PATH or compiler configuration so that the native linker is
9704 *** used, and then restart.
9709 # For security reasons, it is highly recommended that you always
9710 # use absolute paths for naming shared libraries, and exclude the
9711 # DT_RUNPATH tag from executables and libraries. But doing so
9712 # requires that you compile everything twice, which is a pain.
9713 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9714 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9715 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9716 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9725 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_shlibpath_var
=no
9732 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9733 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9741 if test "$ld_shlibs" = no
; then
9743 hardcode_libdir_flag_spec
=
9744 export_dynamic_flag_spec
=
9745 whole_archive_flag_spec
=
9748 # PORTME fill in a description of your system's linker (not GNU ld)
9751 allow_undefined_flag
=unsupported
9752 always_export_symbols
=yes
9753 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'
9754 # Note: this linker hardcodes the directories in LIBPATH if there
9755 # are no directories specified by -L.
9756 hardcode_minus_L
=yes
9757 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9758 # Neither direct hardcoding nor static linking is supported with a
9760 hardcode_direct
=unsupported
9765 if test "$host_cpu" = ia64
; then
9766 # On IA64, the linker does run time linking by default, so we don't
9767 # have to do anything special.
9768 aix_use_runtimelinking
=no
9769 exp_sym_flag
='-Bexport'
9772 # If we're using GNU nm, then we don't want the "-C" option.
9773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9774 # Also, AIX nm treats weak defined symbols like other global
9775 # defined symbols, whereas GNU nm marks them as "W".
9776 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9777 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'
9779 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'
9781 aix_use_runtimelinking
=no
9783 # Test if we are trying to use run time linking or normal
9784 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9785 # need to do runtime linking.
9786 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9787 for ld_flag
in $LDFLAGS; do
9788 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9789 aix_use_runtimelinking
=yes
9796 exp_sym_flag
='-bexport'
9797 no_entry_flag
='-bnoentry'
9800 # When large executables or shared objects are built, AIX ld can
9801 # have problems creating the table of contents. If linking a library
9802 # or program results in "error TOC overflow" add -mminimal-toc to
9803 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9804 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9808 hardcode_direct_absolute
=yes
9809 hardcode_libdir_separator
=':'
9810 link_all_deplibs
=yes
9811 file_list_spec
='${wl}-f,'
9813 if test "$GCC" = yes; then
9814 case $host_os in aix4.
[012]|aix4.
[012].
*)
9815 # We only want to do this on AIX 4.2 and lower, the check
9816 # below for broken collect2 doesn't work under 4.3+
9817 collect2name
=`${CC} -print-prog-name=collect2`
9818 if test -f "$collect2name" &&
9819 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9821 # We have reworked collect2
9824 # We have old collect2
9825 hardcode_direct
=unsupported
9826 # It fails to find uninstalled libraries when the uninstalled
9827 # path is not listed in the libpath. Setting hardcode_minus_L
9828 # to unsupported forces relinking
9829 hardcode_minus_L
=yes
9830 hardcode_libdir_flag_spec
='-L$libdir'
9831 hardcode_libdir_separator
=
9835 shared_flag
='-shared'
9836 if test "$aix_use_runtimelinking" = yes; then
9837 shared_flag
="$shared_flag "'${wl}-G'
9841 if test "$host_cpu" = ia64
; then
9842 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9843 # chokes on -Wl,-G. The following line is correct:
9846 if test "$aix_use_runtimelinking" = yes; then
9847 shared_flag
='${wl}-G'
9849 shared_flag
='${wl}-bM:SRE'
9854 export_dynamic_flag_spec
='${wl}-bexpall'
9855 # It seems that -bexpall does not export symbols beginning with
9856 # underscore (_), so it is better to generate a list of symbols to export.
9857 always_export_symbols
=yes
9858 if test "$aix_use_runtimelinking" = yes; then
9859 # Warning - without using the other runtime loading flags (-brtl),
9860 # -berok will link without error, but may produce a broken library.
9861 allow_undefined_flag
='-berok'
9862 # Determine the default libpath from the value encoded in an
9864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9875 if ac_fn_c_try_link
"$LINENO"; then :
9877 lt_aix_libpath_sed
='
9878 /Import File Strings/,/^$/ {
9884 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9885 # Check for a 64-bit object if we didn't find anything.
9886 if test -z "$aix_libpath"; then
9887 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9890 rm -f core conftest.err conftest.
$ac_objext \
9891 conftest
$ac_exeext conftest.
$ac_ext
9892 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9894 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9895 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"
9897 if test "$host_cpu" = ia64
; then
9898 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9899 allow_undefined_flag
="-z nodefs"
9900 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"
9902 # Determine the default libpath from the value encoded in an
9904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9915 if ac_fn_c_try_link
"$LINENO"; then :
9917 lt_aix_libpath_sed
='
9918 /Import File Strings/,/^$/ {
9924 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925 # Check for a 64-bit object if we didn't find anything.
9926 if test -z "$aix_libpath"; then
9927 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9930 rm -f core conftest.err conftest.
$ac_objext \
9931 conftest
$ac_exeext conftest.
$ac_ext
9932 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9934 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9935 # Warning - without using the other run time loading flags,
9936 # -berok will link without error, but may produce a broken library.
9937 no_undefined_flag
=' ${wl}-bernotok'
9938 allow_undefined_flag
=' ${wl}-berok'
9939 if test "$with_gnu_ld" = yes; then
9940 # We only use this code for GNU lds that support --whole-archive.
9941 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9943 # Exported symbols can be pulled into shared objects from archives
9944 whole_archive_flag_spec
='$convenience'
9946 archive_cmds_need_lc
=yes
9947 # This is similar to how AIX traditionally builds its shared libraries.
9948 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'
9956 # see comment about AmigaOS4 .so support
9957 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 archive_expsym_cmds
=''
9961 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)'
9962 hardcode_libdir_flag_spec
='-L$libdir'
9963 hardcode_minus_L
=yes
9969 export_dynamic_flag_spec
=-rdynamic
9972 cygwin
* | mingw
* | pw32
* | cegcc
*)
9973 # When not using gcc, we currently assume that we are using
9974 # Microsoft Visual C++.
9975 # hardcode_libdir_flag_spec is actually meaningless, as there is
9976 # no search path for DLLs.
9977 hardcode_libdir_flag_spec
=' '
9978 allow_undefined_flag
=unsupported
9979 # Tell ltmain to make .lib files, not .a files.
9981 # Tell ltmain to make .dll files, not .so files.
9983 # FIXME: Setting linknames here is a bad hack.
9984 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9985 # The linker will automatically build a .lib file if we build a DLL.
9986 old_archive_from_new_cmds
='true'
9987 # FIXME: Should let the user specify the lib program.
9988 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9989 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9990 enable_shared_with_static_runtimes
=yes
9993 darwin
* | rhapsody
*)
9997 # Publish an arg to allow the user to select that Darwin host (and target)
9998 # libraries should be given install-names like @rpath/libfoo.dylib. This
9999 # requires that the user of the library then adds an 'rpath' to the DSO that
10001 # NOTE: there are defaults below, for systems that support rpaths. The person
10002 # configuring can override the defaults for any system version that supports
10003 # them - they are, however, forced off for system versions without support.
10004 # Check whether --enable-darwin-at-rpath was given.
10005 if test "${enable_darwin_at_rpath+set}" = set; then :
10006 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10007 # This is not supported before macOS 10.5 / Darwin9.
10008 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10009 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10011 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10012 enable_darwin_at_rpath
=no
10017 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10018 # As above, before 10.5 / Darwin9 this does not work.
10019 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
10020 enable_darwin_at_rpath
=no
10023 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10024 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10025 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10026 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10028 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10029 enable_darwin_at_rpath
=yes
10031 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10032 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10039 archive_cmds_need_lc
=no
10041 hardcode_automatic
=yes
10042 hardcode_shlibpath_var
=unsupported
10043 if test "$lt_cv_ld_force_load" = "yes"; then
10044 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\"`'
10046 whole_archive_flag_spec
=''
10048 link_all_deplibs
=yes
10049 allow_undefined_flag
="$_lt_dar_allow_undefined"
10050 case $cc_basename in
10051 ifort
*) _lt_dar_can_shared
=yes ;;
10052 *) _lt_dar_can_shared
=$GCC ;;
10054 if test "$_lt_dar_can_shared" = "yes"; then
10055 output_verbose_link_cmd
=func_echo_all
10056 _lt_install_name
='\$rpath/\$soname'
10057 if test "x$enable_darwin_at_rpath" = "xyes"; then
10058 _lt_install_name
='@rpath/\$soname'
10060 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10061 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10062 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10063 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}"
10072 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_libdir_flag_spec
='-L$libdir'
10074 hardcode_shlibpath_var
=no
10077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10078 # support. Future versions do this automatically, but an explicit c++rt0.o
10079 # does not break anything, and helps significantly (at the cost of a little
10082 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10083 hardcode_libdir_flag_spec
='-R$libdir'
10084 hardcode_direct
=yes
10085 hardcode_shlibpath_var
=no
10088 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10090 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_direct
=yes
10092 hardcode_minus_L
=yes
10093 hardcode_shlibpath_var
=no
10096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10097 freebsd
* | dragonfly
*)
10098 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10099 hardcode_libdir_flag_spec
='-R$libdir'
10100 hardcode_direct
=yes
10101 hardcode_shlibpath_var
=no
10105 if test "$GCC" = yes; then
10106 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'
10108 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'
10110 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10111 hardcode_libdir_separator
=:
10112 hardcode_direct
=yes
10114 # hardcode_minus_L: Not really in the search PATH,
10115 # but as the default location of the library.
10116 hardcode_minus_L
=yes
10117 export_dynamic_flag_spec
='${wl}-E'
10121 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10122 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10126 if test "$with_gnu_ld" = no
; then
10127 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10128 hardcode_libdir_flag_spec_ld
='+b $libdir'
10129 hardcode_libdir_separator
=:
10130 hardcode_direct
=yes
10131 hardcode_direct_absolute
=yes
10132 export_dynamic_flag_spec
='${wl}-E'
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L
=yes
10140 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10143 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10162 # Older versions of the 11.00 compiler do not understand -b yet
10163 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10165 $as_echo_n "checking if $CC understands -b... " >&6; }
10166 if ${lt_cv_prog_compiler__b+:} false
; then :
10167 $as_echo_n "(cached) " >&6
10169 lt_cv_prog_compiler__b
=no
10170 save_LDFLAGS
="$LDFLAGS"
10171 LDFLAGS
="$LDFLAGS -b"
10172 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10173 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10174 # The linker can only warn and ignore the option if not recognized
10175 # So say no if there are warnings
10176 if test -s conftest.err
; then
10177 # Append any errors to the config.log.
10178 cat conftest.err
1>&5
10179 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10180 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10181 if diff conftest.exp conftest.er2
>/dev
/null
; then
10182 lt_cv_prog_compiler__b
=yes
10185 lt_cv_prog_compiler__b
=yes
10189 LDFLAGS
="$save_LDFLAGS"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10193 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10195 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10196 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10198 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10204 if test "$with_gnu_ld" = no
; then
10205 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10206 hardcode_libdir_separator
=:
10211 hardcode_shlibpath_var
=no
10214 hardcode_direct
=yes
10215 hardcode_direct_absolute
=yes
10216 export_dynamic_flag_spec
='${wl}-E'
10218 # hardcode_minus_L: Not really in the search PATH,
10219 # but as the default location of the library.
10220 hardcode_minus_L
=yes
10226 irix5
* | irix6
* | nonstopux
*)
10227 if test "$GCC" = yes; then
10228 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'
10229 # Try to use the -exported_symbol ld option, if it does not
10230 # work, assume that -exports_file does not work either and
10231 # implicitly export all symbols.
10232 save_LDFLAGS
="$LDFLAGS"
10233 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10238 if ac_fn_c_try_link
"$LINENO"; then :
10239 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'
10242 rm -f core conftest.err conftest.
$ac_objext \
10243 conftest
$ac_exeext conftest.
$ac_ext
10244 LDFLAGS
="$save_LDFLAGS"
10246 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'
10247 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'
10249 archive_cmds_need_lc
='no'
10250 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10251 hardcode_libdir_separator
=:
10253 link_all_deplibs
=yes
10257 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10258 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10260 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10262 hardcode_libdir_flag_spec
='-R$libdir'
10263 hardcode_direct
=yes
10264 hardcode_shlibpath_var
=no
10268 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_direct
=yes
10270 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10271 hardcode_libdir_separator
=:
10272 hardcode_shlibpath_var
=no
10279 if test -f /usr
/libexec
/ld.so
; then
10280 hardcode_direct
=yes
10281 hardcode_shlibpath_var
=no
10282 hardcode_direct_absolute
=yes
10283 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10284 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10285 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10286 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10287 export_dynamic_flag_spec
='${wl}-E'
10290 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10291 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_libdir_flag_spec
='-R$libdir'
10295 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10296 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10306 hardcode_libdir_flag_spec
='-L$libdir'
10307 hardcode_minus_L
=yes
10308 allow_undefined_flag
=unsupported
10309 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'
10310 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10314 if test "$GCC" = yes; then
10315 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10316 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'
10318 allow_undefined_flag
=' -expect_unresolved \*'
10319 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'
10321 archive_cmds_need_lc
='no'
10322 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10323 hardcode_libdir_separator
=:
10326 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10327 if test "$GCC" = yes; then
10328 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10329 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'
10330 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10332 allow_undefined_flag
=' -expect_unresolved \*'
10333 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'
10334 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~
10335 $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'
10337 # Both c and cxx compiler support -rpath directly
10338 hardcode_libdir_flag_spec
='-rpath $libdir'
10340 archive_cmds_need_lc
='no'
10341 hardcode_libdir_separator
=:
10345 no_undefined_flag
=' -z defs'
10346 if test "$GCC" = yes; then
10348 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10350 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10352 case `$CC -V 2>&1` in
10355 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10361 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10363 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10367 hardcode_libdir_flag_spec
='-R$libdir'
10368 hardcode_shlibpath_var
=no
10370 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10372 # The compiler driver will combine and reorder linker options,
10373 # but understands `-z linker_flag'. GCC discards it without `$wl',
10374 # but is careful enough not to reorder.
10375 # Supported since Solaris 2.6 (maybe 2.5.1?)
10376 if test "$GCC" = yes; then
10377 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10379 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10383 link_all_deplibs
=yes
10387 if test "x$host_vendor" = xsequent
; then
10388 # Use $CC to link under sequent, because it throws in some extra .o
10389 # files that make .init and .fini sections work.
10390 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10394 hardcode_libdir_flag_spec
='-L$libdir'
10395 hardcode_direct
=yes
10396 hardcode_minus_L
=yes
10397 hardcode_shlibpath_var
=no
10401 case $host_vendor in
10403 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_direct
=yes # is this really true???
10407 ## LD is ld it makes a PLAMLIB
10408 ## CC just makes a GrossModule.
10409 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10410 reload_cmds
='$CC -r -o $output$reload_objs'
10414 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10418 runpath_var
='LD_RUN_PATH'
10419 hardcode_shlibpath_var
=no
10423 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424 hardcode_shlibpath_var
=no
10425 export_dynamic_flag_spec
='-Bexport'
10429 if test -d /usr
/nec
; then
10430 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10431 hardcode_shlibpath_var
=no
10432 runpath_var
=LD_RUN_PATH
10433 hardcode_runpath_var
=yes
10438 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10439 no_undefined_flag
='${wl}-z,text'
10440 archive_cmds_need_lc
=no
10441 hardcode_shlibpath_var
=no
10442 runpath_var
='LD_RUN_PATH'
10444 if test "$GCC" = yes; then
10445 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 sysv5
* | sco3.2v5
* | sco5v6
*)
10454 # Note: We can NOT use -z defs as we might desire, because we do not
10455 # link with -lc, and that would cause any symbols used from libc to
10456 # always be unresolved, which means just about no library would
10457 # ever link correctly. If we're not using GNU ld we use -z text
10458 # though, which does catch some bad symbols but isn't as heavy-handed
10460 no_undefined_flag
='${wl}-z,text'
10461 allow_undefined_flag
='${wl}-z,nodefs'
10462 archive_cmds_need_lc
=no
10463 hardcode_shlibpath_var
=no
10464 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10465 hardcode_libdir_separator
=':'
10466 link_all_deplibs
=yes
10467 export_dynamic_flag_spec
='${wl}-Bexport'
10468 runpath_var
='LD_RUN_PATH'
10470 if test "$GCC" = yes; then
10471 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_libdir_flag_spec
='-L$libdir'
10482 hardcode_shlibpath_var
=no
10490 if test x
$host_vendor = xsni
; then
10492 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10493 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10500 $as_echo "$ld_shlibs" >&6; }
10501 test "$ld_shlibs" = no
&& can_build_shared
=no
10503 with_gnu_ld
=$with_gnu_ld
10520 # Do we need to explicitly link libc?
10522 case "x$archive_cmds_need_lc" in
10524 # Assume -lc should be added
10525 archive_cmds_need_lc
=yes
10527 if test "$enable_shared" = yes && test "$GCC" = yes; then
10528 case $archive_cmds in
10530 # FIXME: we may have to deal with multi-command sequences.
10533 # Test whether the compiler implicitly links with -lc since on some
10534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10535 # to ld, don't add -lc before -lgcc.
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10538 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10539 $as_echo_n "(cached) " >&6
10542 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10545 (eval $ac_compile) 2>&5
10547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10548 test $ac_status = 0; } 2>conftest.err
; then
10551 libobjs
=conftest.
$ac_objext
10553 wl
=$lt_prog_compiler_wl
10554 pic_flag
=$lt_prog_compiler_pic
10560 lt_save_allow_undefined_flag
=$allow_undefined_flag
10561 allow_undefined_flag
=
10562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10563 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566 test $ac_status = 0; }
10568 lt_cv_archive_cmds_need_lc
=no
10570 lt_cv_archive_cmds_need_lc
=yes
10572 allow_undefined_flag
=$lt_save_allow_undefined_flag
10574 cat conftest.err
1>&5
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10580 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10581 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10745 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10747 if test "$GCC" = yes; then
10749 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10750 *) lt_awk_arg
="/^libraries:/" ;;
10753 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10754 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10756 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10757 case $lt_search_path_spec in
10759 # if the path contains ";" then we assume it to be the separator
10760 # otherwise default to the standard path separator (i.e. ":") - it is
10761 # assumed that no part of a normal pathname contains ";" but that should
10762 # okay in the real world where ";" in dirpaths is itself problematic.
10763 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10766 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10769 # Ok, now we have the path, separated by spaces, we can step through it
10770 # and add multilib dir if necessary.
10771 lt_tmp_lt_search_path_spec
=
10772 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10773 for lt_sys_path
in $lt_search_path_spec; do
10774 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10775 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10777 test -d "$lt_sys_path" && \
10778 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10781 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10782 BEGIN {RS=" "; FS="/|\n";} {
10785 for (lt_i = NF; lt_i > 0; lt_i--) {
10786 if ($lt_i != "" && $lt_i != ".") {
10787 if ($lt_i == "..") {
10790 if (lt_count == 0) {
10791 lt_foo="/" $lt_i lt_foo;
10798 if (lt_foo != "") { lt_freq[lt_foo]++; }
10799 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10801 # AWK program above erroneously prepends '/' to C:/dos/paths
10804 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10805 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10807 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10809 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10811 library_names_spec
=
10812 libname_spec
='lib$name'
10816 postuninstall_cmds
=
10820 shlibpath_overrides_runpath
=unknown
10822 dynamic_linker
="$host_os ld.so"
10823 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10824 need_lib_prefix
=unknown
10825 hardcode_into_libs
=no
10827 # when you set need_version to no, make sure it does not cause -set_version
10828 # flags to be left without arguments
10829 need_version
=unknown
10834 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10835 shlibpath_var
=LIBPATH
10837 # AIX 3 has no versioning support, so we append a major version to the name.
10838 soname_spec
='${libname}${release}${shared_ext}$major'
10845 hardcode_into_libs
=yes
10846 if test "$host_cpu" = ia64
; then
10847 # AIX 5 supports IA64
10848 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10849 shlibpath_var
=LD_LIBRARY_PATH
10851 # With GCC up to 2.95.x, collect2 would create an import file
10852 # for dependence libraries. The import file would start with
10853 # the line `#! .'. This would cause the generated library to
10854 # depend on `.', always an invalid library. This was fixed in
10855 # development snapshots of GCC prior to 3.0.
10857 aix4 | aix4.
[01] | aix4.
[01].
*)
10858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10860 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10863 can_build_shared
=no
10867 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10868 # soname into executable. Probably we can add versioning support to
10869 # collect2, so additional links can be useful in future.
10870 if test "$aix_use_runtimelinking" = yes; then
10871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10872 # instead of lib<name>.a to let people know that these are not
10873 # typical AIX shared libraries.
10874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 # We preserve .a as extension for shared libraries through AIX4.2
10877 # and later when we are not doing run time linking.
10878 library_names_spec
='${libname}${release}.a $libname.a'
10879 soname_spec
='${libname}${release}${shared_ext}$major'
10881 shlibpath_var
=LIBPATH
10888 # Since July 2007 AmigaOS4 officially supports .so libraries.
10889 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 library_names_spec
='$libname.ixlibrary $libname.a'
10894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10895 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'
10901 library_names_spec
='${libname}${shared_ext}'
10902 dynamic_linker
="$host_os ld.so"
10903 shlibpath_var
=LIBRARY_PATH
10909 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910 soname_spec
='${libname}${release}${shared_ext}$major'
10911 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10912 shlibpath_var
=LD_LIBRARY_PATH
10913 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10914 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10915 # the default ld.so.conf also contains /usr/contrib/lib and
10916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10917 # libtool to hard-code these into programs
10920 cygwin
* | mingw
* | pw32
* | cegcc
*)
10921 version_type
=windows
10926 case $GCC,$host_os in
10927 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10928 library_names_spec
='$libname.dll.a'
10929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10930 postinstall_cmds
='base_file=`basename \${file}`~
10931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10932 dldir=$destdir/`dirname \$dlpath`~
10933 test -d \$dldir || mkdir -p \$dldir~
10934 $install_prog $dir/$dlname \$dldir/$dlname~
10935 chmod a+x \$dldir/$dlname~
10936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10939 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10940 dlpath=$dir/\$dldll~
10942 shlibpath_overrides_runpath
=yes
10946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10947 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10949 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10952 # MinGW DLLs use traditional 'lib' prefix
10953 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10956 # pw32 DLLs use 'pw' prefix rather than 'lib'
10957 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10963 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10966 dynamic_linker
='Win32 ld.exe'
10967 # FIXME: first we should search . and the directory the executable is in
10971 darwin
* | rhapsody
*)
10972 dynamic_linker
="$host_os dyld"
10973 version_type
=darwin
10976 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10977 soname_spec
='${libname}${release}${major}$shared_ext'
10978 shlibpath_overrides_runpath
=yes
10979 shlibpath_var
=DYLD_LIBRARY_PATH
10980 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10982 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10983 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10991 soname_spec
='${libname}${release}${shared_ext}$major'
10992 shlibpath_var
=LD_LIBRARY_PATH
10995 freebsd
* | dragonfly
*)
10996 # DragonFly does not have aout. When/if they implement a new
10997 # versioning mechanism, adjust this.
10998 if test -x /usr
/bin
/objformat
; then
10999 objformat
=`/usr/bin/objformat`
11002 freebsd
[23].
*) objformat
=aout
;;
11003 *) objformat
=elf
;;
11006 version_type
=freebsd-
$objformat
11007 case $version_type in
11009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11014 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11018 shlibpath_var
=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath
=yes
11023 freebsd3.
[01]* | freebsdelf3.
[01]*)
11024 shlibpath_overrides_runpath
=yes
11025 hardcode_into_libs
=yes
11027 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11028 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11029 shlibpath_overrides_runpath
=no
11030 hardcode_into_libs
=yes
11032 *) # from 4.6 on, and DragonFly
11033 shlibpath_overrides_runpath
=yes
11034 hardcode_into_libs
=yes
11043 dynamic_linker
="$host_os runtime_loader"
11044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11045 soname_spec
='${libname}${release}${shared_ext}$major'
11046 shlibpath_var
=LIBRARY_PATH
11047 shlibpath_overrides_runpath
=yes
11048 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11049 hardcode_into_libs
=yes
11052 hpux9
* | hpux10
* | hpux11
*)
11053 # Give a soname corresponding to the major version so that dld.sl refuses to
11054 # link against other versions.
11061 hardcode_into_libs
=yes
11062 dynamic_linker
="$host_os dld.so"
11063 shlibpath_var
=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 soname_spec
='${libname}${release}${shared_ext}$major'
11067 if test "X$HPUX_IA64_MODE" = X32
; then
11068 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11070 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11072 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11076 hardcode_into_libs
=yes
11077 dynamic_linker
="$host_os dld.sl"
11078 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11079 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081 soname_spec
='${libname}${release}${shared_ext}$major'
11082 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11083 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11087 dynamic_linker
="$host_os dld.sl"
11088 shlibpath_var
=SHLIB_PATH
11089 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec
='${libname}${release}${shared_ext}$major'
11094 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11095 postinstall_cmds
='chmod 555 $lib'
11096 # or fails outright, so override atomically:
11097 install_override_mode
=555
11104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11105 soname_spec
='${libname}${release}${shared_ext}$major'
11106 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11107 shlibpath_var
=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath
=no
11109 hardcode_into_libs
=yes
11112 irix5
* | irix6
* | nonstopux
*)
11114 nonstopux
*) version_type
=nonstopux
;;
11116 if test "$lt_cv_prog_gnu_ld" = yes; then
11124 soname_spec
='${libname}${release}${shared_ext}$major'
11125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11127 irix5
* | nonstopux
*)
11128 libsuff
= shlibsuff
=
11131 case $LD in # libtool.m4 will add one of these switches to LD
11132 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11133 libsuff
= shlibsuff
= libmagic
=32-bit;;
11134 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11135 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11136 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11137 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11138 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11142 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11143 shlibpath_overrides_runpath
=no
11144 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11145 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11146 hardcode_into_libs
=yes
11149 # No shared lib support for Linux oldld, aout, or coff.
11150 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11154 # This must be Linux ELF.
11156 # uclinux* changes (here and below) have been submitted to the libtool
11157 # project, but have not yet been accepted: they are GCC-local changes
11158 # for the time being. (See
11159 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11160 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
11164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec
='${libname}${release}${shared_ext}$major'
11166 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11167 shlibpath_var
=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath
=no
11170 # Some binutils ld are patched to set DT_RUNPATH
11171 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11172 $as_echo_n "(cached) " >&6
11174 lt_cv_shlibpath_overrides_runpath
=no
11175 save_LDFLAGS
=$LDFLAGS
11176 save_libdir
=$libdir
11177 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11178 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11190 if ac_fn_c_try_link
"$LINENO"; then :
11191 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11192 lt_cv_shlibpath_overrides_runpath
=yes
11195 rm -f core conftest.err conftest.
$ac_objext \
11196 conftest
$ac_exeext conftest.
$ac_ext
11197 LDFLAGS
=$save_LDFLAGS
11198 libdir
=$save_libdir
11202 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11204 # This implies no fast_install, which is unacceptable.
11205 # Some rework will be needed to allow for fast_install
11206 # before this can be enabled.
11207 hardcode_into_libs
=yes
11209 # Append ld.so.conf contents to the search path
11210 if test -f /etc
/ld.so.conf
; then
11211 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' ' '`
11212 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11215 # We used to test for /lib/ld.so.1 and disable shared libraries on
11216 # powerpc, because MkLinux only supported shared libraries with the
11217 # GNU dynamic linker. Since this was broken with cross compilers,
11218 # most powerpc-linux boxes support dynamic linking these days and
11219 # people can always --disable-shared, the test was removed, and we
11220 # assume the GNU/Linux dynamic linker is in use.
11221 dynamic_linker
='GNU/Linux ld.so'
11228 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11231 dynamic_linker
='NetBSD (a.out) ld.so'
11233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11234 soname_spec
='${libname}${release}${shared_ext}$major'
11235 dynamic_linker
='NetBSD ld.elf_so'
11237 shlibpath_var
=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath
=yes
11239 hardcode_into_libs
=yes
11244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 shlibpath_var
=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath
=yes
11253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec
='${libname}${release}${shared_ext}$major'
11255 shlibpath_var
=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath
=no
11257 hardcode_into_libs
=yes
11258 dynamic_linker
='ldqnx.so'
11263 sys_lib_dlsearch_path_spec
="/usr/lib"
11265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11267 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11268 *) need_version
=no
;;
11270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11271 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11272 shlibpath_var
=LD_LIBRARY_PATH
11273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11275 openbsd2.
[89] | openbsd2.
[89].
*)
11276 shlibpath_overrides_runpath
=no
11279 shlibpath_overrides_runpath
=yes
11283 shlibpath_overrides_runpath
=yes
11288 libname_spec
='$name'
11291 library_names_spec
='$libname${shared_ext} $libname.a'
11292 dynamic_linker
='OS/2 ld.exe'
11293 shlibpath_var
=LIBPATH
11296 osf3
* | osf4
* | osf5
*)
11300 soname_spec
='${libname}${release}${shared_ext}$major'
11301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 shlibpath_var
=LD_LIBRARY_PATH
11303 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11304 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec
='${libname}${release}${shared_ext}$major'
11317 shlibpath_var
=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath
=yes
11319 hardcode_into_libs
=yes
11320 # ldd complains unless libraries are executable
11321 postinstall_cmds
='chmod +x $lib'
11326 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11327 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11328 shlibpath_var
=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath
=yes
11330 if test "$with_gnu_ld" = yes; then
11338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec
='${libname}${release}${shared_ext}$major'
11340 shlibpath_var
=LD_LIBRARY_PATH
11341 case $host_vendor in
11343 shlibpath_overrides_runpath
=no
11345 runpath_var
=LD_RUN_PATH
11353 shlibpath_overrides_runpath
=no
11354 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11360 if test -d /usr
/nec
;then
11362 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11363 soname_spec
='$libname${shared_ext}.$major'
11364 shlibpath_var
=LD_LIBRARY_PATH
11368 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11369 version_type
=freebsd-elf
11372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11373 soname_spec
='${libname}${release}${shared_ext}$major'
11374 shlibpath_var
=LD_LIBRARY_PATH
11375 shlibpath_overrides_runpath
=yes
11376 hardcode_into_libs
=yes
11377 if test "$with_gnu_ld" = yes; then
11378 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11380 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11383 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11387 sys_lib_dlsearch_path_spec
='/usr/lib'
11391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 shlibpath_var
=LD_LIBRARY_PATH
11397 shlibpath_overrides_runpath
=no
11398 hardcode_into_libs
=yes
11403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec
='${libname}${release}${shared_ext}$major'
11405 shlibpath_var
=LD_LIBRARY_PATH
11408 # Shared libraries for VwWorks, >= 7 only at this stage
11409 # and (fpic) still incompatible with "large" code models
11410 # in a few configurations. Only for RTP mode in any case,
11411 # and upon explicit request at configure time.
11414 case ${with_multisubdir}-${enable_shared} in
11421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec
='${libname}${release}${shared_ext}$major'
11423 dynamic_linker
="$host_os module_loader"
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11432 $as_echo "$dynamic_linker" >&6; }
11433 test "$dynamic_linker" = no
&& can_build_shared
=no
11435 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11436 if test "$GCC" = yes; then
11437 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11440 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11441 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11443 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11444 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11539 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11541 if test -n "$hardcode_libdir_flag_spec" ||
11542 test -n "$runpath_var" ||
11543 test "X$hardcode_automatic" = "Xyes" ; then
11545 # We can hardcode non-existent directories.
11546 if test "$hardcode_direct" != no
&&
11547 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11548 # have to relink, otherwise we might link with an installed library
11549 # when we should be linking with a yet-to-be-installed one
11550 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11551 test "$hardcode_minus_L" != no
; then
11552 # Linking always hardcodes the temporary library directory.
11553 hardcode_action
=relink
11555 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11556 hardcode_action
=immediate
11559 # We cannot hardcode anything, or else we can only hardcode existing
11561 hardcode_action
=unsupported
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11564 $as_echo "$hardcode_action" >&6; }
11566 if test "$hardcode_action" = relink ||
11567 test "$inherit_rpath" = yes; then
11568 # Fast installation is not supported
11569 enable_fast_install
=no
11570 elif test "$shlibpath_overrides_runpath" = yes ||
11571 test "$enable_shared" = no
; then
11572 # Fast installation is not necessary
11573 enable_fast_install
=needless
11581 if test "x$enable_dlopen" != xyes
; then
11582 enable_dlopen
=unknown
11583 enable_dlopen_self
=unknown
11584 enable_dlopen_self_static
=unknown
11591 lt_cv_dlopen
="load_add_on"
11593 lt_cv_dlopen_self
=yes
11596 mingw
* | pw32
* | cegcc
*)
11597 lt_cv_dlopen
="LoadLibrary"
11602 lt_cv_dlopen
="dlopen"
11607 # if libdl is installed we need to link against it
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11609 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11610 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11611 $as_echo_n "(cached) " >&6
11613 ac_check_lib_save_LIBS
=$LIBS
11615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11633 if ac_fn_c_try_link
"$LINENO"; then :
11634 ac_cv_lib_dl_dlopen
=yes
11636 ac_cv_lib_dl_dlopen
=no
11638 rm -f core conftest.err conftest.
$ac_objext \
11639 conftest
$ac_exeext conftest.
$ac_ext
11640 LIBS
=$ac_check_lib_save_LIBS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11644 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11645 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11648 lt_cv_dlopen
="dyld"
11650 lt_cv_dlopen_self
=yes
11657 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11658 if test "x$ac_cv_func_shl_load" = xyes
; then :
11659 lt_cv_dlopen
="shl_load"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11662 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11663 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_check_lib_save_LIBS
=$LIBS
11668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11681 return shl_load ();
11686 if ac_fn_c_try_link
"$LINENO"; then :
11687 ac_cv_lib_dld_shl_load
=yes
11689 ac_cv_lib_dld_shl_load
=no
11691 rm -f core conftest.err conftest.
$ac_objext \
11692 conftest
$ac_exeext conftest.
$ac_ext
11693 LIBS
=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11696 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11697 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11698 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11700 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11701 if test "x$ac_cv_func_dlopen" = xyes
; then :
11702 lt_cv_dlopen
="dlopen"
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11706 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11707 $as_echo_n "(cached) " >&6
11709 ac_check_lib_save_LIBS
=$LIBS
11711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11729 if ac_fn_c_try_link
"$LINENO"; then :
11730 ac_cv_lib_dl_dlopen
=yes
11732 ac_cv_lib_dl_dlopen
=no
11734 rm -f core conftest.err conftest.
$ac_objext \
11735 conftest
$ac_exeext conftest.
$ac_ext
11736 LIBS
=$ac_check_lib_save_LIBS
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11739 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11740 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11741 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11744 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11745 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11746 $as_echo_n "(cached) " >&6
11748 ac_check_lib_save_LIBS
=$LIBS
11749 LIBS
="-lsvld $LIBS"
11750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11768 if ac_fn_c_try_link
"$LINENO"; then :
11769 ac_cv_lib_svld_dlopen
=yes
11771 ac_cv_lib_svld_dlopen
=no
11773 rm -f core conftest.err conftest.
$ac_objext \
11774 conftest
$ac_exeext conftest.
$ac_ext
11775 LIBS
=$ac_check_lib_save_LIBS
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11778 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11779 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11780 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11783 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11784 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11785 $as_echo_n "(cached) " >&6
11787 ac_check_lib_save_LIBS
=$LIBS
11789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11802 return dld_link ();
11807 if ac_fn_c_try_link
"$LINENO"; then :
11808 ac_cv_lib_dld_dld_link
=yes
11810 ac_cv_lib_dld_dld_link
=no
11812 rm -f core conftest.err conftest.
$ac_objext \
11813 conftest
$ac_exeext conftest.
$ac_ext
11814 LIBS
=$ac_check_lib_save_LIBS
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11817 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11818 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11819 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11840 if test "x$lt_cv_dlopen" != xno
; then
11846 case $lt_cv_dlopen in
11848 save_CPPFLAGS
="$CPPFLAGS"
11849 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11851 save_LDFLAGS
="$LDFLAGS"
11852 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11855 LIBS
="$lt_cv_dlopen_libs $LIBS"
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11858 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11859 if ${lt_cv_dlopen_self+:} false
; then :
11860 $as_echo_n "(cached) " >&6
11862 if test "$cross_compiling" = yes; then :
11863 lt_cv_dlopen_self
=cross
11865 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11866 lt_status
=$lt_dlunknown
11867 cat > conftest.
$ac_ext <<_LT_EOF
11868 #line 11868 "configure"
11869 #include "confdefs.h"
11878 # define LT_DLGLOBAL RTLD_GLOBAL
11881 # define LT_DLGLOBAL DL_GLOBAL
11883 # define LT_DLGLOBAL 0
11887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11888 find out it does not work in some platform. */
11889 #ifndef LT_DLLAZY_OR_NOW
11891 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11894 # define LT_DLLAZY_OR_NOW DL_LAZY
11897 # define LT_DLLAZY_OR_NOW RTLD_NOW
11900 # define LT_DLLAZY_OR_NOW DL_NOW
11902 # define LT_DLLAZY_OR_NOW 0
11909 /* When -fvisbility=hidden is used, assume the code has been annotated
11910 correspondingly for the symbols needed. */
11911 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11912 void fnord () __attribute__((visibility("default")));
11915 void fnord () { int i=42; }
11918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11919 int status = $lt_dlunknown;
11923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11926 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11927 else puts (dlerror ());
11929 /* dlclose (self); */
11937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11938 (eval $ac_link) 2>&5
11940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11942 (.
/conftest
; exit; ) >&5 2>/dev
/null
11944 case x
$lt_status in
11945 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11946 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11947 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11950 # compilation failed
11951 lt_cv_dlopen_self
=no
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11959 $as_echo "$lt_cv_dlopen_self" >&6; }
11961 if test "x$lt_cv_dlopen_self" = xyes
; then
11962 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11964 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11965 if ${lt_cv_dlopen_self_static+:} false
; then :
11966 $as_echo_n "(cached) " >&6
11968 if test "$cross_compiling" = yes; then :
11969 lt_cv_dlopen_self_static
=cross
11971 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11972 lt_status
=$lt_dlunknown
11973 cat > conftest.
$ac_ext <<_LT_EOF
11974 #line 11974 "configure"
11975 #include "confdefs.h"
11984 # define LT_DLGLOBAL RTLD_GLOBAL
11987 # define LT_DLGLOBAL DL_GLOBAL
11989 # define LT_DLGLOBAL 0
11993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11994 find out it does not work in some platform. */
11995 #ifndef LT_DLLAZY_OR_NOW
11997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12000 # define LT_DLLAZY_OR_NOW DL_LAZY
12003 # define LT_DLLAZY_OR_NOW RTLD_NOW
12006 # define LT_DLLAZY_OR_NOW DL_NOW
12008 # define LT_DLLAZY_OR_NOW 0
12015 /* When -fvisbility=hidden is used, assume the code has been annotated
12016 correspondingly for the symbols needed. */
12017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12018 void fnord () __attribute__((visibility("default")));
12021 void fnord () { int i=42; }
12024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12025 int status = $lt_dlunknown;
12029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12033 else puts (dlerror ());
12035 /* dlclose (self); */
12043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12044 (eval $ac_link) 2>&5
12046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12047 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12048 (.
/conftest
; exit; ) >&5 2>/dev
/null
12050 case x
$lt_status in
12051 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12052 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12053 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12056 # compilation failed
12057 lt_cv_dlopen_self_static
=no
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12065 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12068 CPPFLAGS
="$save_CPPFLAGS"
12069 LDFLAGS
="$save_LDFLAGS"
12074 case $lt_cv_dlopen_self in
12075 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12076 *) enable_dlopen_self
=unknown
;;
12079 case $lt_cv_dlopen_self_static in
12080 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12081 *) enable_dlopen_self_static
=unknown
;;
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12104 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12105 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12106 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12107 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12109 $as_echo "yes" >&6; }
12111 # FIXME - insert some real tests, host_os isn't really good enough
12114 if test -n "$STRIP" ; then
12115 striplib
="$STRIP -x"
12116 old_striplib
="$STRIP -S"
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12142 # Report which library types will actually be built
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12144 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12146 $as_echo "$can_build_shared" >&6; }
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12149 $as_echo_n "checking whether to build shared libraries... " >&6; }
12150 test "$can_build_shared" = "no" && enable_shared
=no
12152 # On AIX, shared libraries and static libraries use the same namespace, and
12153 # are all built from PIC.
12156 test "$enable_shared" = yes && enable_static
=no
12157 if test -n "$RANLIB"; then
12158 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12159 postinstall_cmds
='$RANLIB $lib'
12164 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12165 test "$enable_shared" = yes && enable_static
=no
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12170 $as_echo "$enable_shared" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12173 $as_echo_n "checking whether to build static libraries... " >&6; }
12174 # Make sure either enable_shared or enable_static is yes.
12175 test "$enable_shared" = yes || enable_static
=yes
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12177 $as_echo "$enable_static" >&6; }
12184 ac_cpp
='$CPP $CPPFLAGS'
12185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12203 ac_config_commands
="$ac_config_commands libtool"
12208 # Only expand once:
12214 gdc_save_DFLAGS
=$GDCFLAGS
12215 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12218 # Source file extension for D test sources.
12221 # Object file extension for compiled D test sources.
12225 # Code to be used in simple compile tests
12226 lt_simple_compile_test_code
="\
12228 shared int some_variable = 0;
12231 # Code to be used in simple link tests
12232 lt_simple_link_test_code
="\
12234 extern(C) int main() { return 0; }
12237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12244 # If no C compiler was specified, use CC.
12247 # If no C compiler flags were specified, use CFLAGS.
12248 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12250 # Allow CC to be a program name with arguments.
12254 # save warnings/boilerplate of simple test code
12255 ac_outfile
=conftest.
$ac_objext
12256 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12257 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12258 _lt_compiler_boilerplate
=`cat conftest.err`
12261 ac_outfile
=conftest.
$ac_objext
12262 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12263 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12264 _lt_linker_boilerplate
=`cat conftest.err`
12268 # Allow CC to be a program name with arguments.
12270 lt_save_CFLAGS
=$CFLAGS
12278 for cc_temp
in $compiler""; do
12280 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12281 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12286 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12289 # GDC did not exist at the time GCC didn't implicitly link libc in.
12290 archive_cmds_need_lc_D
=no
12292 old_archive_cmds_D
=$old_archive_cmds
12293 reload_flag_D
=$reload_flag
12294 reload_cmds_D
=$reload_cmds
12297 ## There is no encapsulation within the following macros, do not change
12298 ## the running order or otherwise move them around unless you know exactly
12299 ## what you are doing...
12300 if test -n "$compiler"; then
12302 lt_prog_compiler_no_builtin_flag_D
=
12304 if test "$GCC" = yes; then
12305 case $cc_basename in
12307 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
12309 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12313 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12314 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
12315 $as_echo_n "(cached) " >&6
12317 lt_cv_prog_compiler_rtti_exceptions
=no
12318 ac_outfile
=conftest.
$ac_objext
12319 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12320 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12321 # Insert the option either (1) after the last *FLAGS variable, or
12322 # (2) before a word containing "conftest.", or (3) at the end.
12323 # Note that $ac_compile itself does not contain backslashes and begins
12324 # with a dollar sign (not a hyphen), so the echo should work correctly.
12325 # The option is referenced via a variable to avoid confusing sed.
12326 lt_compile
=`echo "$ac_compile" | $SED \
12327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12329 -e 's:$: $lt_compiler_flag:'`
12330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12331 (eval "$lt_compile" 2>conftest.err
)
12333 cat conftest.err
>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 if (exit $ac_status) && test -s "$ac_outfile"; then
12336 # The compiler can only warn and ignore the option if not recognized
12337 # So say no if there are warnings other than the usual output.
12338 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12339 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12340 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12341 lt_cv_prog_compiler_rtti_exceptions
=yes
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12348 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12350 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12351 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12360 lt_prog_compiler_wl_D
=
12361 lt_prog_compiler_pic_D
=
12362 lt_prog_compiler_static_D
=
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12365 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12367 if test "$GCC" = yes; then
12368 lt_prog_compiler_wl_D
='-Wl,'
12369 lt_prog_compiler_static_D
='-static'
12373 # All AIX code is PIC.
12374 if test "$host_cpu" = ia64
; then
12375 # AIX 5 now supports IA64 processor
12376 lt_prog_compiler_static_D
='-Bstatic'
12378 lt_prog_compiler_pic_D
='-fPIC'
12384 # see comment about AmigaOS4 .so support
12385 lt_prog_compiler_pic_D
='-fPIC'
12388 # FIXME: we need at least 68020 code to build shared libraries, but
12389 # adding the `-m68020' flag to GCC prevents building anything better,
12391 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12396 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12397 # PIC is the default for these OSes.
12400 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12401 # This hack is so that the source file can tell whether it is being
12402 # built for inclusion in a dll (and should export symbols for example).
12403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12404 # (--disable-auto-import) libraries
12405 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12408 darwin
* | rhapsody
*)
12409 # PIC is the default on this platform
12410 # Common symbols not allowed in MH_DYLIB files
12411 lt_prog_compiler_pic_D
='-fno-common'
12415 # PIC is the default for Haiku.
12416 # The "-static" flag exists, but is broken.
12417 lt_prog_compiler_static_D
=
12421 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12422 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12423 # sets the default TLS model and affects inlining.
12429 lt_prog_compiler_pic_D
='-fPIC'
12435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12436 # Instead, we relocate shared libraries at runtime.
12440 # Just because we use GCC doesn't mean we suddenly get shared libraries
12441 # on systems that don't support them.
12442 lt_prog_compiler_can_build_shared_D
=no
12447 # QNX uses GNU C++, but need to define -shared option too, otherwise
12448 # it will coredump.
12449 lt_prog_compiler_pic_D
='-fPIC -shared'
12453 if test -d /usr
/nec
; then
12454 lt_prog_compiler_pic_D
=-Kconform_pic
12459 lt_prog_compiler_pic_D
='-fPIC'
12463 case $cc_basename in
12464 nvcc
*) # Cuda Compiler Driver 2.2
12465 lt_prog_compiler_wl_D
='-Xlinker '
12466 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12470 # PORTME Check for flag to pass linker flags through the system compiler.
12473 lt_prog_compiler_wl_D
='-Wl,'
12474 if test "$host_cpu" = ia64
; then
12475 # AIX 5 now supports IA64 processor
12476 lt_prog_compiler_static_D
='-Bstatic'
12478 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12482 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12483 # This hack is so that the source file can tell whether it is being
12484 # built for inclusion in a dll (and should export symbols for example).
12485 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12488 hpux9
* | hpux10
* | hpux11
*)
12489 lt_prog_compiler_wl_D
='-Wl,'
12490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12491 # not for PA HP-UX.
12497 lt_prog_compiler_pic_D
='+Z'
12500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12501 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12504 irix5
* | irix6
* | nonstopux
*)
12505 lt_prog_compiler_wl_D
='-Wl,'
12506 # PIC (with -KPIC) is the default.
12507 lt_prog_compiler_static_D
='-non_shared'
12510 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12511 case $cc_basename in
12512 # old Intel for x86_64 which still supported -KPIC.
12514 lt_prog_compiler_wl_D
='-Wl,'
12515 lt_prog_compiler_pic_D
='-KPIC'
12516 lt_prog_compiler_static_D
='-static'
12518 # icc used to be incompatible with GCC.
12519 # ICC 10 doesn't accept -KPIC any more.
12521 lt_prog_compiler_wl_D
='-Wl,'
12522 lt_prog_compiler_pic_D
='-fPIC'
12523 lt_prog_compiler_static_D
='-static'
12525 # Lahey Fortran 8.1.
12527 lt_prog_compiler_wl_D
='-Wl,'
12528 lt_prog_compiler_pic_D
='--shared'
12529 lt_prog_compiler_static_D
='--static'
12531 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12532 # Portland Group compilers (*not* the Pentium gcc compiler,
12533 # which looks to be a dead project)
12534 lt_prog_compiler_wl_D
='-Wl,'
12535 lt_prog_compiler_pic_D
='-fpic'
12536 lt_prog_compiler_static_D
='-Bstatic'
12539 lt_prog_compiler_wl_D
='-Wl,'
12540 # All Alpha code is PIC.
12541 lt_prog_compiler_static_D
='-non_shared'
12543 xl
* | bgxl
* | bgf
* | mpixl
*)
12544 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12545 lt_prog_compiler_wl_D
='-Wl,'
12546 lt_prog_compiler_pic_D
='-qpic'
12547 lt_prog_compiler_static_D
='-qstaticlink'
12550 case `$CC -V 2>&1 | sed 5q` in
12551 *Sun\ F
* |
*Sun
*Fortran
*)
12552 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12553 lt_prog_compiler_pic_D
='-KPIC'
12554 lt_prog_compiler_static_D
='-Bstatic'
12555 lt_prog_compiler_wl_D
=''
12559 lt_prog_compiler_pic_D
='-KPIC'
12560 lt_prog_compiler_static_D
='-Bstatic'
12561 lt_prog_compiler_wl_D
='-Wl,'
12569 lt_prog_compiler_pic_D
='-KPIC'
12570 lt_prog_compiler_static_D
='-Bstatic'
12574 # QNX uses GNU C++, but need to define -shared option too, otherwise
12575 # it will coredump.
12576 lt_prog_compiler_pic_D
='-fPIC -shared'
12579 osf3
* | osf4
* | osf5
*)
12580 lt_prog_compiler_wl_D
='-Wl,'
12581 # All OSF/1 code is PIC.
12582 lt_prog_compiler_static_D
='-non_shared'
12586 lt_prog_compiler_static_D
='-non_shared'
12590 lt_prog_compiler_pic_D
='-KPIC'
12591 lt_prog_compiler_static_D
='-Bstatic'
12592 case $cc_basename in
12593 f77
* | f90
* | f95
*)
12594 lt_prog_compiler_wl_D
='-Qoption ld ';;
12596 lt_prog_compiler_wl_D
='-Wl,';;
12601 lt_prog_compiler_wl_D
='-Qoption ld '
12602 lt_prog_compiler_pic_D
='-PIC'
12603 lt_prog_compiler_static_D
='-Bstatic'
12606 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12607 lt_prog_compiler_wl_D
='-Wl,'
12608 lt_prog_compiler_pic_D
='-KPIC'
12609 lt_prog_compiler_static_D
='-Bstatic'
12613 if test -d /usr
/nec
;then
12614 lt_prog_compiler_pic_D
='-Kconform_pic'
12615 lt_prog_compiler_static_D
='-Bstatic'
12619 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12620 lt_prog_compiler_wl_D
='-Wl,'
12621 lt_prog_compiler_pic_D
='-KPIC'
12622 lt_prog_compiler_static_D
='-Bstatic'
12626 lt_prog_compiler_wl_D
='-Wl,'
12627 lt_prog_compiler_can_build_shared_D
=no
12631 lt_prog_compiler_pic_D
='-pic'
12632 lt_prog_compiler_static_D
='-Bstatic'
12636 lt_prog_compiler_can_build_shared_D
=no
12642 # For platforms which do not support PIC, -DPIC is meaningless:
12644 lt_prog_compiler_pic_D
=
12647 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12651 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12656 # Check to make sure the PIC flag actually works.
12658 if test -n "$lt_prog_compiler_pic_D"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12660 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12661 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12662 $as_echo_n "(cached) " >&6
12664 lt_cv_prog_compiler_pic_works_D
=no
12665 ac_outfile
=conftest.
$ac_objext
12666 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12667 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12668 # Insert the option either (1) after the last *FLAGS variable, or
12669 # (2) before a word containing "conftest.", or (3) at the end.
12670 # Note that $ac_compile itself does not contain backslashes and begins
12671 # with a dollar sign (not a hyphen), so the echo should work correctly.
12672 # The option is referenced via a variable to avoid confusing sed.
12673 lt_compile
=`echo "$ac_compile" | $SED \
12674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12676 -e 's:$: $lt_compiler_flag:'`
12677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12678 (eval "$lt_compile" 2>conftest.err
)
12680 cat conftest.err
>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 if (exit $ac_status) && test -s "$ac_outfile"; then
12683 # The compiler can only warn and ignore the option if not recognized
12684 # So say no if there are warnings other than the usual output.
12685 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12686 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12687 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12688 lt_cv_prog_compiler_pic_works_D
=yes
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12695 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12697 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12698 case $lt_prog_compiler_pic_D in
12700 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12703 lt_prog_compiler_pic_D
=
12704 lt_prog_compiler_can_build_shared_D
=no
12712 # Check to make sure the static flag actually works.
12714 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12716 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12717 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12718 $as_echo_n "(cached) " >&6
12720 lt_cv_prog_compiler_static_works_D
=no
12721 save_LDFLAGS
="$LDFLAGS"
12722 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12723 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12724 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12725 # The linker can only warn and ignore the option if not recognized
12726 # So say no if there are warnings
12727 if test -s conftest.err
; then
12728 # Append any errors to the config.log.
12729 cat conftest.err
1>&5
12730 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12731 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12732 if diff conftest.exp conftest.er2
>/dev
/null
; then
12733 lt_cv_prog_compiler_static_works_D
=yes
12736 lt_cv_prog_compiler_static_works_D
=yes
12740 LDFLAGS
="$save_LDFLAGS"
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12744 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12746 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12749 lt_prog_compiler_static_D
=
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12757 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12758 $as_echo_n "(cached) " >&6
12760 lt_cv_prog_compiler_c_o_D
=no
12761 $RM -r conftest
2>/dev
/null
12765 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12767 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12768 # Insert the option either (1) after the last *FLAGS variable, or
12769 # (2) before a word containing "conftest.", or (3) at the end.
12770 # Note that $ac_compile itself does not contain backslashes and begins
12771 # with a dollar sign (not a hyphen), so the echo should work correctly.
12772 lt_compile
=`echo "$ac_compile" | $SED \
12773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12775 -e 's:$: $lt_compiler_flag:'`
12776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12777 (eval "$lt_compile" 2>out
/conftest.err
)
12779 cat out
/conftest.err
>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12783 # The compiler can only warn and ignore the option if not recognized
12784 # So say no if there are warnings
12785 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12786 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12787 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12788 lt_cv_prog_compiler_c_o_D
=yes
12793 # SGI C++ compiler will create directory out/ii_files/ for
12794 # template instantiation
12795 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12796 $RM out
/* && rmdir out
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12803 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12809 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12810 $as_echo_n "(cached) " >&6
12812 lt_cv_prog_compiler_c_o_D
=no
12813 $RM -r conftest
2>/dev
/null
12817 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12819 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12820 # Insert the option either (1) after the last *FLAGS variable, or
12821 # (2) before a word containing "conftest.", or (3) at the end.
12822 # Note that $ac_compile itself does not contain backslashes and begins
12823 # with a dollar sign (not a hyphen), so the echo should work correctly.
12824 lt_compile
=`echo "$ac_compile" | $SED \
12825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12827 -e 's:$: $lt_compiler_flag:'`
12828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12829 (eval "$lt_compile" 2>out
/conftest.err
)
12831 cat out
/conftest.err
>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12835 # The compiler can only warn and ignore the option if not recognized
12836 # So say no if there are warnings
12837 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12838 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12839 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12840 lt_cv_prog_compiler_c_o_D
=yes
12845 # SGI C++ compiler will create directory out/ii_files/ for
12846 # template instantiation
12847 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12848 $RM out
/* && rmdir out
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12855 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12860 hard_links
="nottested"
12861 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12862 # do not overwrite the value of need_locks provided by the user
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12864 $as_echo_n "checking if we can lock with hard links... " >&6; }
12867 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12869 ln conftest.a conftest.b
2>&5 || hard_links
=no
12870 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12872 $as_echo "$hard_links" >&6; }
12873 if test "$hard_links" = no
; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12875 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12888 allow_undefined_flag_D
=
12889 always_export_symbols_D
=no
12891 archive_expsym_cmds_D
=
12892 compiler_needs_object_D
=no
12893 enable_shared_with_static_runtimes_D
=no
12894 export_dynamic_flag_spec_D
=
12895 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12896 hardcode_automatic_D
=no
12897 hardcode_direct_D
=no
12898 hardcode_direct_absolute_D
=no
12899 hardcode_libdir_flag_spec_D
=
12900 hardcode_libdir_flag_spec_ld_D
=
12901 hardcode_libdir_separator_D
=
12902 hardcode_minus_L_D
=no
12903 hardcode_shlibpath_var_D
=unsupported
12905 link_all_deplibs_D
=unknown
12907 module_expsym_cmds_D
=
12908 old_archive_from_new_cmds_D
=
12909 old_archive_from_expsyms_cmds_D
=
12910 thread_safe_flag_spec_D
=
12911 whole_archive_flag_spec_D
=
12912 # include_expsyms should be a list of space-separated symbols to be *always*
12913 # included in the symbol list
12915 # exclude_expsyms can be an extended regexp of symbols to exclude
12916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12918 # as well as any symbol that contains `d'.
12919 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12921 # platforms (ab)use it in PIC code, but their linkers get confused if
12922 # the symbol is explicitly referenced. Since portable code cannot
12923 # rely on this symbol name, it's probably fine to never include it in
12924 # preloaded symbol tables.
12925 # Exclude shared library initialization/finalization symbols.
12926 extract_expsyms_cmds
=
12929 cygwin
* | mingw
* | pw32
* | cegcc
*)
12930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12931 # When not using gcc, we currently assume that we are using
12932 # Microsoft Visual C++.
12933 if test "$GCC" != yes; then
12938 # we just hope/assume this is gcc and not c89 (= MSVC++)
12948 # On some targets, GNU ld is compatible enough with the native linker
12949 # that we're better off using the native interface for both.
12950 lt_use_gnu_ld_interface
=no
12951 if test "$with_gnu_ld" = yes; then
12954 # The AIX port of GNU ld has always aspired to compatibility
12955 # with the native linker. However, as the warning in the GNU ld
12956 # block says, versions before 2.19.5* couldn't really create working
12957 # shared libraries, regardless of the interface used.
12958 case `$LD -v 2>&1` in
12959 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12960 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12961 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12963 lt_use_gnu_ld_interface
=yes
12968 lt_use_gnu_ld_interface
=yes
12973 if test "$lt_use_gnu_ld_interface" = yes; then
12974 # If archive_cmds runs LD, not CC, wlarc should be empty
12977 # Set some defaults for GNU ld with shared library support. These
12978 # are reset later if shared libraries are not supported. Putting them
12979 # here allows them to be overridden if necessary.
12980 runpath_var
=LD_RUN_PATH
12981 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12982 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12983 # ancient GNU ld didn't support --whole-archive et. al.
12984 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12985 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12987 whole_archive_flag_spec_D
=
12989 supports_anon_versioning
=no
12990 case `$LD -v 2>&1` in
12991 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12992 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12993 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12994 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12995 *\
2.11.
*) ;; # other 2.11 versions
12996 *) supports_anon_versioning
=yes ;;
12999 # See if GNU ld supports shared libraries.
13002 # On AIX/PPC, the GNU linker is very broken
13003 if test "$host_cpu" != ia64
; then
13007 *** Warning: the GNU linker, at least up to release 2.19, is reported
13008 *** to be unable to reliably create shared libraries on AIX.
13009 *** Therefore, libtool is disabling shared libraries support. If you
13010 *** really care for shared libraries, you may want to install binutils
13011 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13012 *** You will then need to restart the configuration process.
13021 # see comment about AmigaOS4 .so support
13022 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023 archive_expsym_cmds_D
=''
13026 archive_cmds_D
='$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)'
13027 hardcode_libdir_flag_spec_D
='-L$libdir'
13028 hardcode_minus_L_D
=yes
13034 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13035 allow_undefined_flag_D
=unsupported
13036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13037 # support --undefined. This deserves some investigation. FIXME
13038 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 cygwin
* | mingw
* | pw32
* | cegcc
*)
13045 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
13046 # as there is no search path for DLLs.
13047 hardcode_libdir_flag_spec_D
='-L$libdir'
13048 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
13049 allow_undefined_flag_D
=unsupported
13050 always_export_symbols_D
=no
13051 enable_shared_with_static_runtimes_D
=yes
13052 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13054 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13055 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13056 # If the export-symbols file already is a .def file (1st line
13057 # is EXPORTS), use it as is; otherwise, prepend...
13058 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13059 cp $export_symbols $output_objdir/$soname.def;
13061 echo EXPORTS > $output_objdir/$soname.def;
13062 cat $export_symbols >> $output_objdir/$soname.def;
13064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13071 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13072 link_all_deplibs_D
=yes
13076 hardcode_direct_D
=no
13077 hardcode_shlibpath_var_D
=no
13078 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13079 export_dynamic_flag_spec_D
='${wl}-E'
13080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13081 # Instead, shared libraries are loaded at an image base (0x10000000 by
13082 # default) and relocated if they conflict, which is a slow very memory
13083 # consuming and fragmenting process. To avoid this, we pick a random,
13084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13086 archive_cmds_D
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13087 archive_expsym_cmds_D
='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'
13090 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13092 if test "$host_os" = linux-dietlibc
; then
13093 case $cc_basename in
13094 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13097 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13098 && test "$tmp_diet" = no
13100 tmp_addflag
=' $pic_flag'
13101 tmp_sharedflag
='-shared'
13102 case $cc_basename,$host_cpu in
13103 pgcc
*) # Portland Group C compiler
13104 whole_archive_flag_spec_D
='${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'
13105 tmp_addflag
=' $pic_flag'
13107 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13108 # Portland Group f77 and f90 compilers
13109 whole_archive_flag_spec_D
='${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'
13110 tmp_addflag
=' $pic_flag -Mnomain' ;;
13111 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13112 tmp_addflag
=' -i_dynamic' ;;
13113 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13114 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13115 ifc
* | ifort
*) # Intel Fortran compiler
13116 tmp_addflag
=' -nofor_main' ;;
13117 lf95
*) # Lahey Fortran 8.1
13118 whole_archive_flag_spec_D
=
13119 tmp_sharedflag
='--shared' ;;
13120 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13121 tmp_sharedflag
='-qmkshrobj'
13123 nvcc
*) # Cuda Compiler Driver 2.2
13124 whole_archive_flag_spec_D
='${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'
13125 compiler_needs_object_D
=yes
13128 case `$CC -V 2>&1 | sed 5q` in
13129 *Sun\ C
*) # Sun C 5.9
13130 whole_archive_flag_spec_D
='${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'
13131 compiler_needs_object_D
=yes
13132 tmp_sharedflag
='-G' ;;
13133 *Sun\ F
*) # Sun Fortran 8.3
13134 tmp_sharedflag
='-G' ;;
13136 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138 if test "x$supports_anon_versioning" = xyes
; then
13139 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13141 echo "local: *; };" >> $output_objdir/$libname.ver~
13142 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13145 case $cc_basename in
13146 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13147 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13148 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
13149 hardcode_libdir_flag_spec_D
=
13150 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
13151 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13152 if test "x$supports_anon_versioning" = xyes
; then
13153 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13155 echo "local: *; };" >> $output_objdir/$libname.ver~
13156 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13166 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13167 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13170 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13176 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13180 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13181 *** create shared libraries on Solaris systems. Therefore, libtool
13182 *** is disabling shared libraries support. We urge you to upgrade GNU
13183 *** binutils to release 2.9.1 or newer. Another option is to modify
13184 *** your PATH or compiler configuration so that the native linker is
13185 *** used, and then restart.
13188 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13189 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13196 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13197 case `$LD -v 2>&1` in
13198 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13202 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13203 *** reliably create shared libraries on SCO systems. Therefore, libtool
13204 *** is disabling shared libraries support. We urge you to upgrade GNU
13205 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13206 *** your PATH or compiler configuration so that the native linker is
13207 *** used, and then restart.
13212 # For security reasons, it is highly recommended that you always
13213 # use absolute paths for naming shared libraries, and exclude the
13214 # DT_RUNPATH tag from executables and libraries. But doing so
13215 # requires that you compile everything twice, which is a pain.
13216 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13217 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13218 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13228 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13230 hardcode_direct_D
=yes
13231 hardcode_shlibpath_var_D
=no
13235 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13236 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13244 if test "$ld_shlibs_D" = no
; then
13246 hardcode_libdir_flag_spec_D
=
13247 export_dynamic_flag_spec_D
=
13248 whole_archive_flag_spec_D
=
13251 # PORTME fill in a description of your system's linker (not GNU ld)
13254 allow_undefined_flag_D
=unsupported
13255 always_export_symbols_D
=yes
13256 archive_expsym_cmds_D
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13257 # Note: this linker hardcodes the directories in LIBPATH if there
13258 # are no directories specified by -L.
13259 hardcode_minus_L_D
=yes
13260 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13261 # Neither direct hardcoding nor static linking is supported with a
13263 hardcode_direct_D
=unsupported
13268 if test "$host_cpu" = ia64
; then
13269 # On IA64, the linker does run time linking by default, so we don't
13270 # have to do anything special.
13271 aix_use_runtimelinking
=no
13272 exp_sym_flag
='-Bexport'
13275 # If we're using GNU nm, then we don't want the "-C" option.
13276 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13277 # Also, AIX nm treats weak defined symbols like other global
13278 # defined symbols, whereas GNU nm marks them as "W".
13279 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13280 export_symbols_cmds_D
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13282 export_symbols_cmds_D
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13284 aix_use_runtimelinking
=no
13286 # Test if we are trying to use run time linking or normal
13287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13288 # need to do runtime linking.
13289 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13290 for ld_flag
in $LDFLAGS; do
13291 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13292 aix_use_runtimelinking
=yes
13299 exp_sym_flag
='-bexport'
13300 no_entry_flag
='-bnoentry'
13303 # When large executables or shared objects are built, AIX ld can
13304 # have problems creating the table of contents. If linking a library
13305 # or program results in "error TOC overflow" add -mminimal-toc to
13306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13310 hardcode_direct_D
=yes
13311 hardcode_direct_absolute_D
=yes
13312 hardcode_libdir_separator_D
=':'
13313 link_all_deplibs_D
=yes
13314 file_list_spec_D
='${wl}-f,'
13316 if test "$GCC" = yes; then
13317 case $host_os in aix4.
[012]|aix4.
[012].
*)
13318 # We only want to do this on AIX 4.2 and lower, the check
13319 # below for broken collect2 doesn't work under 4.3+
13320 collect2name
=`${CC} -print-prog-name=collect2`
13321 if test -f "$collect2name" &&
13322 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13324 # We have reworked collect2
13327 # We have old collect2
13328 hardcode_direct_D
=unsupported
13329 # It fails to find uninstalled libraries when the uninstalled
13330 # path is not listed in the libpath. Setting hardcode_minus_L
13331 # to unsupported forces relinking
13332 hardcode_minus_L_D
=yes
13333 hardcode_libdir_flag_spec_D
='-L$libdir'
13334 hardcode_libdir_separator_D
=
13338 shared_flag
='-shared'
13339 if test "$aix_use_runtimelinking" = yes; then
13340 shared_flag
="$shared_flag "'${wl}-G'
13344 if test "$host_cpu" = ia64
; then
13345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13346 # chokes on -Wl,-G. The following line is correct:
13349 if test "$aix_use_runtimelinking" = yes; then
13350 shared_flag
='${wl}-G'
13352 shared_flag
='${wl}-bM:SRE'
13357 export_dynamic_flag_spec_D
='${wl}-bexpall'
13358 # It seems that -bexpall does not export symbols beginning with
13359 # underscore (_), so it is better to generate a list of symbols to export.
13360 always_export_symbols_D
=yes
13361 if test "$aix_use_runtimelinking" = yes; then
13362 # Warning - without using the other runtime loading flags (-brtl),
13363 # -berok will link without error, but may produce a broken library.
13364 allow_undefined_flag_D
='-berok'
13365 # Determine the default libpath from the value encoded in an
13366 # empty executable.
13367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13378 if ac_fn_c_try_link
"$LINENO"; then :
13380 lt_aix_libpath_sed
='
13381 /Import File Strings/,/^$/ {
13387 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13388 # Check for a 64-bit object if we didn't find anything.
13389 if test -z "$aix_libpath"; then
13390 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13393 rm -f core conftest.err conftest.
$ac_objext \
13394 conftest
$ac_exeext conftest.
$ac_ext
13395 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13397 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13398 archive_expsym_cmds_D
='$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"
13400 if test "$host_cpu" = ia64
; then
13401 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13402 allow_undefined_flag_D
="-z nodefs"
13403 archive_expsym_cmds_D
="\$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"
13405 # Determine the default libpath from the value encoded in an
13406 # empty executable.
13407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13418 if ac_fn_c_try_link
"$LINENO"; then :
13420 lt_aix_libpath_sed
='
13421 /Import File Strings/,/^$/ {
13427 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13428 # Check for a 64-bit object if we didn't find anything.
13429 if test -z "$aix_libpath"; then
13430 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13433 rm -f core conftest.err conftest.
$ac_objext \
13434 conftest
$ac_exeext conftest.
$ac_ext
13435 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13437 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13438 # Warning - without using the other run time loading flags,
13439 # -berok will link without error, but may produce a broken library.
13440 no_undefined_flag_D
=' ${wl}-bernotok'
13441 allow_undefined_flag_D
=' ${wl}-berok'
13442 if test "$with_gnu_ld" = yes; then
13443 # We only use this code for GNU lds that support --whole-archive.
13444 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13446 # Exported symbols can be pulled into shared objects from archives
13447 whole_archive_flag_spec_D
='$convenience'
13449 archive_cmds_need_lc_D
=yes
13450 # This is similar to how AIX traditionally builds its shared libraries.
13451 archive_expsym_cmds_D
="\$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'
13459 # see comment about AmigaOS4 .so support
13460 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461 archive_expsym_cmds_D
=''
13464 archive_cmds_D
='$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)'
13465 hardcode_libdir_flag_spec_D
='-L$libdir'
13466 hardcode_minus_L_D
=yes
13472 export_dynamic_flag_spec_D
=-rdynamic
13475 cygwin
* | mingw
* | pw32
* | cegcc
*)
13476 # When not using gcc, we currently assume that we are using
13477 # Microsoft Visual C++.
13478 # hardcode_libdir_flag_spec is actually meaningless, as there is
13479 # no search path for DLLs.
13480 hardcode_libdir_flag_spec_D
=' '
13481 allow_undefined_flag_D
=unsupported
13482 # Tell ltmain to make .lib files, not .a files.
13484 # Tell ltmain to make .dll files, not .so files.
13486 # FIXME: Setting linknames here is a bad hack.
13487 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13488 # The linker will automatically build a .lib file if we build a DLL.
13489 old_archive_from_new_cmds_D
='true'
13490 # FIXME: Should let the user specify the lib program.
13491 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13492 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13493 enable_shared_with_static_runtimes_D
=yes
13496 darwin
* | rhapsody
*)
13500 # Publish an arg to allow the user to select that Darwin host (and target)
13501 # libraries should be given install-names like @rpath/libfoo.dylib. This
13502 # requires that the user of the library then adds an 'rpath' to the DSO that
13504 # NOTE: there are defaults below, for systems that support rpaths. The person
13505 # configuring can override the defaults for any system version that supports
13506 # them - they are, however, forced off for system versions without support.
13507 # Check whether --enable-darwin-at-rpath was given.
13508 if test "${enable_darwin_at_rpath+set}" = set; then :
13509 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13510 # This is not supported before macOS 10.5 / Darwin9.
13511 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13512 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13514 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13515 enable_darwin_at_rpath
=no
13520 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13521 # As above, before 10.5 / Darwin9 this does not work.
13522 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
13523 enable_darwin_at_rpath
=no
13526 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13527 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13528 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13529 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13531 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13532 enable_darwin_at_rpath
=yes
13534 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13535 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13542 archive_cmds_need_lc_D
=no
13543 hardcode_direct_D
=no
13544 hardcode_automatic_D
=yes
13545 hardcode_shlibpath_var_D
=unsupported
13546 if test "$lt_cv_ld_force_load" = "yes"; then
13547 whole_archive_flag_spec_D
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13549 whole_archive_flag_spec_D
=''
13551 link_all_deplibs_D
=yes
13552 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13553 case $cc_basename in
13554 ifort
*) _lt_dar_can_shared
=yes ;;
13555 *) _lt_dar_can_shared
=$GCC ;;
13557 if test "$_lt_dar_can_shared" = "yes"; then
13558 output_verbose_link_cmd
=func_echo_all
13559 _lt_install_name
='\$rpath/\$soname'
13560 if test "x$enable_darwin_at_rpath" = "xyes"; then
13561 _lt_install_name
='@rpath/\$soname'
13563 archive_cmds_D
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13564 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13565 archive_expsym_cmds_D
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13566 module_expsym_cmds_D
="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}"
13575 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13576 hardcode_libdir_flag_spec_D
='-L$libdir'
13577 hardcode_shlibpath_var_D
=no
13580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13581 # support. Future versions do this automatically, but an explicit c++rt0.o
13582 # does not break anything, and helps significantly (at the cost of a little
13585 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13586 hardcode_libdir_flag_spec_D
='-R$libdir'
13587 hardcode_direct_D
=yes
13588 hardcode_shlibpath_var_D
=no
13591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13593 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13594 hardcode_direct_D
=yes
13595 hardcode_minus_L_D
=yes
13596 hardcode_shlibpath_var_D
=no
13599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13600 freebsd
* | dragonfly
*)
13601 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13602 hardcode_libdir_flag_spec_D
='-R$libdir'
13603 hardcode_direct_D
=yes
13604 hardcode_shlibpath_var_D
=no
13608 if test "$GCC" = yes; then
13609 archive_cmds_D
='$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'
13611 archive_cmds_D
='$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'
13613 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13614 hardcode_libdir_separator_D
=:
13615 hardcode_direct_D
=yes
13617 # hardcode_minus_L: Not really in the search PATH,
13618 # but as the default location of the library.
13619 hardcode_minus_L_D
=yes
13620 export_dynamic_flag_spec_D
='${wl}-E'
13624 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13625 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13627 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13629 if test "$with_gnu_ld" = no
; then
13630 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13631 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13632 hardcode_libdir_separator_D
=:
13633 hardcode_direct_D
=yes
13634 hardcode_direct_absolute_D
=yes
13635 export_dynamic_flag_spec_D
='${wl}-E'
13636 # hardcode_minus_L: Not really in the search PATH,
13637 # but as the default location of the library.
13638 hardcode_minus_L_D
=yes
13643 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13646 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13658 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13664 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13668 if test "$with_gnu_ld" = no
; then
13669 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13670 hardcode_libdir_separator_D
=:
13674 hardcode_direct_D
=no
13675 hardcode_shlibpath_var_D
=no
13678 hardcode_direct_D
=yes
13679 hardcode_direct_absolute_D
=yes
13680 export_dynamic_flag_spec_D
='${wl}-E'
13682 # hardcode_minus_L: Not really in the search PATH,
13683 # but as the default location of the library.
13684 hardcode_minus_L_D
=yes
13690 irix5
* | irix6
* | nonstopux
*)
13691 if test "$GCC" = yes; then
13692 archive_cmds_D
='$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'
13693 # Try to use the -exported_symbol ld option, if it does not
13694 # work, assume that -exports_file does not work either and
13695 # implicitly export all symbols.
13696 save_LDFLAGS
="$LDFLAGS"
13697 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13702 if ac_fn_c_try_link
"$LINENO"; then :
13703 archive_expsym_cmds_D
='$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'
13706 rm -f core conftest.err conftest.
$ac_objext \
13707 conftest
$ac_exeext conftest.
$ac_ext
13708 LDFLAGS
="$save_LDFLAGS"
13710 archive_cmds_D
='$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'
13711 archive_expsym_cmds_D
='$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'
13713 archive_cmds_need_lc_D
='no'
13714 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13715 hardcode_libdir_separator_D
=:
13716 inherit_rpath_D
=yes
13717 link_all_deplibs_D
=yes
13721 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13722 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13724 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13726 hardcode_libdir_flag_spec_D
='-R$libdir'
13727 hardcode_direct_D
=yes
13728 hardcode_shlibpath_var_D
=no
13732 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13733 hardcode_direct_D
=yes
13734 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13735 hardcode_libdir_separator_D
=:
13736 hardcode_shlibpath_var_D
=no
13743 if test -f /usr
/libexec
/ld.so
; then
13744 hardcode_direct_D
=yes
13745 hardcode_shlibpath_var_D
=no
13746 hardcode_direct_absolute_D
=yes
13747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13748 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13749 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13750 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13751 export_dynamic_flag_spec_D
='${wl}-E'
13754 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13755 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_libdir_flag_spec_D
='-R$libdir'
13759 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13760 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13770 hardcode_libdir_flag_spec_D
='-L$libdir'
13771 hardcode_minus_L_D
=yes
13772 allow_undefined_flag_D
=unsupported
13773 archive_cmds_D
='$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'
13774 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13778 if test "$GCC" = yes; then
13779 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13780 archive_cmds_D
='$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'
13782 allow_undefined_flag_D
=' -expect_unresolved \*'
13783 archive_cmds_D
='$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'
13785 archive_cmds_need_lc_D
='no'
13786 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13787 hardcode_libdir_separator_D
=:
13790 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13791 if test "$GCC" = yes; then
13792 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13793 archive_cmds_D
='$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'
13794 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13796 allow_undefined_flag_D
=' -expect_unresolved \*'
13797 archive_cmds_D
='$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'
13798 archive_expsym_cmds_D
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13799 $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'
13801 # Both c and cxx compiler support -rpath directly
13802 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13804 archive_cmds_need_lc_D
='no'
13805 hardcode_libdir_separator_D
=:
13809 no_undefined_flag_D
=' -z defs'
13810 if test "$GCC" = yes; then
13812 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13814 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13816 case `$CC -V 2>&1` in
13819 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13820 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13821 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13825 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13827 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13831 hardcode_libdir_flag_spec_D
='-R$libdir'
13832 hardcode_shlibpath_var_D
=no
13834 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13836 # The compiler driver will combine and reorder linker options,
13837 # but understands `-z linker_flag'. GCC discards it without `$wl',
13838 # but is careful enough not to reorder.
13839 # Supported since Solaris 2.6 (maybe 2.5.1?)
13840 if test "$GCC" = yes; then
13841 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13843 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13847 link_all_deplibs_D
=yes
13851 if test "x$host_vendor" = xsequent
; then
13852 # Use $CC to link under sequent, because it throws in some extra .o
13853 # files that make .init and .fini sections work.
13854 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13856 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13858 hardcode_libdir_flag_spec_D
='-L$libdir'
13859 hardcode_direct_D
=yes
13860 hardcode_minus_L_D
=yes
13861 hardcode_shlibpath_var_D
=no
13865 case $host_vendor in
13867 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13868 hardcode_direct_D
=yes # is this really true???
13871 ## LD is ld it makes a PLAMLIB
13872 ## CC just makes a GrossModule.
13873 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13874 reload_cmds_D
='$CC -r -o $output$reload_objs'
13875 hardcode_direct_D
=no
13878 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13882 runpath_var
='LD_RUN_PATH'
13883 hardcode_shlibpath_var_D
=no
13887 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888 hardcode_shlibpath_var_D
=no
13889 export_dynamic_flag_spec_D
='-Bexport'
13893 if test -d /usr
/nec
; then
13894 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13895 hardcode_shlibpath_var_D
=no
13896 runpath_var
=LD_RUN_PATH
13897 hardcode_runpath_var
=yes
13902 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13903 no_undefined_flag_D
='${wl}-z,text'
13904 archive_cmds_need_lc_D
=no
13905 hardcode_shlibpath_var_D
=no
13906 runpath_var
='LD_RUN_PATH'
13908 if test "$GCC" = yes; then
13909 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13910 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13913 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13917 sysv5
* | sco3.2v5
* | sco5v6
*)
13918 # Note: We can NOT use -z defs as we might desire, because we do not
13919 # link with -lc, and that would cause any symbols used from libc to
13920 # always be unresolved, which means just about no library would
13921 # ever link correctly. If we're not using GNU ld we use -z text
13922 # though, which does catch some bad symbols but isn't as heavy-handed
13924 no_undefined_flag_D
='${wl}-z,text'
13925 allow_undefined_flag_D
='${wl}-z,nodefs'
13926 archive_cmds_need_lc_D
=no
13927 hardcode_shlibpath_var_D
=no
13928 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13929 hardcode_libdir_separator_D
=':'
13930 link_all_deplibs_D
=yes
13931 export_dynamic_flag_spec_D
='${wl}-Bexport'
13932 runpath_var
='LD_RUN_PATH'
13934 if test "$GCC" = yes; then
13935 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13936 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13938 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13939 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13944 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13945 hardcode_libdir_flag_spec_D
='-L$libdir'
13946 hardcode_shlibpath_var_D
=no
13954 if test x
$host_vendor = xsni
; then
13956 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13957 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13964 $as_echo "$ld_shlibs_D" >&6; }
13965 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13967 with_gnu_ld_D
=$with_gnu_ld
13975 # Do we need to explicitly link libc?
13977 case "x$archive_cmds_need_lc_D" in
13979 # Assume -lc should be added
13980 archive_cmds_need_lc_D
=yes
13982 if test "$enable_shared" = yes && test "$GCC" = yes; then
13983 case $archive_cmds_D in
13985 # FIXME: we may have to deal with multi-command sequences.
13988 # Test whether the compiler implicitly links with -lc since on some
13989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13990 # to ld, don't add -lc before -lgcc.
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13993 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13994 $as_echo_n "(cached) " >&6
13997 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14000 (eval $ac_compile) 2>&5
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; } 2>conftest.err
; then
14006 libobjs
=conftest.
$ac_objext
14008 wl
=$lt_prog_compiler_wl_D
14009 pic_flag
=$lt_prog_compiler_pic_D
14015 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
14016 allow_undefined_flag_D
=
14017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14018 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021 test $ac_status = 0; }
14023 lt_cv_archive_cmds_need_lc_D
=no
14025 lt_cv_archive_cmds_need_lc_D
=yes
14027 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
14029 cat conftest.err
1>&5
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
14035 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
14036 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14107 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14109 if test -n "$hardcode_libdir_flag_spec_D" ||
14110 test -n "$runpath_var_D" ||
14111 test "X$hardcode_automatic_D" = "Xyes" ; then
14113 # We can hardcode non-existent directories.
14114 if test "$hardcode_direct_D" != no
&&
14115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14116 # have to relink, otherwise we might link with an installed library
14117 # when we should be linking with a yet-to-be-installed one
14118 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
14119 test "$hardcode_minus_L_D" != no
; then
14120 # Linking always hardcodes the temporary library directory.
14121 hardcode_action_D
=relink
14123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14124 hardcode_action_D
=immediate
14127 # We cannot hardcode anything, or else we can only hardcode existing
14129 hardcode_action_D
=unsupported
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
14132 $as_echo "$hardcode_action_D" >&6; }
14134 if test "$hardcode_action_D" = relink ||
14135 test "$inherit_rpath_D" = yes; then
14136 # Fast installation is not supported
14137 enable_fast_install
=no
14138 elif test "$shlibpath_overrides_runpath" = yes ||
14139 test "$enable_shared" = no
; then
14140 # Fast installation is not necessary
14141 enable_fast_install
=needless
14153 ac_cpp
='$CPP $CPPFLAGS'
14154 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14155 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14156 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14161 CFLAGS
=$lt_save_CFLAGS
14163 GDCFLAGS
=$gdc_save_DFLAGS
14167 if test x
$enable_darwin_at_rpath = xyes
; then
14168 ENABLE_DARWIN_AT_RPATH_TRUE
=
14169 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
14171 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
14172 ENABLE_DARWIN_AT_RPATH_FALSE
=
14176 # libtool variables for Phobos shared and position-independent compiles.
14178 # Use phobos_lt_pic_flag to designate the automake variable
14179 # used to encapsulate the default libtool approach to creating objects
14180 # with position-independent code. Default: -prefer-pic.
14182 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14183 # creating shared objects. Default: -fversion=Shared.
14185 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14186 # creating position-independent objects. This varies with the target
14187 # hardware and operating system, but is often: -fPIC.
14189 # The distinction between pic and shared compilation flags is not present in
14190 # libtool, and so we make it here. How it is handled is that in shared
14191 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14192 # ensure that conditional compilation of shared runtime code is compiled in.
14193 if test "$enable_shared" = yes; then
14194 phobos_lt_pic_flag
="-prefer-pic"
14195 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
14196 phobos_compiler_shared_flag
="-fversion=Shared"
14198 phobos_lt_pic_flag
=
14199 phobos_compiler_pic_flag
=
14200 phobos_compiler_shared_flag
=
14206 # Override the libtool's pic_flag and pic_mode.
14207 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14208 # NB: this impacts --with-pic and --without-pic.
14209 lt_prog_compiler_pic_D
="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
14212 # Determine what GCC version number to use in filesystem paths.
14214 get_gcc_base_ver
="cat"
14216 # Check whether --with-gcc-major-version-only was given.
14217 if test "${with_gcc_major_version_only+set}" = set; then :
14218 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
14219 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
14227 # libphobos/libdruntime specific options and feature detection
14229 # These need to be absolute paths, yet at the same time need to
14230 # canonicalize only relative paths, because then amd will not unmount
14231 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14232 libphobos_builddir
=`${PWDCMD-pwd}`
14234 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
14235 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14241 if test ${multilib} = yes; then
14242 multilib_arg
="--enable-multilib"
14248 # Check whether --enable-werror was given.
14249 if test "${enable_werror+set}" = set; then :
14250 enableval
=$enable_werror;
14254 if test "x$enable_werror" = "xyes"; then
14255 WERROR_FLAG
="-Werror"
14261 gdc_save_DFLAGS
=$GDCFLAGS
14262 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14265 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14266 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu
=yes
14269 GDCFLAGS
="$GDCFLAGS -g -Werror -ffunction-sections -fdata-sections"
14270 cat > conftest.
$ac_ext <<_ACEOF
14272 int foo; void bar() { }
14274 extern(C) int main() {
14278 if ac_fn_d_try_compile
"$LINENO"; then :
14283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14284 if test "x$ac_fdsections" = "xyes"; then
14285 SECTION_FLAGS
='-ffunction-sections -fdata-sections'
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
14288 $as_echo "$ac_fdsections" >&6; }
14290 ac_cpp
='$CPP $CPPFLAGS'
14291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14296 GDCFLAGS
=$gdc_save_DFLAGS
14301 druntime_target_cpu_parsed
=""
14302 case "$target_cpu" in
14304 druntime_target_cpu_parsed
="aarch64"
14306 arm
*) druntime_target_cpu_parsed
="arm"
14308 mips
*) druntime_target_cpu_parsed
="mips"
14311 druntime_target_cpu_parsed
="powerpc"
14314 druntime_target_cpu_parsed
="x86"
14317 druntime_target_cpu_parsed
="s390x"
14320 druntime_target_cpu_parsed
="s390"
14323 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14324 DRUNTIME_CPU_AARCH64_TRUE
=
14325 DRUNTIME_CPU_AARCH64_FALSE
='#'
14327 DRUNTIME_CPU_AARCH64_TRUE
='#'
14328 DRUNTIME_CPU_AARCH64_FALSE
=
14331 if test "$druntime_target_cpu_parsed" = "arm"; then
14332 DRUNTIME_CPU_ARM_TRUE
=
14333 DRUNTIME_CPU_ARM_FALSE
='#'
14335 DRUNTIME_CPU_ARM_TRUE
='#'
14336 DRUNTIME_CPU_ARM_FALSE
=
14339 if test "$druntime_target_cpu_parsed" = "mips"; then
14340 DRUNTIME_CPU_MIPS_TRUE
=
14341 DRUNTIME_CPU_MIPS_FALSE
='#'
14343 DRUNTIME_CPU_MIPS_TRUE
='#'
14344 DRUNTIME_CPU_MIPS_FALSE
=
14347 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14348 DRUNTIME_CPU_POWERPC_TRUE
=
14349 DRUNTIME_CPU_POWERPC_FALSE
='#'
14351 DRUNTIME_CPU_POWERPC_TRUE
='#'
14352 DRUNTIME_CPU_POWERPC_FALSE
=
14355 if test "$druntime_target_cpu_parsed" = "x86"; then
14356 DRUNTIME_CPU_X86_TRUE
=
14357 DRUNTIME_CPU_X86_FALSE
='#'
14359 DRUNTIME_CPU_X86_TRUE
='#'
14360 DRUNTIME_CPU_X86_FALSE
=
14363 if test "$druntime_target_cpu_parsed" = "s390x"; then
14364 DRUNTIME_CPU_SYSTEMZ_TRUE
=
14365 DRUNTIME_CPU_SYSTEMZ_FALSE
='#'
14367 DRUNTIME_CPU_SYSTEMZ_TRUE
='#'
14368 DRUNTIME_CPU_SYSTEMZ_FALSE
=
14371 if test "$druntime_target_cpu_parsed" = "s390"; then
14372 DRUNTIME_CPU_S390_TRUE
=
14373 DRUNTIME_CPU_S390_FALSE
='#'
14375 DRUNTIME_CPU_S390_TRUE
='#'
14376 DRUNTIME_CPU_S390_FALSE
=
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14382 $as_echo_n "checking for target OS... " >&6; }
14383 if ${druntime_cv_target_os+:} false
; then :
14384 $as_echo_n "(cached) " >&6
14386 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14389 $as_echo "$druntime_cv_target_os" >&6; }
14390 if test -z "$druntime_cv_target_os"; then :
14391 as_fn_error $?
"can't detect target OS" "$LINENO" 5
14397 druntime_target_os_parsed
=""
14398 case "$druntime_cv_target_os" in
14399 aix
*) druntime_target_os_parsed
="aix"
14402 druntime_target_os_parsed
="android"
14404 darwin
*) druntime_target_os_parsed
="darwin"
14407 druntime_target_os_parsed
="dragonflybsd"
14409 freebsd
*|k
*bsd
*-gnu)
14410 druntime_target_os_parsed
="freebsd"
14413 druntime_target_os_parsed
="openbsd"
14416 druntime_target_os_parsed
="netbsd"
14418 linux
*) druntime_target_os_parsed
="linux"
14420 mingw
*) druntime_target_os_parsed
="mingw"
14422 *solaris
*) druntime_target_os_parsed
="solaris"
14424 if test "$druntime_target_os_parsed" = "aix"; then
14425 DRUNTIME_OS_AIX_TRUE
=
14426 DRUNTIME_OS_AIX_FALSE
='#'
14428 DRUNTIME_OS_AIX_TRUE
='#'
14429 DRUNTIME_OS_AIX_FALSE
=
14432 if test "$druntime_target_os_parsed" = "android"; then
14433 DRUNTIME_OS_ANDROID_TRUE
=
14434 DRUNTIME_OS_ANDROID_FALSE
='#'
14436 DRUNTIME_OS_ANDROID_TRUE
='#'
14437 DRUNTIME_OS_ANDROID_FALSE
=
14440 if test "$druntime_target_os_parsed" = "darwin"; then
14441 DRUNTIME_OS_DARWIN_TRUE
=
14442 DRUNTIME_OS_DARWIN_FALSE
='#'
14444 DRUNTIME_OS_DARWIN_TRUE
='#'
14445 DRUNTIME_OS_DARWIN_FALSE
=
14448 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14449 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
14450 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
14452 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
14453 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
14456 if test "$druntime_target_os_parsed" = "freebsd"; then
14457 DRUNTIME_OS_FREEBSD_TRUE
=
14458 DRUNTIME_OS_FREEBSD_FALSE
='#'
14460 DRUNTIME_OS_FREEBSD_TRUE
='#'
14461 DRUNTIME_OS_FREEBSD_FALSE
=
14464 if test "$druntime_target_os_parsed" = "netbsd"; then
14465 DRUNTIME_OS_NETBSD_TRUE
=
14466 DRUNTIME_OS_NETBSD_FALSE
='#'
14468 DRUNTIME_OS_NETBSD_TRUE
='#'
14469 DRUNTIME_OS_NETBSD_FALSE
=
14472 if test "$druntime_target_os_parsed" = "openbsd"; then
14473 DRUNTIME_OS_OPENBSD_TRUE
=
14474 DRUNTIME_OS_OPENBSD_FALSE
='#'
14476 DRUNTIME_OS_OPENBSD_TRUE
='#'
14477 DRUNTIME_OS_OPENBSD_FALSE
=
14480 if test "$druntime_target_os_parsed" = "linux"; then
14481 DRUNTIME_OS_LINUX_TRUE
=
14482 DRUNTIME_OS_LINUX_FALSE
='#'
14484 DRUNTIME_OS_LINUX_TRUE
='#'
14485 DRUNTIME_OS_LINUX_FALSE
=
14488 if test "$druntime_target_os_parsed" = "mingw"; then
14489 DRUNTIME_OS_MINGW_TRUE
=
14490 DRUNTIME_OS_MINGW_FALSE
='#'
14492 DRUNTIME_OS_MINGW_TRUE
='#'
14493 DRUNTIME_OS_MINGW_FALSE
=
14496 if test "$druntime_target_os_parsed" = "solaris"; then
14497 DRUNTIME_OS_SOLARIS_TRUE
=
14498 DRUNTIME_OS_SOLARIS_FALSE
='#'
14500 DRUNTIME_OS_SOLARIS_TRUE
='#'
14501 DRUNTIME_OS_SOLARIS_FALSE
=
14505 druntime_target_posix
="no"
14506 case "$druntime_cv_target_os" in
14507 aix
*|
*bsd
*|cygwin
*|darwin
*|dragonfly
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*)
14508 druntime_target_posix
="yes"
14511 if test "$druntime_target_posix" = "yes"; then
14512 DRUNTIME_OS_POSIX_TRUE
=
14513 DRUNTIME_OS_POSIX_FALSE
='#'
14515 DRUNTIME_OS_POSIX_TRUE
='#'
14516 DRUNTIME_OS_POSIX_FALSE
=
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14523 $as_echo_n "checking for thread model used by GDC... " >&6; }
14524 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14526 $as_echo "$d_thread_model" >&6; }
14528 # Map from thread model to thread interface.
14530 case $d_thread_model in
14531 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14532 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14533 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14534 single
) DCFG_THREAD_MODEL
="Single" ;;
14535 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14536 # TODO: These targets need porting.
14537 dce|mipssde|rtems|tpf|vxworks
)
14538 DCFG_THREAD_MODEL
="Single" ;;
14539 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14546 ac_cpp
='$CPP $CPPFLAGS'
14547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14552 $as_echo_n "checking for ARM unwinder... " >&6; }
14553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14555 #include <unwind.h>
14560 #if __ARM_EABI_UNWINDER__
14568 if ac_fn_c_try_compile
"$LINENO"; then :
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570 $as_echo "no" >&6; }
14571 DCFG_ARM_EABI_UNWINDER
=false
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14574 $as_echo "yes" >&6; }
14575 DCFG_ARM_EABI_UNWINDER
=true
14577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14579 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14580 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14581 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14583 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14584 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14588 ac_cpp
='$CPP $CPPFLAGS'
14589 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14590 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14591 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14598 ac_cpp
='$CPP $CPPFLAGS'
14599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14604 $as_echo_n "checking for minfo section bracketing... " >&6; }
14605 case "$druntime_cv_target_os" in
14607 section
="__DATA,__minfodata"
14608 start
="section\$start\$__DATA\$__minfodata"
14609 stop
="section\$end\$__DATA\$__minfodata"
14613 start
="__start_minfo"
14614 stop
="__stop_minfo"
14617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14620 void* module_info_ptr __attribute__((section ("$section")));
14621 extern void* start_minfo __asm__("$start") __attribute__((visibility ("hidden")));
14622 extern void* stop_minfo __asm__("$stop") __attribute__((visibility ("hidden")));
14626 // Never run, just to prevent compiler from optimizing access
14627 return (int)(&stop_minfo - &start_minfo);
14631 if ac_fn_c_try_link
"$LINENO"; then :
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14633 $as_echo "yes" >&6; }
14634 DCFG_MINFO_BRACKETING
=true
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638 DCFG_MINFO_BRACKETING
=false
14640 rm -f core conftest.err conftest.
$ac_objext \
14641 conftest
$ac_exeext conftest.
$ac_ext
14643 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14644 DRUNTIME_OS_MINFO_BRACKETING_TRUE
=
14645 DRUNTIME_OS_MINFO_BRACKETING_FALSE
='#'
14647 DRUNTIME_OS_MINFO_BRACKETING_TRUE
='#'
14648 DRUNTIME_OS_MINFO_BRACKETING_FALSE
=
14652 ac_cpp
='$CPP $CPPFLAGS'
14653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14660 ac_cpp
='$CPP $CPPFLAGS'
14661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14665 ac_fn_c_check_member
"$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14667 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes
; then :
14668 DCFG_DLPI_TLS_MODID
=true
14670 DCFG_DLPI_TLS_MODID
=false
14675 ac_cpp
='$CPP $CPPFLAGS'
14676 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14677 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14678 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14683 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
14684 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14685 # relocs. Work around by disabling TLS transitions. Not necessary
14686 # on 32-bit x86, but cannot be distinguished reliably in specs.
14687 druntime_ld_prog
=`$CC -print-prog-name=ld`
14689 druntime_ld_relax_transtls
=no
14690 if test -n "$druntime_ld_prog" \
14691 && $druntime_ld_prog -v 2>&1 |
grep GNU
> /dev
/null
2>&1; then
14692 druntime_ld_gld
=yes
14694 echo 'int main (void) { return 0; }' > conftest.c
14695 save_LDFLAGS
="$LDFLAGS"
14696 LDFLAGS
="$LDFLAGS -Wl,-z,relax=transtls"
14697 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c
> /dev
/null
2>&1; then
14698 druntime_ld_relax_transtls
=yes
14700 LDFLAGS
="$save_LDFLAGS"
14701 rm -f conftest.c conftest
14703 if test "$druntime_ld_relax_transtls" = "yes"; then
14704 OS_LINK_SPEC
='-z relax=transtls'
14712 ac_cpp
='$CPP $CPPFLAGS'
14713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14717 DCFG_HAVE_QSORT_R
=false
14718 ac_fn_c_check_func
"$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14719 if test "x$ac_cv_func_qsort_r" = xyes
; then :
14720 DCFG_HAVE_QSORT_R
=true
14725 ac_cpp
='$CPP $CPPFLAGS'
14726 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14734 gdc_save_DFLAGS
=$GDCFLAGS
14735 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14738 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14739 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14740 ac_compiler_gnu
=yes
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14743 $as_echo_n "checking for library containing malloc... " >&6; }
14744 if ${ac_cv_search_malloc+:} false
; then :
14745 $as_echo_n "(cached) " >&6
14747 ac_func_search_save_LIBS
=$LIBS
14748 cat > conftest.
$ac_ext <<_ACEOF
14750 extern(C) int malloc();
14752 extern(C) int main() {
14753 malloc(); return 0;
14756 for ac_lib
in '' c
; do
14757 if test -z "$ac_lib"; then
14758 ac_res
="none required"
14761 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14763 if ac_fn_d_try_link
"$LINENO"; then :
14764 ac_cv_search_malloc
=$ac_res
14766 rm -f core conftest.err conftest.
$ac_objext \
14768 if ${ac_cv_search_malloc+:} false
; then :
14772 if ${ac_cv_search_malloc+:} false
; then :
14775 ac_cv_search_malloc
=no
14777 rm conftest.
$ac_ext
14778 LIBS
=$ac_func_search_save_LIBS
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14781 $as_echo "$ac_cv_search_malloc" >&6; }
14782 ac_res
=$ac_cv_search_malloc
14783 if test "$ac_res" != no
; then :
14784 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14789 $as_echo_n "checking for library containing pthread_create... " >&6; }
14790 if ${ac_cv_search_pthread_create+:} false
; then :
14791 $as_echo_n "(cached) " >&6
14793 ac_func_search_save_LIBS
=$LIBS
14794 cat > conftest.
$ac_ext <<_ACEOF
14796 extern(C) int pthread_create();
14798 extern(C) int main() {
14799 pthread_create(); return 0;
14802 for ac_lib
in '' pthread
; do
14803 if test -z "$ac_lib"; then
14804 ac_res
="none required"
14807 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14809 if ac_fn_d_try_link
"$LINENO"; then :
14810 ac_cv_search_pthread_create
=$ac_res
14812 rm -f core conftest.err conftest.
$ac_objext \
14814 if ${ac_cv_search_pthread_create+:} false
; then :
14818 if ${ac_cv_search_pthread_create+:} false
; then :
14821 ac_cv_search_pthread_create
=no
14823 rm conftest.
$ac_ext
14824 LIBS
=$ac_func_search_save_LIBS
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14827 $as_echo "$ac_cv_search_pthread_create" >&6; }
14828 ac_res
=$ac_cv_search_pthread_create
14829 if test "$ac_res" != no
; then :
14830 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14835 $as_echo_n "checking for library containing cosf... " >&6; }
14836 if ${ac_cv_search_cosf+:} false
; then :
14837 $as_echo_n "(cached) " >&6
14839 ac_func_search_save_LIBS
=$LIBS
14840 cat > conftest.
$ac_ext <<_ACEOF
14842 extern(C) int cosf();
14844 extern(C) int main() {
14848 for ac_lib
in '' m
; do
14849 if test -z "$ac_lib"; then
14850 ac_res
="none required"
14853 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14855 if ac_fn_d_try_link
"$LINENO"; then :
14856 ac_cv_search_cosf
=$ac_res
14858 rm -f core conftest.err conftest.
$ac_objext \
14860 if ${ac_cv_search_cosf+:} false
; then :
14864 if ${ac_cv_search_cosf+:} false
; then :
14867 ac_cv_search_cosf
=no
14869 rm conftest.
$ac_ext
14870 LIBS
=$ac_func_search_save_LIBS
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14873 $as_echo "$ac_cv_search_cosf" >&6; }
14874 ac_res
=$ac_cv_search_cosf
14875 if test "$ac_res" != no
; then :
14876 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14881 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14882 if ${ac_cv_search_clock_gettime+:} false
; then :
14883 $as_echo_n "(cached) " >&6
14885 ac_func_search_save_LIBS
=$LIBS
14886 cat > conftest.
$ac_ext <<_ACEOF
14888 extern(C) int clock_gettime();
14890 extern(C) int main() {
14891 clock_gettime(); return 0;
14894 for ac_lib
in '' rt
; do
14895 if test -z "$ac_lib"; then
14896 ac_res
="none required"
14899 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14901 if ac_fn_d_try_link
"$LINENO"; then :
14902 ac_cv_search_clock_gettime
=$ac_res
14904 rm -f core conftest.err conftest.
$ac_objext \
14906 if ${ac_cv_search_clock_gettime+:} false
; then :
14910 if ${ac_cv_search_clock_gettime+:} false
; then :
14913 ac_cv_search_clock_gettime
=no
14915 rm conftest.
$ac_ext
14916 LIBS
=$ac_func_search_save_LIBS
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14919 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14920 ac_res
=$ac_cv_search_clock_gettime
14921 if test "$ac_res" != no
; then :
14922 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14927 # This checks to see if the host supports the compiler-generated builtins
14928 # for atomic operations for various integral sizes. Note, this is intended
14929 # to be an all-or-nothing switch, so all the atomic operations that are
14930 # used should be checked.
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14932 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14933 if ${druntime_cv_atomic_byte+:} false
; then :
14934 $as_echo_n "(cached) " >&6
14937 cat > conftest.
$ac_ext <<_ACEOF
14939 import gcc.builtins;
14941 extern(C) int main() {
14945 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14946 __atomic_load_1(&c1, 5);
14947 __atomic_store_1(&c1, c2, 5);
14952 if ac_fn_d_try_link
"$LINENO"; then :
14953 druntime_cv_atomic_byte
=yes
14955 druntime_cv_atomic_byte
=no
14957 rm -f core conftest.err conftest.
$ac_objext \
14958 conftest
$ac_exeext conftest.
$ac_ext
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14963 $as_echo "$druntime_cv_atomic_byte" >&6; }
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14966 $as_echo_n "checking for atomic builtins for short... " >&6; }
14967 if ${druntime_cv_atomic_short+:} false
; then :
14968 $as_echo_n "(cached) " >&6
14971 cat > conftest.
$ac_ext <<_ACEOF
14973 import gcc.builtins;
14975 extern(C) int main() {
14979 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14980 __atomic_load_2(&c1, 5);
14981 __atomic_store_2(&c1, c2, 5);
14986 if ac_fn_d_try_link
"$LINENO"; then :
14987 druntime_cv_atomic_short
=yes
14989 druntime_cv_atomic_short
=no
14991 rm -f core conftest.err conftest.
$ac_objext \
14992 conftest
$ac_exeext conftest.
$ac_ext
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14997 $as_echo "$druntime_cv_atomic_short" >&6; }
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
15000 $as_echo_n "checking for atomic builtins for int... " >&6; }
15001 if ${druntime_cv_atomic_int+:} false
; then :
15002 $as_echo_n "(cached) " >&6
15005 cat > conftest.
$ac_ext <<_ACEOF
15007 import gcc.builtins;
15009 extern(C) int main() {
15013 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
15014 __atomic_load_4(&c1, 5);
15015 __atomic_store_4(&c1, c2, 5);
15020 if ac_fn_d_try_link
"$LINENO"; then :
15021 druntime_cv_atomic_int
=yes
15023 druntime_cv_atomic_int
=no
15025 rm -f core conftest.err conftest.
$ac_objext \
15026 conftest
$ac_exeext conftest.
$ac_ext
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
15031 $as_echo "$druntime_cv_atomic_int" >&6; }
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
15034 $as_echo_n "checking for atomic builtins for long... " >&6; }
15035 if ${druntime_cv_atomic_long+:} false
; then :
15036 $as_echo_n "(cached) " >&6
15039 cat > conftest.
$ac_ext <<_ACEOF
15041 import gcc.builtins;
15043 extern(C) int main() {
15047 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
15048 __atomic_load_8(&c1, 5);
15049 __atomic_store_8(&c1, c2, 5);
15054 if ac_fn_d_try_link
"$LINENO"; then :
15055 druntime_cv_atomic_long
=yes
15057 druntime_cv_atomic_long
=no
15059 rm -f core conftest.err conftest.
$ac_objext \
15060 conftest
$ac_exeext conftest.
$ac_ext
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
15065 $as_echo "$druntime_cv_atomic_long" >&6; }
15067 # Have atomic builtin support if all but the long test above passes.
15068 DCFG_HAVE_ATOMIC_BUILTINS
=false
15069 if test "$druntime_cv_atomic_byte" = yes \
15070 && test "$druntime_cv_atomic_short" = yes \
15071 && test "$druntime_cv_atomic_int" = yes; then \
15072 DCFG_HAVE_ATOMIC_BUILTINS
=true
15075 # Have 64-bit atomic support if the long test above passes.
15076 DCFG_HAVE_64BIT_ATOMICS
=false
15077 if test "$druntime_cv_atomic_long" = yes; then
15078 DCFG_HAVE_64BIT_ATOMICS
=true
15085 ac_cpp
='$CPP $CPPFLAGS'
15086 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15087 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15088 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15091 GDCFLAGS
=$gdc_save_DFLAGS
15096 # Check whether --with-libatomic was given.
15097 if test "${with_libatomic+set}" = set; then :
15098 withval
=$with_libatomic;
15102 DCFG_HAVE_LIBATOMIC
=false
15104 if test "x$enable_libatomic" != "xno" && test "x$with_libatomic" != "xno"; then :
15106 DCFG_HAVE_LIBATOMIC
=true
15107 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
15112 $as_echo_n "checking for libatomic... " >&6; }
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15114 $as_echo "disabled" >&6; }
15123 ac_cpp
='$CPP $CPPFLAGS'
15124 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15128 BACKTRACE_SUPPORTED
=false
15129 BACKTRACE_USES_MALLOC
=false
15130 BACKTRACE_SUPPORTS_THREADS
=false
15134 # Check whether --with-libbacktrace was given.
15135 if test "${with_libbacktrace+set}" = set; then :
15136 withval
=$with_libbacktrace;
15140 if test "x$enable_libbacktrace" != "xno" && test "x$with_libbacktrace" != "xno"; then :
15142 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
15144 gdc_save_CPPFLAGS
=$CPPFLAGS
15145 CPPFLAGS
="$CPPFLAGS -I../libbacktrace "
15147 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
15148 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
15149 have_libbacktrace_h
=true
15151 have_libbacktrace_h
=false
15156 if $have_libbacktrace_h; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
15158 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
15159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15162 #include <backtrace-supported.h>
15163 #if BACKTRACE_SUPPORTED
15164 FOUND_LIBBACKTRACE_RESULT_GDC
15168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15169 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
15170 BACKTRACE_SUPPORTED
=true
15172 BACKTRACE_SUPPORTED
=false
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
15177 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
15180 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
15181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15184 #include <backtrace-supported.h>
15185 #if BACKTRACE_USES_MALLOC
15186 FOUND_LIBBACKTRACE_RESULT_GDC
15190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15191 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
15192 BACKTRACE_USES_MALLOC
=true
15194 BACKTRACE_USES_MALLOC
=false
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
15199 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
15202 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
15203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15206 #include <backtrace-supported.h>
15207 #if BACKTRACE_SUPPORTS_THREADS
15208 FOUND_LIBBACKTRACE_RESULT_GDC
15212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15213 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
15214 BACKTRACE_SUPPORTS_THREADS
=true
15216 BACKTRACE_SUPPORTS_THREADS
=false
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
15221 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
15223 CPPFLAGS
=$gdc_save_CPPFLAGS
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15228 $as_echo_n "checking for libbacktrace... " >&6; }
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15230 $as_echo "disabled" >&6; }
15239 ac_cpp
='$CPP $CPPFLAGS'
15240 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15241 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15242 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15246 # Libtool has already checked this, so re-use the inferred dlopen lib.
15247 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15249 LIBS
="$LIBS $lt_cv_dlopen_libs"
15254 druntime_check_both
=no
15255 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
15256 if test "x$ac_cv_func_connect" = xyes
; then :
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15260 $as_echo_n "checking for connect in -lsocket... " >&6; }
15261 if ${ac_cv_lib_socket_connect+:} false
; then :
15262 $as_echo_n "(cached) " >&6
15264 ac_check_lib_save_LIBS
=$LIBS
15265 LIBS
="-lsocket $LIBS"
15266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15269 /* Override any GCC internal prototype to avoid an error.
15270 Use char because int might match the return type of a GCC
15271 builtin and then its argument prototype would still apply. */
15284 if ac_fn_c_try_link
"$LINENO"; then :
15285 ac_cv_lib_socket_connect
=yes
15287 ac_cv_lib_socket_connect
=no
15289 rm -f core conftest.err conftest.
$ac_objext \
15290 conftest
$ac_exeext conftest.
$ac_ext
15291 LIBS
=$ac_check_lib_save_LIBS
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15294 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15295 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
15296 LIBS
="$LIBS -lsocket"
15298 druntime_check_both
=yes
15303 if test "$druntime_check_both" = "yes"; then
15304 druntime_old_libs
=$LIBS
15305 LIBS
="$LIBS -lsocket -lnsl"
15306 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
15307 if test "x$ac_cv_func_accept" = xyes
; then :
15310 LIBS
=$druntime_old_libs
15314 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15315 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15319 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15320 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
15321 $as_echo_n "(cached) " >&6
15323 ac_check_lib_save_LIBS
=$LIBS
15325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15328 /* Override any GCC internal prototype to avoid an error.
15329 Use char because int might match the return type of a GCC
15330 builtin and then its argument prototype would still apply. */
15334 char gethostbyname ();
15338 return gethostbyname ();
15343 if ac_fn_c_try_link
"$LINENO"; then :
15344 ac_cv_lib_nsl_gethostbyname
=yes
15346 ac_cv_lib_nsl_gethostbyname
=no
15348 rm -f core conftest.err conftest.
$ac_objext \
15349 conftest
$ac_exeext conftest.
$ac_ext
15350 LIBS
=$ac_check_lib_save_LIBS
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15353 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15354 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
15362 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15363 # "yes" for targets that have 'version = AsmExternal'.
15364 druntime_fiber_asm_external
=no
15365 case "$target_cpu" in
15368 i
[34567]86|x86_64 | \
15370 druntime_fiber_asm_external
=yes
15373 if test "$druntime_fiber_asm_external" = no
; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15375 $as_echo_n "checking for library containing swapcontext... " >&6; }
15376 if ${ac_cv_search_swapcontext+:} false
; then :
15377 $as_echo_n "(cached) " >&6
15379 ac_func_search_save_LIBS
=$LIBS
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15383 /* Override any GCC internal prototype to avoid an error.
15384 Use char because int might match the return type of a GCC
15385 builtin and then its argument prototype would still apply. */
15389 char swapcontext ();
15393 return swapcontext ();
15398 for ac_lib
in '' c ucontext
; do
15399 if test -z "$ac_lib"; then
15400 ac_res
="none required"
15403 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15405 if ac_fn_c_try_link
"$LINENO"; then :
15406 ac_cv_search_swapcontext
=$ac_res
15408 rm -f core conftest.err conftest.
$ac_objext \
15410 if ${ac_cv_search_swapcontext+:} false
; then :
15414 if ${ac_cv_search_swapcontext+:} false
; then :
15417 ac_cv_search_swapcontext
=no
15419 rm conftest.
$ac_ext
15420 LIBS
=$ac_func_search_save_LIBS
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15423 $as_echo "$ac_cv_search_swapcontext" >&6; }
15424 ac_res
=$ac_cv_search_swapcontext
15425 if test "$ac_res" != no
; then :
15426 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15429 as_fn_error $?
"swapcontext required but not found" "$LINENO" 5
15436 ac_cpp
='$CPP $CPPFLAGS'
15437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15444 # Check whether --with-target-system-zlib was given.
15445 if test "${with_target_system_zlib+set}" = set; then :
15446 withval
=$with_target_system_zlib;
15448 with_target_system_zlib
=no
15452 case "$with_target_system_zlib" in
15454 *) as_fn_error $?
"Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15458 $as_echo_n "checking for system zlib... " >&6; }
15461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15467 gzopen("none", "rb")
15472 if ac_fn_c_try_link
"$LINENO"; then :
15474 if test "$cross_compiling" = yes; then :
15475 system_zlib_found
=no
15478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15483 gzFile file = gzopen("none", "rb");
15488 if ac_fn_c_try_run
"$LINENO"; then :
15489 system_zlib_found
=yes
15491 system_zlib_found
=no
15493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15499 system_zlib_found
=no
15501 rm -f core conftest.err conftest.
$ac_objext \
15502 conftest
$ac_exeext conftest.
$ac_ext
15505 if test x
$system_zlib_found = xyes
&& test x
$with_target_system_zlib != xno
; then
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15507 $as_echo "found" >&6; }
15509 elif test x
$system_zlib_found = xno
&& test x
$with_target_system_zlib = xyes
; then
15510 as_fn_error $?
"system zlib required but not found" "$LINENO" 5
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15513 $as_echo "just compiled" >&6; }
15514 LIBZ
=..
/..
/zlib
/libz_convenience.la
15519 ac_cpp
='$CPP $CPPFLAGS'
15520 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15521 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15522 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15529 $as_echo_n "checking D GCC version... " >&6; }
15530 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15532 $as_echo "$gcc_version" >&6; }
15536 # Check whether --with-cross-host was given.
15537 if test "${with_cross_host+set}" = set; then :
15538 withval
=$with_cross_host;
15542 libphobos_toolexecdir
=no
15543 libphobos_toolexeclibdir
=no
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15546 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15547 # Check whether --enable-version-specific-runtime-libs was given.
15548 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15549 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
15550 yes) version_specific_libs
=yes ;;
15551 no
) version_specific_libs
=no
;;
15552 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15555 version_specific_libs
=no
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15559 $as_echo "$version_specific_libs" >&6; }
15562 # Check whether --with-toolexeclibdir was given.
15563 if test "${with_toolexeclibdir+set}" = set; then :
15564 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15568 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
15572 with_toolexeclibdir
=no
15577 # Version-specific runtime libs processing.
15578 if test $version_specific_libs = yes; then
15579 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15580 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15582 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15583 # Install a library built with a cross compiler in tooldir, not libdir.
15584 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
15585 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
15586 case ${with_toolexeclibdir} in
15588 libphobos_toolexeclibdir
='${toolexecdir}/lib'
15591 libphobos_toolexeclibdir
=${with_toolexeclibdir}
15595 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15596 libphobos_toolexeclibdir
='${libdir}'
15598 multi_os_directory
=`$GDC -print-multi-os-directory`
15599 case $multi_os_directory in
15600 .
) ;; # Avoid trailing /.
15601 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15607 # Default case for install directory for D sources files.
15608 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15613 $as_echo_n "checking for --enable-libphobos... " >&6; }
15614 # Check whether --enable-libphobos was given.
15615 if test "${enable_libphobos+set}" = set; then :
15616 enableval
=$enable_libphobos;
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15620 $as_echo "$enable_libphobos" >&6; }
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15623 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15625 # Check whether --with-libphobos-druntime-only was given.
15626 if test "${with_libphobos_druntime_only+set}" = set; then :
15627 withval
=$with_libphobos_druntime_only;
15629 with_libphobos_druntime_only
=auto
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15633 $as_echo "$with_libphobos_druntime_only" >&6; }
15635 case "$with_libphobos_druntime_only" in
15637 *) as_fn_error $?
"Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15640 # See if supported.
15641 unset LIBPHOBOS_SUPPORTED
15642 unset LIBDRUNTIME_ONLY
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15644 $as_echo_n "checking for host support for libphobos... " >&6; }
15645 .
${srcdir}/configure.tgt
15647 x86_64-
*-solaris2.
* | i?
86-*-solaris2.
*)
15648 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15649 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15650 LIBPHOBOS_SUPPORTED
=no
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15655 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15657 # Decide if it's usable.
15658 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15659 *:no
) use_libphobos
=no
;;
15660 *:yes) use_libphobos
=yes ;;
15661 yes:*) use_libphobos
=yes ;;
15662 *:*) use_libphobos
=no
;;
15664 if test x
$use_libphobos = xyes
; then
15665 ENABLE_LIBPHOBOS_TRUE
=
15666 ENABLE_LIBPHOBOS_FALSE
='#'
15668 ENABLE_LIBPHOBOS_TRUE
='#'
15669 ENABLE_LIBPHOBOS_FALSE
=
15673 # Decide if only libdruntime should be built.
15674 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15675 *:no
) only_libdruntime
=no
;;
15676 *:yes) only_libdruntime
=yes ;;
15677 yes:*) only_libdruntime
=yes ;;
15678 *:*) only_libdruntime
=no
;;
15680 if test x
$only_libdruntime = xyes
; then
15681 ENABLE_LIBDRUNTIME_ONLY_TRUE
=
15682 ENABLE_LIBDRUNTIME_ONLY_FALSE
='#'
15684 ENABLE_LIBDRUNTIME_ONLY_TRUE
='#'
15685 ENABLE_LIBDRUNTIME_ONLY_FALSE
=
15689 # Enable expensive internal checks
15690 # Check whether --enable-libphobos-checking was given.
15691 if test "${enable_libphobos_checking+set}" = set; then :
15692 enableval
=$enable_libphobos_checking; ac_checking_flags
="${enableval}"
15694 ac_checking_flags
=release
15697 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
15698 for check
in release
$ac_checking_flags
15701 # These set all the flags to specific states
15702 yes|all
) RELEASE_FLAG
="-fno-release" ; ASSERT_FLAG
= ;
15704 no|none|release
) RELEASE_FLAG
="-frelease" ; ASSERT_FLAG
= ;
15706 # These enable particular checks
15707 assert
) ASSERT_FLAG
="-fassert" ;;
15708 valgrind
) VALGRIND_FLAG
="-fdebug=VALGRIND" ;;
15714 CHECKING_DFLAGS
="$RELEASE_FLAG $ASSERT_FLAG $VALGRIND_FLAG"
15718 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15719 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15720 DRTSTUFF_SPEC
=$srcdir/src
/drtstuff.spec
15722 DRTSTUFF_SPEC
=/dev
/null
15726 # Add dependencies for libgphobos.spec file
15727 SPEC_PHOBOS_DEPS
="$LIBS"
15730 # Libdruntime / phobos soname version
15731 libtool_VERSION
=4:0:0
15734 # Set default flags (after DRUNTIME_WERROR!)
15735 if test -z "$GDCFLAGS"; then
15740 WARN_DFLAGS
="-Wall $WERROR_FLAG"
15743 # Sanity check for the cross-compilation case:
15744 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15745 if test "x$ac_cv_header_stdio_h" = xyes
; then :
15748 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
15754 for ac_header
in stddef.h stdlib.h
15756 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15757 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15758 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15759 cat >>confdefs.h
<<_ACEOF
15760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15768 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
15769 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
15770 have_valgrind_h
=yes
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
15778 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
15779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #include <valgrind/memcheck.h>
15782 #ifndef VALGRIND_DISCARD
15783 #error VALGRIND_DISCARD not defined
15786 if ac_fn_c_try_cpp
"$LINENO"; then :
15787 have_valgrind_memcheck_h
=yes
15789 have_valgrind_memcheck_h
=no
15791 rm -f conftest.err conftest.i conftest.
$ac_ext
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind_memcheck_h" >&5
15793 $as_echo "$have_valgrind_memcheck_h" >&6; }
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
15795 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
15796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 #include <memcheck.h>
15799 #ifndef VALGRIND_DISCARD
15800 #error VALGRIND_DISCARD not defined
15803 if ac_fn_c_try_cpp
"$LINENO"; then :
15804 have_memcheck_h
=yes
15808 rm -f conftest.err conftest.i conftest.
$ac_ext
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_memcheck_h" >&5
15810 $as_echo "$have_memcheck_h" >&6; }
15812 if test x
$VALGRIND_FLAG != x
; then
15814 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
15817 if test $have_valgrind_memcheck_h = yes; then
15819 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
15822 if test $have_memcheck_h = yes; then
15824 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
15828 if test x
$VALGRIND_FLAG != x
; then
15829 if (test $have_valgrind_h = no \
15830 && test $have_memcheck_h = no \
15831 && test $have_valgrind_memcheck_h = no
); then
15832 as_fn_error $?
"*** valgrind checking requested, but
15833 *** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
15838 ac_config_files
="$ac_config_files Makefile"
15841 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15843 ac_config_files
="$ac_config_files src/libgphobos.spec"
15845 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
15848 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15849 # that multilib installs will end up installed in the correct place.
15850 # The testsuite needs it for multilib-aware ABI baseline files.
15851 # To work around this not being passed down from config-ml.in ->
15852 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15853 # append it here. Only modify Makefiles that have just been created.
15855 # Also, get rid of this simulated-VPATH thing that automake does.
15856 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15859 cat >confcache
<<\_ACEOF
15860 # This file is a shell script that caches the results of configure
15861 # tests run on this system so they can be shared between configure
15862 # scripts and configure runs, see configure's option --config-cache.
15863 # It is not useful on other systems. If it contains results you don't
15864 # want to keep, you may remove or edit it.
15866 # config.status only pays attention to the cache file if you give it
15867 # the --recheck option to rerun configure.
15869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15871 # following values.
15875 # The following way of writing the cache mishandles newlines in values,
15876 # but we know of no workaround that is simple, portable, and efficient.
15877 # So, we kill variables containing newlines.
15878 # Ultrix sh set writes to stderr and can't be redirected directly,
15879 # and sets the high bit in the cache file unless we assign to the vars.
15881 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15882 eval ac_val
=\$
$ac_var
15886 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15890 _ | IFS | as_nl
) ;; #(
15891 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15892 *) { eval $ac_var=; unset $ac_var;} ;;
15898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15899 *${as_nl}ac_space
=\
*)
15900 # `set' does not quote correctly, so add quotes: double-quote
15901 # substitution turns \\\\ into \\, and sed turns \\ into \.
15904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15907 # `set' quotes correctly as required by POSIX, so do not add quotes.
15908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15921 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15922 if test -w "$cache_file"; then
15923 if test "x$cache_file" != "x/dev/null"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15925 $as_echo "$as_me: updating cache $cache_file" >&6;}
15926 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15927 cat confcache
>"$cache_file"
15929 case $cache_file in #(
15931 mv -f confcache
"$cache_file"$$
&&
15932 mv -f "$cache_file"$$
"$cache_file" ;; #(
15934 mv -f confcache
"$cache_file" ;;
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15940 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15945 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15946 # Let make expand exec_prefix.
15947 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15949 DEFS
=-DHAVE_CONFIG_H
15954 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15955 # 1. Remove the extension, and $U if already installed.
15956 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15957 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15958 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15959 # will be set to the directory where LIBOBJS objects are built.
15960 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15961 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15963 LIBOBJS
=$ac_libobjs
15965 LTLIBOBJS
=$ac_ltlibobjs
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15969 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15970 if test -n "$am_sleep_pid"; then
15971 # Hide warnings about reused PIDs.
15972 wait $am_sleep_pid 2>/dev
/null
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15975 $as_echo "done" >&6; }
15976 if test -n "$EXEEXT"; then
15978 am__EXEEXT_FALSE
='#'
15980 am__EXEEXT_TRUE
='#'
15984 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15985 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15988 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
15989 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
15990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15992 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15993 as_fn_error $?
"conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15996 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15997 as_fn_error $?
"conditional \"DRUNTIME_CPU_ARM\" was never defined.
15998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16000 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
16001 as_fn_error $?
"conditional \"DRUNTIME_CPU_MIPS\" was never defined.
16002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16004 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
16005 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
16006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16008 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
16009 as_fn_error $?
"conditional \"DRUNTIME_CPU_X86\" was never defined.
16010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16012 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
16013 as_fn_error $?
"conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
16014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16016 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
16017 as_fn_error $?
"conditional \"DRUNTIME_CPU_S390\" was never defined.
16018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16020 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
16021 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
16022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16024 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
16025 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
16026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16028 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
16029 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
16030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16032 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
16033 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
16034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16036 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
16037 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
16038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16040 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
16041 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
16042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16044 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
16045 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
16046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16048 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
16049 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
16050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16052 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
16053 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
16054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16056 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
16057 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
16058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16060 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
16061 as_fn_error $?
"conditional \"DRUNTIME_OS_POSIX\" was never defined.
16062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16064 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
16065 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
16066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16068 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
16069 as_fn_error $?
"conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
16070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16072 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
16073 as_fn_error $?
"conditional \"ENABLE_LIBPHOBOS\" was never defined.
16074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16076 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
16077 as_fn_error $?
"conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
16078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16081 : "${CONFIG_STATUS=./config.status}"
16083 ac_clean_files_save
=$ac_clean_files
16084 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16086 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16088 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16090 # Generated by $as_me.
16091 # Run this file to recreate the current configuration.
16092 # Compiler output produced by configure, useful for debugging
16093 # configure, is in config.log if it exists.
16096 ac_cs_recheck=false
16099 SHELL=\${CONFIG_SHELL-$SHELL}
16102 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16103 ## -------------------- ##
16104 ## M4sh Initialization. ##
16105 ## -------------------- ##
16107 # Be more Bourne compatible
16108 DUALCASE
=1; export DUALCASE
# for MKS sh
16109 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16113 # is contrary to our usage. Disable this feature.
16114 alias -g '${1+"$@"}'='"$@"'
16115 setopt NO_GLOB_SUBST
16117 case `(set -o) 2>/dev/null` in #(
16129 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16130 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16133 # Prefer a ksh shell builtin over an external printf program on Solaris,
16134 # but without wasting forks for bash or zsh.
16135 if test -z "$BASH_VERSION$ZSH_VERSION" \
16136 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16137 as_echo='print
-r --'
16138 as_echo_n='print
-rn --'
16139 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16140 as_echo='printf %s
\n'
16141 as_echo_n='printf %s
'
16143 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16144 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16145 as_echo_n='/usr
/ucb
/echo -n'
16147 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16148 as_echo_n_body='eval
16152 expr "X$arg" : "X\\(.*\\)$as_nl";
16153 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16155 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16157 export as_echo_n_body
16158 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16160 export as_echo_body
16161 as_echo='sh
-c $as_echo_body as_echo
'
16164 # The user is always right.
16165 if test "${PATH_SEPARATOR+set}" != set; then
16167 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16168 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16175 # We need space, tab and new line, in precisely that order. Quoting is
16176 # there to prevent editors from complaining about space-tab.
16177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16178 # splitting by setting IFS to empty value.)
16181 # Find who we are. Look in the path if we contain no directory separator.
16184 *[\\/]* ) as_myself=$0 ;;
16185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16186 for as_dir in $PATH
16189 test -z "$as_dir" && as_dir=.
16190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16196 # We did not find ourselves, most probably we were run as `sh COMMAND'
16197 # in which case we are not to be found in the path.
16198 if test "x$as_myself" = x
; then
16201 if test ! -f "$as_myself"; then
16202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16206 # Unset variables that we do not need and which cause bugs (e.g. in
16207 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16208 # suppresses any "Segmentation fault" message there. '((' could
16209 # trigger a bug in pdksh 5.2.14.
16210 for as_var
in BASH_ENV ENV MAIL MAILPATH
16211 do eval test x\
${$as_var+set} = xset \
16212 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16225 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16228 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16229 # ----------------------------------------
16230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16232 # script with STATUS, using 1 if that was 0.
16235 as_status
=$1; test $as_status -eq 0 && as_status
=1
16237 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16240 $as_echo "$as_me: error: $2" >&2
16241 as_fn_exit
$as_status
16245 # as_fn_set_status STATUS
16246 # -----------------------
16247 # Set $? to STATUS, without forking.
16248 as_fn_set_status
()
16251 } # as_fn_set_status
16253 # as_fn_exit STATUS
16254 # -----------------
16255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16259 as_fn_set_status
$1
16265 # Portably unset VAR.
16268 { eval $1=; unset $1;}
16270 as_unset
=as_fn_unset
16271 # as_fn_append VAR VALUE
16272 # ----------------------
16273 # Append the text in VALUE to the end of the definition contained in VAR. Take
16274 # advantage of any shell optimizations that allow amortized linear growth over
16275 # repeated appends, instead of the typical quadratic growth present in naive
16277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16278 eval 'as_fn_append ()
16289 # as_fn_arith ARG...
16290 # ------------------
16291 # Perform arithmetic evaluation on the ARGs, and store the result in the
16292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16293 # must be portable across $(()) and expr.
16294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16295 eval 'as_fn_arith ()
16302 as_val
=`expr "$@" || test $? -eq 1`
16307 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16308 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16314 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16315 as_basename
=basename
16320 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16326 as_me
=`$as_basename -- "$0" ||
16327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16328 X"$0" : 'X\(//\)$' \| \
16329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16331 sed '/^.*\/\([^/][^/]*\)\/*$/{
16345 # Avoid depending upon Character Ranges.
16346 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16347 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16348 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16349 as_cr_digits
='0123456789'
16350 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16352 ECHO_C
= ECHO_N
= ECHO_T
=
16353 case `echo -n x` in #(((((
16355 case `echo 'xy\c'` in
16356 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16358 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16365 rm -f conf$$ conf$$.exe conf$$.
file
16366 if test -d conf$$.dir
; then
16367 rm -f conf$$.dir
/conf$$.
file
16370 mkdir conf$$.dir
2>/dev
/null
16372 if (echo >conf$$.
file) 2>/dev
/null
; then
16373 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16375 # ... but there are two gotchas:
16376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16378 # In both cases, we have to default to `cp -pR'.
16379 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16381 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16389 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16390 rmdir conf$$.dir
2>/dev
/null
16395 # Create "$as_dir" as a directory, including parents if necessary.
16400 -*) as_dir
=.
/$as_dir;;
16402 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16406 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16407 *) as_qdir
=$as_dir;;
16409 as_dirs
="'$as_qdir' $as_dirs"
16410 as_dir
=`$as_dirname -- "$as_dir" ||
16411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16412 X"$as_dir" : 'X\(//\)[^/]' \| \
16413 X"$as_dir" : 'X\(//\)$' \| \
16414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16415 $as_echo X"$as_dir" |
16416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16420 /^X\(\/\/\)[^/].*/{
16433 test -d "$as_dir" && break
16435 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16436 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16440 if mkdir
-p .
2>/dev
/null
; then
16441 as_mkdir_p
='mkdir -p "$as_dir"'
16443 test -d .
/-p && rmdir .
/-p
16448 # as_fn_executable_p FILE
16449 # -----------------------
16450 # Test if FILE is an executable regular file.
16451 as_fn_executable_p
()
16453 test -f "$1" && test -x "$1"
16454 } # as_fn_executable_p
16455 as_test_x
='test -x'
16456 as_executable_p
=as_fn_executable_p
16458 # Sed expression to map a string onto a valid CPP name.
16459 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16461 # Sed expression to map a string onto a valid variable name.
16462 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16466 ## ----------------------------------- ##
16467 ## Main body of $CONFIG_STATUS script. ##
16468 ## ----------------------------------- ##
16470 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16473 # Save the log message, to keep $0 and so on meaningful, and to
16474 # report actual input values of CONFIG_FILES etc. instead of their
16475 # values after options handling.
16477 This file was extended by package-unused $as_me version-unused, which was
16478 generated by GNU Autoconf 2.69. Invocation command line was
16480 CONFIG_FILES = $CONFIG_FILES
16481 CONFIG_HEADERS = $CONFIG_HEADERS
16482 CONFIG_LINKS = $CONFIG_LINKS
16483 CONFIG_COMMANDS = $CONFIG_COMMANDS
16486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16491 case $ac_config_files in *"
16492 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16495 case $ac_config_headers in *"
16496 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16501 # Files that config.status was made for.
16502 config_files="$ac_config_files"
16503 config_headers="$ac_config_headers"
16504 config_commands="$ac_config_commands"
16508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16510 \`$as_me' instantiates files and other configuration actions
16511 from templates according to the current configuration. Unless the files
16512 and actions are specified as TAGs, all are instantiated by default.
16514 Usage: $0 [OPTION]... [TAG]...
16516 -h, --help print this help, then exit
16517 -V, --version print version number and configuration settings, then exit
16518 --config print configuration, then exit
16519 -q, --quiet, --silent
16520 do not print progress messages
16521 -d, --debug don't remove temporary files
16522 --recheck update $as_me by reconfiguring in the same conditions
16523 --file=FILE[:TEMPLATE]
16524 instantiate the configuration file FILE
16525 --header=FILE[:TEMPLATE]
16526 instantiate the configuration header FILE
16528 Configuration files:
16531 Configuration headers:
16534 Configuration commands:
16537 Report bugs to the package provider."
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16543 package-unused config.status version-unused
16544 configured by $0, generated by GNU Autoconf 2.69,
16545 with options \\"\$ac_cs_config\\"
16547 Copyright (C) 2012 Free Software Foundation, Inc.
16548 This config.status script is free software; the Free Software Foundation
16549 gives unlimited permission to copy, distribute and modify it."
16556 test -n "\$AWK" || AWK=awk
16559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16560 # The default lists apply if the user does not specify any file.
16566 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16567 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16571 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16583 # Handling of the options.
16584 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16586 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16587 $as_echo "$ac_cs_version"; exit ;;
16588 --config |
--confi |
--conf |
--con |
--co |
--c )
16589 $as_echo "$ac_cs_config"; exit ;;
16590 --debug |
--debu |
--deb |
--de |
--d |
-d )
16592 --file |
--fil |
--fi |
--f )
16595 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16596 '') as_fn_error $?
"missing file argument" ;;
16598 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16599 ac_need_defaults
=false
;;
16600 --header |
--heade |
--head |
--hea )
16603 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16605 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16606 ac_need_defaults
=false
;;
16608 # Conflict between --help and --header
16609 as_fn_error $?
"ambiguous option: \`$1'
16610 Try \`$0 --help' for more information.";;
16611 --help |
--hel |
-h )
16612 $as_echo "$ac_cs_usage"; exit ;;
16613 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16614 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16617 # This is an error.
16618 -*) as_fn_error $?
"unrecognized option: \`$1'
16619 Try \`$0 --help' for more information." ;;
16621 *) as_fn_append ac_config_targets
" $1"
16622 ac_need_defaults
=false
;;
16628 ac_configure_extra_args
=
16630 if $ac_cs_silent; then
16632 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16637 if \$ac_cs_recheck; then
16638 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16640 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16641 CONFIG_SHELL='$SHELL'
16642 export CONFIG_SHELL
16647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16652 ## Running $as_me. ##
16658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16666 with_multisubdir="$with_multisubdir"
16667 with_multisrctop="$with_multisrctop"
16668 with_target_subdir="$with_target_subdir"
16669 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16670 multi_basedir="$multi_basedir"
16671 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16674 GFORTRAN="$GFORTRAN"
16678 # The HP-UX ksh and POSIX shell print the target directory to stdout
16679 # if CDPATH is set.
16680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16682 sed_quote_subst='$sed_quote_subst'
16683 double_quote_subst='$double_quote_subst'
16684 delay_variable_subst='$delay_variable_subst'
16685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16687 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16688 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16691 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16692 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16713 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16714 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16715 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16716 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16717 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16718 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16719 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16733 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"`'
16734 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16735 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16736 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16737 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16738 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16739 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16740 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16741 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16742 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16743 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16744 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16745 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16746 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16747 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16748 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16749 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16750 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16751 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16752 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16753 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16754 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16755 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16756 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16757 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16758 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16759 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16760 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16761 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16762 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16763 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16764 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16765 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16766 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16767 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16768 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16769 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16770 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16771 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16772 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16773 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16774 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16775 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16776 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16777 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16778 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16779 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16780 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16781 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16782 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16783 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16784 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16785 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16786 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16787 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16788 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16789 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16790 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16791 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16792 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16793 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16794 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16795 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16796 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16797 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16798 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16799 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16800 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16801 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16802 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16803 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16804 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16805 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16806 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16807 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16808 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16809 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16810 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16811 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16812 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16813 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16814 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16815 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16816 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16817 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16818 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16819 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16820 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16821 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16822 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16823 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16824 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16825 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16826 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16827 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16828 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16829 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16830 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16831 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16832 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16833 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16834 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16835 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16836 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16837 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16838 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16839 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16840 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16841 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16842 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16843 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16844 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16845 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16846 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16847 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16850 LTCFLAGS='$LTCFLAGS'
16851 compiler='$compiler_DEFAULT'
16853 # A function that is used when there is no print builtin or printf.
16854 func_fallback_echo ()
16856 eval 'cat <<_LTECHO_EOF
16861 # Quote evaled strings.
16875 deplibs_check_method \
16884 lt_cv_sys_global_symbol_pipe \
16885 lt_cv_sys_global_symbol_to_cdecl \
16886 lt_cv_sys_global_symbol_to_c_name_address \
16887 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16888 lt_prog_compiler_no_builtin_flag \
16889 lt_prog_compiler_wl \
16890 lt_prog_compiler_pic \
16891 lt_prog_compiler_static \
16892 lt_cv_prog_compiler_c_o \
16900 export_dynamic_flag_spec \
16901 whole_archive_flag_spec \
16902 compiler_needs_object \
16904 allow_undefined_flag \
16905 no_undefined_flag \
16906 hardcode_libdir_flag_spec \
16907 hardcode_libdir_flag_spec_ld \
16908 hardcode_libdir_separator \
16913 variables_saved_for_relink \
16915 library_names_spec \
16917 install_override_mode \
16924 lt_prog_compiler_no_builtin_flag_D \
16925 lt_prog_compiler_wl_D \
16926 lt_prog_compiler_pic_D \
16927 lt_prog_compiler_static_D \
16928 lt_cv_prog_compiler_c_o_D \
16929 export_dynamic_flag_spec_D \
16930 whole_archive_flag_spec_D \
16931 compiler_needs_object_D \
16933 allow_undefined_flag_D \
16934 no_undefined_flag_D \
16935 hardcode_libdir_flag_spec_D \
16936 hardcode_libdir_flag_spec_ld_D \
16937 hardcode_libdir_separator_D \
16938 fix_srcfile_path_D \
16939 exclude_expsyms_D \
16940 include_expsyms_D \
16941 file_list_spec_D; do
16942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16943 *[\\\\\\\`\\"\\\$]*)
16944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16952 # Double-quote double-evaled strings.
16953 for var in reload_cmds \
16954 old_postinstall_cmds \
16955 old_postuninstall_cmds \
16957 extract_expsyms_cmds \
16958 old_archive_from_new_cmds \
16959 old_archive_from_expsyms_cmds \
16961 archive_expsym_cmds \
16963 module_expsym_cmds \
16964 export_symbols_cmds \
16967 postuninstall_cmds \
16969 sys_lib_search_path_spec \
16970 sys_lib_dlsearch_path_spec \
16972 old_archive_cmds_D \
16973 old_archive_from_new_cmds_D \
16974 old_archive_from_expsyms_cmds_D \
16976 archive_expsym_cmds_D \
16978 module_expsym_cmds_D \
16979 export_symbols_cmds_D \
16981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16982 *[\\\\\\\`\\"\\\$]*)
16983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16991 ac_aux_dir='$ac_aux_dir'
16992 xsi_shell='$xsi_shell'
16993 lt_shell_append='$lt_shell_append'
16995 # See if we are running on zsh, and set the options which allow our
16996 # commands through without removal of \ escapes INIT.
16997 if test -n "\${ZSH_VERSION+set}" ; then
16998 setopt NO_GLOB_SUBST
17004 TIMESTAMP='$TIMESTAMP'
17015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17017 # Handling of arguments.
17018 for ac_config_target
in $ac_config_targets
17020 case $ac_config_target in
17021 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17022 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17023 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17024 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17025 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
17026 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
17027 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
17028 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
17029 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
17030 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17031 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17033 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17038 # If the user did not use the arguments to specify the items to instantiate,
17039 # then the envvar interface is used. Set only those that are not.
17040 # We use the long form for the default assignment because of an extremely
17041 # bizarre bug on SunOS 4.1.3.
17042 if $ac_need_defaults; then
17043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17048 # Have a temporary directory for convenience. Make it in the build tree
17049 # simply because there is no reason against having it here, and in addition,
17050 # creating and moving files from /tmp can sometimes cause problems.
17051 # Hook for its removal unless debugging.
17052 # Note that there is a small window in which the directory will not be cleaned:
17053 # after its creation but before its name has been assigned to `$tmp'.
17057 trap 'exit_status=$?
17058 : "${ac_tmp:=$tmp}"
17059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17061 trap 'as_fn_exit 1' 1 2 13 15
17063 # Create a (secure) tmp directory for tmp files.
17066 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17070 tmp
=.
/conf$$
-$RANDOM
17071 (umask 077 && mkdir
"$tmp")
17072 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17075 # Set up the scripts for CONFIG_FILES section.
17076 # No need to generate them if there are no CONFIG_FILES.
17077 # This happens for instance with `./config.status config.h'.
17078 if test -n "$CONFIG_FILES"; then
17080 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
17081 ac_cs_awk_getline
=:
17082 ac_cs_awk_pipe_init
=
17083 ac_cs_awk_read_file
='
17084 while ((getline aline < (F[key])) > 0)
17087 ac_cs_awk_pipe_fini
=
17089 ac_cs_awk_getline
=false
17090 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
17091 ac_cs_awk_read_file
='
17093 print "cat " F[key] " &&"
17094 '$ac_cs_awk_pipe_init
17095 # The final `:' finishes the AND list.
17096 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
17098 ac_cr
=`echo X | tr X '\015'`
17099 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17100 # But we know of no other shell where ac_cr would be empty at this
17101 # point, so we can use a bashism as a fallback.
17102 if test "x$ac_cr" = x
; then
17103 eval ac_cr
=\$
\'\\r
\'
17105 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17109 ac_cs_awk_cr
=$ac_cr
17112 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17115 # Create commands to substitute file output variables.
17117 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17118 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17119 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17122 } >conf$
$files.sh
&&
17123 . .
/conf$
$files.sh ||
17124 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
17125 rm -f conf$
$files.sh
17128 echo "cat >conf$$subs.awk <<_ACEOF" &&
17129 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17131 } >conf$$subs.sh ||
17132 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17133 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17135 for ac_last_try in false false false false false :; do
17136 . ./conf$$subs.sh ||
17137 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17139 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17140 if test $ac_delim_n = $ac_delim_num; then
17142 elif $ac_last_try; then
17143 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17145 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17148 rm -f conf$$subs.sh
17150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17155 s/^/S["/; s
/!.
*/"]=/
17165 s/\(.\{148\}\)..*/\1/
17167 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17172 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17179 s/\(.\{148\}\)..*/\1/
17181 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17185 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17190 ' <conf$$subs.awk | sed '
17195 ' >>$CONFIG_STATUS || ac_write_fail=1
17196 rm -f conf$$subs.awk
17197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17199 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17200 for (key in S) S_is_set[key] = 1
17202 \$ac_cs_awk_pipe_init
17206 nfields = split(line, field, "@
")
17208 len = length(field[1])
17209 for (i = 2; i < nfields; i++) {
17211 keylen = length(key)
17212 if (S_is_set[key]) {
17214 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17215 len += length(value) + length(field[++i])
17220 if (nfields == 3 && !substed) {
17222 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17223 \$ac_cs_awk_read_file
17229 \$ac_cs_awk_pipe_fini
17232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17233 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17234 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17237 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17238 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17241 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17242 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17243 # trailing colons and then remove the whole line if VPATH becomes empty
17244 # (actually we leave an empty line to preserve line numbers).
17245 if test "x
$srcdir" = x.; then
17246 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265 fi # test -n "$CONFIG_FILES"
17267 # Set up the scripts for CONFIG_HEADERS section.
17268 # No need to generate them if there are no CONFIG_HEADERS.
17269 # This happens for instance with `./config.status Makefile'.
17270 if test -n "$CONFIG_HEADERS"; then
17271 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17275 # Transform confdefs.h into an awk script `defines.awk', embedded as
17276 # here-document in config.status, that substitutes the proper values into
17277 # config.h.in to produce config.h.
17279 # Create a delimiter string that does not exist in confdefs.h, to ease
17280 # handling of long lines.
17282 for ac_last_try in false false :; do
17283 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17284 if test -z "$ac_tt"; then
17286 elif $ac_last_try; then
17287 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17289 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17293 # For the awk script, D is an array of macro values keyed by name,
17294 # likewise P contains macro parameters if any. Preserve backslash
17295 # newline sequences.
17297 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17299 s/.\{148\}/&'"$ac_delim"'/g
17302 s/^[ ]*#[ ]*define[ ][ ]*/ /
17309 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17311 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17316 D["\
1"]=" \
3\\\\\\n
"\\/p
17318 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17323 s/.\{148\}/&'"$ac_delim"'/g
17328 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17331 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17333 ' <confdefs.h | sed '
17334 s/'"$ac_delim"'/"\\\
17335 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17338 for (key in D) D_is_set[key] = 1
17341 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17343 split(line, arg, " ")
17344 if (arg[1] == "#") {
17348 defundef
= substr
(arg
[1], 2)
17351 split(mac1
, mac2
, "(") #)
17353 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17354 if (D_is_set
[macro
]) {
17355 # Preserve the white space surrounding the "#".
17356 print prefix
"define", macro P
[macro
] D
[macro
]
17359 # Replace #undef with comments. This is necessary, for example,
17360 # in the case of _POSIX_SOURCE, which is predefined and required
17361 # on some systems where configure will not decide to define it.
17362 if (defundef
== "undef") {
17363 print
"/*", prefix defundef
, macro
, "*/"
17371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17372 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17373 fi # test -n "$CONFIG_HEADERS"
17376 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17381 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17383 case $ac_mode$ac_tag in
17385 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17386 :[FH
]-) ac_tag
=-:-;;
17387 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17404 -) ac_f
="$ac_tmp/stdin";;
17405 *) # Look for the file first in the build tree, then in the source tree
17406 # (if the path is not absolute). The absolute path cannot be DOS-style,
17407 # because $ac_f cannot contain `:'.
17411 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17413 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17415 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17416 as_fn_append ac_file_inputs
" '$ac_f'"
17419 # Let's still pretend it is `configure' which instantiates (i.e., don't
17420 # use $as_me), people would be surprised to read:
17421 # /* config.h. Generated by config.status. */
17422 configure_input
='Generated from '`
17423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17425 if test x
"$ac_file" != x-
; then
17426 configure_input
="$ac_file. $configure_input"
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17428 $as_echo "$as_me: creating $ac_file" >&6;}
17430 # Neutralize special characters interpreted by sed in replacement strings.
17431 case $configure_input in #(
17432 *\
&* |
*\|
* |
*\\* )
17433 ac_sed_conf_input
=`$as_echo "$configure_input" |
17434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17435 *) ac_sed_conf_input
=$configure_input;;
17439 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17440 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17445 ac_dir
=`$as_dirname -- "$ac_file" ||
17446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17447 X"$ac_file" : 'X\(//\)[^/]' \| \
17448 X"$ac_file" : 'X\(//\)$' \| \
17449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17450 $as_echo X"$ac_file" |
17451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17455 /^X\(\/\/\)[^/].*/{
17468 as_dir
="$ac_dir"; as_fn_mkdir_p
17472 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17474 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17475 # A ".." for each directory in $ac_dir_suffix.
17476 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17477 case $ac_top_builddir_sub in
17478 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17479 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17482 ac_abs_top_builddir
=$ac_pwd
17483 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17484 # for backward compatibility:
17485 ac_top_builddir
=$ac_top_build_prefix
17488 .
) # We are building in place.
17490 ac_top_srcdir
=$ac_top_builddir_sub
17491 ac_abs_top_srcdir
=$ac_pwd ;;
17492 [\\/]* | ?
:[\\/]* ) # Absolute name.
17493 ac_srcdir
=$srcdir$ac_dir_suffix;
17494 ac_top_srcdir
=$srcdir
17495 ac_abs_top_srcdir
=$srcdir ;;
17496 *) # Relative name.
17497 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17498 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17499 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17501 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17511 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17512 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17514 ac_MKDIR_P
=$MKDIR_P
17516 [\\/$
]* | ?
:[\\/]* ) ;;
17517 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17522 # If the template does not know about datarootdir, expand it.
17523 # FIXME: This hack should be removed a few years after 2.60.
17524 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17535 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17536 *datarootdir
*) ac_datarootdir_seen
=yes;;
17537 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17539 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 ac_datarootdir_hack='
17543 s&@datadir@&$datadir&g
17544 s&@docdir@&$docdir&g
17545 s&@infodir@&$infodir&g
17546 s&@localedir@&$localedir&g
17547 s&@mandir@&$mandir&g
17548 s&\\\${datarootdir}&$datarootdir&g' ;;
17552 # Neutralize VPATH when `$srcdir' = `.'.
17553 # Shell code in configure.ac might set extrasub.
17554 # FIXME: do we really want to maintain this feature?
17555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17556 ac_sed_extra="$ac_vpsub
17559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17561 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17562 s|@configure_input@|
$ac_sed_conf_input|
;t t
17563 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17564 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17565 s
&@srcdir@
&$ac_srcdir&;t t
17566 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17567 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17568 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17569 s
&@builddir@
&$ac_builddir&;t t
17570 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17571 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17572 s
&@INSTALL@
&$ac_INSTALL&;t t
17573 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17574 $ac_datarootdir_hack
17576 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17577 if $ac_cs_awk_getline; then
17578 $AWK -f "$ac_tmp/subs.
awk"
17580 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17582 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17585 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17587 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17589 which seems to be undefined. Please make sure it is defined" >&5
17590 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17591 which seems to be undefined. Please make sure it is defined" >&2;}
17593 rm -f "$ac_tmp/stdin"
17595 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17596 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17604 if test x"$ac_file" != x-; then
17606 $as_echo "/* $configure_input */" \
17607 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17608 } >"$ac_tmp/config.h" \
17609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17610 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17612 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17615 mv "$ac_tmp/config.h" "$ac_file" \
17616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17619 $as_echo "/* $configure_input */" \
17620 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17621 || as_fn_error $? "could not create -" "$LINENO" 5
17623 # Compute "$ac_file"'s index
in $config_headers.
17626 for _am_header
in $config_headers :; do
17627 case $_am_header in
17628 $_am_arg |
$_am_arg:* )
17631 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17634 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17635 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17636 X"$_am_arg" : 'X\(//\)[^/]' \| \
17637 X"$_am_arg" : 'X\(//\)$' \| \
17638 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17639 $as_echo X"$_am_arg" |
17640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17644 /^X\(\/\/\)[^/].*/{
17656 s/.*/./; q'`/stamp-h
$_am_stamp_count
17659 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17660 $as_echo "$as_me: executing $ac_file commands" >&6;}
17665 case $ac_file$ac_mode in
17667 # Only add multilib support code if we just rebuilt the top-level
17669 case " $CONFIG_FILES " in
17671 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17676 # See if we are running on zsh, and set the options which allow our
17677 # commands through without removal of \ escapes.
17678 if test -n "${ZSH_VERSION+set}" ; then
17679 setopt NO_GLOB_SUBST
17682 cfgfile
="${ofile}T"
17683 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17686 cat <<_LT_EOF >> "$cfgfile"
17689 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17690 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17692 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17694 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17695 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17696 # Written by Gordon Matzigkeit, 1996
17698 # This file is part of GNU Libtool.
17700 # GNU Libtool is free software; you can redistribute it and/or
17701 # modify it under the terms of the GNU General Public License as
17702 # published by the Free Software Foundation; either version 2 of
17703 # the License, or (at your option) any later version.
17705 # As a special exception to the GNU General Public License,
17706 # if you distribute this file as part of a program or library that
17707 # is built using GNU Libtool, you may include this file under the
17708 # same distribution terms that you use for the rest of that program.
17710 # GNU Libtool is distributed in the hope that it will be useful,
17711 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17712 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17713 # GNU General Public License for more details.
17715 # You should have received a copy of the GNU General Public License
17716 # along with GNU Libtool; see the file COPYING. If not, a copy
17717 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17718 # obtained by writing to the Free Software Foundation, Inc.,
17719 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17722 # The names of the tagged configurations supported by this script.
17723 available_tags="D "
17725 # ### BEGIN LIBTOOL CONFIG
17727 # Which release of libtool.m4 was used?
17728 macro_version=$macro_version
17729 macro_revision=$macro_revision
17731 # Whether or not to build shared libraries.
17732 build_libtool_libs=$enable_shared
17734 # Whether or not to build static libraries.
17735 build_old_libs=$enable_static
17737 # What type of objects to build.
17740 # Whether or not to optimize for fast installation.
17741 fast_install=$enable_fast_install
17743 # Shell to use when invoking shell scripts.
17746 # An echo program that protects backslashes.
17750 host_alias=$host_alias
17754 # The build system.
17755 build_alias=$build_alias
17759 # A sed program that does not truncate output.
17762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17763 Xsed="\$SED -e 1s/^X//"
17765 # A grep program that handles long lines.
17771 # A literal string matcher.
17774 # A BSD- or MS-compatible name lister.
17777 # Whether we need soft or hard links.
17780 # What is the maximum length of a command?
17781 max_cmd_len=$max_cmd_len
17783 # Object file suffix (normally "o").
17786 # Executable file suffix (normally "").
17789 # whether the shell understands "unset".
17792 # turn spaces into newlines.
17795 # turn newlines into spaces.
17798 # An object symbol dumper.
17799 OBJDUMP=$lt_OBJDUMP
17801 # Method to check whether dependent libraries are shared objects.
17802 deplibs_check_method=$lt_deplibs_check_method
17804 # Command to use when deplibs_check_method == "file_magic".
17805 file_magic_cmd=$lt_file_magic_cmd
17809 AR_FLAGS=$lt_AR_FLAGS
17811 # A symbol stripping program.
17814 # Commands used to install an old-style archive.
17816 old_postinstall_cmds=$lt_old_postinstall_cmds
17817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17819 # Whether to use a lock for old archive extraction.
17820 lock_old_archive_extraction=$lock_old_archive_extraction
17825 # LTCC compiler flags.
17826 LTCFLAGS=$lt_CFLAGS
17828 # Take the output of nm and produce a listing of raw symbols and C names.
17829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17831 # Transform the output of nm in a proper C declaration.
17832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17834 # Transform the output of nm in a C name address pair.
17835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17837 # Transform the output of nm in a C name address pair when lib prefix is needed.
17838 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17840 # The name of the directory that contains temporary libtool files.
17843 # Used to examine libraries when file_magic_cmd begins with "file".
17844 MAGIC_CMD=$MAGIC_CMD
17846 # Must we lock files when doing compilation?
17847 need_locks=$lt_need_locks
17849 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17850 DSYMUTIL=$lt_DSYMUTIL
17852 # Tool to change global to local symbols on Mac OS X.
17855 # Tool to manipulate fat objects and archives on Mac OS X.
17858 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17861 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17862 OTOOL64=$lt_OTOOL64
17864 # Old archive suffix (normally "a").
17867 # Shared library suffix (normally ".so").
17868 shrext_cmds=$lt_shrext_cmds
17870 # The commands to extract the exported symbol list from a shared archive.
17871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17873 # Variables whose values should be saved in libtool wrapper scripts and
17874 # restored at link time.
17875 variables_saved_for_relink=$lt_variables_saved_for_relink
17877 # Do we need the "lib" prefix for modules?
17878 need_lib_prefix=$need_lib_prefix
17880 # Do we need a version for libraries?
17881 need_version=$need_version
17883 # Library versioning type.
17884 version_type=$version_type
17886 # Shared library runtime path variable.
17887 runpath_var=$runpath_var
17889 # Shared library path variable.
17890 shlibpath_var=$shlibpath_var
17892 # Is shlibpath searched before the hard-coded library search path?
17893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17895 # Format of library name prefix.
17896 libname_spec=$lt_libname_spec
17898 # List of archive names. First name is the real one, the rest are links.
17899 # The last name is the one that the linker finds with -lNAME
17900 library_names_spec=$lt_library_names_spec
17902 # The coded name of the library, if different from the real name.
17903 soname_spec=$lt_soname_spec
17905 # Permission mode override for installation of shared libraries.
17906 install_override_mode=$lt_install_override_mode
17908 # Command to use after installation of a shared archive.
17909 postinstall_cmds=$lt_postinstall_cmds
17911 # Command to use after uninstallation of a shared archive.
17912 postuninstall_cmds=$lt_postuninstall_cmds
17914 # Commands used to finish a libtool library installation in a directory.
17915 finish_cmds=$lt_finish_cmds
17917 # As "finish_cmds", except a single script fragment to be evaled but
17919 finish_eval=$lt_finish_eval
17921 # Whether we should hardcode library paths into libraries.
17922 hardcode_into_libs=$hardcode_into_libs
17924 # Compile-time system search path for libraries.
17925 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17927 # Run-time system search path for libraries.
17928 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17930 # Whether dlopen is supported.
17931 dlopen_support=$enable_dlopen
17933 # Whether dlopen of programs is supported.
17934 dlopen_self=$enable_dlopen_self
17936 # Whether dlopen of statically linked programs is supported.
17937 dlopen_self_static=$enable_dlopen_self_static
17939 # Commands to strip libraries.
17940 old_striplib=$lt_old_striplib
17941 striplib=$lt_striplib
17944 # The linker used to build libraries.
17947 # How to create reloadable object files.
17948 reload_flag=$lt_reload_flag
17949 reload_cmds=$lt_reload_cmds
17951 # Commands used to build an old-style archive.
17952 old_archive_cmds=$lt_old_archive_cmds
17954 # A language specific compiler.
17957 # Is the compiler the GNU compiler?
17960 # Compiler flag to turn off builtin functions.
17961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17963 # How to pass a linker flag through the compiler.
17964 wl=$lt_lt_prog_compiler_wl
17966 # Additional compiler flags for building library objects.
17967 pic_flag=$lt_lt_prog_compiler_pic
17969 # Compiler flag to prevent dynamic linking.
17970 link_static_flag=$lt_lt_prog_compiler_static
17972 # Does compiler simultaneously support -c and -o options?
17973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17975 # Whether or not to add -lc for building shared libraries.
17976 build_libtool_need_lc=$archive_cmds_need_lc
17978 # Whether or not to disallow shared libs when runtime libs are static.
17979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17981 # Compiler flag to allow reflexive dlopens.
17982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17984 # Compiler flag to generate shared objects directly from archives.
17985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17987 # Whether the compiler copes with passing no objects directly.
17988 compiler_needs_object=$lt_compiler_needs_object
17990 # Create an old-style archive from a shared archive.
17991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17993 # Create a temporary old-style archive to link instead of a shared archive.
17994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17996 # Commands used to build a shared archive.
17997 archive_cmds=$lt_archive_cmds
17998 archive_expsym_cmds=$lt_archive_expsym_cmds
18000 # Commands used to build a loadable module if different from building
18001 # a shared archive.
18002 module_cmds=$lt_module_cmds
18003 module_expsym_cmds=$lt_module_expsym_cmds
18005 # Whether we are building with GNU ld or not.
18006 with_gnu_ld=$lt_with_gnu_ld
18008 # Flag that allows shared libraries with undefined symbols to be built.
18009 allow_undefined_flag=$lt_allow_undefined_flag
18011 # Flag that enforces no undefined symbols.
18012 no_undefined_flag=$lt_no_undefined_flag
18014 # Flag to hardcode \$libdir into a binary during linking.
18015 # This must work even if \$libdir does not exist
18016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18018 # If ld is used when linking, flag to hardcode \$libdir into a binary
18019 # during linking. This must work even if \$libdir does not exist.
18020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18022 # Whether we need a single "-rpath" flag with a separated argument.
18023 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18025 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18026 # DIR into the resulting binary.
18027 hardcode_direct=$hardcode_direct
18029 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18030 # DIR into the resulting binary and the resulting library dependency is
18031 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18032 # library is relocated.
18033 hardcode_direct_absolute=$hardcode_direct_absolute
18035 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18036 # into the resulting binary.
18037 hardcode_minus_L=$hardcode_minus_L
18039 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18040 # into the resulting binary.
18041 hardcode_shlibpath_var=$hardcode_shlibpath_var
18043 # Set to "yes" if building a shared library automatically hardcodes DIR
18044 # into the library and all subsequent libraries and executables linked
18046 hardcode_automatic=$hardcode_automatic
18048 # Set to yes if linker adds runtime paths of dependent libraries
18049 # to runtime path list.
18050 inherit_rpath=$inherit_rpath
18052 # Whether libtool must link a program against all its dependency libraries.
18053 link_all_deplibs=$link_all_deplibs
18055 # Fix the shell variable \$srcfile for the compiler.
18056 fix_srcfile_path=$lt_fix_srcfile_path
18058 # Set to "yes" if exported symbols are required.
18059 always_export_symbols=$always_export_symbols
18061 # The commands to list exported symbols.
18062 export_symbols_cmds=$lt_export_symbols_cmds
18064 # Symbols that should not be listed in the preloaded symbols.
18065 exclude_expsyms=$lt_exclude_expsyms
18067 # Symbols that must always be exported.
18068 include_expsyms=$lt_include_expsyms
18070 # Commands necessary for linking programs (against libraries) with templates.
18071 prelink_cmds=$lt_prelink_cmds
18073 # Specify filename containing input files.
18074 file_list_spec=$lt_file_list_spec
18076 # How to hardcode a shared library path into an executable.
18077 hardcode_action=$hardcode_action
18079 # ### END LIBTOOL CONFIG
18085 cat <<\_LT_EOF
>> "$cfgfile"
18086 # AIX sometimes has problems with the GCC collect2 program. For some
18087 # reason, if we set the COLLECT_NAMES environment variable, the problems
18088 # vanish in a puff of smoke.
18089 if test "X${COLLECT_NAMES+set}" != Xset
; then
18091 export COLLECT_NAMES
18098 ltmain
="$ac_aux_dir/ltmain.sh"
18101 # We use sed instead of cat because bash on DJGPP gets confused if
18102 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18103 # text mode, it properly converts lines to CR/LF. This bash problem
18104 # is reportedly fixed, but why not run on old versions too?
18105 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18106 ||
(rm -f "$cfgfile"; exit 1)
18110 cat << \_LT_EOF
>> "$cfgfile"
18112 # func_dirname file append nondir_replacement
18113 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18114 # otherwise set result to NONDIR_REPLACEMENT.
18118 */*) func_dirname_result
="${1%/*}${2}" ;;
18119 * ) func_dirname_result
="${3}" ;;
18123 # func_basename file
18126 func_basename_result
="${1##*/}"
18129 # func_dirname_and_basename file append nondir_replacement
18130 # perform func_basename and func_dirname in a single function
18132 # dirname: Compute the dirname of FILE. If nonempty,
18133 # add APPEND to the result, otherwise set result
18134 # to NONDIR_REPLACEMENT.
18135 # value returned in "$func_dirname_result"
18136 # basename: Compute filename of FILE.
18137 # value retuned in "$func_basename_result"
18138 # Implementation must be kept synchronized with func_dirname
18139 # and func_basename. For efficiency, we do not delegate to
18140 # those functions but instead duplicate the functionality here.
18141 func_dirname_and_basename
()
18144 */*) func_dirname_result
="${1%/*}${2}" ;;
18145 * ) func_dirname_result
="${3}" ;;
18147 func_basename_result
="${1##*/}"
18150 # func_stripname prefix suffix name
18151 # strip PREFIX and SUFFIX off of NAME.
18152 # PREFIX and SUFFIX must not contain globbing or regex special
18153 # characters, hashes, percent signs, but SUFFIX may contain a leading
18154 # dot (in which case that matches only a dot).
18157 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18158 # positional parameters, so assign one to ordinary parameter first.
18159 func_stripname_result
=${3}
18160 func_stripname_result
=${func_stripname_result#"${1}"}
18161 func_stripname_result
=${func_stripname_result%"${2}"}
18167 func_opt_split_opt
=${1%%=*}
18168 func_opt_split_arg
=${1#*=}
18175 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18176 *) func_lo2o_result
=${1} ;;
18180 # func_xform libobj-or-source
18183 func_xform_result
=${1%.*}.lo
18186 # func_arith arithmetic-term...
18189 func_arith_result
=$
(( $
* ))
18193 # STRING may not start with a hyphen.
18196 func_len_result
=${#1}
18201 *) # Bourne compatible functions.
18202 cat << \_LT_EOF
>> "$cfgfile"
18204 # func_dirname file append nondir_replacement
18205 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18206 # otherwise set result to NONDIR_REPLACEMENT.
18209 # Extract subdirectory from the argument.
18210 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18211 if test "X$func_dirname_result" = "X${1}"; then
18212 func_dirname_result
="${3}"
18214 func_dirname_result
="$func_dirname_result${2}"
18218 # func_basename file
18221 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18225 # func_stripname prefix suffix name
18226 # strip PREFIX and SUFFIX off of NAME.
18227 # PREFIX and SUFFIX must not contain globbing or regex special
18228 # characters, hashes, percent signs, but SUFFIX may contain a leading
18229 # dot (in which case that matches only a dot).
18230 # func_strip_suffix prefix name
18234 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18235 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18240 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18241 my_sed_long_arg
='1s/^-[^=]*=//'
18246 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18247 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18253 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18256 # func_xform libobj-or-source
18259 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18262 # func_arith arithmetic-term...
18265 func_arith_result
=`expr "$@"`
18269 # STRING may not start with a hyphen.
18272 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18278 case $lt_shell_append in
18280 cat << \_LT_EOF
>> "$cfgfile"
18282 # func_append var value
18283 # Append VALUE to the end of shell variable VAR.
18291 cat << \_LT_EOF
>> "$cfgfile"
18293 # func_append var value
18294 # Append VALUE to the end of shell variable VAR.
18305 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18306 ||
(rm -f "$cfgfile"; exit 1)
18308 mv -f "$cfgfile" "$ofile" ||
18309 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18313 cat <<_LT_EOF >> "$ofile"
18315 # ### BEGIN LIBTOOL TAG CONFIG: D
18317 # The linker used to build libraries.
18320 # How to create reloadable object files.
18321 reload_flag=$lt_reload_flag_D
18322 reload_cmds=$lt_reload_cmds_D
18324 # Commands used to build an old-style archive.
18325 old_archive_cmds=$lt_old_archive_cmds_D
18327 # A language specific compiler.
18330 # Is the compiler the GNU compiler?
18333 # Compiler flag to turn off builtin functions.
18334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18336 # How to pass a linker flag through the compiler.
18337 wl=$lt_lt_prog_compiler_wl_D
18339 # Additional compiler flags for building library objects.
18340 pic_flag=$lt_lt_prog_compiler_pic_D
18342 # Compiler flag to prevent dynamic linking.
18343 link_static_flag=$lt_lt_prog_compiler_static_D
18345 # Does compiler simultaneously support -c and -o options?
18346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18348 # Whether or not to add -lc for building shared libraries.
18349 build_libtool_need_lc=$archive_cmds_need_lc_D
18351 # Whether or not to disallow shared libs when runtime libs are static.
18352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18354 # Compiler flag to allow reflexive dlopens.
18355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18357 # Compiler flag to generate shared objects directly from archives.
18358 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18360 # Whether the compiler copes with passing no objects directly.
18361 compiler_needs_object=$lt_compiler_needs_object_D
18363 # Create an old-style archive from a shared archive.
18364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18366 # Create a temporary old-style archive to link instead of a shared archive.
18367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18369 # Commands used to build a shared archive.
18370 archive_cmds=$lt_archive_cmds_D
18371 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18373 # Commands used to build a loadable module if different from building
18374 # a shared archive.
18375 module_cmds=$lt_module_cmds_D
18376 module_expsym_cmds=$lt_module_expsym_cmds_D
18378 # Whether we are building with GNU ld or not.
18379 with_gnu_ld=$lt_with_gnu_ld_D
18381 # Flag that allows shared libraries with undefined symbols to be built.
18382 allow_undefined_flag=$lt_allow_undefined_flag_D
18384 # Flag that enforces no undefined symbols.
18385 no_undefined_flag=$lt_no_undefined_flag_D
18387 # Flag to hardcode \$libdir into a binary during linking.
18388 # This must work even if \$libdir does not exist
18389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18391 # If ld is used when linking, flag to hardcode \$libdir into a binary
18392 # during linking. This must work even if \$libdir does not exist.
18393 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18395 # Whether we need a single "-rpath" flag with a separated argument.
18396 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18399 # DIR into the resulting binary.
18400 hardcode_direct=$hardcode_direct_D
18402 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18403 # DIR into the resulting binary and the resulting library dependency is
18404 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18405 # library is relocated.
18406 hardcode_direct_absolute=$hardcode_direct_absolute_D
18408 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18409 # into the resulting binary.
18410 hardcode_minus_L=$hardcode_minus_L_D
18412 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18413 # into the resulting binary.
18414 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18416 # Set to "yes" if building a shared library automatically hardcodes DIR
18417 # into the library and all subsequent libraries and executables linked
18419 hardcode_automatic=$hardcode_automatic_D
18421 # Set to yes if linker adds runtime paths of dependent libraries
18422 # to runtime path list.
18423 inherit_rpath=$inherit_rpath_D
18425 # Whether libtool must link a program against all its dependency libraries.
18426 link_all_deplibs=$link_all_deplibs_D
18428 # Fix the shell variable \$srcfile for the compiler.
18429 fix_srcfile_path=$lt_fix_srcfile_path_D
18431 # Set to "yes" if exported symbols are required.
18432 always_export_symbols=$always_export_symbols_D
18434 # The commands to list exported symbols.
18435 export_symbols_cmds=$lt_export_symbols_cmds_D
18437 # Symbols that should not be listed in the preloaded symbols.
18438 exclude_expsyms=$lt_exclude_expsyms_D
18440 # Symbols that must always be exported.
18441 include_expsyms=$lt_include_expsyms_D
18443 # Commands necessary for linking programs (against libraries) with templates.
18444 prelink_cmds=$lt_prelink_cmds_D
18446 # Specify filename containing input files.
18447 file_list_spec=$lt_file_list_spec_D
18449 # How to hardcode a shared library path into an executable.
18450 hardcode_action=$hardcode_action_D
18452 # ### END LIBTOOL TAG CONFIG: D
18456 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
18457 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
18458 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18460 sed -f vpsed$$
$ac_file > tmp$$
18463 echo 'MULTISUBDIR =' >> $ac_file
18465 .
${multi_basedir}/config-ml.
in
18466 { ml_norecursion
=; unset ml_norecursion
;}
18468 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
18469 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18471 sed -f vpsed$$
$ac_file > tmp$$
18474 echo 'MULTISUBDIR =' >> $ac_file
18476 .
${multi_basedir}/config-ml.
in
18477 { ml_norecursion
=; unset ml_norecursion
;}
18479 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
18480 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18482 sed -f vpsed$$
$ac_file > tmp$$
18485 echo 'MULTISUBDIR =' >> $ac_file
18487 .
${multi_basedir}/config-ml.
in
18488 { ml_norecursion
=; unset ml_norecursion
;}
18497 ac_clean_files
=$ac_clean_files_save
18499 test $ac_write_fail = 0 ||
18500 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18503 # configure is writing to config.log, and then calls config.status.
18504 # config.status does its own redirection, appending to config.log.
18505 # Unfortunately, on DOS this fails, as config.log is still kept open
18506 # by configure, so config.status won't be able to write to it; its
18507 # output is simply discarded. So we exec the FD to /dev/null,
18508 # effectively closing config.log, so it can be properly (re)opened and
18509 # appended to by config.status. When coming back to configure, we
18510 # need to make the FD available again.
18511 if test "$no_create" != yes; then
18513 ac_config_status_args
=
18514 test "$silent" = yes &&
18515 ac_config_status_args
="$ac_config_status_args --quiet"
18517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18520 # would make configure fail if this is the last instruction.
18521 $ac_cs_success || as_fn_exit
1
18523 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18525 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}