Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 125 lines (100 sloc) 2.44 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
5 PHP_INIT_BUILD_SYSTEM
6
7 AC_DEFUN(PHP_WITH_PHP_CONFIG,[
8 AC_ARG_WITH(php-config,
9 [ --with-php-config=PATH],[
10 PHP_CONFIG=$withval
11 ],[
12 PHP_CONFIG=php-config
13 ])
14
15 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
16 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
17 EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
18
19 if test -z "$prefix"; then
20 AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
21 fi
22 AC_MSG_CHECKING(for PHP prefix)
23 AC_MSG_RESULT($prefix)
24 AC_MSG_CHECKING(for PHP includes)
25 AC_MSG_RESULT($INCLUDES)
26 AC_MSG_CHECKING(for PHP extension directory)
27 AC_MSG_RESULT($EXTENSION_DIR)
28 ])
29 dnl
30 AC_DEFUN(PHP_EXT_BUILDDIR,[.])dnl
31 AC_DEFUN(PHP_EXT_DIR,[""])dnl
32 AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir])dnl
33 AC_DEFUN(PHP_ALWAYS_SHARED,[
34 ext_output="yes, shared"
35 ext_shared=yes
36 test "[$]$1" = "no" && $1=yes
37 ])dnl
38 dnl
39 abs_srcdir=`(cd $srcdir && pwd)`
40 abs_builddir=`pwd`
41
42 PHP_CONFIG_NICE(config.nice)
43
44 AC_PROG_CC
45 AC_PROG_CC_C_O
46
47 PHP_RUNPATH_SWITCH
48 PHP_SHLIB_SUFFIX_NAME
49 PHP_WITH_PHP_CONFIG
50
51 PHP_BUILD_SHARED
52
53 AC_PREFIX_DEFAULT()
54
55 AC_ARG_WITH(openssl,
56 [ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.5) ],
57 [
58 if test "$withval" != "no"; then
59 PHP_WITH_SHARED
60 PHP_OPENSSL=$withval
61 ext_openssl_shared=yes
62 ext_shared=yes
63 PHP_SETUP_OPENSSL
64 fi
65 ])
45a703d Move awk detection before config.m4 inclusion
Sascha Schumann authored
66
67 AC_PROG_AWK
0cb305a This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
SVN Migration authored
68
69 sinclude(config.m4)
70
71 enable_static=no
72 enable_shared=yes
73
74 AC_PROG_LIBTOOL
75
76 all_targets='$(PHP_MODULES)'
77 install_targets=install-modules
78 phplibdir="`pwd`/modules"
79 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
80 CFLAGS_CLEAN=$CFLAGS
81
82 test "$prefix" = "NONE" && prefix="/usr/local"
83 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
84
85 PHP_SUBST(PHP_MODULES)
86 PHP_SUBST(all_targets)
87 PHP_SUBST(install_targets)
88
89 PHP_SUBST(prefix)
90 PHP_SUBST(exec_prefix)
91 PHP_SUBST(libdir)
92 PHP_SUBST(prefix)
93 PHP_SUBST(phplibdir)
94
95 PHP_SUBST(PHP_COMPILE)
96 PHP_SUBST(CC)
97 PHP_SUBST(CFLAGS)
98 PHP_SUBST(CFLAGS_CLEAN)
99 PHP_SUBST(CPP)
100 PHP_SUBST(CPPFLAGS)
101 PHP_SUBST(CXX)
102 PHP_SUBST(DEFS)
103 PHP_SUBST(EXTENSION_DIR)
104 PHP_SUBST(EXTRA_LDFLAGS)
105 PHP_SUBST(EXTRA_LIBS)
106 PHP_SUBST(INCLUDES)
107 PHP_SUBST(LEX)
108 PHP_SUBST(LEX_OUTPUT_ROOT)
109 PHP_SUBST(LFLAGS)
110 PHP_SUBST(LDFLAGS)
111 PHP_SUBST(SHARED_LIBTOOL)
112 PHP_SUBST(LIBTOOL)
113 PHP_SUBST(SHELL)
114 PHP_SUBST(AWK)
115
116 PHP_GEN_BUILD_DIRS
117 PHP_GEN_GLOBAL_MAKEFILE
118
119 test -d modules || mkdir modules
120 touch .deps
121
122 AC_CONFIG_HEADER(config.h)
123
124 AC_OUTPUT()
Something went wrong with that request. Please try again.