21.5
I don't know if this is a great idea or not. My git repositories do
not contain configure or src/depend, and every time I do "git clone"
(or even "git pull" in some situations) I get bit.
This patch adds a configure test for existence of src/depend, and if
it doesn't exist, configure tries to create it (in $srcdir/src). As
far as I can tell this is guaranteed win---if src/depend exists, it's
a no-op and if it doesn't configure will succeed where it used to fail
because it couldn't find depend.
I wonder if it wouldn't be better to create it in $blddir.
Comments requested.
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/ChangeLog,v
retrieving revision 1.506
diff -u -r1.506 ChangeLog
--- ChangeLog 6 Jun 2006 00:18:28 -0000 1.506
+++ ChangeLog 23 Jun 2006 14:10:20 -0000
@@ -0,0 +1,5 @@
+2006-06-23 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * configure.ac (Build Makefile.in's from Makefile.in.in's):
+ Create $srcdir/src/depend if it's missing.
+
Index: configure.ac
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.ac,v
retrieving revision 1.43
diff -u -r1.43 configure.ac
--- configure.ac 6 Jun 2006 00:18:29 -0000 1.43
+++ configure.ac 23 Jun 2006 14:10:21 -0000
@@ -6218,6 +6218,14 @@
dnl module Makefiles will have the common text in
dnl modules/common/Makefile.common appended.
+dnl this actually should be conditional on having perl (ie, effectively
+dnl unconditional on sane systems)
+if test -r $srcdir/src/depend; then :;
+else
+ echo "creating $srcdir/src/depend"
+ perl $srcdir/src/make-src-depend > $srcdir/src/depend
+fi
+
for file in $internal_makefile_list; do
case $file in
src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
--
Graduate School of Systems and Information Engineering University of Tsukuba
http://turnbull.sk.tsukuba.ac.jp/ Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Economics of Information Communication and Computation Systems
Experimental Economics, Microeconomic Theory, Game Theory