From 65b44ec10b807791423e1ea4b723e0b1d27634b2 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 25 Nov 2007 18:07:06 +0000 Subject: php: removing shared from --enable-mbstring for distros older than 12.0 git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1473 370017ae-e619-0410-ac65-c121f96126d4 --- patches/php/php.SlackBuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'patches') diff --git a/patches/php/php.SlackBuild b/patches/php/php.SlackBuild index 83112715..d91cf9a2 100755 --- a/patches/php/php.SlackBuild +++ b/patches/php/php.SlackBuild @@ -30,7 +30,7 @@ function default_version { # get version from /etc/slackware-version - if [ -f "$1/etc/slackware-version" ]; then + if [ -f "$1/etc/slackware-version" ]; then # TODO: this changes :/ cat $1/etc/slackware-version | awk '{ print $2 }' | sed -e 's/.0$//' | tr -d . else echo "none" @@ -280,16 +280,19 @@ php_configure() { if (( `default_version` >= 120 )); then $CONFIG_FILES="--with-config-file-scan-dir=/etc/php --with-config-file-path=/etc/httpd" $SNMP="--with-snmp=shared,/usr" + $MBSTRING="--enable-mbstring=shared" else $CONFIG_FILES="--with-config-file-path=/etc/apache" + $MBSTRING="--enable-mbstring" fi EXTENSION_DIR=/usr/$LIB/php/extensions \ CFLAGS="$SLKCFLAGS" \ - ./configure --prefix=/usr \ + ./configure \ $* \ - --with-libdir=$LIB \ + --prefix=/usr \ -libdir=$LIBDIR \ + --with-libdir=$LIB \ --prefix=/usr \ --sysconfdir=/etc \ --disable-safe-mode \ @@ -341,7 +344,7 @@ php_configure() { --with-imap-ssl=/usr \ --with-imap=$IMAPLIBDIR \ --with-ldap=shared \ - --enable-mbstring=shared \ + $MBSTRING \ --with-hash \ --with-mhash=shared,/usr \ --with-mysql=shared,/usr \ @@ -369,7 +372,7 @@ php_configure() { --enable-static=no \ --with-gnu-ld \ --with-pic \ - --build=$ARCH-slackware-linux + --build=$ARCH-slackware-linux # TODO else EXTENSION_DIR=/usr/$LIB/php/extensions \ -- cgit v1.2.3