From: vsr Date: Thu, 19 Apr 2007 06:46:39 +0000 (+0000) Subject: integrate patch for med 2.2.3: turn off debug messages X-Git-Tag: V_3_2_9~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d66c8905c23d71afe715595d10d1e8f5a6e74dd3;p=tools%2Finstall.git integrate patch for med 2.2.3: turn off debug messages --- diff --git a/config_files/patches/med-2.2.3-debugmsg.patch b/config_files/patches/med-2.2.3-debugmsg.patch new file mode 100755 index 0000000..83b4c89 --- /dev/null +++ b/config_files/patches/med-2.2.3-debugmsg.patch @@ -0,0 +1,41 @@ +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 \