--- gutenprint-5.1.3/configure.ac.orig 2007-08-03 11:25:39.282896101 +0700
+++ gutenprint-5.1.3/configure.ac 2007-06-17 21:24:53.000000000 +0700
@@ -211,7 +211,7 @@
BUILD_TRANSLATED_CUPS_PPDS="${BUILD_CUPS}"
BUILD_CUPS_1_2="no"
if test -n "${CUPS_CONFIG}" -a "${BUILD_CUPS}" = "yes" ; then
- cups_version=`${CUPS_CONFIG} --version`
+ cups_version=`${CUPS_CONFIG} --version|sed s'/rc.*$/.0/'`
dnl Quote to protect sed regexes
[cups_major=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'`]
[cups_minor=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`]