From: Bruno Haible Date: Sun, 22 May 2011 15:46:30 +0000 (+0200) Subject: utimensat: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41d7a701b4d32af0f1a858ab633e598d8c0f1229;p=pspp utimensat: Move AC_LIBOBJ invocations to module description. * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from here... * modules/utimensat (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index ca1d6e8ee0..6c8fb2f47a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Bruno Haible + + utimensat: Move AC_LIBOBJ invocations to module description. + * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from + here... + * modules/utimensat (configure.ac): ... to here. + 2011-05-22 Bruno Haible usleep: Move AC_LIBOBJ invocations to module description. diff --git a/m4/utimensat.m4 b/m4/utimensat.m4 index 78472a5fbd..ddba726071 100644 --- a/m4/utimensat.m4 +++ b/m4/utimensat.m4 @@ -1,4 +1,4 @@ -# serial 4 +# serial 5 # See if we need to provide utimensat replacement. dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. @@ -15,7 +15,6 @@ AC_DEFUN([gl_FUNC_UTIMENSAT], AC_CHECK_FUNCS_ONCE([utimensat]) if test $ac_cv_func_utimensat = no; then HAVE_UTIMENSAT=0 - AC_LIBOBJ([utimensat]) else AC_CACHE_CHECK([whether utimensat works], [gl_cv_func_utimensat_works], @@ -67,7 +66,6 @@ choke me [gl_cv_func_utimensat_works="guessing no"])]) if test "$gl_cv_func_utimensat_works" != yes; then REPLACE_UTIMENSAT=1 - AC_LIBOBJ([utimensat]) fi fi ]) diff --git a/modules/utimensat b/modules/utimensat index 858fee18b7..a70ca8cbb2 100644 --- a/modules/utimensat +++ b/modules/utimensat @@ -13,6 +13,9 @@ utimens [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] configure.ac: gl_FUNC_UTIMENSAT +if test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1; then + AC_LIBOBJ([utimensat]) +fi gl_SYS_STAT_MODULE_INDICATOR([utimensat]) Makefile.am: