aboutsummaryrefslogtreecommitdiff
path: root/libgloss/configure
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2023-02-09 16:59:31 -0500
committerJeff Johnston <jjohnstn@redhat.com>2023-02-22 14:53:05 -0500
commit17ac400c11bab30ac2c0bef12cbf7788f0b6f954 (patch)
treef64b33a564048dd2831f77501b2f0c266e9eff84 /libgloss/configure
parent97d483c2f81c0865bead701f4d2824a21fae4938 (diff)
downloadnewlib-17ac400c11bab30ac2c0bef12cbf7788f0b6f954.zip
newlib-17ac400c11bab30ac2c0bef12cbf7788f0b6f954.tar.gz
newlib-17ac400c11bab30ac2c0bef12cbf7788f0b6f954.tar.bz2
Fix libgloss/newlib build to conditionally use top include dir
- conditionally use -idirafter option for arm
Diffstat (limited to 'libgloss/configure')
-rwxr-xr-xlibgloss/configure16
1 files changed, 16 insertions, 0 deletions
diff --git a/libgloss/configure b/libgloss/configure
index 28754b6..c076104 100755
--- a/libgloss/configure
+++ b/libgloss/configure
@@ -630,6 +630,8 @@ CPPFLAGS
LDFLAGS
CFLAGS
CC
+NEED_TOP_INCLUDE_DIR_FALSE
+NEED_TOP_INCLUDE_DIR_TRUE
CONFIG_WINCE_FALSE
CONFIG_WINCE_TRUE
CONFIG_RISCV_FALSE
@@ -2949,6 +2951,7 @@ case "${target}" in
;;
arm*-*-elf | arm*-*-coff | arm*-*-*)
config_arm=true
+ host_makefile_frag=${srcdir}/config/arm.mh
;;
spu-*-elf)
ac_config_files="$ac_config_files spu/Makefile"
@@ -3081,6 +3084,15 @@ fi
+ if test x$config_arm = xtrue; then
+ NEED_TOP_INCLUDE_DIR_TRUE=
+ NEED_TOP_INCLUDE_DIR_FALSE='#'
+else
+ NEED_TOP_INCLUDE_DIR_TRUE='#'
+ NEED_TOP_INCLUDE_DIR_FALSE=
+fi
+
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@@ -5347,6 +5359,10 @@ if test -z "${CONFIG_WINCE_TRUE}" && test -z "${CONFIG_WINCE_FALSE}"; then
as_fn_error $? "conditional \"CONFIG_WINCE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${NEED_TOP_INCLUDE_DIR_TRUE}" && test -z "${NEED_TOP_INCLUDE_DIR_FALSE}"; then
+ as_fn_error $? "conditional \"NEED_TOP_INCLUDE_DIR\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5