Ethereal-dev: [Ethereal-dev] config.sub and config.guess

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: aferen@xxxxxxxxxxxx (Andrew C. Feren)
Date: 26 Dec 2001 17:12:36 -0500
Rather than putting "config.sub" and "config.guess" in cvs could they
be named something else like config.*.real or config.*.keep.

Rationalized reasoning:

It seems awkward and confusing to have files which are typically
autogenerated included in source control.  I'd rather let autoconf and
libtool do their thing and then just copy the real version on top at
the end.  Rather than having a file, moving the file, copy in the
autogen version, clobber the autogen version with my saved copy.
The current setup seems confusing to me.


Real reasoning:

I have the entire ethereal tree in my local src control.  This allows
me to easily version my files, do nightly builds and even merge in new
ethereal releases.  The problem is that my source control system
(clearcase) doesn't really like having versioned files deleted and
replaced.  To "change" the files I would have to check out
config.guess and config.sub everytime I do a clean build. 


I can edit my local version, but that means more work everytime I
merge in a new release.  I do, honestly, find having
config.[sub|guess] move around to avoid getting clobbered a bit
awkward and potentially confusing.  

This patch works, but should probably be cleaned up (edit the comment)
before being committed to cvs.  I assumed the temporary files were named

config.guess.save-libtool
config.sub.save-libtool

since those were the temporary names used by autogen.sh.

Index: autogen.sh
===================================================================
RCS file: /cvsroot/ethereal/autogen.sh,v
retrieving revision 1.15
diff -u -r1.15 autogen.sh
--- autogen.sh	2001/12/09 21:05:54	1.15
+++ autogen.sh	2001/12/26 21:55:06
@@ -75,12 +75,14 @@
 # We don't omit "--force", as we want libtoolize to install other files
 # without whining.
 #
-mv config.guess config.guess.save-libtool
-mv config.sub config.sub.save-libtool
+# mv config.guess config.guess.save-libtool
+# mv config.sub config.sub.save-libtool
 libtoolize --copy --force || exit 1
 rm -f config.guess config.sub
-mv config.guess.save-libtool config.guess
-mv config.sub.save-libtool config.sub
+
+# grab our copy of config.guess and config.sub
+cp config.guess.save-libtool config.guess
+cp config.sub.save-libtool config.sub
 
 if test -z "$*"; then
 	echo "Running ./configure with no arguments. If you wish to pass any,"

-- 
-Andrew Feren
 Cetacean Networks, Inc.
 Portsmouth, NH