~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to m4/setlocale.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#serial 2
2
 
 
3
 
# Check for setlocale declaration.
4
 
 
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, [
9
 
AC_TRY_COMPILE([
10
 
#include <stdlib.h>
11
 
#include <locale.h>
12
 
extern
13
 
#ifdef __cplusplus
14
 
"C"
15
 
#endif
16
 
#if defined(__STDC__) || defined(__cplusplus)
17
 
char *setlocale (int category, char *locale);
18
 
#else
19
 
char *setlocale();
20
 
#endif
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.])
28
 
])