aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2003-01-06 17:42:52 +0000
committerDave Love2003-01-06 17:42:52 +0000
commitfb33ec5232cfd67eab0ab20d25b34ea6012b89e6 (patch)
tree5abdb52f78f191944d21ff92adf7e69476045297
parent3e0b7b44a8ab678c575f840cf1b51376183e42df (diff)
downloademacs-fb33ec5232cfd67eab0ab20d25b34ea6012b89e6.tar.gz
emacs-fb33ec5232cfd67eab0ab20d25b34ea6012b89e6.zip
Check for nl_langinfo.
[!HAVE_SIZE_T]: Fix typedef.
-rw-r--r--configure.in20
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
3dnl autoconf 3dnl autoconf
4dnl in the directory containing this script. 4dnl in the directory containing this script.
5dnl 5dnl
6dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 6dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003
7dnl Free Software Foundation, Inc. 7dnl Free Software Foundation, Inc.
8dnl 8dnl
9dnl This file is part of GNU Emacs. 9dnl 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"
1202fi 1202fi
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
1208dnl checks for programs 1206dnl checks for programs
1209AC_PROG_LN_S 1207AC_PROG_LN_S
@@ -2303,6 +2301,18 @@ fi
2303 2301
2304AC_FUNC_FORK 2302AC_FUNC_FORK
2305 2303
2304dnl Adapted from Haible's version.
2305AC_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 ])
2311if 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).])
2314fi
2315
2306AC_CHECK_TYPES(size_t) 2316AC_CHECK_TYPES(size_t)
2307 2317
2308dnl Restrict could probably be used effectively other than in regex.c. 2318dnl 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
2660typedef size_t unsigned 2670typedef unsigned size_t
2661#endif 2671#endif
2662#endif /* NOT_C_CODE */ 2672#endif /* NOT_C_CODE */
2663 2673