Commit Graph

411 Commits

Author SHA1 Message Date
Hartmut Holzgraefe
522159468c simplify flex version test 2005-05-29 19:28:34 +00:00
Hartmut Holzgraefe
af14bbe455 avoid code duplication in bison version test 2005-05-29 18:04:35 +00:00
Hartmut Holzgraefe
10f21b3bca added .cxx extension for C++ for completeness reasons 2005-05-29 16:59:58 +00:00
foobar
9ef2ea19e5 - Use $SED and $EGREP where possible 2005-05-27 13:10:01 +00:00
Rasmus Lerdorf
4688093cdc Avoid syntax errors on some operating systems 2005-05-21 18:42:39 +00:00
foobar
626253940e - Added PHP_INSTALL_HEADERS() macro
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
2005-05-07 02:51:53 +00:00
foobar
073188c832 - Fix problems with phpized ext/imap 2005-04-30 09:29:09 +00:00
foobar
e8f715af59 - No need to iterate through the options twice 2005-04-30 01:52:22 +00:00
foobar
b85f0897a2 re2c 0.96 is the one that works (tm) 2005-04-30 00:15:07 +00:00
foobar
bf85fd4f2b We do allow 2.0 now too. 2005-04-30 00:12:42 +00:00
foobar
6e0da82528 Netware stuff 2005-04-26 08:20:44 +00:00
Marcus Boerger
965b70c0bd - Change bison check to positive logic and allow bison 2.0 2005-04-23 11:30:11 +00:00
Brian France
e836164570 Added support for .cc files in extensions. 2005-04-20 20:48:19 +00:00
foobar
aea6208e9e - Cleanup a bit. And make use of shtool mkdir 2005-04-07 20:39:02 +00:00
Rob Richards
e6034763ca require libxml 2.6.0 or higher 2005-03-10 22:35:18 +00:00
foobar
ba5479a099 This did not work for some reason, better revert it 2005-03-04 15:13:03 +00:00
Marcus Boerger
f7d2317ce7 - Fix typo 2005-02-28 00:07:16 +00:00
foobar
0ec872a153 - Cache the version check results
# ..and prepare for --enable-developer-mode
2005-02-27 12:42:28 +00:00
foobar
34805e8d39 - Fixed all buildconf warnings + cross-compiling issues 2005-02-24 19:27:10 +00:00
foobar
2a6da0f24c - Restructured and added a few comments here and there.
- Made macros of couple of tests previously littering configure.in
  (e.g. PHP_PROG_AWK, PHP_PROG_LEX, PHP_PROG_BISON..)
- Moved all PHP_SUBST() calls into their respective macros.
  (no point adding empty entries in Makefile if macro is not used)
2005-02-24 18:11:36 +00:00
Moriyoshi Koizumi
352fc43ec9 - Complement for Jani's fix. Likely fix the iconv issue. 2005-02-09 00:49:45 +00:00
foobar
25ab28c48f - Fix macosx shared extension build 2005-01-25 13:02:25 +00:00
foobar
f8a540d105 - Typofix + removed unnecessary unsets caused by it 2005-01-22 01:31:54 +00:00
foobar
6faa433d58 - Fix the pic patch 2005-01-19 17:35:55 +00:00
Antony Dovgal
c71c8e7604 fix PHP_CHECK_64BIT macro (finally got 64bit machine to test it) 2005-01-07 16:57:23 +00:00
foobar
7a3d9addb8 - Make sure $host_alias is never empty 2005-01-07 06:12:42 +00:00
foobar
a3943d9be5 - Fix buildconf failure with autoconf versions > 2.13 2004-12-30 14:56:00 +00:00
foobar
5ac375a40d - Fixed bug #31101 (missing kerberos header file path with --with-openssl) 2004-12-30 14:50:06 +00:00
foobar
69eec3f3b9 MFB_4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:08:39 +00:00
Edin Kadribasic
ea07d448a5 MFB: Avoid autoheader warning 2004-12-21 15:41:22 +00:00
foobar
4157e50c00 Better fix for endian compile problems. 2004-12-20 20:37:45 +00:00
Derick Rethans
b68803c08e - Generate all iconv headers by default 2004-12-11 11:16:55 +00:00
Derick Rethans
1266735cd0 - MF43: Fixed bug #31034 (Problem with non-existing iconv header file). 2004-12-09 09:06:06 +00:00
Joe Orton
7b547a393a Fix VPATH build again. 2004-12-08 12:50:00 +00:00
Derick Rethans
48b118968f - MF43: Install the iconv extension headers to <installpath>/ext/iconv so that
external extensions can use them.
2004-12-06 20:39:20 +00:00
Andrei Zmievski
c2f8c1a79b .dylib extension are Mach-O shared libraries that meant for linking
against. Loadable modules (aka bundles) can have any extension, so we
should probably stick with .so

