From 22d13d6ec27b02f98ca4e398fbae4f3273e97794 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 20 Sep 2006 15:28:47 +0000 Subject: [PATCH] * Check for patch (NIX-59). --- configure.ac | 1 + externals/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index add3a5bc1..5e3c7f01a 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,7 @@ fi NEED_PROG(curl, curl) NEED_PROG(shell, sh) +NEED_PROG(patch, patch) AC_PATH_PROG(xmllint, xmllint, false) AC_PATH_PROG(xsltproc, xsltproc, false) AC_PATH_PROG(jing, jing, false) # needed because xmllint --relaxng seems broken diff --git a/externals/Makefile.am b/externals/Makefile.am index 07258aabe..75984fce4 100644 --- a/externals/Makefile.am +++ b/externals/Makefile.am @@ -11,7 +11,7 @@ $(DB).tar.gz: $(DB): $(DB).tar.gz gunzip < $(srcdir)/$(DB).tar.gz | tar xvf - - (cd $(DB) && patch -p1) < $(srcdir)/bdb-cygwin.patch + (cd $(DB) && $(patch) -p1) < $(srcdir)/bdb-cygwin.patch have-db: $(MAKE) $(DB) @@ -46,7 +46,7 @@ $(ATERM).tar.gz: $(ATERM): $(ATERM).tar.gz gunzip < $(srcdir)/$(ATERM).tar.gz | tar xvf - - (cd $(ATERM) && patch -p1) < $(srcdir)/aterm-aliasing.patch + (cd $(ATERM) && $(patch) -p1) < $(srcdir)/aterm-aliasing.patch have-aterm: $(MAKE) $(ATERM)