|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-08 14:03 UTC] schlueter at phpbar dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 04:00:01 2025 UTC |
Description: ------------ There are two errors in config.m4 for idn. One is that it's looking for idn.h instead of idna.h. The other is a typo in the test of the $PHP_IDN variable. Reproduce code: --------------- Here is a patch that fixes the problem: --- config.m4.orig Wed Jun 8 10:37:21 2005 +++ config.m4 Wed Jun 8 10:37:58 2005 @@ -6,7 +6,7 @@ PHP_ARG_WITH(idn, for idn support, if test "$PHP_IDN" != "no"; then SEARCH_PATH="/usr/local /usr" - SEARCH_FOR="/include/idn.h" + SEARCH_FOR="/include/idna.h" if test -r $PHP_IDN/$SEARCH_FOR; then # path given as parameter IDN_DIR=$PHP_IDN else @@ -19,7 +19,7 @@ if test "$PHP_IDN" != "no"; then done fi - if test "PHP_IDN" == "no"; then + if test "$PHP_IDN" = "no"; then AC_MSG_RESULT([not found]) AC_MSG_ERROR([Please reinstall the GNU libidn distribution]) fi Actual result: -------------- checking for re2c... exit 0; checking for mawk... no checking for gawk... no checking for nawk... nawk checking for idn support... yes, shared checking for idn files in default path... test: PHP_IDN: unexpected operator checking for stringprep_check_version in -lidn... no configure: error: wrong idn lib version or lib not found `/home/tmp/tmpy49O4t/idn-0.1/configure --with-idn' failed