+2011-05-06 Bruno Haible <bruno@clisp.org>
+
+ fdopendir: Move AC_LIBOBJ invocations to module description.
+ * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
+ here...
+ * modules/fdopendir (configure.ac): ... to here.
+ (Depends-on): Improve conditions.
+
2011-05-06 Bruno Haible <bruno@clisp.org>
_Exit: Move AC_LIBOBJ invocations to module description.
-# serial 6
+# serial 7
# See if we need to provide fdopendir.
dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
]])
AC_CHECK_FUNCS_ONCE([fdopendir])
if test $ac_cv_func_fdopendir = no; then
- AC_LIBOBJ([openat-proc])
- AC_LIBOBJ([fdopendir])
HAVE_FDOPENDIR=0
else
AC_CACHE_CHECK([whether fdopendir works],
[gl_cv_func_fdopendir_works="guessing no"])])
if test "$gl_cv_func_fdopendir_works" != yes; then
REPLACE_FDOPENDIR=1
- AC_LIBOBJ([fdopendir])
fi
fi
])
Depends-on:
dirent
extensions
-errno [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
-fchdir [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
-openat-die [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
-save-cwd [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1]
+errno [test $HAVE_FDOPENDIR = 0]
+fchdir [test $HAVE_FDOPENDIR = 0]
+openat-die [test $HAVE_FDOPENDIR = 0]
+save-cwd [test $HAVE_FDOPENDIR = 0]
configure.ac:
gl_FUNC_FDOPENDIR
+if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
+ AC_LIBOBJ([fdopendir])
+fi
+if test $HAVE_FDOPENDIR = 0; then
+ AC_LIBOBJ([openat-proc])
+fi
gl_DIRENT_MODULE_INDICATOR([fdopendir])
gl_MODULE_INDICATOR([fdopendir])