Commit graph

40 commits

Author SHA1 Message Date
Remi Collet
e11d3b1690 Move gen_stub.php to build directory and install it so phpize can take care of it, and thus extension can use it as it is already in Makefile 2020-04-03 10:48:20 +02:00
Peter Kokot
4e7064d173 Move acinclude.m4 to build/php.m4
The acinclude.m4 file is in a usual Autotools build processed with
Automake's aclocal tool. Since PHP currently doesn't use Automake and
aclocal this file can be moved into the build directory. PHP build
system currently generates a combined aclocal.m4 file that Autoconf
can processes automatically.

However, a newer practice is writing all local macros in separate
dedicated files prefixed with package name, in PHP's case PHP_MACRO_NAME
and putting them in a common `m4` directory. PHP uses currently `build`
directory for this purpose.

Name `php.m4` probably most resembles such file for PHP's case.

PHP manually created the aclocal.m4 file from acinclude.m4 and
build/libtool.m4. Which is also not a particularly good practice [1], so
this patch also removes the generated alocal.m4 usage and uses
m4_include() calls manually in the configure.ac and phpize.m4 files
manually.

- sort order is not important but can be alphabetical
- list of *.m4 files prerequisites for configure script generation
  updated
- Moving m4_include() before AC_INIT also removes all comments starting
  with hash character (`#`) in the included files.

[1] https://autotools.io/autoconf/macros.html
2019-04-23 20:28:45 +02:00
Peter Kokot
2957651c5c Move Makefile.global and Makefile.gcov to build directory
These files can be stored in the build directory instead of bloating the
project root directory.
2019-03-04 12:30:42 +01:00
Peter Kokot
3aeb7b0e77 Remove deprecated PHP_EXTENSION m4 macro
The PHP_EXTENSION macro was used before the introduction of the updated
build system in the 9d9d39a0de. The
extensions at that time possibly still used the Makefile.in and Automake
and the PHP_EXTENSION macro has been replaced with the PHP_NEW_EXTENSION
macro.

Today, the once deprecated macro can be removed in favor of only
PHP_NEW_EXTENSION macro.
2019-02-27 20:12:53 +01:00
Peter Kokot
7e445ef3b1 Set AC_CONFIG_AUX_DIR to build directory
The Autoconf macro AC_CONFIG_AUX_DIR can set the location of the
auxiliary build tools such as config.guess, config.sub, and bundled
libtool scripts and moves these bundled files from the root directory
to the build subdirectory.

Additionally some changes in this context or as a part of obsoletion:
- The LT_TARGETS variable in build/build2.mk file was once used as a part
  of the Automake step. It's not used anymore and has been refactored to
  separate makedist script directly.
- ltconfig is not used anymore since libtool 1.4+
  cf8d1563c2
- phpize file locations for the config.guess, config.sub, and ltmain.sh
  has been refactored accordingly.
2018-12-10 08:11:44 +01:00
Eli Schwartz
2d03197749 ext/gd: Use pkg-config to detect the availability of freetype2
The latest version of freetype2 does not install freetype-config by
default, but pkg-config support has been there for approximately 15
years. In order to reliably detect freetype2, pkg-config *must* be used.

See:
https://savannah.nongnu.org/bugs/?53093
https://bugs.php.net/bug.php?id=76324
2018-11-07 13:05:47 +01:00
Peter Kokot
addcf2402d Remove mkdep.awk
The `mkdep.awk` file was part of the previous *nix build system and was
used to create a .deps file with a list of dependencies that could be
processed by Automake further on.

Newer build system was done via 9d9d39a0de
and outdated files removed via 22815419f8
so the current file in the PHP source code is not used anymore.

