Commit Graph

100 Commits

Author SHA1 Message Date
Stephen Reay
7a81505f6f Allow lookup of distro-packaged QDBM headers on Debian 2019-09-23 09:53:31 +02:00
Peter Kokot
75fb74860d Normalize comments in *nix build system m4 files
Normalization include:
- Use dnl for everything that can be ommitted when configure is built in
  favor of the shell comment character # which is visible in the output.
- Line length normalized to 80 columns
- Dots for most of the one line sentences
- Macro definitions include similar pattern header comments now
2019-05-12 18:43:03 +02:00
Dmitry Stogov
f1b306fe11 Switch to use ZTS cache 2019-03-12 14:15:47 +03:00
Peter Kokot
9df6a1e4dd Add AS_HELP_STRING to *nix build configure options
The Autoconf's default AS_HELP_STRING macro can properly format help
strings [1] so watching out if columns are aligned manually is not
anymore.

[1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
2019-03-07 20:36:59 +01:00
Peter Kokot
4371945b8b Replace obsolete AC_TRY_FOO with AC_FOO_IFELSE
Autoconf 2.50 released in 2001 made several macros obsolete including
the AC_TRY_RUN, AC_TRY_COMPILE and AC_TRY_LINK:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2

These macros should be replaced with the current AC_FOO_IFELSE instead:
- AC_TRY_RUN with AC_RUN_IFELSE and AC_LANG_SOURCE
- AC_TRY_LINK with AC_LINK_IFELSE and AC_LANG_PROGRAM
- AC_TRY_COMPILE with AC_COMPILE_IFELSE and AC_LANG_PROGRAM

PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version therefore systems
should be well supported by now.

This patch was created with the help of autoupdate script:
autoupdate <file>

Reference docs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
2018-07-30 02:36:38 +02:00
Peter Kokot
cf3b852109 Trim trailing whitespaces in build files
Some editors utilizing .editorconfig automatically trim whitespaces. For
convenience this patch removes whitespaces in certain build files:
- ext/*/config*.m4
- configure.ac
- acinclude.m4
2018-07-29 03:43:45 +02:00
Peter Kokot
8d3f8ca12a Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-07-25 00:53:25 +02:00
Tom Van Looy
7672f8be0b
Fix: follow the indent of the other configure options 2018-02-15 08:49:58 +01:00
Anatol Belski
fe86268336 fix resetting cursor data if dba_firstkey failed
better symbol check

fix config.m4
2017-05-28 19:30:29 +02:00
Anatol Belski
16d7fd9d7f implement support for LMDB in ext/dba
don't abort txn if cursor is active

fix typos
2017-05-28 18:33:12 +02:00
Michael Orlitzky
05f00e5060 ext/dba/config.m4: Autodetect Berkeley DB v5.3.
When the user passes --with-db4=DIR to ./configure, the directory DIR
is searched for a number of paths in order of preference. These paths
contain possible locations for Berkeley DB (BDB) to be installed, and
since PHP only supports BDB-4.x and BDB-5.x, it's important that (for
example) version 5.1 be autodetected before falling back to
/usr/include/db.h which can point to BDB-6.x.

The newer BDB-5.3 works with PHP, and if only BDB-5.3 is installed on
the user's system, the current ./configure script is fine. However, if
both BDB-5.3 and BDB-6.0 are installed, version 5.3 is not
autodetected, causing BDB-6.0 to be used. The ./configure step then fails.

This commit adds autodetection for BDB-5.3, and fixes a bug reported
on Gentoo at https://bugs.gentoo.org/show_bug.cgi?id=564824.
2015-12-09 11:37:50 +01:00
Christopher Jones
c6d977dd39 Fix long-standing visual pain point: the misalignment of './configure help' text.
Whitespace changes and a couple of grammar fixes.
2013-08-06 11:06:09 -07:00
Hannes Magnusson
74c6b76093 Fix 5.1 detection on ubuntu natty 2011-06-27 20:28:30 +00:00
Christopher Jones
17b31ae362 Add Berkeley DB 5.1 support to the DBA extension 2010-12-01 19:20:16 +00:00
Christopher Jones
afedcbbd1d Explicitly use db-5.0 and don't default to db sym link 2010-06-09 17:33:44 +00:00
Christopher Jones
e524236afa Add Berkeley DB 5 support. (An outstanding issue with BDB 4.8 related to 51086 that also affects BDB 5 is not yet resolved) 2010-06-03 07:03:05 +00:00
Michael Maclean
e52fa0027b Add Tokyo Cabinet abstract DB support to ext/dba 2010-03-24 23:38:59 +00:00
Christopher Jones
db7843bbac Auto detect recent versions of Berkeley DB4 2010-03-05 05:23:01 +00:00
Marcus Boerger
d309efd945 - More about 4.6 2007-12-06 14:01:49 +00:00
Marcus Boerger
1f623c4965 Add db 4.6 to detect list 2007-12-06 13:53:38 +00:00
Jani Taskinen
09d9338040 MFH:- Fixed bug #41433 (DBA: configure fails to include correct db.h for db4) 2007-07-19 10:50:16 +00:00
Jani Taskinen
ad61002dc4 MFH: fix wrong logic 2007-07-13 15:09:19 +00:00
Jani Taskinen
9d53e19697 MFH: cleanups + fixes 2007-07-13 14:23:59 +00:00
Antony Dovgal
007bac315d MFH: fix #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS) 2007-05-21 11:38:53 +00:00
Ilia Alshanetsky
9a1abfbb7d Revert previous patch and it breaks builds with built-in cdb lib 2006-12-05 17:54:52 +00:00
Ilia Alshanetsky
9666f1deae Config fix from Gentoo 2006-12-03 19:54:55 +00:00
Antony Dovgal
5a6c11d9f4 MFH: fix #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled) 2006-11-28 11:39:19 +00:00
Marcus Boerger
e038500be3 - Fix bug #38290 2006-08-07 07:57:12 +00:00
Antony Dovgal
1cbe552f4d change "-o" to "||" (fixes potential problems on weird systems where test doesn't support -o) 2005-11-29 18:26:02 +00:00
Ilia Alshanetsky
b8cc3a9c32 MFH: Make dba extension support BerkleyDB 4.3. 2005-08-22 19:59:28 +00:00
foobar
eb4103503c Add note how to build DBA as shared 2005-06-18 13:28:30 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
foobar
0060548378 no tabs 2005-05-08 14:02:19 +00:00
Marcus Boerger
f6bf9e67a8 - Make detection work for macros 2005-02-26 02:15:00 +00:00
Marcus Boerger
9ffeb12c4c - Add support for db1 through emulation
# Most probably db4 requires a slightly different detection since functions
# are macros which most probably doesn't work with current configure check.
2005-02-25 23:51:53 +00:00
Marcus Boerger
d907a500bd - Align 2005-02-25 20:02:45 +00:00
foobar
f8a540d105 - Typofix + removed unnecessary unsets caused by it 2005-01-22 01:31:54 +00:00
foobar
69eec3f3b9 MFB_4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:08:39 +00:00
Joe Orton
2685ca935f Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
to support multi-ABI platforms.
2004-11-03 14:32:52 +00:00
Marcus Boerger
16f30e1951 - Fix lib substitution (rurban at x-ray dot at ) 2004-09-25 15:29:19 +00:00
Marcus Boerger
4ee3282ec6 Search for db-4.2.x 2004-03-07 23:45:31 +00:00
Marcus Boerger
c69fb4133d dded qdbm handler (http://qdbm.sourceforge.net). 2003-12-18 20:25:21 +00:00
Marcus Boerger
923d0bcfb4 revert here too 2003-12-07 15:59:13 +00:00
Marcus Boerger
9c8678eb7b Fix enabling shared builds. 2003-12-07 00:21:47 +00:00
foobar
db50cd251e Aligned configure help texts. 2003-10-03 05:24:33 +00:00
Moriyoshi Koizumi
daf7528d90 Alignment fix 2003-10-02 10:47:12 +00:00
foobar
1ba3e3a6dc MFB 2003-08-15 18:47:23 +00:00
foobar
f07f3267e2 - Fixed some /usr/lib leaks into LIBS/LDFLAGS which later on made other
configure checks fail (old libs in /usr/lib, new ones in /opt/lib :)
2003-06-14 14:22:13 +00:00
Marcus Boerger
a13edb62d5 Fix builddir entry 2003-05-29 14:01:21 +00:00
Marcus Boerger
afc3b8b6dc MFB (these parts were missing) 2003-05-29 12:33:19 +00:00