[PATCH] xorg-macros.m4.in minor fix for incorrect warning message

Dan danstowell+xorg at gmail.com
Wed Feb 18 14:52:40 PST 2009


Hi -

One of the warnings in xorg-macros.m4.in is wrong, it prints out the
wrong version when it says "requires version x.x". Patch pasted below
against http://cgit.freedesktop.org/xorg/util/macros/tree/xorg-macros.m4.in
- not a proper git patch sorry, but hope OK and sensible

Dan
-- 
http://www.mcld.co.uk
-------------- next part --------------
--- xorg-macros.m4.in.txt	2009-02-18 22:36:42.000000000 +0000
+++ xorg-macros.m4.in copy.txt	2009-02-18 22:37:27.000000000 +0000
@@ -51,10 +51,10 @@
 	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
 	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
 	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
-		AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
+		AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.x])
 	fi
 	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
-		AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
+		AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}.0 or newer])
 	fi
 	AC_MSG_RESULT([yes, $XORG_MACROS_version])
 ]) # XORG_MACROS_VERSION


More information about the xorg mailing list