dnl CF_NL_LANGINFO_1STDAY version: 3 updated: 2020/03/19 20:23:48
dnl ---------------------
dnl glibc locale support has runtime extensions which might be implemented in
dnl other systems.
AC_DEFUN([CF_NL_LANGINFO_1STDAY],[
AC_CACHE_CHECK(if runtime has nl_langinfo support for first weekday,
	cf_nl_langinfo_1stday,[
	AC_TRY_COMPILE([
#include <langinfo.h>
#include <locale.h>
],[
	int first_weekday = nl_langinfo (_NL_TIME_FIRST_WEEKDAY)[0];
	long week_1stday_l = (long) nl_langinfo (_NL_TIME_WEEK_1STDAY);
	(void) first_weekday;
	(void) week_1stday_l;
],[cf_nl_langinfo_1stday=yes
],[cf_nl_langinfo_1stday=no
])
])
test "x$cf_nl_langinfo_1stday" = xyes && AC_DEFINE(HAVE_NL_LANGINFO_1STDAY,1,[Define to 1 if runtime has nl_langinfo support for first weekday])
])dnl