http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en#lib-and-mod
2004-11-09 20:58:24 +00:00
Joe Orton
557cda47a0 Core changes to support multi-ABI platforms with libraries in
/usr/lib64 rather than /usr/lib.

* configure.in: Add --with-libdir flag; define PHP_LIBDIR.

* acinclude.m4 (PHP_REMOVE_USR_LIB, PHP_RUNPATH_SWITCH,
PHP_ADD_LIBPATH): Check for /usr/$PHP_LIBDIR rather than /usr/lib.
(PHP_SETUP_OPENSSL, PHP_SETUP_ICONV): Use /path/to/$PHP_LIBDIR in
place of /path/to/lib.
2004-11-03 14:07:09 +00:00
Joe Orton
2469701b87 Fix extraction of httpd version if httpd is linked against -lefence. 2004-11-03 13:04:10 +00:00
Antony Dovgal
0e2100ca58 add PHP_CHECK_64BIT macro to be able to detect 64-bit platform in ./configure 2004-09-12 06:35:51 +00:00
Wez Furlong
ed682e570a Implement extension load-order deps. 2004-07-18 12:03:51 +00:00
Ard Biesheuvel
437840e85d Put AC_DEFINE in correct place so caching will work properly 2004-03-27 02:03:44 +00:00
foobar
0bf907b1e6 - Added PHP_TEST_BUILD macro which can be used to test whether build
works / would work with current LIBS (+ additional extra-libs)
2004-02-23 03:24:58 +00:00
foobar
d2e8751f86 - Fixed Bug #26969 (shared openssl build fails) 2004-01-20 01:11:04 +00:00
Wez Furlong
57e2ef89e4 support for building asm in the unix buildsys.
Also, when ZEND_ACCONFIG_H_NO_C_PROTOS is defined,
omit the C prototypes from the configuration header
so that it can be included into asm files.
2004-01-09 23:37:29 +00:00
foobar
c3ea5b122e Fixed bug #26461 (-lssl missing from LIBS) 2003-12-12 05:19:30 +00:00
foobar
e13e315a10 - Only add 'install-modules' into install targets when there are such
modules to install.
2003-12-04 15:57:55 +00:00
foobar
4eab4158cd - Fixed build of shared extensions which require openssl and when you only
have static openssl libraries.
2003-11-13 14:17:47 +00:00
foobar
09b8fdc2bb Really fixed bug #25719.
(basically reverted to the original style of openssl checks found in 4.3.3)
2003-10-03 04:29:13 +00:00
foobar
8ba1bcb252 Should fix bug #25719 2003-10-02 00:35:09 +00:00
foobar
3f415b2c4b Fixed bug #25703 (openssl checks failed) 2003-09-30 18:08:12 +00:00
foobar
54a2a2ad2e ws 2003-09-24 14:24:18 +00:00
foobar
4c31afd23b - Fixed some compile failures with e.g. RH9 + openssl by
making use of pkg-config
2003-09-24 14:22:57 +00:00
foobar
edfd3e7c6a Cleanup after ourselves. 2003-09-03 22:53:21 +00:00
Sascha Schumann
7382178f73 enable re2c check for self-contained extensions 2003-09-02 19:42:17 +00:00
foobar
bd09eb171a libxml 2.5.10 or greater required from now on 2003-09-01 04:48:40 +00:00
foobar
98c6a4fec0 MFB 2003-08-13 23:45:42 +00:00
Sascha Schumann
320a86b7a5 MFB quoting of ) 2003-07-03 22:54:57 +00:00
Sascha Schumann
4239cc4256 MFB PHP_CHECK_LIBRARY fix 2003-07-02 03:04:35 +00:00
Sascha Schumann
ae03f44694 Sync PHP_CHECK_LIBRARY change 2003-07-02 00:04:12 +00:00
foobar
d215b040b7 - Changed 'grep -E' back to 'egrep'.
#
# whatever some posix standard says, there's no use to change this in
# two places and possibly break stuff, like said in bug #22604.
#
# Grep for 'egrep' in autoconf 2.13 generated configure to find
# several hundred 'egrep's..
#
2003-07-01 00:16:23 +00:00
Sascha Schumann
423c16befd MFB snprintf test 2003-06-28 12:29:43 +00:00
Sterling Hughes
f783d06d65 ilia points out this is ok 2003-06-28 06:32:02 +00:00
Sterling Hughes
5e0bc7c133 bump up to 2.5.7 2003-06-28 05:18:11 +00:00
foobar
7a24772485 Fix configure failure with static openssl libs 2003-06-24 16:39:52 +00:00
foobar
e3cd8fac9b - Unified PHP_SETUP_OPENSSL with other PHP_SETUP_* macros. 2003-06-24 14:05:26 +00:00
foobar
755eccf82a - Moved scan_makefile_in.awk to better suitable place for it.
(other build related scripts are under build/ too..)
2003-06-09 00:17:03 +00:00
foobar
1a32b09995 Left-overs from testing. 2003-05-19 21:11:44 +00:00
foobar
73415c9e01 - Unbundle libxml and expat. Now this compiles too.. 2003-05-19 15:33:19 +00:00
Sascha Schumann
0b6d0fefc4 MFB $AWK->awk 2003-05-19 01:33:58 +00:00
Moriyoshi Koizumi
ca0bbb7d4e Fixed typo: this should have been withval 2003-05-07 19:13:54 +00:00
Sterling Hughes
a0351b093f Bundle libxml and add compatibility layer 2003-05-06 19:38:49 +00:00
Sterling Hughes
eab8227e7c beginnings of php5/bundle support 2003-05-02 03:14:00 +00:00
foobar
fcf3384af9 Allow PHP_CHECK_LIBRARY to use same function name in checks if a check fails. 2003-04-25 08:54:02 +00:00
Sascha Schumann
baa54b3b80 add missing check 2003-04-16 05:22:04 +00:00
Sascha Schumann
d2afc64fed don't remove config.nice directly, so that we don't lose it on
inferior systems like windows.
2003-04-13 20:13:06 +00:00
Sascha Schumann
8a9e45a27a Don't need shtool 2003-04-01 08:05:01 +00:00
foobar
d38d39a46c Fixed bug #22989 (sendmail not found by configure) 2003-03-31 23:21:41 +00:00
Sterling Hughes
3f700e58ab update php module name to php5, not php4.
apache, apache2* and cli/cgi work.
sapi module maintainers should fix up their sapis, as I don't run
any servers with php outside of apache.
2003-03-29 04:52:46 +00:00
foobar
2f67648512 Made "--with-pear" "--disable-all"-aware. Plus some cosmetics fixes. 2003-03-25 13:43:13 +00:00
Wez Furlong
cfd0466389 Fix for Bug #21310, based on a patch by jflemer@php.net. 2003-03-17 13:40:45 +00:00
foobar
5e26cd4293 prevent warning 2003-03-12 02:26:46 +00:00
foobar
70f97c1713 - Always use the shtool mkdir. 2003-03-10 14:32:47 +00:00
Sascha Schumann
90e5afe8a2 Allow shared modules to be built using $(CXX) 2003-03-05 22:00:45 +00:00
foobar
866fb82484 fix quotes 2003-02-24 15:11:54 +00:00
foobar
a7132f74fd Always use the libtool which is build in the top_builddir. 2003-02-24 04:37:04 +00:00
foobar
011229ef15 - Updated libtool to 1.4.3 which has test for the sed problem.. 2003-02-10 17:09:48 +00:00
Zeev Suraski
4c8473d619 relabel 2003-01-19 21:37:40 +00:00
Alex Waugh
ef8d954a0d Provide alternative for glibc brokenness test when cross compiling 2003-01-03 22:05:12 +00:00
Ilia Alshanetsky
b46352043c Raise required OpenSSL version to 0.9.6. 2003-01-02 19:20:57 +00:00
Wez Furlong
a28eaf64d0 Workaround for glibc 2.2.9x and later "a+" bug that does not seek to EOF for
files fopen()ed with that mode.
2003-01-01 09:58:17 +00:00
Wez Furlong
ca58966a0d Merge streams changes from branch. 2002-11-18 11:39:42 +00:00
Sascha Schumann
04e564dec5 use grep -E instead of egrep. the latter is not defined by POSIX anymore 2002-11-15 00:20:17 +00:00
Sascha Schumann
46a99e9022 - Remove PHP_DISABLE_CLI
- Streamline ircg build: thttpd-dependent part moved into separate source
  file, so that it can be added to the SAPI-only object list.
