Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-08-28 00:27:35 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-08-28 00:27:35 +0400
commit8da1639b0c63e581d73bfc169ae6158b36958aeb (patch)
treefd7d1d0279134b76314ba6ca2c26c91403743c21 /newlib/configure.in
parent0a642325253949a306fc3e62863f8c188f8b7037 (diff)
2002-08-27 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am(stmp-targ-include): Copy newlib.h to targ-include. (install-data-local): Install newlib.h. * Makefile.in: Regenerated. * aclocal.m4: Ditto. * configure: Ditto. * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on newlib.hin. Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL and _NEWLIB_VERSION to fill in newlib.h header file entries. In AC_OUTPUT statement, unset ac_file so multilib support does not use last ac_file temporary used in newlib.h configuration. * libc/include/_ansi.h: Include <newlib.h>. * newlib.hin: New template file for newlib.h. * stamp-h.in: New file.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r--newlib/configure.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index 050948aa3..fc93ae773 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -3,6 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.5)
AC_INIT(libc)
+AM_CONFIG_HEADER(newlib.h:newlib.hin)
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
AC_CONFIG_AUX_DIR(..)
@@ -18,7 +19,6 @@ AC_ARG_ENABLE(newlib-io-pos-args,
*) AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;;
esac], [newlib_io_pos_args=no])dnl
-
NEWLIB_CONFIGURE(.)
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
@@ -128,6 +128,11 @@ if test -z "$CC_FOR_BUILD"; then
fi
AC_SUBST(CC_FOR_BUILD)
+if test "${newlib_elix_level}" -gt "0"; then
+AC_DEFINE_UNQUOTED(_ELIX_LEVEL,${newlib_elix_level})
+fi
+
+AC_DEFINE_UNQUOTED(_NEWLIB_VERSION,"$VERSION")
if test "${multilib}" = "yes"; then
multilib_arg="--enable-multilib"
@@ -138,6 +143,7 @@ fi
AC_OUTPUT(Makefile,
[if test -n "$CONFIG_FILES"; then
+ unset ac_file
. ${newlib_basedir}/../config-ml.in
fi],
srcdir=${srcdir}