mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in: Move library checks into "Checks for libraries." part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
695ad02d1b
commit
980bf275fa
2 changed files with 18 additions and 14 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri May 10 20:22:40 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* configure.in: Move library checks into "Checks for libraries." part.
|
||||
|
||||
Fri May 10 19:32:01 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* configure.in: Reformat arguments of AC_CHECK_HEADERS and
|
||||
|
|
28
configure.in
28
configure.in
|
@ -989,6 +989,20 @@ main()
|
|||
],
|
||||
[ LIBS="-lm $LIBS"])
|
||||
|
||||
AC_CHECK_LIB(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
|
||||
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
|
||||
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
|
||||
AC_CHECK_LIB(socket, shutdown) # SunOS/Solaris
|
||||
|
||||
AC_CHECK_FUNCS(clock_gettime)
|
||||
if test x"$ac_cv_func_clock_gettime" != xyes; then
|
||||
# glibc 2.17 moves clock_* functions from librt to the main C library.
|
||||
# http://sourceware.org/ml/libc-announce/2012/msg00001.html
|
||||
AC_CHECK_LIB(rt, clock_gettime)
|
||||
unset ac_cv_func_clock_gettime
|
||||
AC_CHECK_FUNCS(clock_gettime)
|
||||
fi
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_DIRENT
|
||||
dnl AC_HEADER_STDC has been checked in AC_USE_SYSTEM_EXTENSIONS
|
||||
|
@ -1456,11 +1470,6 @@ dnl Check whether we need to define sys_nerr locally
|
|||
AC_CHECK_DECLS([sys_nerr], [], [], [$ac_includes_default
|
||||
@%:@include <errno.h>])
|
||||
|
||||
AC_CHECK_LIB(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
|
||||
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
|
||||
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
|
||||
AC_CHECK_LIB(socket, shutdown) # SunOS/Solaris
|
||||
|
||||
AS_CASE(["$target_cpu"],
|
||||
[alpha*|sh4|sh4el|sh4eb], [AS_CASE(["$target_os"::"$GCC"],
|
||||
[*::yes], # gcc
|
||||
|
@ -1721,15 +1730,6 @@ else
|
|||
AC_LIBOBJ([signbit])
|
||||
fi
|
||||
|
||||
AC_CHECK_FUNCS(clock_gettime)
|
||||
if test x"$ac_cv_func_clock_gettime" != xyes; then
|
||||
# glibc 2.17 moves clock_* functions from librt to the main C library.
|
||||
# http://sourceware.org/ml/libc-announce/2012/msg00001.html
|
||||
AC_CHECK_LIB(rt, clock_gettime)
|
||||
unset ac_cv_func_clock_gettime
|
||||
AC_CHECK_FUNCS(clock_gettime)
|
||||
fi
|
||||
|
||||
AC_CHECK_FUNCS( \
|
||||
fmod \
|
||||
killpg \
|
||||
|
|
Loading…
Reference in a new issue