2002-11-14 01:09:46 +00:00
foobar
e77c7ee46b - Remove the "which" call and just expect sed to be in PATH 2002-10-29 11:24:26 +00:00
foobar
c82799be32 - Only test the sed in PATH. (testing others is useless) 2002-10-28 23:42:47 +00:00
Sascha Schumann
6bf422d62e Make PHP compile out-of-the-box with uClibc 2002-10-24 12:21:07 +00:00
Sascha Schumann
938ba73be7 Quote macro names in AC_DEFUN() and prefix the internal macros using
a single underscore. Also rename AC_PHP_ONCE as PHP_RUN_ONCE.
2002-10-24 10:41:36 +00:00
foobar
b26f6233d8 remove the remains of that comment. 2002-10-21 03:31:52 +00:00
foobar
9d21dd450d - Moved CGI specific lines from configure.in to sapi/cgi/config9.m4
which is 'executed' last of the SAPI config.m4's.
- Added --disable-cgi option. (was possible only with above change)
- Made the sed check to not test for the possibly working sed on Solaris
  since that would make the test quite useless. (compile would still fail)

# That sed check is not enabled yet..need to know whether we fail
# during configure or just put out a warning about possible non-working
# sed. As even plain ./configure doesn't work in most cases, I think
# it would be better to just fail during configure and let the users
# fix their paths/install GNU sed.
2002-10-21 03:12:27 +00:00
foobar
aa1ddac8ad - Fix typo..
#
# Note: This is not used at all yet..waiting for comments first. :)
#
2002-10-16 16:21:13 +00:00
foobar
97e4dc3a41 - Added PHP_PROG_SED which checks whether the sed in system works with
very long strings.

