Edit

kc3-lang/automake/m4/sanity.m4

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1997-02-23 07:19:33
    Hash : 12324415
    Message : bug fix

  • m4/sanity.m4
  • #
    # Check to make sure that the build environment is sane.
    #
    
    AC_DEFUN(AM_SANITY_CHECK,
    [AC_MSG_CHECKING([whether build environment is sane])
    echo timestamp > conftestfile
    # Do `set' in a subshell so we don't clobber the current shell's
    # arguments.  Must try -L first in case configure is actually a
    # symlink; some systems play weird games with the mod time of symlinks
    # (eg FreeBSD returns the mod time of the symlink's containing
    # directory).
    if (
       set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
       if test "$@" = "X"; then
          # -L didn't work.
          set X `ls -t $srcdir/configure conftestfile`
       fi
       test "[$]2" = conftestfile
       )
    then
       # Ok.
       :
    else
       AC_MSG_ERROR([newly created file is older than distributed files!
    Check your system clock])
    fi
    rm -f conftest*
    AC_MSG_RESULT(yes)])