diff options
author | charliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-28 14:23:25 +0000 |
---|---|---|
committer | charliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-28 14:23:25 +0000 |
commit | af35f2a61d8027df2e70012ae736f91ee0e41b85 (patch) | |
tree | fa349978c1ead289859a0ff7f9119a627d09a86a /configure.in | |
parent | 80b0c6ca3b15a621dbbe129f4770c7a2f404eebe (diff) | |
download | ruby-af35f2a61d8027df2e70012ae736f91ee0e41b85.tar.gz |
* configure.in: check for the whether crt_externs.h is present when compiling
for darwin (this header is missing in the iOS SDK)
* eval_intern.h: check HAVE_CRT_EXTERNS_H before including crt_externs.h, if
not defined, include missing/crt_externs.h instead
* hash.c: ditto
* missing/setproctitle.c: ditto
* missing/crt_externs.h: declare _NSGetEnviron() function and define environ
for iOS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 3648814a9f..9e97d6113d 100644 --- a/configure.in +++ b/configure.in @@ -1220,6 +1220,12 @@ main() LINK_SO="$LINK_SO $POSTLINK" fi + AC_CACHE_CHECK(whether crt_externs.h is present for extern macro, rb_cv_crt_externs, + [AC_TRY_COMPILE([ #include <crt_externs.h> ], [return 0;], + rb_cv_crt_externs=yes, rb_cv_crt_externs=no)]) + if test "$rb_cv_crt_externs" = yes; then + AC_DEFINE(HAVE_CRT_EXTERNS_H) + fi ], [hpux*], [ LIBS="-lm $LIBS" ac_cv_c_inline=no], |