Line 1... |
Line 1... |
#! /bin/sh
|
#! /bin/sh
|
# From configure.ac Id: configure.ac 955 2010-04-21 17:06:30Z jeremy using automake version AC_ACVERSION.
|
# From configure.ac Id: configure.ac 956 2010-04-21 17:16:24Z jeremy using automake version AC_ACVERSION.
|
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
# Generated by GNU Autoconf 2.63 for or1ksim 2010-04-21.
|
# Generated by GNU Autoconf 2.63 for or1ksim 2010-04-21.
|
#
|
#
|
# Report bugs to .
|
# Report bugs to .
|
#
|
#
|
Line 768... |
Line 768... |
PACKAGE_TARNAME='or1ksim'
|
PACKAGE_TARNAME='or1ksim'
|
PACKAGE_VERSION='2010-04-21'
|
PACKAGE_VERSION='2010-04-21'
|
PACKAGE_STRING='or1ksim 2010-04-21'
|
PACKAGE_STRING='or1ksim 2010-04-21'
|
PACKAGE_BUGREPORT='openrisc@opencores.org'
|
PACKAGE_BUGREPORT='openrisc@opencores.org'
|
|
|
ac_unique_file="cpu/or32/execute.c"
|
|
enable_option_checking=no
|
|
# Factoring default headers for most tests.
|
# Factoring default headers for most tests.
|
ac_includes_default="\
|
ac_includes_default="\
|
#include
|
#include
|
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
# include
|
# include
|
Line 806... |
Line 804... |
#endif
|
#endif
|
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
# include
|
# include
|
#endif"
|
#endif"
|
|
|
|
ac_unique_file="cpu/or32/execute.c"
|
|
enable_option_checking=no
|
ac_subst_vars='am__EXEEXT_FALSE
|
ac_subst_vars='am__EXEEXT_FALSE
|
am__EXEEXT_TRUE
|
am__EXEEXT_TRUE
|
LTLIBOBJS
|
LTLIBOBJS
|
INCLUDES
|
INCLUDES
|
TERMCAP_LIB
|
TERMCAP_LIB
|
Line 831... |
Line 831... |
USE_ARGREX_TRUE
|
USE_ARGREX_TRUE
|
USE_SYS_GETOPTLONG_FALSE
|
USE_SYS_GETOPTLONG_FALSE
|
USE_SYS_GETOPTLONG_TRUE
|
USE_SYS_GETOPTLONG_TRUE
|
POW_LIB
|
POW_LIB
|
LIBOBJS
|
LIBOBJS
|
MAKE_SHELL
|
|
_GNU_SOURCE
|
|
am__fastdepCCAS_FALSE
|
am__fastdepCCAS_FALSE
|
am__fastdepCCAS_TRUE
|
am__fastdepCCAS_TRUE
|
CCASDEPMODE
|
CCASDEPMODE
|
CCASFLAGS
|
CCASFLAGS
|
CCAS
|
CCAS
|
Line 870... |
Line 868... |
CYGPATH_W
|
CYGPATH_W
|
am__isrc
|
am__isrc
|
INSTALL_DATA
|
INSTALL_DATA
|
INSTALL_SCRIPT
|
INSTALL_SCRIPT
|
INSTALL_PROGRAM
|
INSTALL_PROGRAM
|
CPP
|
|
OTOOL64
|
OTOOL64
|
OTOOL
|
OTOOL
|
LIPO
|
LIPO
|
NMEDIT
|
NMEDIT
|
DSYMUTIL
|
DSYMUTIL
|
Line 887... |
Line 884... |
NM
|
NM
|
ac_ct_DUMPBIN
|
ac_ct_DUMPBIN
|
DUMPBIN
|
DUMPBIN
|
LD
|
LD
|
FGREP
|
FGREP
|
EGREP
|
|
GREP
|
|
SED
|
SED
|
OBJEXT
|
|
EXEEXT
|
|
ac_ct_CC
|
|
CPPFLAGS
|
|
LDFLAGS
|
|
CFLAGS
|
|
CC
|
|
LIBTOOL
|
LIBTOOL
|
target_os
|
target_os
|
target_vendor
|
target_vendor
|
target_cpu
|
target_cpu
|
target
|
target
|
Line 911... |
Line 899... |
build_os
|
build_os
|
build_vendor
|
build_vendor
|
build_cpu
|
build_cpu
|
build
|
build
|
subdirs
|
subdirs
|
|
EGREP
|
|
GREP
|
|
CPP
|
|
OBJEXT
|
|
EXEEXT
|
|
ac_ct_CC
|
|
CPPFLAGS
|
|
LDFLAGS
|
|
CFLAGS
|
|
CC
|
target_alias
|
target_alias
|
host_alias
|
host_alias
|
build_alias
|
build_alias
|
LIBS
|
LIBS
|
ECHO_T
|
ECHO_T
|
Line 2112... |
Line 2110... |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
# Check we have the execute source file present for sanity. Specify a separate
|
# Generically use extensions such as _GNU_SOURCE if available.
|
# config for the testsuite OR1K specific programs, since we'll need different
|
|
# tool chain there (the OpenRISC one, rather than the native one).
|
|
|
|
ac_aux_dir=
|
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
|
if test -f "$ac_dir/install-sh"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
break
|
|
elif test -f "$ac_dir/install.sh"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
break
|
|
elif test -f "$ac_dir/shtool"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
break
|
|
fi
|
|
done
|
|
if test -z "$ac_aux_dir"; then
|
|
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
|
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
# These three variables are undocumented and unsupported,
|
|
# and are intended to be withdrawn in a future Autoconf release.
|
|
# They can cause serious problems if a builder's source tree is in a directory
|
|
# whose full name contains unusual characters.
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
|
|
|
|
|
|
|
|
subdirs="$subdirs testsuite/test-code-or1k"
|
|
|
|
|
|
# Make sure we can run config.sub.
|
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
|
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
|
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
|
|
$as_echo_n "checking build system type... " >&6; }
|
|
if test "${ac_cv_build+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_build_alias=$build_alias
|
|
test "x$ac_build_alias" = x &&
|
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
|
test "x$ac_build_alias" = x &&
|
|
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
|
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
|
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
|
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
|
$as_echo "$ac_cv_build" >&6; }
|
|
case $ac_cv_build in
|
|
*-*-*) ;;
|
|
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
|
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
esac
|
|
build=$ac_cv_build
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_build
|
|
shift
|
|
build_cpu=$1
|
|
build_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
build_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
|
|
$as_echo_n "checking host system type... " >&6; }
|
|
if test "${ac_cv_host+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test "x$host_alias" = x; then
|
|
ac_cv_host=$ac_cv_build
|
|
else
|
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
|
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
|
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
|
$as_echo "$ac_cv_host" >&6; }
|
|
case $ac_cv_host in
|
|
*-*-*) ;;
|
|
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
|
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
esac
|
|
host=$ac_cv_host
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_host
|
|
shift
|
|
host_cpu=$1
|
|
host_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
host_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
|
|
$as_echo_n "checking target system type... " >&6; }
|
|
if test "${ac_cv_target+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test "x$target_alias" = x; then
|
|
ac_cv_target=$ac_cv_host
|
|
else
|
|
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
|
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
|
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
|
$as_echo "$ac_cv_target" >&6; }
|
|
case $ac_cv_target in
|
|
*-*-*) ;;
|
|
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
|
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
esac
|
|
target=$ac_cv_target
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_target
|
|
shift
|
|
target_cpu=$1
|
|
target_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
target_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
|
|
|
|
|
# The aliases save the names the user supplied, while $host etc.
|
|
# will get canonicalized.
|
|
test -n "$target_alias" &&
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
NONENONEs,x,x, &&
|
|
program_prefix=${target_alias}-
|
|
case `pwd` in
|
|
*\ * | *\ *)
|
|
{ $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
|
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
|
esac
|
|
|
|
|
|
|
|
macro_version='2.2.6b'
|
|
macro_revision='1.3017'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ltmain="$ac_aux_dir/ltmain.sh"
|
|
|
|
ac_ext=c
|
ac_ext=c
|
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Line 3236... |
Line 3044... |
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
|
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
ac_ext=c
|
if test "${ac_cv_path_SED+set}" = set; then
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
|
$as_echo_n "checking how to run the C preprocessor... " >&6; }
|
|
# On Suns, sometimes $CPP names a directory.
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
CPP=
|
|
fi
|
|
if test -z "$CPP"; then
|
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
# Double quotes because CPP needs to be expanded
|
for ac_i in 1 2 3 4 5 6 7; do
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
ac_script="$ac_script$as_nl$ac_script"
|
|
done
|
|
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
|
$as_unset ac_script || ac_script=
|
|
if test -z "$SED"; then
|
|
ac_path_SED_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
do
|
IFS=$as_save_IFS
|
ac_preproc_ok=false
|
test -z "$as_dir" && as_dir=.
|
for ac_c_preproc_warn_flag in '' yes
|
for ac_prog in sed gsed; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
|
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
|
# Check for GNU ac_path_SED and select it if it is found.
|
|
# Check for GNU $ac_path_SED
|
|
case `"$ac_path_SED" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
|
*)
|
|
ac_count=0
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
while :
|
|
do
|
do
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
# Use a header file that comes with gcc, so configuring glibc
|
mv "conftest.tmp" "conftest.in"
|
# with a fresh cross-compiler works.
|
cp "conftest.in" "conftest.nl"
|
# Prefer to if __STDC__ is defined, since
|
$as_echo '' >> "conftest.nl"
|
# exists even on freestanding compilers.
|
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
# not just through cpp. "Syntax error" is here to catch this case.
|
ac_count=`expr $ac_count + 1`
|
cat >conftest.$ac_ext <<_ACEOF
|
if test $ac_count -gt ${ac_path_SED_max-0}; then
|
/* confdefs.h. */
|
# Best one so far, save it but keep looking for a better one
|
_ACEOF
|
ac_cv_path_SED="$ac_path_SED"
|
cat confdefs.h >>conftest.$ac_ext
|
ac_path_SED_max=$ac_count
|
cat >>conftest.$ac_ext <<_ACEOF
|
fi
|
/* end confdefs.h. */
|
# 10*(2^10) chars as input seems more than enough
|
#ifdef __STDC__
|
test $ac_count -gt 10 && break
|
# include
|
done
|
#else
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
# include
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
esac
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
:
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
$ac_path_SED_found && break 3
|
# Broken: fails on valid input.
|
done
|
continue
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_SED"; then
|
|
{ { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
|
|
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
# Broken: success on invalid input.
|
|
continue
|
else
|
else
|
ac_cv_path_SED=$SED
|
$as_echo "$as_me: failed program was:" >&5
|
fi
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Passes both tests.
|
|
ac_preproc_ok=:
|
|
break
|
fi
|
fi
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
|
|
$as_echo "$ac_cv_path_SED" >&6; }
|
|
SED="$ac_cv_path_SED"
|
|
rm -f conftest.sed
|
|
|
|
test -z "$SED" && SED=sed
|
rm -f conftest.err conftest.$ac_ext
|
Xsed="$SED -e 1s/^X//"
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
rm -f conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then
|
|
break
|
|
fi
|
|
|
|
done
|
|
ac_cv_prog_CPP=$CPP
|
|
|
|
fi
|
|
CPP=$ac_cv_prog_CPP
|
|
else
|
|
ac_cv_prog_CPP=$CPP
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
|
|
$as_echo "$CPP" >&6; }
|
|
ac_preproc_ok=false
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
do
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
# with a fresh cross-compiler works.
|
|
# Prefer to if __STDC__ is defined, since
|
|
# exists even on freestanding compilers.
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#ifdef __STDC__
|
|
# include
|
|
#else
|
|
# include
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
:
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
# Broken: success on invalid input.
|
|
continue
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Passes both tests.
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
rm -f conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then
|
|
:
|
|
else
|
|
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
|
See \`config.log' for more details." >&5
|
|
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 1); exit 1; }; }; }
|
|
fi
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
if test "${ac_cv_path_GREP+set}" = set; then
|
if test "${ac_cv_path_GREP+set}" = set; then
|
Line 3454... |
Line 3416... |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
$as_echo "$ac_cv_path_EGREP" >&6; }
|
$as_echo "$ac_cv_path_EGREP" >&6; }
|
EGREP="$ac_cv_path_EGREP"
|
EGREP="$ac_cv_path_EGREP"
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
|
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
$as_echo_n "checking for fgrep... " >&6; }
|
$as_echo_n "checking for ANSI C header files... " >&6; }
|
if test "${ac_cv_path_FGREP+set}" = set; then
|
if test "${ac_cv_header_stdc+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
cat >conftest.$ac_ext <<_ACEOF
|
then ac_cv_path_FGREP="$GREP -F"
|
/* confdefs.h. */
|
else
|
_ACEOF
|
if test -z "$FGREP"; then
|
cat confdefs.h >>conftest.$ac_ext
|
ac_path_FGREP_found=false
|
cat >>conftest.$ac_ext <<_ACEOF
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
/* end confdefs.h. */
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
#include
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
#include
|
do
|
#include
|
IFS=$as_save_IFS
|
#include
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in fgrep; do
|
int
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
main ()
|
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
{
|
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
|
|
# Check for GNU ac_path_FGREP and select it if it is found.
|
;
|
# Check for GNU $ac_path_FGREP
|
return 0;
|
case `"$ac_path_FGREP" --version 2>&1` in
|
}
|
*GNU*)
|
_ACEOF
|
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
rm -f conftest.$ac_objext
|
*)
|
if { (ac_try="$ac_compile"
|
ac_count=0
|
case "(($ac_try" in
|
$as_echo_n 0123456789 >"conftest.in"
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
while :
|
*) ac_try_echo=$ac_try;;
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
$as_echo 'FGREP' >> "conftest.nl"
|
|
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
ac_count=`expr $ac_count + 1`
|
|
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_FGREP="$ac_path_FGREP"
|
|
ac_path_FGREP_max=$ac_count
|
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest.$ac_objext; then
|
|
ac_cv_header_stdc=yes
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
$ac_path_FGREP_found && break 3
|
ac_cv_header_stdc=no
|
done
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_FGREP"; then
|
|
{ { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
|
:
|
else
|
else
|
ac_cv_path_FGREP=$FGREP
|
ac_cv_header_stdc=no
|
fi
|
fi
|
|
rm -f conftest*
|
|
|
fi
|
fi
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
|
|
$as_echo "$ac_cv_path_FGREP" >&6; }
|
|
FGREP="$ac_cv_path_FGREP"
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
|
test -z "$GREP" && GREP=grep
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then
|
|
:
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
#include
|
|
#if ((' ' & 0x0FF) == 0x020)
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#else
|
|
# define ISLOWER(c) \
|
|
(('a' <= (c) && (c) <= 'i') \
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
#endif
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int
|
|
main ()
|
|
{
|
|
int i;
|
|
for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i))
|
|
|| toupper (i) != TOUPPER (i))
|
|
return 2;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
:
|
|
else
|
|
$as_echo "$as_me: program exited with status $ac_status" >&5
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -rf conftest.dSYM
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
|
$as_echo "$ac_cv_header_stdc" >&6; }
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define STDC_HEADERS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
inttypes.h stdint.h unistd.h
|
|
do
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
$as_echo_n "checking for $ac_header... " >&6; }
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
|
# Check whether --with-gnu-ld was given.
|
#include <$ac_header>
|
if test "${with_gnu_ld+set}" = set; then
|
_ACEOF
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest.$ac_objext; then
|
|
eval "$as_ac_Header=yes"
|
else
|
else
|
with_gnu_ld=no
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_Header=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
|
$as_echo "$as_val"'`
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
as_val=`eval 'as_val=${'$as_ac_Header'}
|
|
$as_echo "$as_val"'`
|
|
if test "x$as_val" = x""yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
fi
|
fi
|
|
|
ac_prog=ld
|
|
if test "$GCC" = yes; then
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
|
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
|
$as_echo_n "checking for ld used by $CC... " >&6; }
|
|
case $host in
|
|
*-*-mingw*)
|
|
# gcc leaves a trailing carriage return which upsets mingw
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
*)
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
esac
|
|
case $ac_prog in
|
|
# Accept absolute paths.
|
|
[\\/]* | ?:[\\/]*)
|
|
re_direlt='/[^/][^/]*/\.\./'
|
|
# Canonicalize the pathname of ld
|
|
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
|
done
|
done
|
test -z "$LD" && LD="$ac_prog"
|
|
;;
|
|
"")
|
|
# If it fails, then pretend we aren't using GCC.
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
ac_prog=ld
|
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
;;
|
$as_echo_n "checking for minix/config.h... " >&6; }
|
*)
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
# If it is relative, then search for the first ld in PATH.
|
$as_echo_n "(cached) " >&6
|
with_gnu_ld=unknown
|
fi
|
;;
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
|
$as_echo "$ac_cv_header_minix_config_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
|
$as_echo_n "checking minix/config.h usability... " >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
esac
|
esac
|
elif test "$with_gnu_ld" = yes; then
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
|
$as_echo "$ac_try_echo") >&5
|
$as_echo_n "checking for GNU ld... " >&6; }
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest.$ac_objext; then
|
|
ac_header_compiler=yes
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
$as_echo "$as_me: failed program was:" >&5
|
$as_echo_n "checking for non-GNU ld... " >&6; }
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
fi
|
fi
|
if test "${lt_cv_path_LD+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
$as_echo "$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
|
$as_echo_n "checking minix/config.h presence... " >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
ac_header_preproc=yes
|
else
|
else
|
if test -z "$LD"; then
|
$as_echo "$as_me: failed program was:" >&5
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
sed 's/^/| /' conftest.$ac_ext >&5
|
for ac_dir in $PATH; do
|
|
IFS="$lt_save_ifs"
|
ac_header_preproc=no
|
test -z "$ac_dir" && ac_dir=.
|
fi
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
rm -f conftest.err conftest.$ac_ext
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
# but apparently some variants of GNU ld only accept -v.
|
$as_echo "$ac_header_preproc" >&6; }
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
case `"$lt_cv_path_LD" -v 2>&1
|
# So? What about this header?
|
*GNU* | *'with BFD'*)
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
test "$with_gnu_ld" != no && break
|
yes:no: )
|
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
;;
|
;;
|
*)
|
no:yes:* )
|
test "$with_gnu_ld" != yes && break
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
|
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
|
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------- ##
|
|
## Report this to openrisc@opencores.org ##
|
|
## ------------------------------------- ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
;;
|
;;
|
esac
|
esac
|
fi
|
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
done
|
$as_echo_n "checking for minix/config.h... " >&6; }
|
IFS="$lt_save_ifs"
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
ac_cv_header_minix_config_h=$ac_header_preproc
|
fi
|
|
fi
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
|
$as_echo "$ac_cv_header_minix_config_h" >&6; }
|
|
|
LD="$lt_cv_path_LD"
|
|
if test -n "$LD"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
|
|
$as_echo "$LD" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
fi
|
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
if test "x$ac_cv_header_minix_config_h" = x""yes; then
|
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
MINIX=yes
|
{ (exit 1); exit 1; }; }
|
|
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
|
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
else
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
MINIX=
|
case `$LD -v 2>&1
|
|
*GNU* | *'with BFD'*)
|
|
lt_cv_prog_gnu_ld=yes
|
|
;;
|
|
*)
|
|
lt_cv_prog_gnu_ld=no
|
|
;;
|
|
esac
|
|
fi
|
fi
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
|
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
|
|
|
|
|
if test "$MINIX" = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _POSIX_SOURCE 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _POSIX_1_SOURCE 2
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _MINIX 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
|
|
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
|
if test "${lt_cv_path_NM+set}" = set; then
|
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
|
|
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
|
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$NM"; then
|
cat >conftest.$ac_ext <<_ACEOF
|
# Let the user override the test.
|
/* confdefs.h. */
|
lt_cv_path_NM="$NM"
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
# define __EXTENSIONS__ 1
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest.$ac_objext; then
|
|
ac_cv_safe_to_define___extensions__=yes
|
else
|
else
|
lt_nm_to_check="${ac_tool_prefix}nm"
|
$as_echo "$as_me: failed program was:" >&5
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
sed 's/^/| /' conftest.$ac_ext >&5
|
lt_nm_to_check="$lt_nm_to_check nm"
|
|
|
ac_cv_safe_to_define___extensions__=no
|
fi
|
fi
|
for lt_tmp_nm in $lt_nm_to_check; do
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
IFS="$lt_save_ifs"
|
|
test -z "$ac_dir" && ac_dir=.
|
|
tmp_nm="$ac_dir/$lt_tmp_nm"
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
# nm: unknown option "B" ignored
|
|
# Tru64's nm complains that /dev/null is an invalid object file
|
|
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
|
*/dev/null* | *'Invalid file or object type'*)
|
|
lt_cv_path_NM="$tmp_nm -B"
|
|
break
|
|
;;
|
|
*)
|
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|
*/dev/null*)
|
|
lt_cv_path_NM="$tmp_nm -p"
|
|
break
|
|
;;
|
|
*)
|
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
continue # so that we can try to find one that supports BSD flags
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
done
|
|
IFS="$lt_save_ifs"
|
|
done
|
|
: ${lt_cv_path_NM=no}
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
|
$as_echo "$lt_cv_path_NM" >&6; }
|
|
if test "$lt_cv_path_NM" != "no"; then
|
|
NM="$lt_cv_path_NM"
|
|
else
|
|
# Didn't find any BSD compatible name lister, look for dumpbin.
|
|
if test -n "$ac_tool_prefix"; then
|
|
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
|
do
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$DUMPBIN"; then
|
|
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
fi
|
fi
|
fi
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
|
DUMPBIN=$ac_cv_prog_DUMPBIN
|
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
if test -n "$DUMPBIN"; then
|
test $ac_cv_safe_to_define___extensions__ = yes &&
|
{ $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
|
cat >>confdefs.h <<\_ACEOF
|
$as_echo "$DUMPBIN" >&6; }
|
#define __EXTENSIONS__ 1
|
else
|
_ACEOF
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _ALL_SOURCE 1
|
|
_ACEOF
|
|
|
test -n "$DUMPBIN" && break
|
cat >>confdefs.h <<\_ACEOF
|
done
|
#define _GNU_SOURCE 1
|
fi
|
_ACEOF
|
if test -z "$DUMPBIN"; then
|
|
ac_ct_DUMPBIN=$DUMPBIN
|
|
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_DUMPBIN"; then
|
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
cat >>confdefs.h <<\_ACEOF
|
fi
|
#define _POSIX_PTHREAD_SEMANTICS 1
|
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
_ACEOF
|
if test -n "$ac_ct_DUMPBIN"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
|
|
$as_echo "$ac_ct_DUMPBIN" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _TANDEM_SOURCE 1
|
|
_ACEOF
|
|
|
test -n "$ac_ct_DUMPBIN" && break
|
|
done
|
|
|
|
if test "x$ac_ct_DUMPBIN" = x; then
|
|
DUMPBIN=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
DUMPBIN=$ac_ct_DUMPBIN
|
|
fi
|
|
fi
|
|
|
|
|
# Check we have the execute source file present for sanity. Specify a separate
|
|
# config for the testsuite OR1K specific programs, since we'll need different
|
|
# tool chain there (the OpenRISC one, rather than the native one).
|
|
|
if test "$DUMPBIN" != ":"; then
|
ac_aux_dir=
|
NM="$DUMPBIN"
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
|
if test -f "$ac_dir/install-sh"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
break
|
|
elif test -f "$ac_dir/install.sh"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
break
|
|
elif test -f "$ac_dir/shtool"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
break
|
fi
|
fi
|
|
done
|
|
if test -z "$ac_aux_dir"; then
|
|
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
|
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
fi
|
fi
|
test -z "$NM" && NM=nm
|
|
|
# These three variables are undocumented and unsupported,
|
|
# and are intended to be withdrawn in a future Autoconf release.
|
|
# They can cause serious problems if a builder's source tree is in a directory
|
|
# whose full name contains unusual characters.
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
|
|
|
|
|
|
|
|
subdirs="$subdirs testsuite/test-code-or1k"
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
|
# Make sure we can run config.sub.
|
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
if test "${lt_cv_nm_interface+set}" = set; then
|
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
|
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
|
|
$as_echo_n "checking build system type... " >&6; }
|
|
if test "${ac_cv_build+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
lt_cv_nm_interface="BSD nm"
|
ac_build_alias=$build_alias
|
echo "int some_variable = 0;" > conftest.$ac_ext
|
test "x$ac_build_alias" = x &&
|
(eval echo "\"\$as_me:3835: $ac_compile\"" >&5)
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
(eval "$ac_compile" 2>conftest.err)
|
test "x$ac_build_alias" = x &&
|
cat conftest.err >&5
|
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
(eval echo "\"\$as_me:3838: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
{ (exit 1); exit 1; }; }
|
cat conftest.err >&5
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
(eval echo "\"\$as_me:3841: output\"" >&5)
|
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
cat conftest.out >&5
|
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
{ (exit 1); exit 1; }; }
|
lt_cv_nm_interface="MS dumpbin"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
|
|
$as_echo "$lt_cv_nm_interface" >&6; }
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
|
$as_echo_n "checking whether ln -s works... " >&6; }
|
|
LN_S=$as_ln_s
|
|
if test "$LN_S" = "ln -s"; then
|
|
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
|
$as_echo "no, using $LN_S" >&6; }
|
|
fi
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
|
$as_echo "$ac_cv_build" >&6; }
|
|
case $ac_cv_build in
|
|
*-*-*) ;;
|
|
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
|
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
esac
|
|
build=$ac_cv_build
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_build
|
|
shift
|
|
build_cpu=$1
|
|
build_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
build_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
|
|
# find the maximum length of command line arguments
|
|
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
|
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
$as_echo_n "checking host system type... " >&6; }
|
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
if test "${ac_cv_host+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
i=0
|
if test "x$host_alias" = x; then
|
teststring="ABCD"
|
ac_cv_host=$ac_cv_build
|
|
else
|
case $build_os in
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
msdosdjgpp*)
|
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
{ (exit 1); exit 1; }; }
|
# during glob expansion). Even if it were fixed, the result of this
|
fi
|
# check would be larger than it should be.
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
|
;;
|
|
|
|
gnu*)
|
|
# Under GNU Hurd, this test is not required because there is
|
|
# no limit to the length of command line arguments.
|
|
# Libtool will interpret -1 as no limit whatsoever
|
|
lt_cv_sys_max_cmd_len=-1;
|
|
;;
|
|
|
|
cygwin* | mingw* | cegcc*)
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
|
# about 5 minutes as the teststring grows exponentially.
|
|
# Worse, since 9x/ME are not pre-emptively multitasking,
|
|
# you end up with a "frozen" computer, even though with patience
|
|
# the test eventually succeeds (with a max line length of 256k).
|
|
# Instead, let's just punt: use the minimum linelength reported by
|
|
# all of the supported platforms: 8192 (on NT/2K/XP).
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
amigaos*)
|
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
|
# So we just punt and use a minimum line length of 8192.
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
|
# This has been around since 386BSD, at least. Likely further.
|
|
if test -x /sbin/sysctl; then
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
|
elif test -x /usr/sbin/sysctl; then
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|
else
|
|
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
|
fi
|
|
# And add a safety zone
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
;;
|
|
|
|
interix*)
|
|
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
lt_cv_sys_max_cmd_len=196608
|
|
;;
|
|
|
|
osf*)
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
# nice to cause kernel panics so lets avoid the loop below.
|
|
# First set a reasonable default.
|
|
lt_cv_sys_max_cmd_len=16384
|
|
#
|
|
if test -x /sbin/sysconfig; then
|
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
|
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
|
esac
|
|
fi
|
|
;;
|
|
sco3.2v5*)
|
|
lt_cv_sys_max_cmd_len=102400
|
|
;;
|
|
sysv5* | sco5v6* | sysv4.2uw2*)
|
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
if test -n "$kargmax"; then
|
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
|
else
|
|
lt_cv_sys_max_cmd_len=32768
|
|
fi
|
|
;;
|
|
*)
|
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
|
if test -n "$lt_cv_sys_max_cmd_len"; then
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
else
|
|
# Make teststring a little bigger before we do anything with it.
|
|
# a 1K string should be a reasonable start.
|
|
for i in 1 2 3 4 5 6 7 8 ; do
|
|
teststring=$teststring$teststring
|
|
done
|
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
# If test is not a shell built-in, we'll probably end up computing a
|
|
# maximum length that is only half of the actual maximum length, but
|
|
# we can't tell.
|
|
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
|
|
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
|
|
test $i != 17 # 1/2 MB should be enough
|
|
do
|
|
i=`expr $i + 1`
|
|
teststring=$teststring$teststring
|
|
done
|
|
# Only check the string length outside the loop.
|
|
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
|
teststring=
|
|
# Add a significant safety factor because C++ compilers can tack on
|
|
# massive amounts of additional arguments before passing them to the
|
|
# linker. It appears as though 1/2 is a usable value.
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
fi
|
fi
|
;;
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
|
$as_echo "$ac_cv_host" >&6; }
|
|
case $ac_cv_host in
|
|
*-*-*) ;;
|
|
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
|
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
esac
|
esac
|
|
host=$ac_cv_host
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_host
|
|
shift
|
|
host_cpu=$1
|
|
host_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
host_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
|
|
fi
|
|
|
|
if test -n $lt_cv_sys_max_cmd_len ; then
|
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
$as_echo_n "checking target system type... " >&6; }
|
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
if test "${ac_cv_target+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: none" >&5
|
if test "x$target_alias" = x; then
|
$as_echo "none" >&6; }
|
ac_cv_target=$ac_cv_host
|
fi
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: ${CP="cp -f"}
|
|
: ${MV="mv -f"}
|
|
: ${RM="rm -f"}
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
|
|
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
= c,a/b,, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
|
|
$as_echo "$xsi_shell" >&6; }
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
|
|
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
|
|
lt_shell_append=no
|
|
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
|
|
>/dev/null 2>&1 \
|
|
&& lt_shell_append=yes
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
|
|
$as_echo "$lt_shell_append" >&6; }
|
|
|
|
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
lt_unset=unset
|
|
else
|
else
|
lt_unset=false
|
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
|
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
|
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
fi
|
fi
|
|
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
|
$as_echo "$ac_cv_target" >&6; }
|
|
case $ac_cv_target in
|
|
*-*-*) ;;
|
|
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
|
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
esac
|
|
target=$ac_cv_target
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
set x $ac_cv_target
|
|
shift
|
|
target_cpu=$1
|
|
target_vendor=$2
|
|
shift; shift
|
|
# Remember, the first character of IFS is used to create $*,
|
|
# except with old shells:
|
|
target_os=$*
|
|
IFS=$ac_save_IFS
|
|
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
|
|
|
|
|
# The aliases save the names the user supplied, while $host etc.
|
|
# will get canonicalized.
|
# test EBCDIC or ASCII
|
test -n "$target_alias" &&
|
case `echo X|tr X '\101'` in
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
A) # ASCII based system
|
NONENONEs,x,x, &&
|
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
program_prefix=${target_alias}-
|
lt_SP2NL='tr \040 \012'
|
case `pwd` in
|
lt_NL2SP='tr \015\012 \040\040'
|
*\ * | *\ *)
|
;;
|
{ $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
*) # EBCDIC based system
|
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
lt_SP2NL='tr \100 \n'
|
|
lt_NL2SP='tr \r\n \100\100'
|
|
;;
|
|
esac
|
esac
|
|
|
|
|
|
|
|
macro_version='2.2.6b'
|
|
macro_revision='1.3017'
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if test "${lt_cv_ld_reload_flag+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_ld_reload_flag='-r'
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
|
$as_echo "$lt_cv_ld_reload_flag" >&6; }
|
|
reload_flag=$lt_cv_ld_reload_flag
|
|
case $reload_flag in
|
|
"" | " "*) ;;
|
|
*) reload_flag=" $reload_flag" ;;
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
else
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ltmain="$ac_aux_dir/ltmain.sh"
|
|
|
if test -n "$ac_tool_prefix"; then
|
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
if test "${ac_cv_path_SED+set}" = set; then
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$OBJDUMP"; then
|
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
for ac_i in 1 2 3 4 5 6 7; do
|
else
|
ac_script="$ac_script$as_nl$ac_script"
|
|
done
|
|
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
|
$as_unset ac_script || ac_script=
|
|
if test -z "$SED"; then
|
|
ac_path_SED_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in sed gsed; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
# Check for GNU ac_path_SED and select it if it is found.
|
break 2
|
# Check for GNU $ac_path_SED
|
|
case `"$ac_path_SED" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
|
*)
|
|
ac_count=0
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
$as_echo '' >> "conftest.nl"
|
|
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
ac_count=`expr $ac_count + 1`
|
|
if test $ac_count -gt ${ac_path_SED_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_SED="$ac_path_SED"
|
|
ac_path_SED_max=$ac_count
|
fi
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
$ac_path_SED_found && break 3
|
|
done
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_SED"; then
|
fi
|
{ { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
|
|
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
fi
|
fi
|
OBJDUMP=$ac_cv_prog_OBJDUMP
|
|
if test -n "$OBJDUMP"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
|
|
$as_echo "$OBJDUMP" >&6; }
|
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
ac_cv_path_SED=$SED
|
$as_echo "no" >&6; }
|
|
fi
|
fi
|
|
|
|
|
fi
|
fi
|
if test -z "$ac_cv_prog_OBJDUMP"; then
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
|
ac_ct_OBJDUMP=$OBJDUMP
|
$as_echo "$ac_cv_path_SED" >&6; }
|
# Extract the first word of "objdump", so it can be a program name with args.
|
SED="$ac_cv_path_SED"
|
set dummy objdump; ac_word=$2
|
rm -f conftest.sed
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
test -z "$SED" && SED=sed
|
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
|
Xsed="$SED -e 1s/^X//"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
|
|
$as_echo_n "checking for fgrep... " >&6; }
|
|
if test "${ac_cv_path_FGREP+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$ac_ct_OBJDUMP"; then
|
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
then ac_cv_path_FGREP="$GREP -F"
|
else
|
else
|
|
if test -z "$FGREP"; then
|
|
ac_path_FGREP_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in fgrep; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
# Check for GNU ac_path_FGREP and select it if it is found.
|
break 2
|
# Check for GNU $ac_path_FGREP
|
|
case `"$ac_path_FGREP" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
|
*)
|
|
ac_count=0
|
|
$as_echo_n 0123456789 >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
$as_echo 'FGREP' >> "conftest.nl"
|
|
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
ac_count=`expr $ac_count + 1`
|
|
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_FGREP="$ac_path_FGREP"
|
|
ac_path_FGREP_max=$ac_count
|
fi
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
$ac_path_FGREP_found && break 3
|
|
done
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_FGREP"; then
|
fi
|
{ { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
fi
|
fi
|
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
|
if test -n "$ac_ct_OBJDUMP"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
|
|
$as_echo "$ac_ct_OBJDUMP" >&6; }
|
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
ac_cv_path_FGREP=$FGREP
|
$as_echo "no" >&6; }
|
|
fi
|
fi
|
|
|
if test "x$ac_ct_OBJDUMP" = x; then
|
|
OBJDUMP="false"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
OBJDUMP=$ac_ct_OBJDUMP
|
|
fi
|
fi
|
else
|
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
|
fi
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
|
|
$as_echo "$ac_cv_path_FGREP" >&6; }
|
|
FGREP="$ac_cv_path_FGREP"
|
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
|
|
|
test -z "$GREP" && GREP=grep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
|
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
|
if test "${lt_cv_deplibs_check_method+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
lt_cv_file_magic_test_file=
|
|
lt_cv_deplibs_check_method='unknown'
|
|
# Need to set the preceding variable on all platforms that support
|
|
# interlibrary dependencies.
|
|
# 'none' -- dependencies not supported.
|
|
# `unknown' -- same as none, but documents that we really don't know.
|
|
# 'pass_all' -- all dependencies passed with no checks.
|
|
# 'test_compile' -- check by making test program.
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path
|
|
# which responds to the $file_magic_cmd with a given extended regex.
|
|
# If you have `file' or equivalent on your system and you're not sure
|
|
# whether `pass_all' will *always* work, you probably want this one.
|
|
|
|
case $host_os in
|
|
aix[4-9]*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
beos*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
bsdi[45]*)
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
lt_cv_file_magic_test_file=/shlib/libc.so
|
|
;;
|
|
|
|
cygwin*)
|
|
# func_win32_libid is a shell function defined in ltmain.sh
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
;;
|
|
|
|
mingw* | pw32*)
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by
|
|
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
|
# unless we find 'file', for example because we are cross-compiling.
|
|
if ( file / ) >/dev/null 2>&1; then
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
|
|
cegcc)
|
|
# use the weaker test based on 'objdump'. See mingw*.
|
|
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
freebsd* | dragonfly*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
case $host_cpu in
|
|
i*86 )
|
# Check whether --with-gnu-ld was given.
|
# Not sure whether the presence of OpenBSD here was a mistake.
|
if test "${with_gnu_ld+set}" = set; then
|
# Let's accept both of them until this is cleared up.
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
;;
|
|
esac
|
|
else
|
else
|
lt_cv_deplibs_check_method=pass_all
|
with_gnu_ld=no
|
fi
|
fi
|
;;
|
|
|
|
gnu*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
hpux10.20* | hpux11*)
|
ac_prog=ld
|
lt_cv_file_magic_cmd=/usr/bin/file
|
if test "$GCC" = yes; then
|
case $host_cpu in
|
# Check if gcc -print-prog-name=ld gives a path.
|
ia64*)
|
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
$as_echo_n "checking for ld used by $CC... " >&6; }
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
case $host in
|
;;
|
*-*-mingw*)
|
hppa*64*)
|
# gcc leaves a trailing carriage return which upsets mingw
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
|
;;
|
|
*)
|
*)
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|
;;
|
|
esac
|
esac
|
|
case $ac_prog in
|
|
# Accept absolute paths.
|
|
[\\/]* | ?:[\\/]*)
|
|
re_direlt='/[^/][^/]*/\.\./'
|
|
# Canonicalize the pathname of ld
|
|
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
|
done
|
|
test -z "$LD" && LD="$ac_prog"
|
;;
|
;;
|
|
"")
|
interix[3-9]*)
|
# If it fails, then pretend we aren't using GCC.
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
ac_prog=ld
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
|
;;
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
case $LD in
|
|
*-32|*"-32 ") libmagic=32-bit;;
|
|
*-n32|*"-n32 ") libmagic=N32;;
|
|
*-64|*"-64 ") libmagic=64-bit;;
|
|
*) libmagic=never-match;;
|
|
esac
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
;;
|
|
*)
|
# This must be Linux ELF.
|
# If it is relative, then search for the first ld in PATH.
|
linux* | k*bsd*-gnu)
|
with_gnu_ld=unknown
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
;;
|
|
esac
|
netbsd*)
|
elif test "$with_gnu_ld" = yes; then
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
$as_echo_n "checking for GNU ld... " >&6; }
|
else
|
else
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
|
$as_echo_n "checking for non-GNU ld... " >&6; }
|
fi
|
fi
|
|
if test "${lt_cv_path_LD+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -z "$LD"; then
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
for ac_dir in $PATH; do
|
|
IFS="$lt_save_ifs"
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
# but apparently some variants of GNU ld only accept -v.
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
case `"$lt_cv_path_LD" -v 2>&1
|
|
*GNU* | *'with BFD'*)
|
|
test "$with_gnu_ld" != no && break
|
;;
|
;;
|
|
*)
|
newos6*)
|
test "$with_gnu_ld" != yes && break
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
;;
|
|
esac
|
openbsd*)
|
fi
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
done
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
IFS="$lt_save_ifs"
|
else
|
else
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|
fi
|
fi
|
fi
|
;;
|
|
|
|
osf3* | osf4* | osf5*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
rdos*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
solaris*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
sysv4 | sysv4.3*)
|
LD="$lt_cv_path_LD"
|
case $host_vendor in
|
if test -n "$LD"; then
|
motorola)
|
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
|
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]'
|
$as_echo "$LD" >&6; }
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
else
|
;;
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
ncr)
|
$as_echo "no" >&6; }
|
lt_cv_deplibs_check_method=pass_all
|
fi
|
;;
|
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
sequent)
|
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
lt_cv_file_magic_cmd='/bin/file'
|
{ (exit 1); exit 1; }; }
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
;;
|
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
sni)
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
lt_cv_file_magic_cmd='/bin/file'
|
$as_echo_n "(cached) " >&6
|
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
else
|
lt_cv_file_magic_test_file=/lib/libc.so
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
;;
|
case `$LD -v 2>&1
|
siemens)
|
*GNU* | *'with BFD'*)
|
lt_cv_deplibs_check_method=pass_all
|
lt_cv_prog_gnu_ld=yes
|
;;
|
|
pc)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
esac
|
|
;;
|
;;
|
|
*)
|
tpf*)
|
lt_cv_prog_gnu_ld=no
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
;;
|
esac
|
esac
|
|
|
fi
|
fi
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
|
|
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
|
if test "${lt_cv_path_NM+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$NM"; then
|
|
# Let the user override the test.
|
|
lt_cv_path_NM="$NM"
|
|
else
|
|
lt_nm_to_check="${ac_tool_prefix}nm"
|
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
|
lt_nm_to_check="$lt_nm_to_check nm"
|
|
fi
|
|
for lt_tmp_nm in $lt_nm_to_check; do
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
IFS="$lt_save_ifs"
|
|
test -z "$ac_dir" && ac_dir=.
|
|
tmp_nm="$ac_dir/$lt_tmp_nm"
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
# nm: unknown option "B" ignored
|
|
# Tru64's nm complains that /dev/null is an invalid object file
|
|
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
|
*/dev/null* | *'Invalid file or object type'*)
|
|
lt_cv_path_NM="$tmp_nm -B"
|
|
break
|
|
;;
|
|
*)
|
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|
*/dev/null*)
|
|
lt_cv_path_NM="$tmp_nm -p"
|
|
break
|
|
;;
|
|
*)
|
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
continue # so that we can try to find one that supports BSD flags
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
done
|
|
IFS="$lt_save_ifs"
|
|
done
|
|
: ${lt_cv_path_NM=no}
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
|
$as_echo "$lt_cv_path_NM" >&6; }
|
|
if test "$lt_cv_path_NM" != "no"; then
|
|
NM="$lt_cv_path_NM"
|
|
else
|
|
# Didn't find any BSD compatible name lister, look for dumpbin.
|
if test -n "$ac_tool_prefix"; then
|
if test -n "$ac_tool_prefix"; then
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
do
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_AR+set}" = set; then
|
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$AR"; then
|
if test -n "$DUMPBIN"; then
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
AR=$ac_cv_prog_AR
|
DUMPBIN=$ac_cv_prog_DUMPBIN
|
if test -n "$AR"; then
|
if test -n "$DUMPBIN"; then
|
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
|
{ $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
|
$as_echo "$AR" >&6; }
|
$as_echo "$DUMPBIN" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
|
|
|
test -n "$DUMPBIN" && break
|
|
done
|
fi
|
fi
|
if test -z "$ac_cv_prog_AR"; then
|
if test -z "$DUMPBIN"; then
|
ac_ct_AR=$AR
|
ac_ct_DUMPBIN=$DUMPBIN
|
# Extract the first word of "ar", so it can be a program name with args.
|
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
set dummy ar; ac_word=$2
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$ac_ct_AR"; then
|
if test -n "$ac_ct_DUMPBIN"; then
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_ac_ct_AR="ar"
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
if test -n "$ac_ct_AR"; then
|
if test -n "$ac_ct_DUMPBIN"; then
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
|
$as_echo "$ac_ct_AR" >&6; }
|
$as_echo "$ac_ct_DUMPBIN" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
test -n "$ac_ct_DUMPBIN" && break
|
|
done
|
|
|
|
if test "x$ac_ct_DUMPBIN" = x; then
|
|
DUMPBIN=":"
|
else
|
else
|
case $cross_compiling:$ac_tool_warned in
|
case $cross_compiling:$ac_tool_warned in
|
yes:)
|
yes:)
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
ac_tool_warned=yes ;;
|
ac_tool_warned=yes ;;
|
esac
|
esac
|
AR=$ac_ct_AR
|
DUMPBIN=$ac_ct_DUMPBIN
|
fi
|
fi
|
else
|
|
AR="$ac_cv_prog_AR"
|
|
fi
|
fi
|
|
|
test -z "$AR" && AR=ar
|
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "$DUMPBIN" != ":"; then
|
|
NM="$DUMPBIN"
|
|
fi
|
|
fi
|
|
test -z "$NM" && NM=nm
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
if test "${lt_cv_nm_interface+set}" = set; then
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$STRIP"; then
|
lt_cv_nm_interface="BSD nm"
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
echo "int some_variable = 0;" > conftest.$ac_ext
|
else
|
(eval echo "\"\$as_me:4558: $ac_compile\"" >&5)
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
(eval "$ac_compile" 2>conftest.err)
|
for as_dir in $PATH
|
cat conftest.err >&5
|
do
|
(eval echo "\"\$as_me:4561: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
IFS=$as_save_IFS
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
test -z "$as_dir" && as_dir=.
|
cat conftest.err >&5
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
(eval echo "\"\$as_me:4564: output\"" >&5)
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cat conftest.out >&5
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
lt_cv_nm_interface="MS dumpbin"
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
fi
|
|
rm -f conftest*
|
fi
|
fi
|
STRIP=$ac_cv_prog_STRIP
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
|
if test -n "$STRIP"; then
|
$as_echo "$lt_cv_nm_interface" >&6; }
|
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
|
|
$as_echo "$STRIP" >&6; }
|
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
|
$as_echo_n "checking whether ln -s works... " >&6; }
|
|
LN_S=$as_ln_s
|
|
if test "$LN_S" = "ln -s"; then
|
|
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no, using $LN_S" >&6; }
|
fi
|
fi
|
|
|
|
# find the maximum length of command line arguments
|
fi
|
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
if test -z "$ac_cv_prog_STRIP"; then
|
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
ac_ct_STRIP=$STRIP
|
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
# Extract the first word of "strip", so it can be a program name with args.
|
|
set dummy strip; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$ac_ct_STRIP"; then
|
i=0
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
teststring="ABCD"
|
|
|
|
case $build_os in
|
|
msdosdjgpp*)
|
|
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
|
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
|
# during glob expansion). Even if it were fixed, the result of this
|
|
# check would be larger than it should be.
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
|
;;
|
|
|
|
gnu*)
|
|
# Under GNU Hurd, this test is not required because there is
|
|
# no limit to the length of command line arguments.
|
|
# Libtool will interpret -1 as no limit whatsoever
|
|
lt_cv_sys_max_cmd_len=-1;
|
|
;;
|
|
|
|
cygwin* | mingw* | cegcc*)
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
|
# about 5 minutes as the teststring grows exponentially.
|
|
# Worse, since 9x/ME are not pre-emptively multitasking,
|
|
# you end up with a "frozen" computer, even though with patience
|
|
# the test eventually succeeds (with a max line length of 256k).
|
|
# Instead, let's just punt: use the minimum linelength reported by
|
|
# all of the supported platforms: 8192 (on NT/2K/XP).
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
amigaos*)
|
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
|
# So we just punt and use a minimum line length of 8192.
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
|
# This has been around since 386BSD, at least. Likely further.
|
|
if test -x /sbin/sysctl; then
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
|
elif test -x /usr/sbin/sysctl; then
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
fi
|
done
|
# And add a safety zone
|
done
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
IFS=$as_save_IFS
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
;;
|
|
|
|
interix*)
|
|
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
lt_cv_sys_max_cmd_len=196608
|
|
;;
|
|
|
|
osf*)
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
# nice to cause kernel panics so lets avoid the loop below.
|
|
# First set a reasonable default.
|
|
lt_cv_sys_max_cmd_len=16384
|
|
#
|
|
if test -x /sbin/sysconfig; then
|
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
|
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
|
esac
|
fi
|
fi
|
fi
|
;;
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
sco3.2v5*)
|
if test -n "$ac_ct_STRIP"; then
|
lt_cv_sys_max_cmd_len=102400
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
;;
|
$as_echo "$ac_ct_STRIP" >&6; }
|
sysv5* | sco5v6* | sysv4.2uw2*)
|
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
if test -n "$kargmax"; then
|
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
lt_cv_sys_max_cmd_len=32768
|
$as_echo "no" >&6; }
|
|
fi
|
fi
|
|
;;
|
if test "x$ac_ct_STRIP" = x; then
|
*)
|
STRIP=":"
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
|
if test -n "$lt_cv_sys_max_cmd_len"; then
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
else
|
else
|
case $cross_compiling:$ac_tool_warned in
|
# Make teststring a little bigger before we do anything with it.
|
yes:)
|
# a 1K string should be a reasonable start.
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
for i in 1 2 3 4 5 6 7 8 ; do
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
teststring=$teststring$teststring
|
ac_tool_warned=yes ;;
|
done
|
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
# If test is not a shell built-in, we'll probably end up computing a
|
|
# maximum length that is only half of the actual maximum length, but
|
|
# we can't tell.
|
|
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
|
|
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
|
|
test $i != 17 # 1/2 MB should be enough
|
|
do
|
|
i=`expr $i + 1`
|
|
teststring=$teststring$teststring
|
|
done
|
|
# Only check the string length outside the loop.
|
|
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
|
teststring=
|
|
# Add a significant safety factor because C++ compilers can tack on
|
|
# massive amounts of additional arguments before passing them to the
|
|
# linker. It appears as though 1/2 is a usable value.
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
fi
|
|
;;
|
esac
|
esac
|
STRIP=$ac_ct_STRIP
|
|
fi
|
fi
|
|
|
|
if test -n $lt_cv_sys_max_cmd_len ; then
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
|
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
else
|
else
|
STRIP="$ac_cv_prog_STRIP"
|
{ $as_echo "$as_me:$LINENO: result: none" >&5
|
|
$as_echo "none" >&6; }
|
fi
|
fi
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
test -z "$STRIP" && STRIP=:
|
|
|
|
|
|
|
|
|
|
|
|
|
: ${CP="cp -f"}
|
|
: ${MV="mv -f"}
|
|
: ${RM="rm -f"}
|
|
|
if test -n "$ac_tool_prefix"; then
|
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
# Try some XSI features
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
xsi_shell=no
|
$as_echo_n "checking for $ac_word... " >&6; }
|
( _lt_dummy="a/b/c"
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
$as_echo_n "(cached) " >&6
|
= c,a/b,, \
|
else
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
if test -n "$RANLIB"; then
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
&& xsi_shell=yes
|
|
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
|
|
$as_echo "$xsi_shell" >&6; }
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
|
|
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
|
|
lt_shell_append=no
|
|
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
|
|
>/dev/null 2>&1 \
|
|
&& lt_shell_append=yes
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
|
|
$as_echo "$lt_shell_append" >&6; }
|
|
|
|
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
lt_unset=unset
|
|
else
|
|
lt_unset=false
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# test EBCDIC or ASCII
|
|
case `echo X|tr X '\101'` in
|
|
A) # ASCII based system
|
|
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
|
lt_SP2NL='tr \040 \012'
|
|
lt_NL2SP='tr \015\012 \040\040'
|
|
;;
|
|
*) # EBCDIC based system
|
|
lt_SP2NL='tr \100 \n'
|
|
lt_NL2SP='tr \r\n \100\100'
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if test "${lt_cv_ld_reload_flag+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_ld_reload_flag='-r'
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
|
$as_echo "$lt_cv_ld_reload_flag" >&6; }
|
|
reload_flag=$lt_cv_ld_reload_flag
|
|
case $reload_flag in
|
|
"" | " "*) ;;
|
|
*) reload_flag=" $reload_flag" ;;
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
else
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$OBJDUMP"; then
|
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
RANLIB=$ac_cv_prog_RANLIB
|
OBJDUMP=$ac_cv_prog_OBJDUMP
|
if test -n "$RANLIB"; then
|
if test -n "$OBJDUMP"; then
|
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
|
{ $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
|
$as_echo "$RANLIB" >&6; }
|
$as_echo "$OBJDUMP" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
|
|
fi
|
fi
|
if test -z "$ac_cv_prog_RANLIB"; then
|
if test -z "$ac_cv_prog_OBJDUMP"; then
|
ac_ct_RANLIB=$RANLIB
|
ac_ct_OBJDUMP=$OBJDUMP
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
# Extract the first word of "objdump", so it can be a program name with args.
|
set dummy ranlib; ac_word=$2
|
set dummy objdump; ac_word=$2
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$ac_ct_RANLIB"; then
|
if test -n "$ac_ct_OBJDUMP"; then
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
if test -n "$ac_ct_RANLIB"; then
|
if test -n "$ac_ct_OBJDUMP"; then
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
|
$as_echo "$ac_ct_RANLIB" >&6; }
|
$as_echo "$ac_ct_OBJDUMP" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
if test "x$ac_ct_RANLIB" = x; then
|
if test "x$ac_ct_OBJDUMP" = x; then
|
RANLIB=":"
|
OBJDUMP="false"
|
else
|
else
|
case $cross_compiling:$ac_tool_warned in
|
case $cross_compiling:$ac_tool_warned in
|
yes:)
|
yes:)
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
ac_tool_warned=yes ;;
|
ac_tool_warned=yes ;;
|
esac
|
esac
|
RANLIB=$ac_ct_RANLIB
|
OBJDUMP=$ac_ct_OBJDUMP
|
fi
|
fi
|
else
|
else
|
RANLIB="$ac_cv_prog_RANLIB"
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
fi
|
fi
|
|
|
test -z "$RANLIB" && RANLIB=:
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
|
|
|
|
|
|
|
|
|
|
|
# Determine commands to create old-style static archives.
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
old_postinstall_cmds='chmod 644 $oldlib'
|
|
old_postuninstall_cmds=
|
|
|
|
if test -n "$RANLIB"; then
|
|
case $host_os in
|
|
openbsd*)
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
|
;;
|
|
*)
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
;;
|
|
esac
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
|
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
|
if test "${lt_cv_deplibs_check_method+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
lt_cv_file_magic_test_file=
|
|
lt_cv_deplibs_check_method='unknown'
|
|
# Need to set the preceding variable on all platforms that support
|
|
# interlibrary dependencies.
|
|
# 'none' -- dependencies not supported.
|
|
# `unknown' -- same as none, but documents that we really don't know.
|
|
# 'pass_all' -- all dependencies passed with no checks.
|
|
# 'test_compile' -- check by making test program.
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path
|
|
# which responds to the $file_magic_cmd with a given extended regex.
|
|
# If you have `file' or equivalent on your system and you're not sure
|
|
# whether `pass_all' will *always* work, you probably want this one.
|
|
|
|
case $host_os in
|
|
aix[4-9]*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
beos*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
bsdi[45]*)
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
lt_cv_file_magic_test_file=/shlib/libc.so
|
|
;;
|
|
|
|
cygwin*)
|
|
# func_win32_libid is a shell function defined in ltmain.sh
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
;;
|
|
|
|
mingw* | pw32*)
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by
|
|
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
|
# unless we find 'file', for example because we are cross-compiling.
|
|
if ( file / ) >/dev/null 2>&1; then
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
|
|
cegcc)
|
|
# use the weaker test based on 'objdump'. See mingw*.
|
|
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
freebsd* | dragonfly*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
case $host_cpu in
|
|
i*86 )
|
|
# Not sure whether the presence of OpenBSD here was a mistake.
|
|
# Let's accept both of them until this is cleared up.
|
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
;;
|
|
esac
|
|
else
|
|
lt_cv_deplibs_check_method=pass_all
|
|
fi
|
|
;;
|
|
|
|
gnu*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
hpux10.20* | hpux11*)
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
case $host_cpu in
|
|
ia64*)
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|
;;
|
|
hppa*64*)
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
|
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
|
;;
|
|
*)
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
interix[3-9]*)
|
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
|
;;
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
case $LD in
|
|
*-32|*"-32 ") libmagic=32-bit;;
|
|
*-n32|*"-n32 ") libmagic=N32;;
|
|
*-64|*"-64 ") libmagic=64-bit;;
|
|
*) libmagic=never-match;;
|
|
esac
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
# If no C compiler was specified, use CC.
|
# This must be Linux ELF.
|
LTCC=${LTCC-"$CC"}
|
linux* | k*bsd*-gnu)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
# If no C compiler flags were specified, use CFLAGS.
|
netbsd*)
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
|
else
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
|
fi
|
|
;;
|
|
|
# Allow CC to be a program name with arguments.
|
newos6*)
|
compiler=$CC
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
openbsd*)
|
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
else
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
|
fi
|
|
;;
|
|
|
# These are sane defaults that work on at least a few old systems.
|
osf3* | osf4* | osf5*)
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
# Character class describing NM global symbol codes.
|
|
symcode='[BCDEGRST]'
|
|
|
|
# Regexp to match symbols that can be accessed directly from C.
|
rdos*)
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
# Define system-specific variables.
|
solaris*)
|
case $host_os in
|
lt_cv_deplibs_check_method=pass_all
|
aix*)
|
|
symcode='[BCDT]'
|
|
;;
|
;;
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
symcode='[ABCDGISTW]'
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
lt_cv_deplibs_check_method=pass_all
|
;;
|
;;
|
hpux*)
|
|
if test "$host_cpu" = ia64; then
|
sysv4 | sysv4.3*)
|
symcode='[ABCDEGRST]'
|
case $host_vendor in
|
fi
|
motorola)
|
|
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]'
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
;;
|
;;
|
irix* | nonstopux*)
|
ncr)
|
symcode='[BCDEGRST]'
|
lt_cv_deplibs_check_method=pass_all
|
;;
|
;;
|
osf*)
|
sequent)
|
symcode='[BCDEGQRST]'
|
lt_cv_file_magic_cmd='/bin/file'
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
;;
|
;;
|
solaris*)
|
sni)
|
symcode='[BDRT]'
|
lt_cv_file_magic_cmd='/bin/file'
|
|
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
|
lt_cv_file_magic_test_file=/lib/libc.so
|
;;
|
;;
|
sco3.2v5*)
|
siemens)
|
symcode='[DT]'
|
lt_cv_deplibs_check_method=pass_all
|
;;
|
;;
|
sysv4.2uw2*)
|
pc)
|
symcode='[DT]'
|
lt_cv_deplibs_check_method=pass_all
|
;;
|
;;
|
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
esac
|
symcode='[ABDT]'
|
|
;;
|
;;
|
sysv4)
|
|
symcode='[DFNSTU]'
|
tpf*)
|
|
lt_cv_deplibs_check_method=pass_all
|
;;
|
;;
|
esac
|
esac
|
|
|
# If we're using GNU nm, then use its standard symbol codes.
|
fi
|
case `$NM -V 2>&1` in
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
*GNU* | *'with BFD'*)
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
symcode='[ABCDGIRSTW]' ;;
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
esac
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
# Transform an extracted symbol line into a proper C declaration.
|
|
# Some systems (esp. on ia64) link data and code symbols differently,
|
|
# so use this general approach.
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
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'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
case $build_os in
|
|
mingw*)
|
|
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|
;;
|
|
esac
|
|
|
|
# Try without a prefix underscore, then with it.
|
|
for ac_symprfx in "" "_"; do
|
|
|
|
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
|
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
|
|
|
# Write the raw and C identifiers.
|
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
# Fake it for dumpbin and say T for any non-static function
|
|
# and D for any global variable.
|
|
# Also find C++ and __fastcall symbols from MSVC++,
|
|
# which start with @ or ?.
|
|
lt_cv_sys_global_symbol_pipe="$AWK '"\
|
|
" {last_section=section; section=\$ 3};"\
|
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
|
" \$ 0!~/External *\|/{next};"\
|
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
|
" {if(hide[section]) next};"\
|
|
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
|
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
|
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
|
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
|
" ' prfx=^$ac_symprfx"
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
|
|
rm -f conftest*
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
char nm_test_var;
|
|
void nm_test_func(void);
|
|
void nm_test_func(void){}
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
int main(){nm_test_var='a';nm_test_func();return(0);}
|
|
_LT_EOF
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
if test -n "$ac_tool_prefix"; then
|
(exit $ac_status); }; then
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
# Now try to grab the symbols.
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
nlist=conftest.nm
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
if test "${ac_cv_prog_AR+set}" = set; then
|
ac_status=$?
|
$as_echo_n "(cached) " >&6
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && test -s "$nlist"; then
|
|
# Try sorting and uniquifying the output.
|
|
if sort "$nlist" | uniq > "$nlist"T; then
|
|
mv -f "$nlist"T "$nlist"
|
|
else
|
else
|
rm -f "$nlist"T
|
if test -n "$AR"; then
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
fi
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
# Make sure that we snagged all the symbols we need.
|
fi
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
fi
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
AR=$ac_cv_prog_AR
|
cat <<_LT_EOF > conftest.$ac_ext
|
if test -n "$AR"; then
|
#ifdef __cplusplus
|
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
|
extern "C" {
|
$as_echo "$AR" >&6; }
|
#endif
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
_LT_EOF
|
$as_echo "no" >&6; }
|
# Now generate the symbol file.
|
fi
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
|
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
const struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
lt__PROGRAM__LTX_preloaded_symbols[] =
|
|
{
|
|
{ "@PROGRAM@", (void *) 0 },
|
|
_LT_EOF
|
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
|
cat <<\_LT_EOF >> conftest.$ac_ext
|
|
{0, (void *) 0}
|
|
};
|
|
|
|
/* This works around a problem in FreeBSD linker */
|
|
#ifdef FREEBSD_WORKAROUND
|
|
static const void *lt_preloaded_setup() {
|
|
return lt__PROGRAM__LTX_preloaded_symbols;
|
|
}
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
lt_save_LIBS="$LIBS"
|
|
lt_save_CFLAGS="$CFLAGS"
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
(eval $ac_link) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
fi
|
LIBS="$lt_save_LIBS"
|
if test -z "$ac_cv_prog_AR"; then
|
CFLAGS="$lt_save_CFLAGS"
|
ac_ct_AR=$AR
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
|
set dummy ar; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
echo "cannot find nm_test_func in $nlist" >&5
|
if test -n "$ac_ct_AR"; then
|
fi
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
else
|
else
|
echo "cannot find nm_test_var in $nlist" >&5
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_AR="ar"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
fi
|
fi
|
else
|
done
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
done
|
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
else
|
|
echo "$progname: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
fi
|
rm -rf conftest* conftst*
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
|
if test -n "$ac_ct_AR"; then
|
# Do not use the global_symbol_pipe unless it works.
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
if test "$pipe_works" = yes; then
|
$as_echo "$ac_ct_AR" >&6; }
|
break
|
|
else
|
else
|
lt_cv_sys_global_symbol_pipe=
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
fi
|
$as_echo "no" >&6; }
|
done
|
|
|
|
fi
|
fi
|
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
if test "x$ac_ct_AR" = x; then
|
lt_cv_sys_global_symbol_to_cdecl=
|
AR="false"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
fi
|
fi
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
|
{ $as_echo "$as_me:$LINENO: result: failed" >&5
|
|
$as_echo "failed" >&6; }
|
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: ok" >&5
|
AR="$ac_cv_prog_AR"
|
$as_echo "ok" >&6; }
|
|
fi
|
fi
|
|
|
|
test -z "$AR" && AR=ar
|
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$STRIP"; then
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
STRIP=$ac_cv_prog_STRIP
|
|
if test -n "$STRIP"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
|
|
$as_echo "$STRIP" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
|
ac_ct_STRIP=$STRIP
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
|
set dummy strip; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_STRIP"; then
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
|
if test -n "$ac_ct_STRIP"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
|
$as_echo "$ac_ct_STRIP" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_STRIP" = x; then
|
|
STRIP=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
STRIP=$ac_ct_STRIP
|
|
fi
|
|
else
|
|
STRIP="$ac_cv_prog_STRIP"
|
|
fi
|
|
|
|
test -z "$STRIP" && STRIP=:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
# Check whether --enable-libtool-lock was given.
|
fi
|
if test "${enable_libtool_lock+set}" = set; then
|
fi
|
enableval=$enable_libtool_lock;
|
RANLIB=$ac_cv_prog_RANLIB
|
|
if test -n "$RANLIB"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
|
|
$as_echo "$RANLIB" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|
|
|
# Some flags need to be propagated to the compiler or linker for good
|
|
# libtool support.
|
|
case $host in
|
|
ia64-*-hpux*)
|
|
# Find out which ABI we are using.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*ELF-32*)
|
|
HPUX_IA64_MODE="32"
|
|
;;
|
|
*ELF-64*)
|
|
HPUX_IA64_MODE="64"
|
|
;;
|
|
esac
|
|
fi
|
fi
|
rm -rf conftest*
|
if test -z "$ac_cv_prog_RANLIB"; then
|
;;
|
ac_ct_RANLIB=$RANLIB
|
*-*-irix6*)
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
# Find out which ABI we are using.
|
set dummy ranlib; ac_word=$2
|
echo '#line 5047 "configure"' > conftest.$ac_ext
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*32-bit*)
|
|
LD="${LD-ld} -melf32bsmip"
|
|
;;
|
|
*N32*)
|
|
LD="${LD-ld} -melf32bmipn32"
|
|
;;
|
|
*64-bit*)
|
|
LD="${LD-ld} -melf64bmip"
|
|
;;
|
|
esac
|
|
else
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*32-bit*)
|
|
LD="${LD-ld} -32"
|
|
;;
|
|
*N32*)
|
|
LD="${LD-ld} -n32"
|
|
;;
|
|
*64-bit*)
|
|
LD="${LD-ld} -64"
|
|
;;
|
|
esac
|
|
fi
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
|
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
|
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
# Find out which ABI we are using.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
case `/usr/bin/file conftest.o` in
|
|
*32-bit*)
|
|
case $host in
|
|
x86_64-*kfreebsd*-gnu)
|
|
LD="${LD-ld} -m elf_i386_fbsd"
|
|
;;
|
|
x86_64-*linux*)
|
|
LD="${LD-ld} -m elf_i386"
|
|
;;
|
|
ppc64-*linux*|powerpc64-*linux*)
|
|
LD="${LD-ld} -m elf32ppclinux"
|
|
;;
|
|
s390x-*linux*)
|
|
LD="${LD-ld} -m elf_s390"
|
|
;;
|
|
sparc64-*linux*)
|
|
LD="${LD-ld} -m elf32_sparc"
|
|
;;
|
|
esac
|
|
;;
|
|
*64-bit*)
|
|
case $host in
|
|
x86_64-*kfreebsd*-gnu)
|
|
LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
;;
|
|
x86_64-*linux*)
|
|
LD="${LD-ld} -m elf_x86_64"
|
|
;;
|
|
ppc*-*linux*|powerpc*-*linux*)
|
|
LD="${LD-ld} -m elf64ppc"
|
|
;;
|
|
s390*-*linux*|s390*-*tpf*)
|
|
LD="${LD-ld} -m elf64_s390"
|
|
;;
|
|
sparc*-*linux*)
|
|
LD="${LD-ld} -m elf64_sparc"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
|
*-*-sco3.2v5*)
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
SAVE_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS -belf"
|
|
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
|
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest$ac_exeext && {
|
|
test "$cross_compiling" = yes ||
|
|
$as_test_x conftest$ac_exeext
|
|
}; then
|
|
lt_cv_cc_needs_belf=yes
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
lt_cv_cc_needs_belf=no
|
|
fi
|
|
|
|
rm -rf conftest.dSYM
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
|
$as_echo "$lt_cv_cc_needs_belf" >&6; }
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
fi
|
|
;;
|
|
sparc*-*solaris*)
|
|
# Find out which ABI we are using.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
case `/usr/bin/file conftest.o` in
|
|
*64-bit*)
|
|
case $lt_cv_prog_gnu_ld in
|
|
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
*)
|
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
LD="${LD-ld} -64"
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$DSYMUTIL"; then
|
if test -n "$ac_ct_RANLIB"; then
|
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
if test -n "$DSYMUTIL"; then
|
if test -n "$ac_ct_RANLIB"; then
|
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
$as_echo "$DSYMUTIL" >&6; }
|
$as_echo "$ac_ct_RANLIB" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
|
if test "x$ac_ct_RANLIB" = x; then
|
fi
|
RANLIB=":"
|
if test -z "$ac_cv_prog_DSYMUTIL"; then
|
|
ac_ct_DSYMUTIL=$DSYMUTIL
|
|
# Extract the first word of "dsymutil", so it can be a program name with args.
|
|
set dummy dsymutil; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
else
|
if test -n "$ac_ct_DSYMUTIL"; then
|
case $cross_compiling:$ac_tool_warned in
|
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
yes:)
|
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
RANLIB=$ac_ct_RANLIB
|
|
fi
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
RANLIB="$ac_cv_prog_RANLIB"
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
fi
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
test -z "$RANLIB" && RANLIB=:
|
fi
|
|
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
|
if test -n "$ac_ct_DSYMUTIL"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
|
|
$as_echo "$ac_ct_DSYMUTIL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
# Determine commands to create old-style static archives.
|
$as_echo "no" >&6; }
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
old_postinstall_cmds='chmod 644 $oldlib'
|
|
old_postuninstall_cmds=
|
|
|
|
if test -n "$RANLIB"; then
|
|
case $host_os in
|
|
openbsd*)
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
|
;;
|
|
*)
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
;;
|
|
esac
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
fi
|
fi
|
|
|
if test "x$ac_ct_DSYMUTIL" = x; then
|
|
DSYMUTIL=":"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If no C compiler was specified, use CC.
|
|
LTCC=${LTCC-"$CC"}
|
|
|
|
# If no C compiler flags were specified, use CFLAGS.
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
compiler=$CC
|
|
|
|
|
|
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
|
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
# These are sane defaults that work on at least a few old systems.
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
# Character class describing NM global symbol codes.
|
|
symcode='[BCDEGRST]'
|
|
|
|
# Regexp to match symbols that can be accessed directly from C.
|
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
|
|
|
# Define system-specific variables.
|
|
case $host_os in
|
|
aix*)
|
|
symcode='[BCDT]'
|
|
;;
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
symcode='[ABCDGISTW]'
|
|
;;
|
|
hpux*)
|
|
if test "$host_cpu" = ia64; then
|
|
symcode='[ABCDEGRST]'
|
|
fi
|
|
;;
|
|
irix* | nonstopux*)
|
|
symcode='[BCDEGRST]'
|
|
;;
|
|
osf*)
|
|
symcode='[BCDEGQRST]'
|
|
;;
|
|
solaris*)
|
|
symcode='[BDRT]'
|
|
;;
|
|
sco3.2v5*)
|
|
symcode='[DT]'
|
|
;;
|
|
sysv4.2uw2*)
|
|
symcode='[DT]'
|
|
;;
|
|
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
|
symcode='[ABDT]'
|
|
;;
|
|
sysv4)
|
|
symcode='[DFNSTU]'
|
|
;;
|
esac
|
esac
|
DSYMUTIL=$ac_ct_DSYMUTIL
|
|
|
# If we're using GNU nm, then use its standard symbol codes.
|
|
case `$NM -V 2>&1` in
|
|
*GNU* | *'with BFD'*)
|
|
symcode='[ABCDGIRSTW]' ;;
|
|
esac
|
|
|
|
# Transform an extracted symbol line into a proper C declaration.
|
|
# Some systems (esp. on ia64) link data and code symbols differently,
|
|
# so use this general approach.
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
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'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
case $build_os in
|
|
mingw*)
|
|
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|
;;
|
|
esac
|
|
|
|
# Try without a prefix underscore, then with it.
|
|
for ac_symprfx in "" "_"; do
|
|
|
|
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
|
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
|
|
|
# Write the raw and C identifiers.
|
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
# Fake it for dumpbin and say T for any non-static function
|
|
# and D for any global variable.
|
|
# Also find C++ and __fastcall symbols from MSVC++,
|
|
# which start with @ or ?.
|
|
lt_cv_sys_global_symbol_pipe="$AWK '"\
|
|
" {last_section=section; section=\$ 3};"\
|
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
|
" \$ 0!~/External *\|/{next};"\
|
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
|
" {if(hide[section]) next};"\
|
|
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
|
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
|
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
|
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
|
" ' prfx=^$ac_symprfx"
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
fi
|
fi
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
|
|
rm -f conftest*
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
char nm_test_var;
|
|
void nm_test_func(void);
|
|
void nm_test_func(void){}
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
int main(){nm_test_var='a';nm_test_func();return(0);}
|
|
_LT_EOF
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
# Now try to grab the symbols.
|
|
nlist=conftest.nm
|
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && test -s "$nlist"; then
|
|
# Try sorting and uniquifying the output.
|
|
if sort "$nlist" | uniq > "$nlist"T; then
|
|
mv -f "$nlist"T "$nlist"
|
else
|
else
|
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
rm -f "$nlist"T
|
fi
|
fi
|
|
|
if test -n "$ac_tool_prefix"; then
|
# Make sure that we snagged all the symbols we need.
|
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cat <<_LT_EOF > conftest.$ac_ext
|
$as_echo_n "checking for $ac_word... " >&6; }
|
#ifdef __cplusplus
|
if test "${ac_cv_prog_NMEDIT+set}" = set; then
|
extern "C" {
|
$as_echo_n "(cached) " >&6
|
#endif
|
|
|
|
_LT_EOF
|
|
# Now generate the symbol file.
|
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
|
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
const struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
lt__PROGRAM__LTX_preloaded_symbols[] =
|
|
{
|
|
{ "@PROGRAM@", (void *) 0 },
|
|
_LT_EOF
|
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
|
cat <<\_LT_EOF >> conftest.$ac_ext
|
|
{0, (void *) 0}
|
|
};
|
|
|
|
/* This works around a problem in FreeBSD linker */
|
|
#ifdef FREEBSD_WORKAROUND
|
|
static const void *lt_preloaded_setup() {
|
|
return lt__PROGRAM__LTX_preloaded_symbols;
|
|
}
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
lt_save_LIBS="$LIBS"
|
|
lt_save_CFLAGS="$CFLAGS"
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
(eval $ac_link) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
LIBS="$lt_save_LIBS"
|
|
CFLAGS="$lt_save_CFLAGS"
|
else
|
else
|
if test -n "$NMEDIT"; then
|
echo "cannot find nm_test_func in $nlist" >&5
|
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
fi
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
echo "cannot find nm_test_var in $nlist" >&5
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
fi
|
done
|
else
|
done
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
IFS=$as_save_IFS
|
|
|
|
fi
|
fi
|
|
else
|
|
echo "$progname: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
fi
|
fi
|
NMEDIT=$ac_cv_prog_NMEDIT
|
rm -rf conftest* conftst*
|
if test -n "$NMEDIT"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
|
# Do not use the global_symbol_pipe unless it works.
|
$as_echo "$NMEDIT" >&6; }
|
if test "$pipe_works" = yes; then
|
|
break
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
lt_cv_sys_global_symbol_pipe=
|
$as_echo "no" >&6; }
|
|
fi
|
fi
|
|
done
|
|
|
|
fi
|
|
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
|
lt_cv_sys_global_symbol_to_cdecl=
|
fi
|
fi
|
if test -z "$ac_cv_prog_NMEDIT"; then
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
ac_ct_NMEDIT=$NMEDIT
|
{ $as_echo "$as_me:$LINENO: result: failed" >&5
|
# Extract the first word of "nmedit", so it can be a program name with args.
|
$as_echo "failed" >&6; }
|
set dummy nmedit; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_NMEDIT"; then
|
|
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
{ $as_echo "$as_me:$LINENO: result: ok" >&5
|
for as_dir in $PATH
|
$as_echo "ok" >&6; }
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
fi
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-libtool-lock was given.
|
|
if test "${enable_libtool_lock+set}" = set; then
|
|
enableval=$enable_libtool_lock;
|
fi
|
fi
|
|
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|
|
|
# Some flags need to be propagated to the compiler or linker for good
|
|
# libtool support.
|
|
case $host in
|
|
ia64-*-hpux*)
|
|
# Find out which ABI we are using.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*ELF-32*)
|
|
HPUX_IA64_MODE="32"
|
|
;;
|
|
*ELF-64*)
|
|
HPUX_IA64_MODE="64"
|
|
;;
|
|
esac
|
fi
|
fi
|
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
rm -rf conftest*
|
if test -n "$ac_ct_NMEDIT"; then
|
;;
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
|
*-*-irix6*)
|
$as_echo "$ac_ct_NMEDIT" >&6; }
|
# Find out which ABI we are using.
|
|
echo '#line 5769 "configure"' > conftest.$ac_ext
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
|
*32-bit*)
|
|
LD="${LD-ld} -melf32bsmip"
|
|
;;
|
|
*N32*)
|
|
LD="${LD-ld} -melf32bmipn32"
|
|
;;
|
|
*64-bit*)
|
|
LD="${LD-ld} -melf64bmip"
|
|
;;
|
|
esac
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
case `/usr/bin/file conftest.$ac_objext` in
|
$as_echo "no" >&6; }
|
*32-bit*)
|
|
LD="${LD-ld} -32"
|
|
;;
|
|
*N32*)
|
|
LD="${LD-ld} -n32"
|
|
;;
|
|
*64-bit*)
|
|
LD="${LD-ld} -64"
|
|
;;
|
|
esac
|
|
fi
|
fi
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
if test "x$ac_ct_NMEDIT" = x; then
|
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
NMEDIT=":"
|
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
else
|
# Find out which ABI we are using.
|
case $cross_compiling:$ac_tool_warned in
|
echo 'int i;' > conftest.$ac_ext
|
yes:)
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
(eval $ac_compile) 2>&5
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
ac_status=$?
|
ac_tool_warned=yes ;;
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
case `/usr/bin/file conftest.o` in
|
|
*32-bit*)
|
|
case $host in
|
|
x86_64-*kfreebsd*-gnu)
|
|
LD="${LD-ld} -m elf_i386_fbsd"
|
|
;;
|
|
x86_64-*linux*)
|
|
LD="${LD-ld} -m elf_i386"
|
|
;;
|
|
ppc64-*linux*|powerpc64-*linux*)
|
|
LD="${LD-ld} -m elf32ppclinux"
|
|
;;
|
|
s390x-*linux*)
|
|
LD="${LD-ld} -m elf_s390"
|
|
;;
|
|
sparc64-*linux*)
|
|
LD="${LD-ld} -m elf32_sparc"
|
|
;;
|
|
esac
|
|
;;
|
|
*64-bit*)
|
|
case $host in
|
|
x86_64-*kfreebsd*-gnu)
|
|
LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
;;
|
|
x86_64-*linux*)
|
|
LD="${LD-ld} -m elf_x86_64"
|
|
;;
|
|
ppc*-*linux*|powerpc*-*linux*)
|
|
LD="${LD-ld} -m elf64ppc"
|
|
;;
|
|
s390*-*linux*|s390*-*tpf*)
|
|
LD="${LD-ld} -m elf64_s390"
|
|
;;
|
|
sparc*-*linux*)
|
|
LD="${LD-ld} -m elf64_sparc"
|
|
;;
|
|
esac
|
|
;;
|
esac
|
esac
|
NMEDIT=$ac_ct_NMEDIT
|
|
fi
|
|
else
|
|
NMEDIT="$ac_cv_prog_NMEDIT"
|
|
fi
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
if test -n "$ac_tool_prefix"; then
|
*-*-sco3.2v5*)
|
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
SAVE_CFLAGS="$CFLAGS"
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
CFLAGS="$CFLAGS -belf"
|
$as_echo_n "checking for $ac_word... " >&6; }
|
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
if test "${ac_cv_prog_LIPO+set}" = set; then
|
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$LIPO"; then
|
ac_ext=c
|
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
ac_cpp='$CPP $CPPFLAGS'
|
else
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
for as_dir in $PATH
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
cat >conftest.$ac_ext <<_ACEOF
|
fi
|
/* confdefs.h. */
|
LIPO=$ac_cv_prog_LIPO
|
_ACEOF
|
if test -n "$LIPO"; then
|
cat confdefs.h >>conftest.$ac_ext
|
{ $as_echo "$as_me:$LINENO: result: $LIPO" >&5
|
cat >>conftest.$ac_ext <<_ACEOF
|
$as_echo "$LIPO" >&6; }
|
/* end confdefs.h. */
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
fi
|
;
|
if test -z "$ac_cv_prog_LIPO"; then
|
return 0;
|
ac_ct_LIPO=$LIPO
|
}
|
# Extract the first word of "lipo", so it can be a program name with args.
|
_ACEOF
|
set dummy lipo; ac_word=$2
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
if { (ac_try="$ac_link"
|
$as_echo_n "checking for $ac_word... " >&6; }
|
case "(($ac_try" in
|
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
$as_echo_n "(cached) " >&6
|
*) ac_try_echo=$ac_try;;
|
else
|
esac
|
if test -n "$ac_ct_LIPO"; then
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest$ac_exeext && {
|
|
test "$cross_compiling" = yes ||
|
|
$as_test_x conftest$ac_exeext
|
|
}; then
|
|
lt_cv_cc_needs_belf=yes
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
$as_echo "$as_me: failed program was:" >&5
|
for as_dir in $PATH
|
sed 's/^/| /' conftest.$ac_ext >&5
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_LIPO="lipo"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
|
lt_cv_cc_needs_belf=no
|
fi
|
fi
|
|
|
|
rm -rf conftest.dSYM
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
fi
|
fi
|
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
if test -n "$ac_ct_LIPO"; then
|
$as_echo "$lt_cv_cc_needs_belf" >&6; }
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
$as_echo "$ac_ct_LIPO" >&6; }
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
else
|
CFLAGS="$SAVE_CFLAGS"
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
fi
|
|
;;
|
if test "x$ac_ct_LIPO" = x; then
|
sparc*-*solaris*)
|
LIPO=":"
|
# Find out which ABI we are using.
|
else
|
echo 'int i;' > conftest.$ac_ext
|
case $cross_compiling:$ac_tool_warned in
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
yes:)
|
(eval $ac_compile) 2>&5
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
ac_status=$?
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
ac_tool_warned=yes ;;
|
(exit $ac_status); }; then
|
esac
|
case `/usr/bin/file conftest.o` in
|
LIPO=$ac_ct_LIPO
|
*64-bit*)
|
|
case $lt_cv_prog_gnu_ld in
|
|
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
*)
|
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
LD="${LD-ld} -64"
|
fi
|
fi
|
else
|
;;
|
LIPO="$ac_cv_prog_LIPO"
|
esac
|
|
;;
|
|
esac
|
fi
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
if test -n "$ac_tool_prefix"; then
|
if test -n "$ac_tool_prefix"; then
|
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
set dummy ${ac_tool_prefix}otool; ac_word=$2
|
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_OTOOL+set}" = set; then
|
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$OTOOL"; then
|
if test -n "$DSYMUTIL"; then
|
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
OTOOL=$ac_cv_prog_OTOOL
|
DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
if test -n "$OTOOL"; then
|
if test -n "$DSYMUTIL"; then
|
{ $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
|
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
|
$as_echo "$OTOOL" >&6; }
|
$as_echo "$DSYMUTIL" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
|
|
fi
|
fi
|
if test -z "$ac_cv_prog_OTOOL"; then
|
if test -z "$ac_cv_prog_DSYMUTIL"; then
|
ac_ct_OTOOL=$OTOOL
|
ac_ct_DSYMUTIL=$DSYMUTIL
|
# Extract the first word of "otool", so it can be a program name with args.
|
# Extract the first word of "dsymutil", so it can be a program name with args.
|
set dummy otool; ac_word=$2
|
set dummy dsymutil; ac_word=$2
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
|
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$ac_ct_OTOOL"; then
|
if test -n "$ac_ct_DSYMUTIL"; then
|
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_ac_ct_OTOOL="otool"
|
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
if test -n "$ac_ct_OTOOL"; then
|
if test -n "$ac_ct_DSYMUTIL"; then
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
|
$as_echo "$ac_ct_OTOOL" >&6; }
|
$as_echo "$ac_ct_DSYMUTIL" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
if test "x$ac_ct_OTOOL" = x; then
|
if test "x$ac_ct_DSYMUTIL" = x; then
|
OTOOL=":"
|
DSYMUTIL=":"
|
else
|
else
|
case $cross_compiling:$ac_tool_warned in
|
case $cross_compiling:$ac_tool_warned in
|
yes:)
|
yes:)
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
ac_tool_warned=yes ;;
|
ac_tool_warned=yes ;;
|
esac
|
esac
|
OTOOL=$ac_ct_OTOOL
|
DSYMUTIL=$ac_ct_DSYMUTIL
|
fi
|
fi
|
else
|
else
|
OTOOL="$ac_cv_prog_OTOOL"
|
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
fi
|
fi
|
|
|
if test -n "$ac_tool_prefix"; then
|
if test -n "$ac_tool_prefix"; then
|
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_OTOOL64+set}" = set; then
|
if test "${ac_cv_prog_NMEDIT+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$OTOOL64"; then
|
if test -n "$NMEDIT"; then
|
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
OTOOL64=$ac_cv_prog_OTOOL64
|
NMEDIT=$ac_cv_prog_NMEDIT
|
if test -n "$OTOOL64"; then
|
if test -n "$NMEDIT"; then
|
{ $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
|
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
|
$as_echo "$OTOOL64" >&6; }
|
$as_echo "$NMEDIT" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
|
|
fi
|
fi
|
if test -z "$ac_cv_prog_OTOOL64"; then
|
if test -z "$ac_cv_prog_NMEDIT"; then
|
ac_ct_OTOOL64=$OTOOL64
|
ac_ct_NMEDIT=$NMEDIT
|
# Extract the first word of "otool64", so it can be a program name with args.
|
# Extract the first word of "nmedit", so it can be a program name with args.
|
set dummy otool64; ac_word=$2
|
set dummy nmedit; ac_word=$2
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
|
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
if test -n "$ac_ct_OTOOL64"; then
|
if test -n "$ac_ct_NMEDIT"; then
|
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
else
|
else
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
for as_dir in $PATH
|
for as_dir in $PATH
|
do
|
do
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
test -z "$as_dir" && as_dir=.
|
test -z "$as_dir" && as_dir=.
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
ac_cv_prog_ac_ct_OTOOL64="otool64"
|
ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
break 2
|
break 2
|
fi
|
fi
|
done
|
done
|
done
|
done
|
IFS=$as_save_IFS
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
fi
|
fi
|
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
if test -n "$ac_ct_OTOOL64"; then
|
if test -n "$ac_ct_NMEDIT"; then
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
|
$as_echo "$ac_ct_OTOOL64" >&6; }
|
$as_echo "$ac_ct_NMEDIT" >&6; }
|
else
|
else
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
if test "x$ac_ct_OTOOL64" = x; then
|
if test "x$ac_ct_NMEDIT" = x; then
|
OTOOL64=":"
|
NMEDIT=":"
|
else
|
else
|
case $cross_compiling:$ac_tool_warned in
|
case $cross_compiling:$ac_tool_warned in
|
yes:)
|
yes:)
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
ac_tool_warned=yes ;;
|
ac_tool_warned=yes ;;
|
esac
|
esac
|
OTOOL64=$ac_ct_OTOOL64
|
NMEDIT=$ac_ct_NMEDIT
|
fi
|
fi
|
else
|
else
|
OTOOL64="$ac_cv_prog_OTOOL64"
|
NMEDIT="$ac_cv_prog_NMEDIT"
|
fi
|
fi
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_LIPO+set}" = set; then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
|
|
$as_echo_n "checking for -single_module linker flag... " >&6; }
|
|
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_apple_cc_single_mod=no
|
|
if test -z "${LT_MULTI_MODULE}"; then
|
|
# By default we will add the -single_module flag. You can override
|
|
# by either setting the environment variable LT_MULTI_MODULE
|
|
# non-empty at configure time, or by adding -multi_module to the
|
|
# link flags.
|
|
rm -rf libconftest.dylib*
|
|
echo "int foo(void){return 1;}" > conftest.c
|
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
-dynamiclib -Wl,-single_module conftest.c" >&5
|
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
_lt_result=$?
|
|
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
|
lt_cv_apple_cc_single_mod=yes
|
|
else
|
|
cat conftest.err >&5
|
|
fi
|
|
rm -rf libconftest.dylib*
|
|
rm -f conftest.*
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
|
|
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
|
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
|
|
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
|
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
|
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
lt_cv_ld_exported_symbols_list=no
|
if test -n "$LIPO"; then
|
save_LDFLAGS=$LDFLAGS
|
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
echo "_main" > conftest.sym
|
else
|
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cat >conftest.$ac_ext <<_ACEOF
|
for as_dir in $PATH
|
/* confdefs.h. */
|
do
|
_ACEOF
|
IFS=$as_save_IFS
|
cat confdefs.h >>conftest.$ac_ext
|
test -z "$as_dir" && as_dir=.
|
cat >>conftest.$ac_ext <<_ACEOF
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
/* end confdefs.h. */
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
int
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
main ()
|
break 2
|
{
|
fi
|
|
done
|
;
|
done
|
return 0;
|
IFS=$as_save_IFS
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest$ac_exeext && {
|
|
test "$cross_compiling" = yes ||
|
|
$as_test_x conftest$ac_exeext
|
|
}; then
|
|
lt_cv_ld_exported_symbols_list=yes
|
|
else
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
lt_cv_ld_exported_symbols_list=no
|
fi
|
|
fi
|
|
LIPO=$ac_cv_prog_LIPO
|
|
if test -n "$LIPO"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $LIPO" >&5
|
|
$as_echo "$LIPO" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
rm -rf conftest.dSYM
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LDFLAGS="$save_LDFLAGS"
|
|
|
|
fi
|
fi
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
|
if test -z "$ac_cv_prog_LIPO"; then
|
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
ac_ct_LIPO=$LIPO
|
case $host_os in
|
# Extract the first word of "lipo", so it can be a program name with args.
|
rhapsody* | darwin1.[012])
|
set dummy lipo; ac_word=$2
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
darwin1.*)
|
$as_echo_n "checking for $ac_word... " >&6; }
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
|
darwin*) # darwin 5.x on
|
$as_echo_n "(cached) " >&6
|
# if running on 10.5 or later, the deployment target defaults
|
|
# to the OS version, if on x86, and 10.4, the deployment
|
|
# target defaults to 10.4. Don't you love it?
|
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
10.[012]*)
|
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
10.*)
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
esac
|
|
;;
|
|
esac
|
|
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
|
_lt_dar_single_mod='$single_module'
|
|
fi
|
|
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
|
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
|
else
|
else
|
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
if test -n "$ac_ct_LIPO"; then
|
|
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_LIPO="lipo"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
fi
|
fi
|
if test "$DSYMUTIL" != ":"; then
|
done
|
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
|
if test -n "$ac_ct_LIPO"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
|
|
$as_echo "$ac_ct_LIPO" >&6; }
|
else
|
else
|
_lt_dsymutil=
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
fi
|
fi
|
;;
|
|
esac
|
|
|
|
ac_ext=c
|
if test "x$ac_ct_LIPO" = x; then
|
ac_cpp='$CPP $CPPFLAGS'
|
LIPO=":"
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
else
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
case $cross_compiling:$ac_tool_warned in
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
yes:)
|
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
$as_echo_n "checking how to run the C preprocessor... " >&6; }
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
# On Suns, sometimes $CPP names a directory.
|
ac_tool_warned=yes ;;
|
if test -n "$CPP" && test -d "$CPP"; then
|
esac
|
CPP=
|
LIPO=$ac_ct_LIPO
|
fi
|
fi
|
if test -z "$CPP"; then
|
else
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
LIPO="$ac_cv_prog_LIPO"
|
|
fi
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}otool; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_OTOOL+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
# Double quotes because CPP needs to be expanded
|
if test -n "$OTOOL"; then
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
do
|
|
ac_preproc_ok=false
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
do
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
# with a fresh cross-compiler works.
|
|
# Prefer to if __STDC__ is defined, since
|
|
# exists even on freestanding compilers.
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#ifdef __STDC__
|
|
# include
|
|
#else
|
|
# include
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
:
|
|
else
|
else
|
$as_echo "$as_me: failed program was:" >&5
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
sed 's/^/| /' conftest.$ac_ext >&5
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
# Broken: fails on valid input.
|
fi
|
continue
|
fi
|
|
OTOOL=$ac_cv_prog_OTOOL
|
|
if test -n "$OTOOL"; then
|
|
{ $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
|
|
$as_echo "$OTOOL" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
fi
|
# can be detected and how.
|
if test -z "$ac_cv_prog_OTOOL"; then
|
cat >conftest.$ac_ext <<_ACEOF
|
ac_ct_OTOOL=$OTOOL
|
/* confdefs.h. */
|
# Extract the first word of "otool", so it can be a program name with args.
|
_ACEOF
|
set dummy otool; ac_word=$2
|
cat confdefs.h >>conftest.$ac_ext
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cat >>conftest.$ac_ext <<_ACEOF
|
$as_echo_n "checking for $ac_word... " >&6; }
|
/* end confdefs.h. */
|
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
|
#include
|
$as_echo_n "(cached) " >&6
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
# Broken: success on invalid input.
|
|
continue
|
|
else
|
else
|
$as_echo "$as_me: failed program was:" >&5
|
if test -n "$ac_ct_OTOOL"; then
|
sed 's/^/| /' conftest.$ac_ext >&5
|
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
|
else
|
# Passes both tests.
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
ac_preproc_ok=:
|
for as_dir in $PATH
|
break
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_OTOOL="otool"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
fi
|
fi
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
done
|
done
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
rm -f conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then
|
|
break
|
|
fi
|
|
|
|
done
|
done
|
ac_cv_prog_CPP=$CPP
|
IFS=$as_save_IFS
|
|
|
fi
|
fi
|
CPP=$ac_cv_prog_CPP
|
|
else
|
|
ac_cv_prog_CPP=$CPP
|
|
fi
|
fi
|
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
|
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
$as_echo "$CPP" >&6; }
|
if test -n "$ac_ct_OTOOL"; then
|
ac_preproc_ok=false
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
|
for ac_c_preproc_warn_flag in '' yes
|
$as_echo "$ac_ct_OTOOL" >&6; }
|
do
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
# with a fresh cross-compiler works.
|
|
# Prefer to if __STDC__ is defined, since
|
|
# exists even on freestanding compilers.
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#ifdef __STDC__
|
|
# include
|
|
#else
|
|
# include
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
:
|
|
else
|
else
|
$as_echo "$as_me: failed program was:" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
$as_echo "no" >&6; }
|
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
fi
|
|
|
rm -f conftest.err conftest.$ac_ext
|
if test "x$ac_ct_OTOOL" = x; then
|
|
OTOOL=":"
|
# OK, works on sane cases. Now check whether nonexistent headers
|
else
|
# can be detected and how.
|
case $cross_compiling:$ac_tool_warned in
|
cat >conftest.$ac_ext <<_ACEOF
|
yes:)
|
/* confdefs.h. */
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
_ACEOF
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cat confdefs.h >>conftest.$ac_ext
|
ac_tool_warned=yes ;;
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
esac
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
OTOOL=$ac_ct_OTOOL
|
$as_echo "$ac_try_echo") >&5
|
fi
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then
|
|
# Broken: success on invalid input.
|
|
continue
|
|
else
|
else
|
$as_echo "$as_me: failed program was:" >&5
|
OTOOL="$ac_cv_prog_OTOOL"
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Passes both tests.
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
fi
|
|
|
rm -f conftest.err conftest.$ac_ext
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
done
|
set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
rm -f conftest.err conftest.$ac_ext
|
$as_echo_n "checking for $ac_word... " >&6; }
|
if $ac_preproc_ok; then
|
if test "${ac_cv_prog_OTOOL64+set}" = set; then
|
:
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
if test -n "$OTOOL64"; then
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
else
|
See \`config.log' for more details." >&5
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
for as_dir in $PATH
|
See \`config.log' for more details." >&2;}
|
do
|
{ (exit 1); exit 1; }; }; }
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
fi
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
ac_ext=c
|
fi
|
ac_cpp='$CPP $CPPFLAGS'
|
fi
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
OTOOL64=$ac_cv_prog_OTOOL64
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
if test -n "$OTOOL64"; then
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
{ $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
|
|
$as_echo "$OTOOL64" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
fi
|
$as_echo_n "checking for ANSI C header files... " >&6; }
|
if test -z "$ac_cv_prog_OTOOL64"; then
|
if test "${ac_cv_header_stdc+set}" = set; then
|
ac_ct_OTOOL64=$OTOOL64
|
|
# Extract the first word of "otool64", so it can be a program name with args.
|
|
set dummy otool64; ac_word=$2
|
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
cat >conftest.$ac_ext <<_ACEOF
|
if test -n "$ac_ct_OTOOL64"; then
|
/* confdefs.h. */
|
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
_ACEOF
|
else
|
cat confdefs.h >>conftest.$ac_ext
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cat >>conftest.$ac_ext <<_ACEOF
|
for as_dir in $PATH
|
/* end confdefs.h. */
|
do
|
#include
|
IFS=$as_save_IFS
|
#include
|
test -z "$as_dir" && as_dir=.
|
#include
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
#include
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_OTOOL64="otool64"
|
int
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
main ()
|
break 2
|
{
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
;
|
fi
|
return 0;
|
fi
|
}
|
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
_ACEOF
|
if test -n "$ac_ct_OTOOL64"; then
|
rm -f conftest.$ac_objext
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
|
if { (ac_try="$ac_compile"
|
$as_echo "$ac_ct_OTOOL64" >&6; }
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && {
|
|
test -z "$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
} && test -s conftest.$ac_objext; then
|
|
ac_cv_header_stdc=yes
|
|
else
|
else
|
$as_echo "$as_me: failed program was:" >&5
|
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
ac_cv_header_stdc=no
|
if test "x$ac_ct_OTOOL64" = x; then
|
|
OTOOL64=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
OTOOL64=$ac_ct_OTOOL64
|
|
fi
|
|
else
|
|
OTOOL64="$ac_cv_prog_OTOOL64"
|
fi
|
fi
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then
|
|
:
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include
|
|
#include
|
|
#if ((' ' & 0x0FF) == 0x020)
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#else
|
|
# define ISLOWER(c) \
|
|
(('a' <= (c) && (c) <= 'i') \
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
#endif
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int
|
|
main ()
|
|
{
|
|
int i;
|
|
for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i))
|
|
|| toupper (i) != TOUPPER (i))
|
|
return 2;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
$as_echo "$ac_try_echo") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
:
|
|
else
|
|
$as_echo "$as_me: program exited with status $ac_status" >&5
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -rf conftest.dSYM
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
|
$as_echo "$ac_cv_header_stdc" >&6; }
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define STDC_HEADERS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
inttypes.h stdint.h unistd.h
|
|
do
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
|
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
$as_echo_n "checking for -single_module linker flag... " >&6; }
|
$as_echo_n "checking for $ac_header... " >&6; }
|
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
lt_cv_apple_cc_single_mod=no
|
|
if test -z "${LT_MULTI_MODULE}"; then
|
|
# By default we will add the -single_module flag. You can override
|
|
# by either setting the environment variable LT_MULTI_MODULE
|
|
# non-empty at configure time, or by adding -multi_module to the
|
|
# link flags.
|
|
rm -rf libconftest.dylib*
|
|
echo "int foo(void){return 1;}" > conftest.c
|
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
-dynamiclib -Wl,-single_module conftest.c" >&5
|
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
_lt_result=$?
|
|
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
|
lt_cv_apple_cc_single_mod=yes
|
|
else
|
|
cat conftest.err >&5
|
|
fi
|
|
rm -rf libconftest.dylib*
|
|
rm -f conftest.*
|
|
fi
|
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
|
|
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
|
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
|
|
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
|
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
|
lt_cv_ld_exported_symbols_list=no
|
|
save_LDFLAGS=$LDFLAGS
|
|
echo "_main" > conftest.sym
|
|
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
/* confdefs.h. */
|
/* confdefs.h. */
|
_ACEOF
|
_ACEOF
|
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
/* end confdefs.h. */
|
/* end confdefs.h. */
|
$ac_includes_default
|
|
|
|
#include <$ac_header>
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
_ACEOF
|
_ACEOF
|
rm -f conftest.$ac_objext
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
if { (ac_try="$ac_compile"
|
if { (ac_try="$ac_link"
|
case "(($ac_try" in
|
case "(($ac_try" in
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
*) ac_try_echo=$ac_try;;
|
*) ac_try_echo=$ac_try;;
|
esac
|
esac
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
$as_echo "$ac_try_echo") >&5
|
$as_echo "$ac_try_echo") >&5
|
(eval "$ac_compile") 2>conftest.er1
|
(eval "$ac_link") 2>conftest.er1
|
ac_status=$?
|
ac_status=$?
|
grep -v '^ *+' conftest.er1 >conftest.err
|
grep -v '^ *+' conftest.er1 >conftest.err
|
rm -f conftest.er1
|
rm -f conftest.er1
|
cat conftest.err >&5
|
cat conftest.err >&5
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
(exit $ac_status); } && {
|
(exit $ac_status); } && {
|
test -z "$ac_c_werror_flag" ||
|
test -z "$ac_c_werror_flag" ||
|
test ! -s conftest.err
|
test ! -s conftest.err
|
} && test -s conftest.$ac_objext; then
|
} && test -s conftest$ac_exeext && {
|
eval "$as_ac_Header=yes"
|
test "$cross_compiling" = yes ||
|
|
$as_test_x conftest$ac_exeext
|
|
}; then
|
|
lt_cv_ld_exported_symbols_list=yes
|
else
|
else
|
$as_echo "$as_me: failed program was:" >&5
|
$as_echo "$as_me: failed program was:" >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
eval "$as_ac_Header=no"
|
lt_cv_ld_exported_symbols_list=no
|
fi
|
fi
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -rf conftest.dSYM
|
fi
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
conftest$ac_exeext conftest.$ac_ext
|
$as_echo "$as_val"'`
|
LDFLAGS="$save_LDFLAGS"
|
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
$as_echo "$ac_res" >&6; }
|
|
as_val=`eval 'as_val=${'$as_ac_Header'}
|
|
$as_echo "$as_val"'`
|
|
if test "x$as_val" = x""yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
fi
|
|
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
|
done
|
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
|
case $host_os in
|
|
rhapsody* | darwin1.[012])
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
|
darwin1.*)
|
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
darwin*) # darwin 5.x on
|
|
# if running on 10.5 or later, the deployment target defaults
|
|
# to the OS version, if on x86, and 10.4, the deployment
|
|
# target defaults to 10.4. Don't you love it?
|
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
10.[012]*)
|
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
10.*)
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
esac
|
|
;;
|
|
esac
|
|
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
|
_lt_dar_single_mod='$single_module'
|
|
fi
|
|
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
|
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
|
else
|
|
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
fi
|
|
if test "$DSYMUTIL" != ":"; then
|
|
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
|
else
|
|
_lt_dsymutil=
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
|
for ac_header in dlfcn.h
|
for ac_header in dlfcn.h
|
do
|
do
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
Line 6899... |
Line 7133... |
# The option is referenced via a variable to avoid confusing sed.
|
# The option is referenced via a variable to avoid confusing sed.
|
lt_compile=`echo "$ac_compile" | $SED \
|
lt_compile=`echo "$ac_compile" | $SED \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:6904: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:7138: $lt_compile\"" >&5)
|
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
ac_status=$?
|
ac_status=$?
|
cat conftest.err >&5
|
cat conftest.err >&5
|
echo "$as_me:6908: \$? = $ac_status" >&5
|
echo "$as_me:7142: \$? = $ac_status" >&5
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Line 7238... |
Line 7472... |
# The option is referenced via a variable to avoid confusing sed.
|
# The option is referenced via a variable to avoid confusing sed.
|
lt_compile=`echo "$ac_compile" | $SED \
|
lt_compile=`echo "$ac_compile" | $SED \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:7243: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:7477: $lt_compile\"" >&5)
|
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
ac_status=$?
|
ac_status=$?
|
cat conftest.err >&5
|
cat conftest.err >&5
|
echo "$as_me:7247: \$? = $ac_status" >&5
|
echo "$as_me:7481: \$? = $ac_status" >&5
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Line 7343... |
Line 7577... |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
lt_compile=`echo "$ac_compile" | $SED \
|
lt_compile=`echo "$ac_compile" | $SED \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:7348: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:7582: $lt_compile\"" >&5)
|
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
ac_status=$?
|
ac_status=$?
|
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
echo "$as_me:7352: \$? = $ac_status" >&5
|
echo "$as_me:7586: \$? = $ac_status" >&5
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
then
|
then
|
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
# So say no if there are warnings
|
# So say no if there are warnings
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
Line 7398... |
Line 7632... |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
lt_compile=`echo "$ac_compile" | $SED \
|
lt_compile=`echo "$ac_compile" | $SED \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:7403: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:7637: $lt_compile\"" >&5)
|
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
ac_status=$?
|
ac_status=$?
|
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
echo "$as_me:7407: \$? = $ac_status" >&5
|
echo "$as_me:7641: \$? = $ac_status" >&5
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
then
|
then
|
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
# So say no if there are warnings
|
# So say no if there are warnings
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
Line 10201... |
Line 10435... |
lt_cv_dlopen_self=cross
|
lt_cv_dlopen_self=cross
|
else
|
else
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
#line 10206 "configure"
|
#line 10440 "configure"
|
#include "confdefs.h"
|
#include "confdefs.h"
|
|
|
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
#include
|
#include
|
#endif
|
#endif
|
Line 10297... |
Line 10531... |
lt_cv_dlopen_self_static=cross
|
lt_cv_dlopen_self_static=cross
|
else
|
else
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
#line 10302 "configure"
|
#line 10536 "configure"
|
#include "confdefs.h"
|
#include "confdefs.h"
|
|
|
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
#include
|
#include
|
#endif
|
#endif
|
Line 11203... |
Line 11437... |
am__fastdepCC_FALSE=
|
am__fastdepCC_FALSE=
|
fi
|
fi
|
|
|
|
|
|
|
|
|
ac_config_headers="$ac_config_headers config.h"
|
ac_config_headers="$ac_config_headers config.h"
|
|
|
|
|
|
|
|
|
Line 12365... |
Line 12600... |
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
fi
|
fi
|
|
|
|
|
|
|
# This is GNU compliant source and uses GNU libraries
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _GNU_SOURCE 1
|
|
_ACEOF
|
|
|
|
|
|
|
|
# Set default for ARFLAGS, since autoconf does not have a macro for it.
|
# Set default for ARFLAGS, since autoconf does not have a macro for it.
|
# This allows people to set it when running configure or make
|
# This allows people to set it when running configure or make
|
test -n "$ARFLAGS" || ARFLAGS="cr"
|
test -n "$ARFLAGS" || ARFLAGS="cr"
|
|
|
MAKE_SHELL=/bin/sh
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
$as_echo_n "checking return type of signal handlers... " >&6; }
|
$as_echo_n "checking return type of signal handlers... " >&6; }
|
if test "${ac_cv_type_signal+set}" = set; then
|
if test "${ac_cv_type_signal+set}" = set; then
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
Line 17412... |
Line 17635... |
case "$host_os" in
|
case "$host_os" in
|
solaris*) LIBS="-lsocket -lnsl" ;;
|
solaris*) LIBS="-lsocket -lnsl" ;;
|
esac
|
esac
|
|
|
# define options
|
# define options
|
|
|
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
|
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
|
$as_echo_n "checking whether to enable profiling... " >&6; }
|
$as_echo_n "checking whether to enable profiling... " >&6; }
|
# Check whether --enable-profiling was given.
|
# Check whether --enable-profiling was given.
|
if test "${enable_profiling+set}" = set; then
|
if test "${enable_profiling+set}" = set; then
|
enableval=$enable_profiling;
|
enableval=$enable_profiling;
|