diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-11-11 03:40:08 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-11-11 03:40:08 +0000 |
commit | 09e35f17e5a08b26f437f03679100fc9d3db5c5d (patch) | |
tree | 2cf48a9d0c5cf9ab5bf43f1b638e6e1a094a7105 /m4 | |
parent | b08d22157d65cca2dd18816fb60ab68eaf43dbdb (diff) | |
download | ATCD-09e35f17e5a08b26f437f03679100fc9d3db5c5d.tar.gz |
ChangeLogTag:Wed Nov 10 21:35:47 1999 Ossama Othman <othman@cs.wustl.edu>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/compiler.m4 | 24 | ||||
-rw-r--r-- | m4/threads.m4 | 34 |
2 files changed, 56 insertions, 2 deletions
diff --git a/m4/compiler.m4 b/m4/compiler.m4 index 1b8adc3f68a..61d0e448278 100644 --- a/m4/compiler.m4 +++ b/m4/compiler.m4 @@ -128,8 +128,28 @@ AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl ;; esac ;; - *irix*) - + *irix5*) + case "$CXX" in + CC) + CXXFLAGS="$CXXFLAGS -ptused -prelink +pp -woff 3203,3209,3161,3262,3665" + ACE_CXXFLAGS="$ACE_CXXFLAGS " + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + *) + ;; + esac + ;; + *irix6*) + case "$CXX" in + CC) + CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE" + CXXFLAGS="$CXXFLAGS -exceptions -ptnone -no_prelink -Wl,-woff,15 -Wl,-woff,84 -Wl,-woff,85 -Wl,-woff,133" + ACE_CXXFLAGS="$ACE_CXXFLAGS " + DCXXFLAGS="-g" + OCXXFLAGS="-O -OPT:Olimit=0" + ;; + esac ;; *linux*) case "$CXX" in diff --git a/m4/threads.m4 b/m4/threads.m4 index 9074e84f748..8a8d778b9bb 100644 --- a/m4/threads.m4 +++ b/m4/threads.m4 @@ -130,6 +130,40 @@ dnl Check if compiler accepts specific flag to enable threads [ ace_has_pthreads=yes AC_DEFINE(ACE_HAS_PTHREADS) + + dnl This is ugly but some platforms appear to implement stubs + dnl in the C library, so it is possible that a no-op function + dnl may be found. Here we check for a few more functions in + dnl case this is so. This may not be fool proof since the + dnl additional functions themselves may be implemented as + dnl stubs, in which case the same problem will occur! + dnl Another solution is to check for the function using + dnl AC_CHECK_LIB but that will force the library to be added + dnl to the LIBS variable, which may not even be necessary. In + dnl any case, it may be the better solution. If problems arise + dnl in the future regarding this issue, then we should probably + dnl switch to doing an AC_CHECK_LIB before each ACE_SEARCH_LIBS + dnl below. + + dnl Search for functions in more recent standards first. + + dnl Note that the functions were chosen since they appear to be + dnl more "exotic" than the less "interesting" functions such as + dnl pthread_mutexattr_init. + + dnl Draft 7 and Standard + ACE_SEARCH_LIBS([pthread_setschedparam], + [pthread pthreads c_r gthreads],, + [ + dnl Draft 6 + ACE_SEARCH_LIBS([pthread_attr_setprio], + [pthread pthreads c_r gthreads],, + [ + dnl Draft 4 + ACE_SEARCH_LIBS([pthread_setprio], + [pthread pthreads c_r gthreads],,) + ]) + ]) ], [ ace_has_pthreads=no |