]> granicus.if.org Git - php/commitdiff
Fixed library capability detection behaviour.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 31 Oct 2002 20:23:53 +0000 (20:23 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 31 Oct 2002 20:23:53 +0000 (20:23 +0000)
# Whew! I've fixed all the known problems.
# And should I become a maintainer of this module?

ext/iconv/config.m4

index 5e2b47245dc5c3dd6676aa503b49e4c71e5e4456..37f82eb4796e915ab813b5c2fa01b559ae0e0969 100644 (file)
@@ -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