forked from pool/quilt
23 lines
590 B
Diff
23 lines
590 B
Diff
New versions of GNU patch present themselves as "GNU patch" instead
|
|
of just "patch".
|
|
|
|
---
|
|
configure.ac | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- quilt-0.48.orig/configure.ac
|
|
+++ quilt-0.48/configure.ac
|
|
@@ -274,7 +274,11 @@ fi
|
|
AC_MSG_CHECKING([the version of $PATCH])
|
|
if $PATCH --version 2> /dev/null | grep GNU >/dev/null; then
|
|
set -- `$PATCH --version 2> /dev/null`
|
|
- patch_version=$2
|
|
+ if test x$1 = xGNU ; then
|
|
+ patch_version=$3
|
|
+ else
|
|
+ patch_version=$2
|
|
+ fi
|
|
AC_MSG_RESULT($patch_version)
|
|
saved_IFS=$IFS; IFS='.'
|
|
set -- $patch_version
|