We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 374646c + a6c95c8 commit 4304759Copy full SHA for 4304759
acinclude.m4
@@ -2449,7 +2449,12 @@ AC_DEFUN([PHP_SETUP_ICONV], [
2449
dnl
2450
dnl Check libc first if no path is provided in --with-iconv
2451
2452
+
2453
if test "$PHP_ICONV" = "yes"; then
2454
+ dnl Reset LIBS temporarily as it may have already been included
2455
+ dnl -liconv in.
2456
+ LIBS_save="$LIBS"
2457
+ LIBS=
2458
AC_CHECK_FUNC(iconv, [
2459
found_iconv=yes
2460
],[
@@ -2459,6 +2464,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
2464
2465
])
2461
2466
2467
+ LIBS="$LIBS_save"
2462
2468
fi
2463
2469
2470
0 commit comments