From a5b5fbadedf4fa3fa06d45195411eb905ff2b860 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Mon, 24 Oct 1994 19:01:21 +0000 Subject: [PATCH] Only rerun autoconf if the configure.in file is more recent than the configure file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4560 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/reconf | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/util/reconf b/src/util/reconf index ad5ab26d2..3d76fb8fd 100644 --- a/src/util/reconf +++ b/src/util/reconf @@ -1,3 +1,17 @@ -./util/autoconf/autoconf --recur --macrodir=util/autoconf +#!/bin/sh + +for i in `find . -name configure.in -print` +do + config=`echo $i | sed -e 's/.in$//'` + if test ! -f $config || \ + find $i -newer $config -print | grep configure.in > /dev/null + then + dir=`dirname $i` + topdir=`echo $dir | sed -e 's;/[^/]*;/..;g'` + echo "cd $dir; $topdir/util/autoconf/autoconf --topdir=$topdir --macrodir=$topdir/util/autoconf" + ( cd $dir; $topdir/util/autoconf/autoconf --topdir=$topdir --macrodir=$topdir/util/autoconf ) + fi +done + cd include/krb5 ../../util/autoconf/autoheader --macrodir=../../util/autoconf -- 2.26.2