From: Todd C. Miller Date: Tue, 20 Jun 1995 20:56:03 +0000 (+0000) Subject: SUDO_FUNC_UTIME_NULL -> AC_FUNC_UTIME_NULL X-Git-Tag: SUDO_1_4_0~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbec8fc769e96a7d0d1271f83e7de868d42c4913;p=sudo SUDO_FUNC_UTIME_NULL -> AC_FUNC_UTIME_NULL --- diff --git a/aclocal.m4 b/aclocal.m4 index d3b7ed608..56d9e7e84 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -152,30 +152,6 @@ AC_DEFUN(SUDO_TYPE_SSIZE_T, [SUDO_CHECK_TYPE(ssize_t, int)]) dnl -dnl Check to see if POSIX utime() takes a null arg -dnl (only change from AC_FUNC_UTIME_NULL is an added sleep(1) -dnl -AC_DEFUN(SUDO_FUNC_UTIME_NULL, -[AC_MSG_CHECKING(whether utime accepts a null argument) -AC_CACHE_VAL(ac_cv_func_utime_null, -[rm -f conftestdata; > conftestdata -# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. -AC_TRY_RUN([#include -#include -main() { -struct stat s, t; -exit(!(stat ("conftestdata", &s) == 0 && !sleep(1) && utime("conftestdata", (long *)0) == 0 -&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime -&& t.st_mtime - s.st_mtime < 120)); -}], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no, - ac_cv_func_utime_null=no) -rm -f core core.* *.core])dnl -AC_MSG_RESULT($ac_cv_func_utime_null) -if test $ac_cv_func_utime_null = yes; then - AC_DEFINE(HAVE_UTIME_NULL) -fi -]) - dnl check for POSIX utime() using struct utimbuf dnl AC_DEFUN(SUDO_FUNC_UTIME_POSIX, diff --git a/configure.in b/configure.in index 0399109f9..53dfdc990 100644 --- a/configure.in +++ b/configure.in @@ -246,7 +246,7 @@ AC_CHECK_FUNC(lsearch, AC_DEFINE(HAVE_LSEARCH), LIBOBJS="$LIBOBJS lsearch.o") AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV), AC_FUNC_CHECK(putenv, AC_DEFINE(HAVE_PUTENV), LIBOBJS="$LIBOBJS putenv.o")) AC_CHECK_FUNC(utime, AC_DEFINE(HAVE_UTIME) SUDO_FUNC_UTIME_POSIX -SUDO_FUNC_UTIME_NULL, LIBOBJS="$LIBOBJS utime.o") +AC_FUNC_UTIME_NULL, LIBOBJS="$LIBOBJS utime.o") dnl dnl if crypt(3) not in libc, look elsewhere dnl