annotate m4/nanosleep.m4 @ 11069:8488a80e49bc

nanosleep: skip configure test (fail it) for apple universal builds * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple universal builds, assume that nanosleep does not work. * modules/nanosleep (Depends-on): Add multiarch.
author Bruno Haible <bruno@clisp.org>
date Wed, 21 Jan 2009 20:27:39 +0100
parents f6cba5a556ce
children d9a855dec815
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11069
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
1 # serial 27
2052
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
2
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
3 dnl From Jim Meyering.
2066
8e707880be9b tweak comment
Jim Meyering <jim@meyering.net>
parents: 2065
diff changeset
4 dnl Check for the nanosleep function.
8e707880be9b tweak comment
Jim Meyering <jim@meyering.net>
parents: 2065
diff changeset
5 dnl If not found, use the supplied replacement.
2052
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
6 dnl
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
7
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10245
diff changeset
8 # Copyright (C) 1999-2001, 2003-2009 Free Software Foundation, Inc.
6671
5a2089992925 * modules/gettime (Depends-on): Add extensions module.
Paul Eggert <eggert@cs.ucla.edu>
parents: 6275
diff changeset
9
5611
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5016
diff changeset
10 # This file is free software; the Free Software Foundation
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5016
diff changeset
11 # gives unlimited permission to copy and/or distribute it,
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5016
diff changeset
12 # with or without modifications, as long as this notice is preserved.
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5016
diff changeset
13
5016
7141ea4946af Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents: 4910
diff changeset
14 AC_DEFUN([gl_FUNC_NANOSLEEP],
2052
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
15 [
6795
9dc5bb3f3359 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents: 6744
diff changeset
16 dnl Persuade glibc and Solaris <time.h> to declare nanosleep.
9dc5bb3f3359 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents: 6744
diff changeset
17 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
9dc5bb3f3359 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents: 6744
diff changeset
18
8276
0ead70460e39 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
Paul Eggert <eggert@cs.ucla.edu>
parents: 8227
diff changeset
19 AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
20 AC_REQUIRE([gl_CLOCK_TIME])
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10245
diff changeset
21 AC_CHECK_HEADERS_ONCE([sys/time.h])
6795
9dc5bb3f3359 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents: 6744
diff changeset
22
2491
9108f5af9d61 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
Jim Meyering <jim@meyering.net>
parents: 2267
diff changeset
23 nanosleep_save_libs=$LIBS
9108f5af9d61 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
Jim Meyering <jim@meyering.net>
parents: 2267
diff changeset
24
2065
e1a744db4db5 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
Jim Meyering <jim@meyering.net>
parents: 2055
diff changeset
25 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
e1a744db4db5 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
Jim Meyering <jim@meyering.net>
parents: 2055
diff changeset
26 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
4910
de285d9e7c4d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4108
diff changeset
27 AC_SEARCH_LIBS([nanosleep], [rt posix4],
de285d9e7c4d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4108
diff changeset
28 [test "$ac_cv_search_nanosleep" = "none required" ||
de285d9e7c4d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4108
diff changeset
29 LIB_NANOSLEEP=$ac_cv_search_nanosleep])
2065
e1a744db4db5 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
Jim Meyering <jim@meyering.net>
parents: 2055
diff changeset
30
11069
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
31 AC_REQUIRE([gl_MULTIARCH])
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
32 if test $APPLE_UNIVERSAL_BUILD = 1; then
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
33 # A universal build on Apple MacOS X platforms.
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
34 # The test result would be 'no (mishandles large arguments)' in 64-bit mode
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
35 # but 'yes' in 32-bit mode. But we need a configuration result that is
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
36 # valid in both modes.
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
37 gl_cv_func_nanosleep='no (mishandles large arguments)'
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
38 fi
8488a80e49bc nanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible <bruno@clisp.org>
parents: 11007
diff changeset
39
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
40 AC_CACHE_CHECK([for working nanosleep],
6795
9dc5bb3f3359 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents: 6744
diff changeset
41 [gl_cv_func_nanosleep],
2160
72cc32066c5d (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
Jim Meyering <jim@meyering.net>
parents: 2066
diff changeset
42 [
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
43 AC_RUN_IFELSE(
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
44 [AC_LANG_SOURCE([[
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
45 #include <errno.h>
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
46 #include <limits.h>
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
47 #include <signal.h>
7897
b7a83a69ac23 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
Paul Eggert <eggert@cs.ucla.edu>
parents: 7237
diff changeset
48 #if HAVE_SYS_TIME_H
b7a83a69ac23 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
Paul Eggert <eggert@cs.ucla.edu>
parents: 7237
diff changeset
49 #include <sys/time.h>
b7a83a69ac23 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
Paul Eggert <eggert@cs.ucla.edu>
parents: 7237
diff changeset
50 #endif
b7a83a69ac23 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
Paul Eggert <eggert@cs.ucla.edu>
parents: 7237
diff changeset
51 #include <time.h>
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
52 #include <unistd.h>
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
53 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
54 #define TYPE_MAXIMUM(t) \
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
55 ((t) (! TYPE_SIGNED (t) \
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
56 ? (t) -1 \
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
57 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
58
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
59 static void
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
60 check_for_SIGALRM (int sig)
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
61 {
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
62 if (sig != SIGALRM)
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
63 _exit (1);
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
64 }
2052
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
65
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
66 int
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
67 main ()
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
68 {
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
69 static struct timespec ts_sleep;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
70 static struct timespec ts_remaining;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
71 static struct sigaction act;
8227
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
72 if (! nanosleep)
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
73 return 1;
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
74 act.sa_handler = check_for_SIGALRM;
8227
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
75 sigemptyset (&act.sa_mask);
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
76 sigaction (SIGALRM, &act, NULL);
8227
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
77 ts_sleep.tv_sec = 0;
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
78 ts_sleep.tv_nsec = 1;
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
79 alarm (1);
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
80 if (nanosleep (&ts_sleep, NULL) != 0)
8aa8914c86a3 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
Paul Eggert <eggert@cs.ucla.edu>
parents: 8146
diff changeset
81 return 1;
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
82 ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
83 ts_sleep.tv_nsec = 999999999;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
84 alarm (1);
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
85 if (nanosleep (&ts_sleep, &ts_remaining) == -1 && errno == EINTR
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
86 && TYPE_MAXIMUM (time_t) - 10 < ts_remaining.tv_sec)
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
87 return 0;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
88 return 119;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
89 }]])],
6795
9dc5bb3f3359 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents: 6744
diff changeset
90 [gl_cv_func_nanosleep=yes],
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
91 [case $? in dnl (
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
92 119) gl_cv_func_nanosleep='no (mishandles large arguments)';; dnl (
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
93 *) gl_cv_func_nanosleep=no;;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
94 esac],
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
95 [gl_cv_func_nanosleep=cross-compiling])
2052
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
96 ])
8146
b31580167c2b New module 'time', so that apps can include <time.h> as per
Paul Eggert <eggert@cs.ucla.edu>
parents: 7897
diff changeset
97 if test "$gl_cv_func_nanosleep" = yes; then
b31580167c2b New module 'time', so that apps can include <time.h> as per
Paul Eggert <eggert@cs.ucla.edu>
parents: 7897
diff changeset
98 REPLACE_NANOSLEEP=0
b31580167c2b New module 'time', so that apps can include <time.h> as per
Paul Eggert <eggert@cs.ucla.edu>
parents: 7897
diff changeset
99 else
b31580167c2b New module 'time', so that apps can include <time.h> as per
Paul Eggert <eggert@cs.ucla.edu>
parents: 7897
diff changeset
100 REPLACE_NANOSLEEP=1
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
101 if test "$gl_cv_func_nanosleep" = 'no (mishandles large arguments)'; then
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10245
diff changeset
102 AC_DEFINE([HAVE_BUG_BIG_NANOSLEEP], [1],
9229
11c77fefd9e5 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
Jim Meyering <jim@meyering.net>
parents: 8276
diff changeset
103 [Define to 1 if nanosleep mishandles large arguments.])
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
104 for ac_lib in $LIB_CLOCK_GETTIME; do
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
105 case " $LIB_NANOSLEEP " in
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
106 *" $ac_lib "*) ;;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
107 *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
108 esac
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
109 done
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
110 fi
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10245
diff changeset
111 AC_LIBOBJ([nanosleep])
4108
c1d472db5c30 An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents: 3486
diff changeset
112 gl_PREREQ_NANOSLEEP
2052
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
113 fi
2491
9108f5af9d61 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
Jim Meyering <jim@meyering.net>
parents: 2267
diff changeset
114
7237
119870bc83d7 Work around a bug in both the Linux and SunOS 64-bit kernels:
Paul Eggert <eggert@cs.ucla.edu>
parents: 7172
diff changeset
115 AC_SUBST([LIB_NANOSLEEP])
2491
9108f5af9d61 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
Jim Meyering <jim@meyering.net>
parents: 2267
diff changeset
116 LIBS=$nanosleep_save_libs
2052
3c79d37078c2 *** empty log message ***
Jim Meyering <jim@meyering.net>
parents:
diff changeset
117 ])
4108
c1d472db5c30 An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents: 3486
diff changeset
118
c1d472db5c30 An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents: 3486
diff changeset
119 # Prerequisites of lib/nanosleep.c.
c1d472db5c30 An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents: 3486
diff changeset
120 AC_DEFUN([gl_PREREQ_NANOSLEEP],
c1d472db5c30 An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents: 3486
diff changeset
121 [
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10245
diff changeset
122 AC_CHECK_HEADERS_ONCE([sys/select.h])
10245
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10230
diff changeset
123 gl_PREREQ_SIG_HANDLER_H
4108
c1d472db5c30 An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents: 3486
diff changeset
124 ])