From: Bruno Haible Date: Sat, 7 May 2011 11:42:47 +0000 (+0200) Subject: ftruncate: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2576 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=b86af1d69b0836b03c3a60f1d1ec01e9776fe515;p=gnulib.git ftruncate: Move AC_LIBOBJ invocations to module description. * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and gl_PREREQ_FTRUNCATE invocations from here... * modules/ftruncate (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 18546a2c7..9513a99d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-07 Bruno Haible + ftruncate: Move AC_LIBOBJ invocations to module description. + * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and + gl_PREREQ_FTRUNCATE invocations from here... + * modules/ftruncate (configure.ac): ... to here. + +2011-05-07 Bruno Haible + fsync: Move AC_LIBOBJ invocations to module description. * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC invocations from here... diff --git a/m4/ftruncate.m4 b/m4/ftruncate.m4 index 95d3daba1..c3c334265 100644 --- a/m4/ftruncate.m4 +++ b/m4/ftruncate.m4 @@ -1,4 +1,4 @@ -# serial 15 +# serial 16 # See if we need to emulate a missing ftruncate function using fcntl or chsize. @@ -21,8 +21,6 @@ AC_DEFUN([gl_FUNC_FTRUNCATE], AC_CHECK_FUNCS_ONCE([ftruncate]) if test $ac_cv_func_ftruncate = no; then HAVE_FTRUNCATE=0 - AC_LIBOBJ([ftruncate]) - gl_PREREQ_FTRUNCATE case "$host_os" in mingw*) # Yes, we know mingw lacks ftruncate. diff --git a/modules/ftruncate b/modules/ftruncate index e8aec5d95..6be248c84 100644 --- a/modules/ftruncate +++ b/modules/ftruncate @@ -16,6 +16,10 @@ unistd configure.ac: gl_FUNC_FTRUNCATE +if test $HAVE_FTRUNCATE = 0; then + AC_LIBOBJ([ftruncate]) + gl_PREREQ_FTRUNCATE +fi gl_UNISTD_MODULE_INDICATOR([ftruncate]) Makefile.am: