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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='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
641 libphobos_toolexeclibdir
642 libphobos_toolexecdir
644 DRUNTIME_ZLIB_SYSTEM_FALSE
645 DRUNTIME_ZLIB_SYSTEM_TRUE
646 BACKTRACE_SUPPORTS_THREADS
647 BACKTRACE_USES_MALLOC
652 DCFG_HAVE_64BIT_ATOMICS
653 DCFG_HAVE_ATOMIC_BUILTINS
654 DCFG_MINFO_BRACKETING
655 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
656 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
657 DCFG_ARM_EABI_UNWINDER
659 DRUNTIME_OS_SOLARIS_FALSE
660 DRUNTIME_OS_SOLARIS_TRUE
661 DRUNTIME_OS_MINGW_FALSE
662 DRUNTIME_OS_MINGW_TRUE
663 DRUNTIME_OS_LINUX_FALSE
664 DRUNTIME_OS_LINUX_TRUE
665 DRUNTIME_OS_OPENBSD_FALSE
666 DRUNTIME_OS_OPENBSD_TRUE
667 DRUNTIME_OS_NETBSD_FALSE
668 DRUNTIME_OS_NETBSD_TRUE
669 DRUNTIME_OS_FREEBSD_FALSE
670 DRUNTIME_OS_FREEBSD_TRUE
671 DRUNTIME_OS_DRAGONFLYBSD_FALSE
672 DRUNTIME_OS_DRAGONFLYBSD_TRUE
673 DRUNTIME_OS_DARWIN_FALSE
674 DRUNTIME_OS_DARWIN_TRUE
675 DRUNTIME_OS_ANDROID_FALSE
676 DRUNTIME_OS_ANDROID_TRUE
677 DRUNTIME_OS_AIX_FALSE
679 DRUNTIME_OS_UNIX_FALSE
680 DRUNTIME_OS_UNIX_TRUE
681 DRUNTIME_GC_ENABLE_FALSE
682 DRUNTIME_GC_ENABLE_TRUE
686 phobos_compiler_shared_flag
687 phobos_compiler_pic_flag
714 MAINTAINER_MODE_FALSE
739 INSTALL_STRIP_PROGRAM
795 program_transform_name
808 enable_option_checking
811 enable_maintainer_mode
818 with_gcc_major_version_only
825 with_target_system_zlib
827 enable_version_specific_runtime_libs
829 ac_precious_vars
='build_alias
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 runstatedir
='${localstatedir}/run'
873 includedir
='${prefix}/include'
874 oldincludedir
='/usr/include'
875 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir
='${datarootdir}/info'
881 libdir
='${exec_prefix}/lib'
882 localedir
='${datarootdir}/locale'
883 mandir
='${datarootdir}/man'
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\
$ac_option
897 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
908 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
910 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
913 -build |
--build |
--buil |
--bui |
--bu)
914 ac_prev
=build_alias
;;
915 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
916 build_alias
=$ac_optarg ;;
918 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
919 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
920 ac_prev
=cache_file
;;
921 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
922 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
923 cache_file
=$ac_optarg ;;
926 cache_file
=config.cache
;;
928 -datadir |
--datadir |
--datadi |
--datad)
930 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
931 datadir
=$ac_optarg ;;
933 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
934 |
--dataroo |
--dataro |
--datar)
935 ac_prev
=datarootdir
;;
936 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
937 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
938 datarootdir
=$ac_optarg ;;
940 -disable-* |
--disable-*)
941 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
944 as_fn_error $?
"invalid feature name: $ac_useropt"
945 ac_useropt_orig
=$ac_useropt
946 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
951 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep
=', ';;
954 eval enable_
$ac_useropt=no
;;
956 -docdir |
--docdir |
--docdi |
--doc |
--do)
958 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
961 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
963 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
966 -enable-* |
--enable-*)
967 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
970 as_fn_error $?
"invalid feature name: $ac_useropt"
971 ac_useropt_orig
=$ac_useropt
972 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep
=', ';;
980 eval enable_
$ac_useropt=\
$ac_optarg ;;
982 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
983 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
984 |
--exec |
--exe |
--ex)
985 ac_prev
=exec_prefix
;;
986 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
987 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
988 |
--exec=* |
--exe=* |
--ex=*)
989 exec_prefix
=$ac_optarg ;;
991 -gas |
--gas |
--ga |
--g)
992 # Obsolete; use --with-gas.
995 -help |
--help |
--hel |
--he |
-h)
997 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
998 ac_init_help
=recursive
;;
999 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1000 ac_init_help
=short
;;
1002 -host |
--host |
--hos |
--ho)
1003 ac_prev
=host_alias
;;
1004 -host=* |
--host=* |
--hos=* |
--ho=*)
1005 host_alias
=$ac_optarg ;;
1007 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1009 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1011 htmldir
=$ac_optarg ;;
1013 -includedir |
--includedir |
--includedi |
--included |
--include \
1014 |
--includ |
--inclu |
--incl |
--inc)
1015 ac_prev
=includedir
;;
1016 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1017 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1018 includedir
=$ac_optarg ;;
1020 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1022 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1023 infodir
=$ac_optarg ;;
1025 -libdir |
--libdir |
--libdi |
--libd)
1027 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1028 libdir
=$ac_optarg ;;
1030 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1031 |
--libexe |
--libex |
--libe)
1032 ac_prev
=libexecdir
;;
1033 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1034 |
--libexe=* |
--libex=* |
--libe=*)
1035 libexecdir
=$ac_optarg ;;
1037 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1038 ac_prev
=localedir
;;
1039 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1040 localedir
=$ac_optarg ;;
1042 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1043 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1044 ac_prev
=localstatedir
;;
1045 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1046 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1047 localstatedir
=$ac_optarg ;;
1049 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1051 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1052 mandir
=$ac_optarg ;;
1054 -nfp |
--nfp |
--nf)
1055 # Obsolete; use --without-fp.
1058 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1059 |
--no-cr |
--no-c |
-n)
1062 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1063 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1066 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1067 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1068 |
--oldin |
--oldi |
--old |
--ol |
--o)
1069 ac_prev
=oldincludedir
;;
1070 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1071 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1072 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1073 oldincludedir
=$ac_optarg ;;
1075 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1077 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1078 prefix
=$ac_optarg ;;
1080 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1081 |
--program-pre |
--program-pr |
--program-p)
1082 ac_prev
=program_prefix
;;
1083 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1084 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1085 program_prefix
=$ac_optarg ;;
1087 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1088 |
--program-suf |
--program-su |
--program-s)
1089 ac_prev
=program_suffix
;;
1090 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1091 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1092 program_suffix
=$ac_optarg ;;
1094 -program-transform-name |
--program-transform-name \
1095 |
--program-transform-nam |
--program-transform-na \
1096 |
--program-transform-n |
--program-transform- \
1097 |
--program-transform |
--program-transfor \
1098 |
--program-transfo |
--program-transf \
1099 |
--program-trans |
--program-tran \
1100 |
--progr-tra |
--program-tr |
--program-t)
1101 ac_prev
=program_transform_name
;;
1102 -program-transform-name=* |
--program-transform-name=* \
1103 |
--program-transform-nam=* |
--program-transform-na=* \
1104 |
--program-transform-n=* |
--program-transform-=* \
1105 |
--program-transform=* |
--program-transfor=* \
1106 |
--program-transfo=* |
--program-transf=* \
1107 |
--program-trans=* |
--program-tran=* \
1108 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1109 program_transform_name
=$ac_optarg ;;
1111 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1113 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1114 pdfdir
=$ac_optarg ;;
1116 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1118 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1121 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1122 |
-silent |
--silent |
--silen |
--sile |
--sil)
1125 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1126 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1127 |
--run |
--ru |
--r)
1128 ac_prev
=runstatedir
;;
1129 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1130 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1131 |
--run=* |
--ru=* |
--r=*)
1132 runstatedir
=$ac_optarg ;;
1134 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1136 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1138 sbindir
=$ac_optarg ;;
1140 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1141 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1142 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1144 ac_prev
=sharedstatedir
;;
1145 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1146 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1147 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1149 sharedstatedir
=$ac_optarg ;;
1151 -site |
--site |
--sit)
1153 -site=* |
--site=* |
--sit=*)
1156 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1158 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1159 srcdir
=$ac_optarg ;;
1161 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1162 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1163 ac_prev
=sysconfdir
;;
1164 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1165 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1166 sysconfdir
=$ac_optarg ;;
1168 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1169 ac_prev
=target_alias
;;
1170 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1171 target_alias
=$ac_optarg ;;
1173 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1176 -version |
--version |
--versio |
--versi |
--vers |
-V)
1177 ac_init_version
=: ;;
1180 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1183 as_fn_error $?
"invalid package name: $ac_useropt"
1184 ac_useropt_orig
=$ac_useropt
1185 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep
=', ';;
1193 eval with_
$ac_useropt=\
$ac_optarg ;;
1195 -without-* |
--without-*)
1196 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 as_fn_error $?
"invalid package name: $ac_useropt"
1200 ac_useropt_orig
=$ac_useropt
1201 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep
=', ';;
1209 eval with_
$ac_useropt=no
;;
1212 # Obsolete; use --with-x.
1215 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1216 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1217 ac_prev
=x_includes
;;
1218 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1219 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1220 x_includes
=$ac_optarg ;;
1222 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1223 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1224 ac_prev
=x_libraries
;;
1225 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1226 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1227 x_libraries
=$ac_optarg ;;
1229 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1234 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1238 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1240 eval $ac_envvar=\
$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 if test -n "$ac_prev"; then
1255 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $?
"missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir runstatedir
1273 eval ac_val
=\$
$ac_var
1274 # Remove trailing slashes.
1277 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\
$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$
]* | ?
:[\\/]* ) continue;;
1283 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1285 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target
=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x
; then
1297 if test "x$build_alias" = x
; then
1298 cross_compiling
=maybe
1299 elif test "x$build_alias" != "x$host_alias"; then
1305 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1307 test "$silent" = yes && exec 6>/dev
/null
1310 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di
=`ls -di .` &&
1312 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error $?
"working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error $?
"pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted
=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir
=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted
=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1354 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1368 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 for ac_var
in $ac_precious_vars; do
1371 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1373 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1384 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking ...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1443 --program-prefix=PREFIX prepend PREFIX to installed program names
1444 --program-suffix=SUFFIX append SUFFIX to installed program names
1445 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1448 --build=BUILD configure
for building on BUILD
[guessed
]
1449 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1450 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive
) echo "Configuration of package-unused version-unused:";;
1461 --disable-option-checking ignore unrecognized
--enable/--with options
1462 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1463 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1464 --enable-multilib build many library versions
(default
)
1465 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1466 --disable-silent-rules verbose build output
(undo
: "make V=0")
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful
(and
1469 sometimes confusing
) to the casual installer
1470 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1471 --enable-static[=PKGS
] build static libraries
[default
=yes]
1472 --enable-fast-install[=PKGS
]
1473 optimize
for fast installation
[default
=yes]
1474 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1475 --enable-werror turns on
-Werror [default
=no
]
1476 --enable-druntime-gc enable D runtime garbage collector
(default
: yes)
1477 --enable-unix enables Unix runtime
(default
: yes, for Unix
1479 --enable-thread-lib=<arg
>
1480 specify linker option
for the system thread library
1481 (default
: autodetect
)
1482 --enable-version-specific-runtime-libs
1483 Specify that runtime libraries should be installed
1484 in a compiler-specific directory
1487 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1488 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1489 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1491 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1492 --with-gcc-major-version-only
1493 use only GCC major number
in filesystem paths
1494 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1495 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1497 --with-target-system-zlib
1498 use installed libz
(default
: no
)
1499 --with-cross-host=HOST configuring with a cross compiler
1501 Some influential environment variables
:
1502 CC C compiler
command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1505 nonstandard directory
<lib dir
>
1506 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1507 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1508 you have headers
in a nonstandard directory
<include dir
>
1509 CCAS assembler compiler
command (defaults to CC
)
1510 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1511 GDC D compiler
command
1512 GDCFLAGS D compiler flags
1515 Use these variables to override the choices made by
`configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 Report bugs to the package provider.
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1581 package-unused configure version-unused
1582 generated by GNU Autoconf 2.69
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1605 *) ac_try_echo
=$ac_try;;
1607 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1611 if test -s conftest.err
; then
1612 grep -v '^ *+' conftest.err
>conftest.er1
1613 cat conftest.er1
>&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.
$ac_objext; then :
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.
$ac_ext >&5
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status
$ac_retval
1631 } # ac_fn_c_try_compile
1633 # ac_fn_d_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_d_try_compile
()
1638 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1639 rm -f conftest.
$ac_objext
1640 if { { ac_try
="$ac_compile"
1642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_d_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext; then :
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1669 } # ac_fn_d_try_compile
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1681 *) ac_try_echo
=$ac_try;;
1683 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1687 if test -s conftest.err
; then
1688 grep -v '^ *+' conftest.err
>conftest.er1
1689 cat conftest.er1
>&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest
$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest
$ac_exeext
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.
$ac_ext >&5
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status
$ac_retval
1715 } # ac_fn_c_try_link
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile
()
1723 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \
${$3+:} false
; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1734 if ac_fn_c_try_compile
"$LINENO"; then :
1739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_compile
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1754 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } > conftest.i && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1785 # ac_fn_c_try_run LINENO
1786 # ----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788 # that executables *can* be run.
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_link"
1794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1795 *) ac_try_echo
=$ac_try;;
1797 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>&5
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1803 { { case "(($ac_try" in
1804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_try") 2>&5
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; }; }; then :
1815 $as_echo "$as_me: program exited with status $ac_status" >&5
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1819 ac_retval=$ac_status
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1850 # include <limits.h>
1852 # include <assert.h>
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1879 if ac_fn_c_try_link "$LINENO"; then :
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_func
1894 # ac_fn_d_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1904 *) ac_try_echo
=$ac_try;;
1906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err
; then
1911 grep -v '^ *+' conftest.err
>conftest.er1
1912 cat conftest.er1
>&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_d_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest
$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest
$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.
$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status
$ac_retval
1938 } # ac_fn_d_try_link
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1945 ac_fn_c_check_header_mongrel
()
1947 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1948 if eval \
${$3+:} false
; then :
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
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1966 if ac_fn_c_try_compile
"$LINENO"; then :
1967 ac_header_compiler
=yes
1969 ac_header_compiler
=no
1971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 if ac_fn_c_try_cpp
"$LINENO"; then :
1983 ac_header_preproc
=yes
1985 ac_header_preproc
=no
1987 rm -f conftest.err conftest.i conftest.
$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \
${$3+:} false
; then :
2015 $as_echo_n "(cached) " >&6
2017 eval "$3=\$ac_header_compiler"
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_header_mongrel
2026 cat >config.log
<<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2030 It was created by package-unused $as_me version-unused, which was
2031 generated by GNU Autoconf 2.69. Invocation command line was
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir
=.
2067 $as_echo "PATH: $as_dir"
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_must_keep_next
=false
2097 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2099 |
-silent |
--silent |
--silen |
--sile |
--sil)
2102 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2107 as_fn_append ac_configure_args1
" '$ac_arg'"
2108 if test $ac_must_keep_next = true
; then
2109 ac_must_keep_next
=false
# Got value, back to normal.
2112 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2113 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2114 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2115 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120 -* ) ac_must_keep_next
=true
;;
2123 as_fn_append ac_configure_args
" '$ac_arg'"
2128 { ac_configure_args0
=; unset ac_configure_args0
;}
2129 { ac_configure_args1
=; unset ac_configure_args1
;}
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log. We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2141 $as_echo "## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##"
2145 # The following way of writing the cache mishandles newlines in values,
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 $as_echo "## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##"
2181 for ac_var in $ac_subst_vars
2183 eval ac_val=\$$ac_var
2185 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 $as_echo "$ac_var='\''$ac_val'\''"
2191 if test -n "$ac_subst_files"; then
2192 $as_echo "## ------------------- ##
2193 ## File substitutions. ##
2194 ## ------------------- ##"
2196 for ac_var
in $ac_subst_files
2198 eval ac_val
=\$
$ac_var
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -s confdefs.h; then
2208 $as_echo "## ----------- ##
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223 for ac_signal
in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest
* confdefs.h
2231 $as_echo "/* confdefs.h */" > confdefs.h
2233 # Predefined preprocessor variables.
2235 cat >>confdefs.h
<<_ACEOF
2236 #define PACKAGE_NAME "$PACKAGE_NAME"
2239 cat >>confdefs.h
<<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243 cat >>confdefs.h
<<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2247 cat >>confdefs.h
<<_ACEOF
2248 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 cat >>confdefs.h
<<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255 cat >>confdefs.h
<<_ACEOF
2256 #define PACKAGE_URL "$PACKAGE_URL"
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2264 if test -n "$CONFIG_SITE"; then
2265 # We do not want a PATH search for config.site.
2266 case $CONFIG_SITE in #((
2267 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2268 */*) ac_site_file1
=$CONFIG_SITE;;
2269 *) ac_site_file1
=.
/$CONFIG_SITE;;
2271 elif test "x$prefix" != xNONE
; then
2272 ac_site_file1
=$prefix/share
/config.site
2273 ac_site_file2
=$prefix/etc
/config.site
2275 ac_site_file1
=$ac_default_prefix/share
/config.site
2276 ac_site_file2
=$ac_default_prefix/etc
/config.site
2278 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2280 test "x$ac_site_file" = xNONE
&& continue
2281 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2286 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 as_fn_error $?
"failed to load site script $ac_site_file
2289 See \`config.log' for more details" "$LINENO" 5; }
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2300 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2301 *) .
"./$cache_file";;
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2310 # Check that the precious variables saved in the cache have kept the same
2312 ac_cache_corrupted
=false
2313 for ac_var
in $ac_precious_vars; do
2314 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2315 eval ac_new_set
=\
$ac_env_${ac_var}_set
2316 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2317 eval ac_new_val
=\
$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted
=: ;;
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted
=: ;;
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w
=`echo x $ac_old_val`
2332 ac_new_val_w
=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted
=:
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\
$ac_old_val
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2351 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg
=$ac_var=$ac_new_val ;;
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2360 if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2367 ## -------------------- ##
2368 ## Main body of script. ##
2369 ## -------------------- ##
2372 ac_cpp
='$CPP $CPPFLAGS'
2373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2382 ac_config_headers
="$ac_config_headers config.h"
2385 # Default to --enable-multilib
2386 # Check whether --enable-multilib was given.
2387 if test "${enable_multilib+set}" = set; then :
2388 enableval
=$enable_multilib; case "$enableval" in
2389 yes) multilib
=yes ;;
2391 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2398 # We may get other options which we leave undocumented:
2399 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2400 # See config-ml.in if you want the gory details.
2402 if test "$srcdir" = "."; then
2403 if test "$with_target_subdir" != "."; then
2404 multi_basedir
="$srcdir/$with_multisrctop../.."
2406 multi_basedir
="$srcdir/$with_multisrctop.."
2409 multi_basedir
="$srcdir/.."
2413 # Even if the default multilib is not a cross compilation,
2414 # it may be that some of the other multilibs are.
2415 if test $cross_compiling = no
&& test $multilib = yes \
2416 && test "x${with_multisubdir}" != x
; then
2417 cross_compiling
=maybe
2420 ac_config_commands
="$ac_config_commands default-1"
2423 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2424 if test -f "$ac_dir/install-sh"; then
2426 ac_install_sh
="$ac_aux_dir/install-sh -c"
2428 elif test -f "$ac_dir/install.sh"; then
2430 ac_install_sh
="$ac_aux_dir/install.sh -c"
2432 elif test -f "$ac_dir/shtool"; then
2434 ac_install_sh
="$ac_aux_dir/shtool install -c"
2438 if test -z "$ac_aux_dir"; then
2439 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2442 # These three variables are undocumented and unsupported,
2443 # and are intended to be withdrawn in a future Autoconf release.
2444 # They can cause serious problems if a builder's source tree is in a directory
2445 # whose full name contains unusual characters.
2446 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2447 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2448 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2451 # Make sure we can run config.sub.
2452 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2453 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2456 $as_echo_n "checking build system type... " >&6; }
2457 if ${ac_cv_build+:} false
; then :
2458 $as_echo_n "(cached) " >&6
2460 ac_build_alias
=$build_alias
2461 test "x$ac_build_alias" = x
&&
2462 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2463 test "x$ac_build_alias" = x
&&
2464 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2465 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2466 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2470 $as_echo "$ac_cv_build" >&6; }
2471 case $ac_cv_build in
2473 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2476 ac_save_IFS
=$IFS; IFS
='-'
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2486 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2490 $as_echo_n "checking host system type... " >&6; }
2491 if ${ac_cv_host+:} false
; then :
2492 $as_echo_n "(cached) " >&6
2494 if test "x$host_alias" = x
; then
2495 ac_cv_host
=$ac_cv_build
2497 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2498 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2503 $as_echo "$ac_cv_host" >&6; }
2506 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2509 ac_save_IFS
=$IFS; IFS
='-'
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2519 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2523 $as_echo_n "checking target system type... " >&6; }
2524 if ${ac_cv_target+:} false
; then :
2525 $as_echo_n "(cached) " >&6
2527 if test "x$target_alias" = x
; then
2528 ac_cv_target
=$ac_cv_host
2530 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2531 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2536 $as_echo "$ac_cv_target" >&6; }
2537 case $ac_cv_target in
2539 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2541 target
=$ac_cv_target
2542 ac_save_IFS
=$IFS; IFS
='-'
2548 # Remember, the first character of IFS is used to create $*,
2549 # except with old shells:
2552 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2555 # The aliases save the names the user supplied, while $host etc.
2556 # will get canonicalized.
2557 test -n "$target_alias" &&
2558 test "$program_prefix$program_suffix$program_transform_name" = \
2560 program_prefix
=${target_alias}-
2563 target_alias
=${target_alias-$target}
2566 # 1.11.1: Require that version of automake.
2567 # foreign: Don't require README, INSTALL, NEWS, etc.
2568 # no-define: Don't define PACKAGE and VERSION.
2569 # no-dependencies: Don't generate automatic dependencies.
2570 # (because it breaks when using bootstrap-lean, since some of the
2571 # headers are gone at "make install" time).
2572 # -Wall: Issue all automake warnings.
2573 # -Wno-portability: Don't warn about constructs supported by GNU make.
2574 # (because GCC requires GNU make anyhow).
2575 # -Wno-override: Overrides used in testsuite.
2576 am__api_version
='1.15'
2578 # Find a good install program. We prefer a C program (faster),
2579 # so one script is as good as another. But avoid the broken or
2580 # incompatible versions:
2581 # SysV /etc/install, /usr/sbin/install
2582 # SunOS /usr/etc/install
2583 # IRIX /sbin/install
2585 # AmigaOS /C/install, which installs bootblocks on floppy discs
2586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2589 # OS/2's system install, which has a completely different semantic
2590 # ./install, which can be erroneously created by make from ./install.sh.
2591 # Reject install programs that cannot install multiple files.
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2593 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2594 if test -z "$INSTALL"; then
2595 if ${ac_cv_path_install+:} false
; then :
2596 $as_echo_n "(cached) " >&6
2598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir
=.
2603 # Account for people who put trailing slashes in PATH elements.
2604 case $as_dir/ in #((
2605 .
/ | .
// |
/[cC
]/* | \
2606 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2607 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2610 # OSF1 and SCO ODT 3.0 have their own names for install.
2611 # Don't use installbsd from OSF since it installs stuff as root
2613 for ac_prog
in ginstall scoinst
install; do
2614 for ac_exec_ext
in '' $ac_executable_extensions; do
2615 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2616 if test $ac_prog = install &&
2617 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2618 # AIX install. It has an incompatible calling convention.
2620 elif test $ac_prog = install &&
2621 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2622 # program-specific install script used by HP pwplus--don't use.
2625 rm -rf conftest.one conftest.two conftest.dir
2626 echo one
> conftest.one
2627 echo two
> conftest.two
2629 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2630 test -s conftest.one
&& test -s conftest.two
&&
2631 test -s conftest.dir
/conftest.one
&&
2632 test -s conftest.dir
/conftest.two
2634 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2647 rm -rf conftest.one conftest.two conftest.dir
2650 if test "${ac_cv_path_install+set}" = set; then
2651 INSTALL
=$ac_cv_path_install
2653 # As a last resort, use the slow shell script. Don't cache a
2654 # value for INSTALL within a source directory, because that will
2655 # break other packages using the cache if that directory is
2656 # removed, or if the value is a relative name.
2657 INSTALL
=$ac_install_sh
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2661 $as_echo "$INSTALL" >&6; }
2663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664 # It thinks the first close brace ends the variable substitution.
2665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2669 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2672 $as_echo_n "checking whether build environment is sane... " >&6; }
2673 # Reject unsafe characters in $srcdir or the absolute working directory
2674 # name. Accept space and tab only in the latter.
2678 *[\\\"\
#\$\&\'\`$am_lf]*)
2679 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2682 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2683 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2686 # Do 'set' in a subshell so we don't clobber the current shell's
2687 # arguments. Must try -L first in case configure is actually a
2688 # symlink; some systems play weird games with the mod time of symlinks
2689 # (eg FreeBSD returns the mod time of the symlink's containing
2693 for am_try
in 1 2; do
2694 echo "timestamp, slept: $am_has_slept" > conftest.
file
2695 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2696 if test "$*" = "X"; then
2698 set X
`ls -t "$srcdir/configure" conftest.file`
2700 if test "$*" != "X $srcdir/configure conftest.file" \
2701 && test "$*" != "X conftest.file $srcdir/configure"; then
2703 # If neither matched, then we have a broken ls. This can happen
2704 # if, for instance, CONFIG_SHELL is bash and it inherits a
2705 # broken ls alias from the environment. This has actually
2706 # happened. Such a system could not be considered "sane".
2707 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2708 alias in your environment" "$LINENO" 5
2710 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2717 test "$2" = conftest.
file
2723 as_fn_error $?
"newly created file is older than distributed files!
2724 Check your system clock" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727 $as_echo "yes" >&6; }
2728 # If we didn't sleep, we still need to ensure time stamps of config.status and
2729 # generated files are strictly newer.
2731 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2738 test "$program_prefix" != NONE
&&
2739 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2740 # Use a double $ so make ignores it.
2741 test "$program_suffix" != NONE
&&
2742 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2743 # Double any \ or $.
2744 # By default was `s,x,x', remove it if useless.
2745 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2746 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2748 # Expand $ac_aux_dir to an absolute path.
2749 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2751 if test x
"${MISSING+set}" != xset
; then
2754 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2756 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2759 # Use eval to expand $SHELL
2760 if eval "$MISSING --is-lightweight"; then
2761 am_missing_run
="$MISSING "
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2765 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2768 if test x
"${install_sh+set}" != xset
; then
2771 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2773 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2777 # Installed binaries are usually stripped using 'strip' when the user
2778 # run "make install-strip". However 'strip' might not be the right
2779 # tool to use in cross-compilation environments, therefore Automake
2780 # will honor the 'STRIP' environment variable to overrule this program.
2781 if test "$cross_compiling" != no
; then
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2784 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_STRIP+:} false
; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$STRIP"; then
2791 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir
=.
2798 for ac_exec_ext
in '' $ac_executable_extensions; do
2799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 STRIP
=$ac_cv_prog_STRIP
2811 if test -n "$STRIP"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2813 $as_echo "$STRIP" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$ac_cv_prog_STRIP"; then
2823 # Extract the first word of "strip", so it can be a program name with args.
2824 set dummy strip
; ac_word
=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$ac_ct_STRIP"; then
2831 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir
=.
2838 for ac_exec_ext
in '' $ac_executable_extensions; do
2839 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_STRIP
="strip"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2851 if test -n "$ac_ct_STRIP"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2853 $as_echo "$ac_ct_STRIP" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2859 if test "x$ac_ct_STRIP" = x
; then
2862 case $cross_compiling:$ac_tool_warned in
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned
=yes ;;
2871 STRIP
="$ac_cv_prog_STRIP"
2875 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2878 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2879 if test -z "$MKDIR_P"; then
2880 if ${ac_cv_path_mkdir+:} false
; then :
2881 $as_echo_n "(cached) " >&6
2883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2884 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2887 test -z "$as_dir" && as_dir
=.
2888 for ac_prog
in mkdir gmkdir
; do
2889 for ac_exec_ext
in '' $ac_executable_extensions; do
2890 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2891 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2892 'mkdir (GNU coreutils) '* | \
2893 'mkdir (coreutils) '* | \
2894 'mkdir (fileutils) '4.1*)
2895 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2905 test -d .
/--version && rmdir .
/--version
2906 if test "${ac_cv_path_mkdir+set}" = set; then
2907 MKDIR_P
="$ac_cv_path_mkdir -p"
2909 # As a last resort, use the slow shell script. Don't cache a
2910 # value for MKDIR_P within a source directory, because that will
2911 # break other packages using the cache if that directory is
2912 # removed, or if the value is a relative name.
2913 MKDIR_P
="$ac_install_sh -d"
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2917 $as_echo "$MKDIR_P" >&6; }
2919 for ac_prog
in gawk mawk nawk
awk
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy
$ac_prog; ac_word
=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_AWK+:} false
; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$AWK"; then
2929 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir
=.
2936 for ac_exec_ext
in '' $ac_executable_extensions; do
2937 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_AWK
="$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 if test -n "$AWK"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2951 $as_echo "$AWK" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2958 test -n "$AWK" && break
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2962 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2964 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2965 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2966 $as_echo_n "(cached) " >&6
2968 cat >conftest.
make <<\_ACEOF
2971 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2973 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2974 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2976 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2978 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2982 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2984 $as_echo "yes" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 SET_MAKE
="MAKE=${MAKE-make}"
2992 rm -rf .tst
2>/dev
/null
2993 mkdir .tst
2>/dev
/null
2994 if test -d .tst
; then
2999 rmdir .tst
2>/dev
/null
3001 # Check whether --enable-silent-rules was given.
3002 if test "${enable_silent_rules+set}" = set; then :
3003 enableval
=$enable_silent_rules;
3006 case $enable_silent_rules in # (((
3007 yes) AM_DEFAULT_VERBOSITY
=0;;
3008 no
) AM_DEFAULT_VERBOSITY
=1;;
3009 *) AM_DEFAULT_VERBOSITY
=1;;
3011 am_make
=${MAKE-make}
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3013 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3014 if ${am_cv_make_support_nested_variables+:} false
; then :
3015 $as_echo_n "(cached) " >&6
3017 if $as_echo 'TRUE=$(BAR$(V))
3023 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3024 am_cv_make_support_nested_variables
=yes
3026 am_cv_make_support_nested_variables
=no
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3030 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3031 if test $am_cv_make_support_nested_variables = yes; then
3033 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3035 AM_V
=$AM_DEFAULT_VERBOSITY
3036 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3040 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3042 # is not polluted with repeated "-I."
3043 am__isrc
=' -I$(srcdir)'
3044 # test to see if srcdir already configured
3045 if test -f $srcdir/config.status
; then
3046 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3050 # test whether we have cygpath
3051 if test -z "$CYGPATH_W"; then
3052 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3053 CYGPATH_W
='cygpath -w'
3060 # Define the identity of the package.
3062 VERSION
='version-unused'
3065 # Some tools Automake needs.
3067 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3070 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3073 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3076 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3079 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3081 # For better backward compatibility. To be removed once Automake 1.9.x
3082 # dies out for good. For more background, see:
3083 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3084 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3085 mkdir_p
='$(MKDIR_P)'
3087 # We need awk for the "check" target (and possibly the TAP driver). The
3088 # system "awk" is bad on some platforms.
3089 # Always define AMTAR for backward compatibility. Yes, it's still used
3090 # in the wild :-( We should find a proper way to deprecate it ...
3094 # We'll loop over all known methods to create a tar archive until one works.
3095 _am_tools
='gnutar pax cpio none'
3097 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3104 # POSIX will say in a future version that running "rm -f" with no argument
3105 # is OK; and we want to be able to make that assumption in our Makefile
3106 # recipes. So use an aggressive probe to check that the usage we want is
3107 # actually supported "in the wild" to an acceptable degree.
3108 # See automake bug#10828.
3109 # To make any issue more visible, cause the running configure to be aborted
3110 # by default if the 'rm' program in use doesn't match our expectations; the
3111 # user can still override this though.
3112 if rm -f && rm -fr && rm -rf; then : OK
; else
3116 Your 'rm' program seems unable to run without file operands specified
3117 on the command line, even when the '-f' option is present. This is contrary
3118 to the behaviour of most rm programs out there, and not conforming with
3119 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3121 Please tell bug-automake@gnu.org about your system, including the value
3122 of your $PATH and any error possibly output before this message. This
3123 can help us improve future automake versions.
3126 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3127 echo 'Configuration will proceed anyway, since you have set the' >&2
3128 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132 Aborting the configuration process, to ensure you take notice of the issue.
3134 You can download and install GNU coreutils to get an 'rm' implementation
3135 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3137 If you want to complete the configuration process using your problematic
3138 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3139 to "yes", and re-run configure.
3142 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3150 ac_cpp
='$CPP $CPPFLAGS'
3151 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3156 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false
; then :
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC
="$CC" # Let the user override the test.
3165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir
=.
3170 for ac_exec_ext
in '' $ac_executable_extensions; do
3171 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3193 if test -z "$ac_cv_prog_CC"; then
3195 # Extract the first word of "gcc", so it can be a program name with args.
3196 set dummy gcc
; ac_word
=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$ac_ct_CC"; then
3203 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir
=.
3210 for ac_exec_ext
in '' $ac_executable_extensions; do
3211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_ac_ct_CC
="gcc"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 $as_echo "$ac_ct_CC" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3231 if test "x$ac_ct_CC" = x
; then
3234 case $cross_compiling:$ac_tool_warned in
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned
=yes ;;
3246 if test -z "$CC"; then
3247 if test -n "$ac_tool_prefix"; then
3248 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3249 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_CC+:} false
; then :
3253 $as_echo_n "(cached) " >&6
3255 if test -n "$CC"; then
3256 ac_cv_prog_CC
="$CC" # Let the user override the test.
3258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir
=.
3263 for ac_exec_ext
in '' $ac_executable_extensions; do
3264 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 if test -n "$CC"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3287 if test -z "$CC"; then
3288 # Extract the first word of "cc", so it can be a program name with args.
3289 set dummy cc
; ac_word
=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false
; then :
3293 $as_echo_n "(cached) " >&6
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC
="$CC" # Let the user override the test.
3299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir
=.
3304 for ac_exec_ext
in '' $ac_executable_extensions; do
3305 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3306 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3307 ac_prog_rejected
=yes
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 if test $ac_prog_rejected = yes; then
3319 # We found a bogon in the path, so make sure we never use it.
3320 set dummy
$ac_cv_prog_CC
3322 if test $# != 0; then
3323 # We chose a different compiler from the bogus one.
3324 # However, it has the same basename, so the bogon will be chosen
3325 # first if we set CC to just the basename; use the full file name.
3327 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3333 if test -n "$CC"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3343 if test -z "$CC"; then
3344 if test -n "$ac_tool_prefix"; then
3345 for ac_prog
in cl.exe
3347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3348 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false
; then :
3352 $as_echo_n "(cached) " >&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC
="$CC" # Let the user override the test.
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test -n "$CC"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3384 test -n "$CC" && break
3387 if test -z "$CC"; then
3389 for ac_prog
in cl.exe
3391 # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy
$ac_prog; ac_word
=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$ac_ct_CC"; then
3399 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir
=.
3406 for ac_exec_ext
in '' $ac_executable_extensions; do
3407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_ac_ct_CC
="$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3419 if test -n "$ac_ct_CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3421 $as_echo "$ac_ct_CC" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3428 test -n "$ac_ct_CC" && break
3431 if test "x$ac_ct_CC" = x
; then
3434 case $cross_compiling:$ac_tool_warned in
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438 ac_tool_warned
=yes ;;
3447 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $?
"no acceptable C compiler found in \$PATH
3450 See \`config.log' for more details" "$LINENO" 5; }
3452 # Provide some information about the compiler.
3453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3456 for ac_option
in --version -v -V -qversion; do
3457 { { ac_try
="$ac_compiler $ac_option >&5"
3459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466 if test -s conftest.err; then
3468 ... rest of stderr output deleted ...
3469 10q' conftest.err >conftest.er1
3470 cat conftest.er1 >&5
3472 rm -f conftest.er1 conftest.err
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3488 ac_clean_files_save=$ac_clean_files
3489 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3490 # Try to create an executable without -o first, disregard a.out.
3491 # It will help us diagnose broken compilers, and finding out an intuition
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3494 $as_echo_n "checking whether the C compiler works... " >&6; }
3495 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3497 # The possible output files:
3498 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3501 for ac_file in $ac_files
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3510 if { { ac_try="$ac_link_default"
3512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3513 *) ac_try_echo
=$ac_try;;
3515 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_link_default") 2>&5
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; then :
3521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3523 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3524 # so that the user can short-circuit this test for compilers unknown to
3526 for ac_file
in $ac_files ''
3528 test -f "$ac_file" ||
continue
3530 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3533 # We found the default executable, but exeext='' is most
3537 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3539 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 # We set ac_cv_exeext here because the later test for it is not
3542 # safe: cross compilers may not add the suffix if given an `-o'
3543 # argument, so we may need to know it at that point already.
3544 # Even if this section looks crufty: it has the advantage of
3551 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3556 if test -z "$ac_file"; then :
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.
$ac_ext >&5
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error
77 "C compiler cannot create executables
3565 See \`config.log' for more details" "$LINENO" 5; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568 $as_echo "yes" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3571 $as_echo_n "checking for C compiler default output file name... " >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 ac_exeext
=$ac_cv_exeext
3576 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3577 ac_clean_files
=$ac_clean_files_save
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3579 $as_echo_n "checking for suffix of executables... " >&6; }
3580 if { { ac_try
="$ac_link"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_link") 2>&5
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }; then :
3591 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3592 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3593 # work properly (i.e., refer to `conftest.exe'), while it won't with
3595 for ac_file
in conftest.exe conftest conftest.
*; do
3596 test -f "$ac_file" ||
continue
3598 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3599 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3608 See \`config.log' for more details" "$LINENO" 5; }
3610 rm -f conftest conftest
$ac_cv_exeext
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3612 $as_echo "$ac_cv_exeext" >&6; }
3614 rm -f conftest.
$ac_ext
3615 EXEEXT
=$ac_cv_exeext
3617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3623 FILE *f = fopen ("conftest.out", "w");
3624 return ferror (f) || fclose (f) != 0;
3630 ac_clean_files
="$ac_clean_files conftest.out"
3631 # Check that the compiler produces executables we can run. If not, either
3632 # the compiler is broken, or we cross compile.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3634 $as_echo_n "checking whether we are cross compiling... " >&6; }
3635 if test "$cross_compiling" != yes; then
3636 { { ac_try
="$ac_link"
3638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_link") 2>&5
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 if { ac_try='./conftest$ac_cv_exeext'
3648 { { case "(($ac_try" in
3649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3650 *) ac_try_echo
=$ac_try;;
3652 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_try") 2>&5
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; }; then
3660 if test "$cross_compiling" = maybe
; then
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $?
"cannot run C compiled programs.
3666 If you meant to cross compile, use \`--host'.
3667 See \`config.log' for more details" "$LINENO" 5; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3672 $as_echo "$cross_compiling" >&6; }
3674 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3675 ac_clean_files
=$ac_clean_files_save
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3677 $as_echo_n "checking for suffix of object files... " >&6; }
3678 if ${ac_cv_objext+:} false
; then :
3679 $as_echo_n "(cached) " >&6
3681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try
="$ac_compile"
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compile") 2>&5
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; then :
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3719 See \
`config.log' for more details" "$LINENO" 5; }
3721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3724 $as_echo "$ac_cv_objext" >&6; }
3725 OBJEXT=$ac_cv_objext
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3728 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3729 if ${ac_cv_c_compiler_gnu+:} false; then :
3730 $as_echo_n "(cached) " >&6
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3746 if ac_fn_c_try_compile "$LINENO"; then :
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3756 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3757 if test $ac_compiler_gnu = yes; then
3762 ac_test_CFLAGS=${CFLAGS+set}
3763 ac_save_CFLAGS=$CFLAGS
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3765 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3766 if ${ac_cv_prog_cc_g+:} false; then :
3767 $as_echo_n "(cached) " >&6
3769 ac_save_c_werror_flag=$ac_c_werror_flag
3770 ac_c_werror_flag=yes
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3784 if ac_fn_c_try_compile "$LINENO"; then :
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3799 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 if ac_fn_c_try_compile "$LINENO"; then :
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3836 if test "$GCC" = yes; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844 if ${ac_cv_prog_cc_c89+:} false; then :
3845 $as_echo_n "(cached) " >&6
3847 ac_cv_prog_cc_c89=no
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3855 struct buf { int x; };
3856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857 static char *e (p, i)
3863 static char *f (char * (*g) (char **, int), char **p, ...)
3868 s = g (p, va_arg (v,int));
3873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3874 function prototypes and stuff, but not '\xHH' hex character constants.
3875 These don't provoke an error unfortunately, instead are silently treated
3876 as 'x'. The following induces an error, until -std is added to get
3877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3878 array size at least. It's necessary to write '\x00'==0 to get something
3879 that's true only with -std. */
3880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3883 inside strings and character constants. */
3885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904 CC="$ac_save_CC $ac_arg"
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_prog_cc_c89=$ac_arg
3908 rm -f core conftest.err conftest.$ac_objext
3909 test "x$ac_cv_prog_cc_c89" != "xno" && break
3911 rm -f conftest.$ac_ext
3916 case "x$ac_cv_prog_cc_c89" in
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3919 $as_echo "none needed" >&6; } ;;
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3922 $as_echo "unsupported" >&6; } ;;
3924 CC="$CC $ac_cv_prog_cc_c89"
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3926 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3928 if test "x$ac_cv_prog_cc_c89" != xno; then :
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3944 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3945 if ${am_cv_prog_cc_c_o+:} false; then :
3946 $as_echo_n "(cached) " >&6
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 # Make sure it works both with $CC and with simple cc.
3960 # Following AC_PROG_CC_C_O, we do the test twice because some
3961 # compilers refuse to overwrite an existing .o file with -o,
3962 # though they will create one.
3963 am_cv_prog_cc_c_o=yes
3965 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3966 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } \
3970 && test -f conftest2.$ac_objext; then
3973 am_cv_prog_cc_c_o=no
3977 rm -f core conftest*
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3981 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3982 if test "$am_cv_prog_cc_c_o" != yes; then
3983 # Losing compiler, so override with the script.
3984 # FIXME: It is wrong to rewrite CC.
3985 # But if we don't then we get into trouble of one sort or another.
3986 # A longer-term fix would be to have automake use am__CC in this case,
3987 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3988 CC="$am_aux_dir/compile $CC"
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 # By default we simply use the C compiler to build assembly code.
3999 test "${CCAS+set}" = set || CCAS=$CC
4000 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 if test -n "$ac_tool_prefix"; then
4010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if ${ac_cv_prog_CC+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 if test -n "$CC"; then
4018 ac_cv_prog_CC="$CC" # Let the user override the test.
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 if test -n "$CC"; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4040 $as_echo "$CC" >&6; }
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 $as_echo "no" >&6; }
4048 if test -z "$ac_cv_prog_CC"; then
4050 # Extract the first word of "gcc", so it can be a program name with args.
4051 set dummy gcc; ac_word=$2
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 $as_echo_n "checking for $ac_word... " >&6; }
4054 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4055 $as_echo_n "(cached) " >&6
4057 if test -n "$ac_ct_CC"; then
4058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_ac_ct_CC="gcc"
4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4078 if test -n "$ac_ct_CC"; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4080 $as_echo "$ac_ct_CC" >&6; }
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4086 if test "x$ac_ct_CC" = x; then
4089 case $cross_compiling:$ac_tool_warned in
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4093 ac_tool_warned=yes ;;
4101 if test -z "$CC"; then
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}cc; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if ${ac_cv_prog_CC+:} false; then :
4108 $as_echo_n "(cached) " >&6
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120 ac_cv_prog_CC="${ac_tool_prefix}cc"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 if test -n "$CC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133 $as_echo "$CC" >&6; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4142 if test -z "$CC"; then
4143 # Extract the first word of "cc", so it can be a program name with args.
4144 set dummy cc; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if ${ac_cv_prog_CC+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 if test -n "$CC"; then
4151 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4162 ac_prog_rejected=yes
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 if test $ac_prog_rejected = yes; then
4174 # We found a bogon in the path, so make sure we never use it.
4175 set dummy $ac_cv_prog_CC
4177 if test $# != 0; then
4178 # We chose a different compiler from the bogus one.
4179 # However, it has the same basename, so the bogon will be chosen
4180 # first if we set CC to just the basename; use the full file name.
4182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4188 if test -n "$CC"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190 $as_echo "$CC" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4198 if test -z "$CC"; then
4199 if test -n "$ac_tool_prefix"; then
4200 for ac_prog in cl.exe
4202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4239 test -n "$CC" && break
4242 if test -z "$CC"; then
4244 for ac_prog in cl.exe
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 if test -n "$ac_ct_CC"; then
4254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_ac_ct_CC="$ac_prog"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4274 if test -n "$ac_ct_CC"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4276 $as_echo "$ac_ct_CC" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4283 test -n "$ac_ct_CC" && break
4286 if test "x$ac_ct_CC" = x; then
4289 case $cross_compiling:$ac_tool_warned in
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293 ac_tool_warned=yes ;;
4302 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4305 See \
`config.log' for more details" "$LINENO" 5; }
4307 # Provide some information about the compiler.
4308 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4311 for ac_option in --version -v -V -qversion; do
4312 { { ac_try="$ac_compiler $ac_option >&5"
4314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4315 *) ac_try_echo
=$ac_try;;
4317 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4321 if test -s conftest.err
; then
4323 ... rest of stderr output deleted ...
4324 10q' conftest.err
>conftest.er1
4325 cat conftest.er1
>&5
4327 rm -f conftest.er1 conftest.err
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4333 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4334 if ${ac_cv_c_compiler_gnu+:} false
; then :
4335 $as_echo_n "(cached) " >&6
4337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4351 if ac_fn_c_try_compile
"$LINENO"; then :
4356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4357 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4361 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4362 if test $ac_compiler_gnu = yes; then
4367 ac_test_CFLAGS
=${CFLAGS+set}
4368 ac_save_CFLAGS
=$CFLAGS
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4370 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4371 if ${ac_cv_prog_cc_g+:} false
; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_save_c_werror_flag
=$ac_c_werror_flag
4375 ac_c_werror_flag
=yes
4378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_compile
"$LINENO"; then :
4393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4404 if ac_fn_c_try_compile
"$LINENO"; then :
4407 ac_c_werror_flag
=$ac_save_c_werror_flag
4409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4420 if ac_fn_c_try_compile
"$LINENO"; then :
4423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4428 ac_c_werror_flag
=$ac_save_c_werror_flag
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4431 $as_echo "$ac_cv_prog_cc_g" >&6; }
4432 if test "$ac_test_CFLAGS" = set; then
4433 CFLAGS
=$ac_save_CFLAGS
4434 elif test $ac_cv_prog_cc_g = yes; then
4435 if test "$GCC" = yes; then
4441 if test "$GCC" = yes; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4448 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4449 if ${ac_cv_prog_cc_c89+:} false
; then :
4450 $as_echo_n "(cached) " >&6
4452 ac_cv_prog_cc_c89
=no
4454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4460 struct buf { int x; };
4461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4462 static char *e (p, i)
4468 static char *f (char * (*g) (char **, int), char **p, ...)
4473 s = g (p, va_arg (v,int));
4478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4479 function prototypes and stuff, but not '\xHH' hex character constants.
4480 These don't provoke an error unfortunately, instead are silently treated
4481 as 'x'. The following induces an error, until -std is added to get
4482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4483 array size at least. It's necessary to write '\x00'==0 to get something
4484 that's true only with -std. */
4485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4488 inside strings and character constants. */
4490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4492 int test (int i, double x);
4493 struct s1 {int (*f) (int a);};
4494 struct s2 {int (*f) (double a);};
4495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4506 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4509 CC
="$ac_save_CC $ac_arg"
4510 if ac_fn_c_try_compile
"$LINENO"; then :
4511 ac_cv_prog_cc_c89
=$ac_arg
4513 rm -f core conftest.err conftest.
$ac_objext
4514 test "x$ac_cv_prog_cc_c89" != "xno" && break
4516 rm -f conftest.
$ac_ext
4521 case "x$ac_cv_prog_cc_c89" in
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4524 $as_echo "none needed" >&6; } ;;
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4527 $as_echo "unsupported" >&6; } ;;
4529 CC
="$CC $ac_cv_prog_cc_c89"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4531 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4533 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4538 ac_cpp
='$CPP $CPPFLAGS'
4539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4544 ac_cpp
='$CPP $CPPFLAGS'
4545 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4549 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4550 if ${am_cv_prog_cc_c_o+:} false
; then :
4551 $as_echo_n "(cached) " >&6
4553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4564 # Make sure it works both with $CC and with simple cc.
4565 # Following AC_PROG_CC_C_O, we do the test twice because some
4566 # compilers refuse to overwrite an existing .o file with -o,
4567 # though they will create one.
4568 am_cv_prog_cc_c_o
=yes
4570 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4571 ($CC -c conftest.
$ac_ext -o conftest2.
$ac_objext) >&5 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } \
4575 && test -f conftest2.
$ac_objext; then
4578 am_cv_prog_cc_c_o
=no
4582 rm -f core conftest
*
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4586 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4587 if test "$am_cv_prog_cc_c_o" != yes; then
4588 # Losing compiler, so override with the script.
4589 # FIXME: It is wrong to rewrite CC.
4590 # But if we don't then we get into trouble of one sort or another.
4591 # A longer-term fix would be to have automake use am__CC in this case,
4592 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4593 CC
="$am_aux_dir/compile $CC"
4596 ac_cpp
='$CPP $CPPFLAGS'
4597 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4603 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4604 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4608 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if ${ac_cv_prog_GDC+:} false
; then :
4612 $as_echo_n "(cached) " >&6
4614 if test -n "$GDC"; then
4615 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir
=.
4622 for ac_exec_ext
in '' $ac_executable_extensions; do
4623 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 if test -n "$GDC"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4637 $as_echo "$GDC" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4645 if test -z "$ac_cv_prog_GDC"; then
4647 # Extract the first word of "gdc", so it can be a program name with args.
4648 set dummy gdc
; ac_word
=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$ac_ct_GDC"; then
4655 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
4657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir
=.
4662 for ac_exec_ext
in '' $ac_executable_extensions; do
4663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_GDC
="gdc"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
4675 if test -n "$ac_ct_GDC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4677 $as_echo "$ac_ct_GDC" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4683 if test "x$ac_ct_GDC" = x
; then
4686 case $cross_compiling:$ac_tool_warned in
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned
=yes ;;
4695 GDC
="$ac_cv_prog_GDC"
4698 if test -z "$GDC"; then
4699 if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4701 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_GDC+:} false
; then :
4705 $as_echo_n "(cached) " >&6
4707 if test -n "$GDC"; then
4708 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir
=.
4715 for ac_exec_ext
in '' $ac_executable_extensions; do
4716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_GDC
="$ac_tool_prefix}gdc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 if test -n "$GDC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4730 $as_echo "$GDC" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4739 if test -z "$GDC"; then
4740 # Extract the first word of "gdc", so it can be a program name with args.
4741 set dummy gdc
; ac_word
=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_GDC+:} false
; then :
4745 $as_echo_n "(cached) " >&6
4747 if test -n "$GDC"; then
4748 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir
=.
4756 for ac_exec_ext
in '' $ac_executable_extensions; do
4757 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4758 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4759 ac_prog_rejected
=yes
4762 ac_cv_prog_GDC
="gdc"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 if test $ac_prog_rejected = yes; then
4771 # We found a bogon in the path, so make sure we never use it.
4772 set dummy
$ac_cv_prog_GDC
4774 if test $# != 0; then
4775 # We chose a different compiler from the bogus one.
4776 # However, it has the same basename, so the bogon will be chosen
4777 # first if we set GDC to just the basename; use the full file name.
4779 ac_cv_prog_GDC
="$as_dir/$ac_word${1+' '}$@"
4785 if test -n "$GDC"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4787 $as_echo "$GDC" >&6; }
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4797 # Provide some information about the compiler.
4798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4801 { { ac_try
="$ac_compiler --version >&5"
4803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 $as_echo "$ac_try_echo"; } >&5
4808 (eval "$ac_compiler --version >&5") 2>conftest.err
4810 if test -s conftest.err; then
4812 ... rest of stderr output deleted ...
4813 10q' conftest.err >conftest.er1
4814 cat conftest.er1 >&5
4816 rm -f conftest.er1 conftest.err
4817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4818 test $ac_status = 0; }
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4827 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4828 if ${phobos_cv_abs_srcdir+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4834 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4835 if test -d "$phobos_cv_abs_srcdir"; then :
4838 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
4844 gdc_save_DFLAGS=$GDCFLAGS
4845 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4848 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4849 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4853 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4854 cat > conftest.$ac_ext <<_ACEOF
4858 extern(C) int main() {
4862 if ac_fn_d_try_compile "$LINENO"; then :
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864 $as_echo "yes" >&6; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 as_fn_error $? "can't compile D sources!" "$LINENO" 5
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 GDCFLAGS=$gdc_save_DFLAGS
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4886 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4887 # Check whether --enable-maintainer-mode was given.
4888 if test "${enable_maintainer_mode+set}" = set; then :
4889 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4891 USE_MAINTAINER_MODE=no
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4895 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4896 if test $USE_MAINTAINER_MODE = yes; then
4897 MAINTAINER_MODE_TRUE=
4898 MAINTAINER_MODE_FALSE='#'
4900 MAINTAINER_MODE_TRUE='#'
4901 MAINTAINER_MODE_FALSE=
4904 MAINT=$MAINTAINER_MODE_TRUE
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_prog_RANLIB+:} false; then :
4913 $as_echo_n "(cached) " >&6
4915 if test -n "$RANLIB"; then
4916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 RANLIB=$ac_cv_prog_RANLIB
4936 if test -n "$RANLIB"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4938 $as_echo "$RANLIB" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4946 if test -z "$ac_cv_prog_RANLIB"; then
4947 ac_ct_RANLIB=$RANLIB
4948 # Extract the first word of "ranlib", so it can be a program name with args.
4949 set dummy ranlib; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4953 $as_echo_n "(cached) " >&6
4955 if test -n "$ac_ct_RANLIB"; then
4956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965 ac_cv_prog_ac_ct_RANLIB="ranlib"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4976 if test -n "$ac_ct_RANLIB"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4978 $as_echo "$ac_ct_RANLIB" >&6; }
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4984 if test "x$ac_ct_RANLIB" = x; then
4987 case $cross_compiling:$ac_tool_warned in
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4993 RANLIB=$ac_ct_RANLIB
4996 RANLIB="$ac_cv_prog_RANLIB"
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5001 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5003 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5004 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5005 $as_echo_n "(cached) " >&6
5007 cat >conftest.make <<\_ACEOF
5010 @echo '@@@%%%=$(MAKE)=@@@%%%'
5012 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5013 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
5015 eval ac_cv_prog_make_${ac_make}_set=yes;;
5017 eval ac_cv_prog_make_${ac_make}_set=no;;
5021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5023 $as_echo "yes" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 SET_MAKE="MAKE=${MAKE-make}"
5032 # This should be inherited in the recursive make, but ensure it is defined.
5036 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
5044 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
5049 macro_version='2.2.7a'
5050 macro_revision='1.3134'
5064 ltmain="$ac_aux_dir/ltmain.sh"
5066 # Backslashify metacharacters that are still active within
5067 # double-quoted strings.
5068 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
5070 # Same as above, but do not quote variable references.
5071 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
5073 # Sed substitution to delay expansion of an escaped shell variable in a
5074 # double_quote_subst'ed string.
5075 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5077 # Sed substitution to delay expansion of an escaped single quote.
5078 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5080 # Sed substitution to avoid accidental globbing in evaled expressions
5081 no_glob_subst='s/\*/\\\*/g'
5083 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5084 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5085 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
5088 $as_echo_n "checking how to print
strings...
" >&6; }
5089 # Test print first, because it will be a builtin if present.
5090 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
5091 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
5093 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
5096 # Use this function as a fallback that always works.
5097 func_fallback_echo ()
5099 eval 'cat <<_LTECHO_EOF
5103 ECHO='func_fallback_echo'
5106 # func_echo_all arg...
5107 # Invoke $ECHO with all args, space-separated.
5114 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5115 $as_echo "printf" >&6; } ;;
5116 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5117 $as_echo "print
-r" >&6; } ;;
5118 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5119 $as_echo "cat" >&6; } ;;
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5136 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5137 if ${ac_cv_path_SED+:} false; then :
5138 $as_echo_n "(cached
) " >&6
5140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5141 for ac_i in 1 2 3 4 5 6 7; do
5142 ac_script="$ac_script$as_nl$ac_script"
5144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5145 { ac_script=; unset ac_script;}
5146 if test -z "$SED"; then
5147 ac_path_SED_found=false
5148 # Loop through the user's path and test for each of PROGNAME-LIST
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_prog in sed gsed; do
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5157 as_fn_executable_p "$ac_path_SED" || continue
5158 # Check for GNU ac_path_SED and select it if it is found.
5159 # Check for GNU $ac_path_SED
5160 case `"$ac_path_SED" --version 2>&1` in
5162 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5165 $as_echo_n 0123456789 >"conftest.
in"
5168 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5169 mv "conftest.tmp
" "conftest.
in"
5170 cp "conftest.
in" "conftest.
nl"
5171 $as_echo '' >> "conftest.
nl"
5172 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5173 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5174 as_fn_arith $ac_count + 1 && ac_count=$as_val
5175 if test $ac_count -gt ${ac_path_SED_max-0}; then
5176 # Best one so far, save it but keep looking for a better one
5177 ac_cv_path_SED="$ac_path_SED"
5178 ac_path_SED_max=$ac_count
5180 # 10*(2^10) chars as input seems more than enough
5181 test $ac_count -gt 10 && break
5183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186 $ac_path_SED_found && break 3
5191 if test -z "$ac_cv_path_SED"; then
5192 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5200 $as_echo "$ac_cv_path_SED" >&6; }
5201 SED="$ac_cv_path_SED"
5204 test -z "$SED" && SED=sed
5205 Xsed="$SED -e 1s
/^X
//"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5218 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5219 if ${ac_cv_path_GREP+:} false; then :
5220 $as_echo_n "(cached
) " >&6
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in grep ggrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233 as_fn_executable_p "$ac_path_GREP" || continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5241 $as_echo_n 0123456789 >"conftest.
in"
5244 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5245 mv "conftest.tmp
" "conftest.
in"
5246 cp "conftest.
in" "conftest.
nl"
5247 $as_echo 'GREP' >> "conftest.
nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5249 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP="$ac_path_GREP"
5254 ac_path_GREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 $ac_path_GREP_found && break 3
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5271 ac_cv_path_GREP=$GREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5281 $as_echo_n "checking
for egrep...
" >&6; }
5282 if ${ac_cv_path_EGREP+:} false; then :
5283 $as_echo_n "(cached
) " >&6
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 as_fn_executable_p "$ac_path_EGREP" || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5307 $as_echo_n 0123456789 >"conftest.
in"
5310 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5311 mv "conftest.tmp
" "conftest.
in"
5312 cp "conftest.
in" "conftest.
nl"
5313 $as_echo 'EGREP' >> "conftest.
nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5315 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5316 as_fn_arith $ac_count + 1 && ac_count=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328 $ac_path_EGREP_found && break 3
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5337 ac_cv_path_EGREP=$EGREP
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP="$ac_cv_path_EGREP"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5348 $as_echo_n "checking
for fgrep...
" >&6; }
5349 if ${ac_cv_path_FGREP+:} false; then :
5350 $as_echo_n "(cached
) " >&6
5352 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5353 then ac_cv_path_FGREP="$GREP -F"
5355 if test -z "$FGREP"; then
5356 ac_path_FGREP_found=false
5357 # Loop through the user's path and test for each of PROGNAME-LIST
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5362 test -z "$as_dir" && as_dir=.
5363 for ac_prog in fgrep; do
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5366 as_fn_executable_p "$ac_path_FGREP" || continue
5367 # Check for GNU ac_path_FGREP and select it if it is found.
5368 # Check for GNU $ac_path_FGREP
5369 case `"$ac_path_FGREP" --version 2>&1` in
5371 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5374 $as_echo_n 0123456789 >"conftest.
in"
5377 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5378 mv "conftest.tmp
" "conftest.
in"
5379 cp "conftest.
in" "conftest.
nl"
5380 $as_echo 'FGREP' >> "conftest.
nl"
5381 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5382 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5383 as_fn_arith $ac_count + 1 && ac_count=$as_val
5384 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5385 # Best one so far, save it but keep looking for a better one
5386 ac_cv_path_FGREP="$ac_path_FGREP"
5387 ac_path_FGREP_max=$ac_count
5389 # 10*(2^10) chars as input seems more than enough
5390 test $ac_count -gt 10 && break
5392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5395 $ac_path_FGREP_found && break 3
5400 if test -z "$ac_cv_path_FGREP"; then
5401 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5404 ac_cv_path_FGREP=$FGREP
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5410 $as_echo "$ac_cv_path_FGREP" >&6; }
5411 FGREP="$ac_cv_path_FGREP"
5414 test -z "$GREP" && GREP=grep
5434 # Check whether --with-gnu-ld was given.
5435 if test "${with_gnu_ld+set}" = set; then :
5436 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5442 if test "$GCC" = yes; then
5443 # Check if gcc -print-prog-name=ld gives a path.
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5445 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5448 # gcc leaves a trailing carriage return which upsets mingw
5449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5454 # Accept absolute paths.
5456 re_direlt='/[^/][^/]*/\.\./'
5457 # Canonicalize the pathname of ld
5458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5460 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5462 test -z "$LD" && LD="$ac_prog"
5465 # If it fails, then pretend we aren't using GCC.
5469 # If it is relative, then search for the first ld in PATH.
5473 elif test "$with_gnu_ld" = yes; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5475 $as_echo_n "checking
for GNU ld...
" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5478 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5480 if ${lt_cv_path_LD+:} false; then :
5481 $as_echo_n "(cached
) " >&6
5483 if test -z "$LD"; then
5484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5485 for ac_dir in $PATH; do
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5489 lt_cv_path_LD="$ac_dir/$ac_prog"
5490 # Check to see if the program is GNU ld. I'd rather use --version,
5491 # but apparently some variants of GNU ld only accept -v.
5492 # Break only if it was the GNU/non-GNU ld that we prefer.
5493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5494 *GNU* | *'with BFD'*)
5495 test "$with_gnu_ld" != no && break
5498 test "$with_gnu_ld" != yes && break
5505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5510 if test -n "$LD"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5512 $as_echo "$LD" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5515 $as_echo "no
" >&6; }
5517 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5519 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5520 if ${lt_cv_prog_gnu_ld+:} false; then :
5521 $as_echo_n "(cached
) " >&6
5523 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5524 case `$LD -v 2>&1 </dev/null` in
5525 *GNU* | *'with BFD'*)
5526 lt_cv_prog_gnu_ld=yes
5529 lt_cv_prog_gnu_ld=no
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5534 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5535 with_gnu_ld=$lt_cv_prog_gnu_ld
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5546 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5547 if ${lt_cv_path_NM+:} false; then :
5548 $as_echo_n "(cached
) " >&6
5550 if test -n "$NM"; then
5551 # Let the user override the test.
5554 lt_nm_to_check="${ac_tool_prefix}nm
"
5555 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5556 lt_nm_to_check="$lt_nm_to_check nm
"
5558 for lt_tmp_nm in $lt_nm_to_check; do
5559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5560 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5562 test -z "$ac_dir" && ac_dir=.
5563 tmp_nm="$ac_dir/$lt_tmp_nm"
5564 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5565 # Check to see if the nm accepts a BSD-compat flag.
5566 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5567 # nm: unknown option "B
" ignored
5568 # Tru64's nm complains that /dev/null is an invalid object file
5569 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5570 */dev/null* | *'Invalid file or object type'*)
5571 lt_cv_path_NM="$tmp_nm -B"
5575 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5577 lt_cv_path_NM="$tmp_nm -p"
5581 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5582 continue # so that we can try to find one that supports BSD flags
5591 : ${lt_cv_path_NM=no}
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5595 $as_echo "$lt_cv_path_NM" >&6; }
5596 if test "$lt_cv_path_NM" != "no
"; then
5599 # Didn't find any BSD compatible name lister, look for dumpbin.
5600 if test -n "$DUMPBIN"; then :
5601 # Let the user override the test.
5603 if test -n "$ac_tool_prefix"; then
5604 for ac_prog in dumpbin "link
-dump"
5606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5609 $as_echo_n "checking
for $ac_word...
" >&6; }
5610 if ${ac_cv_prog_DUMPBIN+:} false; then :
5611 $as_echo_n "(cached
) " >&6
5613 if test -n "$DUMPBIN"; then
5614 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5633 DUMPBIN=$ac_cv_prog_DUMPBIN
5634 if test -n "$DUMPBIN"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5636 $as_echo "$DUMPBIN" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5639 $as_echo "no
" >&6; }
5643 test -n "$DUMPBIN" && break
5646 if test -z "$DUMPBIN"; then
5647 ac_ct_DUMPBIN=$DUMPBIN
5648 for ac_prog in dumpbin "link
-dump"
5650 # Extract the first word of "$ac_prog", so it can be a program name with args.
5651 set dummy $ac_prog; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5653 $as_echo_n "checking
for $ac_word...
" >&6; }
5654 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5655 $as_echo_n "(cached
) " >&6
5657 if test -n "$ac_ct_DUMPBIN"; then
5658 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5677 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5678 if test -n "$ac_ct_DUMPBIN"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5680 $as_echo "$ac_ct_DUMPBIN" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5683 $as_echo "no
" >&6; }
5687 test -n "$ac_ct_DUMPBIN" && break
5690 if test "x
$ac_ct_DUMPBIN" = x; then
5693 case $cross_compiling:$ac_tool_warned in
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5696 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5697 ac_tool_warned=yes ;;
5699 DUMPBIN=$ac_ct_DUMPBIN
5703 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5705 DUMPBIN="$DUMPBIN -symbols"
5713 if test "$DUMPBIN" != ":"; then
5717 test -z "$NM" && NM=nm
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5725 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5726 if ${lt_cv_nm_interface+:} false; then :
5727 $as_echo_n "(cached
) " >&6
5729 lt_cv_nm_interface="BSD nm
"
5730 echo "int some_variable
= 0;" > conftest.$ac_ext
5731 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5732 (eval "$ac_compile" 2>conftest.err)
5733 cat conftest.err >&5
5734 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5735 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5736 cat conftest.err >&5
5737 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5738 cat conftest.out >&5
5739 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5740 lt_cv_nm_interface="MS dumpbin
"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5745 $as_echo "$lt_cv_nm_interface" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5748 $as_echo_n "checking whether
ln -s works...
" >&6; }
5750 if test "$LN_S" = "ln -s"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5752 $as_echo "yes" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5755 $as_echo "no
, using
$LN_S" >&6; }
5758 # find the maximum length of command line arguments
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5760 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5761 if ${lt_cv_sys_max_cmd_len+:} false; then :
5762 $as_echo_n "(cached
) " >&6
5769 # On DJGPP, this test can blow up pretty badly due to problems in libc
5770 # (any single argument exceeding 2000 bytes causes a buffer overrun
5771 # during glob expansion). Even if it were fixed, the result of this
5772 # check would be larger than it should be.
5773 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5777 # Under GNU Hurd, this test is not required because there is
5778 # no limit to the length of command line arguments.
5779 # Libtool will interpret -1 as no limit whatsoever
5780 lt_cv_sys_max_cmd_len=-1;
5783 cygwin* | mingw* | cegcc*)
5784 # On Win9x/ME, this test blows up -- it succeeds, but takes
5785 # about 5 minutes as the teststring grows exponentially.
5786 # Worse, since 9x/ME are not pre-emptively multitasking,
5787 # you end up with a "frozen
" computer, even though with patience
5788 # the test eventually succeeds (with a max line length of 256k).
5789 # Instead, let's just punt: use the minimum linelength reported by
5790 # all of the supported platforms: 8192 (on NT/2K/XP).
5791 lt_cv_sys_max_cmd_len=8192;
5795 # On MiNT this can take a long time and run out of memory.
5796 lt_cv_sys_max_cmd_len=8192;
5800 # On AmigaOS with pdksh, this test takes hours, literally.
5801 # So we just punt and use a minimum line length of 8192.
5802 lt_cv_sys_max_cmd_len=8192;
5805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5806 # This has been around since 386BSD, at least. Likely further.
5807 if test -x /sbin/sysctl; then
5808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5809 elif test -x /usr/sbin/sysctl; then
5810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5814 # And add a safety zone
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5821 lt_cv_sys_max_cmd_len=196608
5825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5827 # nice to cause kernel panics so lets avoid the loop below.
5828 # First set a reasonable default.
5829 lt_cv_sys_max_cmd_len=16384
5831 if test -x /sbin/sysconfig; then
5832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5838 lt_cv_sys_max_cmd_len=102400
5840 sysv5* | sco5v6* | sysv4.2uw2*)
5841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5842 if test -n "$kargmax"; then
5843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5845 lt_cv_sys_max_cmd_len=32768
5849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5850 if test -n "$lt_cv_sys_max_cmd_len"; then
5851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5854 # Make teststring a little bigger before we do anything with it.
5855 # a 1K string should be a reasonable start.
5856 for i in 1 2 3 4 5 6 7 8 ; do
5857 teststring=$teststring$teststring
5859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5860 # If test is not a shell built-in, we'll probably end up computing a
5861 # maximum length that is only half of the actual maximum length, but
5863 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5864 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5865 test $i != 17 # 1/2 MB should be enough
5868 teststring=$teststring$teststring
5870 # Only check the string length outside the loop.
5871 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5873 # Add a significant safety factor because C++ compilers can tack on
5874 # massive amounts of additional arguments before passing them to the
5875 # linker. It appears as though 1/2 is a usable value.
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5883 if test -n $lt_cv_sys_max_cmd_len ; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5885 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5888 $as_echo "none
" >&6; }
5890 max_cmd_len=$lt_cv_sys_max_cmd_len
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5902 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5903 # Try some XSI features
5906 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5908 && eval 'test $(( 1 + 1 )) -eq 2 \
5909 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5912 $as_echo "$xsi_shell" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5916 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5918 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5920 && lt_shell_append
=yes
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5922 $as_echo "$lt_shell_append" >&6; }
5925 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5935 # test EBCDIC or ASCII
5936 case `echo X|tr X '\101'` in
5937 A
) # ASCII based system
5938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5939 lt_SP2NL
='tr \040 \012'
5940 lt_NL2SP
='tr \015\012 \040\040'
5942 *) # EBCDIC based system
5943 lt_SP2NL
='tr \100 \n'
5944 lt_NL2SP
='tr \r\n \100\100'
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5957 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5958 if ${lt_cv_ld_reload_flag+:} false
; then :
5959 $as_echo_n "(cached) " >&6
5961 lt_cv_ld_reload_flag
='-r'
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5964 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5965 reload_flag
=$lt_cv_ld_reload_flag
5966 case $reload_flag in
5968 *) reload_flag
=" $reload_flag" ;;
5970 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5973 if test "$GCC" = yes; then
5974 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5976 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5989 if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5991 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5995 $as_echo_n "(cached) " >&6
5997 if test -n "$OBJDUMP"; then
5998 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir
=.
6005 for ac_exec_ext
in '' $ac_executable_extensions; do
6006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 OBJDUMP
=$ac_cv_prog_OBJDUMP
6018 if test -n "$OBJDUMP"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6020 $as_echo "$OBJDUMP" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6028 if test -z "$ac_cv_prog_OBJDUMP"; then
6029 ac_ct_OBJDUMP
=$OBJDUMP
6030 # Extract the first word of "objdump", so it can be a program name with args.
6031 set dummy objdump
; ac_word
=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6035 $as_echo_n "(cached) " >&6
6037 if test -n "$ac_ct_OBJDUMP"; then
6038 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir
=.
6045 for ac_exec_ext
in '' $ac_executable_extensions; do
6046 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6047 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6058 if test -n "$ac_ct_OBJDUMP"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6060 $as_echo "$ac_ct_OBJDUMP" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6066 if test "x$ac_ct_OBJDUMP" = x
; then
6069 case $cross_compiling:$ac_tool_warned in
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned
=yes ;;
6075 OBJDUMP
=$ac_ct_OBJDUMP
6078 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6081 test -z "$OBJDUMP" && OBJDUMP
=objdump
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6092 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6093 if ${lt_cv_deplibs_check_method+:} false
; then :
6094 $as_echo_n "(cached) " >&6
6096 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6097 lt_cv_file_magic_test_file
=
6098 lt_cv_deplibs_check_method
='unknown'
6099 # Need to set the preceding variable on all platforms that support
6100 # interlibrary dependencies.
6101 # 'none' -- dependencies not supported.
6102 # `unknown' -- same as none, but documents that we really don't know.
6103 # 'pass_all' -- all dependencies passed with no checks.
6104 # 'test_compile' -- check by making test program.
6105 # 'file_magic [[regex]]' -- check by looking for files in library path
6106 # which responds to the $file_magic_cmd with a given extended regex.
6107 # If you have `file' or equivalent on your system and you're not sure
6108 # whether `pass_all' will *always* work, you probably want this one.
6112 lt_cv_deplibs_check_method
=pass_all
6116 lt_cv_deplibs_check_method
=pass_all
6120 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6121 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6122 lt_cv_file_magic_test_file
=/shlib
/libc.so
6126 # func_win32_libid is a shell function defined in ltmain.sh
6127 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6128 lt_cv_file_magic_cmd
='func_win32_libid'
6132 # Base MSYS/MinGW do not provide the 'file' command needed by
6133 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6134 # unless we find 'file', for example because we are cross-compiling.
6135 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6136 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6137 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6138 lt_cv_file_magic_cmd
='func_win32_libid'
6140 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6141 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6146 # use the weaker test based on 'objdump'. See mingw*.
6147 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6148 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6151 darwin
* | rhapsody
*)
6152 lt_cv_deplibs_check_method
=pass_all
6155 freebsd
* | dragonfly
*)
6156 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6159 # Not sure whether the presence of OpenBSD here was a mistake.
6160 # Let's accept both of them until this is cleared up.
6161 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6162 lt_cv_file_magic_cmd
=/usr
/bin
/file
6163 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6167 lt_cv_deplibs_check_method
=pass_all
6172 lt_cv_deplibs_check_method
=pass_all
6176 lt_cv_deplibs_check_method
=pass_all
6179 hpux10.20
* | hpux11
*)
6180 lt_cv_file_magic_cmd
=/usr
/bin
/file
6183 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6184 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6187 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]'
6188 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6191 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6192 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6198 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6199 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6202 irix5
* | irix6
* | nonstopux
*)
6204 *-32|
*"-32 ") libmagic
=32-bit;;
6205 *-n32|
*"-n32 ") libmagic
=N32
;;
6206 *-64|
*"-64 ") libmagic
=64-bit;;
6207 *) libmagic
=never-match
;;
6209 lt_cv_deplibs_check_method
=pass_all
6212 # This must be Linux ELF.
6213 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6214 lt_cv_deplibs_check_method
=pass_all
6218 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6219 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6221 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6226 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6227 lt_cv_file_magic_cmd
=/usr
/bin
/file
6228 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6232 lt_cv_deplibs_check_method
=pass_all
6236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6237 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6239 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6243 osf3
* | osf4
* | osf5
*)
6244 lt_cv_deplibs_check_method
=pass_all
6248 lt_cv_deplibs_check_method
=pass_all
6252 lt_cv_deplibs_check_method
=pass_all
6255 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6256 lt_cv_deplibs_check_method
=pass_all
6260 case $host_vendor in
6262 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]'
6263 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6266 lt_cv_deplibs_check_method
=pass_all
6269 lt_cv_file_magic_cmd
='/bin/file'
6270 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6273 lt_cv_file_magic_cmd
='/bin/file'
6274 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6275 lt_cv_file_magic_test_file
=/lib
/libc.so
6278 lt_cv_deplibs_check_method
=pass_all
6281 lt_cv_deplibs_check_method
=pass_all
6287 lt_cv_deplibs_check_method
=pass_all
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6293 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6294 file_magic_cmd
=$lt_cv_file_magic_cmd
6295 deplibs_check_method
=$lt_cv_deplibs_check_method
6296 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6309 if test -n "$ac_tool_prefix"; then
6310 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6311 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_prog_AR+:} false
; then :
6315 $as_echo_n "(cached) " >&6
6317 if test -n "$AR"; then
6318 ac_cv_prog_AR
="$AR" # Let the user override the test.
6320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir
=.
6325 for ac_exec_ext
in '' $ac_executable_extensions; do
6326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 if test -n "$AR"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6340 $as_echo "$AR" >&6; }
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6348 if test -z "$ac_cv_prog_AR"; then
6350 # Extract the first word of "ar", so it can be a program name with args.
6351 set dummy
ar; ac_word
=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$ac_ct_AR"; then
6358 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir
=.
6365 for ac_exec_ext
in '' $ac_executable_extensions; do
6366 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_ac_ct_AR
="ar"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6378 if test -n "$ac_ct_AR"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6380 $as_echo "$ac_ct_AR" >&6; }
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6386 if test "x$ac_ct_AR" = x
; then
6389 case $cross_compiling:$ac_tool_warned in
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned
=yes ;;
6401 test -z "$AR" && AR
=ar
6402 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6416 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_STRIP+:} false
; then :
6420 $as_echo_n "(cached) " >&6
6422 if test -n "$STRIP"; then
6423 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir
=.
6430 for ac_exec_ext
in '' $ac_executable_extensions; do
6431 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 STRIP
=$ac_cv_prog_STRIP
6443 if test -n "$STRIP"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6445 $as_echo "$STRIP" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6453 if test -z "$ac_cv_prog_STRIP"; then
6455 # Extract the first word of "strip", so it can be a program name with args.
6456 set dummy strip
; ac_word
=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6460 $as_echo_n "(cached) " >&6
6462 if test -n "$ac_ct_STRIP"; then
6463 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir
=.
6470 for ac_exec_ext
in '' $ac_executable_extensions; do
6471 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_ac_ct_STRIP
="strip"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6483 if test -n "$ac_ct_STRIP"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6485 $as_echo "$ac_ct_STRIP" >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6491 if test "x$ac_ct_STRIP" = x
; then
6494 case $cross_compiling:$ac_tool_warned in
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned
=yes ;;
6503 STRIP
="$ac_cv_prog_STRIP"
6506 test -z "$STRIP" && STRIP
=:
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6515 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_RANLIB+:} false
; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$RANLIB"; then
6522 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir
=.
6529 for ac_exec_ext
in '' $ac_executable_extensions; do
6530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 RANLIB
=$ac_cv_prog_RANLIB
6542 if test -n "$RANLIB"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6544 $as_echo "$RANLIB" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6552 if test -z "$ac_cv_prog_RANLIB"; then
6553 ac_ct_RANLIB
=$RANLIB
6554 # Extract the first word of "ranlib", so it can be a program name with args.
6555 set dummy ranlib
; ac_word
=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6559 $as_echo_n "(cached) " >&6
6561 if test -n "$ac_ct_RANLIB"; then
6562 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir
=.
6569 for ac_exec_ext
in '' $ac_executable_extensions; do
6570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6582 if test -n "$ac_ct_RANLIB"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6584 $as_echo "$ac_ct_RANLIB" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6590 if test "x$ac_ct_RANLIB" = x
; then
6593 case $cross_compiling:$ac_tool_warned in
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned
=yes ;;
6599 RANLIB
=$ac_ct_RANLIB
6602 RANLIB
="$ac_cv_prog_RANLIB"
6605 test -z "$RANLIB" && RANLIB
=:
6612 # Determine commands to create old-style static archives.
6613 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6614 old_postinstall_cmds
='chmod 644 $oldlib'
6615 old_postuninstall_cmds
=
6617 if test -n "$RANLIB"; then
6620 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6623 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6626 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6631 lock_old_archive_extraction
=yes ;;
6633 lock_old_archive_extraction
=no
;;
6674 # If no C compiler was specified, use CC.
6677 # If no C compiler flags were specified, use CFLAGS.
6678 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6680 # Allow CC to be a program name with arguments.
6684 # Check for command to grab the raw symbol name followed by C symbol from nm.
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6686 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6687 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6688 $as_echo_n "(cached) " >&6
6691 # These are sane defaults that work on at least a few old systems.
6692 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6694 # Character class describing NM global symbol codes.
6695 symcode
='[BCDEGRST]'
6697 # Regexp to match symbols that can be accessed directly from C.
6698 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6700 # Define system-specific variables.
6705 cygwin
* | mingw
* | pw32
* | cegcc
*)
6706 symcode
='[ABCDGISTW]'
6709 if test "$host_cpu" = ia64
; then
6710 symcode
='[ABCDEGRST]'
6714 symcode
='[BCDEGRST]'
6717 symcode
='[BCDEGQRST]'
6728 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6736 # If we're using GNU nm, then use its standard symbol codes.
6737 case `$NM -V 2>&1` in
6738 *GNU
* |
*'with BFD'*)
6739 symcode
='[ABCDGIRSTW]' ;;
6742 # Transform an extracted symbol line into a proper C declaration.
6743 # Some systems (esp. on ia64) link data and code symbols differently,
6744 # so use this general approach.
6745 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6747 # Transform an extracted symbol line into symbol name and symbol address
6748 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6749 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'"
6751 # Handle CRLF in mingw tool chain
6755 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6759 # Try without a prefix underscore, then with it.
6760 for ac_symprfx
in "" "_"; do
6762 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6763 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6765 # Write the raw and C identifiers.
6766 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6767 # Fake it for dumpbin and say T for any non-static function
6768 # and D for any global variable.
6769 # Also find C++ and __fastcall symbols from MSVC++,
6770 # which start with @ or ?.
6771 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6772 " {last_section=section; section=\$ 3};"\
6773 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6774 " \$ 0!~/External *\|/{next};"\
6775 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6776 " {if(hide[section]) next};"\
6777 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6778 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6779 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6780 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6781 " ' prfx=^$ac_symprfx"
6783 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6786 # Check to see that the pipe works correctly.
6790 cat > conftest.
$ac_ext <<_LT_EOF
6795 void nm_test_func(void);
6796 void nm_test_func(void){}
6800 int main(){nm_test_var='a';nm_test_func();return(0);}
6803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6804 (eval $ac_compile) 2>&5
6806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807 test $ac_status = 0; }; then
6808 # Now try to grab the symbols.
6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6811 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814 test $ac_status = 0; } && test -s "$nlist"; then
6815 # Try sorting and uniquifying the output.
6816 if sort "$nlist" |
uniq > "$nlist"T
; then
6817 mv -f "$nlist"T
"$nlist"
6822 # Make sure that we snagged all the symbols we need.
6823 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6824 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6825 cat <<_LT_EOF > conftest.$ac_ext
6831 # Now generate the symbol file.
6832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6834 cat <<_LT_EOF >> conftest.$ac_ext
6836 /* The mapping between symbol names and symbols. */
6841 lt__PROGRAM__LTX_preloaded_symbols[] =
6843 { "@PROGRAM@", (void *) 0 },
6845 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6846 cat <<\_LT_EOF
>> conftest.
$ac_ext
6850 /* This works around a problem
in FreeBSD linker
*/
6851 #ifdef FREEBSD_WORKAROUND
6852 static const void
*lt_preloaded_setup
() {
6853 return lt__PROGRAM__LTX_preloaded_symbols
;
6861 # Now try linking the two files.
6862 mv conftest.
$ac_objext conftstm.
$ac_objext
6863 lt_save_LIBS
="$LIBS"
6864 lt_save_CFLAGS
="$CFLAGS"
6865 LIBS
="conftstm.$ac_objext"
6866 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6868 (eval $ac_link) 2>&5
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6874 LIBS
="$lt_save_LIBS"
6875 CFLAGS
="$lt_save_CFLAGS"
6877 echo "cannot find nm_test_func in $nlist" >&5
6880 echo "cannot find nm_test_var in $nlist" >&5
6883 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6886 echo "$progname: failed program was:" >&5
6887 cat conftest.
$ac_ext >&5
6889 rm -rf conftest
* conftst
*
6891 # Do not use the global_symbol_pipe unless it works.
6892 if test "$pipe_works" = yes; then
6895 lt_cv_sys_global_symbol_pipe
=
6901 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6902 lt_cv_sys_global_symbol_to_cdecl
=
6904 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6906 $as_echo "failed" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6909 $as_echo "ok" >&6; }
6934 # Check whether --enable-libtool-lock was given.
6935 if test "${enable_libtool_lock+set}" = set; then :
6936 enableval
=$enable_libtool_lock;
6939 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6941 # Some flags need to be propagated to the compiler or linker for good
6945 # Find out which ABI we are using.
6946 echo 'int i;' > conftest.
$ac_ext
6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6948 (eval $ac_compile) 2>&5
6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; }; then
6952 case `/usr/bin/file conftest.$ac_objext` in
6964 # Find out which ABI we are using.
6965 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6967 (eval $ac_compile) 2>&5
6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970 test $ac_status = 0; }; then
6971 if test "$lt_cv_prog_gnu_ld" = yes; then
6972 case `/usr/bin/file conftest.$ac_objext` in
6974 LD
="${LD-ld} -melf32bsmip"
6977 LD
="${LD-ld} -melf32bmipn32"
6980 LD
="${LD-ld} -melf64bmip"
6984 case `/usr/bin/file conftest.$ac_objext` in
7000 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
7001 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7002 # Find out which ABI we are using.
7003 echo 'int i;' > conftest.
$ac_ext
7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005 (eval $ac_compile) 2>&5
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }; then
7009 case `/usr/bin/file conftest.o` in
7012 x86_64-
*kfreebsd
*-gnu)
7013 LD
="${LD-ld} -m elf_i386_fbsd"
7016 case `/usr/bin/file conftest.o` in
7018 LD
="${LD-ld} -m elf32_x86_64"
7021 LD
="${LD-ld} -m elf_i386"
7025 powerpc64le-
*linux
*)
7026 LD
="${LD-ld} -m elf32lppclinux"
7029 LD
="${LD-ld} -m elf32ppclinux"
7032 LD
="${LD-ld} -m elf_s390"
7035 LD
="${LD-ld} -m elf32_sparc"
7041 x86_64-
*kfreebsd
*-gnu)
7042 LD
="${LD-ld} -m elf_x86_64_fbsd"
7045 LD
="${LD-ld} -m elf_x86_64"
7048 LD
="${LD-ld} -m elf64lppc"
7051 LD
="${LD-ld} -m elf64ppc"
7053 s390
*-*linux
*|s390
*-*tpf
*)
7054 LD
="${LD-ld} -m elf64_s390"
7057 LD
="${LD-ld} -m elf64_sparc"
7067 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7068 SAVE_CFLAGS
="$CFLAGS"
7069 CFLAGS
="$CFLAGS -belf"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7071 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7072 if ${lt_cv_cc_needs_belf+:} false
; then :
7073 $as_echo_n "(cached) " >&6
7076 ac_cpp
='$CPP $CPPFLAGS'
7077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7092 if ac_fn_c_try_link
"$LINENO"; then :
7093 lt_cv_cc_needs_belf
=yes
7095 lt_cv_cc_needs_belf
=no
7097 rm -f core conftest.err conftest.
$ac_objext \
7098 conftest
$ac_exeext conftest.
$ac_ext
7100 ac_cpp
='$CPP $CPPFLAGS'
7101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7107 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7108 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7109 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7110 CFLAGS
="$SAVE_CFLAGS"
7114 # Find out which ABI we are using.
7115 echo 'int i;' > conftest.
$ac_ext
7116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7117 (eval $ac_compile) 2>&5
7119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7120 test $ac_status = 0; }; then
7121 case `/usr/bin/file conftest.o` in
7123 case $lt_cv_prog_gnu_ld in
7124 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7126 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7138 need_locks
="$enable_libtool_lock"
7142 rhapsody
* | darwin
*)
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7145 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7149 $as_echo_n "(cached) " >&6
7151 if test -n "$DSYMUTIL"; then
7152 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir
=.
7159 for ac_exec_ext
in '' $ac_executable_extensions; do
7160 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7172 if test -n "$DSYMUTIL"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7174 $as_echo "$DSYMUTIL" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7182 if test -z "$ac_cv_prog_DSYMUTIL"; then
7183 ac_ct_DSYMUTIL
=$DSYMUTIL
7184 # Extract the first word of "dsymutil", so it can be a program name with args.
7185 set dummy dsymutil
; ac_word
=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$ac_ct_DSYMUTIL"; then
7192 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir
=.
7199 for ac_exec_ext
in '' $ac_executable_extensions; do
7200 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7212 if test -n "$ac_ct_DSYMUTIL"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7214 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7220 if test "x$ac_ct_DSYMUTIL" = x
; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned
=yes ;;
7229 DSYMUTIL
=$ac_ct_DSYMUTIL
7232 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7237 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_NMEDIT+:} false
; then :
7241 $as_echo_n "(cached) " >&6
7243 if test -n "$NMEDIT"; then
7244 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir
=.
7251 for ac_exec_ext
in '' $ac_executable_extensions; do
7252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 NMEDIT
=$ac_cv_prog_NMEDIT
7264 if test -n "$NMEDIT"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7266 $as_echo "$NMEDIT" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7274 if test -z "$ac_cv_prog_NMEDIT"; then
7275 ac_ct_NMEDIT
=$NMEDIT
7276 # Extract the first word of "nmedit", so it can be a program name with args.
7277 set dummy nmedit
; ac_word
=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7281 $as_echo_n "(cached) " >&6
7283 if test -n "$ac_ct_NMEDIT"; then
7284 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir
=.
7291 for ac_exec_ext
in '' $ac_executable_extensions; do
7292 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7304 if test -n "$ac_ct_NMEDIT"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7306 $as_echo "$ac_ct_NMEDIT" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 if test "x$ac_ct_NMEDIT" = x
; then
7315 case $cross_compiling:$ac_tool_warned in
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned
=yes ;;
7321 NMEDIT
=$ac_ct_NMEDIT
7324 NMEDIT
="$ac_cv_prog_NMEDIT"
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7329 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_LIPO+:} false
; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$LIPO"; then
7336 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir
=.
7343 for ac_exec_ext
in '' $ac_executable_extensions; do
7344 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 LIPO
=$ac_cv_prog_LIPO
7356 if test -n "$LIPO"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7358 $as_echo "$LIPO" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test -z "$ac_cv_prog_LIPO"; then
7368 # Extract the first word of "lipo", so it can be a program name with args.
7369 set dummy lipo
; ac_word
=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$ac_ct_LIPO"; then
7376 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir
=.
7383 for ac_exec_ext
in '' $ac_executable_extensions; do
7384 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_LIPO
="lipo"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7396 if test -n "$ac_ct_LIPO"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7398 $as_echo "$ac_ct_LIPO" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7404 if test "x$ac_ct_LIPO" = x
; then
7407 case $cross_compiling:$ac_tool_warned in
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned
=yes ;;
7416 LIPO
="$ac_cv_prog_LIPO"
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7421 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_OTOOL+:} false
; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$OTOOL"; then
7428 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir
=.
7435 for ac_exec_ext
in '' $ac_executable_extensions; do
7436 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 OTOOL
=$ac_cv_prog_OTOOL
7448 if test -n "$OTOOL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7450 $as_echo "$OTOOL" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7458 if test -z "$ac_cv_prog_OTOOL"; then
7460 # Extract the first word of "otool", so it can be a program name with args.
7461 set dummy otool
; ac_word
=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$ac_ct_OTOOL"; then
7468 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir
=.
7475 for ac_exec_ext
in '' $ac_executable_extensions; do
7476 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_OTOOL
="otool"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7488 if test -n "$ac_ct_OTOOL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7490 $as_echo "$ac_ct_OTOOL" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7496 if test "x$ac_ct_OTOOL" = x
; then
7499 case $cross_compiling:$ac_tool_warned in
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned
=yes ;;
7508 OTOOL
="$ac_cv_prog_OTOOL"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7513 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_OTOOL64+:} false
; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$OTOOL64"; then
7520 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir
=.
7527 for ac_exec_ext
in '' $ac_executable_extensions; do
7528 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 OTOOL64
=$ac_cv_prog_OTOOL64
7540 if test -n "$OTOOL64"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7542 $as_echo "$OTOOL64" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_OTOOL64"; then
7551 ac_ct_OTOOL64
=$OTOOL64
7552 # Extract the first word of "otool64", so it can be a program name with args.
7553 set dummy otool64
; ac_word
=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$ac_ct_OTOOL64"; then
7560 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir
=.
7567 for ac_exec_ext
in '' $ac_executable_extensions; do
7568 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7580 if test -n "$ac_ct_OTOOL64"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7582 $as_echo "$ac_ct_OTOOL64" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_OTOOL64" = x
; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned
=yes ;;
7597 OTOOL64
=$ac_ct_OTOOL64
7600 OTOOL64
="$ac_cv_prog_OTOOL64"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7630 $as_echo_n "checking for -single_module linker flag... " >&6; }
7631 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7632 $as_echo_n "(cached) " >&6
7634 lt_cv_apple_cc_single_mod
=no
7635 if test -z "${LT_MULTI_MODULE}"; then
7636 # By default we will add the -single_module flag. You can override
7637 # by either setting the environment variable LT_MULTI_MODULE
7638 # non-empty at configure time, or by adding -multi_module to the
7640 rm -rf libconftest.dylib
*
7641 echo "int foo(void){return 1;}" > conftest.c
7642 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7643 -dynamiclib -Wl,-single_module conftest.c" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7647 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7648 lt_cv_apple_cc_single_mod
=yes
7650 cat conftest.err
>&5
7652 rm -rf libconftest.dylib
*
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7657 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7659 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7660 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7661 $as_echo_n "(cached) " >&6
7663 lt_cv_ld_exported_symbols_list
=no
7664 save_LDFLAGS
=$LDFLAGS
7665 echo "_main" > conftest.sym
7666 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7678 if ac_fn_c_try_link
"$LINENO"; then :
7679 lt_cv_ld_exported_symbols_list
=yes
7681 lt_cv_ld_exported_symbols_list
=no
7683 rm -f core conftest.err conftest.
$ac_objext \
7684 conftest
$ac_exeext conftest.
$ac_ext
7685 LDFLAGS
="$save_LDFLAGS"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7689 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7691 $as_echo_n "checking for -force_load linker flag... " >&6; }
7692 if ${lt_cv_ld_force_load+:} false
; then :
7693 $as_echo_n "(cached) " >&6
7695 lt_cv_ld_force_load
=no
7696 cat > conftest.c
<< _LT_EOF
7697 int forced_loaded() { return 2;}
7699 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7700 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7701 echo "$AR cru libconftest.a conftest.o" >&5
7702 $AR cru libconftest.a conftest.o
2>&5
7703 cat > conftest.c
<< _LT_EOF
7704 int main() { return 0;}
7706 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7707 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7709 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7710 lt_cv_ld_force_load
=yes
7712 cat conftest.err
>&5
7714 rm -f conftest.err libconftest.a conftest conftest.c
7715 rm -rf conftest.dSYM
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7719 $as_echo "$lt_cv_ld_force_load" >&6; }
7721 rhapsody
* | darwin1.
[012])
7722 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7724 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7725 darwin
*) # darwin 5.x on
7726 # if running on 10.5 or later, the deployment target defaults
7727 # to the OS version, if on x86, and 10.4, the deployment
7728 # target defaults to 10.4. Don't you love it?
7729 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7730 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7731 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7733 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7735 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7739 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7740 _lt_dar_single_mod
='$single_module'
7742 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7743 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7745 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7747 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7748 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7756 ac_cpp
='$CPP $CPPFLAGS'
7757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7761 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7762 # On Suns, sometimes $CPP names a directory.
7763 if test -n "$CPP" && test -d "$CPP"; then
7766 if test -z "$CPP"; then
7767 if ${ac_cv_prog_CPP+:} false
; then :
7768 $as_echo_n "(cached) " >&6
7770 # Double quotes because CPP needs to be expanded
7771 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7774 for ac_c_preproc_warn_flag
in '' yes
7776 # Use a header file that comes with gcc, so configuring glibc
7777 # with a fresh cross-compiler works.
7778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7779 # <limits.h> exists even on freestanding compilers.
7780 # On the NeXT, cc -E runs the code through the compiler's parser,
7781 # not just through cpp. "Syntax error" is here to catch this case.
7782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7785 # include <limits.h>
7787 # include <assert.h>
7791 if ac_fn_c_try_cpp
"$LINENO"; then :
7794 # Broken: fails on valid input.
7797 rm -f conftest.err conftest.i conftest.
$ac_ext
7799 # OK, works on sane cases. Now check whether nonexistent headers
7800 # can be detected and how.
7801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 #include <ac_nonexistent.h>
7805 if ac_fn_c_try_cpp
"$LINENO"; then :
7806 # Broken: success on invalid input.
7809 # Passes both tests.
7813 rm -f conftest.err conftest.i conftest.
$ac_ext
7816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7817 rm -f conftest.i conftest.err conftest.
$ac_ext
7818 if $ac_preproc_ok; then :
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7831 $as_echo "$CPP" >&6; }
7833 for ac_c_preproc_warn_flag
in '' yes
7835 # Use a header file that comes with gcc, so configuring glibc
7836 # with a fresh cross-compiler works.
7837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7838 # <limits.h> exists even on freestanding compilers.
7839 # On the NeXT, cc -E runs the code through the compiler's parser,
7840 # not just through cpp. "Syntax error" is here to catch this case.
7841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7844 # include <limits.h>
7846 # include <assert.h>
7850 if ac_fn_c_try_cpp
"$LINENO"; then :
7853 # Broken: fails on valid input.
7856 rm -f conftest.err conftest.i conftest.
$ac_ext
7858 # OK, works on sane cases. Now check whether nonexistent headers
7859 # can be detected and how.
7860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 #include <ac_nonexistent.h>
7864 if ac_fn_c_try_cpp
"$LINENO"; then :
7865 # Broken: success on invalid input.
7868 # Passes both tests.
7872 rm -f conftest.err conftest.i conftest.
$ac_ext
7875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7876 rm -f conftest.i conftest.err conftest.
$ac_ext
7877 if $ac_preproc_ok; then :
7880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7882 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7883 See \`config.log' for more details" "$LINENO" 5; }
7887 ac_cpp
='$CPP $CPPFLAGS'
7888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7894 $as_echo_n "checking for ANSI C header files... " >&6; }
7895 if ${ac_cv_header_stdc+:} false
; then :
7896 $as_echo_n "(cached) " >&6
7898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7913 if ac_fn_c_try_compile
"$LINENO"; then :
7914 ac_cv_header_stdc
=yes
7916 ac_cv_header_stdc
=no
7918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7920 if test $ac_cv_header_stdc = yes; then
7921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7928 $EGREP "memchr" >/dev
/null
2>&1; then :
7931 ac_cv_header_stdc
=no
7937 if test $ac_cv_header_stdc = yes; then
7938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7945 $EGREP "free" >/dev
/null
2>&1; then :
7948 ac_cv_header_stdc
=no
7954 if test $ac_cv_header_stdc = yes; then
7955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7956 if test "$cross_compiling" = yes; then :
7959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7963 #if ((' ' & 0x0FF) == 0x020)
7964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7967 # define ISLOWER(c) \
7968 (('a' <= (c) && (c) <= 'i') \
7969 || ('j' <= (c) && (c) <= 'r') \
7970 || ('s' <= (c) && (c) <= 'z'))
7971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7979 for (i = 0; i < 256; i++)
7980 if (XOR (islower (i), ISLOWER (i))
7981 || toupper (i) != TOUPPER (i))
7986 if ac_fn_c_try_run
"$LINENO"; then :
7989 ac_cv_header_stdc
=no
7991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7998 $as_echo "$ac_cv_header_stdc" >&6; }
7999 if test $ac_cv_header_stdc = yes; then
8001 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8006 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8007 inttypes.h stdint.h unistd.h
8009 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8010 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8012 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8013 cat >>confdefs.h
<<_ACEOF
8014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8022 for ac_header
in dlfcn.h
8024 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8026 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8027 cat >>confdefs.h
<<_ACEOF
8028 #define HAVE_DLFCN_H 1
8048 # Check whether --enable-shared was given.
8049 if test "${enable_shared+set}" = set; then :
8050 enableval
=$enable_shared; p
=${PACKAGE-default}
8052 yes) enable_shared
=yes ;;
8053 no
) enable_shared
=no
;;
8056 # Look at the argument we got. We use all the common list separators.
8057 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8058 for pkg
in $enableval; do
8060 if test "X$pkg" = "X$p"; then
8079 # Check whether --enable-static was given.
8080 if test "${enable_static+set}" = set; then :
8081 enableval
=$enable_static; p
=${PACKAGE-default}
8083 yes) enable_static
=yes ;;
8084 no
) enable_static
=no
;;
8087 # Look at the argument we got. We use all the common list separators.
8088 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8089 for pkg
in $enableval; do
8091 if test "X$pkg" = "X$p"; then
8111 # Check whether --with-pic was given.
8112 if test "${with_pic+set}" = set; then :
8113 withval
=$with_pic; pic_mode
="$withval"
8119 test -z "$pic_mode" && pic_mode
=default
8127 # Check whether --enable-fast-install was given.
8128 if test "${enable_fast_install+set}" = set; then :
8129 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8131 yes) enable_fast_install
=yes ;;
8132 no
) enable_fast_install
=no
;;
8134 enable_fast_install
=no
8135 # Look at the argument we got. We use all the common list separators.
8136 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8137 for pkg
in $enableval; do
8139 if test "X$pkg" = "X$p"; then
8140 enable_fast_install
=yes
8147 enable_fast_install
=yes
8160 # This can be used to rebuild libtool when needed
8161 LIBTOOL_DEPS
="$ltmain"
8163 # Always use our own libtool.
8164 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8191 test -z "$LN_S" && LN_S
="ln -s"
8206 if test -n "${ZSH_VERSION+set}" ; then
8207 setopt NO_GLOB_SUBST
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8211 $as_echo_n "checking for objdir... " >&6; }
8212 if ${lt_cv_objdir+:} false
; then :
8213 $as_echo_n "(cached) " >&6
8215 rm -f .libs
2>/dev
/null
8216 mkdir .libs
2>/dev
/null
8217 if test -d .libs
; then
8220 # MS-DOS does not allow filenames that begin with a dot.
8223 rmdir .libs
2>/dev
/null
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8226 $as_echo "$lt_cv_objdir" >&6; }
8227 objdir
=$lt_cv_objdir
8233 cat >>confdefs.h
<<_ACEOF
8234 #define LT_OBJDIR "$lt_cv_objdir/"
8242 # AIX sometimes has problems with the GCC collect2 program. For some
8243 # reason, if we set the COLLECT_NAMES environment variable, the problems
8244 # vanish in a puff of smoke.
8245 if test "X${COLLECT_NAMES+set}" != Xset
; then
8247 export COLLECT_NAMES
8254 can_build_shared
=yes
8256 # All known linkers require a `.a' archive for static linking (except MSVC,
8257 # which needs '.lib').
8260 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8263 old_CFLAGS
="$CFLAGS"
8265 # Set sane defaults for various variables
8266 test -z "$CC" && CC
=cc
8267 test -z "$LTCC" && LTCC
=$CC
8268 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8269 test -z "$LD" && LD
=ld
8270 test -z "$ac_objext" && ac_objext
=o
8272 for cc_temp
in $compiler""; do
8274 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8275 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8280 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8283 # Only perform the check for file, if the check method requires it
8284 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8285 case $deplibs_check_method in
8287 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8289 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8290 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8291 $as_echo_n "(cached) " >&6
8295 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8298 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8299 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8300 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8301 for ac_dir
in $ac_dummy; do
8303 test -z "$ac_dir" && ac_dir
=.
8304 if test -f $ac_dir/${ac_tool_prefix}file; then
8305 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8306 if test -n "$file_magic_test_file"; then
8307 case $deplibs_check_method in
8309 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8310 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8311 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8312 $EGREP "$file_magic_regex" > /dev
/null
; then
8317 *** Warning: the command libtool uses to detect shared libraries,
8318 *** $file_magic_cmd, produces output that libtool cannot recognize.
8319 *** The result is that libtool may fail to recognize shared libraries
8320 *** as such. This will affect the creation of libtool libraries that
8321 *** depend on shared libraries, but programs linked with such libtool
8322 *** libraries will work regardless of this problem. Nevertheless, you
8323 *** may want to report the problem to your system manager and/or to
8324 *** bug-libtool@gnu.org
8334 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8339 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8340 if test -n "$MAGIC_CMD"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8342 $as_echo "$MAGIC_CMD" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8352 if test -z "$lt_cv_path_MAGIC_CMD"; then
8353 if test -n "$ac_tool_prefix"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8355 $as_echo_n "checking for file... " >&6; }
8356 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8357 $as_echo_n "(cached) " >&6
8361 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8364 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8365 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8366 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8367 for ac_dir
in $ac_dummy; do
8369 test -z "$ac_dir" && ac_dir
=.
8370 if test -f $ac_dir/file; then
8371 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8372 if test -n "$file_magic_test_file"; then
8373 case $deplibs_check_method in
8375 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8376 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8377 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8378 $EGREP "$file_magic_regex" > /dev
/null
; then
8383 *** Warning: the command libtool uses to detect shared libraries,
8384 *** $file_magic_cmd, produces output that libtool cannot recognize.
8385 *** The result is that libtool may fail to recognize shared libraries
8386 *** as such. This will affect the creation of libtool libraries that
8387 *** depend on shared libraries, but programs linked with such libtool
8388 *** libraries will work regardless of this problem. Nevertheless, you
8389 *** may want to report the problem to your system manager and/or to
8390 *** bug-libtool@gnu.org
8400 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8405 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8406 if test -n "$MAGIC_CMD"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8408 $as_echo "$MAGIC_CMD" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8424 # Use C for the default configuration in the libtool script
8428 ac_cpp
='$CPP $CPPFLAGS'
8429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8434 # Source file extension for C test sources.
8437 # Object file extension for compiled C test sources.
8441 # Code to be used in simple compile tests
8442 lt_simple_compile_test_code
="int some_variable = 0;"
8444 # Code to be used in simple link tests
8445 lt_simple_link_test_code
='int main(){return(0);}'
8453 # If no C compiler was specified, use CC.
8456 # If no C compiler flags were specified, use CFLAGS.
8457 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8459 # Allow CC to be a program name with arguments.
8462 # Save the default compiler, since it gets overwritten when the other
8463 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8464 compiler_DEFAULT
=$CC
8466 # save warnings/boilerplate of simple test code
8467 ac_outfile
=conftest.
$ac_objext
8468 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8469 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8470 _lt_compiler_boilerplate
=`cat conftest.err`
8473 ac_outfile
=conftest.
$ac_objext
8474 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8475 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8476 _lt_linker_boilerplate
=`cat conftest.err`
8481 ## There is no encapsulation within the following macros, do not change
8482 ## the running order or otherwise move them around unless you know exactly
8483 ## what you are doing...
8484 if test -n "$compiler"; then
8486 lt_prog_compiler_no_builtin_flag
=
8488 if test "$GCC" = yes; then
8489 case $cc_basename in
8491 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8493 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8497 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8498 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8499 $as_echo_n "(cached) " >&6
8501 lt_cv_prog_compiler_rtti_exceptions
=no
8502 ac_outfile
=conftest.
$ac_objext
8503 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8504 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8505 # Insert the option either (1) after the last *FLAGS variable, or
8506 # (2) before a word containing "conftest.", or (3) at the end.
8507 # Note that $ac_compile itself does not contain backslashes and begins
8508 # with a dollar sign (not a hyphen), so the echo should work correctly.
8509 # The option is referenced via a variable to avoid confusing sed.
8510 lt_compile
=`echo "$ac_compile" | $SED \
8511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513 -e 's:$: $lt_compiler_flag:'`
8514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8515 (eval "$lt_compile" 2>conftest.err
)
8517 cat conftest.err
>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 if (exit $ac_status) && test -s "$ac_outfile"; then
8520 # The compiler can only warn and ignore the option if not recognized
8521 # So say no if there are warnings other than the usual output.
8522 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8523 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8524 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8525 lt_cv_prog_compiler_rtti_exceptions
=yes
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8532 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8534 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8535 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8547 lt_prog_compiler_wl
=
8548 lt_prog_compiler_pic
=
8549 lt_prog_compiler_static
=
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8554 if test "$GCC" = yes; then
8555 lt_prog_compiler_wl
='-Wl,'
8556 lt_prog_compiler_static
='-static'
8560 # All AIX code is PIC.
8561 if test "$host_cpu" = ia64
; then
8562 # AIX 5 now supports IA64 processor
8563 lt_prog_compiler_static
='-Bstatic'
8565 lt_prog_compiler_pic
='-fPIC'
8571 # see comment about AmigaOS4 .so support
8572 lt_prog_compiler_pic
='-fPIC'
8575 # FIXME: we need at least 68020 code to build shared libraries, but
8576 # adding the `-m68020' flag to GCC prevents building anything better,
8578 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8583 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8584 # PIC is the default for these OSes.
8587 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8588 # This hack is so that the source file can tell whether it is being
8589 # built for inclusion in a dll (and should export symbols for example).
8590 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8591 # (--disable-auto-import) libraries
8592 lt_prog_compiler_pic
='-DDLL_EXPORT'
8595 darwin
* | rhapsody
*)
8596 # PIC is the default on this platform
8597 # Common symbols not allowed in MH_DYLIB files
8598 lt_prog_compiler_pic
='-fno-common'
8602 # PIC is the default for Haiku.
8603 # The "-static" flag exists, but is broken.
8604 lt_prog_compiler_static
=
8608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8610 # sets the default TLS model and affects inlining.
8616 lt_prog_compiler_pic
='-fPIC'
8622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8623 # Instead, we relocate shared libraries at runtime.
8627 # Just because we use GCC doesn't mean we suddenly get shared libraries
8628 # on systems that don't support them.
8629 lt_prog_compiler_can_build_shared
=no
8634 # QNX uses GNU C++, but need to define -shared option too, otherwise
8636 lt_prog_compiler_pic
='-fPIC -shared'
8640 if test -d /usr
/nec
; then
8641 lt_prog_compiler_pic
=-Kconform_pic
8646 lt_prog_compiler_pic
='-fPIC'
8650 case $cc_basename in
8651 nvcc
*) # Cuda Compiler Driver 2.2
8652 lt_prog_compiler_wl
='-Xlinker '
8653 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8657 # PORTME Check for flag to pass linker flags through the system compiler.
8660 lt_prog_compiler_wl
='-Wl,'
8661 if test "$host_cpu" = ia64
; then
8662 # AIX 5 now supports IA64 processor
8663 lt_prog_compiler_static
='-Bstatic'
8665 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8669 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8670 # This hack is so that the source file can tell whether it is being
8671 # built for inclusion in a dll (and should export symbols for example).
8672 lt_prog_compiler_pic
='-DDLL_EXPORT'
8675 hpux9
* | hpux10
* | hpux11
*)
8676 lt_prog_compiler_wl
='-Wl,'
8677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8684 lt_prog_compiler_pic
='+Z'
8687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8688 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8691 irix5
* | irix6
* | nonstopux
*)
8692 lt_prog_compiler_wl
='-Wl,'
8693 # PIC (with -KPIC) is the default.
8694 lt_prog_compiler_static
='-non_shared'
8697 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8698 case $cc_basename in
8699 # old Intel for x86_64 which still supported -KPIC.
8701 lt_prog_compiler_wl
='-Wl,'
8702 lt_prog_compiler_pic
='-KPIC'
8703 lt_prog_compiler_static
='-static'
8705 # icc used to be incompatible with GCC.
8706 # ICC 10 doesn't accept -KPIC any more.
8708 lt_prog_compiler_wl
='-Wl,'
8709 lt_prog_compiler_pic
='-fPIC'
8710 lt_prog_compiler_static
='-static'
8712 # Lahey Fortran 8.1.
8714 lt_prog_compiler_wl
='-Wl,'
8715 lt_prog_compiler_pic
='--shared'
8716 lt_prog_compiler_static
='--static'
8718 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8719 # Portland Group compilers (*not* the Pentium gcc compiler,
8720 # which looks to be a dead project)
8721 lt_prog_compiler_wl
='-Wl,'
8722 lt_prog_compiler_pic
='-fpic'
8723 lt_prog_compiler_static
='-Bstatic'
8726 lt_prog_compiler_wl
='-Wl,'
8727 # All Alpha code is PIC.
8728 lt_prog_compiler_static
='-non_shared'
8730 xl
* | bgxl
* | bgf
* | mpixl
*)
8731 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8732 lt_prog_compiler_wl
='-Wl,'
8733 lt_prog_compiler_pic
='-qpic'
8734 lt_prog_compiler_static
='-qstaticlink'
8737 case `$CC -V 2>&1 | sed 5q` in
8738 *Sun\ F
* |
*Sun
*Fortran
*)
8739 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8740 lt_prog_compiler_pic
='-KPIC'
8741 lt_prog_compiler_static
='-Bstatic'
8742 lt_prog_compiler_wl
=''
8746 lt_prog_compiler_pic
='-KPIC'
8747 lt_prog_compiler_static
='-Bstatic'
8748 lt_prog_compiler_wl
='-Wl,'
8756 lt_prog_compiler_pic
='-KPIC'
8757 lt_prog_compiler_static
='-Bstatic'
8761 # QNX uses GNU C++, but need to define -shared option too, otherwise
8763 lt_prog_compiler_pic
='-fPIC -shared'
8766 osf3
* | osf4
* | osf5
*)
8767 lt_prog_compiler_wl
='-Wl,'
8768 # All OSF/1 code is PIC.
8769 lt_prog_compiler_static
='-non_shared'
8773 lt_prog_compiler_static
='-non_shared'
8777 lt_prog_compiler_pic
='-KPIC'
8778 lt_prog_compiler_static
='-Bstatic'
8779 case $cc_basename in
8781 lt_prog_compiler_wl
='-Qoption ld ';;
8783 lt_prog_compiler_wl
='-Wl,';;
8788 lt_prog_compiler_wl
='-Qoption ld '
8789 lt_prog_compiler_pic
='-PIC'
8790 lt_prog_compiler_static
='-Bstatic'
8793 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8794 lt_prog_compiler_wl
='-Wl,'
8795 lt_prog_compiler_pic
='-KPIC'
8796 lt_prog_compiler_static
='-Bstatic'
8800 if test -d /usr
/nec
;then
8801 lt_prog_compiler_pic
='-Kconform_pic'
8802 lt_prog_compiler_static
='-Bstatic'
8806 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8807 lt_prog_compiler_wl
='-Wl,'
8808 lt_prog_compiler_pic
='-KPIC'
8809 lt_prog_compiler_static
='-Bstatic'
8813 lt_prog_compiler_wl
='-Wl,'
8814 lt_prog_compiler_can_build_shared
=no
8818 lt_prog_compiler_pic
='-pic'
8819 lt_prog_compiler_static
='-Bstatic'
8823 lt_prog_compiler_can_build_shared
=no
8829 # For platforms which do not support PIC, -DPIC is meaningless:
8831 lt_prog_compiler_pic
=
8834 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8838 $as_echo "$lt_prog_compiler_pic" >&6; }
8846 # Check to make sure the PIC flag actually works.
8848 if test -n "$lt_prog_compiler_pic"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8850 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8851 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8852 $as_echo_n "(cached) " >&6
8854 lt_cv_prog_compiler_pic_works
=no
8855 ac_outfile
=conftest.
$ac_objext
8856 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8857 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8858 # Insert the option either (1) after the last *FLAGS variable, or
8859 # (2) before a word containing "conftest.", or (3) at the end.
8860 # Note that $ac_compile itself does not contain backslashes and begins
8861 # with a dollar sign (not a hyphen), so the echo should work correctly.
8862 # The option is referenced via a variable to avoid confusing sed.
8863 lt_compile
=`echo "$ac_compile" | $SED \
8864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8866 -e 's:$: $lt_compiler_flag:'`
8867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8868 (eval "$lt_compile" 2>conftest.err
)
8870 cat conftest.err
>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 if (exit $ac_status) && test -s "$ac_outfile"; then
8873 # The compiler can only warn and ignore the option if not recognized
8874 # So say no if there are warnings other than the usual output.
8875 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8876 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8877 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8878 lt_cv_prog_compiler_pic_works
=yes
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8885 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8887 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8888 case $lt_prog_compiler_pic in
8890 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8893 lt_prog_compiler_pic
=
8894 lt_prog_compiler_can_build_shared
=no
8905 # Check to make sure the static flag actually works.
8907 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8909 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8910 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8911 $as_echo_n "(cached) " >&6
8913 lt_cv_prog_compiler_static_works
=no
8914 save_LDFLAGS
="$LDFLAGS"
8915 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8916 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8917 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8918 # The linker can only warn and ignore the option if not recognized
8919 # So say no if there are warnings
8920 if test -s conftest.err
; then
8921 # Append any errors to the config.log.
8922 cat conftest.err
1>&5
8923 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8924 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8925 if diff conftest.exp conftest.er2
>/dev
/null
; then
8926 lt_cv_prog_compiler_static_works
=yes
8929 lt_cv_prog_compiler_static_works
=yes
8933 LDFLAGS
="$save_LDFLAGS"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8937 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8939 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8942 lt_prog_compiler_static
=
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8952 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8953 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8954 $as_echo_n "(cached) " >&6
8956 lt_cv_prog_compiler_c_o
=no
8957 $RM -r conftest
2>/dev
/null
8961 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8963 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8964 # Insert the option either (1) after the last *FLAGS variable, or
8965 # (2) before a word containing "conftest.", or (3) at the end.
8966 # Note that $ac_compile itself does not contain backslashes and begins
8967 # with a dollar sign (not a hyphen), so the echo should work correctly.
8968 lt_compile
=`echo "$ac_compile" | $SED \
8969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8971 -e 's:$: $lt_compiler_flag:'`
8972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8973 (eval "$lt_compile" 2>out
/conftest.err
)
8975 cat out
/conftest.err
>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8979 # The compiler can only warn and ignore the option if not recognized
8980 # So say no if there are warnings
8981 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8982 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8983 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8984 lt_cv_prog_compiler_c_o
=yes
8989 # SGI C++ compiler will create directory out/ii_files/ for
8990 # template instantiation
8991 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8992 $RM out
/* && rmdir out
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8999 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9008 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9009 $as_echo_n "(cached) " >&6
9011 lt_cv_prog_compiler_c_o
=no
9012 $RM -r conftest
2>/dev
/null
9016 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9018 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9019 # Insert the option either (1) after the last *FLAGS variable, or
9020 # (2) before a word containing "conftest.", or (3) at the end.
9021 # Note that $ac_compile itself does not contain backslashes and begins
9022 # with a dollar sign (not a hyphen), so the echo should work correctly.
9023 lt_compile
=`echo "$ac_compile" | $SED \
9024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9026 -e 's:$: $lt_compiler_flag:'`
9027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9028 (eval "$lt_compile" 2>out
/conftest.err
)
9030 cat out
/conftest.err
>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9034 # The compiler can only warn and ignore the option if not recognized
9035 # So say no if there are warnings
9036 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9037 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9038 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9039 lt_cv_prog_compiler_c_o
=yes
9044 # SGI C++ compiler will create directory out/ii_files/ for
9045 # template instantiation
9046 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9047 $RM out
/* && rmdir out
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9054 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9059 hard_links
="nottested"
9060 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9061 # do not overwrite the value of need_locks provided by the user
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9063 $as_echo_n "checking if we can lock with hard links... " >&6; }
9066 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9068 ln conftest.a conftest.b
2>&5 || hard_links
=no
9069 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9071 $as_echo "$hard_links" >&6; }
9072 if test "$hard_links" = no
; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9074 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9087 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9090 allow_undefined_flag
=
9091 always_export_symbols
=no
9093 archive_expsym_cmds
=
9094 compiler_needs_object
=no
9095 enable_shared_with_static_runtimes
=no
9096 export_dynamic_flag_spec
=
9097 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9098 hardcode_automatic
=no
9100 hardcode_direct_absolute
=no
9101 hardcode_libdir_flag_spec
=
9102 hardcode_libdir_flag_spec_ld
=
9103 hardcode_libdir_separator
=
9105 hardcode_shlibpath_var
=unsupported
9107 link_all_deplibs
=unknown
9110 old_archive_from_new_cmds
=
9111 old_archive_from_expsyms_cmds
=
9112 thread_safe_flag_spec
=
9113 whole_archive_flag_spec
=
9114 # include_expsyms should be a list of space-separated symbols to be *always*
9115 # included in the symbol list
9117 # exclude_expsyms can be an extended regexp of symbols to exclude
9118 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9119 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9120 # as well as any symbol that contains `d'.
9121 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9122 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9123 # platforms (ab)use it in PIC code, but their linkers get confused if
9124 # the symbol is explicitly referenced. Since portable code cannot
9125 # rely on this symbol name, it's probably fine to never include it in
9126 # preloaded symbol tables.
9127 # Exclude shared library initialization/finalization symbols.
9128 extract_expsyms_cmds
=
9131 cygwin
* | mingw
* | pw32
* | cegcc
*)
9132 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9133 # When not using gcc, we currently assume that we are using
9134 # Microsoft Visual C++.
9135 if test "$GCC" != yes; then
9140 # we just hope/assume this is gcc and not c89 (= MSVC++)
9150 # On some targets, GNU ld is compatible enough with the native linker
9151 # that we're better off using the native interface for both.
9152 lt_use_gnu_ld_interface
=no
9153 if test "$with_gnu_ld" = yes; then
9156 # The AIX port of GNU ld has always aspired to compatibility
9157 # with the native linker. However, as the warning in the GNU ld
9158 # block says, versions before 2.19.5* couldn't really create working
9159 # shared libraries, regardless of the interface used.
9160 case `$LD -v 2>&1` in
9161 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9162 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9163 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9165 lt_use_gnu_ld_interface
=yes
9170 lt_use_gnu_ld_interface
=yes
9175 if test "$lt_use_gnu_ld_interface" = yes; then
9176 # If archive_cmds runs LD, not CC, wlarc should be empty
9179 # Set some defaults for GNU ld with shared library support. These
9180 # are reset later if shared libraries are not supported. Putting them
9181 # here allows them to be overridden if necessary.
9182 runpath_var
=LD_RUN_PATH
9183 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9184 export_dynamic_flag_spec
='${wl}--export-dynamic'
9185 # ancient GNU ld didn't support --whole-archive et. al.
9186 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9187 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9189 whole_archive_flag_spec
=
9191 supports_anon_versioning
=no
9192 case `$LD -v 2>&1` in
9193 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9194 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9195 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9196 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9197 *\
2.11.
*) ;; # other 2.11 versions
9198 *) supports_anon_versioning
=yes ;;
9201 # See if GNU ld supports shared libraries.
9204 # On AIX/PPC, the GNU linker is very broken
9205 if test "$host_cpu" != ia64
; then
9209 *** Warning: the GNU linker, at least up to release 2.19, is reported
9210 *** to be unable to reliably create shared libraries on AIX.
9211 *** Therefore, libtool is disabling shared libraries support. If you
9212 *** really care for shared libraries, you may want to install binutils
9213 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9214 *** You will then need to restart the configuration process.
9223 # see comment about AmigaOS4 .so support
9224 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 archive_expsym_cmds
=''
9228 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)'
9229 hardcode_libdir_flag_spec
='-L$libdir'
9230 hardcode_minus_L
=yes
9236 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9237 allow_undefined_flag
=unsupported
9238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9239 # support --undefined. This deserves some investigation. FIXME
9240 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 cygwin
* | mingw
* | pw32
* | cegcc
*)
9247 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9248 # as there is no search path for DLLs.
9249 hardcode_libdir_flag_spec
='-L$libdir'
9250 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9251 allow_undefined_flag
=unsupported
9252 always_export_symbols
=no
9253 enable_shared_with_static_runtimes
=yes
9254 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9256 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9257 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258 # If the export-symbols file already is a .def file (1st line
9259 # is EXPORTS), use it as is; otherwise, prepend...
9260 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9261 cp $export_symbols $output_objdir/$soname.def;
9263 echo EXPORTS > $output_objdir/$soname.def;
9264 cat $export_symbols >> $output_objdir/$soname.def;
9266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9273 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 link_all_deplibs
=yes
9279 hardcode_shlibpath_var
=no
9280 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9281 export_dynamic_flag_spec
='${wl}-E'
9282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9283 # Instead, shared libraries are loaded at an image base (0x10000000 by
9284 # default) and relocated if they conflict, which is a slow very memory
9285 # consuming and fragmenting process. To avoid this, we pick a random,
9286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9287 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9288 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9289 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'
9292 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9294 if test "$host_os" = linux-dietlibc
; then
9295 case $cc_basename in
9296 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9299 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9300 && test "$tmp_diet" = no
9302 tmp_addflag
=' $pic_flag'
9303 tmp_sharedflag
='-shared'
9304 case $cc_basename,$host_cpu in
9305 pgcc
*) # Portland Group C compiler
9306 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'
9307 tmp_addflag
=' $pic_flag'
9309 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9310 # Portland Group f77 and f90 compilers
9311 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'
9312 tmp_addflag
=' $pic_flag -Mnomain' ;;
9313 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9314 tmp_addflag
=' -i_dynamic' ;;
9315 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9316 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9317 ifc
* | ifort
*) # Intel Fortran compiler
9318 tmp_addflag
=' -nofor_main' ;;
9319 lf95
*) # Lahey Fortran 8.1
9320 whole_archive_flag_spec
=
9321 tmp_sharedflag
='--shared' ;;
9322 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9323 tmp_sharedflag
='-qmkshrobj'
9325 nvcc
*) # Cuda Compiler Driver 2.2
9326 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'
9327 compiler_needs_object
=yes
9330 case `$CC -V 2>&1 | sed 5q` in
9331 *Sun\ C
*) # Sun C 5.9
9332 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'
9333 compiler_needs_object
=yes
9334 tmp_sharedflag
='-G' ;;
9335 *Sun\ F
*) # Sun Fortran 8.3
9336 tmp_sharedflag
='-G' ;;
9338 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340 if test "x$supports_anon_versioning" = xyes
; then
9341 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9343 echo "local: *; };" >> $output_objdir/$libname.ver~
9344 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9347 case $cc_basename in
9348 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9349 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9350 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9351 hardcode_libdir_flag_spec
=
9352 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9353 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9354 if test "x$supports_anon_versioning" = xyes
; then
9355 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9357 echo "local: *; };" >> $output_objdir/$libname.ver~
9358 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9368 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9369 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9372 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9378 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9383 *** create shared libraries on Solaris systems. Therefore, libtool
9384 *** is disabling shared libraries support. We urge you to upgrade GNU
9385 *** binutils to release 2.9.1 or newer. Another option is to modify
9386 *** your PATH or compiler configuration so that the native linker is
9387 *** used, and then restart.
9390 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9391 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9399 case `$LD -v 2>&1` in
9400 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9405 *** reliably create shared libraries on SCO systems. Therefore, libtool
9406 *** is disabling shared libraries support. We urge you to upgrade GNU
9407 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9408 *** your PATH or compiler configuration so that the native linker is
9409 *** used, and then restart.
9414 # For security reasons, it is highly recommended that you always
9415 # use absolute paths for naming shared libraries, and exclude the
9416 # DT_RUNPATH tag from executables and libraries. But doing so
9417 # requires that you compile everything twice, which is a pain.
9418 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9419 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9420 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9421 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_shlibpath_var
=no
9437 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9438 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9446 if test "$ld_shlibs" = no
; then
9448 hardcode_libdir_flag_spec
=
9449 export_dynamic_flag_spec
=
9450 whole_archive_flag_spec
=
9453 # PORTME fill in a description of your system's linker (not GNU ld)
9456 allow_undefined_flag
=unsupported
9457 always_export_symbols
=yes
9458 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'
9459 # Note: this linker hardcodes the directories in LIBPATH if there
9460 # are no directories specified by -L.
9461 hardcode_minus_L
=yes
9462 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9463 # Neither direct hardcoding nor static linking is supported with a
9465 hardcode_direct
=unsupported
9470 if test "$host_cpu" = ia64
; then
9471 # On IA64, the linker does run time linking by default, so we don't
9472 # have to do anything special.
9473 aix_use_runtimelinking
=no
9474 exp_sym_flag
='-Bexport'
9477 # If we're using GNU nm, then we don't want the "-C" option.
9478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9479 # Also, AIX nm treats weak defined symbols like other global
9480 # defined symbols, whereas GNU nm marks them as "W".
9481 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9482 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'
9484 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'
9486 aix_use_runtimelinking
=no
9488 # Test if we are trying to use run time linking or normal
9489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9490 # need to do runtime linking.
9491 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9492 for ld_flag
in $LDFLAGS; do
9493 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9494 aix_use_runtimelinking
=yes
9501 exp_sym_flag
='-bexport'
9502 no_entry_flag
='-bnoentry'
9505 # When large executables or shared objects are built, AIX ld can
9506 # have problems creating the table of contents. If linking a library
9507 # or program results in "error TOC overflow" add -mminimal-toc to
9508 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9509 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9513 hardcode_direct_absolute
=yes
9514 hardcode_libdir_separator
=':'
9515 link_all_deplibs
=yes
9516 file_list_spec
='${wl}-f,'
9518 if test "$GCC" = yes; then
9519 case $host_os in aix4.
[012]|aix4.
[012].
*)
9520 # We only want to do this on AIX 4.2 and lower, the check
9521 # below for broken collect2 doesn't work under 4.3+
9522 collect2name
=`${CC} -print-prog-name=collect2`
9523 if test -f "$collect2name" &&
9524 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9526 # We have reworked collect2
9529 # We have old collect2
9530 hardcode_direct
=unsupported
9531 # It fails to find uninstalled libraries when the uninstalled
9532 # path is not listed in the libpath. Setting hardcode_minus_L
9533 # to unsupported forces relinking
9534 hardcode_minus_L
=yes
9535 hardcode_libdir_flag_spec
='-L$libdir'
9536 hardcode_libdir_separator
=
9540 shared_flag
='-shared'
9541 if test "$aix_use_runtimelinking" = yes; then
9542 shared_flag
="$shared_flag "'${wl}-G'
9546 if test "$host_cpu" = ia64
; then
9547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9548 # chokes on -Wl,-G. The following line is correct:
9551 if test "$aix_use_runtimelinking" = yes; then
9552 shared_flag
='${wl}-G'
9554 shared_flag
='${wl}-bM:SRE'
9559 export_dynamic_flag_spec
='${wl}-bexpall'
9560 # It seems that -bexpall does not export symbols beginning with
9561 # underscore (_), so it is better to generate a list of symbols to export.
9562 always_export_symbols
=yes
9563 if test "$aix_use_runtimelinking" = yes; then
9564 # Warning - without using the other runtime loading flags (-brtl),
9565 # -berok will link without error, but may produce a broken library.
9566 allow_undefined_flag
='-berok'
9567 # Determine the default libpath from the value encoded in an
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9580 if ac_fn_c_try_link
"$LINENO"; then :
9582 lt_aix_libpath_sed
='
9583 /Import File Strings/,/^$/ {
9589 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9590 # Check for a 64-bit object if we didn't find anything.
9591 if test -z "$aix_libpath"; then
9592 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9595 rm -f core conftest.err conftest.
$ac_objext \
9596 conftest
$ac_exeext conftest.
$ac_ext
9597 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9599 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9600 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"
9602 if test "$host_cpu" = ia64
; then
9603 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9604 allow_undefined_flag
="-z nodefs"
9605 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"
9607 # Determine the default libpath from the value encoded in an
9609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9620 if ac_fn_c_try_link
"$LINENO"; then :
9622 lt_aix_libpath_sed
='
9623 /Import File Strings/,/^$/ {
9629 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9630 # Check for a 64-bit object if we didn't find anything.
9631 if test -z "$aix_libpath"; then
9632 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635 rm -f core conftest.err conftest.
$ac_objext \
9636 conftest
$ac_exeext conftest.
$ac_ext
9637 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9639 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9640 # Warning - without using the other run time loading flags,
9641 # -berok will link without error, but may produce a broken library.
9642 no_undefined_flag
=' ${wl}-bernotok'
9643 allow_undefined_flag
=' ${wl}-berok'
9644 if test "$with_gnu_ld" = yes; then
9645 # We only use this code for GNU lds that support --whole-archive.
9646 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9648 # Exported symbols can be pulled into shared objects from archives
9649 whole_archive_flag_spec
='$convenience'
9651 archive_cmds_need_lc
=yes
9652 # This is similar to how AIX traditionally builds its shared libraries.
9653 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'
9661 # see comment about AmigaOS4 .so support
9662 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds
=''
9666 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)'
9667 hardcode_libdir_flag_spec
='-L$libdir'
9668 hardcode_minus_L
=yes
9674 export_dynamic_flag_spec
=-rdynamic
9677 cygwin
* | mingw
* | pw32
* | cegcc
*)
9678 # When not using gcc, we currently assume that we are using
9679 # Microsoft Visual C++.
9680 # hardcode_libdir_flag_spec is actually meaningless, as there is
9681 # no search path for DLLs.
9682 hardcode_libdir_flag_spec
=' '
9683 allow_undefined_flag
=unsupported
9684 # Tell ltmain to make .lib files, not .a files.
9686 # Tell ltmain to make .dll files, not .so files.
9688 # FIXME: Setting linknames here is a bad hack.
9689 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9690 # The linker will automatically build a .lib file if we build a DLL.
9691 old_archive_from_new_cmds
='true'
9692 # FIXME: Should let the user specify the lib program.
9693 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9694 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9695 enable_shared_with_static_runtimes
=yes
9698 darwin
* | rhapsody
*)
9701 archive_cmds_need_lc
=no
9703 hardcode_automatic
=yes
9704 hardcode_shlibpath_var
=unsupported
9705 if test "$lt_cv_ld_force_load" = "yes"; then
9706 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\"`'
9708 whole_archive_flag_spec
=''
9710 link_all_deplibs
=yes
9711 allow_undefined_flag
="$_lt_dar_allow_undefined"
9712 case $cc_basename in
9713 ifort
*) _lt_dar_can_shared
=yes ;;
9714 *) _lt_dar_can_shared
=$GCC ;;
9716 if test "$_lt_dar_can_shared" = "yes"; then
9717 output_verbose_link_cmd
=func_echo_all
9718 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9719 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9720 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9721 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}"
9730 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_libdir_flag_spec
='-L$libdir'
9732 hardcode_shlibpath_var
=no
9735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9736 # support. Future versions do this automatically, but an explicit c++rt0.o
9737 # does not break anything, and helps significantly (at the cost of a little
9740 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9741 hardcode_libdir_flag_spec
='-R$libdir'
9743 hardcode_shlibpath_var
=no
9746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9748 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_minus_L
=yes
9751 hardcode_shlibpath_var
=no
9754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9755 freebsd
* | dragonfly
*)
9756 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9757 hardcode_libdir_flag_spec
='-R$libdir'
9759 hardcode_shlibpath_var
=no
9763 if test "$GCC" = yes; then
9764 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'
9766 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'
9768 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9769 hardcode_libdir_separator
=:
9772 # hardcode_minus_L: Not really in the search PATH,
9773 # but as the default location of the library.
9774 hardcode_minus_L
=yes
9775 export_dynamic_flag_spec
='${wl}-E'
9779 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9780 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9784 if test "$with_gnu_ld" = no
; then
9785 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9786 hardcode_libdir_flag_spec_ld
='+b $libdir'
9787 hardcode_libdir_separator
=:
9789 hardcode_direct_absolute
=yes
9790 export_dynamic_flag_spec
='${wl}-E'
9791 # hardcode_minus_L: Not really in the search PATH,
9792 # but as the default location of the library.
9793 hardcode_minus_L
=yes
9798 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9801 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9813 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9820 # Older versions of the 11.00 compiler do not understand -b yet
9821 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9823 $as_echo_n "checking if $CC understands -b... " >&6; }
9824 if ${lt_cv_prog_compiler__b+:} false
; then :
9825 $as_echo_n "(cached) " >&6
9827 lt_cv_prog_compiler__b
=no
9828 save_LDFLAGS
="$LDFLAGS"
9829 LDFLAGS
="$LDFLAGS -b"
9830 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9831 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9832 # The linker can only warn and ignore the option if not recognized
9833 # So say no if there are warnings
9834 if test -s conftest.err
; then
9835 # Append any errors to the config.log.
9836 cat conftest.err
1>&5
9837 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9838 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9839 if diff conftest.exp conftest.er2
>/dev
/null
; then
9840 lt_cv_prog_compiler__b
=yes
9843 lt_cv_prog_compiler__b
=yes
9847 LDFLAGS
="$save_LDFLAGS"
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9851 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9853 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9854 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9856 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9862 if test "$with_gnu_ld" = no
; then
9863 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9864 hardcode_libdir_separator
=:
9869 hardcode_shlibpath_var
=no
9873 hardcode_direct_absolute
=yes
9874 export_dynamic_flag_spec
='${wl}-E'
9876 # hardcode_minus_L: Not really in the search PATH,
9877 # but as the default location of the library.
9878 hardcode_minus_L
=yes
9884 irix5
* | irix6
* | nonstopux
*)
9885 if test "$GCC" = yes; then
9886 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'
9887 # Try to use the -exported_symbol ld option, if it does not
9888 # work, assume that -exports_file does not work either and
9889 # implicitly export all symbols.
9890 save_LDFLAGS
="$LDFLAGS"
9891 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9896 if ac_fn_c_try_link
"$LINENO"; then :
9897 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'
9900 rm -f core conftest.err conftest.
$ac_objext \
9901 conftest
$ac_exeext conftest.
$ac_ext
9902 LDFLAGS
="$save_LDFLAGS"
9904 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'
9905 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'
9907 archive_cmds_need_lc
='no'
9908 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9909 hardcode_libdir_separator
=:
9911 link_all_deplibs
=yes
9915 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9916 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9918 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9920 hardcode_libdir_flag_spec
='-R$libdir'
9922 hardcode_shlibpath_var
=no
9926 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9929 hardcode_libdir_separator
=:
9930 hardcode_shlibpath_var
=no
9937 if test -f /usr
/libexec
/ld.so
; then
9939 hardcode_shlibpath_var
=no
9940 hardcode_direct_absolute
=yes
9941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9942 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9944 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9945 export_dynamic_flag_spec
='${wl}-E'
9948 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9949 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9950 hardcode_libdir_flag_spec
='-R$libdir'
9953 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9954 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9964 hardcode_libdir_flag_spec
='-L$libdir'
9965 hardcode_minus_L
=yes
9966 allow_undefined_flag
=unsupported
9967 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'
9968 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9972 if test "$GCC" = yes; then
9973 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9974 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'
9976 allow_undefined_flag
=' -expect_unresolved \*'
9977 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'
9979 archive_cmds_need_lc
='no'
9980 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9981 hardcode_libdir_separator
=:
9984 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9985 if test "$GCC" = yes; then
9986 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9987 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'
9988 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9990 allow_undefined_flag
=' -expect_unresolved \*'
9991 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'
9992 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~
9993 $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'
9995 # Both c and cxx compiler support -rpath directly
9996 hardcode_libdir_flag_spec
='-rpath $libdir'
9998 archive_cmds_need_lc
='no'
9999 hardcode_libdir_separator
=:
10003 no_undefined_flag
=' -z defs'
10004 if test "$GCC" = yes; then
10006 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10010 case `$CC -V 2>&1` in
10013 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10019 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10021 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10025 hardcode_libdir_flag_spec
='-R$libdir'
10026 hardcode_shlibpath_var
=no
10028 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10030 # The compiler driver will combine and reorder linker options,
10031 # but understands `-z linker_flag'. GCC discards it without `$wl',
10032 # but is careful enough not to reorder.
10033 # Supported since Solaris 2.6 (maybe 2.5.1?)
10034 if test "$GCC" = yes; then
10035 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10037 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10041 link_all_deplibs
=yes
10045 if test "x$host_vendor" = xsequent
; then
10046 # Use $CC to link under sequent, because it throws in some extra .o
10047 # files that make .init and .fini sections work.
10048 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10052 hardcode_libdir_flag_spec
='-L$libdir'
10053 hardcode_direct
=yes
10054 hardcode_minus_L
=yes
10055 hardcode_shlibpath_var
=no
10059 case $host_vendor in
10061 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct
=yes # is this really true???
10065 ## LD is ld it makes a PLAMLIB
10066 ## CC just makes a GrossModule.
10067 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10068 reload_cmds
='$CC -r -o $output$reload_objs'
10072 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10076 runpath_var
='LD_RUN_PATH'
10077 hardcode_shlibpath_var
=no
10081 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_shlibpath_var
=no
10083 export_dynamic_flag_spec
='-Bexport'
10087 if test -d /usr
/nec
; then
10088 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_shlibpath_var
=no
10090 runpath_var
=LD_RUN_PATH
10091 hardcode_runpath_var
=yes
10096 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10097 no_undefined_flag
='${wl}-z,text'
10098 archive_cmds_need_lc
=no
10099 hardcode_shlibpath_var
=no
10100 runpath_var
='LD_RUN_PATH'
10102 if test "$GCC" = yes; then
10103 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 sysv5
* | sco3.2v5
* | sco5v6
*)
10112 # Note: We can NOT use -z defs as we might desire, because we do not
10113 # link with -lc, and that would cause any symbols used from libc to
10114 # always be unresolved, which means just about no library would
10115 # ever link correctly. If we're not using GNU ld we use -z text
10116 # though, which does catch some bad symbols but isn't as heavy-handed
10118 no_undefined_flag
='${wl}-z,text'
10119 allow_undefined_flag
='${wl}-z,nodefs'
10120 archive_cmds_need_lc
=no
10121 hardcode_shlibpath_var
=no
10122 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10123 hardcode_libdir_separator
=':'
10124 link_all_deplibs
=yes
10125 export_dynamic_flag_spec
='${wl}-Bexport'
10126 runpath_var
='LD_RUN_PATH'
10128 if test "$GCC" = yes; then
10129 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139 hardcode_libdir_flag_spec
='-L$libdir'
10140 hardcode_shlibpath_var
=no
10148 if test x
$host_vendor = xsni
; then
10150 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10151 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10158 $as_echo "$ld_shlibs" >&6; }
10159 test "$ld_shlibs" = no
&& can_build_shared
=no
10161 with_gnu_ld
=$with_gnu_ld
10178 # Do we need to explicitly link libc?
10180 case "x$archive_cmds_need_lc" in
10182 # Assume -lc should be added
10183 archive_cmds_need_lc
=yes
10185 if test "$enable_shared" = yes && test "$GCC" = yes; then
10186 case $archive_cmds in
10188 # FIXME: we may have to deal with multi-command sequences.
10191 # Test whether the compiler implicitly links with -lc since on some
10192 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10193 # to ld, don't add -lc before -lgcc.
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10195 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10196 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10197 $as_echo_n "(cached) " >&6
10200 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10203 (eval $ac_compile) 2>&5
10205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206 test $ac_status = 0; } 2>conftest.err
; then
10209 libobjs
=conftest.
$ac_objext
10211 wl
=$lt_prog_compiler_wl
10212 pic_flag
=$lt_prog_compiler_pic
10218 lt_save_allow_undefined_flag
=$allow_undefined_flag
10219 allow_undefined_flag
=
10220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10221 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10224 test $ac_status = 0; }
10226 lt_cv_archive_cmds_need_lc
=no
10228 lt_cv_archive_cmds_need_lc
=yes
10230 allow_undefined_flag
=$lt_save_allow_undefined_flag
10232 cat conftest.err
1>&5
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10238 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10239 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10403 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10405 if test "$GCC" = yes; then
10407 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10408 *) lt_awk_arg
="/^libraries:/" ;;
10411 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10412 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10414 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10415 case $lt_search_path_spec in
10417 # if the path contains ";" then we assume it to be the separator
10418 # otherwise default to the standard path separator (i.e. ":") - it is
10419 # assumed that no part of a normal pathname contains ";" but that should
10420 # okay in the real world where ";" in dirpaths is itself problematic.
10421 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10424 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10427 # Ok, now we have the path, separated by spaces, we can step through it
10428 # and add multilib dir if necessary.
10429 lt_tmp_lt_search_path_spec
=
10430 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10431 for lt_sys_path
in $lt_search_path_spec; do
10432 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10433 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10435 test -d "$lt_sys_path" && \
10436 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10439 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10440 BEGIN {RS=" "; FS="/|\n";} {
10443 for (lt_i = NF; lt_i > 0; lt_i--) {
10444 if ($lt_i != "" && $lt_i != ".") {
10445 if ($lt_i == "..") {
10448 if (lt_count == 0) {
10449 lt_foo="/" $lt_i lt_foo;
10456 if (lt_foo != "") { lt_freq[lt_foo]++; }
10457 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10459 # AWK program above erroneously prepends '/' to C:/dos/paths
10462 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10463 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10465 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10467 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10469 library_names_spec
=
10470 libname_spec
='lib$name'
10474 postuninstall_cmds
=
10478 shlibpath_overrides_runpath
=unknown
10480 dynamic_linker
="$host_os ld.so"
10481 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10482 need_lib_prefix
=unknown
10483 hardcode_into_libs
=no
10485 # when you set need_version to no, make sure it does not cause -set_version
10486 # flags to be left without arguments
10487 need_version
=unknown
10492 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10493 shlibpath_var
=LIBPATH
10495 # AIX 3 has no versioning support, so we append a major version to the name.
10496 soname_spec
='${libname}${release}${shared_ext}$major'
10503 hardcode_into_libs
=yes
10504 if test "$host_cpu" = ia64
; then
10505 # AIX 5 supports IA64
10506 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10507 shlibpath_var
=LD_LIBRARY_PATH
10509 # With GCC up to 2.95.x, collect2 would create an import file
10510 # for dependence libraries. The import file would start with
10511 # the line `#! .'. This would cause the generated library to
10512 # depend on `.', always an invalid library. This was fixed in
10513 # development snapshots of GCC prior to 3.0.
10515 aix4 | aix4.
[01] | aix4.
[01].
*)
10516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10518 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10521 can_build_shared
=no
10525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10526 # soname into executable. Probably we can add versioning support to
10527 # collect2, so additional links can be useful in future.
10528 if test "$aix_use_runtimelinking" = yes; then
10529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10530 # instead of lib<name>.a to let people know that these are not
10531 # typical AIX shared libraries.
10532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 # We preserve .a as extension for shared libraries through AIX4.2
10535 # and later when we are not doing run time linking.
10536 library_names_spec
='${libname}${release}.a $libname.a'
10537 soname_spec
='${libname}${release}${shared_ext}$major'
10539 shlibpath_var
=LIBPATH
10546 # Since July 2007 AmigaOS4 officially supports .so libraries.
10547 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 library_names_spec
='$libname.ixlibrary $libname.a'
10552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10553 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'
10559 library_names_spec
='${libname}${shared_ext}'
10560 dynamic_linker
="$host_os ld.so"
10561 shlibpath_var
=LIBRARY_PATH
10567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec
='${libname}${release}${shared_ext}$major'
10569 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10570 shlibpath_var
=LD_LIBRARY_PATH
10571 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10572 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10573 # the default ld.so.conf also contains /usr/contrib/lib and
10574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10575 # libtool to hard-code these into programs
10578 cygwin
* | mingw
* | pw32
* | cegcc
*)
10579 version_type
=windows
10584 case $GCC,$host_os in
10585 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10586 library_names_spec
='$libname.dll.a'
10587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10588 postinstall_cmds
='base_file=`basename \${file}`~
10589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10590 dldir=$destdir/`dirname \$dlpath`~
10591 test -d \$dldir || mkdir -p \$dldir~
10592 $install_prog $dir/$dlname \$dldir/$dlname~
10593 chmod a+x \$dldir/$dlname~
10594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10597 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10598 dlpath=$dir/\$dldll~
10600 shlibpath_overrides_runpath
=yes
10604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10605 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10610 # MinGW DLLs use traditional 'lib' prefix
10611 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10614 # pw32 DLLs use 'pw' prefix rather than 'lib'
10615 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10621 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10624 dynamic_linker
='Win32 ld.exe'
10625 # FIXME: first we should search . and the directory the executable is in
10629 darwin
* | rhapsody
*)
10630 dynamic_linker
="$host_os dyld"
10631 version_type
=darwin
10634 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10635 soname_spec
='${libname}${release}${major}$shared_ext'
10636 shlibpath_overrides_runpath
=yes
10637 shlibpath_var
=DYLD_LIBRARY_PATH
10638 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10640 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10641 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10649 soname_spec
='${libname}${release}${shared_ext}$major'
10650 shlibpath_var
=LD_LIBRARY_PATH
10653 freebsd
* | dragonfly
*)
10654 # DragonFly does not have aout. When/if they implement a new
10655 # versioning mechanism, adjust this.
10656 if test -x /usr
/bin
/objformat
; then
10657 objformat
=`/usr/bin/objformat`
10660 freebsd
[23].
*) objformat
=aout
;;
10661 *) objformat
=elf
;;
10664 version_type
=freebsd-
$objformat
10665 case $version_type in
10667 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10672 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10676 shlibpath_var
=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath
=yes
10681 freebsd3.
[01]* | freebsdelf3.
[01]*)
10682 shlibpath_overrides_runpath
=yes
10683 hardcode_into_libs
=yes
10685 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10686 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10687 shlibpath_overrides_runpath
=no
10688 hardcode_into_libs
=yes
10690 *) # from 4.6 on, and DragonFly
10691 shlibpath_overrides_runpath
=yes
10692 hardcode_into_libs
=yes
10701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10702 soname_spec
='${libname}${release}${shared_ext}$major'
10703 shlibpath_var
=LD_LIBRARY_PATH
10704 hardcode_into_libs
=yes
10711 dynamic_linker
="$host_os runtime_loader"
10712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10713 soname_spec
='${libname}${release}${shared_ext}$major'
10714 shlibpath_var
=LIBRARY_PATH
10715 shlibpath_overrides_runpath
=yes
10716 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10717 hardcode_into_libs
=yes
10720 hpux9
* | hpux10
* | hpux11
*)
10721 # Give a soname corresponding to the major version so that dld.sl refuses to
10722 # link against other versions.
10729 hardcode_into_libs
=yes
10730 dynamic_linker
="$host_os dld.so"
10731 shlibpath_var
=LD_LIBRARY_PATH
10732 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10733 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec
='${libname}${release}${shared_ext}$major'
10735 if test "X$HPUX_IA64_MODE" = X32
; then
10736 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10738 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10740 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10744 hardcode_into_libs
=yes
10745 dynamic_linker
="$host_os dld.sl"
10746 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10747 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec
='${libname}${release}${shared_ext}$major'
10750 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10751 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10755 dynamic_linker
="$host_os dld.sl"
10756 shlibpath_var
=SHLIB_PATH
10757 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 soname_spec
='${libname}${release}${shared_ext}$major'
10762 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10763 postinstall_cmds
='chmod 555 $lib'
10764 # or fails outright, so override atomically:
10765 install_override_mode
=555
10772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10773 soname_spec
='${libname}${release}${shared_ext}$major'
10774 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10775 shlibpath_var
=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath
=no
10777 hardcode_into_libs
=yes
10780 irix5
* | irix6
* | nonstopux
*)
10782 nonstopux
*) version_type
=nonstopux
;;
10784 if test "$lt_cv_prog_gnu_ld" = yes; then
10792 soname_spec
='${libname}${release}${shared_ext}$major'
10793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10795 irix5
* | nonstopux
*)
10796 libsuff
= shlibsuff
=
10799 case $LD in # libtool.m4 will add one of these switches to LD
10800 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10801 libsuff
= shlibsuff
= libmagic
=32-bit;;
10802 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10803 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10804 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10805 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10806 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10810 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10811 shlibpath_overrides_runpath
=no
10812 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10813 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10814 hardcode_into_libs
=yes
10817 # No shared lib support for Linux oldld, aout, or coff.
10818 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10822 # This must be Linux ELF.
10823 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 soname_spec
='${libname}${release}${shared_ext}$major'
10829 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10830 shlibpath_var
=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath
=no
10833 # Some binutils ld are patched to set DT_RUNPATH
10834 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10835 $as_echo_n "(cached) " >&6
10837 lt_cv_shlibpath_overrides_runpath
=no
10838 save_LDFLAGS
=$LDFLAGS
10839 save_libdir
=$libdir
10840 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10841 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10853 if ac_fn_c_try_link
"$LINENO"; then :
10854 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10855 lt_cv_shlibpath_overrides_runpath
=yes
10858 rm -f core conftest.err conftest.
$ac_objext \
10859 conftest
$ac_exeext conftest.
$ac_ext
10860 LDFLAGS
=$save_LDFLAGS
10861 libdir
=$save_libdir
10865 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10867 # This implies no fast_install, which is unacceptable.
10868 # Some rework will be needed to allow for fast_install
10869 # before this can be enabled.
10870 hardcode_into_libs
=yes
10872 # Append ld.so.conf contents to the search path
10873 if test -f /etc
/ld.so.conf
; then
10874 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' ' '`
10875 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10878 # We used to test for /lib/ld.so.1 and disable shared libraries on
10879 # powerpc, because MkLinux only supported shared libraries with the
10880 # GNU dynamic linker. Since this was broken with cross compilers,
10881 # most powerpc-linux boxes support dynamic linking these days and
10882 # people can always --disable-shared, the test was removed, and we
10883 # assume the GNU/Linux dynamic linker is in use.
10884 dynamic_linker
='GNU/Linux ld.so'
10891 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10893 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10894 dynamic_linker
='NetBSD (a.out) ld.so'
10896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10897 soname_spec
='${libname}${release}${shared_ext}$major'
10898 dynamic_linker
='NetBSD ld.elf_so'
10900 shlibpath_var
=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath
=yes
10902 hardcode_into_libs
=yes
10907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908 shlibpath_var
=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath
=yes
10916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec
='${libname}${release}${shared_ext}$major'
10918 shlibpath_var
=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath
=no
10920 hardcode_into_libs
=yes
10921 dynamic_linker
='ldqnx.so'
10926 sys_lib_dlsearch_path_spec
="/usr/lib"
10928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10930 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10931 *) need_version
=no
;;
10933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10934 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10935 shlibpath_var
=LD_LIBRARY_PATH
10936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10938 openbsd2.
[89] | openbsd2.
[89].
*)
10939 shlibpath_overrides_runpath
=no
10942 shlibpath_overrides_runpath
=yes
10946 shlibpath_overrides_runpath
=yes
10951 libname_spec
='$name'
10954 library_names_spec
='$libname${shared_ext} $libname.a'
10955 dynamic_linker
='OS/2 ld.exe'
10956 shlibpath_var
=LIBPATH
10959 osf3
* | osf4
* | osf5
*)
10963 soname_spec
='${libname}${release}${shared_ext}$major'
10964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 shlibpath_var
=LD_LIBRARY_PATH
10966 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10967 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec
='${libname}${release}${shared_ext}$major'
10980 shlibpath_var
=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath
=yes
10982 hardcode_into_libs
=yes
10983 # ldd complains unless libraries are executable
10984 postinstall_cmds
='chmod +x $lib'
10989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10990 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10991 shlibpath_var
=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath
=yes
10993 if test "$with_gnu_ld" = yes; then
11001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec
='${libname}${release}${shared_ext}$major'
11003 shlibpath_var
=LD_LIBRARY_PATH
11004 case $host_vendor in
11006 shlibpath_overrides_runpath
=no
11008 runpath_var
=LD_RUN_PATH
11016 shlibpath_overrides_runpath
=no
11017 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11023 if test -d /usr
/nec
;then
11025 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11026 soname_spec
='$libname${shared_ext}.$major'
11027 shlibpath_var
=LD_LIBRARY_PATH
11031 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11032 version_type
=freebsd-elf
11035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11036 soname_spec
='${libname}${release}${shared_ext}$major'
11037 shlibpath_var
=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath
=yes
11039 hardcode_into_libs
=yes
11040 if test "$with_gnu_ld" = yes; then
11041 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11043 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11046 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11050 sys_lib_dlsearch_path_spec
='/usr/lib'
11054 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 shlibpath_var
=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath
=no
11061 hardcode_into_libs
=yes
11066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec
='${libname}${release}${shared_ext}$major'
11068 shlibpath_var
=LD_LIBRARY_PATH
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11076 $as_echo "$dynamic_linker" >&6; }
11077 test "$dynamic_linker" = no
&& can_build_shared
=no
11079 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11080 if test "$GCC" = yes; then
11081 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11085 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11087 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11088 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11185 if test -n "$hardcode_libdir_flag_spec" ||
11186 test -n "$runpath_var" ||
11187 test "X$hardcode_automatic" = "Xyes" ; then
11189 # We can hardcode non-existent directories.
11190 if test "$hardcode_direct" != no
&&
11191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11192 # have to relink, otherwise we might link with an installed library
11193 # when we should be linking with a yet-to-be-installed one
11194 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11195 test "$hardcode_minus_L" != no
; then
11196 # Linking always hardcodes the temporary library directory.
11197 hardcode_action
=relink
11199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11200 hardcode_action
=immediate
11203 # We cannot hardcode anything, or else we can only hardcode existing
11205 hardcode_action
=unsupported
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11208 $as_echo "$hardcode_action" >&6; }
11210 if test "$hardcode_action" = relink ||
11211 test "$inherit_rpath" = yes; then
11212 # Fast installation is not supported
11213 enable_fast_install
=no
11214 elif test "$shlibpath_overrides_runpath" = yes ||
11215 test "$enable_shared" = no
; then
11216 # Fast installation is not necessary
11217 enable_fast_install
=needless
11225 if test "x$enable_dlopen" != xyes
; then
11226 enable_dlopen
=unknown
11227 enable_dlopen_self
=unknown
11228 enable_dlopen_self_static
=unknown
11235 lt_cv_dlopen
="load_add_on"
11237 lt_cv_dlopen_self
=yes
11240 mingw
* | pw32
* | cegcc
*)
11241 lt_cv_dlopen
="LoadLibrary"
11246 lt_cv_dlopen
="dlopen"
11251 # if libdl is installed we need to link against it
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11254 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11255 $as_echo_n "(cached) " >&6
11257 ac_check_lib_save_LIBS
=$LIBS
11259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11262 /* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
11277 if ac_fn_c_try_link
"$LINENO"; then :
11278 ac_cv_lib_dl_dlopen
=yes
11280 ac_cv_lib_dl_dlopen
=no
11282 rm -f core conftest.err conftest.
$ac_objext \
11283 conftest
$ac_exeext conftest.
$ac_ext
11284 LIBS
=$ac_check_lib_save_LIBS
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11288 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11289 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11292 lt_cv_dlopen
="dyld"
11294 lt_cv_dlopen_self
=yes
11301 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11302 if test "x$ac_cv_func_shl_load" = xyes
; then :
11303 lt_cv_dlopen
="shl_load"
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11306 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11307 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11308 $as_echo_n "(cached) " >&6
11310 ac_check_lib_save_LIBS
=$LIBS
11312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11325 return shl_load ();
11330 if ac_fn_c_try_link
"$LINENO"; then :
11331 ac_cv_lib_dld_shl_load
=yes
11333 ac_cv_lib_dld_shl_load
=no
11335 rm -f core conftest.err conftest.
$ac_objext \
11336 conftest
$ac_exeext conftest.
$ac_ext
11337 LIBS
=$ac_check_lib_save_LIBS
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11340 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11341 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11342 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11344 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11345 if test "x$ac_cv_func_dlopen" = xyes
; then :
11346 lt_cv_dlopen
="dlopen"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11350 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11351 $as_echo_n "(cached) " >&6
11353 ac_check_lib_save_LIBS
=$LIBS
11355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11358 /* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11373 if ac_fn_c_try_link
"$LINENO"; then :
11374 ac_cv_lib_dl_dlopen
=yes
11376 ac_cv_lib_dl_dlopen
=no
11378 rm -f core conftest.err conftest.
$ac_objext \
11379 conftest
$ac_exeext conftest.
$ac_ext
11380 LIBS
=$ac_check_lib_save_LIBS
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11384 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11385 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11388 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11389 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11390 $as_echo_n "(cached) " >&6
11392 ac_check_lib_save_LIBS
=$LIBS
11393 LIBS
="-lsvld $LIBS"
11394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11412 if ac_fn_c_try_link
"$LINENO"; then :
11413 ac_cv_lib_svld_dlopen
=yes
11415 ac_cv_lib_svld_dlopen
=no
11417 rm -f core conftest.err conftest.
$ac_objext \
11418 conftest
$ac_exeext conftest.
$ac_ext
11419 LIBS
=$ac_check_lib_save_LIBS
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11422 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11423 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11424 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11427 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11428 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11429 $as_echo_n "(cached) " >&6
11431 ac_check_lib_save_LIBS
=$LIBS
11433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11446 return dld_link ();
11451 if ac_fn_c_try_link
"$LINENO"; then :
11452 ac_cv_lib_dld_dld_link
=yes
11454 ac_cv_lib_dld_dld_link
=no
11456 rm -f core conftest.err conftest.
$ac_objext \
11457 conftest
$ac_exeext conftest.
$ac_ext
11458 LIBS
=$ac_check_lib_save_LIBS
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11461 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11462 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11463 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11484 if test "x$lt_cv_dlopen" != xno
; then
11490 case $lt_cv_dlopen in
11492 save_CPPFLAGS
="$CPPFLAGS"
11493 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11495 save_LDFLAGS
="$LDFLAGS"
11496 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11499 LIBS
="$lt_cv_dlopen_libs $LIBS"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11502 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11503 if ${lt_cv_dlopen_self+:} false
; then :
11504 $as_echo_n "(cached) " >&6
11506 if test "$cross_compiling" = yes; then :
11507 lt_cv_dlopen_self
=cross
11509 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11510 lt_status
=$lt_dlunknown
11511 cat > conftest.
$ac_ext <<_LT_EOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11522 # define LT_DLGLOBAL RTLD_GLOBAL
11525 # define LT_DLGLOBAL DL_GLOBAL
11527 # define LT_DLGLOBAL 0
11531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11532 find out it does not work in some platform. */
11533 #ifndef LT_DLLAZY_OR_NOW
11535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11538 # define LT_DLLAZY_OR_NOW DL_LAZY
11541 # define LT_DLLAZY_OR_NOW RTLD_NOW
11544 # define LT_DLLAZY_OR_NOW DL_NOW
11546 # define LT_DLLAZY_OR_NOW 0
11553 /* When -fvisbility=hidden is used, assume the code has been annotated
11554 correspondingly for the symbols needed. */
11555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11556 void fnord () __attribute__((visibility("default")));
11559 void fnord () { int i=42; }
11562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11563 int status = $lt_dlunknown;
11567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11571 else puts (dlerror ());
11573 /* dlclose (self); */
11581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11582 (eval $ac_link) 2>&5
11584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11585 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11586 (.
/conftest
; exit; ) >&5 2>/dev
/null
11588 case x
$lt_status in
11589 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11590 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11591 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11594 # compilation failed
11595 lt_cv_dlopen_self
=no
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11603 $as_echo "$lt_cv_dlopen_self" >&6; }
11605 if test "x$lt_cv_dlopen_self" = xyes
; then
11606 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11608 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11609 if ${lt_cv_dlopen_self_static+:} false
; then :
11610 $as_echo_n "(cached) " >&6
11612 if test "$cross_compiling" = yes; then :
11613 lt_cv_dlopen_self_static
=cross
11615 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11616 lt_status
=$lt_dlunknown
11617 cat > conftest.
$ac_ext <<_LT_EOF
11618 #line 11618 "configure"
11619 #include "confdefs.h"
11628 # define LT_DLGLOBAL RTLD_GLOBAL
11631 # define LT_DLGLOBAL DL_GLOBAL
11633 # define LT_DLGLOBAL 0
11637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11638 find out it does not work in some platform. */
11639 #ifndef LT_DLLAZY_OR_NOW
11641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11644 # define LT_DLLAZY_OR_NOW DL_LAZY
11647 # define LT_DLLAZY_OR_NOW RTLD_NOW
11650 # define LT_DLLAZY_OR_NOW DL_NOW
11652 # define LT_DLLAZY_OR_NOW 0
11659 /* When -fvisbility=hidden is used, assume the code has been annotated
11660 correspondingly for the symbols needed. */
11661 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11662 void fnord () __attribute__((visibility("default")));
11665 void fnord () { int i=42; }
11668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11669 int status = $lt_dlunknown;
11673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11676 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11677 else puts (dlerror ());
11679 /* dlclose (self); */
11687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11688 (eval $ac_link) 2>&5
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11692 (.
/conftest
; exit; ) >&5 2>/dev
/null
11694 case x
$lt_status in
11695 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11696 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11697 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11700 # compilation failed
11701 lt_cv_dlopen_self_static
=no
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11709 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11712 CPPFLAGS
="$save_CPPFLAGS"
11713 LDFLAGS
="$save_LDFLAGS"
11718 case $lt_cv_dlopen_self in
11719 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11720 *) enable_dlopen_self
=unknown
;;
11723 case $lt_cv_dlopen_self_static in
11724 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11725 *) enable_dlopen_self_static
=unknown
;;
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11748 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11749 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11750 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11751 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 $as_echo "yes" >&6; }
11755 # FIXME - insert some real tests, host_os isn't really good enough
11758 if test -n "$STRIP" ; then
11759 striplib
="$STRIP -x"
11760 old_striplib
="$STRIP -S"
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11786 # Report which library types will actually be built
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11788 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11790 $as_echo "$can_build_shared" >&6; }
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11793 $as_echo_n "checking whether to build shared libraries... " >&6; }
11794 test "$can_build_shared" = "no" && enable_shared
=no
11796 # On AIX, shared libraries and static libraries use the same namespace, and
11797 # are all built from PIC.
11800 test "$enable_shared" = yes && enable_static
=no
11801 if test -n "$RANLIB"; then
11802 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11803 postinstall_cmds
='$RANLIB $lib'
11808 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11809 test "$enable_shared" = yes && enable_static
=no
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11814 $as_echo "$enable_shared" >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11817 $as_echo_n "checking whether to build static libraries... " >&6; }
11818 # Make sure either enable_shared or enable_static is yes.
11819 test "$enable_shared" = yes || enable_static
=yes
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11821 $as_echo "$enable_static" >&6; }
11828 ac_cpp
='$CPP $CPPFLAGS'
11829 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11847 ac_config_commands
="$ac_config_commands libtool"
11852 # Only expand once:
11858 gdc_save_DFLAGS
=$GDCFLAGS
11859 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11862 # Source file extension for D test sources.
11865 # Object file extension for compiled D test sources.
11869 # Code to be used in simple compile tests
11870 lt_simple_compile_test_code
="module mod; extern(C) int main() { return 0; }"
11872 # Code to be used in simple link tests
11873 lt_simple_link_test_code
='module mod; extern(C) int main() { return 0; }'
11875 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11882 # If no C compiler was specified, use CC.
11885 # If no C compiler flags were specified, use CFLAGS.
11886 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11888 # Allow CC to be a program name with arguments.
11892 # save warnings/boilerplate of simple test code
11893 ac_outfile
=conftest.
$ac_objext
11894 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11895 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11896 _lt_compiler_boilerplate
=`cat conftest.err`
11899 ac_outfile
=conftest.
$ac_objext
11900 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11901 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11902 _lt_linker_boilerplate
=`cat conftest.err`
11906 # Allow CC to be a program name with arguments.
11908 lt_save_CFLAGS
=$CFLAGS
11909 lt_save_DFLAGS
=$GDCFLAGS
11913 # Need to specify location for object.d
11914 GDCFLAGS
="-nophoboslib $GDCFLAGS"
11919 for cc_temp
in $compiler""; do
11921 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11922 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11927 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11930 # GDC did not exist at the time GCC didn't implicitly link libc in.
11931 archive_cmds_need_lc_D
=no
11933 old_archive_cmds_D
=$old_archive_cmds
11934 reload_flag_D
=$reload_flag
11935 reload_cmds_D
=$reload_cmds
11938 ## There is no encapsulation within the following macros, do not change
11939 ## the running order or otherwise move them around unless you know exactly
11940 ## what you are doing...
11941 if test -n "$compiler"; then
11943 lt_prog_compiler_no_builtin_flag_D
=
11945 if test "$GCC" = yes; then
11946 case $cc_basename in
11948 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
11950 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11954 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11955 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
11956 $as_echo_n "(cached) " >&6
11958 lt_cv_prog_compiler_rtti_exceptions
=no
11959 ac_outfile
=conftest.
$ac_objext
11960 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11961 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11962 # Insert the option either (1) after the last *FLAGS variable, or
11963 # (2) before a word containing "conftest.", or (3) at the end.
11964 # Note that $ac_compile itself does not contain backslashes and begins
11965 # with a dollar sign (not a hyphen), so the echo should work correctly.
11966 # The option is referenced via a variable to avoid confusing sed.
11967 lt_compile
=`echo "$ac_compile" | $SED \
11968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11970 -e 's:$: $lt_compiler_flag:'`
11971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11972 (eval "$lt_compile" 2>conftest.err
)
11974 cat conftest.err
>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 if (exit $ac_status) && test -s "$ac_outfile"; then
11977 # The compiler can only warn and ignore the option if not recognized
11978 # So say no if there are warnings other than the usual output.
11979 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11980 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11981 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11982 lt_cv_prog_compiler_rtti_exceptions
=yes
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11989 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11991 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11992 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12001 lt_prog_compiler_wl_D
=
12002 lt_prog_compiler_pic_D
=
12003 lt_prog_compiler_static_D
=
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12008 if test "$GCC" = yes; then
12009 lt_prog_compiler_wl_D
='-Wl,'
12010 lt_prog_compiler_static_D
='-static'
12014 # All AIX code is PIC.
12015 if test "$host_cpu" = ia64
; then
12016 # AIX 5 now supports IA64 processor
12017 lt_prog_compiler_static_D
='-Bstatic'
12019 lt_prog_compiler_pic_D
='-fPIC'
12025 # see comment about AmigaOS4 .so support
12026 lt_prog_compiler_pic_D
='-fPIC'
12029 # FIXME: we need at least 68020 code to build shared libraries, but
12030 # adding the `-m68020' flag to GCC prevents building anything better,
12032 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12037 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12038 # PIC is the default for these OSes.
12041 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12042 # This hack is so that the source file can tell whether it is being
12043 # built for inclusion in a dll (and should export symbols for example).
12044 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12045 # (--disable-auto-import) libraries
12046 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12049 darwin
* | rhapsody
*)
12050 # PIC is the default on this platform
12051 # Common symbols not allowed in MH_DYLIB files
12052 lt_prog_compiler_pic_D
='-fno-common'
12056 # PIC is the default for Haiku.
12057 # The "-static" flag exists, but is broken.
12058 lt_prog_compiler_static_D
=
12062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12064 # sets the default TLS model and affects inlining.
12070 lt_prog_compiler_pic_D
='-fPIC'
12076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12077 # Instead, we relocate shared libraries at runtime.
12081 # Just because we use GCC doesn't mean we suddenly get shared libraries
12082 # on systems that don't support them.
12083 lt_prog_compiler_can_build_shared_D
=no
12088 # QNX uses GNU C++, but need to define -shared option too, otherwise
12089 # it will coredump.
12090 lt_prog_compiler_pic_D
='-fPIC -shared'
12094 if test -d /usr
/nec
; then
12095 lt_prog_compiler_pic_D
=-Kconform_pic
12100 lt_prog_compiler_pic_D
='-fPIC'
12104 case $cc_basename in
12105 nvcc
*) # Cuda Compiler Driver 2.2
12106 lt_prog_compiler_wl_D
='-Xlinker '
12107 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12111 # PORTME Check for flag to pass linker flags through the system compiler.
12114 lt_prog_compiler_wl_D
='-Wl,'
12115 if test "$host_cpu" = ia64
; then
12116 # AIX 5 now supports IA64 processor
12117 lt_prog_compiler_static_D
='-Bstatic'
12119 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12123 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12124 # This hack is so that the source file can tell whether it is being
12125 # built for inclusion in a dll (and should export symbols for example).
12126 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12129 hpux9
* | hpux10
* | hpux11
*)
12130 lt_prog_compiler_wl_D
='-Wl,'
12131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12132 # not for PA HP-UX.
12138 lt_prog_compiler_pic_D
='+Z'
12141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12142 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12145 irix5
* | irix6
* | nonstopux
*)
12146 lt_prog_compiler_wl_D
='-Wl,'
12147 # PIC (with -KPIC) is the default.
12148 lt_prog_compiler_static_D
='-non_shared'
12151 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12152 case $cc_basename in
12153 # old Intel for x86_64 which still supported -KPIC.
12155 lt_prog_compiler_wl_D
='-Wl,'
12156 lt_prog_compiler_pic_D
='-KPIC'
12157 lt_prog_compiler_static_D
='-static'
12159 # icc used to be incompatible with GCC.
12160 # ICC 10 doesn't accept -KPIC any more.
12162 lt_prog_compiler_wl_D
='-Wl,'
12163 lt_prog_compiler_pic_D
='-fPIC'
12164 lt_prog_compiler_static_D
='-static'
12166 # Lahey Fortran 8.1.
12168 lt_prog_compiler_wl_D
='-Wl,'
12169 lt_prog_compiler_pic_D
='--shared'
12170 lt_prog_compiler_static_D
='--static'
12172 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12173 # Portland Group compilers (*not* the Pentium gcc compiler,
12174 # which looks to be a dead project)
12175 lt_prog_compiler_wl_D
='-Wl,'
12176 lt_prog_compiler_pic_D
='-fpic'
12177 lt_prog_compiler_static_D
='-Bstatic'
12180 lt_prog_compiler_wl_D
='-Wl,'
12181 # All Alpha code is PIC.
12182 lt_prog_compiler_static_D
='-non_shared'
12184 xl
* | bgxl
* | bgf
* | mpixl
*)
12185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12186 lt_prog_compiler_wl_D
='-Wl,'
12187 lt_prog_compiler_pic_D
='-qpic'
12188 lt_prog_compiler_static_D
='-qstaticlink'
12191 case `$CC -V 2>&1 | sed 5q` in
12192 *Sun\ F
* |
*Sun
*Fortran
*)
12193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12194 lt_prog_compiler_pic_D
='-KPIC'
12195 lt_prog_compiler_static_D
='-Bstatic'
12196 lt_prog_compiler_wl_D
=''
12200 lt_prog_compiler_pic_D
='-KPIC'
12201 lt_prog_compiler_static_D
='-Bstatic'
12202 lt_prog_compiler_wl_D
='-Wl,'
12210 lt_prog_compiler_pic_D
='-KPIC'
12211 lt_prog_compiler_static_D
='-Bstatic'
12215 # QNX uses GNU C++, but need to define -shared option too, otherwise
12216 # it will coredump.
12217 lt_prog_compiler_pic_D
='-fPIC -shared'
12220 osf3
* | osf4
* | osf5
*)
12221 lt_prog_compiler_wl_D
='-Wl,'
12222 # All OSF/1 code is PIC.
12223 lt_prog_compiler_static_D
='-non_shared'
12227 lt_prog_compiler_static_D
='-non_shared'
12231 lt_prog_compiler_pic_D
='-KPIC'
12232 lt_prog_compiler_static_D
='-Bstatic'
12233 case $cc_basename in
12234 f77
* | f90
* | f95
*)
12235 lt_prog_compiler_wl_D
='-Qoption ld ';;
12237 lt_prog_compiler_wl_D
='-Wl,';;
12242 lt_prog_compiler_wl_D
='-Qoption ld '
12243 lt_prog_compiler_pic_D
='-PIC'
12244 lt_prog_compiler_static_D
='-Bstatic'
12247 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12248 lt_prog_compiler_wl_D
='-Wl,'
12249 lt_prog_compiler_pic_D
='-KPIC'
12250 lt_prog_compiler_static_D
='-Bstatic'
12254 if test -d /usr
/nec
;then
12255 lt_prog_compiler_pic_D
='-Kconform_pic'
12256 lt_prog_compiler_static_D
='-Bstatic'
12260 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12261 lt_prog_compiler_wl_D
='-Wl,'
12262 lt_prog_compiler_pic_D
='-KPIC'
12263 lt_prog_compiler_static_D
='-Bstatic'
12267 lt_prog_compiler_wl_D
='-Wl,'
12268 lt_prog_compiler_can_build_shared_D
=no
12272 lt_prog_compiler_pic_D
='-pic'
12273 lt_prog_compiler_static_D
='-Bstatic'
12277 lt_prog_compiler_can_build_shared_D
=no
12283 # For platforms which do not support PIC, -DPIC is meaningless:
12285 lt_prog_compiler_pic_D
=
12288 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12292 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12297 # Check to make sure the PIC flag actually works.
12299 if test -n "$lt_prog_compiler_pic_D"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12301 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12302 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12303 $as_echo_n "(cached) " >&6
12305 lt_cv_prog_compiler_pic_works_D
=no
12306 ac_outfile
=conftest.
$ac_objext
12307 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12308 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12309 # Insert the option either (1) after the last *FLAGS variable, or
12310 # (2) before a word containing "conftest.", or (3) at the end.
12311 # Note that $ac_compile itself does not contain backslashes and begins
12312 # with a dollar sign (not a hyphen), so the echo should work correctly.
12313 # The option is referenced via a variable to avoid confusing sed.
12314 lt_compile
=`echo "$ac_compile" | $SED \
12315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12317 -e 's:$: $lt_compiler_flag:'`
12318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12319 (eval "$lt_compile" 2>conftest.err
)
12321 cat conftest.err
>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 if (exit $ac_status) && test -s "$ac_outfile"; then
12324 # The compiler can only warn and ignore the option if not recognized
12325 # So say no if there are warnings other than the usual output.
12326 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12327 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12328 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12329 lt_cv_prog_compiler_pic_works_D
=yes
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12336 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12338 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12339 case $lt_prog_compiler_pic_D in
12341 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12344 lt_prog_compiler_pic_D
=
12345 lt_prog_compiler_can_build_shared_D
=no
12353 # Check to make sure the static flag actually works.
12355 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12357 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12358 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12359 $as_echo_n "(cached) " >&6
12361 lt_cv_prog_compiler_static_works_D
=no
12362 save_LDFLAGS
="$LDFLAGS"
12363 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12364 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12365 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12366 # The linker can only warn and ignore the option if not recognized
12367 # So say no if there are warnings
12368 if test -s conftest.err
; then
12369 # Append any errors to the config.log.
12370 cat conftest.err
1>&5
12371 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12372 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12373 if diff conftest.exp conftest.er2
>/dev
/null
; then
12374 lt_cv_prog_compiler_static_works_D
=yes
12377 lt_cv_prog_compiler_static_works_D
=yes
12381 LDFLAGS
="$save_LDFLAGS"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12385 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12387 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12390 lt_prog_compiler_static_D
=
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12398 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12399 $as_echo_n "(cached) " >&6
12401 lt_cv_prog_compiler_c_o_D
=no
12402 $RM -r conftest
2>/dev
/null
12406 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12408 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12409 # Insert the option either (1) after the last *FLAGS variable, or
12410 # (2) before a word containing "conftest.", or (3) at the end.
12411 # Note that $ac_compile itself does not contain backslashes and begins
12412 # with a dollar sign (not a hyphen), so the echo should work correctly.
12413 lt_compile
=`echo "$ac_compile" | $SED \
12414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12416 -e 's:$: $lt_compiler_flag:'`
12417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12418 (eval "$lt_compile" 2>out
/conftest.err
)
12420 cat out
/conftest.err
>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12424 # The compiler can only warn and ignore the option if not recognized
12425 # So say no if there are warnings
12426 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12427 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12428 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12429 lt_cv_prog_compiler_c_o_D
=yes
12434 # SGI C++ compiler will create directory out/ii_files/ for
12435 # template instantiation
12436 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12437 $RM out
/* && rmdir out
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12444 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12450 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12451 $as_echo_n "(cached) " >&6
12453 lt_cv_prog_compiler_c_o_D
=no
12454 $RM -r conftest
2>/dev
/null
12458 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12460 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12461 # Insert the option either (1) after the last *FLAGS variable, or
12462 # (2) before a word containing "conftest.", or (3) at the end.
12463 # Note that $ac_compile itself does not contain backslashes and begins
12464 # with a dollar sign (not a hyphen), so the echo should work correctly.
12465 lt_compile
=`echo "$ac_compile" | $SED \
12466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12468 -e 's:$: $lt_compiler_flag:'`
12469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12470 (eval "$lt_compile" 2>out
/conftest.err
)
12472 cat out
/conftest.err
>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12476 # The compiler can only warn and ignore the option if not recognized
12477 # So say no if there are warnings
12478 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12479 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12480 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12481 lt_cv_prog_compiler_c_o_D
=yes
12486 # SGI C++ compiler will create directory out/ii_files/ for
12487 # template instantiation
12488 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12489 $RM out
/* && rmdir out
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12496 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12501 hard_links
="nottested"
12502 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12503 # do not overwrite the value of need_locks provided by the user
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12505 $as_echo_n "checking if we can lock with hard links... " >&6; }
12508 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12510 ln conftest.a conftest.b
2>&5 || hard_links
=no
12511 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12513 $as_echo "$hard_links" >&6; }
12514 if test "$hard_links" = no
; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12516 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12529 allow_undefined_flag_D
=
12530 always_export_symbols_D
=no
12532 archive_expsym_cmds_D
=
12533 compiler_needs_object_D
=no
12534 enable_shared_with_static_runtimes_D
=no
12535 export_dynamic_flag_spec_D
=
12536 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12537 hardcode_automatic_D
=no
12538 hardcode_direct_D
=no
12539 hardcode_direct_absolute_D
=no
12540 hardcode_libdir_flag_spec_D
=
12541 hardcode_libdir_flag_spec_ld_D
=
12542 hardcode_libdir_separator_D
=
12543 hardcode_minus_L_D
=no
12544 hardcode_shlibpath_var_D
=unsupported
12546 link_all_deplibs_D
=unknown
12548 module_expsym_cmds_D
=
12549 old_archive_from_new_cmds_D
=
12550 old_archive_from_expsyms_cmds_D
=
12551 thread_safe_flag_spec_D
=
12552 whole_archive_flag_spec_D
=
12553 # include_expsyms should be a list of space-separated symbols to be *always*
12554 # included in the symbol list
12556 # exclude_expsyms can be an extended regexp of symbols to exclude
12557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12559 # as well as any symbol that contains `d'.
12560 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12562 # platforms (ab)use it in PIC code, but their linkers get confused if
12563 # the symbol is explicitly referenced. Since portable code cannot
12564 # rely on this symbol name, it's probably fine to never include it in
12565 # preloaded symbol tables.
12566 # Exclude shared library initialization/finalization symbols.
12567 extract_expsyms_cmds
=
12570 cygwin
* | mingw
* | pw32
* | cegcc
*)
12571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12572 # When not using gcc, we currently assume that we are using
12573 # Microsoft Visual C++.
12574 if test "$GCC" != yes; then
12579 # we just hope/assume this is gcc and not c89 (= MSVC++)
12589 # On some targets, GNU ld is compatible enough with the native linker
12590 # that we're better off using the native interface for both.
12591 lt_use_gnu_ld_interface
=no
12592 if test "$with_gnu_ld" = yes; then
12595 # The AIX port of GNU ld has always aspired to compatibility
12596 # with the native linker. However, as the warning in the GNU ld
12597 # block says, versions before 2.19.5* couldn't really create working
12598 # shared libraries, regardless of the interface used.
12599 case `$LD -v 2>&1` in
12600 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12601 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12602 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12604 lt_use_gnu_ld_interface
=yes
12609 lt_use_gnu_ld_interface
=yes
12614 if test "$lt_use_gnu_ld_interface" = yes; then
12615 # If archive_cmds runs LD, not CC, wlarc should be empty
12618 # Set some defaults for GNU ld with shared library support. These
12619 # are reset later if shared libraries are not supported. Putting them
12620 # here allows them to be overridden if necessary.
12621 runpath_var
=LD_RUN_PATH
12622 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12623 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12624 # ancient GNU ld didn't support --whole-archive et. al.
12625 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12626 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12628 whole_archive_flag_spec_D
=
12630 supports_anon_versioning
=no
12631 case `$LD -v 2>&1` in
12632 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12633 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12634 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12635 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12636 *\
2.11.
*) ;; # other 2.11 versions
12637 *) supports_anon_versioning
=yes ;;
12640 # See if GNU ld supports shared libraries.
12643 # On AIX/PPC, the GNU linker is very broken
12644 if test "$host_cpu" != ia64
; then
12648 *** Warning: the GNU linker, at least up to release 2.19, is reported
12649 *** to be unable to reliably create shared libraries on AIX.
12650 *** Therefore, libtool is disabling shared libraries support. If you
12651 *** really care for shared libraries, you may want to install binutils
12652 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12653 *** You will then need to restart the configuration process.
12662 # see comment about AmigaOS4 .so support
12663 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 archive_expsym_cmds_D
=''
12667 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)'
12668 hardcode_libdir_flag_spec_D
='-L$libdir'
12669 hardcode_minus_L_D
=yes
12675 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12676 allow_undefined_flag_D
=unsupported
12677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12678 # support --undefined. This deserves some investigation. FIXME
12679 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685 cygwin
* | mingw
* | pw32
* | cegcc
*)
12686 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12687 # as there is no search path for DLLs.
12688 hardcode_libdir_flag_spec_D
='-L$libdir'
12689 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12690 allow_undefined_flag_D
=unsupported
12691 always_export_symbols_D
=no
12692 enable_shared_with_static_runtimes_D
=yes
12693 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12695 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12696 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12697 # If the export-symbols file already is a .def file (1st line
12698 # is EXPORTS), use it as is; otherwise, prepend...
12699 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12700 cp $export_symbols $output_objdir/$soname.def;
12702 echo EXPORTS > $output_objdir/$soname.def;
12703 cat $export_symbols >> $output_objdir/$soname.def;
12705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12712 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12713 link_all_deplibs_D
=yes
12717 hardcode_direct_D
=no
12718 hardcode_shlibpath_var_D
=no
12719 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12720 export_dynamic_flag_spec_D
='${wl}-E'
12721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12722 # Instead, shared libraries are loaded at an image base (0x10000000 by
12723 # default) and relocated if they conflict, which is a slow very memory
12724 # consuming and fragmenting process. To avoid this, we pick a random,
12725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12727 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'
12728 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'
12731 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12733 if test "$host_os" = linux-dietlibc
; then
12734 case $cc_basename in
12735 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12738 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12739 && test "$tmp_diet" = no
12741 tmp_addflag
=' $pic_flag'
12742 tmp_sharedflag
='-shared'
12743 case $cc_basename,$host_cpu in
12744 pgcc
*) # Portland Group C compiler
12745 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'
12746 tmp_addflag
=' $pic_flag'
12748 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12749 # Portland Group f77 and f90 compilers
12750 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'
12751 tmp_addflag
=' $pic_flag -Mnomain' ;;
12752 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12753 tmp_addflag
=' -i_dynamic' ;;
12754 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12755 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12756 ifc
* | ifort
*) # Intel Fortran compiler
12757 tmp_addflag
=' -nofor_main' ;;
12758 lf95
*) # Lahey Fortran 8.1
12759 whole_archive_flag_spec_D
=
12760 tmp_sharedflag
='--shared' ;;
12761 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12762 tmp_sharedflag
='-qmkshrobj'
12764 nvcc
*) # Cuda Compiler Driver 2.2
12765 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'
12766 compiler_needs_object_D
=yes
12769 case `$CC -V 2>&1 | sed 5q` in
12770 *Sun\ C
*) # Sun C 5.9
12771 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'
12772 compiler_needs_object_D
=yes
12773 tmp_sharedflag
='-G' ;;
12774 *Sun\ F
*) # Sun Fortran 8.3
12775 tmp_sharedflag
='-G' ;;
12777 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12779 if test "x$supports_anon_versioning" = xyes
; then
12780 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12782 echo "local: *; };" >> $output_objdir/$libname.ver~
12783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12786 case $cc_basename in
12787 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12789 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
12790 hardcode_libdir_flag_spec_D
=
12791 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
12792 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12793 if test "x$supports_anon_versioning" = xyes
; then
12794 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12796 echo "local: *; };" >> $output_objdir/$libname.ver~
12797 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12807 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12808 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12811 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12817 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12821 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12822 *** create shared libraries on Solaris systems. Therefore, libtool
12823 *** is disabling shared libraries support. We urge you to upgrade GNU
12824 *** binutils to release 2.9.1 or newer. Another option is to modify
12825 *** your PATH or compiler configuration so that the native linker is
12826 *** used, and then restart.
12829 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12830 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12837 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12838 case `$LD -v 2>&1` in
12839 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12844 *** reliably create shared libraries on SCO systems. Therefore, libtool
12845 *** is disabling shared libraries support. We urge you to upgrade GNU
12846 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12847 *** your PATH or compiler configuration so that the native linker is
12848 *** used, and then restart.
12853 # For security reasons, it is highly recommended that you always
12854 # use absolute paths for naming shared libraries, and exclude the
12855 # DT_RUNPATH tag from executables and libraries. But doing so
12856 # requires that you compile everything twice, which is a pain.
12857 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12858 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12859 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12860 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12869 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12871 hardcode_direct_D
=yes
12872 hardcode_shlibpath_var_D
=no
12876 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12877 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12878 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12885 if test "$ld_shlibs_D" = no
; then
12887 hardcode_libdir_flag_spec_D
=
12888 export_dynamic_flag_spec_D
=
12889 whole_archive_flag_spec_D
=
12892 # PORTME fill in a description of your system's linker (not GNU ld)
12895 allow_undefined_flag_D
=unsupported
12896 always_export_symbols_D
=yes
12897 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'
12898 # Note: this linker hardcodes the directories in LIBPATH if there
12899 # are no directories specified by -L.
12900 hardcode_minus_L_D
=yes
12901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12902 # Neither direct hardcoding nor static linking is supported with a
12904 hardcode_direct_D
=unsupported
12909 if test "$host_cpu" = ia64
; then
12910 # On IA64, the linker does run time linking by default, so we don't
12911 # have to do anything special.
12912 aix_use_runtimelinking
=no
12913 exp_sym_flag
='-Bexport'
12916 # If we're using GNU nm, then we don't want the "-C" option.
12917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12918 # Also, AIX nm treats weak defined symbols like other global
12919 # defined symbols, whereas GNU nm marks them as "W".
12920 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12921 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'
12923 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'
12925 aix_use_runtimelinking
=no
12927 # Test if we are trying to use run time linking or normal
12928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12929 # need to do runtime linking.
12930 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12931 for ld_flag
in $LDFLAGS; do
12932 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12933 aix_use_runtimelinking
=yes
12940 exp_sym_flag
='-bexport'
12941 no_entry_flag
='-bnoentry'
12944 # When large executables or shared objects are built, AIX ld can
12945 # have problems creating the table of contents. If linking a library
12946 # or program results in "error TOC overflow" add -mminimal-toc to
12947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12951 hardcode_direct_D
=yes
12952 hardcode_direct_absolute_D
=yes
12953 hardcode_libdir_separator_D
=':'
12954 link_all_deplibs_D
=yes
12955 file_list_spec_D
='${wl}-f,'
12957 if test "$GCC" = yes; then
12958 case $host_os in aix4.
[012]|aix4.
[012].
*)
12959 # We only want to do this on AIX 4.2 and lower, the check
12960 # below for broken collect2 doesn't work under 4.3+
12961 collect2name
=`${CC} -print-prog-name=collect2`
12962 if test -f "$collect2name" &&
12963 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12965 # We have reworked collect2
12968 # We have old collect2
12969 hardcode_direct_D
=unsupported
12970 # It fails to find uninstalled libraries when the uninstalled
12971 # path is not listed in the libpath. Setting hardcode_minus_L
12972 # to unsupported forces relinking
12973 hardcode_minus_L_D
=yes
12974 hardcode_libdir_flag_spec_D
='-L$libdir'
12975 hardcode_libdir_separator_D
=
12979 shared_flag
='-shared'
12980 if test "$aix_use_runtimelinking" = yes; then
12981 shared_flag
="$shared_flag "'${wl}-G'
12985 if test "$host_cpu" = ia64
; then
12986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12987 # chokes on -Wl,-G. The following line is correct:
12990 if test "$aix_use_runtimelinking" = yes; then
12991 shared_flag
='${wl}-G'
12993 shared_flag
='${wl}-bM:SRE'
12998 export_dynamic_flag_spec_D
='${wl}-bexpall'
12999 # It seems that -bexpall does not export symbols beginning with
13000 # underscore (_), so it is better to generate a list of symbols to export.
13001 always_export_symbols_D
=yes
13002 if test "$aix_use_runtimelinking" = yes; then
13003 # Warning - without using the other runtime loading flags (-brtl),
13004 # -berok will link without error, but may produce a broken library.
13005 allow_undefined_flag_D
='-berok'
13006 # Determine the default libpath from the value encoded in an
13007 # empty executable.
13008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13019 if ac_fn_c_try_link
"$LINENO"; then :
13021 lt_aix_libpath_sed
='
13022 /Import File Strings/,/^$/ {
13028 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13029 # Check for a 64-bit object if we didn't find anything.
13030 if test -z "$aix_libpath"; then
13031 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13034 rm -f core conftest.err conftest.
$ac_objext \
13035 conftest
$ac_exeext conftest.
$ac_ext
13036 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13038 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13039 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"
13041 if test "$host_cpu" = ia64
; then
13042 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13043 allow_undefined_flag_D
="-z nodefs"
13044 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"
13046 # Determine the default libpath from the value encoded in an
13047 # empty executable.
13048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13059 if ac_fn_c_try_link
"$LINENO"; then :
13061 lt_aix_libpath_sed
='
13062 /Import File Strings/,/^$/ {
13068 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13069 # Check for a 64-bit object if we didn't find anything.
13070 if test -z "$aix_libpath"; then
13071 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13074 rm -f core conftest.err conftest.
$ac_objext \
13075 conftest
$ac_exeext conftest.
$ac_ext
13076 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13078 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13079 # Warning - without using the other run time loading flags,
13080 # -berok will link without error, but may produce a broken library.
13081 no_undefined_flag_D
=' ${wl}-bernotok'
13082 allow_undefined_flag_D
=' ${wl}-berok'
13083 if test "$with_gnu_ld" = yes; then
13084 # We only use this code for GNU lds that support --whole-archive.
13085 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13087 # Exported symbols can be pulled into shared objects from archives
13088 whole_archive_flag_spec_D
='$convenience'
13090 archive_cmds_need_lc_D
=yes
13091 # This is similar to how AIX traditionally builds its shared libraries.
13092 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'
13100 # see comment about AmigaOS4 .so support
13101 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102 archive_expsym_cmds_D
=''
13105 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)'
13106 hardcode_libdir_flag_spec_D
='-L$libdir'
13107 hardcode_minus_L_D
=yes
13113 export_dynamic_flag_spec_D
=-rdynamic
13116 cygwin
* | mingw
* | pw32
* | cegcc
*)
13117 # When not using gcc, we currently assume that we are using
13118 # Microsoft Visual C++.
13119 # hardcode_libdir_flag_spec is actually meaningless, as there is
13120 # no search path for DLLs.
13121 hardcode_libdir_flag_spec_D
=' '
13122 allow_undefined_flag_D
=unsupported
13123 # Tell ltmain to make .lib files, not .a files.
13125 # Tell ltmain to make .dll files, not .so files.
13127 # FIXME: Setting linknames here is a bad hack.
13128 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13129 # The linker will automatically build a .lib file if we build a DLL.
13130 old_archive_from_new_cmds_D
='true'
13131 # FIXME: Should let the user specify the lib program.
13132 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13133 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13134 enable_shared_with_static_runtimes_D
=yes
13137 darwin
* | rhapsody
*)
13140 archive_cmds_need_lc_D
=no
13141 hardcode_direct_D
=no
13142 hardcode_automatic_D
=yes
13143 hardcode_shlibpath_var_D
=unsupported
13144 if test "$lt_cv_ld_force_load" = "yes"; then
13145 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\"`'
13147 whole_archive_flag_spec_D
=''
13149 link_all_deplibs_D
=yes
13150 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13151 case $cc_basename in
13152 ifort
*) _lt_dar_can_shared
=yes ;;
13153 *) _lt_dar_can_shared
=$GCC ;;
13155 if test "$_lt_dar_can_shared" = "yes"; then
13156 output_verbose_link_cmd
=func_echo_all
13157 archive_cmds_D
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13158 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13159 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 \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13160 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}"
13169 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 hardcode_libdir_flag_spec_D
='-L$libdir'
13171 hardcode_shlibpath_var_D
=no
13174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13175 # support. Future versions do this automatically, but an explicit c++rt0.o
13176 # does not break anything, and helps significantly (at the cost of a little
13179 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13180 hardcode_libdir_flag_spec_D
='-R$libdir'
13181 hardcode_direct_D
=yes
13182 hardcode_shlibpath_var_D
=no
13185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13187 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13188 hardcode_direct_D
=yes
13189 hardcode_minus_L_D
=yes
13190 hardcode_shlibpath_var_D
=no
13193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13194 freebsd
* | dragonfly
*)
13195 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13196 hardcode_libdir_flag_spec_D
='-R$libdir'
13197 hardcode_direct_D
=yes
13198 hardcode_shlibpath_var_D
=no
13202 if test "$GCC" = yes; then
13203 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'
13205 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'
13207 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13208 hardcode_libdir_separator_D
=:
13209 hardcode_direct_D
=yes
13211 # hardcode_minus_L: Not really in the search PATH,
13212 # but as the default location of the library.
13213 hardcode_minus_L_D
=yes
13214 export_dynamic_flag_spec_D
='${wl}-E'
13218 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13219 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13221 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13223 if test "$with_gnu_ld" = no
; then
13224 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13225 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13226 hardcode_libdir_separator_D
=:
13227 hardcode_direct_D
=yes
13228 hardcode_direct_absolute_D
=yes
13229 export_dynamic_flag_spec_D
='${wl}-E'
13230 # hardcode_minus_L: Not really in the search PATH,
13231 # but as the default location of the library.
13232 hardcode_minus_L_D
=yes
13237 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13240 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13243 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13246 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13252 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13255 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13258 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13262 if test "$with_gnu_ld" = no
; then
13263 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13264 hardcode_libdir_separator_D
=:
13268 hardcode_direct_D
=no
13269 hardcode_shlibpath_var_D
=no
13272 hardcode_direct_D
=yes
13273 hardcode_direct_absolute_D
=yes
13274 export_dynamic_flag_spec_D
='${wl}-E'
13276 # hardcode_minus_L: Not really in the search PATH,
13277 # but as the default location of the library.
13278 hardcode_minus_L_D
=yes
13284 irix5
* | irix6
* | nonstopux
*)
13285 if test "$GCC" = yes; then
13286 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'
13287 # Try to use the -exported_symbol ld option, if it does not
13288 # work, assume that -exports_file does not work either and
13289 # implicitly export all symbols.
13290 save_LDFLAGS
="$LDFLAGS"
13291 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13296 if ac_fn_c_try_link
"$LINENO"; then :
13297 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'
13300 rm -f core conftest.err conftest.
$ac_objext \
13301 conftest
$ac_exeext conftest.
$ac_ext
13302 LDFLAGS
="$save_LDFLAGS"
13304 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'
13305 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'
13307 archive_cmds_need_lc_D
='no'
13308 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13309 hardcode_libdir_separator_D
=:
13310 inherit_rpath_D
=yes
13311 link_all_deplibs_D
=yes
13315 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13316 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13318 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13320 hardcode_libdir_flag_spec_D
='-R$libdir'
13321 hardcode_direct_D
=yes
13322 hardcode_shlibpath_var_D
=no
13326 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13327 hardcode_direct_D
=yes
13328 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13329 hardcode_libdir_separator_D
=:
13330 hardcode_shlibpath_var_D
=no
13337 if test -f /usr
/libexec
/ld.so
; then
13338 hardcode_direct_D
=yes
13339 hardcode_shlibpath_var_D
=no
13340 hardcode_direct_absolute_D
=yes
13341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13342 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13343 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13344 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13345 export_dynamic_flag_spec_D
='${wl}-E'
13348 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13349 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13350 hardcode_libdir_flag_spec_D
='-R$libdir'
13353 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13354 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13364 hardcode_libdir_flag_spec_D
='-L$libdir'
13365 hardcode_minus_L_D
=yes
13366 allow_undefined_flag_D
=unsupported
13367 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'
13368 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13372 if test "$GCC" = yes; then
13373 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13374 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'
13376 allow_undefined_flag_D
=' -expect_unresolved \*'
13377 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'
13379 archive_cmds_need_lc_D
='no'
13380 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13381 hardcode_libdir_separator_D
=:
13384 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13385 if test "$GCC" = yes; then
13386 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13387 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'
13388 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13390 allow_undefined_flag_D
=' -expect_unresolved \*'
13391 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'
13392 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~
13393 $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'
13395 # Both c and cxx compiler support -rpath directly
13396 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13398 archive_cmds_need_lc_D
='no'
13399 hardcode_libdir_separator_D
=:
13403 no_undefined_flag_D
=' -z defs'
13404 if test "$GCC" = yes; then
13406 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13407 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13408 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13410 case `$CC -V 2>&1` in
13413 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13414 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13419 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13425 hardcode_libdir_flag_spec_D
='-R$libdir'
13426 hardcode_shlibpath_var_D
=no
13428 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13430 # The compiler driver will combine and reorder linker options,
13431 # but understands `-z linker_flag'. GCC discards it without `$wl',
13432 # but is careful enough not to reorder.
13433 # Supported since Solaris 2.6 (maybe 2.5.1?)
13434 if test "$GCC" = yes; then
13435 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13437 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13441 link_all_deplibs_D
=yes
13445 if test "x$host_vendor" = xsequent
; then
13446 # Use $CC to link under sequent, because it throws in some extra .o
13447 # files that make .init and .fini sections work.
13448 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13450 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13452 hardcode_libdir_flag_spec_D
='-L$libdir'
13453 hardcode_direct_D
=yes
13454 hardcode_minus_L_D
=yes
13455 hardcode_shlibpath_var_D
=no
13459 case $host_vendor in
13461 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13462 hardcode_direct_D
=yes # is this really true???
13465 ## LD is ld it makes a PLAMLIB
13466 ## CC just makes a GrossModule.
13467 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13468 reload_cmds_D
='$CC -r -o $output$reload_objs'
13469 hardcode_direct_D
=no
13472 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13473 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13476 runpath_var
='LD_RUN_PATH'
13477 hardcode_shlibpath_var_D
=no
13481 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13482 hardcode_shlibpath_var_D
=no
13483 export_dynamic_flag_spec_D
='-Bexport'
13487 if test -d /usr
/nec
; then
13488 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_shlibpath_var_D
=no
13490 runpath_var
=LD_RUN_PATH
13491 hardcode_runpath_var
=yes
13496 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13497 no_undefined_flag_D
='${wl}-z,text'
13498 archive_cmds_need_lc_D
=no
13499 hardcode_shlibpath_var_D
=no
13500 runpath_var
='LD_RUN_PATH'
13502 if test "$GCC" = yes; then
13503 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13504 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13511 sysv5
* | sco3.2v5
* | sco5v6
*)
13512 # Note: We can NOT use -z defs as we might desire, because we do not
13513 # link with -lc, and that would cause any symbols used from libc to
13514 # always be unresolved, which means just about no library would
13515 # ever link correctly. If we're not using GNU ld we use -z text
13516 # though, which does catch some bad symbols but isn't as heavy-handed
13518 no_undefined_flag_D
='${wl}-z,text'
13519 allow_undefined_flag_D
='${wl}-z,nodefs'
13520 archive_cmds_need_lc_D
=no
13521 hardcode_shlibpath_var_D
=no
13522 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13523 hardcode_libdir_separator_D
=':'
13524 link_all_deplibs_D
=yes
13525 export_dynamic_flag_spec_D
='${wl}-Bexport'
13526 runpath_var
='LD_RUN_PATH'
13528 if test "$GCC" = yes; then
13529 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13530 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13532 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13533 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13538 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 hardcode_libdir_flag_spec_D
='-L$libdir'
13540 hardcode_shlibpath_var_D
=no
13548 if test x
$host_vendor = xsni
; then
13550 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13551 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13558 $as_echo "$ld_shlibs_D" >&6; }
13559 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13561 with_gnu_ld_D
=$with_gnu_ld
13569 # Do we need to explicitly link libc?
13571 case "x$archive_cmds_need_lc_D" in
13573 # Assume -lc should be added
13574 archive_cmds_need_lc_D
=yes
13576 if test "$enable_shared" = yes && test "$GCC" = yes; then
13577 case $archive_cmds_D in
13579 # FIXME: we may have to deal with multi-command sequences.
13582 # Test whether the compiler implicitly links with -lc since on some
13583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13584 # to ld, don't add -lc before -lgcc.
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13586 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13587 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13588 $as_echo_n "(cached) " >&6
13591 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13594 (eval $ac_compile) 2>&5
13596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13597 test $ac_status = 0; } 2>conftest.err
; then
13600 libobjs
=conftest.
$ac_objext
13602 wl
=$lt_prog_compiler_wl_D
13603 pic_flag
=$lt_prog_compiler_pic_D
13609 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13610 allow_undefined_flag_D
=
13611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13612 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13615 test $ac_status = 0; }
13617 lt_cv_archive_cmds_need_lc_D
=no
13619 lt_cv_archive_cmds_need_lc_D
=yes
13621 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13623 cat conftest.err
1>&5
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13629 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13630 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13701 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13703 if test -n "$hardcode_libdir_flag_spec_D" ||
13704 test -n "$runpath_var_D" ||
13705 test "X$hardcode_automatic_D" = "Xyes" ; then
13707 # We can hardcode non-existent directories.
13708 if test "$hardcode_direct_D" != no
&&
13709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13710 # have to relink, otherwise we might link with an installed library
13711 # when we should be linking with a yet-to-be-installed one
13712 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13713 test "$hardcode_minus_L_D" != no
; then
13714 # Linking always hardcodes the temporary library directory.
13715 hardcode_action_D
=relink
13717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13718 hardcode_action_D
=immediate
13721 # We cannot hardcode anything, or else we can only hardcode existing
13723 hardcode_action_D
=unsupported
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13726 $as_echo "$hardcode_action_D" >&6; }
13728 if test "$hardcode_action_D" = relink ||
13729 test "$inherit_rpath_D" = yes; then
13730 # Fast installation is not supported
13731 enable_fast_install
=no
13732 elif test "$shlibpath_overrides_runpath" = yes ||
13733 test "$enable_shared" = no
; then
13734 # Fast installation is not necessary
13735 enable_fast_install
=needless
13747 ac_cpp
='$CPP $CPPFLAGS'
13748 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13749 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13750 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13755 CFLAGS
=$lt_save_CFLAGS
13756 GDCFLAGS
=$lt_save_DFLAGS
13758 GDCFLAGS
=$gdc_save_DFLAGS
13760 if test "$enable_shared" = "yes"; then
13761 ENABLE_SHARED_TRUE
=
13762 ENABLE_SHARED_FALSE
='#'
13764 ENABLE_SHARED_TRUE
='#'
13765 ENABLE_SHARED_FALSE
=
13768 if test "$enable_static" = "yes"; then
13769 ENABLE_STATIC_TRUE
=
13770 ENABLE_STATIC_FALSE
='#'
13772 ENABLE_STATIC_TRUE
='#'
13773 ENABLE_STATIC_FALSE
=
13777 # libtool variables for Phobos shared and position-independent compiles.
13779 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13780 # creating shared objects. Default: -fversion=Shared.
13782 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13783 # creating position-independent objects. This varies with the target
13784 # hardware and operating system, but is often: -fPIC.
13786 # The distinction between pic and shared compilation flags is not present in
13787 # libtool, and so we make it here. How it is handled is that in shared
13788 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13789 # ensure that conditional compilation of shared runtime code is compiled in.
13790 # The original PIC flags are then used in the compilation of every object.
13792 # Why are objects destined for libgphobos.a compiled with -fPIC?
13793 # Because -fPIC is not harmful to use for objects destined for static
13794 # libraries. In addition, using -fPIC will allow the use of static
13795 # libgphobos.a in the creation of other D shared libraries.
13796 if test "$enable_shared" = yes; then
13797 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
13798 phobos_compiler_shared_flag
="-fversion=Shared"
13800 phobos_compiler_pic_flag
=
13801 phobos_compiler_shared_flag
=
13806 # Override the libtool's pic_flag and pic_mode.
13807 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13808 # NB: this impacts --with-pic and --without-pic.
13809 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
13812 # Determine what GCC version number to use in filesystem paths.
13814 get_gcc_base_ver
="cat"
13816 # Check whether --with-gcc-major-version-only was given.
13817 if test "${with_gcc_major_version_only+set}" = set; then :
13818 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13819 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13827 # libphobos/libdruntime specific options and feature detection
13829 # These need to be absolute paths, yet at the same time need to
13830 # canonicalize only relative paths, because then amd will not unmount
13831 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13832 libphobos_builddir
=`${PWDCMD-pwd}`
13834 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
13835 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13841 if test ${multilib} = yes; then
13842 multilib_arg
="--enable-multilib"
13848 # Check whether --enable-werror was given.
13849 if test "${enable_werror+set}" = set; then :
13850 enableval
=$enable_werror;
13854 if test "x$enable_werror" = "xyes"; then
13855 WERROR_FLAG
="-Werror"
13859 # Check whether --enable-druntime-gc was given.
13860 if test "${enable_druntime_gc+set}" = set; then :
13861 enableval
=$enable_druntime_gc; enable_druntime_gc
=no
13863 enable_druntime_gc
=yes
13867 if test "$enable_druntime_gc" = "yes"; then
13868 DRUNTIME_GC_ENABLE_TRUE
=
13869 DRUNTIME_GC_ENABLE_FALSE
='#'
13871 DRUNTIME_GC_ENABLE_TRUE
='#'
13872 DRUNTIME_GC_ENABLE_FALSE
=
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13878 $as_echo_n "checking for target OS... " >&6; }
13879 if ${druntime_cv_target_os+:} false
; then :
13880 $as_echo_n "(cached) " >&6
13882 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13885 $as_echo "$druntime_cv_target_os" >&6; }
13886 if test -z "$druntime_cv_target_os"; then :
13887 as_fn_error $?
"can't detect target OS" "$LINENO" 5
13892 # Check whether --enable-unix was given.
13893 if test "${enable_unix+set}" = set; then :
13894 enableval
=$enable_unix; :
13900 case "$druntime_cv_target_os" in
13901 aix
*|
*bsd
*|cygwin
*|darwin
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*) d_have_unix
=1 ;;
13903 if test -n "$d_have_unix" && test "$enable_unix" = auto
; then
13906 if test "$enable_unix" = "yes"; then
13907 DRUNTIME_OS_UNIX_TRUE
=
13908 DRUNTIME_OS_UNIX_FALSE
='#'
13910 DRUNTIME_OS_UNIX_TRUE
='#'
13911 DRUNTIME_OS_UNIX_FALSE
=
13918 druntime_target_os_parsed
=""
13919 case "$druntime_cv_target_os" in
13920 aix
*) druntime_target_os_parsed
="aix"
13923 druntime_target_os_parsed
="android"
13925 darwin
*) druntime_target_os_parsed
="darwin"
13928 druntime_target_os_parsed
="dragonflybsd"
13930 freebsd
*|k
*bsd
*-gnu)
13931 druntime_target_os_parsed
="freebsd"
13934 druntime_target_os_parsed
="openbsd"
13937 druntime_target_os_parsed
="netbsd"
13939 linux
*) druntime_target_os_parsed
="linux"
13941 mingw
*) druntime_target_os_parsed
="mingw"
13943 *solaris
*) druntime_target_os_parsed
="solaris"
13945 if test "$druntime_target_os_parsed" = "aix"; then
13946 DRUNTIME_OS_AIX_TRUE
=
13947 DRUNTIME_OS_AIX_FALSE
='#'
13949 DRUNTIME_OS_AIX_TRUE
='#'
13950 DRUNTIME_OS_AIX_FALSE
=
13953 if test "$druntime_target_os_parsed" = "android"; then
13954 DRUNTIME_OS_ANDROID_TRUE
=
13955 DRUNTIME_OS_ANDROID_FALSE
='#'
13957 DRUNTIME_OS_ANDROID_TRUE
='#'
13958 DRUNTIME_OS_ANDROID_FALSE
=
13961 if test "$druntime_target_os_parsed" = "darwin"; then
13962 DRUNTIME_OS_DARWIN_TRUE
=
13963 DRUNTIME_OS_DARWIN_FALSE
='#'
13965 DRUNTIME_OS_DARWIN_TRUE
='#'
13966 DRUNTIME_OS_DARWIN_FALSE
=
13969 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13970 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
13971 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
13973 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
13974 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
13977 if test "$druntime_target_os_parsed" = "freebsd"; then
13978 DRUNTIME_OS_FREEBSD_TRUE
=
13979 DRUNTIME_OS_FREEBSD_FALSE
='#'
13981 DRUNTIME_OS_FREEBSD_TRUE
='#'
13982 DRUNTIME_OS_FREEBSD_FALSE
=
13985 if test "$druntime_target_os_parsed" = "netbsd"; then
13986 DRUNTIME_OS_NETBSD_TRUE
=
13987 DRUNTIME_OS_NETBSD_FALSE
='#'
13989 DRUNTIME_OS_NETBSD_TRUE
='#'
13990 DRUNTIME_OS_NETBSD_FALSE
=
13993 if test "$druntime_target_os_parsed" = "openbsd"; then
13994 DRUNTIME_OS_OPENBSD_TRUE
=
13995 DRUNTIME_OS_OPENBSD_FALSE
='#'
13997 DRUNTIME_OS_OPENBSD_TRUE
='#'
13998 DRUNTIME_OS_OPENBSD_FALSE
=
14001 if test "$druntime_target_os_parsed" = "linux"; then
14002 DRUNTIME_OS_LINUX_TRUE
=
14003 DRUNTIME_OS_LINUX_FALSE
='#'
14005 DRUNTIME_OS_LINUX_TRUE
='#'
14006 DRUNTIME_OS_LINUX_FALSE
=
14009 if test "$druntime_target_os_parsed" = "mingw"; then
14010 DRUNTIME_OS_MINGW_TRUE
=
14011 DRUNTIME_OS_MINGW_FALSE
='#'
14013 DRUNTIME_OS_MINGW_TRUE
='#'
14014 DRUNTIME_OS_MINGW_FALSE
=
14017 if test "$druntime_target_os_parsed" = "solaris"; then
14018 DRUNTIME_OS_SOLARIS_TRUE
=
14019 DRUNTIME_OS_SOLARIS_FALSE
='#'
14021 DRUNTIME_OS_SOLARIS_TRUE
='#'
14022 DRUNTIME_OS_SOLARIS_FALSE
=
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14029 $as_echo_n "checking for thread model used by GDC... " >&6; }
14030 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14032 $as_echo "$d_thread_model" >&6; }
14034 # Map from thread model to thread interface.
14036 case $d_thread_model in
14037 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14038 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14039 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14040 single
) DCFG_THREAD_MODEL
="Single" ;;
14041 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14042 # TODO: These targets need porting.
14043 dce|mipssde|rtems|tpf|vxworks
)
14044 DCFG_THREAD_MODEL
="Single" ;;
14045 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14052 ac_cpp
='$CPP $CPPFLAGS'
14053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14058 $as_echo_n "checking for ARM unwinder... " >&6; }
14059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14061 #include <unwind.h>
14066 #if __ARM_EABI_UNWINDER__
14074 if ac_fn_c_try_compile
"$LINENO"; then :
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077 DCFG_ARM_EABI_UNWINDER
=false
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080 $as_echo "yes" >&6; }
14081 DCFG_ARM_EABI_UNWINDER
=true
14083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14085 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14086 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14087 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14089 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14090 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14094 ac_cpp
='$CPP $CPPFLAGS'
14095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14102 ac_cpp
='$CPP $CPPFLAGS'
14103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14108 $as_echo_n "checking for minfo section bracketing... " >&6; }
14109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14112 void* module_info_ptr __attribute__((section ("minfo")));
14113 extern void* __start_minfo __attribute__((visibility ("hidden")));
14114 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14118 // Never run, just to prevent compiler from optimizing access
14119 return &__start_minfo == &__stop_minfo;
14123 if ac_fn_c_try_link
"$LINENO"; then :
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14125 $as_echo "yes" >&6; }
14126 DCFG_MINFO_BRACKETING
=true
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 DCFG_MINFO_BRACKETING
=false
14132 rm -f core conftest.err conftest.
$ac_objext \
14133 conftest
$ac_exeext conftest.
$ac_ext
14136 ac_cpp
='$CPP $CPPFLAGS'
14137 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14145 gdc_save_DFLAGS
=$GDCFLAGS
14146 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14149 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14150 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14151 ac_compiler_gnu
=yes
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14154 $as_echo_n "checking for library containing malloc... " >&6; }
14155 if ${ac_cv_search_malloc+:} false
; then :
14156 $as_echo_n "(cached) " >&6
14158 ac_func_search_save_LIBS
=$LIBS
14159 cat > conftest.
$ac_ext <<_ACEOF
14161 extern(C) int malloc();
14163 extern(C) int main() {
14164 malloc(); return 0;
14167 for ac_lib
in '' c
; do
14168 if test -z "$ac_lib"; then
14169 ac_res
="none required"
14172 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14174 if ac_fn_d_try_link
"$LINENO"; then :
14175 ac_cv_search_malloc
=$ac_res
14177 rm -f core conftest.err conftest.
$ac_objext \
14179 if ${ac_cv_search_malloc+:} false
; then :
14183 if ${ac_cv_search_malloc+:} false
; then :
14186 ac_cv_search_malloc
=no
14188 rm conftest.
$ac_ext
14189 LIBS
=$ac_func_search_save_LIBS
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14192 $as_echo "$ac_cv_search_malloc" >&6; }
14193 ac_res
=$ac_cv_search_malloc
14194 if test "$ac_res" != no
; then :
14195 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14200 enable_thread_lib
=yes
14201 # Check whether --enable-thread-lib was given.
14202 if test "${enable_thread_lib+set}" = set; then :
14203 enableval
=$enable_thread_lib;
14207 if test "x$enable_thread_lib" = "xyes"; then :
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14210 $as_echo_n "checking for library containing pthread_create... " >&6; }
14211 if ${ac_cv_search_pthread_create+:} false
; then :
14212 $as_echo_n "(cached) " >&6
14214 ac_func_search_save_LIBS
=$LIBS
14215 cat > conftest.
$ac_ext <<_ACEOF
14217 extern(C) int pthread_create();
14219 extern(C) int main() {
14220 pthread_create(); return 0;
14223 for ac_lib
in '' pthread
; do
14224 if test -z "$ac_lib"; then
14225 ac_res
="none required"
14228 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14230 if ac_fn_d_try_link
"$LINENO"; then :
14231 ac_cv_search_pthread_create
=$ac_res
14233 rm -f core conftest.err conftest.
$ac_objext \
14235 if ${ac_cv_search_pthread_create+:} false
; then :
14239 if ${ac_cv_search_pthread_create+:} false
; then :
14242 ac_cv_search_pthread_create
=no
14244 rm conftest.
$ac_ext
14245 LIBS
=$ac_func_search_save_LIBS
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14248 $as_echo "$ac_cv_search_pthread_create" >&6; }
14249 ac_res
=$ac_cv_search_pthread_create
14250 if test "$ac_res" != no
; then :
14251 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14258 if test "x$enable_thread_lib" = "xno"; then :
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14261 $as_echo_n "checking for thread library... " >&6; }
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14263 $as_echo "disabled" >&6; }
14267 as_ac_Lib
=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14269 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14270 if eval \
${$as_ac_Lib+:} false
; then :
14271 $as_echo_n "(cached) " >&6
14273 ac_check_lib_save_LIBS
=$LIBS
14274 LIBS
="-l$enable_thread_lib $LIBS"
14275 cat > conftest.
$ac_ext <<_ACEOF
14277 extern(C) int pthread_create();
14279 extern(C) int main() {
14280 pthread_create(); return 0;
14283 if ac_fn_d_try_link
"$LINENO"; then :
14284 eval "$as_ac_Lib=yes"
14286 eval "$as_ac_Lib=no"
14288 rm -f core conftest.err conftest.
$ac_objext \
14289 conftest
$ac_exeext conftest.
$ac_ext
14290 LIBS
=$ac_check_lib_save_LIBS
14292 eval ac_res
=\$
$as_ac_Lib
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14294 $as_echo "$ac_res" >&6; }
14295 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
14296 cat >>confdefs.h
<<_ACEOF
14297 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14300 LIBS
="-l$enable_thread_lib $LIBS"
14304 as_fn_error $?
"Thread library not found" "$LINENO" 5
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14314 $as_echo_n "checking for library containing cosf... " >&6; }
14315 if ${ac_cv_search_cosf+:} false
; then :
14316 $as_echo_n "(cached) " >&6
14318 ac_func_search_save_LIBS
=$LIBS
14319 cat > conftest.
$ac_ext <<_ACEOF
14321 extern(C) int cosf();
14323 extern(C) int main() {
14327 for ac_lib
in '' m
; do
14328 if test -z "$ac_lib"; then
14329 ac_res
="none required"
14332 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14334 if ac_fn_d_try_link
"$LINENO"; then :
14335 ac_cv_search_cosf
=$ac_res
14337 rm -f core conftest.err conftest.
$ac_objext \
14339 if ${ac_cv_search_cosf+:} false
; then :
14343 if ${ac_cv_search_cosf+:} false
; then :
14346 ac_cv_search_cosf
=no
14348 rm conftest.
$ac_ext
14349 LIBS
=$ac_func_search_save_LIBS
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14352 $as_echo "$ac_cv_search_cosf" >&6; }
14353 ac_res
=$ac_cv_search_cosf
14354 if test "$ac_res" != no
; then :
14355 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14360 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14361 if ${ac_cv_search_clock_gettime+:} false
; then :
14362 $as_echo_n "(cached) " >&6
14364 ac_func_search_save_LIBS
=$LIBS
14365 cat > conftest.
$ac_ext <<_ACEOF
14367 extern(C) int clock_gettime();
14369 extern(C) int main() {
14370 clock_gettime(); return 0;
14373 for ac_lib
in '' rt
; do
14374 if test -z "$ac_lib"; then
14375 ac_res
="none required"
14378 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14380 if ac_fn_d_try_link
"$LINENO"; then :
14381 ac_cv_search_clock_gettime
=$ac_res
14383 rm -f core conftest.err conftest.
$ac_objext \
14385 if ${ac_cv_search_clock_gettime+:} false
; then :
14389 if ${ac_cv_search_clock_gettime+:} false
; then :
14392 ac_cv_search_clock_gettime
=no
14394 rm conftest.
$ac_ext
14395 LIBS
=$ac_func_search_save_LIBS
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14398 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14399 ac_res
=$ac_cv_search_clock_gettime
14400 if test "$ac_res" != no
; then :
14401 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14406 # This checks to see if the host supports the compiler-generated builtins
14407 # for atomic operations for various integral sizes. Note, this is intended
14408 # to be an all-or-nothing switch, so all the atomic operations that are
14409 # used should be checked.
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14411 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14412 if ${druntime_cv_atomic_byte+:} false
; then :
14413 $as_echo_n "(cached) " >&6
14416 cat > conftest.
$ac_ext <<_ACEOF
14418 import gcc.builtins;
14420 extern(C) int main() {
14424 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14425 __atomic_load_1(&c1, 5);
14426 __atomic_store_1(&c1, c2, 5);
14431 if ac_fn_d_try_link
"$LINENO"; then :
14432 druntime_cv_atomic_byte
=yes
14434 druntime_cv_atomic_byte
=no
14436 rm -f core conftest.err conftest.
$ac_objext \
14437 conftest
$ac_exeext conftest.
$ac_ext
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14442 $as_echo "$druntime_cv_atomic_byte" >&6; }
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14445 $as_echo_n "checking for atomic builtins for short... " >&6; }
14446 if ${druntime_cv_atomic_short+:} false
; then :
14447 $as_echo_n "(cached) " >&6
14450 cat > conftest.
$ac_ext <<_ACEOF
14452 import gcc.builtins;
14454 extern(C) int main() {
14458 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14459 __atomic_load_2(&c1, 5);
14460 __atomic_store_2(&c1, c2, 5);
14465 if ac_fn_d_try_link
"$LINENO"; then :
14466 druntime_cv_atomic_short
=yes
14468 druntime_cv_atomic_short
=no
14470 rm -f core conftest.err conftest.
$ac_objext \
14471 conftest
$ac_exeext conftest.
$ac_ext
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14476 $as_echo "$druntime_cv_atomic_short" >&6; }
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14479 $as_echo_n "checking for atomic builtins for int... " >&6; }
14480 if ${druntime_cv_atomic_int+:} false
; then :
14481 $as_echo_n "(cached) " >&6
14484 cat > conftest.
$ac_ext <<_ACEOF
14486 import gcc.builtins;
14488 extern(C) int main() {
14492 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14493 __atomic_load_4(&c1, 5);
14494 __atomic_store_4(&c1, c2, 5);
14499 if ac_fn_d_try_link
"$LINENO"; then :
14500 druntime_cv_atomic_int
=yes
14502 druntime_cv_atomic_int
=no
14504 rm -f core conftest.err conftest.
$ac_objext \
14505 conftest
$ac_exeext conftest.
$ac_ext
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14510 $as_echo "$druntime_cv_atomic_int" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14513 $as_echo_n "checking for atomic builtins for long... " >&6; }
14514 if ${druntime_cv_atomic_long+:} false
; then :
14515 $as_echo_n "(cached) " >&6
14518 cat > conftest.
$ac_ext <<_ACEOF
14520 import gcc.builtins;
14522 extern(C) int main() {
14526 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14527 __atomic_load_8(&c1, 5);
14528 __atomic_store_8(&c1, c2, 5);
14533 if ac_fn_d_try_link
"$LINENO"; then :
14534 druntime_cv_atomic_long
=yes
14536 druntime_cv_atomic_long
=no
14538 rm -f core conftest.err conftest.
$ac_objext \
14539 conftest
$ac_exeext conftest.
$ac_ext
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14544 $as_echo "$druntime_cv_atomic_long" >&6; }
14546 # Have atomic builtin support if all but the long test above passes.
14547 DCFG_HAVE_ATOMIC_BUILTINS
=false
14548 if test "$druntime_cv_atomic_byte" = yes \
14549 && test "$druntime_cv_atomic_short" = yes \
14550 && test "$druntime_cv_atomic_int" = yes; then \
14551 DCFG_HAVE_ATOMIC_BUILTINS
=true
14554 # Have 64-bit atomic support if the long test above passes.
14555 DCFG_HAVE_64BIT_ATOMICS
=false
14556 if test "$druntime_cv_atomic_long" = yes; then
14557 DCFG_HAVE_64BIT_ATOMICS
=true
14564 ac_cpp
='$CPP $CPPFLAGS'
14565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14570 GDCFLAGS
=$gdc_save_DFLAGS
14575 # Check whether --with-libatomic was given.
14576 if test "${with_libatomic+set}" = set; then :
14577 withval
=$with_libatomic;
14581 DCFG_HAVE_LIBATOMIC
=false
14583 if test "x$with_libatomic" != "xno"; then :
14585 DCFG_HAVE_LIBATOMIC
=true
14586 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14591 $as_echo_n "checking for libatomic... " >&6; }
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14593 $as_echo "disabled" >&6; }
14602 ac_cpp
='$CPP $CPPFLAGS'
14603 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14604 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14605 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14607 BACKTRACE_SUPPORTED
=false
14608 BACKTRACE_USES_MALLOC
=false
14609 BACKTRACE_SUPPORTS_THREADS
=false
14613 # Check whether --with-libbacktrace was given.
14614 if test "${with_libbacktrace+set}" = set; then :
14615 withval
=$with_libbacktrace;
14619 if test "x$with_libbacktrace" != "xno"; then :
14621 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14623 gdc_save_CPPFLAGS
=$CPPFLAGS
14624 CPPFLAGS
+=" -I../libbacktrace "
14626 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14627 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14628 have_libbacktrace_h
=true
14630 have_libbacktrace_h
=false
14635 if $have_libbacktrace_h; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14637 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14641 #include <backtrace-supported.h>
14642 #if BACKTRACE_SUPPORTED
14643 FOUND_LIBBACKTRACE_RESULT_GDC
14647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14648 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14649 BACKTRACE_SUPPORTED
=true
14651 BACKTRACE_SUPPORTED
=false
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14656 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14659 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14663 #include <backtrace-supported.h>
14664 #if BACKTRACE_USES_MALLOC
14665 FOUND_LIBBACKTRACE_RESULT_GDC
14669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14670 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14671 BACKTRACE_USES_MALLOC
=true
14673 BACKTRACE_USES_MALLOC
=false
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14678 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14681 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14685 #include <backtrace-supported.h>
14686 #if BACKTRACE_SUPPORTS_THREADS
14687 FOUND_LIBBACKTRACE_RESULT_GDC
14691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14693 BACKTRACE_SUPPORTS_THREADS
=true
14695 BACKTRACE_SUPPORTS_THREADS
=false
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14700 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14702 CPPFLAGS
=$gdc_save_CPPFLAGS
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14707 $as_echo_n "checking for libbacktrace... " >&6; }
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14709 $as_echo "disabled" >&6; }
14718 ac_cpp
='$CPP $CPPFLAGS'
14719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14725 # Libtool has already checked this, so re-use the inferred dlopen lib.
14726 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14728 LIBS
="$LIBS $lt_cv_dlopen_libs"
14734 # Check whether --with-target-system-zlib was given.
14735 if test "${with_target_system_zlib+set}" = set; then :
14736 withval
=$with_target_system_zlib;
14741 if test "x$with_target_system_zlib" = "xyes"; then :
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14744 $as_echo_n "checking for deflate in -lz... " >&6; }
14745 if ${ac_cv_lib_z_deflate+:} false
; then :
14746 $as_echo_n "(cached) " >&6
14748 ac_check_lib_save_LIBS
=$LIBS
14750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14768 if ac_fn_c_try_link
"$LINENO"; then :
14769 ac_cv_lib_z_deflate
=yes
14771 ac_cv_lib_z_deflate
=no
14773 rm -f core conftest.err conftest.
$ac_objext \
14774 conftest
$ac_exeext conftest.
$ac_ext
14775 LIBS
=$ac_check_lib_save_LIBS
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14778 $as_echo "$ac_cv_lib_z_deflate" >&6; }
14779 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
14785 as_fn_error $?
"System zlib not found" "$LINENO" 5
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14793 $as_echo_n "checking for zlib... " >&6; }
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14795 $as_echo "just compiled" >&6; }
14799 if test "$with_target_system_zlib" = yes; then
14800 DRUNTIME_ZLIB_SYSTEM_TRUE
=
14801 DRUNTIME_ZLIB_SYSTEM_FALSE
='#'
14803 DRUNTIME_ZLIB_SYSTEM_TRUE
='#'
14804 DRUNTIME_ZLIB_SYSTEM_FALSE
=
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14812 $as_echo_n "checking D GCC version... " >&6; }
14813 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14815 $as_echo "$gcc_version" >&6; }
14819 # Check whether --with-cross-host was given.
14820 if test "${with_cross_host+set}" = set; then :
14821 withval
=$with_cross_host;
14825 libphobos_toolexecdir
=no
14826 libphobos_toolexeclibdir
=no
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14829 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14830 # Check whether --enable-version-specific-runtime-libs was given.
14831 if test "${enable_version_specific_runtime_libs+set}" = set; then :
14832 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
14833 yes) version_specific_libs
=yes ;;
14834 no
) version_specific_libs
=no
;;
14835 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14838 version_specific_libs
=no
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14842 $as_echo "$version_specific_libs" >&6; }
14844 # Version-specific runtime libs processing.
14845 if test $version_specific_libs = yes; then
14846 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
14847 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14849 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14850 # Install a library built with a cross compiler in tooldir, not libdir.
14851 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
14852 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
14853 libphobos_toolexeclibdir
='${toolexecdir}/lib'
14855 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
14856 libphobos_toolexeclibdir
='${libdir}'
14858 multi_os_directory
=`$GDC -print-multi-os-directory`
14859 case $multi_os_directory in
14860 .
) ;; # Avoid trailing /.
14861 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
14867 # Default case for install directory for D sources files.
14868 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14872 # Add dependencies for libgphobos.spec file
14873 SPEC_PHOBOS_DEPS
="$LIBS"
14876 # Libdruntime / phobos soname version
14877 DRUNTIME_SOVERSION
="76:2:0"
14878 PHOBOS_SOVERSION
="76:2:0"
14882 # Set default flags (after DRUNTIME_WERROR!)
14883 if test -z "$GDCFLAGS"; then
14884 GDCFLAGS
="-Wall $WERROR_FLAG -g -frelease -O2"
14888 if test -z "$GDCFLAGSX"; then
14889 GDCFLAGSX
="-Wall $WERROR_FLAG -g -fno-release -funittest"
14893 # Sanity check for the cross-compilation case:
14894 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14895 if test "x$ac_cv_header_stdio_h" = xyes
; then :
14898 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
14903 ac_config_files
="$ac_config_files Makefile"
14906 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14908 ac_config_files
="$ac_config_files src/libgphobos.spec"
14910 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
14913 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
14914 # that multilib installs will end up installed in the correct place.
14915 # The testsuite needs it for multilib-aware ABI baseline files.
14916 # To work around this not being passed down from config-ml.in ->
14917 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
14918 # append it here. Only modify Makefiles that have just been created.
14920 # Also, get rid of this simulated-VPATH thing that automake does.
14921 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
14924 cat >confcache
<<\_ACEOF
14925 # This file is a shell script that caches the results of configure
14926 # tests run on this system so they can be shared between configure
14927 # scripts and configure runs, see configure's option --config-cache.
14928 # It is not useful on other systems. If it contains results you don't
14929 # want to keep, you may remove or edit it.
14931 # config.status only pays attention to the cache file if you give it
14932 # the --recheck option to rerun configure.
14934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14936 # following values.
14940 # The following way of writing the cache mishandles newlines in values,
14941 # but we know of no workaround that is simple, portable, and efficient.
14942 # So, we kill variables containing newlines.
14943 # Ultrix sh set writes to stderr and can't be redirected directly,
14944 # and sets the high bit in the cache file unless we assign to the vars.
14946 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14947 eval ac_val
=\$
$ac_var
14951 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14955 _ | IFS | as_nl
) ;; #(
14956 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14957 *) { eval $ac_var=; unset $ac_var;} ;;
14963 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14964 *${as_nl}ac_space
=\
*)
14965 # `set' does not quote correctly, so add quotes: double-quote
14966 # substitution turns \\\\ into \\, and sed turns \\ into \.
14969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14972 # `set' quotes correctly as required by POSIX, so do not add quotes.
14973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14986 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14987 if test -w "$cache_file"; then
14988 if test "x$cache_file" != "x/dev/null"; then
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14990 $as_echo "$as_me: updating cache $cache_file" >&6;}
14991 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14992 cat confcache
>"$cache_file"
14994 case $cache_file in #(
14996 mv -f confcache
"$cache_file"$$
&&
14997 mv -f "$cache_file"$$
"$cache_file" ;; #(
14999 mv -f confcache
"$cache_file" ;;
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15005 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15010 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15011 # Let make expand exec_prefix.
15012 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15014 DEFS
=-DHAVE_CONFIG_H
15019 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15020 # 1. Remove the extension, and $U if already installed.
15021 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15022 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15023 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15024 # will be set to the directory where LIBOBJS objects are built.
15025 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15026 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15028 LIBOBJS
=$ac_libobjs
15030 LTLIBOBJS
=$ac_ltlibobjs
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15034 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15035 if test -n "$am_sleep_pid"; then
15036 # Hide warnings about reused PIDs.
15037 wait $am_sleep_pid 2>/dev
/null
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15040 $as_echo "done" >&6; }
15041 if test -n "$EXEEXT"; then
15043 am__EXEEXT_FALSE
='#'
15045 am__EXEEXT_TRUE
='#'
15049 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15050 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15053 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
15054 as_fn_error $?
"conditional \"ENABLE_SHARED\" was never defined.
15055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15057 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
15058 as_fn_error $?
"conditional \"ENABLE_STATIC\" was never defined.
15059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15061 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15062 as_fn_error $?
"conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15065 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15066 as_fn_error $?
"conditional \"DRUNTIME_OS_UNIX\" was never defined.
15067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15069 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15070 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15073 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15074 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15077 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15078 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15081 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15082 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15085 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15086 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15089 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15090 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15093 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15094 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15097 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15098 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15101 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15102 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15105 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15106 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15109 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15110 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15113 if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
15114 as_fn_error $?
"conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
15115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15118 : "${CONFIG_STATUS=./config.status}"
15120 ac_clean_files_save
=$ac_clean_files
15121 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15123 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15125 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15127 # Generated by $as_me.
15128 # Run this file to recreate the current configuration.
15129 # Compiler output produced by configure, useful for debugging
15130 # configure, is in config.log if it exists.
15133 ac_cs_recheck=false
15136 SHELL=\${CONFIG_SHELL-$SHELL}
15139 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15140 ## -------------------- ##
15141 ## M4sh Initialization. ##
15142 ## -------------------- ##
15144 # Be more Bourne compatible
15145 DUALCASE
=1; export DUALCASE
# for MKS sh
15146 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15149 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15150 # is contrary to our usage. Disable this feature.
15151 alias -g '${1+"$@"}'='"$@"'
15152 setopt NO_GLOB_SUBST
15154 case `(set -o) 2>/dev/null` in #(
15166 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15167 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15170 # Prefer a ksh shell builtin over an external printf program on Solaris,
15171 # but without wasting forks for bash or zsh.
15172 if test -z "$BASH_VERSION$ZSH_VERSION" \
15173 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15174 as_echo='print
-r --'
15175 as_echo_n='print
-rn --'
15176 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15177 as_echo='printf %s
\n'
15178 as_echo_n='printf %s
'
15180 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15181 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15182 as_echo_n='/usr
/ucb
/echo -n'
15184 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15185 as_echo_n_body='eval
15189 expr "X$arg" : "X\\(.*\\)$as_nl";
15190 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15192 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15194 export as_echo_n_body
15195 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15197 export as_echo_body
15198 as_echo='sh
-c $as_echo_body as_echo
'
15201 # The user is always right.
15202 if test "${PATH_SEPARATOR+set}" != set; then
15204 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15205 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15212 # We need space, tab and new line, in precisely that order. Quoting is
15213 # there to prevent editors from complaining about space-tab.
15214 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15215 # splitting by setting IFS to empty value.)
15218 # Find who we are. Look in the path if we contain no directory separator.
15221 *[\\/]* ) as_myself=$0 ;;
15222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15223 for as_dir in $PATH
15226 test -z "$as_dir" && as_dir=.
15227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15233 # We did not find ourselves, most probably we were run as `sh COMMAND'
15234 # in which case we are not to be found in the path.
15235 if test "x$as_myself" = x
; then
15238 if test ! -f "$as_myself"; then
15239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15243 # Unset variables that we do not need and which cause bugs (e.g. in
15244 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15245 # suppresses any "Segmentation fault" message there. '((' could
15246 # trigger a bug in pdksh 5.2.14.
15247 for as_var
in BASH_ENV ENV MAIL MAILPATH
15248 do eval test x\
${$as_var+set} = xset \
15249 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15262 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15265 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15266 # ----------------------------------------
15267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15269 # script with STATUS, using 1 if that was 0.
15272 as_status
=$1; test $as_status -eq 0 && as_status
=1
15274 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15277 $as_echo "$as_me: error: $2" >&2
15278 as_fn_exit
$as_status
15282 # as_fn_set_status STATUS
15283 # -----------------------
15284 # Set $? to STATUS, without forking.
15285 as_fn_set_status
()
15288 } # as_fn_set_status
15290 # as_fn_exit STATUS
15291 # -----------------
15292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15296 as_fn_set_status
$1
15302 # Portably unset VAR.
15305 { eval $1=; unset $1;}
15307 as_unset
=as_fn_unset
15308 # as_fn_append VAR VALUE
15309 # ----------------------
15310 # Append the text in VALUE to the end of the definition contained in VAR. Take
15311 # advantage of any shell optimizations that allow amortized linear growth over
15312 # repeated appends, instead of the typical quadratic growth present in naive
15314 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15315 eval 'as_fn_append ()
15326 # as_fn_arith ARG...
15327 # ------------------
15328 # Perform arithmetic evaluation on the ARGs, and store the result in the
15329 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15330 # must be portable across $(()) and expr.
15331 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15332 eval 'as_fn_arith ()
15339 as_val
=`expr "$@" || test $? -eq 1`
15344 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15345 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15351 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15352 as_basename
=basename
15357 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15363 as_me
=`$as_basename -- "$0" ||
15364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15365 X"$0" : 'X\(//\)$' \| \
15366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15368 sed '/^.*\/\([^/][^/]*\)\/*$/{
15382 # Avoid depending upon Character Ranges.
15383 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15384 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15385 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15386 as_cr_digits
='0123456789'
15387 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15389 ECHO_C
= ECHO_N
= ECHO_T
=
15390 case `echo -n x` in #(((((
15392 case `echo 'xy\c'` in
15393 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15395 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15402 rm -f conf$$ conf$$.exe conf$$.
file
15403 if test -d conf$$.dir
; then
15404 rm -f conf$$.dir
/conf$$.
file
15407 mkdir conf$$.dir
2>/dev
/null
15409 if (echo >conf$$.
file) 2>/dev
/null
; then
15410 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15412 # ... but there are two gotchas:
15413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15415 # In both cases, we have to default to `cp -pR'.
15416 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15418 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15426 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15427 rmdir conf$$.dir
2>/dev
/null
15432 # Create "$as_dir" as a directory, including parents if necessary.
15437 -*) as_dir
=.
/$as_dir;;
15439 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15443 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15444 *) as_qdir
=$as_dir;;
15446 as_dirs
="'$as_qdir' $as_dirs"
15447 as_dir
=`$as_dirname -- "$as_dir" ||
15448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15449 X"$as_dir" : 'X\(//\)[^/]' \| \
15450 X"$as_dir" : 'X\(//\)$' \| \
15451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15452 $as_echo X"$as_dir" |
15453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15457 /^X\(\/\/\)[^/].*/{
15470 test -d "$as_dir" && break
15472 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15473 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15477 if mkdir
-p .
2>/dev
/null
; then
15478 as_mkdir_p
='mkdir -p "$as_dir"'
15480 test -d .
/-p && rmdir .
/-p
15485 # as_fn_executable_p FILE
15486 # -----------------------
15487 # Test if FILE is an executable regular file.
15488 as_fn_executable_p
()
15490 test -f "$1" && test -x "$1"
15491 } # as_fn_executable_p
15492 as_test_x
='test -x'
15493 as_executable_p
=as_fn_executable_p
15495 # Sed expression to map a string onto a valid CPP name.
15496 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15498 # Sed expression to map a string onto a valid variable name.
15499 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15503 ## ----------------------------------- ##
15504 ## Main body of $CONFIG_STATUS script. ##
15505 ## ----------------------------------- ##
15507 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15510 # Save the log message, to keep $0 and so on meaningful, and to
15511 # report actual input values of CONFIG_FILES etc. instead of their
15512 # values after options handling.
15514 This file was extended by package-unused $as_me version-unused, which was
15515 generated by GNU Autoconf 2.69. Invocation command line was
15517 CONFIG_FILES = $CONFIG_FILES
15518 CONFIG_HEADERS = $CONFIG_HEADERS
15519 CONFIG_LINKS = $CONFIG_LINKS
15520 CONFIG_COMMANDS = $CONFIG_COMMANDS
15523 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15528 case $ac_config_files in *"
15529 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15532 case $ac_config_headers in *"
15533 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 # Files that config.status was made for.
15539 config_files="$ac_config_files"
15540 config_headers="$ac_config_headers"
15541 config_commands="$ac_config_commands"
15545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15547 \`$as_me' instantiates files and other configuration actions
15548 from templates according to the current configuration. Unless the files
15549 and actions are specified as TAGs, all are instantiated by default.
15551 Usage: $0 [OPTION]... [TAG]...
15553 -h, --help print this help, then exit
15554 -V, --version print version number and configuration settings, then exit
15555 --config print configuration, then exit
15556 -q, --quiet, --silent
15557 do not print progress messages
15558 -d, --debug don't remove temporary files
15559 --recheck update $as_me by reconfiguring in the same conditions
15560 --file=FILE[:TEMPLATE]
15561 instantiate the configuration file FILE
15562 --header=FILE[:TEMPLATE]
15563 instantiate the configuration header FILE
15565 Configuration files:
15568 Configuration headers:
15571 Configuration commands:
15574 Report bugs to the package provider."
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15580 package-unused config.status version-unused
15581 configured by $0, generated by GNU Autoconf 2.69,
15582 with options \\"\$ac_cs_config\\"
15584 Copyright (C) 2012 Free Software Foundation, Inc.
15585 This config.status script is free software; the Free Software Foundation
15586 gives unlimited permission to copy, distribute and modify it."
15593 test -n "\$AWK" || AWK=awk
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15597 # The default lists apply if the user does not specify any file.
15603 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15604 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15608 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15620 # Handling of the options.
15621 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15623 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15624 $as_echo "$ac_cs_version"; exit ;;
15625 --config |
--confi |
--conf |
--con |
--co |
--c )
15626 $as_echo "$ac_cs_config"; exit ;;
15627 --debug |
--debu |
--deb |
--de |
--d |
-d )
15629 --file |
--fil |
--fi |
--f )
15632 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15633 '') as_fn_error $?
"missing file argument" ;;
15635 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15636 ac_need_defaults
=false
;;
15637 --header |
--heade |
--head |
--hea )
15640 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15642 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15643 ac_need_defaults
=false
;;
15645 # Conflict between --help and --header
15646 as_fn_error $?
"ambiguous option: \`$1'
15647 Try \`$0 --help' for more information.";;
15648 --help |
--hel |
-h )
15649 $as_echo "$ac_cs_usage"; exit ;;
15650 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15651 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15654 # This is an error.
15655 -*) as_fn_error $?
"unrecognized option: \`$1'
15656 Try \`$0 --help' for more information." ;;
15658 *) as_fn_append ac_config_targets
" $1"
15659 ac_need_defaults
=false
;;
15665 ac_configure_extra_args
=
15667 if $ac_cs_silent; then
15669 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15674 if \$ac_cs_recheck; then
15675 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15677 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15678 CONFIG_SHELL='$SHELL'
15679 export CONFIG_SHELL
15684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15689 ## Running $as_me. ##
15695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 with_multisubdir="$with_multisubdir"
15704 with_multisrctop="$with_multisrctop"
15705 with_target_subdir="$with_target_subdir"
15706 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15707 multi_basedir="$multi_basedir"
15708 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15711 GFORTRAN="$GFORTRAN"
15715 # The HP-UX ksh and POSIX shell print the target directory to stdout
15716 # if CDPATH is set.
15717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15719 sed_quote_subst='$sed_quote_subst'
15720 double_quote_subst='$double_quote_subst'
15721 delay_variable_subst='$delay_variable_subst'
15722 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15723 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15724 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15725 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15726 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15727 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15728 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15729 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15730 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15731 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15732 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15733 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15734 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15735 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15736 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15737 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15738 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15739 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15740 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15741 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15742 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15743 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15744 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15745 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15746 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15747 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15748 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15749 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15750 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15751 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15752 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15753 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15754 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15755 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15756 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15757 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15758 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15759 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15760 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15761 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15762 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15763 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15764 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15765 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15766 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15767 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15768 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15769 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15770 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"`'
15771 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15772 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15774 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15775 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15776 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15777 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15778 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15779 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15780 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15781 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15782 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15783 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15784 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15785 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15786 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15787 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15788 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15789 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15790 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15791 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15792 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15793 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15794 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15795 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15796 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15797 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15798 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15799 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15800 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15801 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15802 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15803 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15804 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15805 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15806 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15807 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15808 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15809 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15810 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15811 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15812 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15813 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15814 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15815 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15816 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15817 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15818 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15819 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15820 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15821 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15822 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15823 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15824 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15825 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15826 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15827 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15828 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15829 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15830 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15831 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15832 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15833 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15834 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15835 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15836 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15837 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15838 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15839 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15840 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15841 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15842 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15843 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15844 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15845 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15846 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15847 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15848 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15849 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15850 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15851 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15852 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15853 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15854 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15855 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15856 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15857 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15858 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15859 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15860 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15861 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15862 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15863 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15864 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15865 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15866 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15867 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15868 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15869 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15870 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15871 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15872 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15873 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15874 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15875 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15876 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15877 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15878 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15879 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15880 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15881 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15882 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15883 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15884 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15887 LTCFLAGS='$LTCFLAGS'
15888 compiler='$compiler_DEFAULT'
15890 # A function that is used when there is no print builtin or printf.
15891 func_fallback_echo ()
15893 eval 'cat <<_LTECHO_EOF
15898 # Quote evaled strings.
15912 deplibs_check_method \
15921 lt_cv_sys_global_symbol_pipe \
15922 lt_cv_sys_global_symbol_to_cdecl \
15923 lt_cv_sys_global_symbol_to_c_name_address \
15924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15925 lt_prog_compiler_no_builtin_flag \
15926 lt_prog_compiler_wl \
15927 lt_prog_compiler_pic \
15928 lt_prog_compiler_static \
15929 lt_cv_prog_compiler_c_o \
15937 export_dynamic_flag_spec \
15938 whole_archive_flag_spec \
15939 compiler_needs_object \
15941 allow_undefined_flag \
15942 no_undefined_flag \
15943 hardcode_libdir_flag_spec \
15944 hardcode_libdir_flag_spec_ld \
15945 hardcode_libdir_separator \
15950 variables_saved_for_relink \
15952 library_names_spec \
15954 install_override_mode \
15961 lt_prog_compiler_no_builtin_flag_D \
15962 lt_prog_compiler_wl_D \
15963 lt_prog_compiler_pic_D \
15964 lt_prog_compiler_static_D \
15965 lt_cv_prog_compiler_c_o_D \
15966 export_dynamic_flag_spec_D \
15967 whole_archive_flag_spec_D \
15968 compiler_needs_object_D \
15970 allow_undefined_flag_D \
15971 no_undefined_flag_D \
15972 hardcode_libdir_flag_spec_D \
15973 hardcode_libdir_flag_spec_ld_D \
15974 hardcode_libdir_separator_D \
15975 fix_srcfile_path_D \
15976 exclude_expsyms_D \
15977 include_expsyms_D \
15978 file_list_spec_D; do
15979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15980 *[\\\\\\\`\\"\\\$]*)
15981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15989 # Double-quote double-evaled strings.
15990 for var in reload_cmds \
15991 old_postinstall_cmds \
15992 old_postuninstall_cmds \
15994 extract_expsyms_cmds \
15995 old_archive_from_new_cmds \
15996 old_archive_from_expsyms_cmds \
15998 archive_expsym_cmds \
16000 module_expsym_cmds \
16001 export_symbols_cmds \
16004 postuninstall_cmds \
16006 sys_lib_search_path_spec \
16007 sys_lib_dlsearch_path_spec \
16009 old_archive_cmds_D \
16010 old_archive_from_new_cmds_D \
16011 old_archive_from_expsyms_cmds_D \
16013 archive_expsym_cmds_D \
16015 module_expsym_cmds_D \
16016 export_symbols_cmds_D \
16018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16019 *[\\\\\\\`\\"\\\$]*)
16020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16028 ac_aux_dir='$ac_aux_dir'
16029 xsi_shell='$xsi_shell'
16030 lt_shell_append='$lt_shell_append'
16032 # See if we are running on zsh, and set the options which allow our
16033 # commands through without removal of \ escapes INIT.
16034 if test -n "\${ZSH_VERSION+set}" ; then
16035 setopt NO_GLOB_SUBST
16041 TIMESTAMP='$TIMESTAMP'
16052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16054 # Handling of arguments.
16055 for ac_config_target
in $ac_config_targets
16057 case $ac_config_target in
16058 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16059 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16060 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16061 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16062 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16063 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16064 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16065 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16066 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16067 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16068 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16070 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16075 # If the user did not use the arguments to specify the items to instantiate,
16076 # then the envvar interface is used. Set only those that are not.
16077 # We use the long form for the default assignment because of an extremely
16078 # bizarre bug on SunOS 4.1.3.
16079 if $ac_need_defaults; then
16080 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16081 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16082 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16085 # Have a temporary directory for convenience. Make it in the build tree
16086 # simply because there is no reason against having it here, and in addition,
16087 # creating and moving files from /tmp can sometimes cause problems.
16088 # Hook for its removal unless debugging.
16089 # Note that there is a small window in which the directory will not be cleaned:
16090 # after its creation but before its name has been assigned to `$tmp'.
16094 trap 'exit_status=$?
16095 : "${ac_tmp:=$tmp}"
16096 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16098 trap 'as_fn_exit 1' 1 2 13 15
16100 # Create a (secure) tmp directory for tmp files.
16103 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16107 tmp
=.
/conf$$
-$RANDOM
16108 (umask 077 && mkdir
"$tmp")
16109 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16112 # Set up the scripts for CONFIG_FILES section.
16113 # No need to generate them if there are no CONFIG_FILES.
16114 # This happens for instance with `./config.status config.h'.
16115 if test -n "$CONFIG_FILES"; then
16118 ac_cr
=`echo X | tr X '\015'`
16119 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16120 # But we know of no other shell where ac_cr would be empty at this
16121 # point, so we can use a bashism as a fallback.
16122 if test "x$ac_cr" = x
; then
16123 eval ac_cr
=\$
\'\\r
\'
16125 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16126 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16129 ac_cs_awk_cr
=$ac_cr
16132 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16137 echo "cat >conf$$subs.awk <<_ACEOF" &&
16138 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16140 } >conf$$subs.sh ||
16141 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16142 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16144 for ac_last_try in false false false false false :; do
16145 . ./conf$$subs.sh ||
16146 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16148 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16149 if test $ac_delim_n = $ac_delim_num; then
16151 elif $ac_last_try; then
16152 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16154 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16157 rm -f conf$$subs.sh
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16164 s/^/S["/; s
/!.
*/"]=/
16174 s/\(.\{148\}\)..*/\1/
16176 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16181 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16188 s/\(.\{148\}\)..*/\1/
16190 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16194 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16199 ' <conf$$subs.awk | sed '
16204 ' >>$CONFIG_STATUS || ac_write_fail=1
16205 rm -f conf$$subs.awk
16206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16209 for (key in S) S_is_set[key] = 1
16215 nfields = split(line, field, "@
")
16217 len = length(field[1])
16218 for (i = 2; i < nfields; i++) {
16220 keylen = length(key)
16221 if (S_is_set[key]) {
16223 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16224 len += length(value) + length(field[++i])
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16237 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16240 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16241 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16244 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16245 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16246 # trailing colons and then remove the whole line if VPATH becomes empty
16247 # (actually we leave an empty line to preserve line numbers).
16248 if test "x
$srcdir" = x.; then
16249 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 fi # test -n "$CONFIG_FILES"
16270 # Set up the scripts for CONFIG_HEADERS section.
16271 # No need to generate them if there are no CONFIG_HEADERS.
16272 # This happens for instance with `./config.status Makefile'.
16273 if test -n "$CONFIG_HEADERS"; then
16274 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16278 # Transform confdefs.h into an awk script `defines.awk', embedded as
16279 # here-document in config.status, that substitutes the proper values into
16280 # config.h.in to produce config.h.
16282 # Create a delimiter string that does not exist in confdefs.h, to ease
16283 # handling of long lines.
16285 for ac_last_try in false false :; do
16286 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16287 if test -z "$ac_tt"; then
16289 elif $ac_last_try; then
16290 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16292 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16296 # For the awk script, D is an array of macro values keyed by name,
16297 # likewise P contains macro parameters if any. Preserve backslash
16298 # newline sequences.
16300 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16302 s/.\{148\}/&'"$ac_delim"'/g
16305 s/^[ ]*#[ ]*define[ ][ ]*/ /
16312 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16314 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16318 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16319 D["\
1"]=" \
3\\\\\\n
"\\/p
16321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16326 s/.\{148\}/&'"$ac_delim"'/g
16331 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16334 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16336 ' <confdefs.h | sed '
16337 s/'"$ac_delim"'/"\\\
16338 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 for (key in D) D_is_set[key] = 1
16344 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16346 split(line, arg, " ")
16347 if (arg[1] == "#") {
16351 defundef
= substr
(arg
[1], 2)
16354 split(mac1
, mac2
, "(") #)
16356 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16357 if (D_is_set
[macro
]) {
16358 # Preserve the white space surrounding the "#".
16359 print prefix
"define", macro P
[macro
] D
[macro
]
16362 # Replace #undef with comments. This is necessary, for example,
16363 # in the case of _POSIX_SOURCE, which is predefined and required
16364 # on some systems where configure will not decide to define it.
16365 if (defundef
== "undef") {
16366 print
"/*", prefix defundef
, macro
, "*/"
16374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16375 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16376 fi # test -n "$CONFIG_HEADERS"
16379 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16384 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16386 case $ac_mode$ac_tag in
16388 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16389 :[FH
]-) ac_tag
=-:-;;
16390 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16407 -) ac_f
="$ac_tmp/stdin";;
16408 *) # Look for the file first in the build tree, then in the source tree
16409 # (if the path is not absolute). The absolute path cannot be DOS-style,
16410 # because $ac_f cannot contain `:'.
16414 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16416 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16418 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16419 as_fn_append ac_file_inputs
" '$ac_f'"
16422 # Let's still pretend it is `configure' which instantiates (i.e., don't
16423 # use $as_me), people would be surprised to read:
16424 # /* config.h. Generated by config.status. */
16425 configure_input
='Generated from '`
16426 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16428 if test x
"$ac_file" != x-
; then
16429 configure_input
="$ac_file. $configure_input"
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16431 $as_echo "$as_me: creating $ac_file" >&6;}
16433 # Neutralize special characters interpreted by sed in replacement strings.
16434 case $configure_input in #(
16435 *\
&* |
*\|
* |
*\\* )
16436 ac_sed_conf_input
=`$as_echo "$configure_input" |
16437 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16438 *) ac_sed_conf_input
=$configure_input;;
16442 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16443 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16448 ac_dir
=`$as_dirname -- "$ac_file" ||
16449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16450 X"$ac_file" : 'X\(//\)[^/]' \| \
16451 X"$ac_file" : 'X\(//\)$' \| \
16452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16453 $as_echo X"$ac_file" |
16454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16458 /^X\(\/\/\)[^/].*/{
16471 as_dir
="$ac_dir"; as_fn_mkdir_p
16475 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16477 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16478 # A ".." for each directory in $ac_dir_suffix.
16479 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16480 case $ac_top_builddir_sub in
16481 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16482 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16485 ac_abs_top_builddir
=$ac_pwd
16486 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16487 # for backward compatibility:
16488 ac_top_builddir
=$ac_top_build_prefix
16491 .
) # We are building in place.
16493 ac_top_srcdir
=$ac_top_builddir_sub
16494 ac_abs_top_srcdir
=$ac_pwd ;;
16495 [\\/]* | ?
:[\\/]* ) # Absolute name.
16496 ac_srcdir
=$srcdir$ac_dir_suffix;
16497 ac_top_srcdir
=$srcdir
16498 ac_abs_top_srcdir
=$srcdir ;;
16499 *) # Relative name.
16500 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16501 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16502 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16504 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16514 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16515 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16517 ac_MKDIR_P
=$MKDIR_P
16519 [\\/$
]* | ?
:[\\/]* ) ;;
16520 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16525 # If the template does not know about datarootdir, expand it.
16526 # FIXME: This hack should be removed a few years after 2.60.
16527 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16539 *datarootdir
*) ac_datarootdir_seen
=yes;;
16540 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 ac_datarootdir_hack='
16546 s&@datadir@&$datadir&g
16547 s&@docdir@&$docdir&g
16548 s&@infodir@&$infodir&g
16549 s&@localedir@&$localedir&g
16550 s&@mandir@&$mandir&g
16551 s&\\\${datarootdir}&$datarootdir&g' ;;
16555 # Neutralize VPATH when `$srcdir' = `.'.
16556 # Shell code in configure.ac might set extrasub.
16557 # FIXME: do we really want to maintain this feature?
16558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16559 ac_sed_extra="$ac_vpsub
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16564 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16565 s|@configure_input@|
$ac_sed_conf_input|
;t t
16566 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16567 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16568 s
&@srcdir@
&$ac_srcdir&;t t
16569 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16570 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16571 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16572 s
&@builddir@
&$ac_builddir&;t t
16573 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16574 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16575 s
&@INSTALL@
&$ac_INSTALL&;t t
16576 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16577 $ac_datarootdir_hack
16579 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16580 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16583 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16585 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16587 which seems to be undefined. Please make sure it is defined" >&5
16588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16589 which seems to be undefined. Please make sure it is defined" >&2;}
16591 rm -f "$ac_tmp/stdin"
16593 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16594 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16602 if test x"$ac_file" != x-; then
16604 $as_echo "/* $configure_input */" \
16605 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16606 } >"$ac_tmp/config.h" \
16607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16608 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16610 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16613 mv "$ac_tmp/config.h" "$ac_file" \
16614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16617 $as_echo "/* $configure_input */" \
16618 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16619 || as_fn_error $? "could not create -" "$LINENO" 5
16621 # Compute "$ac_file"'s index
in $config_headers.
16624 for _am_header
in $config_headers :; do
16625 case $_am_header in
16626 $_am_arg |
$_am_arg:* )
16629 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16632 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16633 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634 X"$_am_arg" : 'X\(//\)[^/]' \| \
16635 X"$_am_arg" : 'X\(//\)$' \| \
16636 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16637 $as_echo X"$_am_arg" |
16638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16642 /^X\(\/\/\)[^/].*/{
16654 s/.*/./; q'`/stamp-h
$_am_stamp_count
16657 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16658 $as_echo "$as_me: executing $ac_file commands" >&6;}
16663 case $ac_file$ac_mode in
16665 # Only add multilib support code if we just rebuilt the top-level
16667 case " $CONFIG_FILES " in
16669 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
16674 # See if we are running on zsh, and set the options which allow our
16675 # commands through without removal of \ escapes.
16676 if test -n "${ZSH_VERSION+set}" ; then
16677 setopt NO_GLOB_SUBST
16680 cfgfile
="${ofile}T"
16681 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16684 cat <<_LT_EOF >> "$cfgfile"
16687 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16688 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16689 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16690 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16692 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16693 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16694 # Written by Gordon Matzigkeit, 1996
16696 # This file is part of GNU Libtool.
16698 # GNU Libtool is free software; you can redistribute it and/or
16699 # modify it under the terms of the GNU General Public License as
16700 # published by the Free Software Foundation; either version 2 of
16701 # the License, or (at your option) any later version.
16703 # As a special exception to the GNU General Public License,
16704 # if you distribute this file as part of a program or library that
16705 # is built using GNU Libtool, you may include this file under the
16706 # same distribution terms that you use for the rest of that program.
16708 # GNU Libtool is distributed in the hope that it will be useful,
16709 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16710 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16711 # GNU General Public License for more details.
16713 # You should have received a copy of the GNU General Public License
16714 # along with GNU Libtool; see the file COPYING. If not, a copy
16715 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16716 # obtained by writing to the Free Software Foundation, Inc.,
16717 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16720 # The names of the tagged configurations supported by this script.
16721 available_tags="D "
16723 # ### BEGIN LIBTOOL CONFIG
16725 # Which release of libtool.m4 was used?
16726 macro_version=$macro_version
16727 macro_revision=$macro_revision
16729 # Whether or not to build shared libraries.
16730 build_libtool_libs=$enable_shared
16732 # Whether or not to build static libraries.
16733 build_old_libs=$enable_static
16735 # What type of objects to build.
16738 # Whether or not to optimize for fast installation.
16739 fast_install=$enable_fast_install
16741 # Shell to use when invoking shell scripts.
16744 # An echo program that protects backslashes.
16748 host_alias=$host_alias
16752 # The build system.
16753 build_alias=$build_alias
16757 # A sed program that does not truncate output.
16760 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16761 Xsed="\$SED -e 1s/^X//"
16763 # A grep program that handles long lines.
16769 # A literal string matcher.
16772 # A BSD- or MS-compatible name lister.
16775 # Whether we need soft or hard links.
16778 # What is the maximum length of a command?
16779 max_cmd_len=$max_cmd_len
16781 # Object file suffix (normally "o").
16784 # Executable file suffix (normally "").
16787 # whether the shell understands "unset".
16790 # turn spaces into newlines.
16793 # turn newlines into spaces.
16796 # An object symbol dumper.
16797 OBJDUMP=$lt_OBJDUMP
16799 # Method to check whether dependent libraries are shared objects.
16800 deplibs_check_method=$lt_deplibs_check_method
16802 # Command to use when deplibs_check_method == "file_magic".
16803 file_magic_cmd=$lt_file_magic_cmd
16807 AR_FLAGS=$lt_AR_FLAGS
16809 # A symbol stripping program.
16812 # Commands used to install an old-style archive.
16814 old_postinstall_cmds=$lt_old_postinstall_cmds
16815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16817 # Whether to use a lock for old archive extraction.
16818 lock_old_archive_extraction=$lock_old_archive_extraction
16823 # LTCC compiler flags.
16824 LTCFLAGS=$lt_CFLAGS
16826 # Take the output of nm and produce a listing of raw symbols and C names.
16827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16829 # Transform the output of nm in a proper C declaration.
16830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16832 # Transform the output of nm in a C name address pair.
16833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16835 # Transform the output of nm in a C name address pair when lib prefix is needed.
16836 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16838 # The name of the directory that contains temporary libtool files.
16841 # Used to examine libraries when file_magic_cmd begins with "file".
16842 MAGIC_CMD=$MAGIC_CMD
16844 # Must we lock files when doing compilation?
16845 need_locks=$lt_need_locks
16847 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16848 DSYMUTIL=$lt_DSYMUTIL
16850 # Tool to change global to local symbols on Mac OS X.
16853 # Tool to manipulate fat objects and archives on Mac OS X.
16856 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16859 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16860 OTOOL64=$lt_OTOOL64
16862 # Old archive suffix (normally "a").
16865 # Shared library suffix (normally ".so").
16866 shrext_cmds=$lt_shrext_cmds
16868 # The commands to extract the exported symbol list from a shared archive.
16869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16871 # Variables whose values should be saved in libtool wrapper scripts and
16872 # restored at link time.
16873 variables_saved_for_relink=$lt_variables_saved_for_relink
16875 # Do we need the "lib" prefix for modules?
16876 need_lib_prefix=$need_lib_prefix
16878 # Do we need a version for libraries?
16879 need_version=$need_version
16881 # Library versioning type.
16882 version_type=$version_type
16884 # Shared library runtime path variable.
16885 runpath_var=$runpath_var
16887 # Shared library path variable.
16888 shlibpath_var=$shlibpath_var
16890 # Is shlibpath searched before the hard-coded library search path?
16891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16893 # Format of library name prefix.
16894 libname_spec=$lt_libname_spec
16896 # List of archive names. First name is the real one, the rest are links.
16897 # The last name is the one that the linker finds with -lNAME
16898 library_names_spec=$lt_library_names_spec
16900 # The coded name of the library, if different from the real name.
16901 soname_spec=$lt_soname_spec
16903 # Permission mode override for installation of shared libraries.
16904 install_override_mode=$lt_install_override_mode
16906 # Command to use after installation of a shared archive.
16907 postinstall_cmds=$lt_postinstall_cmds
16909 # Command to use after uninstallation of a shared archive.
16910 postuninstall_cmds=$lt_postuninstall_cmds
16912 # Commands used to finish a libtool library installation in a directory.
16913 finish_cmds=$lt_finish_cmds
16915 # As "finish_cmds", except a single script fragment to be evaled but
16917 finish_eval=$lt_finish_eval
16919 # Whether we should hardcode library paths into libraries.
16920 hardcode_into_libs=$hardcode_into_libs
16922 # Compile-time system search path for libraries.
16923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16925 # Run-time system search path for libraries.
16926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16928 # Whether dlopen is supported.
16929 dlopen_support=$enable_dlopen
16931 # Whether dlopen of programs is supported.
16932 dlopen_self=$enable_dlopen_self
16934 # Whether dlopen of statically linked programs is supported.
16935 dlopen_self_static=$enable_dlopen_self_static
16937 # Commands to strip libraries.
16938 old_striplib=$lt_old_striplib
16939 striplib=$lt_striplib
16942 # The linker used to build libraries.
16945 # How to create reloadable object files.
16946 reload_flag=$lt_reload_flag
16947 reload_cmds=$lt_reload_cmds
16949 # Commands used to build an old-style archive.
16950 old_archive_cmds=$lt_old_archive_cmds
16952 # A language specific compiler.
16955 # Is the compiler the GNU compiler?
16958 # Compiler flag to turn off builtin functions.
16959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16961 # How to pass a linker flag through the compiler.
16962 wl=$lt_lt_prog_compiler_wl
16964 # Additional compiler flags for building library objects.
16965 pic_flag=$lt_lt_prog_compiler_pic
16967 # Compiler flag to prevent dynamic linking.
16968 link_static_flag=$lt_lt_prog_compiler_static
16970 # Does compiler simultaneously support -c and -o options?
16971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16973 # Whether or not to add -lc for building shared libraries.
16974 build_libtool_need_lc=$archive_cmds_need_lc
16976 # Whether or not to disallow shared libs when runtime libs are static.
16977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16979 # Compiler flag to allow reflexive dlopens.
16980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16982 # Compiler flag to generate shared objects directly from archives.
16983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16985 # Whether the compiler copes with passing no objects directly.
16986 compiler_needs_object=$lt_compiler_needs_object
16988 # Create an old-style archive from a shared archive.
16989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16991 # Create a temporary old-style archive to link instead of a shared archive.
16992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16994 # Commands used to build a shared archive.
16995 archive_cmds=$lt_archive_cmds
16996 archive_expsym_cmds=$lt_archive_expsym_cmds
16998 # Commands used to build a loadable module if different from building
16999 # a shared archive.
17000 module_cmds=$lt_module_cmds
17001 module_expsym_cmds=$lt_module_expsym_cmds
17003 # Whether we are building with GNU ld or not.
17004 with_gnu_ld=$lt_with_gnu_ld
17006 # Flag that allows shared libraries with undefined symbols to be built.
17007 allow_undefined_flag=$lt_allow_undefined_flag
17009 # Flag that enforces no undefined symbols.
17010 no_undefined_flag=$lt_no_undefined_flag
17012 # Flag to hardcode \$libdir into a binary during linking.
17013 # This must work even if \$libdir does not exist
17014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17016 # If ld is used when linking, flag to hardcode \$libdir into a binary
17017 # during linking. This must work even if \$libdir does not exist.
17018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17020 # Whether we need a single "-rpath" flag with a separated argument.
17021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17024 # DIR into the resulting binary.
17025 hardcode_direct=$hardcode_direct
17027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17028 # DIR into the resulting binary and the resulting library dependency is
17029 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17030 # library is relocated.
17031 hardcode_direct_absolute=$hardcode_direct_absolute
17033 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17034 # into the resulting binary.
17035 hardcode_minus_L=$hardcode_minus_L
17037 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17038 # into the resulting binary.
17039 hardcode_shlibpath_var=$hardcode_shlibpath_var
17041 # Set to "yes" if building a shared library automatically hardcodes DIR
17042 # into the library and all subsequent libraries and executables linked
17044 hardcode_automatic=$hardcode_automatic
17046 # Set to yes if linker adds runtime paths of dependent libraries
17047 # to runtime path list.
17048 inherit_rpath=$inherit_rpath
17050 # Whether libtool must link a program against all its dependency libraries.
17051 link_all_deplibs=$link_all_deplibs
17053 # Fix the shell variable \$srcfile for the compiler.
17054 fix_srcfile_path=$lt_fix_srcfile_path
17056 # Set to "yes" if exported symbols are required.
17057 always_export_symbols=$always_export_symbols
17059 # The commands to list exported symbols.
17060 export_symbols_cmds=$lt_export_symbols_cmds
17062 # Symbols that should not be listed in the preloaded symbols.
17063 exclude_expsyms=$lt_exclude_expsyms
17065 # Symbols that must always be exported.
17066 include_expsyms=$lt_include_expsyms
17068 # Commands necessary for linking programs (against libraries) with templates.
17069 prelink_cmds=$lt_prelink_cmds
17071 # Specify filename containing input files.
17072 file_list_spec=$lt_file_list_spec
17074 # How to hardcode a shared library path into an executable.
17075 hardcode_action=$hardcode_action
17077 # ### END LIBTOOL CONFIG
17083 cat <<\_LT_EOF
>> "$cfgfile"
17084 # AIX sometimes has problems with the GCC collect2 program. For some
17085 # reason, if we set the COLLECT_NAMES environment variable, the problems
17086 # vanish in a puff of smoke.
17087 if test "X${COLLECT_NAMES+set}" != Xset
; then
17089 export COLLECT_NAMES
17096 ltmain
="$ac_aux_dir/ltmain.sh"
17099 # We use sed instead of cat because bash on DJGPP gets confused if
17100 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17101 # text mode, it properly converts lines to CR/LF. This bash problem
17102 # is reportedly fixed, but why not run on old versions too?
17103 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17104 ||
(rm -f "$cfgfile"; exit 1)
17108 cat << \_LT_EOF
>> "$cfgfile"
17110 # func_dirname file append nondir_replacement
17111 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17112 # otherwise set result to NONDIR_REPLACEMENT.
17116 */*) func_dirname_result
="${1%/*}${2}" ;;
17117 * ) func_dirname_result
="${3}" ;;
17121 # func_basename file
17124 func_basename_result
="${1##*/}"
17127 # func_dirname_and_basename file append nondir_replacement
17128 # perform func_basename and func_dirname in a single function
17130 # dirname: Compute the dirname of FILE. If nonempty,
17131 # add APPEND to the result, otherwise set result
17132 # to NONDIR_REPLACEMENT.
17133 # value returned in "$func_dirname_result"
17134 # basename: Compute filename of FILE.
17135 # value retuned in "$func_basename_result"
17136 # Implementation must be kept synchronized with func_dirname
17137 # and func_basename. For efficiency, we do not delegate to
17138 # those functions but instead duplicate the functionality here.
17139 func_dirname_and_basename
()
17142 */*) func_dirname_result
="${1%/*}${2}" ;;
17143 * ) func_dirname_result
="${3}" ;;
17145 func_basename_result
="${1##*/}"
17148 # func_stripname prefix suffix name
17149 # strip PREFIX and SUFFIX off of NAME.
17150 # PREFIX and SUFFIX must not contain globbing or regex special
17151 # characters, hashes, percent signs, but SUFFIX may contain a leading
17152 # dot (in which case that matches only a dot).
17155 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17156 # positional parameters, so assign one to ordinary parameter first.
17157 func_stripname_result
=${3}
17158 func_stripname_result
=${func_stripname_result#"${1}"}
17159 func_stripname_result
=${func_stripname_result%"${2}"}
17165 func_opt_split_opt
=${1%%=*}
17166 func_opt_split_arg
=${1#*=}
17173 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17174 *) func_lo2o_result
=${1} ;;
17178 # func_xform libobj-or-source
17181 func_xform_result
=${1%.*}.lo
17184 # func_arith arithmetic-term...
17187 func_arith_result
=$
(( $
* ))
17191 # STRING may not start with a hyphen.
17194 func_len_result
=${#1}
17199 *) # Bourne compatible functions.
17200 cat << \_LT_EOF
>> "$cfgfile"
17202 # func_dirname file append nondir_replacement
17203 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17204 # otherwise set result to NONDIR_REPLACEMENT.
17207 # Extract subdirectory from the argument.
17208 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17209 if test "X$func_dirname_result" = "X${1}"; then
17210 func_dirname_result
="${3}"
17212 func_dirname_result
="$func_dirname_result${2}"
17216 # func_basename file
17219 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17223 # func_stripname prefix suffix name
17224 # strip PREFIX and SUFFIX off of NAME.
17225 # PREFIX and SUFFIX must not contain globbing or regex special
17226 # characters, hashes, percent signs, but SUFFIX may contain a leading
17227 # dot (in which case that matches only a dot).
17228 # func_strip_suffix prefix name
17232 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17233 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17238 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17239 my_sed_long_arg
='1s/^-[^=]*=//'
17244 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17245 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17251 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17254 # func_xform libobj-or-source
17257 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17260 # func_arith arithmetic-term...
17263 func_arith_result
=`expr "$@"`
17267 # STRING may not start with a hyphen.
17270 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17276 case $lt_shell_append in
17278 cat << \_LT_EOF
>> "$cfgfile"
17280 # func_append var value
17281 # Append VALUE to the end of shell variable VAR.
17289 cat << \_LT_EOF
>> "$cfgfile"
17291 # func_append var value
17292 # Append VALUE to the end of shell variable VAR.
17303 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17304 ||
(rm -f "$cfgfile"; exit 1)
17306 mv -f "$cfgfile" "$ofile" ||
17307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17311 cat <<_LT_EOF >> "$ofile"
17313 # ### BEGIN LIBTOOL TAG CONFIG: D
17315 # The linker used to build libraries.
17318 # How to create reloadable object files.
17319 reload_flag=$lt_reload_flag_D
17320 reload_cmds=$lt_reload_cmds_D
17322 # Commands used to build an old-style archive.
17323 old_archive_cmds=$lt_old_archive_cmds_D
17325 # A language specific compiler.
17328 # Is the compiler the GNU compiler?
17331 # Compiler flag to turn off builtin functions.
17332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17334 # How to pass a linker flag through the compiler.
17335 wl=$lt_lt_prog_compiler_wl_D
17337 # Additional compiler flags for building library objects.
17338 pic_flag=$lt_lt_prog_compiler_pic_D
17340 # Compiler flag to prevent dynamic linking.
17341 link_static_flag=$lt_lt_prog_compiler_static_D
17343 # Does compiler simultaneously support -c and -o options?
17344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17346 # Whether or not to add -lc for building shared libraries.
17347 build_libtool_need_lc=$archive_cmds_need_lc_D
17349 # Whether or not to disallow shared libs when runtime libs are static.
17350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17352 # Compiler flag to allow reflexive dlopens.
17353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17355 # Compiler flag to generate shared objects directly from archives.
17356 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17358 # Whether the compiler copes with passing no objects directly.
17359 compiler_needs_object=$lt_compiler_needs_object_D
17361 # Create an old-style archive from a shared archive.
17362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17364 # Create a temporary old-style archive to link instead of a shared archive.
17365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17367 # Commands used to build a shared archive.
17368 archive_cmds=$lt_archive_cmds_D
17369 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17371 # Commands used to build a loadable module if different from building
17372 # a shared archive.
17373 module_cmds=$lt_module_cmds_D
17374 module_expsym_cmds=$lt_module_expsym_cmds_D
17376 # Whether we are building with GNU ld or not.
17377 with_gnu_ld=$lt_with_gnu_ld_D
17379 # Flag that allows shared libraries with undefined symbols to be built.
17380 allow_undefined_flag=$lt_allow_undefined_flag_D
17382 # Flag that enforces no undefined symbols.
17383 no_undefined_flag=$lt_no_undefined_flag_D
17385 # Flag to hardcode \$libdir into a binary during linking.
17386 # This must work even if \$libdir does not exist
17387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17389 # If ld is used when linking, flag to hardcode \$libdir into a binary
17390 # during linking. This must work even if \$libdir does not exist.
17391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17393 # Whether we need a single "-rpath" flag with a separated argument.
17394 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17397 # DIR into the resulting binary.
17398 hardcode_direct=$hardcode_direct_D
17400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17401 # DIR into the resulting binary and the resulting library dependency is
17402 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17403 # library is relocated.
17404 hardcode_direct_absolute=$hardcode_direct_absolute_D
17406 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17407 # into the resulting binary.
17408 hardcode_minus_L=$hardcode_minus_L_D
17410 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17411 # into the resulting binary.
17412 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17414 # Set to "yes" if building a shared library automatically hardcodes DIR
17415 # into the library and all subsequent libraries and executables linked
17417 hardcode_automatic=$hardcode_automatic_D
17419 # Set to yes if linker adds runtime paths of dependent libraries
17420 # to runtime path list.
17421 inherit_rpath=$inherit_rpath_D
17423 # Whether libtool must link a program against all its dependency libraries.
17424 link_all_deplibs=$link_all_deplibs_D
17426 # Fix the shell variable \$srcfile for the compiler.
17427 fix_srcfile_path=$lt_fix_srcfile_path_D
17429 # Set to "yes" if exported symbols are required.
17430 always_export_symbols=$always_export_symbols_D
17432 # The commands to list exported symbols.
17433 export_symbols_cmds=$lt_export_symbols_cmds_D
17435 # Symbols that should not be listed in the preloaded symbols.
17436 exclude_expsyms=$lt_exclude_expsyms_D
17438 # Symbols that must always be exported.
17439 include_expsyms=$lt_include_expsyms_D
17441 # Commands necessary for linking programs (against libraries) with templates.
17442 prelink_cmds=$lt_prelink_cmds_D
17444 # Specify filename containing input files.
17445 file_list_spec=$lt_file_list_spec_D
17447 # How to hardcode a shared library path into an executable.
17448 hardcode_action=$hardcode_action_D
17450 # ### END LIBTOOL TAG CONFIG: D
17454 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
17455 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
17456 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17458 sed -f vpsed$$
$ac_file > tmp$$
17461 echo 'MULTISUBDIR =' >> $ac_file
17463 .
${multi_basedir}/config-ml.
in
17464 { ml_norecursion
=; unset ml_norecursion
;}
17466 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
17467 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17469 sed -f vpsed$$
$ac_file > tmp$$
17472 echo 'MULTISUBDIR =' >> $ac_file
17474 .
${multi_basedir}/config-ml.
in
17475 { ml_norecursion
=; unset ml_norecursion
;}
17477 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
17478 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17480 sed -f vpsed$$
$ac_file > tmp$$
17483 echo 'MULTISUBDIR =' >> $ac_file
17485 .
${multi_basedir}/config-ml.
in
17486 { ml_norecursion
=; unset ml_norecursion
;}
17495 ac_clean_files
=$ac_clean_files_save
17497 test $ac_write_fail = 0 ||
17498 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17501 # configure is writing to config.log, and then calls config.status.
17502 # config.status does its own redirection, appending to config.log.
17503 # Unfortunately, on DOS this fails, as config.log is still kept open
17504 # by configure, so config.status won't be able to write to it; its
17505 # output is simply discarded. So we exec the FD to /dev/null,
17506 # effectively closing config.log, so it can be properly (re)opened and
17507 # appended to by config.status. When coming back to configure, we
17508 # need to make the FD available again.
17509 if test "$no_create" != yes; then
17511 ac_config_status_args
=
17512 test "$silent" = yes &&
17513 ac_config_status_args
="$ac_config_status_args --quiet"
17515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17518 # would make configure fail if this is the last instruction.
17519 $ac_cs_success || as_fn_exit
1
17521 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17523 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}