package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / mono / 0005-eglib-checking-for-locale_charset-function.patch
blob52d5638451acc57869c12700d229f79bd20c729b
1 From 026a8c44d332b3595814ce0aceba255467cd7b6d Mon Sep 17 00:00:00 2001
2 From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
3 Date: Sat, 5 Sep 2015 08:57:21 +0200
4 Subject: [PATCH] eglib: checking for locale_charset function
6 This patch checks if locale_charset function is availabe in
7 libiconv or libcharset and changes the linking options accordingly.
9 Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
10 ---
11 eglib/configure.ac | 1 +
12 1 file changed, 1 insertion(+)
14 diff --git a/eglib/configure.ac b/eglib/configure.ac
15 index 9d094ea..5ea220e 100644
16 --- a/eglib/configure.ac
17 +++ b/eglib/configure.ac
18 @@ -182,6 +182,7 @@ fi
19 AC_SUBST(G_HAVE_ISO_VARARGS)
21 AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h sys/resource.h)
22 +AC_CHECK_LIB([iconv], [locale_charset],[],[AC_CHECK_LIB([charset], [locale_charset],[LIBS+="-liconv -lcharset"])])
23 AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
24 AC_SUBST(HAVE_ALLOCA_H)
26 --
27 1.9.1