Mercurial > emacs
comparison configure.in @ 49083:a45ef2c4e7f4
Check for nl_langinfo.
[!HAVE_SIZE_T]: Fix typedef.
author | Dave Love <fx@gnu.org> |
---|---|
date | Mon, 06 Jan 2003 17:42:52 +0000 |
parents | 2d73c1bcf0a2 |
children | 9571fdab8d80 |
comparison
equal
deleted
inserted
replaced
49082:336bfea9bad4 | 49083:a45ef2c4e7f4 |
---|---|
1 dnl Autoconf script for GNU Emacs | 1 dnl Autoconf script for GNU Emacs |
2 dnl To rebuild the `configure' script from this, execute the command | 2 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. |
10 dnl | 10 dnl |
11 dnl GNU Emacs is free software; you can redistribute it and/or modify | 11 dnl GNU Emacs is free software; you can redistribute it and/or modify |
1199 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | 1199 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x |
1200 then | 1200 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 |
1210 AC_PROG_CPP | 1208 AC_PROG_CPP |
1211 AC_PROG_INSTALL | 1209 AC_PROG_INSTALL |
2301 AC_MSG_RESULT(no) | 2299 AC_MSG_RESULT(no) |
2302 fi | 2300 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. |
2309 AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict, | 2319 AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict, |
2310 [AC_TRY_COMPILE([void fred (int *restrict x);], [], | 2320 [AC_TRY_COMPILE([void fred (int *restrict x);], [], |
2655 char *alloca (); | 2665 char *alloca (); |
2656 # endif | 2666 # endif |
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 |
2664 /* Define HAVE_X_I18N if we have usable i18n support. */ | 2674 /* Define HAVE_X_I18N if we have usable i18n support. */ |
2665 | 2675 |