Only check whether linux/mii.h can be processed so that we don't
generate ugly warnings by trying to compile it.

Patch from Eric Estievenart <eric.estievenart@free.fr>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2613 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index e64c318..a9f287a 100644
--- a/configure.in
+++ b/configure.in
@@ -350,9 +350,12 @@
 AC_HEADER_STDC
 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h sys/endian.h endian.h termios.h unistd.h utime.h linux/fb.h mqueue.h linux/compiler.h])
 
-AC_CHECK_HEADERS([linux/mii.h])
-AC_MSG_RESULT([           (Nb: Valgrind users, please ignore any warnings about mii.h)])
-AC_MSG_RESULT([           (They are not important)])
+AH_TEMPLATE([HAVE_LINUX_MII_H], [])
+AC_MSG_CHECKING([for linux/mii.h])
+AC_PREPROC_IFELSE([#include <linux/mii.h>],
+                   [AC_DEFINE([HAVE_LINUX_MII_H])
+                    AC_MSG_RESULT([yes])],
+                   [AC_MSG_RESULT([no])])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_UID_T