#
# Sascha, is this okay? I added this here since any libtool/autoconf
# release out there doesn't have this yet..we can remove this when
# we can really start requiring such versions which have it?
#
# This sets $SED to the correct binary, so that should be used in
# places were the lines might be very long.
#
2002-10-15 19:37:16 +00:00
Marcus Boerger
614d10a8cb Check for C99 conformance of snprintf.
#This way we force using internal version if a broken library is used.
#E.g. length parameter is broken, return value or default precision wrong.
2002-10-02 12:52:53 +00:00
Sascha Schumann
6683334066 Another Linux x86 system returns ELIMIT so we need to check errno as well
before assuming that pread/pwrite work.
2002-10-02 08:32:26 +00:00
Sascha Schumann
e1dd35bddb The pread/pwrite macros check for a bug in the Linux glibc now.
The bug causes the kernel not to return -1/EAGAIN. The new test case
has been borrowed from the Linux Test Project.

This also fixes a bug which apparently caused HAVE_PREAD/WRITE to be
defined even if the more complex checks failed (ac_cv_func_NAME=no
was set albeit with no difference).
2002-10-02 06:05:16 +00:00
Sascha Schumann
d9655f8c68 remove unused lines 2002-09-30 00:03:09 +00:00
Sascha Schumann
e6e54605b7 Follow Yasuo's suggestion and build sapi program's under the sapi-specific
directory.

Move sapi-specific makefile fragments to their respective directory.

