3 |
dnl autoconf |
dnl autoconf |
4 |
dnl in the directory containing this script. |
dnl in the directory containing this script. |
5 |
dnl |
dnl |
6 |
dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001 |
dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 |
7 |
dnl Free Software Foundation, Inc. |
dnl Free Software Foundation, Inc. |
8 |
dnl |
dnl |
9 |
dnl This file is part of GNU Emacs. |
dnl This file is part of GNU Emacs. |
1854 |
|
|
1855 |
if test "${HAVE_JPEG}" = "yes"; then |
if test "${HAVE_JPEG}" = "yes"; then |
1856 |
AC_DEFINE(HAVE_JPEG) |
AC_DEFINE(HAVE_JPEG) |
1857 |
|
AC_EGREP_CPP( |
1858 |
|
changequote({, })dnl avoid leadingspace on the next line |
1859 |
|
{version= *(6[2-9]|[7-9][0-9])}, |
1860 |
|
changequote([, ])dnl |
1861 |
|
[#include <jpeglib.h> |
1862 |
|
version=JPEG_LIB_VERSION |
1863 |
|
], |
1864 |
|
AC_DEFINE(HAVE_JPEG), |
1865 |
|
[AC_MSG_WARN([libjpeg found, but not version 6b or later]) |
1866 |
|
HAVE_JPEG=no]) |
1867 |
fi |
fi |
1868 |
fi |
fi |
1869 |
|
|
1901 |
if test "${HAVE_X11}" = "yes"; then |
if test "${HAVE_X11}" = "yes"; then |
1902 |
if test "${with_gif}" != "no"; then |
if test "${with_gif}" != "no"; then |
1903 |
AC_CHECK_HEADER(gif_lib.h, |
AC_CHECK_HEADER(gif_lib.h, |
1904 |
AC_CHECK_LIB(ungif, DGifOpen, HAVE_GIF=yes)) |
# EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
1905 |
|
# Earlier versions can crash Emacs. |
1906 |
|
AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes)) |
1907 |
fi |
fi |
1908 |
|
|
1909 |
if test "${HAVE_GIF}" = "yes"; then |
if test "${HAVE_GIF}" = "yes"; then |