diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-15 09:56:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-15 09:56:53 +0000 |
commit | ad76d75ea594d0bbf84b3ae94e5897680b454312 (patch) | |
tree | f39946fad0b6b085b358d2b7b25483f769abcb3a /configure.in | |
parent | 21e22f8f969c5a7314a08a9d3e5d591ae5914d5c (diff) |
* configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs
to get rid of types which might not be defined yet. [ruby-dev:26165]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 10e783e1ac..4e0dc1490b 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT() -AC_PREREQ(2.50) +AC_PREREQ(2.58) AC_DEFUN(RUBY_MINGW32, [case "$host_os" in @@ -230,7 +230,10 @@ AC_CHECK_SIZEOF(float, 4) AC_CHECK_SIZEOF(double, 8) AC_CHECK_SIZEOF(time_t, 0) -AC_CHECK_TYPES([pid_t, gid_t, uid_t]) +for id in pid_t gid_t uid_t; do + AC_CHECK_TYPE($id, [typ=$id], [typ=int]) + AC_DEFINE_UNQUOTED(rb_$id, $typ) +done AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes, [AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);], |