projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add module mathl.
[gnulib.git]
/
m4
/
nanosleep.m4
diff --git
a/m4/nanosleep.m4
b/m4/nanosleep.m4
index
d3d0ef8
..
bfe8d57
100644
(file)
--- a/
m4/nanosleep.m4
+++ b/
m4/nanosleep.m4
@@
-1,11
+1,11
@@
-#serial
7
+#serial
9
dnl From Jim Meyering.
dnl Check for the nanosleep function.
dnl If not found, use the supplied replacement.
dnl
dnl From Jim Meyering.
dnl Check for the nanosleep function.
dnl If not found, use the supplied replacement.
dnl
-AC_DEFUN(
jm_FUNC_NANOSLEEP
,
+AC_DEFUN(
[jm_FUNC_NANOSLEEP]
,
[
nanosleep_save_libs=$LIBS
[
nanosleep_save_libs=$LIBS
@@
-18,6
+18,7
@@
AC_DEFUN(jm_FUNC_NANOSLEEP,
jm_cv_func_nanosleep_works,
[
AC_REQUIRE([AC_HEADER_TIME])
jm_cv_func_nanosleep_works,
[
AC_REQUIRE([AC_HEADER_TIME])
+ AC_CHECK_HEADERS_ONCE(sys/time.h)
AC_TRY_RUN([
# if TIME_WITH_SYS_TIME
# include <sys/time.h>
AC_TRY_RUN([
# if TIME_WITH_SYS_TIME
# include <sys/time.h>
@@
-46,9
+47,16
@@
AC_DEFUN(jm_FUNC_NANOSLEEP,
])
if test $jm_cv_func_nanosleep_works = no; then
AC_LIBOBJ(nanosleep)
])
if test $jm_cv_func_nanosleep_works = no; then
AC_LIBOBJ(nanosleep)
- AC_DEFINE
_UNQUOTED
(nanosleep, rpl_nanosleep,
+ AC_DEFINE(nanosleep, rpl_nanosleep,
[Define to rpl_nanosleep if the replacement function should be used.])
[Define to rpl_nanosleep if the replacement function should be used.])
+ gl_PREREQ_NANOSLEEP
fi
LIBS=$nanosleep_save_libs
])
fi
LIBS=$nanosleep_save_libs
])
+
+# Prerequisites of lib/nanosleep.c.
+AC_DEFUN([gl_PREREQ_NANOSLEEP],
+[
+ AC_CHECK_HEADERS_ONCE(unistd.h)
+])