+2013-05-16 Yue Lu <hacklu.newborn@gmail.com>
+
+ * configure.ac: Ensure MIG is available when building for GNU Hurd
+ hosts.
+ * configure: Regenerate.
+
2013-05-16 Joel Brobecker <brobecker@adacore.com>
* dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
fi
-# Needed for GNU/Hurd.
-if test -n "$ac_tool_prefix"; then
+case $host_os in
+ gnu*)
+ # Needed for GNU Hurd hosts.
+ if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
set dummy ${ac_tool_prefix}mig; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
MIG="$ac_cv_prog_MIG"
fi
+ if test x"$MIG" = x; then
+ as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
+ fi
+ ;;
+esac
# ---------------------- #
# Checks for libraries. #
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. #