mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
af35f2a61d
commit
2eb92b143a
2 changed files with 5 additions and 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
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue