diff options
| author | Dave Love | 1999-08-21 10:41:58 +0000 |
|---|---|---|
| committer | Dave Love | 1999-08-21 10:41:58 +0000 |
| commit | 5ad9ac920c529f34c2101fb99b80ecde2cee89d6 (patch) | |
| tree | 779bd4301421d89b891d880778468906d691489a | |
| parent | cf4790adb1a190e65c05450e7148ea5d6c963a9a (diff) | |
| download | emacs-5ad9ac920c529f34c2101fb99b80ecde2cee89d6.tar.gz emacs-5ad9ac920c529f34c2101fb99b80ecde2cee89d6.zip | |
Don't check for jpeglib.h.
| -rw-r--r-- | configure.in | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 5c313a6c595..1f4c2967073 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1286,8 +1286,7 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 1286 | if test "${with_jpeg}" != "no"; then | 1286 | if test "${with_jpeg}" != "no"; then |
| 1287 | old_c_flags="${CFLAGS}" | 1287 | old_c_flags="${CFLAGS}" |
| 1288 | CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 1288 | CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
| 1289 | AC_CHECK_HEADER(jpeglib.h, | 1289 | AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes, , -lX11) |
| 1290 | AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes, , -lX11)) | ||
| 1291 | CFLAGS="${old_c_flags}" | 1290 | CFLAGS="${old_c_flags}" |
| 1292 | fi | 1291 | fi |
| 1293 | 1292 | ||
| @@ -1750,10 +1749,28 @@ AC_FUNC_ALLOCA | |||
| 1750 | AC_CHECK_LIB(m, sqrt) | 1749 | AC_CHECK_LIB(m, sqrt) |
| 1751 | 1750 | ||
| 1752 | # Check for mail-locking functions in a "mail" library | 1751 | # Check for mail-locking functions in a "mail" library |
| 1753 | AC_CHECK_LIB(mail, maillock, | 1752 | AC_CHECK_LIB(mail, maillock) |
| 1754 | AC_DEFINE(HAVE_LIBMAIL) | 1753 | dnl Debian, at least: |
| 1755 | AC_CHECK_FUNCS(touchlock) | 1754 | dnl AC_CHECK_LIB(lockfile, maillock, [AC_DEFINE(HAVE_LIBMAIL)]) |
| 1756 | AC_CHECK_HEADERS(maillock.h)) | 1755 | AC_CHECK_LIB(lockfile, maillock) |
| 1756 | # If we have the shared liblockfile, assume we must use it for mail | ||
| 1757 | # locking (e.g. Debian). If we couldn't link against liblockfile | ||
| 1758 | # (no liblockfile.a installed), ensure that we don't need to. | ||
| 1759 | if test "$ac_cv_lib_lockfile_maillock" = no; then | ||
| 1760 | dnl This works for files generally, not just executables. | ||
| 1761 | dnl Should we look elsewhere for it? Maybe examine /etc/ld.so.conf? | ||
| 1762 | AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no, | ||
| 1763 | /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH) | ||
| 1764 | if test $ac_cv_prog_liblockfile = yes; then | ||
| 1765 | AC_MSG_ERROR([Shared liblockfile found but can't link against it. | ||
| 1766 | This probably means that movemail could lose mail. | ||
| 1767 | There may be a \`development' package to install containing liblockfile.]) | ||
| 1768 | else AC_DEFINE(LIBMAIL, -llockfile) | ||
| 1769 | fi | ||
| 1770 | else : | ||
| 1771 | fi | ||
| 1772 | AC_CHECK_FUNCS(touchlock) | ||
| 1773 | AC_CHECK_HEADERS(maillock.h) | ||
| 1757 | 1774 | ||
| 1758 | AC_CHECK_FUNCS(gettimeofday gethostname getdomainname dup2 \ | 1775 | AC_CHECK_FUNCS(gettimeofday gethostname getdomainname dup2 \ |
| 1759 | rename closedir mkdir rmdir sysinfo \ | 1776 | rename closedir mkdir rmdir sysinfo \ |