Skip to content
Newer
Older
100644 123 lines (96 sloc) 2.67 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
c28f59a - Proper fix for phpize when dealing with PECL
foobar authored
3 divert(1)
4
5 AC_PREREQ(2.13)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
6 AC_INIT(config.m4)
7
b74a5ea - Make sure EGREP and SED get set early enough.
foobar authored
8 PHP_CONFIG_NICE(config.nice)
9
6b4b1e7 MFH: cleanup & sync
Jani Taskinen authored
10 dnl
69eec3f MFB_4_3: Quote macro names in AC_DEFUN()
foobar authored
11 AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl
12 AC_DEFUN([PHP_EXT_DIR],[""])dnl
13 AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl
14 AC_DEFUN([PHP_ALWAYS_SHARED],[
2ea99fe a bit of refactoring and making always_shared a nop in every day life
Sascha Schumann authored
15 ext_output="yes, shared"
16 ext_shared=yes
17 test "[$]$1" = "no" && $1=yes
18 ])dnl
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
19 dnl
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
20 abs_srcdir=`(cd $srcdir && pwd)`
9d9d39a Please welcome the new build system.
Sascha Schumann authored
21 abs_builddir=`pwd`
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
22
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
23 AC_PROG_CC
24 AC_PROG_CC_C_O
25
76906e0 - Add --with-libdir to phpized builds too
foobar authored
26 dnl Support systems with system libraries in e.g. /usr/lib64
6b4b1e7 MFH: cleanup & sync
Jani Taskinen authored
27 PHP_ARG_WITH(libdir, for system library directory,
28 [ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib], lib, no)
76906e0 - Add --with-libdir to phpized builds too
foobar authored
29
775a064 Fix some phpize problems.
foobar authored
30 PHP_RUNPATH_SWITCH
276171f MFH: - Determine the shared/link lib suffixes in one macro.
foobar authored
31 PHP_SHLIB_SUFFIX_NAMES
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
32
6b4b1e7 MFH: cleanup & sync
Jani Taskinen authored
33 dnl Find php-config script
34 PHP_ARG_WITH(config,,
35 [ --with-php-config=PATH Path to php-config [php-config]], php-config, no)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
36
6b4b1e7 MFH: cleanup & sync
Jani Taskinen authored
37 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
38 phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
39 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
40 EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
41 PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
42
43 if test -z "$prefix"; then
44 AC_MSG_ERROR([Cannot find php-config. Please use --with-php-config=PATH])
45 fi
46
47 php_shtool=$srcdir/build/shtool
48 PHP_INIT_BUILD_SYSTEM
49
50 AC_MSG_CHECKING([for PHP prefix])
51 AC_MSG_RESULT([$prefix])
52 AC_MSG_CHECKING([for PHP includes])
53 AC_MSG_RESULT([$INCLUDES])
54 AC_MSG_CHECKING([for PHP extension directory])
55 AC_MSG_RESULT([$EXTENSION_DIR])
56 AC_MSG_CHECKING([for PHP installed headers prefix])
57 AC_MSG_RESULT([$phpincludedir])
58
59 dnl Always shared
60 PHP_BUILD_SHARED
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
61
6b4b1e7 MFH: cleanup & sync
Jani Taskinen authored
62 dnl Required programs
7382178 enable re2c check for self-contained extensions
Sascha Schumann authored
63 PHP_PROG_RE2C
2a6da0f - Restructured and added a few comments here and there.
foobar authored
64 PHP_PROG_AWK
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
65
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
66 sinclude(config.m4)
67
68 enable_static=no
69 enable_shared=yes
70
71 AC_PROG_LIBTOOL
72
4a5cb37 - Revert that patch, this was not optional at all.
Derick Rethans authored
73 all_targets='$(PHP_MODULES)'
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
74 install_targets="install-modules install-headers"
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
75 phplibdir="`pwd`/modules"
83b1883 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
Stig Bakken authored
76 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
a283caf centralize cflags
Sascha Schumann authored
77 CFLAGS_CLEAN='$(CFLAGS)'
c1c44dd MFH: - Add missing CXXFLAGS_CLEAN variable.
foobar authored
78 CXXFLAGS_CLEAN='$(CXXFLAGS)'
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
79
80 test "$prefix" = "NONE" && prefix="/usr/local"
81 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
82
9d9d39a Please welcome the new build system.
Sascha Schumann authored
83 PHP_SUBST(PHP_MODULES)
84 PHP_SUBST(all_targets)
85 PHP_SUBST(install_targets)
86
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
87 PHP_SUBST(prefix)
88 PHP_SUBST(exec_prefix)
89 PHP_SUBST(libdir)
90 PHP_SUBST(prefix)
91 PHP_SUBST(phplibdir)
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
92 PHP_SUBST(phpincludedir)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
93
94 PHP_SUBST(CC)
95 PHP_SUBST(CFLAGS)
e5b8617 CFLAGS_CLEAN was not properly defined
Sascha Schumann authored
96 PHP_SUBST(CFLAGS_CLEAN)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
97 PHP_SUBST(CPP)
98 PHP_SUBST(CPPFLAGS)
99 PHP_SUBST(CXX)
e891278 Add missing subst
foobar authored
100 PHP_SUBST(CXXFLAGS)
c1c44dd MFH: - Add missing CXXFLAGS_CLEAN variable.
foobar authored
101 PHP_SUBST(CXXFLAGS_CLEAN)
5989ae5 Fix building external extensions.
Sascha Schumann authored
102 PHP_SUBST(EXTENSION_DIR)
ee5fd96 - Made it possible to do "make test" for phpized extensions
foobar authored
103 PHP_SUBST(PHP_EXECUTABLE)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
104 PHP_SUBST(EXTRA_LDFLAGS)
105 PHP_SUBST(EXTRA_LIBS)
106 PHP_SUBST(INCLUDES)
107 PHP_SUBST(LFLAGS)
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
108 PHP_SUBST(LDFLAGS)
5989ae5 Fix building external extensions.
Sascha Schumann authored
109 PHP_SUBST(SHARED_LIBTOOL)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
110 PHP_SUBST(LIBTOOL)
111 PHP_SUBST(SHELL)
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
112 PHP_SUBST(INSTALL_HEADERS)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
113
9d9d39a Please welcome the new build system.
Sascha Schumann authored
114 PHP_GEN_BUILD_DIRS
115 PHP_GEN_GLOBAL_MAKEFILE
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
116
6262539 - Added PHP_INSTALL_HEADERS() macro
foobar authored
117 test -d modules || $php_shtool mkdir modules
cae3b7d Pear Changes:
Sascha Schumann authored
118 touch .deps
5989ae5 Fix building external extensions.
Sascha Schumann authored
119
7a75900 HEADS UP: renamed config header file in "phpize"d extensions to
Stig Bakken authored
120 AC_CONFIG_HEADER(config.h)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
121
122 AC_OUTPUT()
Something went wrong with that request. Please try again.