diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-11 03:27:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-11 03:27:46 +0000 |
commit | 0a6689e912b4672640e8d7692e2e35ed88709aa5 (patch) | |
tree | 9c61b32ff2532a79a3de485f03d969b71a324e33 /configure.in | |
parent | 1e03ca043a276095b11e9861ebb2deebfc04c10c (diff) |
* configure.in: moved broken syscall checks from process.c etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.in b/configure.in index a00456ab35..2b1339b67c 100644 --- a/configure.in +++ b/configure.in @@ -370,7 +370,19 @@ case "$target_os" in nextstep*) ;; openstep*) ;; rhapsody*) ;; -darwin*) LIBS="-lobjc $LIBS";; +darwin*) LIBS="-lobjc $LIBS" + AC_TRY_CPP([#include <AvailabilityMacros.h> + #if MAC_OS_X_VERSION_MAX_ALLOWED <= 1040 + #error pre OS X 10.4 + [!<===== pre OS X 10.4 =====>] + #endif + ], [/* nothing */], [], + [ + AC_DEFINE(BROKEN_SETREUID, 1) + AC_DEFINE(BROKEN_SETREGID, 1) + ac_cv_header_ucontext_h=no + ]) + ;; hpux*) LIBS="-lm $LIBS" ac_cv_c_inline=no;; human*) ac_cv_func_getpgrp_void=yes @@ -426,6 +438,8 @@ msdosdjgpp*) LIBS="-lm $LIBS" ac_cv_func_setrlimit=no ;; bsdi*) LIBS="-lm $LIBS" + AC_DEFINE(BROKEN_SETREUID, 1) + AC_DEFINE(BROKEN_SETREGID, 1) ac_cv_sizeof_rlim_t=8;; freebsd*) LIBS="-lm $LIBS" AC_CACHE_CHECK([whether -lxpg4 has to be linked], |