diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-29 01:10:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-29 01:10:41 +0000 |
commit | 2eb92b143aba045fc6a867c9cea8ed66a4df1e5e (patch) | |
tree | 10e0aebdc82a0556c670c698951af830377652d2 | |
parent | af35f2a61d8027df2e70012ae736f91ee0e41b85 (diff) | |
download | ruby-2eb92b143aba045fc6a867c9cea8ed66a4df1e5e.tar.gz |
configure.in: AC_CHECK_HEADERS
* configure.in (crt_externs.h): use standard macro AC_CHECK_HEADERS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 7 |
2 files changed, 5 insertions, 6 deletions
@@ -1,3 +1,7 @@ +Sat Dec 29 10:10:39 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (crt_externs.h): use standard macro AC_CHECK_HEADERS. + Fri Dec 28 23:12:44 2012 Charlie Somerville <charlie@charliesomerville.com> * configure.in: check for the whether crt_externs.h is present when compiling diff --git a/configure.in b/configure.in index 9e97d6113d..ee297ef371 100644 --- a/configure.in +++ b/configure.in @@ -1220,12 +1220,7 @@ 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 + AC_CHECK_HEADERS(crt_externs.h) ], [hpux*], [ LIBS="-lm $LIBS" ac_cv_c_inline=no], |