I would like to send this patch into the gdb folks to make 
cross-compilation of gdb for the hurd more friendly.  Would you guys mind 
taking a look at letting me know if I've missed anything?  I particular, 
if you know of a better case for testing for Hurd's host triple and 
succesfully distinguishing it from that of Linux's.

The things I do to avoid studying!  Wish me luck =) [21 hours, 25 
minutes to go....]

2000-02-25  Jeff Bailey  <[EMAIL PROTECTED]>

        * configure.in: Add test for MiG when host=i[3456]-*-gnu

        * Makefile.in: Makefile component to accept this

        * config/i386/i386mh.gnu: Don't overide def'n of MIG

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.8
diff -u -w -r1.8 Makefile.in
--- Makefile.in 2000/02/24 08:16:26     1.8
+++ Makefile.in 2000/02/26 07:27:12
@@ -59,6 +59,7 @@
 RANLIB = @RANLIB@
 DLLTOOL = @DLLTOOL@
 WINDRES = @WINDRES@
+MIG = @MIG@

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.7
diff -u -w -r1.7 configure.in
--- configure.in        2000/02/24 08:16:26     1.7
+++ configure.in        2000/02/26 07:27:13
@@ -77,6 +77,14 @@
 AC_CHECK_TOOL(RANLIB, ranlib, :)
 AC_PROG_YACC

+dnl GNU/Hurd requires MiG for compilation.
+
+case "${host}" in
+i[[3456]]86-*-gnu)
+       AC_CHECK_TOOL(MIG, mig)
+       ;;
+esac
+
 AC_ARG_PROGRAM

 AC_TYPE_SIGNAL
Index: config/i386/i386gnu.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/i386gnu.mh,v
retrieving revision 1.1.1.1
diff -u -w -r1.1.1.1 i386gnu.mh
--- i386gnu.mh  1999/04/16 01:34:18     1.1.1.1
+++ i386gnu.mh  2000/02/26 07:27:14
@@ -12,7 +12,6 @@
 msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;'

 # ick
-MIG = mig
 MIGCOM = $(MIG) -cc cat - /dev/null

 # Reply servers need special massaging of the code mig generates, to make


-- 
Do not meddle in the affairs of cyborgs for you are conductive and
can support 110 volts.

Reply via email to