Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (44 sloc) 1.665 kb
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
1 #! /bin/sh
2
fbc947f * generate pear scripts properly with configure
Stig Bakken authored
3 prefix='@prefix@'
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
4 phpdir="$prefix/lib/php/build"
24e9621 - Fix phpize
Derick Rethans authored
5 includedir="$prefix/include/php"
5989ae5 Fix building external extensions.
Sascha Schumann authored
6 builddir="`pwd`"
20c4328 - Fixed bug: #13561 (--without-pear prevents install of phpize, php-conf...
foobar authored
7
9d9d39a Please welcome the new build system.
Sascha Schumann authored
8 FILES_BUILD="mkdep.awk shtool"
9 FILES="acinclude.m4 Makefile.global scan_makefile_in.awk"
20c4328 - Fixed bug: #13561 (--without-pear prevents install of phpize, php-conf...
foobar authored
10 CLEAN_FILES="$FILES *.lo *.la *.o .deps .libs/ build/ include/ modules/ install-sh \
11 mkinstalldirs missing config.nice config.sub config.guess configure configure.in \
12 aclocal.m4 config.h config.h.in conftest* ltmain.sh libtool config.cache \
13 config.log config.status Makefile Makefile.fragments Makefile.objects"
5989ae5 Fix building external extensions.
Sascha Schumann authored
14
15 if test ! -r config.m4; then
16 echo "Cannot find config.m4. "
17 echo "Make sure that you run $0 in the top level source directory of the module"
18 exit 1
19 fi
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
20
20c4328 - Fixed bug: #13561 (--without-pear prevents install of phpize, php-conf...
foobar authored
21 # Cleanup
22 if test "$1" = "--clean"; then
23 echo "Cleaning.."
24 for i in $CLEAN_FILES; do
25 test -e && rm -rf $i
26 done
27 exit 0
28 fi
29
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
30 test -d build || mkdir build
31
dde85e3 fix for #19712 & #19715 -> whitepsace in extension dir name
Hartmut Holzgraefe authored
32 (cd $phpdir && cp $FILES_BUILD "$builddir"/build)
33 (cd $phpdir && cp $FILES "$builddir")
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
34
35 sed \
36 -e "s#@prefix@#$prefix#" \
20c4328 - Fixed bug: #13561 (--without-pear prevents install of phpize, php-conf...
foobar authored
37 < $phpdir/phpize.m4 > configure.in
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
38
5989ae5 Fix building external extensions.
Sascha Schumann authored
39 touch install-sh mkinstalldirs missing
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
40
41 aclocal
42 autoconf
43 autoheader
44 libtoolize -f -c
f0d18c6 - Dump API NOs
Derick Rethans authored
45
46 # dumping API NOs:
04e564d use grep -E instead of egrep. the latter is not defined by POSIX anymore
Sascha Schumann authored
47 PHP_API_VERSION=`grep -E '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'`
48 ZEND_MODULE_API_NO=`grep -E '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'`
49 ZEND_EXTENSION_API_NO=`grep -E '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'`
f0d18c6 - Dump API NOs
Derick Rethans authored
50
51 echo "Configuring for:"
52 echo " PHP Api Version: "$PHP_API_VERSION
53 echo " Zend Module Api No: "$ZEND_MODULE_API_NO
54 echo " Zend Extension Api No: "$ZEND_EXTENSION_API_NO
5f07078 - Explicitly return "0" at the end of the script. For some weird reason ...
Derick Rethans authored
55
56 exit 0
Something went wrong with that request. Please try again.