3
# Check for setlocale declaration.
5
AC_DEFUN([gt_SETLOCALE],[
6
AC_CHECK_HEADERS([locale.h])
7
AC_MSG_CHECKING([for setlocale declaration])
8
AC_CACHE_VAL(gt_cv_proto_setlocale, [
16
#if defined(__STDC__) || defined(__cplusplus)
17
char *setlocale (int category, char *locale);
21
], [], gt_cv_proto_setlocale_arg1="", gt_cv_proto_setlocale_arg1="const")
22
gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"])
23
gt_cv_proto_setlocale=`echo "[$]gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
24
AC_MSG_RESULT([$]{ac_t:-
25
}[$]gt_cv_proto_setlocale)
26
AC_DEFINE_UNQUOTED(SETLOCALE_CONST,$gt_cv_proto_setlocale_arg1,
27
[Define as const if the declaration of setlocale() needs const.])