[1664] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

bug in acconfig.h handing by AC_CONFIG_SUBDIRS in autoconf 2.10

daemon@ATHENA.MIT.EDU (Marc Horowitz)
Thu Aug 29 13:22:45 1996

To: bug-gnu-utils@prep.ai.mit.edu
Cc: krbcore@MIT.EDU
Date: Thu, 29 Aug 1996 13:22:40 EDT
From: Marc Horowitz <marc@MIT.EDU>

If you use AC_CONFIG_SUBDIRS to recursively handle a subdirectory
which uses AC_CONFIG_HEADER, the subdirectory's acconfig.h will not be
included in the generated foo.h.in, causing errors later.  The fix is
simple:

Index: autoheader.sh
===================================================================
RCS file: /mit/krbdev/.cvsroot/src/util/autoconf/autoheader.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -c -r1.4 -r1.5
*** autoheader.sh	1996/05/20 22:08:17	1.4
--- autoheader.sh	1996/07/22 20:43:20	1.5
***************
*** 85,90 ****
--- 85,91 ----
  fi
  
  TEMPLATES="${AC_MACRODIR}/acconfig.h"
+ test -r ./acconfig.h && TEMPLATES="${TEMPLATES} ./acconfig.h"
  test -r $localdir/acconfig.h && TEMPLATES="${TEMPLATES} $localdir/acconfig.h"
  
  case $# in

		Marc

home help back first fref pref prev next nref lref last post