1From b43c0ccd1d98a43c0ddcade40fa288e98d381420 Mon Sep 17 00:00:00 2001 2From: Richard Purdie <richard.purdie@linuxfoundation.org> 3Date: Mon, 7 Dec 2015 18:28:05 +0000 4Subject: [PATCH 6/6] automake: Remove delays in configure scripts using 5 automake 6 7By default automake puts "sleep 1" into the start of configure scripts 8which adds pointless delays to them. Rather than do this, lets just assume 9our systems are sane. 10 11RP 122015/12/7 13Upstream-Status: Inappropriate 14--- 15 m4/sanity.m4 | 48 +----------------------------------------------- 16 1 file changed, 1 insertion(+), 47 deletions(-) 17 18diff --git a/m4/sanity.m4 b/m4/sanity.m4 19index c7f32da..f25625a 100644 20--- a/m4/sanity.m4 21+++ b/m4/sanity.m4 22@@ -176,51 +176,5 @@ case $srcdir in 23 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 24 esac 25 26-# Do 'set' in a subshell so we don't clobber the current shell's 27-# arguments. Must try -L first in case configure is actually a 28-# symlink; some systems play weird games with the mod time of symlinks 29-# (eg FreeBSD returns the mod time of the symlink's containing 30-# directory). 31-am_build_env_is_sane=no 32-am_has_slept=no 33-rm -f conftest.file 34-for am_try in 1 2; do 35- echo "timestamp, slept: $am_has_slept" > conftest.file 36- if ( 37- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 38- if test "$[]*" = "X"; then 39- # -L didn't work. 40- set X `ls -t "$srcdir/configure" conftest.file` 41- fi 42- test "$[]2" = conftest.file 43- ); then 44- am_build_env_is_sane=yes 45- break 46- fi 47- # Just in case. 48- sleep "$am_cv_filesystem_timestamp_resolution" 49- am_has_slept=yes 50-done 51- 52-AC_MSG_RESULT([$am_build_env_is_sane]) 53-if test "$am_build_env_is_sane" = no; then 54- AC_MSG_ERROR([newly created file is older than distributed files! 55-Check your system clock]) 56-fi 57- 58-# If we didn't sleep, we still need to ensure time stamps of config.status and 59-# generated files are strictly newer. 60-am_sleep_pid= 61-AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl 62- ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 63- am_sleep_pid=$! 64-]) 65-AC_CONFIG_COMMANDS_PRE( 66- [AC_MSG_CHECKING([that generated files are newer than configure]) 67- if test -n "$am_sleep_pid"; then 68- # Hide warnings about reused PIDs. 69- wait $am_sleep_pid 2>/dev/null 70- fi 71- AC_MSG_RESULT([done])]) 72-rm -f conftest.file 73+AC_MSG_RESULT([yes]) 74 ]) 75-- 762.39.2 77 78