--- embedaddon/php/acinclude.m4 2013/07/22 01:44:13 1.1.1.2.2.1 +++ embedaddon/php/acinclude.m4 2013/07/22 01:31:35 1.1.1.3 @@ -1,5 +1,5 @@ dnl -dnl $Id: acinclude.m4,v 1.1.1.2.2.1 2013/07/22 01:44:13 misho Exp $ +dnl $Id: acinclude.m4,v 1.1.1.3 2013/07/22 01:31:35 misho Exp $ dnl dnl This file contains local autoconf functions. dnl @@ -1832,7 +1832,7 @@ AC_TRY_COMPILE([ ]) dnl ------------------------------------------------------------------------- -dnl Library/function existance and build sanity checks +dnl Library/function existence and build sanity checks dnl ------------------------------------------------------------------------- dnl @@ -2342,8 +2342,10 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ AC_MSG_ERROR([OpenSSL version 0.9.6 or greater required.]) fi - if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then + if test -n "$OPENSSL_LIBS"; then PHP_EVAL_LIBLINE($OPENSSL_LIBS, $1) + fi + if test -n "$OPENSSL_INCS"; then PHP_EVAL_INCLINE($OPENSSL_INCS) fi fi @@ -2449,7 +2451,12 @@ AC_DEFUN([PHP_SETUP_ICONV], [ dnl dnl Check libc first if no path is provided in --with-iconv dnl + if test "$PHP_ICONV" = "yes"; then + dnl Reset LIBS temporarily as it may have already been included + dnl -liconv in. + LIBS_save="$LIBS" + LIBS= AC_CHECK_FUNC(iconv, [ found_iconv=yes ],[ @@ -2459,6 +2466,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [ found_iconv=yes ]) ]) + LIBS="$LIBS_save" fi dnl