Create an embed sapi module which resides in its own dir now.
2002-09-29 16:22:49 +00:00
Sascha Schumann
702d7afc3c Reenable pwrite/pread support
The old checks supposed that pread/pwrite worked, if a declaration was
found in <unistd.h>.  We now actually check whether they work successfully
before using them.
2002-09-06 10:27:26 +00:00
foobar
3bf7519210 @- Added --disable-all configure option. (Jani) 2002-09-04 18:47:28 +00:00
Wez Furlong
3d8b6c2d52 Add a configure check to see if the seeker function in an fopencookie
uses off_t or the newer, more portable "fpos_t *".
The check could perhaps be more refined, as the test program will segfault
on older systems (like mine) that use off_t.
2002-08-22 22:28:19 +00:00
Marko Karppinen
107a9efbd9 Fix the framework support 2002-08-06 22:05:38 +00:00
Marko Karppinen
5611c2fc78 Support compiling and linking against Darwin / Mac OS X frameworks 2002-08-06 16:01:34 +00:00
foobar
272913f3d4 - Fixed bug: #18560, the macro was not defined always. 2002-07-25 18:37:16 +00:00
Marko Karppinen
b231fc0d35 Made PHP_ADD_LIBPATH use the $ld_runpath_switch and changed the Darwin
link lines in sapi/cli and sapi/cgi to use $NATIVE_RPATHS.
This is a tentative fix for #18450.
2002-07-21 14:42:01 +00:00
Sascha Schumann
aef27e37e1 Improve/fix handling of --disable-rpath
Might or might not fix #18374
2002-07-20 01:28:56 +00:00
foobar
b989395478 PHP_EVAL_LIBLINE must not reverse the order of libraries. 2002-07-07 00:47:16 +00:00
Sascha Schumann
e3e0dbf7b4 nuke another instance of newline suppression 2002-07-05 19:06:53 +00:00
Sascha Schumann
8366e6531a some seds want to see a newline, so we give them a newline
PR: #17072 and others
2002-07-05 06:42:31 +00:00
Sascha Schumann
ad198758ed 1. PHP_CHECK_FUNC(func, lib1, lib2, ..., libn) searches for
func and __func using LIBS, and if unsuccessful, searches
   each specified lib.  Defines HAVE_FUNC, if found.  If func/__func is
   found in library foo, HAVE_LIBFOO is defined.

   (Jani, me)

2. Autoconf 2.5x is more pedantic regarding locating header files.
   We include the proper header files now in the check. (me)

3. The nsl/bind/socket/etc checks have been rewritten using PHP_CHECK_FUNC.
   This ensures that no extra library is used, if the symbol is
   available in libc which avoids issues on BSD/OS, OpenBSD and others.
   (Jani)
2002-07-04 21:07:08 +00:00
James Cox
799cc612b4 "-" is not acceptable in a #define (i have since discovered). converting all - to _ is the right thing to do.
# should we issue a warning here too?
2002-07-01 01:01:06 +00:00
James Cox
8c49132266 fixes extensions with "-"
# thanks Rasmus for pointing out.
2002-06-29 02:34:36 +00:00
James Cox
3ec40a8d32 really fix it.
# can anyone recommend an optician?
2002-06-29 01:58:07 +00:00
James Cox
3ef1fe2b68 fixes bug #17453 2002-06-29 01:41:03 +00:00
foobar
3d799b5db4 Fixed PHP_ADD_LIBRARY_DEFER_WITH_PATH to work with shared builds. 2002-06-24 11:36:21 +00:00
Stefan Roehrich
506282af5c WS change to make very old compilers/preprocessors (e.g. HP/UX 9)
happy (thanks to Andreas Ley for recognizing this).
2002-06-01 20:14:58 +00:00
Andrei Zmievski
c174a15a60 Fix a bug in case statement. 2002-05-28 16:30:16 +00:00
foobar
2c8e8e0406 Fix build when openssl is enabled. 2002-04-28 04:53:40 +00:00
Sascha Schumann
cab34e6b05 No need for an ifelse here (which was lacking a char anyway :-) 2002-04-23 05:06:51 +00:00
foobar
3679c6e054 Part 1 of commits to fix some issues with static apache (1.3.x) compile:
- Made the OPENSSL_INCDIR available to be added in the PHP_CFLAGS
  in libphp4.module
