summaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.target
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-20 19:08:42 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-20 19:08:42 +0000
commita24f7403d7036100ae5b6d0d0a03636598be30f6 (patch)
tree98f6e76c529998912d79a283ed61f48aa3aee008 /libstdc++-v3/configure.target
parent39d31f69cc6628f41dd8098b5cedeeaaa06f6c1d (diff)
downloadgcc-a24f7403d7036100ae5b6d0d0a03636598be30f6.tar.gz
2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am: Add rules. * include/Makefile.in: Regenerate. * acinclude.m4: Define GLIBCPP_C_HEADERS_COMPATIBILITY. * aclocal.m4: Regenerate. * configure: Regenerate. * configure.target (c_model, c_compatibility): Add. * libsupc++/Makefile.am (c_sources): New. (libsupc___la_SOURCES): Add c_sources. (LTCOMPILE): Remove INCLUDES. (GCC_INCLUDES): New. (C_COMPILE): New, like COMPILE but without INCLUDES. (cxa_demangle.o): Use C_COMPILE. (dyn-string.o): Use C_COMPILE. * include/c/std_cstdarg.h: Define __need___va_list. * include/c/std_cstddef.h: Define need_size_t, need_ptrdiff_t, need_NULL, need_offsetof. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54849 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure.target')
-rw-r--r--libstdc++-v3/configure.target24
1 files changed, 18 insertions, 6 deletions
diff --git a/libstdc++-v3/configure.target b/libstdc++-v3/configure.target
index 986437f37cf..c6bd5c0ed64 100644
--- a/libstdc++-v3/configure.target
+++ b/libstdc++-v3/configure.target
@@ -26,6 +26,10 @@
#
# os_include_dir OS-specific directory, defaults to os/generic.
#
+# c_model the model to use for "C" headers, defaults to c_std.
+#
+# c_compatibility if "C" compatibility headers are necessary,
+# defaults to no.
#
# It possibly modifies the following variables:
#
@@ -40,6 +44,7 @@
# *_include_dir variables.
+# DEFAULTS
# Try to guess a default cpu_include_dir based on the name of the CPU. We
# cannot do this for os_include_dir; there are too many portable operating
# systems out there. :-)
@@ -49,10 +54,14 @@ else
cpu_include_dir="cpu/generic"
fi
+c_model=c_std
+c_compatibility=no
+
+# TARGET-SPECIFIC OVERRIDES
+# Set any CPU-dependent bits.
# Here we override defaults and catch more general cases due to naming
-# conventions (e.g., chip_name* to catch all variants). Also set any
-# CPU-dependent compiler flags.
+# conventions (e.g., chip_name* to catch all variants).
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${target_cpu}" in
alpha*)
@@ -113,9 +122,11 @@ fi
unset _cpu_incdir_fullpath
-# Set the os_include_dir. If atomic ops and/or numeric limits are OS-specific
-# rather than CPU-specifc, set those here too. Also set any OS-dependent
-# compiler flags.
+# Set any OS-dependent bits.
+# Set the os_include_dir.
+# Set c_model, c_compatibility here.
+# If atomic ops and/or numeric limits are OS-specific rather than
+# CPU-specifc, set those here too.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${target_os}" in
aix4.[3456789]* | aix[56789]*)
@@ -177,6 +188,7 @@ case "${target_os}" in
;;
qnx6.[12]*)
os_include_dir="os/qnx/qnx6.1"
+ c_model=c
;;
*)
os_include_dir="os/generic"
@@ -184,7 +196,7 @@ case "${target_os}" in
esac
-# Set any flags dependent on the full target triplet.
+# Set any OS-dependent and CPU-dependent bits.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${target}" in
alpha*-*-*osf5*)