--- /dev/null
+diff -Naur --exclude=CVS med_fichier2.2.3.src/config/ac_check_hosttag.m4 med_fichier2.2.3.src.patched/config/ac_check_hosttag.m4
+--- med_fichier2.2.3.src/config/ac_check_hosttag.m4 2005-03-17 16:45:52.000000000 +0300
++++ med_fichier2.2.3.src.patched/config/ac_check_hosttag.m4 2007-04-18 17:39:49.000000000 +0400
+@@ -71,7 +71,36 @@
+ ;;
+ esac
+
+-CPPFLAGS="$CPPFLAGS -D$machine -D$f77int -D_MESGERR_"
++CPPFLAGS="$CPPFLAGS -D$machine -D$f77int"
++
++# BEGIN: Debug messages (-D_MESGERR_)
++define([AC_ENABLE_DEBUGMGS_DEFAULT], ifelse($1, yes, yes, no))dnl
++AC_ARG_ENABLE(debug-msg,
++changequote(<<, >>)dnl
++<< --enable-debug-msg[=PKGS] enable debug messages [default=>>AC_ENABLE_DEBUGMGS_DEFAULT],
++changequote([, ])dnl
++[p=${PACKAGE-default}
++case "$enableval" in
++yes) enable_debugmsg=yes ;;
++no) enable_debugmsg=no ;;
++*)
++ enable_debugmsg=no
++ # Look at the argument we got. We use all the common list separators.
++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
++ for pkg in $enableval; do
++ if test "X$pkg" = "X$p"; then
++ enable_debugmsg=yes
++ fi
++ done
++ IFS="$ac_save_ifs"
++ ;;
++esac],
++enable_debugmsg=AC_ENABLE_DEBUGMGS_DEFAULT)dnl
++
++if test "X$enable_debugmsg" = "Xyes"; then
++ CPPFLAGS="$CPPFLAGS -D_MESGERR_"
++fi
++# END: Debug messages (-D_MESGERR_)
+
+ host_config="none"
+ for f in $host_cpu-$host_vendor-$host_os \