Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 126 lines (100 sloc) 2.69 kb
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
1 dnl This file becomes configure.in for self-contained extensions.
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
2
c28f59a1 » foobar
2005-06-05 - Proper fix for phpize when dealing with PECL
3 divert(1)
4
5 AC_PREREQ(2.13)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
6 AC_INIT(config.m4)
7
b74a5eac » foobar
2005-05-27 - Make sure EGREP and SED get set early enough.
8 PHP_CONFIG_NICE(config.nice)
9
69eec3f3 » foobar
2004-12-30 MFB_4_3: Quote macro names in AC_DEFUN()
10 AC_DEFUN([PHP_WITH_PHP_CONFIG],[
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
11 AC_ARG_WITH(php-config,
83b18832 » Stig Bakken
2001-05-20 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
12 [ --with-php-config=PATH],[
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
13 PHP_CONFIG=$withval
14 ],[
15 PHP_CONFIG=php-config
16 ])
17
18 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
19 phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
20 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
cae3b7df » Sascha Schumann
2000-05-02 Pear Changes:
21 EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
ee5fd96e » foobar
2005-08-08 - Made it possible to do "make test" for phpized extensions
22 PHP_EXECUTABLE=`$PHP_CONFIG --php-binary`
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
23
24 if test -z "$prefix"; then
ea6985a2 » Sascha Schumann
2000-10-30 PATH is not optional (we print that message, because php-config isn't…
25 AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
26 fi
62625394 » foobar
2005-05-07 - Added PHP_INSTALL_HEADERS() macro
27
28 php_shtool=$srcdir/build/shtool
29 PHP_INIT_BUILD_SYSTEM
30
cae3b7df » Sascha Schumann
2000-05-02 Pear Changes:
31 AC_MSG_CHECKING(for PHP prefix)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
32 AC_MSG_RESULT($prefix)
cae3b7df » Sascha Schumann
2000-05-02 Pear Changes:
33 AC_MSG_CHECKING(for PHP includes)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
34 AC_MSG_RESULT($INCLUDES)
cae3b7df » Sascha Schumann
2000-05-02 Pear Changes:
35 AC_MSG_CHECKING(for PHP extension directory)
36 AC_MSG_RESULT($EXTENSION_DIR)
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
37 AC_MSG_CHECKING(for PHP installed headers prefix)
38 AC_MSG_RESULT($phpincludedir)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
39 ])
e10ca100 » Sascha Schumann
2002-03-13 Provide context-specific functions which yield the directories
40 dnl
69eec3f3 » foobar
2004-12-30 MFB_4_3: Quote macro names in AC_DEFUN()
41 AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl
42 AC_DEFUN([PHP_EXT_DIR],[""])dnl
43 AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl
44 AC_DEFUN([PHP_ALWAYS_SHARED],[
2ea99fe1 » Sascha Schumann
2002-03-13 a bit of refactoring and making always_shared a nop in every day life
45 ext_output="yes, shared"
46 ext_shared=yes
47 test "[$]$1" = "no" && $1=yes
48 ])dnl
e10ca100 » Sascha Schumann
2002-03-13 Provide context-specific functions which yield the directories
49 dnl
3b9bcd74 » Sascha Schumann
2000-05-02 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
50 abs_srcdir=`(cd $srcdir && pwd)`
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
51 abs_builddir=`pwd`
3b9bcd74 » Sascha Schumann
2000-05-02 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
52
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
53 AC_PROG_CC
54 AC_PROG_CC_C_O
55
76906e04 » foobar
2005-01-20 - Add --with-libdir to phpized builds too
56 dnl Support systems with system libraries in e.g. /usr/lib64
57 AC_ARG_WITH(libdir,
58 [ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib],
59 [PHP_LIBDIR=$withval], [PHP_LIBDIR=lib])
60
775a0641 » foobar
2002-10-17 Fix some phpize problems.
61 PHP_RUNPATH_SWITCH
4a0291d2 » foobar
2002-03-20 - Make it possible to build ext/openssl as shared extension
62 PHP_SHLIB_SUFFIX_NAME
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
63 PHP_WITH_PHP_CONFIG
64
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
65 PHP_BUILD_SHARED
66
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
67 AC_PREFIX_DEFAULT()
68
7382178f » Sascha Schumann
2003-09-02 enable re2c check for self-contained extensions
69 PHP_PROG_RE2C
2a6da0f2 » foobar
2005-02-24 - Restructured and added a few comments here and there.
70 PHP_PROG_AWK
4a0291d2 » foobar
2002-03-20 - Make it possible to build ext/openssl as shared extension
71
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
72 sinclude(config.m4)
73
74 enable_static=no
75 enable_shared=yes
76
77 AC_PROG_LIBTOOL
78
4a5cb37a » Derick Rethans
2002-11-11 - Revert that patch, this was not optional at all.
79 all_targets='$(PHP_MODULES)'
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
80 install_targets="install-modules install-headers"
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
81 phplibdir="`pwd`/modules"
83b18832 » Stig Bakken
2001-05-20 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
82 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
a283caf3 » Sascha Schumann
2003-09-03 centralize cflags
83 CFLAGS_CLEAN='$(CFLAGS)'
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
84
85 test "$prefix" = "NONE" && prefix="/usr/local"
86 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
87
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
88 PHP_SUBST(PHP_MODULES)
89 PHP_SUBST(all_targets)
90 PHP_SUBST(install_targets)
91
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
92 PHP_SUBST(prefix)
93 PHP_SUBST(exec_prefix)
94 PHP_SUBST(libdir)
95 PHP_SUBST(prefix)
96 PHP_SUBST(phplibdir)
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
97 PHP_SUBST(phpincludedir)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
98
99 PHP_SUBST(CC)
100 PHP_SUBST(CFLAGS)
e5b86174 » Sascha Schumann
2002-12-16 CFLAGS_CLEAN was not properly defined
101 PHP_SUBST(CFLAGS_CLEAN)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
102 PHP_SUBST(CPP)
103 PHP_SUBST(CPPFLAGS)
104 PHP_SUBST(CXX)
e891278f » foobar
2005-03-04 Add missing subst
105 PHP_SUBST(CXXFLAGS)
5989ae5d » Sascha Schumann
2000-05-02 Fix building external extensions.
106 PHP_SUBST(EXTENSION_DIR)
ee5fd96e » foobar
2005-08-08 - Made it possible to do "make test" for phpized extensions
107 PHP_SUBST(PHP_EXECUTABLE)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
108 PHP_SUBST(EXTRA_LDFLAGS)
109 PHP_SUBST(EXTRA_LIBS)
110 PHP_SUBST(INCLUDES)
111 PHP_SUBST(LFLAGS)
4a0291d2 » foobar
2002-03-20 - Make it possible to build ext/openssl as shared extension
112 PHP_SUBST(LDFLAGS)
5989ae5d » Sascha Schumann
2000-05-02 Fix building external extensions.
113 PHP_SUBST(SHARED_LIBTOOL)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
114 PHP_SUBST(LIBTOOL)
115 PHP_SUBST(SHELL)
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
116 PHP_SUBST(INSTALL_HEADERS)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
117
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
118 PHP_GEN_BUILD_DIRS
119 PHP_GEN_GLOBAL_MAKEFILE
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
120
62625394 » foobar
2005-05-07 - Added PHP_INSTALL_HEADERS() macro
121 test -d modules || $php_shtool mkdir modules
cae3b7df » Sascha Schumann
2000-05-02 Pear Changes:
122 touch .deps
5989ae5d » Sascha Schumann
2000-05-02 Fix building external extensions.
123
7a759000 » Stig Bakken
2001-03-12 HEADS UP: renamed config header file in "phpize"d extensions to
124 AC_CONFIG_HEADER(config.h)
f2f8d38e » Sascha Schumann
1999-12-30 Integration of -ng changes. Changes:
125
126 AC_OUTPUT()
Something went wrong with that request. Please try again.