~ubuntu-branches/ubuntu/gutsy/php5/gutsy

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt, CVE-2007-0905, CVE-2007-0906, CVE-2007-0909, CVE-2007-0910
  • Date: 2007-02-20 17:54:46 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070220175446-nudqyuv0dfowel3r
Tags: 5.2.1-0ubuntu1
* New upstream security/bugfix release:
  - safe_mode & open_basedir bypasses inside the session extension
    [CVE-2007-0905]
  - multiple buffer overflows in various extensions and functions
    [CVE-2007-0906]
  - underflow in the internal sapi_header_op() function [CVE-2007-0907]
  - information disclosure in the wddx extension [CVE-2007-0908]
  - string format vulnerability in *print() functions on 64 bit systems
    [CVE-2007-0909]
  - possible clobbering of super-globals in several code paths
    [CVE-2007-0910]
* Adapted patches to new upstream release:
  - 006-debian_quirks.patch
  - 034-apache2_umask_fix.patch
  - 044-strtod_arm_fix.patch
* Drop 109-libdb4.4.patch: Obsolete, upstream now checks for db 4.5 and 4.4.
* Drop 114-zend_alloc.c_m68k_alignment.patch and
  115-zend_alloc.c_memleak.patch: Applied upstream.
* Add debian/patches/000upstream-str_ireplace_offbyone.patch:
  - Fix off-by-one in str_ireplace(), a regression introduced in 5.2.1.
  - Patch taken from upstream CVS:
    http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.630&r2=1.631
  - CVE-2007-0911
* debian/control: Set Ubuntu maintainer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 ## $Id: configure.in,v 1.579.2.52.2.24 2006/10/30 23:06:22 iliaa Exp $ -*- autoconf -*-
 
1
 ## $Id: configure.in,v 1.579.2.52.2.41 2007/02/07 00:45:04 iliaa Exp $ -*- autoconf -*-
2
2
dnl ## Process this file with autoconf to produce a configure script.
3
3
 
4
4
divert(1)
43
43
 
44
44
MAJOR_VERSION=5
45
45
MINOR_VERSION=2
46
 
RELEASE_VERSION=0
 
46
RELEASE_VERSION=1
47
47
EXTRA_VERSION=""
48
48
PHP_VERSION="$MAJOR_VERSION.$MINOR_VERSION.$RELEASE_VERSION$EXTRA_VERSION"
49
49
PHP_VERSION_ID=`expr [$]MAJOR_VERSION \* 10000 + [$]MINOR_VERSION \* 100 + [$]RELEASE_VERSION`
122
122
dnl -------------------------------------------------------------------------
123
123
 
124
124
AC_PROG_CC
 
125
PHP_DETECT_ICC
125
126
AC_PROG_CC_C_O
126
127
dnl Change to AC_PROG_CC_STDC when we start requiring a post-2.13 autoconf
127
128
dnl AC_PROG_CC_STDC
480
481
getrusage \
481
482
gettimeofday \
482
483
gmtime_r \
 
484
getpwnam_r \
 
485
getgrnam_r \
 
486
getpwuid_r \
483
487
grantpt \
484
488
inet_ntoa \
485
489
inet_ntop \
596
600
PHP_READDIR_R_TYPE
597
601
PHP_CHECK_IN_ADDR_T
598
602
 
 
603
AC_CHECK_FUNCS(crypt_r, [ php_crypt_r="1" ], [ php_crypt_r="0" ])
 
604
if test "x$php_crypt_r" = "x1"; then
 
605
  PHP_CRYPT_R_STYLE
 
606
fi
 
607
 
599
608
divert(4)
600
609
 
601
610
dnl ## In diversion 4 we check user-configurable general settings.
683
692
  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
684
693
  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
685
694
  changequote([,])
686
 
  CFLAGS="$CFLAGS -O0"
687
 
  CXXFLAGS="$CXXFLAGS -O0"
 
695
  dnl add -O0 only if GCC or ICC is used
 
696
  if test "$GCC" = "yes" || test "$ICC" = "yes"; then
 
697
    CFLAGS="$CFLAGS -O0"
 
698
    CXXFLAGS="$CXXFLAGS -O0"
 
699
  fi
688
700
else
689
701
  PHP_DEBUG=0
690
702
  ZEND_DEBUG=no
1089
1101
  fi
1090
1102
fi
1091
1103
 
 
1104
case $PHP_LAYOUT in
 
1105
  GNU)
 
1106
    datarootdir=$prefix/share
 
1107
    ;;
 
1108
  *)
 
1109
    datarootdir=$prefix/php
 
1110
    ;;
 
1111
esac
 
1112
 
1092
1113
dnl Expand all directory names for use in macros/constants
1093
1114
EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
1094
1115
EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR`
1180
1201
PHP_SUBST(prefix)
1181
1202
PHP_SUBST(localstatedir)
1182
1203
PHP_SUBST(datadir)
 
1204
PHP_SUBST(datarootdir)
1183
1205
PHP_SUBST(sysconfdir)
1184
1206
 
1185
1207
PHP_SUBST(EXEEXT)
1327
1349
    zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c)
1328
1350
 
1329
1351
if test -r "$abs_srcdir/Zend/zend_objects.c"; then
1330
 
  PHP_ADD_SOURCES(Zend, zend_objects.c zend_object_handlers.c zend_objects_API.c zend_mm.c \
 
1352
  PHP_ADD_SOURCES(Zend, zend_objects.c zend_object_handlers.c zend_objects_API.c \
1331
1353
    zend_default_classes.c)
1332
1354
fi
1333
1355