summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-11-18 02:36:06 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-11-18 02:36:06 +0000
commitf934a9d630c3653d8258e6bdcbcd46ad14be7c77 (patch)
tree812e58b1d021b375c3617366126bcd7402540ddf
parent2002-11-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-f934a9d630c3653d8258e6bdcbcd46ad14be7c77.tar.bz2
2002-11-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove -ansi -fasm. Add checks to diagnose potential system header conflicts. * Makefile.am: Unconditionally install sys/cdefs.h.
-rw-r--r--cpukit/libcsupport/ChangeLog6
-rw-r--r--cpukit/libcsupport/Makefile.am5
-rw-r--r--cpukit/libcsupport/configure.ac10
3 files changed, 17 insertions, 4 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog
index c2114588bb..b347565993 100644
--- a/cpukit/libcsupport/ChangeLog
+++ b/cpukit/libcsupport/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * configure.ac: Remove -ansi -fasm.
+ Add checks to diagnose potential system header conflicts.
+ * Makefile.am: Unconditionally install sys/cdefs.h.
+
2002-11-07 <strauman@slac.stanford.edu>
* src/mount.c: Per PR297, correct fs_mountme failure paths.
diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am
index 1a6e154179..177acf542d 100644
--- a/cpukit/libcsupport/Makefile.am
+++ b/cpukit/libcsupport/Makefile.am
@@ -56,11 +56,11 @@ PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \
include_sysdir = $(includedir)/sys
-
if NEWLIB
-NEWLIB_H_FILES = include/sys/termios.h include/sys/cdefs.h include/sys/utsname.h
+NEWLIB_H_FILES = include/sys/termios.h include/sys/utsname.h
endif
+# FIXME: We should not install to include/sys unless using newlib.
include_sys_HEADERS = \
include/sys/filio.h \
include/sys/ioccom.h \
@@ -68,6 +68,7 @@ include/sys/ioctl.h \
include/sys/sockio.h \
include/sys/termios.h \
include/sys/ttycom.h \
+include/sys/cdefs.h \
$(NEWLIB_H_FILES)
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \
diff --git a/cpukit/libcsupport/configure.ac b/cpukit/libcsupport/configure.ac
index 3df89a342f..023b7e53bc 100644
--- a/cpukit/libcsupport/configure.ac
+++ b/cpukit/libcsupport/configure.ac
@@ -17,7 +17,7 @@ RTEMS_ENV_RTEMSCPU
RTEMS_CHECK_CPU
RTEMS_CANONICAL_HOST
-RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
+RTEMS_PROG_CC_FOR_TARGET
RTEMS_CANONICALIZE_TOOLS
AC_PROG_RANLIB
@@ -26,7 +26,13 @@ RTEMS_CHECK_MULTIPROCESSING
AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix")
AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes")
-
+AS_IF([test x"$RTEMS_USE_NEWLIB" != x"yes"],[
+# FIXME: Currently, these checks are only in here to provide
+# configuration-time diagnostics and are not really used.
+ AC_CHECK_HEADERS([sys/cdefs.h])
+ AC_CHECK_HEADERS([stdint.h inttypes.h])
+ AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>])
+])
AM_CONFIG_HEADER(src/config.h)
# Explicitly list all Makefiles here