diff options
author | foobar <sniper@php.net> | 2002-10-11 15:25:36 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-10-11 15:25:36 +0000 |
commit | 0654763cc6dd55b5cc174f2bc698c43e16cce7c9 (patch) | |
tree | bfdf22225d26441cf48e787c660a5f6c06723d31 | |
parent | 8c6088839ba62f004be1f6a12491de51c27655dc (diff) | |
download | php-git-0654763cc6dd55b5cc174f2bc698c43e16cce7c9.tar.gz |
ws fix
-rw-r--r-- | ext/iconv/config.m4 | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4 index a6ffe827af..f37e7f1e50 100644 --- a/ext/iconv/config.m4 +++ b/ext/iconv/config.m4 @@ -43,24 +43,26 @@ int main() { icv_close( cd ); return 2; } -],[ - AC_MSG_RESULT(yes) - PHP_DEFINE([ICONV_SUPPORTS_ERRNO],1) - AC_DEFINE([ICONV_SUPPORTS_ERRNO],1,[Whether iconv supports error no or not]) -],[ - PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0) - AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not]) - AC_MSG_RESULT(no) -]) - if test -z "$iconv_lib_name"; then - AC_MSG_CHECKING([if iconv is glibc's]) - AC_TRY_COMPILE([#include <iconv.h>],[void __gconv(); int main() { __gconv(); } ],[ + ],[ AC_MSG_RESULT(yes) - PHP_DEFINE([ICONV_IMPL],["glibc"]) - AC_DEFINE([ICONV_IMPL],["glibc"],[Which iconv implementation to use]) -],[ + PHP_DEFINE([ICONV_SUPPORTS_ERRNO],1) + AC_DEFINE([ICONV_SUPPORTS_ERRNO],1,[Whether iconv supports error no or not]) + ],[ AC_MSG_RESULT(no) -]) + PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0) + AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not]) + ]) + + if test -z "$iconv_lib_name"; then + AC_MSG_CHECKING([if iconv is glibc's]) + AC_TRY_COMPILE([#include <iconv.h>],[void __gconv(); int main() { __gconv(); }], + [ + AC_MSG_RESULT(yes) + PHP_DEFINE([ICONV_IMPL],["glibc"]) + AC_DEFINE([ICONV_IMPL],["glibc"],[Which iconv implementation to use]) + ],[ + AC_MSG_RESULT(no) + ]) else case "$iconv_lib_name" in iconv [)] |