Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 117 lines (92 sloc) 2.231 kB
9d9d39a Please welcome the new build system.
Sascha Schumann authored
1 dnl This file becomes configure.in for self-contained extensions.
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
2
9d9d39a Please welcome the new build system.
Sascha Schumann authored
3 AC_INIT(config.m4)
4
f8202e1 $host_* vars are used in extension config.m4s too.
foobar authored
5 AC_CANONICAL_HOST
6
9d9d39a Please welcome the new build system.
Sascha Schumann authored
7 PHP_INIT_BUILD_SYSTEM
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
8
9 AC_DEFUN(PHP_WITH_PHP_CONFIG,[
10 AC_ARG_WITH(php-config,
83b1883 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
Stig Bakken authored
11 [ --with-php-config=PATH],[
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
12 PHP_CONFIG=$withval
13 ],[
14 PHP_CONFIG=php-config
15 ])
16
17 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
18 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
cae3b7d Pear Changes:
Sascha Schumann authored
19 EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
20
21 if test -z "$prefix"; then
ea6985a PATH is not optional (we print that message, because php-config isn't…
Sascha Schumann authored
22 AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
23 fi
cae3b7d Pear Changes:
Sascha Schumann authored
24 AC_MSG_CHECKING(for PHP prefix)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
25 AC_MSG_RESULT($prefix)
cae3b7d Pear Changes:
Sascha Schumann authored
26 AC_MSG_CHECKING(for PHP includes)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
27 AC_MSG_RESULT($INCLUDES)
cae3b7d Pear Changes:
Sascha Schumann authored
28 AC_MSG_CHECKING(for PHP extension directory)
29 AC_MSG_RESULT($EXTENSION_DIR)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
30 ])
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
31 dnl
32 AC_DEFUN(PHP_EXT_BUILDDIR,[.])dnl
8fae36c Improve the life of external extension maintainers by
Sascha Schumann authored
33 AC_DEFUN(PHP_EXT_DIR,[""])dnl
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
34 AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir])dnl
2ea99fe a bit of refactoring and making always_shared a nop in every day life
Sascha Schumann authored
35 AC_DEFUN(PHP_ALWAYS_SHARED,[
36 ext_output="yes, shared"
37 ext_shared=yes
38 test "[$]$1" = "no" && $1=yes
39 ])dnl
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
40 dnl
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
41 abs_srcdir=`(cd $srcdir && pwd)`
9d9d39a Please welcome the new build system.
Sascha Schumann authored
42 abs_builddir=`pwd`
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
43
6bd6416 Always output config.nice for standalone extensions. (Really helps with
Andrei Zmievski authored
44 PHP_CONFIG_NICE(config.nice)
45
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
46 AC_PROG_CC
47 AC_PROG_CC_C_O
48
775a064 Fix some phpize problems.
foobar authored
49 PHP_RUNPATH_SWITCH
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
50 PHP_SHLIB_SUFFIX_NAME
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
51 PHP_WITH_PHP_CONFIG
52
9d9d39a Please welcome the new build system.
Sascha Schumann authored
53 PHP_BUILD_SHARED
54
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
55 AC_PREFIX_DEFAULT()
56
7382178 enable re2c check for self-contained extensions
Sascha Schumann authored
57 PHP_PROG_RE2C
444d769 MFB move awk detection
Sascha Schumann authored
58 AC_PROG_AWK
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
59
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
60 sinclude(config.m4)
61
62 enable_static=no
63 enable_shared=yes
64
65 AC_PROG_LIBTOOL
66
4a5cb37 - Revert that patch, this was not optional at all.
Derick Rethans authored
67 all_targets='$(PHP_MODULES)'
68 install_targets=install-modules
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
69 phplibdir="`pwd`/modules"
83b1883 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
Stig Bakken authored
70 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
a283caf centralize cflags
Sascha Schumann authored
71 CFLAGS_CLEAN='$(CFLAGS)'
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
72
73 test "$prefix" = "NONE" && prefix="/usr/local"
74 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
75
9d9d39a Please welcome the new build system.
Sascha Schumann authored
76 PHP_SUBST(PHP_MODULES)
77 PHP_SUBST(all_targets)
78 PHP_SUBST(install_targets)
79
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
80 PHP_SUBST(prefix)
81 PHP_SUBST(exec_prefix)
82 PHP_SUBST(libdir)
83 PHP_SUBST(prefix)
84 PHP_SUBST(phplibdir)
85
86 PHP_SUBST(PHP_COMPILE)
87 PHP_SUBST(CC)
88 PHP_SUBST(CFLAGS)
e5b8617 CFLAGS_CLEAN was not properly defined
Sascha Schumann authored
89 PHP_SUBST(CFLAGS_CLEAN)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
90 PHP_SUBST(CPP)
91 PHP_SUBST(CPPFLAGS)
92 PHP_SUBST(CXX)
93 PHP_SUBST(DEFS)
5989ae5 Fix building external extensions.
Sascha Schumann authored
94 PHP_SUBST(EXTENSION_DIR)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
95 PHP_SUBST(EXTRA_LDFLAGS)
96 PHP_SUBST(EXTRA_LIBS)
97 PHP_SUBST(INCLUDES)
98 PHP_SUBST(LEX)
99 PHP_SUBST(LEX_OUTPUT_ROOT)
100 PHP_SUBST(LFLAGS)
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
101 PHP_SUBST(LDFLAGS)
5989ae5 Fix building external extensions.
Sascha Schumann authored
102 PHP_SUBST(SHARED_LIBTOOL)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
103 PHP_SUBST(LIBTOOL)
104 PHP_SUBST(SHELL)
0b69dbc @mj * Add missing PHP_SUBST(awk).
mj authored
105 PHP_SUBST(AWK)
64151b3 provide RE2C to external extensions
Sascha Schumann authored
106 PHP_SUBST(RE2C)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
107
9d9d39a Please welcome the new build system.
Sascha Schumann authored
108 PHP_GEN_BUILD_DIRS
109 PHP_GEN_GLOBAL_MAKEFILE
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
110
5989ae5 Fix building external extensions.
Sascha Schumann authored
111 test -d modules || mkdir modules
cae3b7d Pear Changes:
Sascha Schumann authored
112 touch .deps
5989ae5 Fix building external extensions.
Sascha Schumann authored
113
7a75900 HEADS UP: renamed config header file in "phpize"d extensions to
Stig Bakken authored
114 AC_CONFIG_HEADER(config.h)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
115
116 AC_OUTPUT()
Something went wrong with that request. Please try again.