Mercurial > emacs
comparison configure.in @ 30139:1311deba5ed3
(HAVE_XPM): Undo previous change. Check for
preprocessor define XpmReturnAllocPixels.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 10 Jul 2000 20:37:48 +0000 |
parents | ad53f03540e3 |
children | a3f30480694a |
comparison
equal
deleted
inserted
replaced
30138:d00767029418 | 30139:1311deba5ed3 |
---|---|
1764 if test "${HAVE_X11}" = "yes"; then | 1764 if test "${HAVE_X11}" = "yes"; then |
1765 if test "${with_xpm}" != "no"; then | 1765 if test "${with_xpm}" != "no"; then |
1766 old_c_flags="${CFLAGS}" | 1766 old_c_flags="${CFLAGS}" |
1767 CFLAGS="${LD_SWITCH_X_SITE}" | 1767 CFLAGS="${LD_SWITCH_X_SITE}" |
1768 AC_CHECK_HEADER(X11/xpm.h, | 1768 AC_CHECK_HEADER(X11/xpm.h, |
1769 AC_CHECK_LIB(Xpm, XpmReturnAllocPixels, HAVE_XPM=yes, , -lX11)) | 1769 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, HAVE_XPM=yes, , -lX11)) |
1770 if test "${HAVE_XPM}" = "yes"; then | |
1771 AC_EGREP_CPP(no_return_alloc_pixels, | |
1772 [#include "X11/xpm.h" | |
1773 #ifndef XpmReturnAllocPixels | |
1774 no_return_alloc_pixels | |
1775 #endif | |
1776 ], HAVE_XPM=no, HAVE_XPM=yes) | |
1777 fi | |
1770 CFLAGS="${old_c_flags}" | 1778 CFLAGS="${old_c_flags}" |
1771 fi | 1779 fi |
1772 | 1780 |
1773 if test "${HAVE_XPM}" = "yes"; then | 1781 if test "${HAVE_XPM}" = "yes"; then |
1774 AC_DEFINE(HAVE_XPM) | 1782 AC_DEFINE(HAVE_XPM) |