Fix configure test for "stack protector support in target C library".
* configure.ac (test_prefix, test_exec_prefix): Move setting from inside sysroot handling to before and outside it. * configure: Regenerate. From-SVN: r189345
This commit is contained in:
parent
515b994725
commit
755e0546bc
|
@ -1,3 +1,10 @@
|
|||
2012-07-07 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
Fix configure test for "stack protector support in target C library".
|
||||
* configure.ac (test_prefix, test_exec_prefix): Move setting from
|
||||
inside sysroot handling to before and outside it.
|
||||
* configure: Regenerate.
|
||||
|
||||
2012-07-06 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
PR bootstrap/52947
|
||||
|
|
|
@ -7236,6 +7236,17 @@ fi
|
|||
|
||||
|
||||
|
||||
if test "x$prefix" = xNONE; then
|
||||
test_prefix=/usr/local
|
||||
else
|
||||
test_prefix=$prefix
|
||||
fi
|
||||
if test "x$exec_prefix" = xNONE; then
|
||||
test_exec_prefix=$test_prefix
|
||||
else
|
||||
test_exec_prefix=$exec_prefix
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-sysroot was given.
|
||||
if test "${with_sysroot+set}" = set; then :
|
||||
|
@ -7248,16 +7259,6 @@ if test "${with_sysroot+set}" = set; then :
|
|||
TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
|
||||
CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
|
||||
|
||||
if test "x$prefix" = xNONE; then
|
||||
test_prefix=/usr/local
|
||||
else
|
||||
test_prefix=$prefix
|
||||
fi
|
||||
if test "x$exec_prefix" = xNONE; then
|
||||
test_exec_prefix=$test_prefix
|
||||
else
|
||||
test_exec_prefix=$exec_prefix
|
||||
fi
|
||||
case ${TARGET_SYSTEM_ROOT} in
|
||||
"${test_prefix}"|"${test_prefix}/"*|\
|
||||
"${test_exec_prefix}"|"${test_exec_prefix}/"*|\
|
||||
|
@ -17971,7 +17972,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 17974 "configure"
|
||||
#line 17975 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -18077,7 +18078,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 18080 "configure"
|
||||
#line 18081 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -26631,11 +26632,11 @@ if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
|
|||
if test "x$with_headers" != x; then
|
||||
target_header_dir=$with_headers
|
||||
elif test "x$with_sysroot" = x; then
|
||||
target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
|
||||
target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
|
||||
elif test "x$with_build_sysroot" != "x"; then
|
||||
target_header_dir="${with_build_sysroot}${native_system_header_dir}"
|
||||
elif test "x$with_sysroot" = xyes; then
|
||||
target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
|
||||
target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
|
||||
else
|
||||
target_header_dir="${with_sysroot}${native_system_header_dir}"
|
||||
fi
|
||||
|
|
|
@ -747,6 +747,17 @@ AC_ARG_WITH(build-sysroot,
|
|||
[SYSROOT_CFLAGS_FOR_TARGET=])
|
||||
AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)
|
||||
|
||||
if test "x$prefix" = xNONE; then
|
||||
test_prefix=/usr/local
|
||||
else
|
||||
test_prefix=$prefix
|
||||
fi
|
||||
if test "x$exec_prefix" = xNONE; then
|
||||
test_exec_prefix=$test_prefix
|
||||
else
|
||||
test_exec_prefix=$exec_prefix
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(sysroot,
|
||||
[AS_HELP_STRING([[--with-sysroot[=DIR]]],
|
||||
[search for usr/lib, usr/include, et al, within DIR])],
|
||||
|
@ -759,16 +770,6 @@ AC_ARG_WITH(sysroot,
|
|||
TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
|
||||
CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
|
||||
|
||||
if test "x$prefix" = xNONE; then
|
||||
test_prefix=/usr/local
|
||||
else
|
||||
test_prefix=$prefix
|
||||
fi
|
||||
if test "x$exec_prefix" = xNONE; then
|
||||
test_exec_prefix=$test_prefix
|
||||
else
|
||||
test_exec_prefix=$exec_prefix
|
||||
fi
|
||||
case ${TARGET_SYSTEM_ROOT} in
|
||||
"${test_prefix}"|"${test_prefix}/"*|\
|
||||
"${test_exec_prefix}"|"${test_exec_prefix}/"*|\
|
||||
|
@ -4534,11 +4535,11 @@ if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
|
|||
if test "x$with_headers" != x; then
|
||||
target_header_dir=$with_headers
|
||||
elif test "x$with_sysroot" = x; then
|
||||
target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
|
||||
target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
|
||||
elif test "x$with_build_sysroot" != "x"; then
|
||||
target_header_dir="${with_build_sysroot}${native_system_header_dir}"
|
||||
elif test "x$with_sysroot" = xyes; then
|
||||
target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
|
||||
target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
|
||||
else
|
||||
target_header_dir="${with_sysroot}${native_system_header_dir}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue