summaryrefslogtreecommitdiff
path: root/pear/scripts/phpize.in
blob: 537431ffad1ee0e34528920bee4bede35523ba9a (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
#! /bin/sh

prefix='@prefix@'
phpdir="$prefix/lib/php/build"
builddir="`pwd`"
FILES_BUILD="mkdep.awk shtool"
FILES="acinclude.m4 Makefile.global scan_makefile_in.awk"

if test ! -r config.m4; then
  echo "Cannot find config.m4. "
  echo "Make sure that you run $0 in the top level source directory of the module"
  exit 1
fi

test -d build || mkdir build

(cd $phpdir && cp $FILES_BUILD $builddir/build)
(cd $phpdir && cp $FILES $builddir)

sed \
-e "s#@prefix@#$prefix#" \
< $phpdir/pear.m4 > configure.in

touch install-sh mkinstalldirs missing

aclocal
autoconf
autoheader
libtoolize -f -c