Additionally, the *.slo files were processed by this file. The *.slo
files also used to be generated by older libtool so today, these don't
get generated anymore.
2018-10-20 10:08:54 +02:00
Peter Kokot
1ad08256f3 Sync leading and final newlines in source code files
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:56:38 +02:00
Anatol Belski
8a5ababea2 Add missing packaging entries 2018-10-08 18:42:09 +02:00
Xinchen Hui
518a9f8bfd Fixed build extension by phpize 2018-01-17 15:09:04 +08:00
Joe Watkins
8e447eafd9
fix broken build scripts #2124 2017-01-06 16:04:52 +00:00
Christopher Jones
6af7526c77 Remove tabs on blanklines in Makefile sources. This prevents a
'suspicious line' warning when editing & saving Makefile using Emacs.
2013-07-30 13:36:10 -07:00
Kalle Sommer Nielsen
fcb0984991 Fixed bug #52037 (Concurrent builds fail in install-programs) -- Patch by Seanius at debian dot org 2010-07-13 17:21:00 +00:00
foobar
bcade7ced4 - Fixed header installing under phpize builds 2005-11-21 23:07:36 +00:00
foobar
27d2fe07ff MF51:- Fixed bug #34850 (--program-suffix and --program-prefix not included in man page names) 2005-10-13 10:04:17 +00:00
Marcus Boerger
8a3ea48eef - run-tests-config.php was never used and now renamed 2005-08-31 06:58:25 +00:00
foobar
ee5fd96e37 - Made it possible to do "make test" for phpized extensions 2005-08-08 16:06:49 +00:00
foobar
d3f1bf4c35 - Fix paths when using --libdir and --includedir configure options 2005-06-07 21:56:09 +00:00
foobar
4094bf77c5 Removed the empty $bin_src_SCRIPTS (no longer needed), bug #33166 2005-05-30 06:33:45 +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
e49cebe157 - acconfig.h should not be installed. (it is only a template file..) 2005-05-03 11:34:32 +00:00
foobar
40b6c60d9d - Added man pages for "phpize" and "php-config" scripts. (Jakub Vrana) 2005-04-30 04:27:23 +00:00
foobar
2c9bf19823 Moved phpextdist to dev/ 2005-04-30 02:40:19 +00:00
foobar
f370582500 Remove: Has not existed for ages.. 2005-03-24 17:16:34 +00:00
foobar
0b7435f590 ws 2005-03-01 09:25:36 +00:00
Wez Furlong
401f813383 Let's install the mbstring headers.
Fixes PECL #3516
2005-02-28 05:21:35 +00:00
foobar
480a3b08d5 - Changed phpize not to require automake and libtool.
- Fixed build system to always use bundled libtool files.
2005-01-20 01:41:20 +00:00
Derick Rethans
7f12445175 - MFB: Add dom/xml_common.h header as installed header in order to be able to build pecl/xml_reader 2004-12-28 15:20:42 +00:00
foobar
c9f552923a - Fixed bug #28385 (files in $(prefix)/lib/php/build/* installed with wrong
permissions). (Jani, ramsy at ramix dot jp)
2004-12-21 04:58:50 +00:00
Derick Rethans
9b9ae8ee70 - We need to install the headers too. 2004-11-23 13:05:24 +00:00
Rob Richards
f726dc7af1 add ext/libxml/ to the headers path 2004-04-19 19:46:00 +00:00
foobar
e01ab8c9cf - Made --program-prefix and --program-suffix work. (See bug #23030) 2003-12-01 15:17:13 +00:00
foobar
55dfa3722d MFB 2003-09-19 05:35:50 +00:00
foobar
9a47ae68ef - Single header files installation. 2003-08-31 10:54:16 +00:00
Wez Furlong
b0d74a9485 install sqlite headers with the rest of php.
We only really need sqlite.h, but our build system doesn't provide for
installation of a single header file
(at least not that I can see)
2003-08-31 01:44:45 +00:00
Sascha Schumann
d1d823b0a3 Use INSTALL to install build files 2003-08-27 13:58:44 +00:00
Sascha Schumann
0ad5fa63c9 Use $(INSTALL_DATA) instead of cp 2003-08-26 00:04:25 +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
Wez Furlong
57f114969a Add streams headers to those used for shared extensions. 2003-03-01 13:52:11 +00:00
foobar
20c43285f7 - Fixed bug: #13561 (--without-pear prevents install of phpize, php-config) 2003-01-28 10:59:12 +00:00