From: Dave Love Date: Tue, 11 Jun 2002 18:31:18 +0000 (+0000) Subject: Check for pty.h. Improve the libungif test. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~668 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=612f72a634e875cc9dc6b59a6967939e2f350cba;p=emacs.git Check for pty.h. Improve the libungif test. Check for nl_langinfo codeset support. Use AC_CHECK_TYPES, not AC_SIZE_T. --- 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 dnl autoconf dnl in the directory containing this script. dnl -dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001 +dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 dnl Free Software Foundation, Inc. dnl dnl This file is part of GNU Emacs. @@ -1354,7 +1354,7 @@ AC_SUBST(LIBSOUND) dnl checks for header files AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ - termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h) + termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h) AC_HEADER_STDC AC_HEADER_TIME AC_DECL_SYS_SIGLIST @@ -1915,7 +1915,9 @@ HAVE_GIF=no if test "${HAVE_X11}" = "yes"; then if test "${with_gif}" != "no"; then AC_CHECK_HEADER(gif_lib.h, - AC_CHECK_LIB(ungif, DGifOpen, HAVE_GIF=yes)) +# EGifPutExtensionLast only exists from version libungif-4.1.0b1. +# Earlier versions can crash Emacs. + AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes)) fi if test "${HAVE_GIF}" = "yes"; then @@ -2161,9 +2163,19 @@ else fi AC_FUNC_FORK - -# Fixme: This should be replaced when we have autoconf 2.14. -AC_SIZE_T +dnl Adapted from Haible's version. +AC_CACHE_CHECK([for nl_langinfo and CODESET], emacs_cv_langinfo_codeset, + [AC_TRY_LINK([#include ], + [char* cs = nl_langinfo(CODESET);], + emacs_cv_langinfo_codeset=yes, + emacs_cv_langinfo_codeset=no) + ]) +if test $emacs_cv_langinfo_codeset = yes; then + AC_DEFINE(HAVE_LANGINFO_CODESET, 1, + [Define if you have and nl_langinfo(CODESET).]) +fi + +AC_CHECK_TYPES(size_t) # Set up the CFLAGS for real compilation, so we can substitute it. CFLAGS="$REAL_CFLAGS"