diff options
| author | Dave Love | 2003-01-06 17:42:52 +0000 |
|---|---|---|
| committer | Dave Love | 2003-01-06 17:42:52 +0000 |
| commit | fb33ec5232cfd67eab0ab20d25b34ea6012b89e6 (patch) | |
| tree | 5abdb52f78f191944d21ff92adf7e69476045297 | |
| parent | 3e0b7b44a8ab678c575f840cf1b51376183e42df (diff) | |
| download | emacs-fb33ec5232cfd67eab0ab20d25b34ea6012b89e6.tar.gz emacs-fb33ec5232cfd67eab0ab20d25b34ea6012b89e6.zip | |
Check for nl_langinfo.
[!HAVE_SIZE_T]: Fix typedef.
| -rw-r--r-- | configure.in | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 9e9321a3feb..3e7eca240e8 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3,7 +3,7 @@ dnl To rebuild the `configure' script from this, execute the command | |||
| 3 | dnl autoconf | 3 | dnl autoconf |
| 4 | dnl in the directory containing this script. | 4 | dnl in the directory containing this script. |
| 5 | dnl | 5 | dnl |
| 6 | dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 | 6 | dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003 |
| 7 | dnl Free Software Foundation, Inc. | 7 | dnl Free Software Foundation, Inc. |
| 8 | dnl | 8 | dnl |
| 9 | dnl This file is part of GNU Emacs. | 9 | dnl This file is part of GNU Emacs. |
| @@ -1201,9 +1201,7 @@ then | |||
| 1201 | CC="$CC $NON_GCC_TEST_OPTIONS" | 1201 | CC="$CC $NON_GCC_TEST_OPTIONS" |
| 1202 | fi | 1202 | fi |
| 1203 | 1203 | ||
| 1204 | #### Some other nice autoconf tests. If you add a test here which | 1204 | #### Some other nice autoconf tests. |
| 1205 | #### should make an entry in src/config.h, don't forget to add an | ||
| 1206 | #### #undef clause to src/config.h.in for autoconf to modify. | ||
| 1207 | 1205 | ||
| 1208 | dnl checks for programs | 1206 | dnl checks for programs |
| 1209 | AC_PROG_LN_S | 1207 | AC_PROG_LN_S |
| @@ -2303,6 +2301,18 @@ fi | |||
| 2303 | 2301 | ||
| 2304 | AC_FUNC_FORK | 2302 | AC_FUNC_FORK |
| 2305 | 2303 | ||
| 2304 | dnl Adapted from Haible's version. | ||
| 2305 | AC_CACHE_CHECK([for nl_langinfo and CODESET], emacs_cv_langinfo_codeset, | ||
| 2306 | [AC_TRY_LINK([#include <langinfo.h>], | ||
| 2307 | [char* cs = nl_langinfo(CODESET);], | ||
| 2308 | emacs_cv_langinfo_codeset=yes, | ||
| 2309 | emacs_cv_langinfo_codeset=no) | ||
| 2310 | ]) | ||
| 2311 | if test $emacs_cv_langinfo_codeset = yes; then | ||
| 2312 | AC_DEFINE(HAVE_LANGINFO_CODESET, 1, | ||
| 2313 | [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) | ||
| 2314 | fi | ||
| 2315 | |||
| 2306 | AC_CHECK_TYPES(size_t) | 2316 | AC_CHECK_TYPES(size_t) |
| 2307 | 2317 | ||
| 2308 | dnl Restrict could probably be used effectively other than in regex.c. | 2318 | dnl Restrict could probably be used effectively other than in regex.c. |
| @@ -2657,7 +2667,7 @@ char *alloca (); | |||
| 2657 | # endif /* HAVE_ALLOCA_H */ | 2667 | # endif /* HAVE_ALLOCA_H */ |
| 2658 | #endif /* __GNUC__ */ | 2668 | #endif /* __GNUC__ */ |
| 2659 | #ifndef HAVE_SIZE_T | 2669 | #ifndef HAVE_SIZE_T |
| 2660 | typedef size_t unsigned | 2670 | typedef unsigned size_t |
| 2661 | #endif | 2671 | #endif |
| 2662 | #endif /* NOT_C_CODE */ | 2672 | #endif /* NOT_C_CODE */ |
| 2663 | 2673 | ||