- Make it possible to set SAPI specific include dirs
2002-04-23 02:47:34 +00:00
Sascha Schumann
7b6012cbfb properly reset ac_extra in PHP_NEW_EXTENSION
redirect stderr to /dev/null to silence xargs

Noticed by: Andrei
2002-04-11 05:47:03 +00:00
foobar
e3cc458d25 - Revert that change. Added a warning about this. 2002-04-08 18:43:35 +00:00
foobar
77c058a06a There's really no point in allowing using the system regex library. 2002-04-08 07:47:17 +00:00
Sascha Schumann
8fae36cbd1 Improve the life of external extension maintainers by
not plaguing them with "./" in absolute paths.

Requested by: Andrei, Wez
2002-04-06 13:42:40 +00:00
Sascha Schumann
e50a42f907 Add deferred libs to DLIBS instead of LIBS.
Noticed by: Jani Taskinen <sniper@iki.fi>
2002-04-04 10:03:29 +00:00
Marko Karppinen
676afb33b8 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
an MH_DYLIB. As all PPC code is relocatable, we don't use the libtool
based shared build but go a static route. Goodbye libtool!
# I'm committing this to enable widespear testing.
# Anyone have any ideas on how to easily backport this to 4.2.0?
2002-03-30 03:17:25 +00:00
Sascha Schumann
c7403326ab Factorize a few library/libpath-related functions 2002-03-27 11:09:20 +00:00
foobar
11bcc2207e MFB. (I must have been sleep-walking..) 2002-03-26 00:14:02 +00:00
Sascha Schumann
e4a5210bbf A cli-specific extension should be named once only, not twice.
Noticed by: Derick
2002-03-22 10:22:02 +00:00
foobar
d533371760 - Fixed bug #16165 again. We check libc for iconv functions only if
no path is given for --with-iconv.
# I hope this is the last time.
2002-03-21 20:22:05 +00:00
foobar
9a5b42cb78 - Should work better now.. 2002-03-20 18:16:51 +00:00
Sascha Schumann
350de12bc2 Expand the variables in PHP_EXPAND_BUILD_VARS.
Make HAVE_ICONV/HAVE_LIBICONV available through the more
fine-grained approach using a single include file per
directive.  This will significantly reduce the price of
full dependencies for developers, because basically each
file today includes php.h which includes php_config.h.

If PHP_ATOM_INC is defined, these include files can be used.

For all PHP_DEFINEs, empty files are created upon configure start.
2002-03-20 13:24:59 +00:00
Sascha Schumann
1962e1e620 Avoid duplicate tests and make third parameter truly optional. 2002-03-20 12:08:30 +00:00
Sascha Schumann
71a361d5ea Fix and tweak iconv macro 2002-03-20 11:59:48 +00:00
Sascha Schumann
d9f36aed9f Don't quote too much. Now autoconf-2.13 is happy again. 2002-03-20 11:49:36 +00:00
Sascha Schumann
5005415595 Remove autoconf-2.5x specific m4_default macro.
It is pointless here, because we don't need any "void" statement.
There already is a statement and all it will do in the worst case
is generate an empty line
2002-03-20 11:41:06 +00:00
Jon Parise
bb82bf2e2b This completely fixes the iconv library detection under FreeBSD (the
previous fix was incomplete).  We also set HAVE_ICONV and HAVE_LIBICONV
based on the library that was detected.
2002-03-20 07:36:56 +00:00
foobar
4a0291d238 - Make it possible to build ext/openssl as shared extension 2002-03-20 02:07:11 +00:00
foobar
a62b31f6b7 - Fix the iconv detection when the functions are prefixed with lib.
(e.g. in freebsd)
2002-03-19 22:40:18 +00:00
foobar
19e82a49f9 - Made one test/setup macro for iconv and fixed it to check
for libc first.
2002-03-17 21:09:21 +00:00
Sascha Schumann
795c206389 > might not sufficiently update a timestamp.
echo > should be good enough and should be implemented by the shell.
2002-03-13 16:59:49 +00:00
Sascha Schumann
f02d3f4518 Some simplifications in PHP_ADD_SOURCES* 2002-03-13 12:48:05 +00:00