[PATCH 759286] Use toplevel config.{sub,guess} and install-sh

Kelley Cook <[email protected]> Mon, 23 Jun 2003 11:49:25 -0400
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
I apologize in advance, if I'm double posting this.  I already sent this 
to 
http://sourceforge.net/tracker/index.php?func=detail&aid=759286&group_id=2435&atid=302435

Currently, both the mingw and w32api directories have outdated 
config.sub and config.guess. Namely, they don't have support the aliases 
for Pentium III, Pentium 4 or any of the SSE enabled Athlons.

Instead of importing the corrections, this patch deletes those bogus 
copies and uses the toplevel copies, like good GNU programs are supposed 
to.

The only catch is that autoconf, by default, only searches two levels up 
for the toplevel, so the mingwex and profile directories (being three 
away from the toplevel) stopped working.

This was easy to fix by adding in one line to both of those directory's 
configure.in.

Tested by compiling the winsup tree on both i686-pc-cygwin and 
pentium4-pc-cygwin

Kelley Cook
mingw-tl.diff (text/plain, 1.6 KB)
(mingw directory)
2003-06-23  Kelley Cook  <kelleycook-EnPF47/[email protected]>

	* config.sub: Remove.
	* config.guess: Remove.
	* install-sh: Remove.
	* mingwex/configure.in: Add in AC_CONFIG_AUX_DIRS
	* mingwex/configure: Regenerate.
	* profile/configure.in: Add in AC_CONFIG_AUX_DIRS
	* profile/configure: Regenerate.

(w32api directory)
2003-06-23  Kelley Cook  <kelleycook-EnPF47/[email protected]>
	* config.sub: Remove.
	* config.guess: Remove.
	* install-sh: Remove.
 
diff -Nurp /home/kcook34/cygwin-snapshot-20030620-1/winsup/mingw/mingwex/configure.in ./mingw/mingwex/configure.in
--- /home/kcook34/cygwin-snapshot-20030620-1/winsup/mingw/mingwex/configure.in	2003-05-10 00:48:29.000000000 -0400
+++ ./mingw/mingwex/configure.in	2003-06-23 11:14:50.000000000 -0400
@@ -33,6 +33,10 @@ DLLTOOL=${DLLTOOL-dlltool}
 AC_SUBST(DLLTOOL)
 DLLWRAP=${DLLWRAP-dllwrap}
 AC_SUBST(DLLWRAP)
+
+dnl Check up to three subdirectories up
+AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../.. $srcdir/../../..)
+
 AC_CANONICAL_SYSTEM
 
 case "$target_os" in
diff -Nurp /home/kcook34/cygwin-snapshot-20030620-1/winsup/mingw/profile/configure.in ./mingw/profile/configure.in
--- /home/kcook34/cygwin-snapshot-20030620-1/winsup/mingw/profile/configure.in	2003-05-10 00:48:29.000000000 -0400
+++ ./mingw/profile/configure.in	2003-06-23 11:12:52.000000000 -0400
@@ -33,6 +33,10 @@ DLLTOOL=${DLLTOOL-dlltool}
 AC_SUBST(DLLTOOL)
 DLLWRAP=${DLLWRAP-dllwrap}
 AC_SUBST(DLLWRAP)
+
+dnl Check up to three subdirectories up
+AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../.. $srcdir/../../..)
+
 AC_CANONICAL_SYSTEM
 
 LIBGMON_A=libgmon.a