mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Binutils/GCC: Add clang LTO support to AR, NM and RANLIB
Add CLANG_PLUGIN_FILE to find the clang plugin file and pass it to --plugin for ar, nm and ranlib so that binutils can be built with clang LTO. Run CLANG_PLUGIN_FILE before GCC_PLUGIN_OPTION since GCC_PLUGIN_OPTION may return the wrong PLUGIN_OPTION with clang. PR binutils/33470 * Makefile.in: Regenerated. * Makefile.tpl (NM): Add @NM_PLUGIN_OPTION@. * configure: Regenerated. * configure.ac: Include config/clang-plugin.m4. Run CLANG_PLUGIN_FILE before GCC_PLUGIN_OPTION to set PLUGIN_OPTION. Set and subst NM_PLUGIN_OPTION. * libtool.m4 (_LT_CMD_OLD_ARCHIVE): Use CLANG_PLUGIN_FILE and GCC_PLUGIN_OPTION. config/ PR binutils/33470 * clang-plugin.m4: New file. libbacktrace/ PR binutils/33470 * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. libiberty/ PR binutils/33470 * aclocal.m4: Regenerated. * configure: Likewise. * configure.ac: Move GCC_PLUGIN_OPTION after GCC_NO_EXECUTABLES. Run CLANG_PLUGIN_FILE before GCC_PLUGIN_OPTION to set PLUGIN_OPTION. Don't add the redundant --plugin option. zlib/ PR binutils/33470 * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
@@ -427,7 +427,7 @@ DLLTOOL = @DLLTOOL@
|
|||||||
DSYMUTIL = @DSYMUTIL@
|
DSYMUTIL = @DSYMUTIL@
|
||||||
LD = @LD@
|
LD = @LD@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
NM = @NM@
|
NM = @NM@ @NM_PLUGIN_OPTION@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OTOOL = @OTOOL@
|
OTOOL = @OTOOL@
|
||||||
RANLIB = @RANLIB@ @RANLIB_PLUGIN_OPTION@
|
RANLIB = @RANLIB@ @RANLIB_PLUGIN_OPTION@
|
||||||
|
|||||||
@@ -430,7 +430,7 @@ DLLTOOL = @DLLTOOL@
|
|||||||
DSYMUTIL = @DSYMUTIL@
|
DSYMUTIL = @DSYMUTIL@
|
||||||
LD = @LD@
|
LD = @LD@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
NM = @NM@
|
NM = @NM@ @NM_PLUGIN_OPTION@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OTOOL = @OTOOL@
|
OTOOL = @OTOOL@
|
||||||
RANLIB = @RANLIB@ @RANLIB_PLUGIN_OPTION@
|
RANLIB = @RANLIB@ @RANLIB_PLUGIN_OPTION@
|
||||||
|
|||||||
62
config/clang-plugin.m4
Normal file
62
config/clang-plugin.m4
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
# clang-plugin.m4 -*- Autoconf -*-
|
||||||
|
# Check clang plugin file.
|
||||||
|
|
||||||
|
dnl Copyright (C) 2025 Free Software Foundation, Inc.
|
||||||
|
dnl This file is free software, distributed under the terms of the GNU
|
||||||
|
dnl General Public License. As a special exception to the GNU General
|
||||||
|
dnl Public License, this file may be distributed as part of a program
|
||||||
|
dnl that contains a configuration script generated by Autoconf, under
|
||||||
|
dnl the same distribution terms as the rest of that program.
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl CLANG_PLUGIN_FILE
|
||||||
|
dnl (SHELL-CODE_HANDLER)
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([CLANG_PLUGIN_FILE],[dnl
|
||||||
|
AC_CACHE_CHECK([for clang], clang_cv_is_clang, [
|
||||||
|
AC_EGREP_CPP(yes, [
|
||||||
|
#ifdef __clang__
|
||||||
|
yes
|
||||||
|
#endif
|
||||||
|
], clang_cv_is_clang=yes, clang_cv_is_clang=no)])
|
||||||
|
plugin_file=
|
||||||
|
if test $clang_cv_is_clang = yes; then
|
||||||
|
AC_MSG_CHECKING([for clang plugin file])
|
||||||
|
plugin_names="LLVMgold.so"
|
||||||
|
for plugin in $plugin_names; do
|
||||||
|
plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
|
||||||
|
if test x$plugin_file = x$plugin; then
|
||||||
|
AC_CHECK_TOOL(LLVM_CONFIG, llvm-config)
|
||||||
|
if test "$?" != 0; then
|
||||||
|
AC_MSG_ERROR([Required tool 'llvm-config' not found on PATH.])
|
||||||
|
fi
|
||||||
|
clang_lib_dir=`$LLVM_CONFIG --libdir`
|
||||||
|
if test -f $clang_lib_dir/$plugin; then
|
||||||
|
plugin_file=$clang_lib_dir/$plugin
|
||||||
|
fi
|
||||||
|
if test x$plugin_file != x$plugin; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -z $plugin_file; then
|
||||||
|
AC_MSG_ERROR([Couldn't find clang plugin file for $CC.])
|
||||||
|
fi
|
||||||
|
dnl Check if ${AR} $plugin_option rc works.
|
||||||
|
AC_CHECK_TOOL(AR, ar)
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
AC_MSG_ERROR([Required archive tool 'ar' not found on PATH.])
|
||||||
|
fi
|
||||||
|
plugin_option="--plugin $plugin_file"
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
AC_MSG_WARN([Failed: $AR $plugin_option rc])
|
||||||
|
plugin_file=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
AC_MSG_RESULT($plugin_file)
|
||||||
|
fi
|
||||||
|
$1="$plugin_file"
|
||||||
|
])
|
||||||
574
configure
vendored
574
configure
vendored
@@ -621,7 +621,12 @@ GCC_FOR_TARGET
|
|||||||
CXX_FOR_TARGET
|
CXX_FOR_TARGET
|
||||||
CC_FOR_TARGET
|
CC_FOR_TARGET
|
||||||
RANLIB_PLUGIN_OPTION
|
RANLIB_PLUGIN_OPTION
|
||||||
|
NM_PLUGIN_OPTION
|
||||||
AR_PLUGIN_OPTION
|
AR_PLUGIN_OPTION
|
||||||
|
LLVM_CONFIG
|
||||||
|
EGREP
|
||||||
|
GREP
|
||||||
|
CPP
|
||||||
PKG_CONFIG_PATH
|
PKG_CONFIG_PATH
|
||||||
GDCFLAGS
|
GDCFLAGS
|
||||||
READELF
|
READELF
|
||||||
@@ -891,6 +896,7 @@ OBJCOPY
|
|||||||
OBJDUMP
|
OBJDUMP
|
||||||
OTOOL
|
OTOOL
|
||||||
READELF
|
READELF
|
||||||
|
CPP
|
||||||
CC_FOR_TARGET
|
CC_FOR_TARGET
|
||||||
CXX_FOR_TARGET
|
CXX_FOR_TARGET
|
||||||
GCC_FOR_TARGET
|
GCC_FOR_TARGET
|
||||||
@@ -1690,6 +1696,7 @@ Some influential environment variables:
|
|||||||
OBJDUMP OBJDUMP for the host
|
OBJDUMP OBJDUMP for the host
|
||||||
OTOOL OTOOL for the host
|
OTOOL OTOOL for the host
|
||||||
READELF READELF for the host
|
READELF READELF for the host
|
||||||
|
CPP C preprocessor
|
||||||
CC_FOR_TARGET
|
CC_FOR_TARGET
|
||||||
CC for the target
|
CC for the target
|
||||||
CXX_FOR_TARGET
|
CXX_FOR_TARGET
|
||||||
@@ -1982,6 +1989,43 @@ fi
|
|||||||
as_fn_set_status $ac_retval
|
as_fn_set_status $ac_retval
|
||||||
|
|
||||||
} # ac_fn_c_try_link
|
} # ac_fn_c_try_link
|
||||||
|
|
||||||
|
# ac_fn_c_try_cpp LINENO
|
||||||
|
# ----------------------
|
||||||
|
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
||||||
|
ac_fn_c_try_cpp ()
|
||||||
|
{
|
||||||
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
||||||
|
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:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||||
|
$as_echo "$ac_try_echo"; } >&5
|
||||||
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
||||||
|
ac_status=$?
|
||||||
|
if test -s conftest.err; then
|
||||||
|
grep -v '^ *+' conftest.err >conftest.er1
|
||||||
|
cat conftest.er1 >&5
|
||||||
|
mv -f conftest.er1 conftest.err
|
||||||
|
fi
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; } > conftest.i && {
|
||||||
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
||||||
|
test ! -s conftest.err
|
||||||
|
}; then :
|
||||||
|
ac_retval=0
|
||||||
|
else
|
||||||
|
$as_echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
ac_retval=1
|
||||||
|
fi
|
||||||
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
||||||
|
as_fn_set_status $ac_retval
|
||||||
|
|
||||||
|
} # ac_fn_c_try_cpp
|
||||||
cat >config.log <<_ACEOF
|
cat >config.log <<_ACEOF
|
||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
@@ -14104,7 +14148,529 @@ fi
|
|||||||
GDCFLAGS=${GDCFLAGS-${CFLAGS}}
|
GDCFLAGS=${GDCFLAGS-${CFLAGS}}
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
|
# Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
|
||||||
|
# wrong PLUGIN_OPTION with clang.
|
||||||
|
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:${as_lineno-$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 ${ac_cv_prog_CPP+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
# Double quotes because CPP needs to be expanded
|
||||||
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
||||||
|
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 <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
|
# <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#ifdef __STDC__
|
||||||
|
# include <limits.h>
|
||||||
|
#else
|
||||||
|
# include <assert.h>
|
||||||
|
#endif
|
||||||
|
Syntax error
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
# Broken: fails on valid input.
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
# OK, works on sane cases. Now check whether nonexistent headers
|
||||||
|
# can be detected and how.
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <ac_nonexistent.h>
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
# Broken: success on invalid input.
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
# Passes both tests.
|
||||||
|
ac_preproc_ok=:
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
done
|
||||||
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
||||||
|
rm -f conftest.i 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:${as_lineno-$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 <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
|
# <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#ifdef __STDC__
|
||||||
|
# include <limits.h>
|
||||||
|
#else
|
||||||
|
# include <assert.h>
|
||||||
|
#endif
|
||||||
|
Syntax error
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
# Broken: fails on valid input.
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
# OK, works on sane cases. Now check whether nonexistent headers
|
||||||
|
# can be detected and how.
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <ac_nonexistent.h>
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
# Broken: success on invalid input.
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
# Passes both tests.
|
||||||
|
ac_preproc_ok=:
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
done
|
||||||
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
||||||
|
rm -f conftest.i conftest.err conftest.$ac_ext
|
||||||
|
if $ac_preproc_ok; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
||||||
|
See \`config.log' for more details" "$LINENO" 5; }
|
||||||
|
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:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
||||||
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
||||||
|
if ${ac_cv_path_GREP+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -z "$GREP"; then
|
||||||
|
ac_path_GREP_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$PATH_SEPARATOR/usr/xpg4/bin
|
||||||
|
do
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
test -z "$as_dir" && as_dir=.
|
||||||
|
for ac_prog in grep ggrep; do
|
||||||
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||||
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
||||||
|
as_fn_executable_p "$ac_path_GREP" || continue
|
||||||
|
# Check for GNU ac_path_GREP and select it if it is found.
|
||||||
|
# Check for GNU $ac_path_GREP
|
||||||
|
case `"$ac_path_GREP" --version 2>&1` in
|
||||||
|
*GNU*)
|
||||||
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl"
|
||||||
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
||||||
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
||||||
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
||||||
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
||||||
|
# Best one so far, save it but keep looking for a better one
|
||||||
|
ac_cv_path_GREP="$ac_path_GREP"
|
||||||
|
ac_path_GREP_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
|
||||||
|
|
||||||
|
$ac_path_GREP_found && break 3
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
if test -z "$ac_cv_path_GREP"; then
|
||||||
|
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
ac_cv_path_GREP=$GREP
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
||||||
|
$as_echo "$ac_cv_path_GREP" >&6; }
|
||||||
|
GREP="$ac_cv_path_GREP"
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
||||||
|
$as_echo_n "checking for egrep... " >&6; }
|
||||||
|
if ${ac_cv_path_EGREP+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
||||||
|
then ac_cv_path_EGREP="$GREP -E"
|
||||||
|
else
|
||||||
|
if test -z "$EGREP"; then
|
||||||
|
ac_path_EGREP_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$PATH_SEPARATOR/usr/xpg4/bin
|
||||||
|
do
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
test -z "$as_dir" && as_dir=.
|
||||||
|
for ac_prog in egrep; do
|
||||||
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||||
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
||||||
|
as_fn_executable_p "$ac_path_EGREP" || continue
|
||||||
|
# Check for GNU ac_path_EGREP and select it if it is found.
|
||||||
|
# Check for GNU $ac_path_EGREP
|
||||||
|
case `"$ac_path_EGREP" --version 2>&1` in
|
||||||
|
*GNU*)
|
||||||
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
|
||||||
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
||||||
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
||||||
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
||||||
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
||||||
|
# Best one so far, save it but keep looking for a better one
|
||||||
|
ac_cv_path_EGREP="$ac_path_EGREP"
|
||||||
|
ac_path_EGREP_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
|
||||||
|
|
||||||
|
$ac_path_EGREP_found && break 3
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
if test -z "$ac_cv_path_EGREP"; then
|
||||||
|
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
ac_cv_path_EGREP=$EGREP
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
||||||
|
$as_echo "$ac_cv_path_EGREP" >&6; }
|
||||||
|
EGREP="$ac_cv_path_EGREP"
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
|
||||||
|
$as_echo_n "checking for clang... " >&6; }
|
||||||
|
if ${clang_cv_is_clang+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
yes
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_ACEOF
|
||||||
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
|
$EGREP "yes" >/dev/null 2>&1; then :
|
||||||
|
clang_cv_is_clang=yes
|
||||||
|
else
|
||||||
|
clang_cv_is_clang=no
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
|
||||||
|
$as_echo "$clang_cv_is_clang" >&6; }
|
||||||
|
plugin_file=
|
||||||
|
if test $clang_cv_is_clang = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
|
||||||
|
$as_echo_n "checking for clang plugin file... " >&6; }
|
||||||
|
plugin_names="LLVMgold.so"
|
||||||
|
for plugin in $plugin_names; do
|
||||||
|
plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
|
||||||
|
if test x$plugin_file = x$plugin; then
|
||||||
|
if test -n "$ac_tool_prefix"; then
|
||||||
|
# Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
|
||||||
|
set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_LLVM_CONFIG"; then
|
||||||
|
ac_ct_LLVM_CONFIG=$LLVM_CONFIG
|
||||||
|
# Extract the first word of "llvm-config", so it can be a program name with args.
|
||||||
|
set dummy llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$ac_ct_LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_LLVM_CONFIG" = x; then
|
||||||
|
LLVM_CONFIG=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
LLVM_CONFIG=$ac_ct_LLVM_CONFIG
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$?" != 0; then
|
||||||
|
as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
clang_lib_dir=`$LLVM_CONFIG --libdir`
|
||||||
|
if test -f $clang_lib_dir/$plugin; then
|
||||||
|
plugin_file=$clang_lib_dir/$plugin
|
||||||
|
fi
|
||||||
|
if test x$plugin_file != x$plugin; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -z $plugin_file; then
|
||||||
|
as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
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.
|
||||||
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AR=$ac_cv_prog_AR
|
||||||
|
if test -n "$AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
||||||
|
$as_echo "$AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_AR"; then
|
||||||
|
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
||||||
|
$as_echo "$ac_ct_AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_AR" = x; then
|
||||||
|
AR=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
else
|
||||||
|
AR="$ac_cv_prog_AR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
plugin_option="--plugin $plugin_file"
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
||||||
|
plugin_file=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
|
||||||
|
$as_echo "$plugin_file" >&6; }
|
||||||
|
fi
|
||||||
|
PLUGIN_FILE="$plugin_file"
|
||||||
|
|
||||||
|
if test -n "$PLUGIN_FILE"; then
|
||||||
|
PLUGIN_OPTION="--plugin $PLUGIN_FILE"
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
|
||||||
$as_echo_n "checking for -plugin option... " >&6; }
|
$as_echo_n "checking for -plugin option... " >&6; }
|
||||||
|
|
||||||
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
||||||
@@ -14231,12 +14797,17 @@ else
|
|||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
AR_PLUGIN_OPTION=
|
AR_PLUGIN_OPTION=
|
||||||
|
NM_PLUGIN_OPTION=
|
||||||
RANLIB_PLUGIN_OPTION=
|
RANLIB_PLUGIN_OPTION=
|
||||||
if test -n "$PLUGIN_OPTION"; then
|
if test -n "$PLUGIN_OPTION"; then
|
||||||
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
||||||
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
fi
|
fi
|
||||||
|
if $NM --help 2>&1 | grep -q "\--plugin"; then
|
||||||
|
NM_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
|
fi
|
||||||
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
||||||
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
fi
|
fi
|
||||||
@@ -14244,6 +14815,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Target tools.
|
# Target tools.
|
||||||
|
|
||||||
# Check whether --with-build-time-tools was given.
|
# Check whether --with-build-time-tools was given.
|
||||||
|
|||||||
15
configure.ac
15
configure.ac
@@ -24,6 +24,7 @@ m4_include(config/override.m4)
|
|||||||
m4_include(config/proginstall.m4)
|
m4_include(config/proginstall.m4)
|
||||||
m4_include(config/elf.m4)
|
m4_include(config/elf.m4)
|
||||||
m4_include(config/ax_cxx_compile_stdcxx.m4)
|
m4_include(config/ax_cxx_compile_stdcxx.m4)
|
||||||
|
m4_include(config/clang-plugin.m4)
|
||||||
m4_include(config/gcc-plugin.m4)
|
m4_include(config/gcc-plugin.m4)
|
||||||
m4_include([libtool.m4])
|
m4_include([libtool.m4])
|
||||||
m4_include([ltoptions.m4])
|
m4_include([ltoptions.m4])
|
||||||
@@ -3905,18 +3906,30 @@ AC_SUBST(GDCFLAGS)
|
|||||||
GDCFLAGS=${GDCFLAGS-${CFLAGS}}
|
GDCFLAGS=${GDCFLAGS-${CFLAGS}}
|
||||||
AC_SUBST(PKG_CONFIG_PATH)
|
AC_SUBST(PKG_CONFIG_PATH)
|
||||||
|
|
||||||
GCC_PLUGIN_OPTION(PLUGIN_OPTION)
|
# Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
|
||||||
|
# wrong PLUGIN_OPTION with clang.
|
||||||
|
CLANG_PLUGIN_FILE(PLUGIN_FILE)
|
||||||
|
if test -n "$PLUGIN_FILE"; then
|
||||||
|
PLUGIN_OPTION="--plugin $PLUGIN_FILE"
|
||||||
|
else
|
||||||
|
GCC_PLUGIN_OPTION(PLUGIN_OPTION)
|
||||||
|
fi
|
||||||
AR_PLUGIN_OPTION=
|
AR_PLUGIN_OPTION=
|
||||||
|
NM_PLUGIN_OPTION=
|
||||||
RANLIB_PLUGIN_OPTION=
|
RANLIB_PLUGIN_OPTION=
|
||||||
if test -n "$PLUGIN_OPTION"; then
|
if test -n "$PLUGIN_OPTION"; then
|
||||||
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
||||||
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
fi
|
fi
|
||||||
|
if $NM --help 2>&1 | grep -q "\--plugin"; then
|
||||||
|
NM_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
|
fi
|
||||||
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
||||||
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AC_SUBST(AR_PLUGIN_OPTION)
|
AC_SUBST(AR_PLUGIN_OPTION)
|
||||||
|
AC_SUBST(NM_PLUGIN_OPTION)
|
||||||
AC_SUBST(RANLIB_PLUGIN_OPTION)
|
AC_SUBST(RANLIB_PLUGIN_OPTION)
|
||||||
|
|
||||||
# Target tools.
|
# Target tools.
|
||||||
|
|||||||
@@ -169,7 +169,9 @@ TESTS = $(am__append_4) $(MAKETESTS) $(am__EXEEXT_16)
|
|||||||
subdir = .
|
subdir = .
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/../config/cet.m4 \
|
am__aclocal_m4_deps = $(top_srcdir)/../config/cet.m4 \
|
||||||
|
$(top_srcdir)/../config/clang-plugin.m4 \
|
||||||
$(top_srcdir)/../config/enable.m4 \
|
$(top_srcdir)/../config/enable.m4 \
|
||||||
|
$(top_srcdir)/../config/gcc-plugin.m4 \
|
||||||
$(top_srcdir)/../config/lead-dot.m4 \
|
$(top_srcdir)/../config/lead-dot.m4 \
|
||||||
$(top_srcdir)/../config/multi.m4 \
|
$(top_srcdir)/../config/multi.m4 \
|
||||||
$(top_srcdir)/../config/override.m4 \
|
$(top_srcdir)/../config/override.m4 \
|
||||||
@@ -886,6 +888,7 @@ LIBOBJS = @LIBOBJS@
|
|||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LLVM_CONFIG = @LLVM_CONFIG@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAINT = @MAINT@
|
MAINT = @MAINT@
|
||||||
|
|||||||
2
libbacktrace/aclocal.m4
vendored
2
libbacktrace/aclocal.m4
vendored
@@ -853,7 +853,9 @@ AC_SUBST([am__untar])
|
|||||||
]) # _AM_PROG_TAR
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
m4_include([../config/cet.m4])
|
m4_include([../config/cet.m4])
|
||||||
|
m4_include([../config/clang-plugin.m4])
|
||||||
m4_include([../config/enable.m4])
|
m4_include([../config/enable.m4])
|
||||||
|
m4_include([../config/gcc-plugin.m4])
|
||||||
m4_include([../config/lead-dot.m4])
|
m4_include([../config/lead-dot.m4])
|
||||||
m4_include([../config/multi.m4])
|
m4_include([../config/multi.m4])
|
||||||
m4_include([../config/override.m4])
|
m4_include([../config/override.m4])
|
||||||
|
|||||||
397
libbacktrace/configure
vendored
397
libbacktrace/configure
vendored
@@ -687,6 +687,7 @@ LIPO
|
|||||||
NMEDIT
|
NMEDIT
|
||||||
DSYMUTIL
|
DSYMUTIL
|
||||||
AR
|
AR
|
||||||
|
LLVM_CONFIG
|
||||||
OBJDUMP
|
OBJDUMP
|
||||||
LN_S
|
LN_S
|
||||||
NM
|
NM
|
||||||
@@ -6595,8 +6596,266 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
plugin_option=
|
|
||||||
|
# Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
|
||||||
|
# wrong plugin_option with clang.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
|
||||||
|
$as_echo_n "checking for clang... " >&6; }
|
||||||
|
if ${clang_cv_is_clang+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
yes
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_ACEOF
|
||||||
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
|
$EGREP "yes" >/dev/null 2>&1; then :
|
||||||
|
clang_cv_is_clang=yes
|
||||||
|
else
|
||||||
|
clang_cv_is_clang=no
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
|
||||||
|
$as_echo "$clang_cv_is_clang" >&6; }
|
||||||
|
plugin_file=
|
||||||
|
if test $clang_cv_is_clang = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
|
||||||
|
$as_echo_n "checking for clang plugin file... " >&6; }
|
||||||
|
plugin_names="LLVMgold.so"
|
||||||
|
for plugin in $plugin_names; do
|
||||||
|
plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
|
||||||
|
if test x$plugin_file = x$plugin; then
|
||||||
|
if test -n "$ac_tool_prefix"; then
|
||||||
|
# Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
|
||||||
|
set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_LLVM_CONFIG"; then
|
||||||
|
ac_ct_LLVM_CONFIG=$LLVM_CONFIG
|
||||||
|
# Extract the first word of "llvm-config", so it can be a program name with args.
|
||||||
|
set dummy llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$ac_ct_LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_LLVM_CONFIG" = x; then
|
||||||
|
LLVM_CONFIG=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
LLVM_CONFIG=$ac_ct_LLVM_CONFIG
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$?" != 0; then
|
||||||
|
as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
clang_lib_dir=`$LLVM_CONFIG --libdir`
|
||||||
|
if test -f $clang_lib_dir/$plugin; then
|
||||||
|
plugin_file=$clang_lib_dir/$plugin
|
||||||
|
fi
|
||||||
|
if test x$plugin_file != x$plugin; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -z $plugin_file; then
|
||||||
|
as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
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.
|
||||||
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AR=$ac_cv_prog_AR
|
||||||
|
if test -n "$AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
||||||
|
$as_echo "$AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_AR"; then
|
||||||
|
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
||||||
|
$as_echo "$ac_ct_AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_AR" = x; then
|
||||||
|
AR=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
else
|
||||||
|
AR="$ac_cv_prog_AR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
plugin_option="--plugin $plugin_file"
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
||||||
|
plugin_file=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
|
||||||
|
$as_echo "$plugin_file" >&6; }
|
||||||
|
fi
|
||||||
|
plugin_file="$plugin_file"
|
||||||
|
|
||||||
|
if test -n "$plugin_file"; then
|
||||||
|
plugin_option="--plugin $plugin_file"
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
|
||||||
|
$as_echo_n "checking for -plugin option... " >&6; }
|
||||||
|
|
||||||
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
||||||
|
plugin_option=
|
||||||
for plugin in $plugin_names; do
|
for plugin in $plugin_names; do
|
||||||
plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
|
plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
|
||||||
if test x$plugin_so = x$plugin; then
|
if test x$plugin_so = x$plugin; then
|
||||||
@@ -6607,7 +6866,119 @@ for plugin in $plugin_names; do
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
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.
|
||||||
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AR=$ac_cv_prog_AR
|
||||||
|
if test -n "$AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
||||||
|
$as_echo "$AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_AR"; then
|
||||||
|
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
||||||
|
$as_echo "$ac_ct_AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_AR" = x; then
|
||||||
|
AR=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
else
|
||||||
|
AR="$ac_cv_prog_AR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
||||||
|
plugin_option=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
if test -n "$plugin_option"; then
|
||||||
|
plugin_option="$plugin_option"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
|
||||||
|
$as_echo "$plugin_option" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
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.
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
||||||
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
@@ -6702,17 +7073,15 @@ fi
|
|||||||
|
|
||||||
test -z "$AR" && AR=ar
|
test -z "$AR" && AR=ar
|
||||||
if test -n "$plugin_option"; then
|
if test -n "$plugin_option"; then
|
||||||
|
case "$AR" in
|
||||||
|
*"$plugin_option"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
||||||
touch conftest.c
|
|
||||||
$AR $plugin_option rc conftest.a conftest.c
|
|
||||||
if test "$?" != 0; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
||||||
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
||||||
else
|
|
||||||
AR="$AR $plugin_option"
|
AR="$AR $plugin_option"
|
||||||
fi
|
fi
|
||||||
rm -f conftest.*
|
;;
|
||||||
fi
|
esac
|
||||||
fi
|
fi
|
||||||
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
||||||
|
|
||||||
@@ -6919,9 +7288,15 @@ fi
|
|||||||
|
|
||||||
test -z "$RANLIB" && RANLIB=:
|
test -z "$RANLIB" && RANLIB=:
|
||||||
if test -n "$plugin_option" && test "$RANLIB" != ":"; then
|
if test -n "$plugin_option" && test "$RANLIB" != ":"; then
|
||||||
|
case "$RANLIB" in
|
||||||
|
*"$plugin_option"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
||||||
RANLIB="$RANLIB $plugin_option"
|
RANLIB="$RANLIB $plugin_option"
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -11578,7 +11953,7 @@ 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 11581 "configure"
|
#line 11956 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@@ -11684,7 +12059,7 @@ 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 11687 "configure"
|
#line 12062 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|||||||
1
libiberty/aclocal.m4
vendored
1
libiberty/aclocal.m4
vendored
@@ -14,6 +14,7 @@
|
|||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../config/acx.m4])
|
m4_include([../config/acx.m4])
|
||||||
m4_include([../config/cet.m4])
|
m4_include([../config/cet.m4])
|
||||||
|
m4_include([../config/clang-plugin.m4])
|
||||||
m4_include([../config/enable.m4])
|
m4_include([../config/enable.m4])
|
||||||
m4_include([../config/gcc-plugin.m4])
|
m4_include([../config/gcc-plugin.m4])
|
||||||
m4_include([../config/hwcaps.m4])
|
m4_include([../config/hwcaps.m4])
|
||||||
|
|||||||
548
libiberty/configure
vendored
548
libiberty/configure
vendored
@@ -640,6 +640,9 @@ INSTALL_PROGRAM
|
|||||||
OUTPUT_OPTION
|
OUTPUT_OPTION
|
||||||
NO_MINUS_C_MINUS_O
|
NO_MINUS_C_MINUS_O
|
||||||
ac_libiberty_warn_cflags
|
ac_libiberty_warn_cflags
|
||||||
|
RANLIB_PLUGIN_OPTION
|
||||||
|
AR_PLUGIN_OPTION
|
||||||
|
LLVM_CONFIG
|
||||||
EGREP
|
EGREP
|
||||||
GREP
|
GREP
|
||||||
CPP
|
CPP
|
||||||
@@ -650,8 +653,6 @@ CPPFLAGS
|
|||||||
LDFLAGS
|
LDFLAGS
|
||||||
CFLAGS
|
CFLAGS
|
||||||
CC
|
CC
|
||||||
RANLIB_PLUGIN_OPTION
|
|
||||||
AR_PLUGIN_OPTION
|
|
||||||
RANLIB
|
RANLIB
|
||||||
AR
|
AR
|
||||||
host_os
|
host_os
|
||||||
@@ -2947,144 +2948,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
|
|
||||||
$as_echo_n "checking for -plugin option... " >&6; }
|
|
||||||
|
|
||||||
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
||||||
plugin_option=
|
|
||||||
for plugin in $plugin_names; do
|
|
||||||
plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
|
|
||||||
if test x$plugin_so = x$plugin; then
|
|
||||||
plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
|
|
||||||
fi
|
|
||||||
if test x$plugin_so != x$plugin; then
|
|
||||||
plugin_option="--plugin $plugin_so"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
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.
|
|
||||||
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
||||||
$as_echo_n "checking for $ac_word... " >&6; }
|
|
||||||
if ${ac_cv_prog_AR+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
||||||
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AR=$ac_cv_prog_AR
|
|
||||||
if test -n "$AR"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
|
||||||
$as_echo "$AR" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
if test -z "$ac_cv_prog_AR"; then
|
|
||||||
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
||||||
$as_echo_n "checking for $ac_word... " >&6; }
|
|
||||||
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -n "$ac_ct_AR"; then
|
|
||||||
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
||||||
ac_cv_prog_ac_ct_AR="ar"
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
|
||||||
if test -n "$ac_ct_AR"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
|
||||||
$as_echo "$ac_ct_AR" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$ac_ct_AR" = x; then
|
|
||||||
AR=""
|
|
||||||
else
|
|
||||||
case $cross_compiling:$ac_tool_warned in
|
|
||||||
yes:)
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$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
|
|
||||||
else
|
|
||||||
AR="$ac_cv_prog_AR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "${AR}" = "" ; then
|
|
||||||
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
|
||||||
fi
|
|
||||||
touch conftest.c
|
|
||||||
${AR} $plugin_option rc conftest.a conftest.c
|
|
||||||
if test "$?" != 0; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
||||||
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
||||||
plugin_option=
|
|
||||||
fi
|
|
||||||
rm -f conftest.*
|
|
||||||
if test -n "$plugin_option"; then
|
|
||||||
PLUGIN_OPTION="$plugin_option"
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
|
|
||||||
$as_echo "$plugin_option" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -n "$PLUGIN_OPTION"; then
|
|
||||||
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
||||||
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
|
||||||
|
|
||||||
fi
|
|
||||||
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
|
||||||
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add --enable-multilib to configure.
|
# Add --enable-multilib to configure.
|
||||||
# Default to --enable-multilib
|
# Default to --enable-multilib
|
||||||
# Check whether --enable-multilib was given.
|
# Check whether --enable-multilib was given.
|
||||||
@@ -4616,6 +4479,411 @@ fi
|
|||||||
|
|
||||||
ac_c_preproc_warn_flag=yes
|
ac_c_preproc_warn_flag=yes
|
||||||
|
|
||||||
|
# Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
|
||||||
|
# wrong PLUGIN_OPTION with clang.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
|
||||||
|
$as_echo_n "checking for clang... " >&6; }
|
||||||
|
if ${clang_cv_is_clang+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
yes
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_ACEOF
|
||||||
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
|
$EGREP "yes" >/dev/null 2>&1; then :
|
||||||
|
clang_cv_is_clang=yes
|
||||||
|
else
|
||||||
|
clang_cv_is_clang=no
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
|
||||||
|
$as_echo "$clang_cv_is_clang" >&6; }
|
||||||
|
plugin_file=
|
||||||
|
if test $clang_cv_is_clang = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
|
||||||
|
$as_echo_n "checking for clang plugin file... " >&6; }
|
||||||
|
plugin_names="LLVMgold.so"
|
||||||
|
for plugin in $plugin_names; do
|
||||||
|
plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
|
||||||
|
if test x$plugin_file = x$plugin; then
|
||||||
|
if test -n "$ac_tool_prefix"; then
|
||||||
|
# Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
|
||||||
|
set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_LLVM_CONFIG"; then
|
||||||
|
ac_ct_LLVM_CONFIG=$LLVM_CONFIG
|
||||||
|
# Extract the first word of "llvm-config", so it can be a program name with args.
|
||||||
|
set dummy llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$ac_ct_LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_LLVM_CONFIG" = x; then
|
||||||
|
LLVM_CONFIG=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
LLVM_CONFIG=$ac_ct_LLVM_CONFIG
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$?" != 0; then
|
||||||
|
as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
clang_lib_dir=`$LLVM_CONFIG --libdir`
|
||||||
|
if test -f $clang_lib_dir/$plugin; then
|
||||||
|
plugin_file=$clang_lib_dir/$plugin
|
||||||
|
fi
|
||||||
|
if test x$plugin_file != x$plugin; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -z $plugin_file; then
|
||||||
|
as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
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.
|
||||||
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AR=$ac_cv_prog_AR
|
||||||
|
if test -n "$AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
||||||
|
$as_echo "$AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_AR"; then
|
||||||
|
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
||||||
|
$as_echo "$ac_ct_AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_AR" = x; then
|
||||||
|
AR=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
else
|
||||||
|
AR="$ac_cv_prog_AR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
plugin_option="--plugin $plugin_file"
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
||||||
|
plugin_file=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
|
||||||
|
$as_echo "$plugin_file" >&6; }
|
||||||
|
fi
|
||||||
|
PLUGIN_FILE="$plugin_file"
|
||||||
|
|
||||||
|
if test -n "$PLUGIN_FILE"; then
|
||||||
|
PLUGIN_OPTION="--plugin $PLUGIN_FILE"
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
|
||||||
|
$as_echo_n "checking for -plugin option... " >&6; }
|
||||||
|
|
||||||
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
||||||
|
plugin_option=
|
||||||
|
for plugin in $plugin_names; do
|
||||||
|
plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
|
||||||
|
if test x$plugin_so = x$plugin; then
|
||||||
|
plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
|
||||||
|
fi
|
||||||
|
if test x$plugin_so != x$plugin; then
|
||||||
|
plugin_option="--plugin $plugin_so"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
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.
|
||||||
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AR=$ac_cv_prog_AR
|
||||||
|
if test -n "$AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
||||||
|
$as_echo "$AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_AR"; then
|
||||||
|
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
||||||
|
$as_echo "$ac_ct_AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_AR" = x; then
|
||||||
|
AR=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
else
|
||||||
|
AR="$ac_cv_prog_AR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
||||||
|
plugin_option=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
if test -n "$plugin_option"; then
|
||||||
|
PLUGIN_OPTION="$plugin_option"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
|
||||||
|
$as_echo "$plugin_option" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -n "$PLUGIN_OPTION"; then
|
||||||
|
case "$AR" in
|
||||||
|
*"$PLUGIN_OPTION"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
||||||
|
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
|
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$RANLIB" in
|
||||||
|
*"$PLUGIN_OPTION"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
||||||
|
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
|
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
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'
|
||||||
|
|||||||
@@ -114,18 +114,6 @@ dnl to call AC_CHECK_PROG.
|
|||||||
AC_CHECK_TOOL(AR, ar)
|
AC_CHECK_TOOL(AR, ar)
|
||||||
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
||||||
|
|
||||||
GCC_PLUGIN_OPTION(PLUGIN_OPTION)
|
|
||||||
if test -n "$PLUGIN_OPTION"; then
|
|
||||||
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
||||||
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
|
||||||
AC_SUBST(AR_PLUGIN_OPTION)
|
|
||||||
fi
|
|
||||||
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
|
||||||
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
|
||||||
AC_SUBST(RANLIB_PLUGIN_OPTION)
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl When switching to automake, replace the following with AM_ENABLE_MULTILIB.
|
dnl When switching to automake, replace the following with AM_ENABLE_MULTILIB.
|
||||||
# Add --enable-multilib to configure.
|
# Add --enable-multilib to configure.
|
||||||
# Default to --enable-multilib
|
# Default to --enable-multilib
|
||||||
@@ -176,6 +164,37 @@ AC_USE_SYSTEM_EXTENSIONS
|
|||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
AC_PROG_CPP_WERROR
|
AC_PROG_CPP_WERROR
|
||||||
|
|
||||||
|
# Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
|
||||||
|
# wrong PLUGIN_OPTION with clang.
|
||||||
|
CLANG_PLUGIN_FILE(PLUGIN_FILE)
|
||||||
|
if test -n "$PLUGIN_FILE"; then
|
||||||
|
PLUGIN_OPTION="--plugin $PLUGIN_FILE"
|
||||||
|
else
|
||||||
|
GCC_PLUGIN_OPTION(PLUGIN_OPTION)
|
||||||
|
fi
|
||||||
|
if test -n "$PLUGIN_OPTION"; then
|
||||||
|
case "$AR" in
|
||||||
|
*"$PLUGIN_OPTION"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
||||||
|
AR_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
|
AC_SUBST(AR_PLUGIN_OPTION)
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$RANLIB" in
|
||||||
|
*"$PLUGIN_OPTION"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
||||||
|
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
|
||||||
|
AC_SUBST(RANLIB_PLUGIN_OPTION)
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wc++-compat \
|
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wc++-compat \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
-Wshadow=local], [ac_libiberty_warn_cflags])
|
-Wshadow=local], [ac_libiberty_warn_cflags])
|
||||||
|
|||||||
41
libtool.m4
vendored
41
libtool.m4
vendored
@@ -1325,32 +1325,27 @@ need_locks="$enable_libtool_lock"
|
|||||||
# _LT_CMD_OLD_ARCHIVE
|
# _LT_CMD_OLD_ARCHIVE
|
||||||
# -------------------
|
# -------------------
|
||||||
m4_defun([_LT_CMD_OLD_ARCHIVE],
|
m4_defun([_LT_CMD_OLD_ARCHIVE],
|
||||||
[plugin_option=
|
[
|
||||||
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
# Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
|
||||||
for plugin in $plugin_names; do
|
# wrong plugin_option with clang.
|
||||||
plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
|
CLANG_PLUGIN_FILE(plugin_file)
|
||||||
if test x$plugin_so = x$plugin; then
|
if test -n "$plugin_file"; then
|
||||||
plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
|
plugin_option="--plugin $plugin_file"
|
||||||
fi
|
else
|
||||||
if test x$plugin_so != x$plugin; then
|
GCC_PLUGIN_OPTION(plugin_option)
|
||||||
plugin_option="--plugin $plugin_so"
|
fi
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
AC_CHECK_TOOL(AR, ar, false)
|
AC_CHECK_TOOL(AR, ar, false)
|
||||||
test -z "$AR" && AR=ar
|
test -z "$AR" && AR=ar
|
||||||
if test -n "$plugin_option"; then
|
if test -n "$plugin_option"; then
|
||||||
|
case "$AR" in
|
||||||
|
*"$plugin_option"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
||||||
touch conftest.c
|
|
||||||
$AR $plugin_option rc conftest.a conftest.c
|
|
||||||
if test "$?" != 0; then
|
|
||||||
AC_MSG_WARN([Failed: $AR $plugin_option rc])
|
|
||||||
else
|
|
||||||
AR="$AR $plugin_option"
|
AR="$AR $plugin_option"
|
||||||
fi
|
fi
|
||||||
rm -f conftest.*
|
;;
|
||||||
fi
|
esac
|
||||||
fi
|
fi
|
||||||
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
||||||
_LT_DECL([], [AR], [1], [The archiver])
|
_LT_DECL([], [AR], [1], [The archiver])
|
||||||
@@ -1363,9 +1358,15 @@ _LT_DECL([], [STRIP], [1], [A symbol stripping program])
|
|||||||
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
||||||
test -z "$RANLIB" && RANLIB=:
|
test -z "$RANLIB" && RANLIB=:
|
||||||
if test -n "$plugin_option" && test "$RANLIB" != ":"; then
|
if test -n "$plugin_option" && test "$RANLIB" != ":"; then
|
||||||
|
case "$RANLIB" in
|
||||||
|
*"$plugin_option"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
||||||
RANLIB="$RANLIB $plugin_option"
|
RANLIB="$RANLIB $plugin_option"
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
_LT_DECL([], [RANLIB], [1],
|
_LT_DECL([], [RANLIB], [1],
|
||||||
[Commands used to install an old-style archive])
|
[Commands used to install an old-style archive])
|
||||||
|
|||||||
@@ -93,8 +93,10 @@ target_triplet = @target@
|
|||||||
subdir = .
|
subdir = .
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/../config/cet.m4 \
|
am__aclocal_m4_deps = $(top_srcdir)/../config/cet.m4 \
|
||||||
|
$(top_srcdir)/../config/clang-plugin.m4 \
|
||||||
$(top_srcdir)/../config/depstand.m4 \
|
$(top_srcdir)/../config/depstand.m4 \
|
||||||
$(top_srcdir)/../config/enable.m4 \
|
$(top_srcdir)/../config/enable.m4 \
|
||||||
|
$(top_srcdir)/../config/gcc-plugin.m4 \
|
||||||
$(top_srcdir)/../config/lead-dot.m4 \
|
$(top_srcdir)/../config/lead-dot.m4 \
|
||||||
$(top_srcdir)/../config/multi.m4 \
|
$(top_srcdir)/../config/multi.m4 \
|
||||||
$(top_srcdir)/../config/override.m4 \
|
$(top_srcdir)/../config/override.m4 \
|
||||||
@@ -305,6 +307,7 @@ LIBOBJS = @LIBOBJS@
|
|||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LLVM_CONFIG = @LLVM_CONFIG@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAINT = @MAINT@
|
MAINT = @MAINT@
|
||||||
|
|||||||
2
zlib/aclocal.m4
vendored
2
zlib/aclocal.m4
vendored
@@ -1168,8 +1168,10 @@ AC_SUBST([am__untar])
|
|||||||
]) # _AM_PROG_TAR
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
m4_include([../config/cet.m4])
|
m4_include([../config/cet.m4])
|
||||||
|
m4_include([../config/clang-plugin.m4])
|
||||||
m4_include([../config/depstand.m4])
|
m4_include([../config/depstand.m4])
|
||||||
m4_include([../config/enable.m4])
|
m4_include([../config/enable.m4])
|
||||||
|
m4_include([../config/gcc-plugin.m4])
|
||||||
m4_include([../config/lead-dot.m4])
|
m4_include([../config/lead-dot.m4])
|
||||||
m4_include([../config/multi.m4])
|
m4_include([../config/multi.m4])
|
||||||
m4_include([../config/override.m4])
|
m4_include([../config/override.m4])
|
||||||
|
|||||||
749
zlib/configure
vendored
749
zlib/configure
vendored
@@ -643,7 +643,6 @@ toolexeclibdir
|
|||||||
toolexecdir
|
toolexecdir
|
||||||
ENABLE_DARWIN_AT_RPATH_FALSE
|
ENABLE_DARWIN_AT_RPATH_FALSE
|
||||||
ENABLE_DARWIN_AT_RPATH_TRUE
|
ENABLE_DARWIN_AT_RPATH_TRUE
|
||||||
CPP
|
|
||||||
OTOOL64
|
OTOOL64
|
||||||
OTOOL
|
OTOOL
|
||||||
LIPO
|
LIPO
|
||||||
@@ -651,6 +650,8 @@ NMEDIT
|
|||||||
DSYMUTIL
|
DSYMUTIL
|
||||||
RANLIB
|
RANLIB
|
||||||
AR
|
AR
|
||||||
|
LLVM_CONFIG
|
||||||
|
CPP
|
||||||
OBJDUMP
|
OBJDUMP
|
||||||
LN_S
|
LN_S
|
||||||
NM
|
NM
|
||||||
@@ -1569,6 +1570,43 @@ fi
|
|||||||
|
|
||||||
} # ac_fn_c_try_compile
|
} # ac_fn_c_try_compile
|
||||||
|
|
||||||
|
# ac_fn_c_try_cpp LINENO
|
||||||
|
# ----------------------
|
||||||
|
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
||||||
|
ac_fn_c_try_cpp ()
|
||||||
|
{
|
||||||
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
||||||
|
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:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||||
|
$as_echo "$ac_try_echo"; } >&5
|
||||||
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
||||||
|
ac_status=$?
|
||||||
|
if test -s conftest.err; then
|
||||||
|
grep -v '^ *+' conftest.err >conftest.er1
|
||||||
|
cat conftest.er1 >&5
|
||||||
|
mv -f conftest.er1 conftest.err
|
||||||
|
fi
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; } > conftest.i && {
|
||||||
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
||||||
|
test ! -s conftest.err
|
||||||
|
}; then :
|
||||||
|
ac_retval=0
|
||||||
|
else
|
||||||
|
$as_echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
ac_retval=1
|
||||||
|
fi
|
||||||
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
||||||
|
as_fn_set_status $ac_retval
|
||||||
|
|
||||||
|
} # ac_fn_c_try_cpp
|
||||||
|
|
||||||
# ac_fn_c_try_link LINENO
|
# ac_fn_c_try_link LINENO
|
||||||
# -----------------------
|
# -----------------------
|
||||||
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
||||||
@@ -1646,43 +1684,6 @@ $as_echo "$ac_res" >&6; }
|
|||||||
|
|
||||||
} # ac_fn_c_check_header_compile
|
} # ac_fn_c_check_header_compile
|
||||||
|
|
||||||
# ac_fn_c_try_cpp LINENO
|
|
||||||
# ----------------------
|
|
||||||
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
|
||||||
ac_fn_c_try_cpp ()
|
|
||||||
{
|
|
||||||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
||||||
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:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
||||||
$as_echo "$ac_try_echo"; } >&5
|
|
||||||
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
|
||||||
ac_status=$?
|
|
||||||
if test -s conftest.err; then
|
|
||||||
grep -v '^ *+' conftest.err >conftest.er1
|
|
||||||
cat conftest.er1 >&5
|
|
||||||
mv -f conftest.er1 conftest.err
|
|
||||||
fi
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
||||||
test $ac_status = 0; } > conftest.i && {
|
|
||||||
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
||||||
test ! -s conftest.err
|
|
||||||
}; then :
|
|
||||||
ac_retval=0
|
|
||||||
else
|
|
||||||
$as_echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
ac_retval=1
|
|
||||||
fi
|
|
||||||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
||||||
as_fn_set_status $ac_retval
|
|
||||||
|
|
||||||
} # ac_fn_c_try_cpp
|
|
||||||
|
|
||||||
# ac_fn_c_try_run LINENO
|
# ac_fn_c_try_run LINENO
|
||||||
# ----------------------
|
# ----------------------
|
||||||
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
||||||
@@ -5520,8 +5521,404 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
plugin_option=
|
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:${as_lineno-$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 ${ac_cv_prog_CPP+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
# Double quotes because CPP needs to be expanded
|
||||||
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
||||||
|
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 <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
|
# <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#ifdef __STDC__
|
||||||
|
# include <limits.h>
|
||||||
|
#else
|
||||||
|
# include <assert.h>
|
||||||
|
#endif
|
||||||
|
Syntax error
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
# Broken: fails on valid input.
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
# OK, works on sane cases. Now check whether nonexistent headers
|
||||||
|
# can be detected and how.
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <ac_nonexistent.h>
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
# Broken: success on invalid input.
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
# Passes both tests.
|
||||||
|
ac_preproc_ok=:
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
done
|
||||||
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
||||||
|
rm -f conftest.i 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:${as_lineno-$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 <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
|
# <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#ifdef __STDC__
|
||||||
|
# include <limits.h>
|
||||||
|
#else
|
||||||
|
# include <assert.h>
|
||||||
|
#endif
|
||||||
|
Syntax error
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
# Broken: fails on valid input.
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
# OK, works on sane cases. Now check whether nonexistent headers
|
||||||
|
# can be detected and how.
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <ac_nonexistent.h>
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||||
|
# Broken: success on invalid input.
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
# Passes both tests.
|
||||||
|
ac_preproc_ok=:
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||||
|
|
||||||
|
done
|
||||||
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
||||||
|
rm -f conftest.i conftest.err conftest.$ac_ext
|
||||||
|
if $ac_preproc_ok; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
||||||
|
See \`config.log' for more details" "$LINENO" 5; }
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
|
||||||
|
# wrong plugin_option with clang.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
|
||||||
|
$as_echo_n "checking for clang... " >&6; }
|
||||||
|
if ${clang_cv_is_clang+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
yes
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_ACEOF
|
||||||
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
|
$EGREP "yes" >/dev/null 2>&1; then :
|
||||||
|
clang_cv_is_clang=yes
|
||||||
|
else
|
||||||
|
clang_cv_is_clang=no
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
|
||||||
|
$as_echo "$clang_cv_is_clang" >&6; }
|
||||||
|
plugin_file=
|
||||||
|
if test $clang_cv_is_clang = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
|
||||||
|
$as_echo_n "checking for clang plugin file... " >&6; }
|
||||||
|
plugin_names="LLVMgold.so"
|
||||||
|
for plugin in $plugin_names; do
|
||||||
|
plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
|
||||||
|
if test x$plugin_file = x$plugin; then
|
||||||
|
if test -n "$ac_tool_prefix"; then
|
||||||
|
# Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
|
||||||
|
set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
|
||||||
|
if test -n "$LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_LLVM_CONFIG"; then
|
||||||
|
ac_ct_LLVM_CONFIG=$LLVM_CONFIG
|
||||||
|
# Extract the first word of "llvm-config", so it can be a program name with args.
|
||||||
|
set dummy llvm-config; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG
|
||||||
|
if test -n "$ac_ct_LLVM_CONFIG"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5
|
||||||
|
$as_echo "$ac_ct_LLVM_CONFIG" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_LLVM_CONFIG" = x; then
|
||||||
|
LLVM_CONFIG=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
LLVM_CONFIG=$ac_ct_LLVM_CONFIG
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$?" != 0; then
|
||||||
|
as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
clang_lib_dir=`$LLVM_CONFIG --libdir`
|
||||||
|
if test -f $clang_lib_dir/$plugin; then
|
||||||
|
plugin_file=$clang_lib_dir/$plugin
|
||||||
|
fi
|
||||||
|
if test x$plugin_file != x$plugin; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -z $plugin_file; then
|
||||||
|
as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
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.
|
||||||
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AR=$ac_cv_prog_AR
|
||||||
|
if test -n "$AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
||||||
|
$as_echo "$AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_AR"; then
|
||||||
|
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
||||||
|
$as_echo "$ac_ct_AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_AR" = x; then
|
||||||
|
AR=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
else
|
||||||
|
AR="$ac_cv_prog_AR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
plugin_option="--plugin $plugin_file"
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
||||||
|
plugin_file=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
|
||||||
|
$as_echo "$plugin_file" >&6; }
|
||||||
|
fi
|
||||||
|
plugin_file="$plugin_file"
|
||||||
|
|
||||||
|
if test -n "$plugin_file"; then
|
||||||
|
plugin_option="--plugin $plugin_file"
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
|
||||||
|
$as_echo_n "checking for -plugin option... " >&6; }
|
||||||
|
|
||||||
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
||||||
|
plugin_option=
|
||||||
for plugin in $plugin_names; do
|
for plugin in $plugin_names; do
|
||||||
plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
|
plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
|
||||||
if test x$plugin_so = x$plugin; then
|
if test x$plugin_so = x$plugin; then
|
||||||
@@ -5532,7 +5929,119 @@ for plugin in $plugin_names; do
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
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.
|
||||||
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AR=$ac_cv_prog_AR
|
||||||
|
if test -n "$AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
||||||
|
$as_echo "$AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -z "$ac_cv_prog_AR"; then
|
||||||
|
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||||
|
ac_cv_prog_ac_ct_AR="ar"
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
||||||
|
if test -n "$ac_ct_AR"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
||||||
|
$as_echo "$ac_ct_AR" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ac_ct_AR" = x; then
|
||||||
|
AR=""
|
||||||
|
else
|
||||||
|
case $cross_compiling:$ac_tool_warned in
|
||||||
|
yes:)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$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
|
||||||
|
else
|
||||||
|
AR="$ac_cv_prog_AR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${AR}" = "" ; then
|
||||||
|
as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
touch conftest.c
|
||||||
|
${AR} $plugin_option rc conftest.a conftest.c
|
||||||
|
if test "$?" != 0; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
||||||
|
plugin_option=
|
||||||
|
fi
|
||||||
|
rm -f conftest.*
|
||||||
|
if test -n "$plugin_option"; then
|
||||||
|
plugin_option="$plugin_option"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
|
||||||
|
$as_echo "$plugin_option" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
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.
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
||||||
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
@@ -5627,17 +6136,15 @@ fi
|
|||||||
|
|
||||||
test -z "$AR" && AR=ar
|
test -z "$AR" && AR=ar
|
||||||
if test -n "$plugin_option"; then
|
if test -n "$plugin_option"; then
|
||||||
|
case "$AR" in
|
||||||
|
*"$plugin_option"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
if $AR --help 2>&1 | grep -q "\--plugin"; then
|
||||||
touch conftest.c
|
|
||||||
$AR $plugin_option rc conftest.a conftest.c
|
|
||||||
if test "$?" != 0; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
||||||
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
||||||
else
|
|
||||||
AR="$AR $plugin_option"
|
AR="$AR $plugin_option"
|
||||||
fi
|
fi
|
||||||
rm -f conftest.*
|
;;
|
||||||
fi
|
esac
|
||||||
fi
|
fi
|
||||||
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
||||||
|
|
||||||
@@ -5844,9 +6351,15 @@ fi
|
|||||||
|
|
||||||
test -z "$RANLIB" && RANLIB=:
|
test -z "$RANLIB" && RANLIB=:
|
||||||
if test -n "$plugin_option" && test "$RANLIB" != ":"; then
|
if test -n "$plugin_option" && test "$RANLIB" != ":"; then
|
||||||
|
case "$RANLIB" in
|
||||||
|
*"$plugin_option"*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
|
||||||
RANLIB="$RANLIB $plugin_option"
|
RANLIB="$RANLIB $plugin_option"
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -7004,144 +7517,6 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
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:${as_lineno-$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 ${ac_cv_prog_CPP+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
# Double quotes because CPP needs to be expanded
|
|
||||||
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
||||||
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 <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
||||||
# <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#ifdef __STDC__
|
|
||||||
# include <limits.h>
|
|
||||||
#else
|
|
||||||
# include <assert.h>
|
|
||||||
#endif
|
|
||||||
Syntax error
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
||||||
|
|
||||||
else
|
|
||||||
# Broken: fails on valid input.
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
||||||
|
|
||||||
# OK, works on sane cases. Now check whether nonexistent headers
|
|
||||||
# can be detected and how.
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <ac_nonexistent.h>
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
||||||
# Broken: success on invalid input.
|
|
||||||
continue
|
|
||||||
else
|
|
||||||
# Passes both tests.
|
|
||||||
ac_preproc_ok=:
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
||||||
|
|
||||||
done
|
|
||||||
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
||||||
rm -f conftest.i 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:${as_lineno-$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 <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
||||||
# <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#ifdef __STDC__
|
|
||||||
# include <limits.h>
|
|
||||||
#else
|
|
||||||
# include <assert.h>
|
|
||||||
#endif
|
|
||||||
Syntax error
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
||||||
|
|
||||||
else
|
|
||||||
# Broken: fails on valid input.
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
||||||
|
|
||||||
# OK, works on sane cases. Now check whether nonexistent headers
|
|
||||||
# can be detected and how.
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <ac_nonexistent.h>
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
|
||||||
# Broken: success on invalid input.
|
|
||||||
continue
|
|
||||||
else
|
|
||||||
# Passes both tests.
|
|
||||||
ac_preproc_ok=:
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
||||||
|
|
||||||
done
|
|
||||||
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
||||||
rm -f conftest.i conftest.err conftest.$ac_ext
|
|
||||||
if $ac_preproc_ok; then :
|
|
||||||
|
|
||||||
else
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
|
||||||
See \`config.log' for more details" "$LINENO" 5; }
|
|
||||||
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:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
||||||
$as_echo_n "checking for ANSI C header files... " >&6; }
|
$as_echo_n "checking for ANSI C header files... " >&6; }
|
||||||
if ${ac_cv_header_stdc+:} false; then :
|
if ${ac_cv_header_stdc+:} false; then :
|
||||||
@@ -10803,7 +11178,7 @@ 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 10806 "configure"
|
#line 11181 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@@ -10909,7 +11284,7 @@ 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 10912 "configure"
|
#line 11287 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|||||||
Reference in New Issue
Block a user