diff options
| author | Theodore Tso <tytso@mit.edu> | 1994-10-24 19:01:21 +0000 |
|---|---|---|
| committer | Theodore Tso <tytso@mit.edu> | 1994-10-24 19:01:21 +0000 |
| commit | a5b5fbadedf4fa3fa06d45195411eb905ff2b860 (patch) | |
| tree | f663ab8692fb23e45bfefdf80b5c33a450ae50df /src/util/reconf | |
| parent | 4f941b8850ab62e01793a50d8fc0caf2e67df012 (diff) | |
| download | krb5-a5b5fbadedf4fa3fa06d45195411eb905ff2b860.tar.gz krb5-a5b5fbadedf4fa3fa06d45195411eb905ff2b860.tar.xz krb5-a5b5fbadedf4fa3fa06d45195411eb905ff2b860.zip | |
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
Diffstat (limited to 'src/util/reconf')
| -rw-r--r-- | src/util/reconf | 16 |
1 files changed, 15 insertions, 1 deletions
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 |
