Allow using things that were deprecated in gtk+-3.22.
[freeciv.git] / m4 / locale.m4
blob2f8fd96c89122503c42e891fe5077c55cc3fd19e
1 #serial 1
3 AC_DEFUN([FC_LIBCHARSET],
5   AC_CACHE_CHECK([for libcharset], am_cv_libcharset,
6     [lc_save_LIBS="$LIBS"
7      LIBS="$LIBS $LIBICONV"
8      AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <libcharset.h>]], [[locale_charset()]])],[am_cv_libcharset=yes],[am_cv_libcharset=no]) 
9       LIBS="$lc_save_LIBS" 
10     ])
11   if test $am_cv_libcharset = yes; then
12     AC_DEFINE([HAVE_LIBCHARSET], [1],
13       [Define if you have <libcharset.h> and locale_charset().])
14   fi