1 # setlocale.m4 serial 2 (gettext-0.10.40)
2 dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 # Check for setlocale declaration.
9 AC_DEFUN([gt_SETLOCALE],[
10 AC_CHECK_HEADERS([locale.h])
11 AC_MSG_CHECKING([for setlocale declaration])
12 AC_CACHE_VAL(gt_cv_proto_setlocale, [
20 #if defined(__STDC__) || defined(__cplusplus)
21 char *setlocale (int category, char *locale);
25 ], [], gt_cv_proto_setlocale_arg1="", gt_cv_proto_setlocale_arg1="const")
26 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"])
27 gt_cv_proto_setlocale=`echo "[$]gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
28 AC_MSG_RESULT([$]{ac_t:-
29 }[$]gt_cv_proto_setlocale)
30 AC_DEFINE_UNQUOTED(SETLOCALE_CONST,$gt_cv_proto_setlocale_arg1,
31 [Define as const if the declaration of setlocale() needs const.])