summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2003-04-28 17:56:10 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2003-04-28 17:56:10 +0000
commit3bcb0523e71f46b27d8b836d6aed3e26db72e50f (patch)
treeac534f75cf1fd3b4810cf08abf6129bf749d1a2f /m4
parent4257abce123a8ce1dc27f54766529ea25b7d8f8a (diff)
downloadATCD-3bcb0523e71f46b27d8b836d6aed3e26db72e50f.tar.gz
ChangeLogTag:Mon Apr 28 10:54:02 2003 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler.m44
-rw-r--r--m4/config_h.m453
-rw-r--r--m4/platform.m436
3 files changed, 38 insertions, 55 deletions
diff --git a/m4/compiler.m4 b/m4/compiler.m4
index e72d81e92ff..b12479baed4 100644
--- a/m4/compiler.m4
+++ b/m4/compiler.m4
@@ -8,7 +8,7 @@ dnl that set/determine compiler configurations for ACE.
dnl
dnl -------------------------------------------------------------------------
-dnl Copyright (C) 1998, 1999 Ossama Othman
+dnl Copyright (C) 1998, 1999, 2003 Ossama Othman
dnl
dnl All Rights Reserved
dnl
@@ -316,7 +316,7 @@ changequote([, ])dnl
if test "$ace_user_enable_exceptions" != yes; then
dnl See /opt/SUNWspro_5.0/SC5.0/include/CC/stdcomp.h.
- AC_DEFINE([_RWSTD_NO_EXCEPTIONS])
+ ACE_CPPFLAGS="$ACE_CPPFLAGS -D_RWSTD_NO_EXCEPTIONS"
fi
fi
diff --git a/m4/config_h.m4 b/m4/config_h.m4
index 2227fc994fa..d2ded94e01c 100644
--- a/m4/config_h.m4
+++ b/m4/config_h.m4
@@ -45,14 +45,6 @@ AH_BOTTOM([
])
-AH_VERBATIM([_POSIX_PTHREAD_SEMANTICS],
-[/* Some platforms need _POSIX_PTHREAD_SEMANTICS to make some functions work */
-#undef _POSIX_PTHREAD_SEMANTICS
-#ifndef _POSIX_PTHREAD_SEMANTICS
-# undef _POSIX_PTHREAD_SEMANTICS
-#endif
-])
-
dnl ACE currently doesn't use these; however the configure script does
AH_TEMPLATE([ACE_LACKS_SYSTIMES_H],[The `sys/times.h' header is unavailable])
AH_TEMPLATE([ACE_LACKS_UNBUFFERED_STREAMBUF],[])
@@ -93,43 +85,9 @@ dnl /* results from checks for system services */
dnl AIX specific configuration parameters
AH_TEMPLATE([AIX],[Configure for use on AIX])
-AH_TEMPLATE([_BSD],[])
-AH_TEMPLATE([_BSD_INCLUDES],[])
-
-dnl /* Cray specific configuration parameters */
-dnl /*
-dnl * The following predefined macros are used within ACE ifdefs.
-dnl * These are defined when using the Cray compilers. _CRAYMPP
-dnl * is defined, for example, if you are running on a Cray T3E
-dnl * massively parallel machine. Moreover, in the case of the T3E,
-dnl * _CRAYT3E will be defined. This is used to determine the
-dnl * ACE_SIZEOF defines for primitive types.
-dnl *
-dnl * _UNICOS is defined as either the major version of UNICOS being run,
-dnl * e.g. 9 or 10 on the vector machines (e.g. C90, T90, J90, YMP, ...)
-dnl * or the major+minor+level UNICOS/mk version, e.g. 2.0.3 => 203,
-dnl * being run on an MPP machine.
-dnl *
-dnl * Summary:
-dnl *
-dnl * _CRAYMPP (defined only if running on MPP machine, e.g. T3E, UNICOS/mk)
-dnl * _CRAYT3E (defined specifically if compiling on a Cray T3E)
-dnl * _UNICOS (defined if running UNICOS or UNICOS/mk)
-dnl *
-dnl * Tested on UNICOS 10.0.0.2, UNICOS/mk 2.0.3.10
-dnl *
-dnl * Contributed by Doug Anderson <doug "at" clark.net>
-dnl */
-AH_TEMPLATE([_CRAYMPP],
-[defined only if running on MPP machine, e.g. T3E, UNICOS/mk])
-AH_TEMPLATE([_CRAYT3E],[defined specifically if compiling on a Cray T3E])
-AH_TEMPLATE([_UNICOS],[defined if running UNICOS or UNICOS/mk])
dnl DG/UX specific configuration parameters
AH_TEMPLATE([ACE_DGUX],[])
-AH_TEMPLATE([_DGUX_SOURCE],[])
-AH_TEMPLATE([_POSIX4A_DRAFT10_SOURCE],[])
-AH_TEMPLATE([_POSIX4_DRAFT_SOURCE],[])
dnl FreeBSD specific configuration parameters
dnl Nothing yet
@@ -138,16 +96,12 @@ dnl HP/UX specific configuration parameters
AH_TEMPLATE([HPUX],[Configure for use on HP-UX])
AH_TEMPLATE([HPUX_10],[Configure for use on HP-UX 10])
AH_TEMPLATE([HPUX_11],[Configure for use on HP-UX 11])
-AH_TEMPLATE([_HPUX_SOURCE],[Enable HP-UX specific features in platform headers])
AH_TEMPLATE([ACE_HAS_BROKEN_HPUX_TEMPLATES],
[Earlier versions of HP/UX C++ are damned...])
dnl Irix specific configuration parameters
AH_TEMPLATE([IRIX5],[Configure for use on Irix 5])
AH_TEMPLATE([IRIX6],[Configure for use on Irix 6])
-AH_TEMPLATE([_BSD_TYPES],[])
-AH_TEMPLATE([_SGI_MP_SOURCE],[])
-AH_TEMPLATE([_MODERN_C_],[Enable modern features in SGI C++ compiler])
AH_TEMPLATE([ACE_HAS_IRIX62_THREADS],
[Platform supports the very odd IRIX 6.2 threads...])
@@ -156,7 +110,6 @@ dnl Nothing yet */
dnl LynxOS specific configuration parameters
AH_TEMPLATE([__NO_INCLUDE_WARN__],[])
-AH_TEMPLATE([_POSIX_THREADS_CALLS],[])
dnl M88K specific configuration parameters
AH_TEMPLATE([m88k],[])
@@ -179,10 +132,6 @@ AH_TEMPLATE([ACE_PSOSTBD],[])
dnl SCO specific configuration parameters
AH_TEMPLATE([SCO],[])
-AH_TEMPLATE([_SVID3],[])
-
-dnl SunOS / Solaris specific configuration parameters
-AH_TEMPLATE([_RWSTD_NO_EXCEPTIONS],[])
dnl Tandem specific configuration parameters
dnl Nothing yet
@@ -191,6 +140,8 @@ dnl UnixWare specific configuration parameters
AH_TEMPLATE([UNIXWARE],[Configure for use on UnixWare])
AH_TEMPLATE([UNIXWARE_2_0],[])
AH_TEMPLATE([UNIXWARE_2_1],[])
+AH_TEMPLATE([UNIXWARE_7_1],[])
+AH_TEMPLATE([__IOCTL_VERSIONED__],[])
dnl VXWorks specific configuration parameters
AH_TEMPLATE([VXWORKS],[Configure for use on VxWorks])
diff --git a/m4/platform.m4 b/m4/platform.m4
index 392cf57959f..d582508d2b7 100644
--- a/m4/platform.m4
+++ b/m4/platform.m4
@@ -9,7 +9,7 @@ dnl to define.
dnl
dnl -------------------------------------------------------------------------
-dnl Copyright (C) 1998, 1999, 2000, 2002 Ossama Othman
+dnl Copyright (C) 1998, 1999, 2000, 2002, 2003 Ossama Othman
dnl
dnl All Rights Reserved
dnl
@@ -59,6 +59,30 @@ dnl AC_DEFINE([ACE_HAS_AIX_BROKEN_SOCKET_HEADER])
*aix*)
AC_DEFINE([AIX])
;;
+dnl /* Cray specific configuration parameters */
+dnl /*
+dnl * The following predefined macros are used within ACE ifdefs.
+dnl * These are defined when using the Cray compilers. _CRAYMPP
+dnl * is defined, for example, if you are running on a Cray T3E
+dnl * massively parallel machine. Moreover, in the case of the T3E,
+dnl * _CRAYT3E will be defined. This is used to determine the
+dnl * ACE_SIZEOF defines for primitive types.
+dnl *
+dnl * _UNICOS is defined as either the major version of UNICOS being run,
+dnl * e.g. 9 or 10 on the vector machines (e.g. C90, T90, J90, YMP, ...)
+dnl * or the major+minor+level UNICOS/mk version, e.g. 2.0.3 => 203,
+dnl * being run on an MPP machine.
+dnl *
+dnl * Summary:
+dnl *
+dnl * _CRAYMPP (defined only if running on MPP machine, e.g. T3E, UNICOS/mk)
+dnl * _CRAYT3E (defined specifically if compiling on a Cray T3E)
+dnl * _UNICOS (defined if running UNICOS or UNICOS/mk)
+dnl *
+dnl * Tested on UNICOS 10.0.0.2, UNICOS/mk 2.0.3.10
+dnl *
+dnl * Contributed by Doug Anderson <doug "at" clark.net>
+dnl */
t3e-cray-unicosmk*)
ACE_CPPFLAGS="$ACE_CPPFLAGS -D_CRAYMPP -D_CRAYT3E -D_UNICOS"
;;
@@ -92,6 +116,7 @@ dnl FIXME: "FSU" isn't a platform! We need to move this somewhere.
*hpux10*)
AC_DEFINE([HPUX])
AC_DEFINE([HPUX_10])
+ dnl _HPUX_SOURCE : Enable HP-UX specific features in platform headers
ACE_CPPFLAGS="$ACE_CPPFLAGS -D_HPUX_SOURCE"
AC_DEFINE([ACE_DEFAULT_BASE_ADDR], [((char *) 0x80000000)])
AC_DEFINE([ACE_TLI_TCP_DEVICE], ["/dev/inet_cots"])
@@ -127,6 +152,7 @@ dnl FIXME: "FSU" isn't a platform! We need to move this somewhere.
AC_DEFINE([IRIX6])
AC_DEFINE([ACE_DEFAULT_BASE_ADDR], [((char *) (1024U * 1024 * 1024))])
AC_DEFINE([ACE_TIMER_SKEW], [(1000 * 10)])
+ dnl _MODERN_C_ : Enable modern features in SGI C++ compiler
ACE_CPPFLAGS="$ACE_CPPFLAGS -D_SGI_MP_SOURCE -D_MODERN_C_"
case "$host" in
@@ -146,7 +172,7 @@ dnl FIXME: "FSU" isn't a platform! We need to move this somewhere.
AC_DEFINE([ACE_TIMER_SKEW], [(1000 * 10)])
;;
*lynxos*)
- AC_DEFINE([_POSIX_THREADS_CALLS])
+ ACE_CPPFLAGS="$ACE_CPPFLAGS -D_POSIX_THREADS_CALLS"
AC_DEFINE([__NO_INCLUDE_WARN__])
AC_DEFINE([ACE_MALLOC_ALIGN], [8])
AC_DEFINE([ACE_MAP_PRIVATE], [ACE_MAP_SHARED])
@@ -270,6 +296,12 @@ dnl Check for _POSIX_C_SOURCE macro
AC_DEFINE([UNIXWARE])
AC_DEFINE([UNIXWARE_2_1])
;;
+ *UnixWare7.1*)
+ AC_DEFINE([UNIXWARE])
+ AC_DEFINE([UNIXWARE_7_1])
+ AC_DEFINE([__IOCTL_VERSIONED__])
+ ACE_CPPFLAGS="$ACE_CPPFLAGS -D_REENTRANT"
+ ;;
*vxworks*)
AC_DEFINE([VXWORKS])
AC_DEFINE([ACE_MAIN], [ace_main])