diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-07-27 10:31:14 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-07-27 10:31:14 +0200 |
commit | 722a56439aa5972c830e4a9a724cf52aff4a950a (patch) | |
tree | 47e4b50f770c0e0e549f129a699f1ade2783f5fe /configure.ac | |
parent | Move libcrypto into CHANNELLIBS. (diff) | |
download | openssh-722a56439aa5972c830e4a9a724cf52aff4a950a.tar.xz openssh-722a56439aa5972c830e4a9a724cf52aff4a950a.zip |
Move stale-configure check as early as possible.
We added a check in Makefile to catch the case where configure needs to
be rebuilt, however this did not happen until a build was attempted in
which case all of the work done by configure was wasted. Move this check
to the start of configure to catch it as early as possible. ok djm@
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 33f9b5f9e..87fad7084 100644 --- a/configure.ac +++ b/configure.ac @@ -16,6 +16,14 @@ AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([ssh.c]) + +# Check for stale configure as early as possible. +for i in $srcdir/configure.ac $srcdir/m4/*.m4; do + if test "$i" -nt "$srcdir/configure"; then + AC_MSG_ERROR([$i newer than configure, run autoreconf]) + fi +done + AC_LANG([C]) AC_CONFIG_HEADERS([config.h]) |