1*1424dfb3Schristos# codeset.m4 serial 5 (gettext-0.18.2) 2*1424dfb3Schristosdnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2020 Free Software 3*1424dfb3Schristosdnl Foundation, Inc. 4*1424dfb3Schristosdnl This file is free software; the Free Software Foundation 5*1424dfb3Schristosdnl gives unlimited permission to copy and/or distribute it, 6*1424dfb3Schristosdnl with or without modifications, as long as this notice is preserved. 7*1424dfb3Schristos 8*1424dfb3Schristosdnl From Bruno Haible. 9*1424dfb3Schristos 10*1424dfb3SchristosAC_DEFUN([AM_LANGINFO_CODESET], 11*1424dfb3Schristos[ 12*1424dfb3Schristos AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], 13*1424dfb3Schristos [AC_LINK_IFELSE( 14*1424dfb3Schristos [AC_LANG_PROGRAM( 15*1424dfb3Schristos [[#include <langinfo.h>]], 16*1424dfb3Schristos [[char* cs = nl_langinfo(CODESET); return !cs;]])], 17*1424dfb3Schristos [am_cv_langinfo_codeset=yes], 18*1424dfb3Schristos [am_cv_langinfo_codeset=no]) 19*1424dfb3Schristos ]) 20*1424dfb3Schristos if test $am_cv_langinfo_codeset = yes; then 21*1424dfb3Schristos AC_DEFINE([HAVE_LANGINFO_CODESET], [1], 22*1424dfb3Schristos [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 23*1424dfb3Schristos fi 24*1424dfb3Schristos]) 25