summaryrefslogtreecommitdiff
path: root/www/php4/patches/patch-ab
blob: 749650d001c92d3f324b8bfd5ea7fb408e681ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-ab,v 1.16 2004/09/28 12:41:13 jdolecek Exp $

--- scripts/phpize.in.orig	2004-06-19 22:37:55.000000000 +0200
+++ scripts/phpize.in	2004-09-28 11:35:45.000000000 +0200
@@ -54,18 +54,25 @@
 
 touch install-sh mkinstalldirs missing
 
-aclocal || exit 1
-autoconf || exit 1
-autoheader || exit 1
-test -x "$builddir/build/shtool" || chmod +x "$builddir/build/shtool"
-if test ! -x "$builddir/build/shtool"; then
-  echo "shtool at '$builddir/build/shtool' not executable. "
-  echo "Make sure that the file exists and is executable and then rerun this script. "
-  echo 
-  exit 1
+if [ -z "$ACLOCAL" ]; then ACLOCAL=aclocal; fi
+if [ -z "$AUTOCONF" ]; then AUTOCONF=autoconf; fi
+if [ -z "$AUTOHEADER" ]; then AUTOHEADER=autoheader; fi
+if [ -z "$LIBTOOLIZE" ]; then
+	test -x "$builddir/build/shtool" || chmod +x "$builddir/build/shtool"
+	if test ! -x "$builddir/build/shtool"; then
+	  echo "shtool at '$builddir/build/shtool' not executable. "
+	  echo "Make sure that the file exists and is executable and then rerun this script. "
+	  echo 
+	  exit 1
+	fi
+
+	LIBTOOLIZE=`$builddir/build/shtool path glibtoolize libtoolize`;
 fi
-libtoolize=`$builddir/build/shtool path glibtoolize libtoolize`
-$libtoolize -f -c || exit 1
+
+$ACLOCAL || exit 1
+$AUTOCONF || exit 1
+$AUTOHEADER || exit 1
+$LIBTOOLIZE -f -c || exit 1
 
 # dumping API NOs:
 PHP_API_VERSION=`egrep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'`