diff options
author | John Mark Vandenberg <jayvdb@gmail.com> | 2006-02-03 01:30:32 +0000 |
---|---|---|
committer | John Mark Vandenberg <jayvdb@gmail.com> | 2006-02-03 01:30:32 +0000 |
commit | 3cb53cff1ad988b01c3f6db42d1061f6317a98ce (patch) | |
tree | 2e9b266e6e70a8fc2be5081f7eaf619df3293fe3 | |
parent | fd3bc629d7e9f3ed299bb4008b73c5dbf642299e (diff) | |
download | quilt-3cb53cff1ad988b01c3f6db42d1061f6317a98ce.tar.gz |
Added configure.ac check for GNU diff and fixed GNU patch check
to use $GREP -q
-rw-r--r-- | configure.ac | 29 | ||||
-rw-r--r-- | quilt.changes | 6 |
2 files changed, 33 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 2329119..4f52a8e 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT([quilt],[0.43],[quilt-dev@nongnu.org]) AC_CONFIG_AUX_DIR(config) AC_PREREQ(2.53) -AC_REVISION ($Revision: 1.72 $) +AC_REVISION ($Revision: 1.73 $) PACKAGE_RELEASE=1 AC_SUBST(PACKAGE_RELEASE) @@ -220,9 +220,34 @@ fi QUILT_COMPAT_PROG_PATH(DIFF, diff) QUILT_COMPAT_PROG_PATH(PATCH, patch) +# Sun diff and others will not work because GNU patch options are used. +AC_MSG_CHECKING([the version of $DIFF]) +if $DIFF --version 2>/dev/null | grep GNU >/dev/null; then + set -- `$DIFF --version 2>/dev/null | $AWK '{ print $NF; exit }'` + diff_version=$1 + AC_MSG_RESULT($diff_version) + saved_IFS=$IFS; IFS='.' + set -- $diff_version + IFS=$saved_IFS + set -- `echo $1 | $TR -cd 0-9` `echo $2 | $TR -cd 0-9` + if test 0$1 -lt 2 || test 0$1 -eq 2 -a 0$2 -lt 7 ; then + diff_version= + fi +else + AC_MSG_RESULT(no GNU diff) +fi +if test -z "$diff_version" ; then + AC_MSG_ERROR([ +$PACKAGE_NAME requires at least version 2.7 of GNU diffutils. You can +download a current version of patch from ftp.gnu.org, or if you already +have GNU diff then you can supply its path with the '--with-diff=' option. +]) +fi + + # Sun's patch, and others, do not work because GNU patch options are used. AC_MSG_CHECKING([the version of $PATCH]) -if $PATCH --version 2> /dev/null | grep -q GNU ; then +if $PATCH --version 2> /dev/null | grep GNU >/dev/null; then set -- `$PATCH --version 2> /dev/null` patch_version=$2 AC_MSG_RESULT($patch_version) diff --git a/quilt.changes b/quilt.changes index e1e9d8b..79246e3 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Feb 3 12:23:00 AEST 2006 - jayvdb@gmail.com + +- configure.ac: Add check for GNU diff and use $GREP + in GNU patch check. + +------------------------------------------------------------------- Wed Feb 1 16:11:57 CET 2006 - agruen@suse.de - Bump version to 0.43. |