+2016-12-11 Iain Sandoe <iain@codesourcery.com>
+
+ * configure.ac (CROSS directory tests): Remove the assumption that
+ Darwin hosts contain suitable target sysroots in "/".
+ * configure: Regenerate.
+
2016-12-11 Iain Sandoe <iain@codesourcery.com>
PR rtl-optimization/71496
CROSS="-DCROSS_DIRECTORY_STRUCTURE"
ALL=all.cross
SYSTEM_HEADER_DIR=$build_system_header_dir
- case "$host","$target" in
- # Darwin crosses can use the host system's libraries and headers,
- # because of the fat library support. Of course, it must be the
- # same version of Darwin on both sides. Allow the user to
- # just say --target=foo-darwin without a version number to mean
- # "the version on this system".
- *-*-darwin*,*-*-darwin*)
- hostos=`echo $host | sed 's/.*-darwin/darwin/'`
- targetos=`echo $target | sed 's/.*-darwin/darwin/'`
- if test $hostos = $targetos -o $targetos = darwin ; then
- CROSS=
- SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
- with_headers=yes
- fi
- ;;
-
- i?86-*-*,x86_64-*-* \
- | powerpc*-*-*,powerpc64*-*-*)
- CROSS="$CROSS -DNATIVE_CROSS" ;;
- esac
-
case $target in
*-*-mingw*)
if test "x$with_headers" = x; then
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18433 "configure"
+#line 18417 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18539 "configure"
+#line 18523 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
CROSS="-DCROSS_DIRECTORY_STRUCTURE"
ALL=all.cross
SYSTEM_HEADER_DIR=$build_system_header_dir
- case "$host","$target" in
- # Darwin crosses can use the host system's libraries and headers,
- # because of the fat library support. Of course, it must be the
- # same version of Darwin on both sides. Allow the user to
- # just say --target=foo-darwin without a version number to mean
- # "the version on this system".
- *-*-darwin*,*-*-darwin*)
- hostos=`echo $host | sed 's/.*-darwin/darwin/'`
- targetos=`echo $target | sed 's/.*-darwin/darwin/'`
- if test $hostos = $targetos -o $targetos = darwin ; then
- CROSS=
- SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
- with_headers=yes
- fi
- ;;
-
- i?86-*-*,x86_64-*-* \
- | powerpc*-*-*,powerpc64*-*-*)
- CROSS="$CROSS -DNATIVE_CROSS" ;;
- esac
-
case $target in
*-*-mingw*)
if test "x$with_headers" = x; then