diff options
| author | Jan Djärv | 2007-06-14 06:56:28 +0000 |
|---|---|---|
| committer | Jan Djärv | 2007-06-14 06:56:28 +0000 |
| commit | bfa6fb7e87b078fbf4695d5171bebe5c36ba1320 (patch) | |
| tree | 6835634981dcdbe385dbaeefe679d36ffeeac7aa | |
| parent | 2c341244d148851891b039cc119f01bea44ff8a2 (diff) | |
| download | emacs-bfa6fb7e87b078fbf4695d5171bebe5c36ba1320.tar.gz emacs-bfa6fb7e87b078fbf4695d5171bebe5c36ba1320.zip | |
Check for all image libraries before exiting.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 51 |
2 files changed, 29 insertions, 26 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-06-14 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * configure.in: Check for all image libraries before exiting. | ||
| 4 | |||
| 1 | 2007-06-13 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 5 | 2007-06-13 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * configure.in: Exit with error if image libraries aren't found. | 7 | * configure.in: Exit with error if image libraries aren't found. |
diff --git a/configure.in b/configure.in index 22e15d4a82f..493d5b58eec 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -90,12 +90,7 @@ AC_ARG_WITH(x-toolkit, | |||
| 90 | a | at | ath | athe | athen | athena ) val=athena ;; | 90 | a | at | ath | athe | athen | athena ) val=athena ;; |
| 91 | m | mo | mot | moti | motif ) val=motif ;; | 91 | m | mo | mot | moti | motif ) val=motif ;; |
| 92 | g | gt | gtk ) val=gtk ;; | 92 | g | gt | gtk ) val=gtk ;; |
| 93 | dnl These don't currently work. | ||
| 94 | dnl o | op | ope | open | open- | open-l | open-lo \ | ||
| 95 | dnl | open-loo | open-look ) val=open-look ;; | ||
| 96 | * ) | 93 | * ) |
| 97 | dnl AC_MSG_ERROR([the `--with-x-toolkit' option is supposed to have a value | ||
| 98 | dnl which is `yes', `no', `lucid', `athena', `motif' or `open-look'.]) | ||
| 99 | AC_MSG_ERROR([`--with-x-toolkit=$withval' is invalid; | 94 | AC_MSG_ERROR([`--with-x-toolkit=$withval' is invalid; |
| 100 | this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'. | 95 | this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'. |
| 101 | `yes' and `gtk' are synonyms. `athena' and `lucid' are synonyms.]) | 96 | `yes' and `gtk' are synonyms. `athena' and `lucid' are synonyms.]) |
| @@ -2462,9 +2457,6 @@ no_return_alloc_pixels | |||
| 2462 | AC_MSG_RESULT(yes) | 2457 | AC_MSG_RESULT(yes) |
| 2463 | else | 2458 | else |
| 2464 | AC_MSG_RESULT(no) | 2459 | 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]) | ||
| 2468 | fi | 2460 | fi |
| 2469 | fi | 2461 | fi |
| 2470 | fi | 2462 | fi |
| @@ -2482,11 +2474,6 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 2482 | dnl HAVE_STDLIB_H. | 2474 | dnl HAVE_STDLIB_H. |
| 2483 | AC_CHECK_HEADER(jerror.h, | 2475 | AC_CHECK_HEADER(jerror.h, |
| 2484 | AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes)) | 2476 | 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 | ||
| 2490 | fi | 2477 | fi |
| 2491 | 2478 | ||
| 2492 | AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl | 2479 | AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl |
| @@ -2512,11 +2499,6 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 2512 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | 2499 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then |
| 2513 | AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lz -lm) | 2500 | AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lz -lm) |
| 2514 | fi | 2501 | 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 | ||
| 2520 | fi | 2502 | fi |
| 2521 | 2503 | ||
| 2522 | if test "${HAVE_PNG}" = "yes"; then | 2504 | if test "${HAVE_PNG}" = "yes"; then |
| @@ -2533,11 +2515,6 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 2533 | # At least one tiff package requires the jpeg library. | 2515 | # At least one tiff package requires the jpeg library. |
| 2534 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 2516 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
| 2535 | AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , $tifflibs)) | 2517 | 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 | ||
| 2541 | fi | 2518 | fi |
| 2542 | 2519 | ||
| 2543 | if test "${HAVE_TIFF}" = "yes"; then | 2520 | if test "${HAVE_TIFF}" = "yes"; then |
| @@ -2569,10 +2546,31 @@ if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then | |||
| 2569 | 2546 | ||
| 2570 | if test "${HAVE_GIF}" = "yes"; then | 2547 | if test "${HAVE_GIF}" = "yes"; then |
| 2571 | AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have a gif library (default -lungif; otherwise specify with LIBGIF).]) | 2548 | AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have a gif library (default -lungif; otherwise specify with LIBGIF).]) |
| 2572 | else | 2549 | fi |
| 2573 | AC_MSG_ERROR([libgif or libungif is required, but I didn't find it. | 2550 | fi |
| 2551 | |||
| 2552 | dnl Check for required libraries. | ||
| 2553 | if test "${HAVE_X11}" = "yes"; then | ||
| 2554 | MISSING="" | ||
| 2555 | WITH_NO="" | ||
| 2556 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && | ||
| 2557 | MISSING="libXpm" && WITH_NO="--with-xpm=no" | ||
| 2558 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && | ||
| 2559 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" | ||
| 2560 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && | ||
| 2561 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" | ||
| 2562 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && | ||
| 2563 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | ||
| 2564 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | ||
| 2565 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | ||
| 2566 | |||
| 2567 | if test "X${MISSING}" != X; then | ||
| 2568 | AC_MSG_ERROR([The following required libraries was not found: | ||
| 2569 | $MISSING | ||
| 2574 | Maybe some development libraries/packages are missing? | 2570 | Maybe some development libraries/packages are missing? |
| 2575 | Use --with-gif=no if you don't wan't to link with libgif/ungif]) | 2571 | If you don't want to link with them give |
| 2572 | $WITH_NO | ||
| 2573 | as options to configure]) | ||
| 2576 | fi | 2574 | fi |
| 2577 | fi | 2575 | fi |
| 2578 | 2576 | ||
| @@ -3018,6 +3016,7 @@ if test "${REL_ALLOC}" = "yes" ; then | |||
| 3018 | buffer space.]) | 3016 | buffer space.]) |
| 3019 | fi | 3017 | fi |
| 3020 | 3018 | ||
| 3019 | |||
| 3021 | AH_TOP([/* GNU Emacs site configuration template file. | 3020 | AH_TOP([/* GNU Emacs site configuration template file. |
| 3022 | Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007 | 3021 | Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007 |
| 3023 | Free Software Foundation, Inc. | 3022 | Free Software Foundation, Inc. |