mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 20:31:40 +01:00
19 lines
657 B
Diff
19 lines
657 B
Diff
diff --git a/configure.ac b/configure.ac
|
|
index 9131a01..47a2e37 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -458,7 +458,12 @@ fi
|
|
if test x"$EXTRA" = "xyes"
|
|
then
|
|
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])
|