671
671
# If test is not a shell built-in, we'll probably end up computing a
672
672
# maximum length that is only half of the actual maximum length, but
674
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
675
= "XX$teststring") >/dev/null 2>&1 &&
676
new_result=`expr "X$teststring" : ".*" 2>&1` &&
674
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
675
= "XX$testring") >/dev/null 2>&1 &&
676
new_result=`expr "X$testring" : ".*" 2>&1` &&
677
677
lt_cv_sys_max_cmd_len=$new_result &&
678
678
test $i != 17 # 1/2 MB should be enough
681
teststring=$teststring$teststring
681
testring=$testring$testring
684
684
# Add a significant safety factor because C++ compilers can tack on massive
685
685
# amounts of additional arguments before passing them to the linker.
686
686
# It appears as though 1/2 is a usable value.
1254
1254
soname_spec='${libname}${release}${major}$shared_ext'
1255
1255
shlibpath_overrides_runpath=yes
1256
1256
shlibpath_var=DYLD_LIBRARY_PATH
1257
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1257
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
1258
1258
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1259
1259
if test "$GCC" = yes; then
1260
1260
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1432
1432
# before this can be enabled.
1433
1433
hardcode_into_libs=yes
1435
# find out which ABI we are using
1438
x86_64*|s390x*|powerpc64*)
1439
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1440
if AC_TRY_EVAL(ac_compile); then
1441
case `/usr/bin/file conftest.$ac_objext` in
1444
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1452
1435
# Append ld.so.conf contents to the search path
1453
1436
if test -f /etc/ld.so.conf; then
1454
lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1455
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1437
ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
1438
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
1458
1441
# We used to test for /lib/ld.so.1 and disable shared libraries on
2128
# func_win32_libid is a shell function defined in ltmain.sh
2111
# win32_libid is a shell function defined in ltmain.sh
2129
2112
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2130
lt_cv_file_magic_cmd='func_win32_libid'
2113
lt_cv_file_magic_cmd='win32_libid'
2133
2116
mingw* | pw32*)
2134
2117
# Base MSYS/MinGW do not provide the 'file' command needed by
2135
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2118
# win32_libid shell function, so use a weaker test based on 'objdump'.
2136
2119
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2137
2120
lt_cv_file_magic_cmd='$OBJDUMP -f'
5958
5941
# ----------------------------
5959
5942
# Automake X.Y traces this macro to ensure aclocal.m4 has been
5960
5943
# generated from the m4 files accompanying Automake X.Y.
5961
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
5944
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
5963
5946
# AM_SET_CURRENT_AUTOMAKE_VERSION
5964
5947
# -------------------------------
5965
5948
# Call AM_AUTOMAKE_VERSION so it can be traced.
5966
5949
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
5967
5950
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5968
[AM_AUTOMAKE_VERSION([1.9.2])])
5951
[AM_AUTOMAKE_VERSION([1.8.3])])
5970
5953
# AM_AUX_DIR_EXPAND
6191
6174
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6192
6175
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6193
6176
# icc doesn't choke on unknown options, it will just issue warnings
6194
# or remarks (even with -Werror). So we grep stderr for any message
6195
# that says an option was ignored or not supported.
6196
# When given -MP, icc 7.0 and 7.1 complain thusly:
6197
# icc: Command line warning: ignoring option '-M'; no argument required
6198
# The diagnosis changed in icc 8.0:
6199
# icc: Command line remark: option '-MP' not supported
6200
if (grep 'ignoring option' conftest.err ||
6201
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6177
# (even with -Werror). So we grep stderr for any message
6178
# that says an option was ignored.
6179
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6202
6180
am_cv_$1_dependencies_compiler_type=$depmode
6245
6223
# Generate code to set up dependency tracking. -*- Autoconf -*-
6247
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6248
# Free Software Foundation, Inc.
6225
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6250
6227
# This program is free software; you can redistribute it and/or modify
6251
6228
# it under the terms of the GNU General Public License as published by
6284
# Extract the definition of DEPDIR, am__include, and am__quote
6285
# from the Makefile without running `make'.
6261
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6262
# Extract the definition of DEP_FILES from the Makefile without
6286
6264
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6287
6265
test -z "$DEPDIR" && continue
6288
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6289
test -z "am__include" && continue
6290
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6291
6266
# When using ansi2knr, U may be empty or an underscore; expand it
6292
6267
U=`sed -n 's/^U = //p' < "$mf"`
6293
# Find all dependency output files, they are included files with
6294
# $(DEPDIR) in their names. We invoke sed twice because it is the
6295
# simplest approach to changing $(DEPDIR) to its actual value in the
6297
for file in `sed -n "
6298
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6268
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6269
# We invoke sed twice because it is the simplest approach to
6270
# changing $(DEPDIR) to its actual value in the expansion.
6271
for file in `sed -n '
6272
/^DEP_FILES = .*\\\\$/ {
6281
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6299
6282
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6300
6283
# Make sure the directory exists.
6301
6284
test -f "$dirpart/$file" && continue
6326
6309
# This macro actually does too much some checks are only needed if
6327
6310
# your package does certain things. But this isn't really a big deal.
6329
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
6312
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6330
6313
# Free Software Foundation, Inc.
6332
6315
# This program is free software; you can redistribute it and/or modify
6696
6678
AC_DEFUN([AM_PROG_MKDIR_P],
6697
6679
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6698
# We used to keeping the `.' as first argument, in order to
6699
# allow $(mkdir_p) to be used without argument. As in
6680
# Keeping the `.' argument allows $(mkdir_p) to be used without
6681
# argument. Indeed, we sometimes output rules like
6700
6682
# $(mkdir_p) $(somedir)
6701
# where $(somedir) is conditionally defined. However this is wrong
6703
# 1. if the package is installed by a user who cannot write `.'
6704
# make install will fail,
6705
# 2. the above comment should most certainly read
6706
# $(mkdir_p) $(DESTDIR)$(somedir)
6707
# so it does not work when $(somedir) is undefined and
6708
# $(DESTDIR) is not.
6709
# To support the latter case, we have to write
6710
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6711
# so the `.' trick is pointless.
6712
mkdir_p='mkdir -p --'
6683
# where $(somedir) is conditionally defined.
6684
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6685
# expensive solution, as it forces Make to start a sub-shell.)
6686
mkdir_p='mkdir -p -- .'
6714
6688
# On NextStep and OpenStep, the `mkdir' command does not
6715
6689
# recognize any option. It will interpret all options as
6875
6849
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6876
6850
AC_SUBST([INSTALL_STRIP_PROGRAM])])
6878
# Check how to create a tarball. -*- Autoconf -*-
6880
# Copyright (C) 2004 Free Software Foundation, Inc.
6882
# This program is free software; you can redistribute it and/or modify
6883
# it under the terms of the GNU General Public License as published by
6884
# the Free Software Foundation; either version 2, or (at your option)
6885
# any later version.
6887
# This program is distributed in the hope that it will be useful,
6888
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6889
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6890
# GNU General Public License for more details.
6892
# You should have received a copy of the GNU General Public License
6893
# along with this program; if not, write to the Free Software
6894
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6900
# _AM_PROG_TAR(FORMAT)
6901
# --------------------
6902
# Check how to create a tarball in format FORMAT.
6903
# FORMAT should be one of `v7', `ustar', or `pax'.
6905
# Substitute a variable $(am__tar) that is a command
6906
# writing to stdout a FORMAT-tarball containing the directory
6908
# tardir=directory && $(am__tar) > result.tar
6910
# Substitute a variable $(am__untar) that extract such
6911
# a tarball read from stdin.
6912
# $(am__untar) < result.tar
6913
AC_DEFUN([_AM_PROG_TAR],
6914
[# Always define AMTAR for backward compatibility.
6915
AM_MISSING_PROG([AMTAR], [tar])
6917
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
6918
[m4_case([$1], [ustar],, [pax],,
6919
[m4_fatal([Unknown tar format])])
6920
AC_MSG_CHECKING([how to create a $1 tar archive])
6921
# Loop over all known methods to create a tar archive until one works.
6922
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
6923
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
6924
# Do not fold the above two line into one, because Tru64 sh and
6925
# Solaris sh will not grok spaces in the rhs of `-'.
6926
for _am_tool in $_am_tools
6930
for _am_tar in tar gnutar gtar;
6932
AM_RUN_LOG([$_am_tar --version]) && break
6934
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
6935
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
6936
am__untar="$_am_tar -xf -"
6939
# Must skip GNU tar: if it does not support --format= it doesn't create
6940
# ustar tarball either.
6941
(tar --version) >/dev/null 2>&1 && continue
6942
am__tar='tar chf - "$$tardir"'
6943
am__tar_='tar chf - "$tardir"'
6944
am__untar='tar xf -'
6947
am__tar='pax -L -x $1 -w "$$tardir"'
6948
am__tar_='pax -L -x $1 -w "$tardir"'
6952
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
6953
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
6954
am__untar='cpio -i -H $1 -d'
6963
# If the value was cached, stop now. We just wanted to have am__tar
6964
# and am__untar set.
6965
test -n "${am_cv_prog_tar_$1}" && break
6967
# tar/untar a dummy directory, and stop if the command works
6970
echo GrepMe > conftest.dir/file
6971
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
6973
if test -s conftest.tar; then
6974
AM_RUN_LOG([$am__untar <conftest.tar])
6975
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
6980
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
6981
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
6983
AC_SUBST([am__untar])
6986
6852
m4_include([m4/acx_pthread.m4])