Re: [patch] for mig check in GDB's configure

Thomas Schwinge
2013-05-16T21:55:34Z

[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]

Hi!

Sorry for the delay.

On Sat, 4 May 2013 16:29:01 +0800, Yue Lu <hacklu.newborn@gmail.com> wrote:
> * configure.ac: Ensure MIG is available when building for GNU
> * Hurd.

After reviewing and testing it, I now checked in your patch (very minor
coding style and wording changes). Congratulations to your first
contribution! :-)

2013-05-16 Yue Lu <hacklu.newborn@gmail.com>

* configure.ac: Ensure MIG is available when building for GNU Hurd
hosts.
* configure: Regenerate.

Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.203
diff -u -p -r1.203 configure.ac
--- configure.ac 10 May 2013 16:10:40 -0000 1.203
+++ configure.ac 16 May 2013 21:50:18 -0000
@@ -486,8 +486,15 @@ AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(DLLTOOL, dlltool)
AC_CHECK_TOOL(WINDRES, windres)

-# Needed for GNU/Hurd.
-AC_CHECK_TOOL(MIG, mig)
+case $host_os in
+ gnu*)
+ # Needed for GNU Hurd hosts.
+ AC_CHECK_TOOL(MIG, mig)
+ if test x"$MIG" = x; then
+ AC_MSG_ERROR([MIG not found but required for $host hosts])
+ fi
+ ;;
+esac

# ---------------------- #
# Checks for libraries. #
Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/configure,v
retrieving revision 1.391
diff -u -p -r1.391 configure
--- configure 10 May 2013 16:10:40 -0000 1.391
+++ configure 16 May 2013 21:50:20 -0000
[...]

Grüße,
Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]