Mercurial > emacs
comparison configure.in @ 81383:47206e899ad1
Exit with error if image libraries aren't found.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Wed, 13 Jun 2007 20:43:30 +0000 |
parents | ed0e578fd01a |
children | b783923335c9 |
comparison
equal
deleted
inserted
replaced
81382:dbd9a7dfa004 | 81383:47206e899ad1 |
---|---|
2460 | 2460 |
2461 if test "${HAVE_XPM}" = "yes"; then | 2461 if test "${HAVE_XPM}" = "yes"; then |
2462 AC_MSG_RESULT(yes) | 2462 AC_MSG_RESULT(yes) |
2463 else | 2463 else |
2464 AC_MSG_RESULT(no) | 2464 AC_MSG_RESULT(no) |
2465 AC_MSG_ERROR([libXpm is required, but I didn't find it. | |
2466 Maybe some development libraries/packages are missing? | |
2467 Use --with-xpm=no if you don't wan't to link with libXpm]) | |
2465 fi | 2468 fi |
2466 fi | 2469 fi |
2467 fi | 2470 fi |
2468 | 2471 |
2469 if test "${HAVE_XPM}" = "yes"; then | 2472 if test "${HAVE_XPM}" = "yes"; then |
2477 if test "${with_jpeg}" != "no"; then | 2480 if test "${with_jpeg}" != "no"; then |
2478 dnl Checking for jpeglib.h can lose because of a redefinition of | 2481 dnl Checking for jpeglib.h can lose because of a redefinition of |
2479 dnl HAVE_STDLIB_H. | 2482 dnl HAVE_STDLIB_H. |
2480 AC_CHECK_HEADER(jerror.h, | 2483 AC_CHECK_HEADER(jerror.h, |
2481 AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes)) | 2484 AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes)) |
2485 if test "${HAVE_JPEG}" != "yes"; then | |
2486 AC_MSG_ERROR([libjpeg is required, but I didn't find it. | |
2487 Maybe some development libraries/packages are missing? | |
2488 Use --with-jpeg=no if you don't wan't to link with libjpeg]) | |
2489 fi | |
2482 fi | 2490 fi |
2483 | 2491 |
2484 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl | 2492 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl |
2485 if test "${HAVE_JPEG}" = "yes"; then | 2493 if test "${HAVE_JPEG}" = "yes"; then |
2486 AC_DEFINE(HAVE_JPEG) | 2494 AC_DEFINE(HAVE_JPEG) |
2502 # in /usr/include/libpng. | 2510 # in /usr/include/libpng. |
2503 AC_CHECK_HEADERS(png.h libpng/png.h) | 2511 AC_CHECK_HEADERS(png.h libpng/png.h) |
2504 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | 2512 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then |
2505 AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lz -lm) | 2513 AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lz -lm) |
2506 fi | 2514 fi |
2515 if test "${HAVE_PNG}" != "yes"; then | |
2516 AC_MSG_ERROR([libpng is required, but I didn't find it. | |
2517 Maybe some development libraries/packages are missing? | |
2518 Use --with-png=no if you don't wan't to link with libpng]) | |
2519 fi | |
2507 fi | 2520 fi |
2508 | 2521 |
2509 if test "${HAVE_PNG}" = "yes"; then | 2522 if test "${HAVE_PNG}" = "yes"; then |
2510 AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).]) | 2523 AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).]) |
2511 fi | 2524 fi |
2518 AC_CHECK_HEADER(tiffio.h, | 2531 AC_CHECK_HEADER(tiffio.h, |
2519 tifflibs="-lz -lm" | 2532 tifflibs="-lz -lm" |
2520 # At least one tiff package requires the jpeg library. | 2533 # At least one tiff package requires the jpeg library. |
2521 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 2534 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
2522 AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , $tifflibs)) | 2535 AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , $tifflibs)) |
2536 if test "${HAVE_TIFF}" != "yes"; then | |
2537 AC_MSG_ERROR([libtiff is required, but I didn't find it. | |
2538 Maybe some development libraries/packages are missing? | |
2539 Use --with-tiff=no if you don't wan't to link with libtiff]) | |
2540 fi | |
2523 fi | 2541 fi |
2524 | 2542 |
2525 if test "${HAVE_TIFF}" = "yes"; then | 2543 if test "${HAVE_TIFF}" = "yes"; then |
2526 AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).]) | 2544 AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).]) |
2527 fi | 2545 fi |
2549 fi | 2567 fi |
2550 fi | 2568 fi |
2551 | 2569 |
2552 if test "${HAVE_GIF}" = "yes"; then | 2570 if test "${HAVE_GIF}" = "yes"; then |
2553 AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have a gif library (default -lungif; otherwise specify with LIBGIF).]) | 2571 AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have a gif library (default -lungif; otherwise specify with LIBGIF).]) |
2572 else | |
2573 AC_MSG_ERROR([libgif or libungif is required, but I didn't find it. | |
2574 Maybe some development libraries/packages are missing? | |
2575 Use --with-gif=no if you don't wan't to link with libgif/ungif]) | |
2554 fi | 2576 fi |
2555 fi | 2577 fi |
2556 | 2578 |
2557 ### Use -lgpm if available, unless `--with-gpm=no'. | 2579 ### Use -lgpm if available, unless `--with-gpm=no'. |
2558 HAVE_GPM=no | 2580 HAVE_GPM=no |