+AC_DEFUN([gl_PREREQ_RPMATCH], [
+ AC_CACHE_CHECK([for nl_langinfo and YESEXPR], gl_cv_langinfo_yesexpr,
+ [AC_TRY_LINK([#include <langinfo.h>],
+ [char* cs = nl_langinfo(YESEXPR); return !cs;],
+ [gl_cv_langinfo_yesexpr=yes],
+ [gl_cv_langinfo_yesexpr=no])
+ ])
+ if test $gl_cv_langinfo_yesexpr = yes; then
+ AC_DEFINE([HAVE_LANGINFO_YESEXPR], 1,
+ [Define if you have <langinfo.h> and nl_langinfo(YESEXPR).])
+ fi
+])