diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-04-27 00:18:52 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-04-27 00:18:52 +0400 |
commit | 7b2b12d51bd19095edd58a7fd98ed5128e64177f (patch) | |
tree | 1dfb89b65fe8b1b7e4fbdeeaf9a7749c3a7ce926 /newlib/configure.in | |
parent | b807c4ad010e5b6b0b970c3291f74c852af8ac1e (diff) |
2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
* configure.in (CC_FOR_NEWLIB): New variable that
bases on $(CC) and adds targ-include and libc/include as
-isystem directives if they are not already part of $(CC).
* Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
$(CC_FOR_NEWLIB).
* configure: Regenerated.
* Makefile.in: Ditto.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r-- | newlib/configure.in | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/newlib/configure.in b/newlib/configure.in index 372d8fb9d..a1653ecba 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -37,6 +37,15 @@ else fi AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes) +# These get added in the top-level configure.in, except in the case where +# newlib is being built natively. +if test -z `echo ${CC} | grep \/libc\/include`; then + CC_FOR_NEWLIB="${CC} -isystem $PWD/targ-include -isystem ${newlib_basedir}/libc/include" +else + CC_FOR_NEWLIB="${CC}" +fi +AC_SUBST(CC_FOR_NEWLIB) + AC_CONFIG_SUBDIRS(${configdirs}) CRT0= @@ -102,11 +111,6 @@ if test -z "$CC_FOR_BUILD"; then fi AC_SUBST(CC_FOR_BUILD) -# These get added in the top-level configure.in, except in the case where -# newlib is being built natively. -if test -z `echo ${CC} | grep \/libc\/include`; then - CC="${CC} -isystem $PWD/targ-include -isystem ${newlib_basedir}/libc/include" -fi if test "${multilib}" = "yes"; then multilib_arg="--enable-multilib" |