summaryrefslogtreecommitdiff
path: root/ext/iconv
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2002-10-31 20:23:53 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2002-10-31 20:23:53 +0000
commita00abb68500ed4fa1d1df2cd761c7ec99ebefdb0 (patch)
treeb0d50be018239af32d621f9ef871c89f912d5e07 /ext/iconv
parent0b8040aa8db60940c1644a69fbfecb6802fe8cf7 (diff)
downloadphp-git-a00abb68500ed4fa1d1df2cd761c7ec99ebefdb0.tar.gz
Fixed library capability detection behaviour.
# Whew! I've fixed all the known problems. # And should I become a maintainer of this module?
Diffstat (limited to 'ext/iconv')
-rw-r--r--ext/iconv/config.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4
index 5e2b47245d..37f82eb479 100644
--- a/ext/iconv/config.m4
+++ b/ext/iconv/config.m4
@@ -14,7 +14,8 @@ if test "$PHP_ICONV" != "no"; then
])
if test "$iconv_avail" != "no"; then
-
+ iconv_cflags_save="$CFLAGS"
+ CFLAGS="$CFLAGS $INCLUDES"
AC_MSG_CHECKING([if iconv supports errno])
AC_TRY_RUN([
#define LIBICONV_PLUG
@@ -107,6 +108,8 @@ int main() {
;;
esac
+ CFLAGS="$iconv_cflags_save"
+
PHP_NEW_EXTENSION(iconv, iconv.c, $ext_shared)
PHP_SUBST(ICONV_SHARED_LIBADD)
else