diff options
| author | Dave Love | 2002-06-11 18:31:18 +0000 |
|---|---|---|
| committer | Dave Love | 2002-06-11 18:31:18 +0000 |
| commit | 612f72a634e875cc9dc6b59a6967939e2f350cba (patch) | |
| tree | 50bfa83bfd9a90bf963c604c2b81dd1a7f90ebd3 | |
| parent | b714f5c2a67d5569f220946886e1d6a93b3aa493 (diff) | |
| download | emacs-612f72a634e875cc9dc6b59a6967939e2f350cba.tar.gz emacs-612f72a634e875cc9dc6b59a6967939e2f350cba.zip | |
Check for pty.h. Improve the libungif test.
Check for nl_langinfo codeset support. Use AC_CHECK_TYPES, not
AC_SIZE_T.
| -rw-r--r-- | configure.in | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 74b953c9e37..bfd7decb6ca 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 | 6 | dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 |
| 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. |
| @@ -1354,7 +1354,7 @@ AC_SUBST(LIBSOUND) | |||
| 1354 | dnl checks for header files | 1354 | dnl checks for header files |
| 1355 | AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 1355 | AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
| 1356 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 1356 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 1357 | termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h) | 1357 | termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h) |
| 1358 | AC_HEADER_STDC | 1358 | AC_HEADER_STDC |
| 1359 | AC_HEADER_TIME | 1359 | AC_HEADER_TIME |
| 1360 | AC_DECL_SYS_SIGLIST | 1360 | AC_DECL_SYS_SIGLIST |
| @@ -1915,7 +1915,9 @@ HAVE_GIF=no | |||
| 1915 | if test "${HAVE_X11}" = "yes"; then | 1915 | if test "${HAVE_X11}" = "yes"; then |
| 1916 | if test "${with_gif}" != "no"; then | 1916 | if test "${with_gif}" != "no"; then |
| 1917 | AC_CHECK_HEADER(gif_lib.h, | 1917 | AC_CHECK_HEADER(gif_lib.h, |
| 1918 | AC_CHECK_LIB(ungif, DGifOpen, HAVE_GIF=yes)) | 1918 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
| 1919 | # Earlier versions can crash Emacs. | ||
| 1920 | AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes)) | ||
| 1919 | fi | 1921 | fi |
| 1920 | 1922 | ||
| 1921 | if test "${HAVE_GIF}" = "yes"; then | 1923 | if test "${HAVE_GIF}" = "yes"; then |
| @@ -2161,9 +2163,19 @@ else | |||
| 2161 | fi | 2163 | fi |
| 2162 | 2164 | ||
| 2163 | AC_FUNC_FORK | 2165 | AC_FUNC_FORK |
| 2164 | 2166 | dnl Adapted from Haible's version. | |
| 2165 | # Fixme: This should be replaced when we have autoconf 2.14. | 2167 | AC_CACHE_CHECK([for nl_langinfo and CODESET], emacs_cv_langinfo_codeset, |
| 2166 | AC_SIZE_T | 2168 | [AC_TRY_LINK([#include <langinfo.h>], |
| 2169 | [char* cs = nl_langinfo(CODESET);], | ||
| 2170 | emacs_cv_langinfo_codeset=yes, | ||
| 2171 | emacs_cv_langinfo_codeset=no) | ||
| 2172 | ]) | ||
| 2173 | if test $emacs_cv_langinfo_codeset = yes; then | ||
| 2174 | AC_DEFINE(HAVE_LANGINFO_CODESET, 1, | ||
| 2175 | [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) | ||
| 2176 | fi | ||
| 2177 | |||
| 2178 | AC_CHECK_TYPES(size_t) | ||
| 2167 | 2179 | ||
| 2168 | # Set up the CFLAGS for real compilation, so we can substitute it. | 2180 | # Set up the CFLAGS for real compilation, so we can substitute it. |
| 2169 | CFLAGS="$REAL_CFLAGS" | 2181 | CFLAGS="$REAL_CFLAGS" |