* m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
here...
* modules/usleep (configure.ac): ... to here.
+2011-05-22 Bruno Haible <bruno@clisp.org>
+
+ usleep: Move AC_LIBOBJ invocations to module description.
+ * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
+ here...
+ * modules/usleep (configure.ac): ... to here.
+
2011-05-22 Bruno Haible <bruno@clisp.org>
unlockpt: Move AC_LIBOBJ invocations to module description.
-# usleep.m4 serial 1
+# usleep.m4 serial 2
dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
type if <sys/types.h> lacks this type.])])
if test $ac_cv_func_usleep = no; then
HAVE_USLEEP=0
- AC_LIBOBJ([usleep])
else
dnl POSIX allows implementations to reject arguments larger than
dnl 999999, but GNU guarantees it will work.
[gl_cv_func_usleep_works="guessing no"])])
if test "$gl_cv_func_usleep_works" != yes; then
REPLACE_USLEEP=1
- AC_LIBOBJ([usleep])
fi
fi
])
configure.ac:
gl_FUNC_USLEEP
+if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then
+ AC_LIBOBJ([usleep])
+fi
gl_UNISTD_MODULE_INDICATOR([usleep])
Makefile.am: