aboutsummaryrefslogtreecommitdiffstats
path: root/main/znc/libiconv.patch
blob: 1fd5838c21ac2288444b025e5a55dc7855e2a67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- ./configure.ac.orig
+++ ./configure.ac
@@ -504,7 +504,13 @@
 fi
 
 AC_CHECK_FUNC( iconv, CHARSET=1 )
-AC_CHECK_LIB( iconv, iconv_open, LIBICONV=-liconv ; CHARSET=1 )
+dnl On some systems iconv is in a separate library, and may actually
+dnl be named libiconv.
+AC_CHECK_LIB( iconv, libiconv_open, LIBICONV=-liconv ; CHARSET=1 )
+if test $ac_cv_lib_iconv_libiconv = no; then
+	AC_CHECK_LIB( iconv, iconv_open, LIBICONV=-liconv ; CHARSET=1 )
+fi
+
 if test "x$CHARSET" = "x1"
 then
 	AC_MSG_CHECKING([whether iconv expects a const second argument])