~ubuntu-branches/ubuntu/raring/php5/raring

« back to all changes in this revision

Viewing changes to win32/build/config.w32

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-18 16:10:26 UTC
  • mfrom: (1.1.24) (0.3.58 sid)
  • Revision ID: package-import@ubuntu.com-20120618161026-hg1fc5r9z1a4hlqz
Tags: 5.4.4-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - d/rules: Simplify apache config settings since we never build 
    interbase or firebird.
  - debian/rules: export DEB_HOST_MULTIARCH properly.
  - Add build-dependency on lemon, which we now need.
  - Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
  - Dropped libcurl-dev not in the archive.
  - debian/control: replace build-depends on mysql-server with
    mysql-server-core-5.5 and mysql-client-5.5 to avoid upstart and
    mysql-server-5.5 postinst confusion with starting up multiple
    mysqlds listening on the same port.
  - Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions
    already in universe.
  - Dropped libonig-dev and libqgdbm since its in universe. (libonig MIR
    has been declined due to an inactive upstream. So this is probably
    a permanent change).
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests
* Dropped Changes:
  * d/rules: enable Suhosin patch with PHP5_SUHOSIN=yes -- Upstream suhosin
    has been slow to adopt PHP 5.4, and is showing signs of disengagement.
    Therefore, we will follow Debian's lead and drop Suhosin for now.
  - d/control: build-depend on mysql 5.5 instead of 5.1 for running tests.
    -- Debian just deps on mysql-server
  - Suggest php5-suhosin rather than recommends. -- Dropping suhosin
  - d/setup-mysql.sh: modify to work with mysql 5.5 differences -- superseded
    in Debian.
  - Only build php5-sqlite for sqlite3, dropping the obsolete sqlite2. --
    superseded in Debian
  - d/maxlifetime: Improve maxlifetime script to scan for more SAPIs and 
    scan all *.ini in conf.d directory. -- Change came from Debian
  - d/libapache2-mod-php5.postinst,libapache2-mod-php5filter.postinst: 
    Restart apache on first install to ensure module is fully enabled.
    -- Change came from Debian
  - debian/patches/php5-CVE-2012-1823.patch: filter query strings that
    are prefixed with '-' -- Fixed upstream
  - debian/control: Recommend php5-dev for php-pear. -- This was a poorly
    conceived idea anyway.
  - Pre-Depend on a new enough version of dpkg for dpkg-maintscript-helper
    rather than checking whether it exists at run-time, leading to more
    predictable behaviour on upgrades. -- Applied in Debian
  - d/p/gd-multiarch-fix.patch: superseded
* d/NEWS: add note explaining that SUHOSIN is no longer enabled in the
  Ubuntu packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// vim:ft=javascript
2
 
// $Id: config.w32 309779 2011-03-28 10:55:34Z pajoye $
 
2
// $Id$
3
3
// "Master" config file; think of it as a configure.in
4
4
// equivalent.
5
5
 
19
19
// Which version of the compiler do we have?
20
20
VCVERS = probe_binary(PHP_CL).substr(0, 5).replace('.', '');
21
21
STDOUT.WriteLine("  Detected compiler " + VC_VERSIONS[VCVERS]);
 
22
 
 
23
if (VCVERS < 1500) {
 
24
        ERROR("Unsupported MS C++ Compiler, VC9 (2008) minimum is required");
 
25
}
 
26
 
22
27
AC_DEFINE('COMPILER', VC_VERSIONS[VCVERS], "Detected compiler version");
23
28
DEFINE("PHP_COMPILER_SHORT", VC_VERSIONS_SHORT[VCVERS]);
24
29
AC_DEFINE('PHP_COMPILER_ID', VC_VERSIONS_SHORT[VCVERS], "Compiler compatibility ID");
100
105
if (PHP_DEBUG == "yes" && PHP_DEBUG_PACK == "yes") {
101
106
        ERROR("Use of both --enable-debug and --enable-debug-pack not allowed.");
102
107
}
 
108
 
 
109
ARG_ENABLE('pgi', 'Generate PGO instrumented binaries', 'no');
 
110
ARG_WITH('pgo', 'Compile optimized binaries using training data from folder', 'no');
 
