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

Yue Lu
2013-05-04T08:29:21Z

Hi!

thanks for your review.

On Fri, May 3, 2013 at 8:57 PM, Ivan Shmakov <oneingray@gmail.com> wrote:
> A few minor points.
>

I have update this patch after your feedback.

From b50f9b2f9ab1792ad584d07c9d2da3c5857d82fe Mon Sep 17 00:00:00 2001
From: hacklu <hacklu.newborn@gmail.com>
Date: Sat, 4 May 2013 16:17:25 +0800
Subject: [PATCH] Ensure MIG is available On GNU Hurd

* configure.ac: Ensure MIG is available when building for GNU
* Hurd.
* configure: Regenerate.
---
gdb/ChangeLog | 5 +++++
gdb/configure.ac | 11 +++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 12254b7..4fa69ac 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-04 Yue Lu <hacklu.newborn@gmail.com>
+
+ * configure.ac: Ensure MIG is available when building for GNU Hurd.
+ * configure: Regenerate.
+
2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>

* i386gnu-nat.c (CREG_OFFSET): New macro.
diff --git a/gdb/configure.ac b/gdb/configure.ac
index bb7fbdd..29c68b4 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -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.
+ AC_CHECK_TOOL(MIG, mig)
+ if test "$MIG" = "" ; then
+ AC_MSG_ERROR([MIG not found but required for $host])
+ fi
+ ;;
+esac

# ---------------------- #
# Checks for libraries. #
--
1.7.0.4

--
Yue Lu (陆岳)