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
0cb305a This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
SVN Migration authored
1 dnl This file becomes configure.in for self-contained extensions.
2
3 AC_INIT(config.m4)
4
dfba9a0 MFH
foobar authored
5 AC_CANONICAL_HOST
6
0cb305a This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
SVN Migration authored
7 PHP_INIT_BUILD_SYSTEM
8
9 AC_DEFUN(PHP_WITH_PHP_CONFIG,[
10 AC_ARG_WITH(php-config,
11 [ --with-php-config=PATH],[
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`
19 EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
20
21 if test -z "$prefix"; then
22 AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
23 fi
24 AC_MSG_CHECKING(for PHP prefix)
25 AC_MSG_RESULT($prefix)
26 AC_MSG_CHECKING(for PHP includes)
27 AC_MSG_RESULT($INCLUDES)
28 AC_MSG_CHECKING(for PHP extension directory)
29 AC_MSG_RESULT($EXTENSION_DIR)
30 ])
31 dnl
32 AC_DEFUN(PHP_EXT_BUILDDIR,[.])dnl
33 AC_DEFUN(PHP_EXT_DIR,[""])dnl
34 AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir])dnl
35 AC_DEFUN(PHP_ALWAYS_SHARED,[
36 ext_output="yes, shared"
37 ext_shared=yes
38 test "[$]$1" = "no" && $1=yes
39 ])dnl
40 dnl
41 abs_srcdir=`(cd $srcdir && pwd)`
42 abs_builddir=`pwd`
43
44 PHP_CONFIG_NICE(config.nice)
45
46 AC_PROG_CC
47 AC_PROG_CC_C_O
48
49 PHP_RUNPATH_SWITCH
50 PHP_SHLIB_SUFFIX_NAME
51 PHP_WITH_PHP_CONFIG
52
53 PHP_BUILD_SHARED
54
55 AC_PREFIX_DEFAULT()
56
20a35aa enable re2c check for self-contained extensions
Sascha Schumann authored
57 PHP_PROG_RE2C
45a703d Move awk detection before config.m4 inclusion
Sascha Schumann authored
58 AC_PROG_AWK
0cb305a This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
SVN Migration authored
59
60 sinclude(config.m4)
61
62 enable_static=no
63 enable_shared=yes
64
65 AC_PROG_LIBTOOL
66
67 all_targets='$(PHP_MODULES)'
68 install_targets=install-modules
69 phplibdir="`pwd`/modules"
70 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
4d98201 centralize cflags
Sascha Schumann authored
71 CFLAGS_CLEAN='$(CFLAGS)'
0cb305a This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
SVN Migration authored
72
73 test "$prefix" = "NONE" && prefix="/usr/local"
74 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
75
76 PHP_SUBST(PHP_MODULES)
77 PHP_SUBST(all_targets)
78 PHP_SUBST(install_targets)
79
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)
89 PHP_SUBST(CFLAGS_CLEAN)
90 PHP_SUBST(CPP)
91 PHP_SUBST(CPPFLAGS)
92 PHP_SUBST(CXX)
93 PHP_SUBST(DEFS)
94 PHP_SUBST(EXTENSION_DIR)
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)
101 PHP_SUBST(LDFLAGS)
102 PHP_SUBST(SHARED_LIBTOOL)
103 PHP_SUBST(LIBTOOL)
104 PHP_SUBST(SHELL)
105 PHP_SUBST(AWK)
889eb22 provide RE2C to external extensions
Sascha Schumann authored
106 PHP_SUBST(RE2C)
0cb305a This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
SVN Migration authored
107
108 PHP_GEN_BUILD_DIRS
109 PHP_GEN_GLOBAL_MAKEFILE
110
111 test -d modules || mkdir modules
112 touch .deps
113
114 AC_CONFIG_HEADER(config.h)
115
116 AC_OUTPUT()
Something went wrong with that request. Please try again.