111
if (PHP_PGI == "yes" || PHP_PGO != "no") {
 
112
        PGOMGR = PATH_PROG('pgomgr', WshShell.Environment("Process").Item("PATH"));
 
113
        if (!PGOMGR) {
 
114
                ERROR("--enable-pgi and --with-pgo options can only be used if PGO capable compiler is present.");
 
115
        }
 
116
        if (PHP_PGI == "yes" && PHP_PGO != "no") {
 
117
                ERROR("Use of both --enable-pgi and --with-pgo not allowed.");
 
118
        }
 
119
}
 
120
 
103
121
ARG_ENABLE('zts', 'Thread safety', 'yes');
104
122
// Configures the hard-coded installation dir
105
123
ARG_WITH('prefix', 'where PHP will be installed', '');
229
247
        DEFINE("PHPLIB", "php" + PHP_VERSION + ".lib");
230
248
}
231
249
 
 
250
// CFLAGS, LDFLAGS and BUILD_DIR are defined
 
251
// Add compiler and link flags if PGO options are selected
 
252
if (PHP_DEBUG != "yes" && PHP_PGI == "yes") {
 
253
        ADD_FLAG('CFLAGS', "/GL /O2");
 
254
        ADD_FLAG('LDFLAGS', "/LTCG:PGINSTRUMENT");
 
255
        DEFINE("PGOPGD_DIR", "$(BUILD_DIR)");
 
256
}
 
257
else if (PHP_DEBUG != "yes" && PHP_PGO != "no") {
 
258
        ADD_FLAG('CFLAGS', "/GL /O2");
 
259
        ADD_FLAG('LDFLAGS', "/LTCG:PGUPDATE");
 
260
        DEFINE("PGOPGD_DIR", ((PHP_PGO.length == 0 || PHP_PGO == "yes") ? "$(BUILD_DIR)" : PHP_PGO));
 
261
}
 
262
 
232
263
// Find the php_build dir - it contains headers and libraries
233
264
// that we need
234
265
ARG_WITH('php-build', 'Path to where you extracted the development libraries (http://wiki.php.net/internals/windows/libs). Assumes that it is a sibling of this source dir (..\\deps) if not specified', 'no');
328
359
        zend_stream.c zend_iterators.c zend_interfaces.c zend_objects.c \
329
360
        zend_object_handlers.c zend_objects_API.c \
330
361
        zend_default_classes.c zend_execute.c zend_strtod.c zend_gc.c zend_closures.c \
331
 
        zend_float.c");
 
362
        zend_float.c zend_string.c");
332
363
 
333
364
if (VCVERS == 1200) {
334
365
        AC_DEFINE('ZEND_DVAL_TO_LVAL_CAST_OK', 1);
335
366
}
336
367
 
337
 
ADD_SOURCES("main", "main.c snprintf.c spprintf.c safe_mode.c getopt.c fopen_wrappers.c \
 
368
ADD_SOURCES("main", "main.c snprintf.c spprintf.c getopt.c fopen_wrappers.c \
338
369
        php_scandir.c php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
339
370
        strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c network.c \
340
371
        php_open_temporary_file.c php_logos.c output.c internal_functions.c php_sprintf.c");
358
389
 
359
390
STDOUT.WriteBlankLines(1);
360
391
 
 
392
 
361
393
/* Can we build with IPv6 support? */
362
394
ARG_ENABLE("ipv6", "Disable IPv6 support (default is turn it on if available)", "yes");
363
395
 
377
409
ARG_ENABLE('fd-setsize', "Set maximum number of sockets for select(2)", "256");
378
410
ADD_FLAG("CFLAGS", "/D FD_SETSIZE=" + parseInt(PHP_FD_SETSIZE));
379
411
 
380
 
ARG_ENABLE("zend-multibyte", "Enable Zend multibyte encoding support", "no");
381
 
if (PHP_ZEND_MULTIBYTE == "yes") {
382
 
   STDOUT.WriteLine("Enabling Zend multibyte encoding support");
383
 
   AC_DEFINE('ZEND_MULTIBYTE', 1);
384
 
}
385
 
 
386
412
AC_DEFINE('HAVE_USLEEP', 1);
387
413
AC_DEFINE('HAVE_STRCOLL', 1);
388
414
 
408
434
        FSO.CreateFolder("tmp");
409
435
}
410
436
 
411
 
ARG_ENABLE("security-flags", "Enable the compiler security flags", "no");
 
437
ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes");
412
438
if (PHP_SECURITY_FLAGS == "yes") {
413
439
        ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE ");
414
440
}