Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 73 lines (61 sloc) 2.06 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
755eccf - Moved scan_makefile_in.awk to better suitable place for it.
foobar authored
8 FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool"
9 FILES="acinclude.m4 Makefile.global"
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
f6cafd6 Fix previous commit. (never do 2 things same time :)
foobar authored
15 case "$1" in
16 # Cleanup
063e4e2 Added --help to phpize
foobar authored
17 --clean)
f6cafd6 Fix previous commit. (never do 2 things same time :)
foobar authored
18 if test -r config.m4; then
19 echo "Cleaning.."
20 for i in $CLEAN_FILES; do
21 test -e $i && rm -rf $i
22 done
23 exit 0
24 else
25 echo "Cannot find config.m4. "
26 echo "Make sure that you run '$0 --clean' in the top level source directory of the module"
27 echo
28 exit 1
29 fi
063e4e2 Added --help to phpize
foobar authored
30 ;;
f6cafd6 Fix previous commit. (never do 2 things same time :)
foobar authored
31 # Usage
063e4e2 Added --help to phpize
foobar authored
32 --help)
33 echo "Usage: $0 [--clean|--help]"
34 exit 1
35 ;;
f6cafd6 Fix previous commit. (never do 2 things same time :)
foobar authored
36 *)
37 if test ! -r config.m4; then
38 echo "Cannot find config.m4. "
39 echo "Make sure that you run '$0' in the top level source directory of the module"
40 echo
41 exit 1
42 fi
43 ;;
063e4e2 Added --help to phpize
foobar authored
44 esac
20c4328 - Fixed bug: #13561 (--without-pear prevents install of phpize, php-conf...
foobar authored
45
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
46 test -d build || mkdir build
47
dde85e3 fix for #19712 & #19715 -> whitepsace in extension dir name
Hartmut Holzgraefe authored
48 (cd $phpdir && cp $FILES_BUILD "$builddir"/build)
49 (cd $phpdir && cp $FILES "$builddir")
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
50
51 sed \
52 -e "s#@prefix@#$prefix#" \
20c4328 - Fixed bug: #13561 (--without-pear prevents install of phpize, php-conf...
foobar authored
53 < $phpdir/phpize.m4 > configure.in
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
54
5989ae5 Fix building external extensions.
Sascha Schumann authored
55 touch install-sh mkinstalldirs missing
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
56
c43d558 Fixed bug #24207: phpize wrong exit code
foobar authored
57 aclocal || exit 1
58 autoconf || exit 1
59 autoheader || exit 1
60 libtoolize -f -c || exit 1
f0d18c6 - Dump API NOs
Derick Rethans authored
61
62 # dumping API NOs:
04e564d use grep -E instead of egrep. the latter is not defined by POSIX anymore
Sascha Schumann authored
63 PHP_API_VERSION=`grep -E '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'`
64 ZEND_MODULE_API_NO=`grep -E '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'`
65 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
66
67 echo "Configuring for:"
68 echo " PHP Api Version: "$PHP_API_VERSION
69 echo " Zend Module Api No: "$ZEND_MODULE_API_NO
70 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
71
72 exit 0
Something went wrong with that request. Please try again.