From 9d8aa4b371c16ddc5e58f9b30b6c99a5110f241d Mon Sep 17 00:00:00 2001 From: dirk Date: Thu, 28 Dec 2000 14:38:34 +0000 Subject: Quick and dirty hack to fix build if postgresql is build with ssl support. PR: ports/23588 --- www/mod_php3/scripts/configure.php | 9 ++++++++- www/mod_php4/scripts/configure.php | 9 ++++++++- www/mod_php5/scripts/configure.php | 9 ++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) (limited to 'www') diff --git a/www/mod_php3/scripts/configure.php b/www/mod_php3/scripts/configure.php index 6bdb59bf297..db7df8f41e6 100644 --- a/www/mod_php3/scripts/configure.php +++ b/www/mod_php3/scripts/configure.php @@ -97,6 +97,9 @@ while [ "$1" ]; do \"PostgreSQL\") echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7" echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql" + if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then + LIBS="-lcrypto -lssl" + fi ;; \"SybaseDB\") echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds" @@ -126,7 +129,7 @@ while [ "$1" ]; do echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap" echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}" if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then - echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'" + LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib" fi ;; \"SNMP\") @@ -154,3 +157,7 @@ while [ "$1" ]; do esac shift done + +if [ "${LIBS}" ]; then + echo "CONFIGURE_ENV+= LIBS='${LIBS}'" +fi diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php index a4abc82102c..228f6949c72 100644 --- a/www/mod_php4/scripts/configure.php +++ b/www/mod_php4/scripts/configure.php @@ -101,6 +101,9 @@ while [ "$1" ]; do \"PostgreSQL\") echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7" echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql" + if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then + LIBS="-lcrypto -lssl" + fi ;; \"SybaseDB\") echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds" @@ -130,7 +133,7 @@ while [ "$1" ]; do echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap" echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}" if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then - echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'" + LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib" fi ;; \"SNMP\") @@ -177,3 +180,7 @@ EOF esac shift done + +if [ "${LIBS}" ]; then + echo "CONFIGURE_ENV+= LIBS='${LIBS}'" +fi diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php index a4abc82102c..228f6949c72 100644 --- a/www/mod_php5/scripts/configure.php +++ b/www/mod_php5/scripts/configure.php @@ -101,6 +101,9 @@ while [ "$1" ]; do \"PostgreSQL\") echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7" echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql" + if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then + LIBS="-lcrypto -lssl" + fi ;; \"SybaseDB\") echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds" @@ -130,7 +133,7 @@ while [ "$1" ]; do echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap" echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}" if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then - echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'" + LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib" fi ;; \"SNMP\") @@ -177,3 +180,7 @@ EOF esac shift done + +if [ "${LIBS}" ]; then + echo "CONFIGURE_ENV+= LIBS='${LIBS}'" +fi -- cgit