PATCH: send error messages to stderr

Gerald Pfeifer gerald at pfeifer.com
Tue Jun 13 19:33:30 CDT 2006


If something makes configure fail and return a non-zero exit code, it
really should issue error messages to stderr, not stdout.  Those errors
and warnings generated by autoconf itself, and not manually implemented,
handle it this way, so I hope we can do this here as well?

(This would have saved me quite some efforts recently.)

Gerald

ChangeLog:
Output warnings on FontForge or FreeType missing to stderr, since these
conditions make configure fail.

Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.498
diff -u -r1.498 configure.ac
--- configure.ac	8 Jun 2006 10:07:33 -0000	1.498
+++ configure.ac	14 Jun 2006 00:24:50 -0000
@@ -1856,11 +1856,11 @@
   echo
   if test "$FONTFORGE" = "false"
   then
-    echo "*** Warning: FontForge is missing."
+    echo "*** Warning: FontForge is missing." >&2
   else
-    echo "*** Warning: FreeType is missing."
+    echo "*** Warning: FreeType is missing." >&2
   fi
-  echo "*** Fonts will not be built. Dialog text may be invisible or unaligned."
+  echo "*** Fonts will not be built. Dialog text may be invisible or unaligned." >&2
   exitcode=1
 fi
 



More information about the wine-patches mailing list