diff options
| author | Glenn Morris | 2014-05-01 17:57:27 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-05-01 17:57:27 -0400 |
| commit | 969aabf250a052aebe981eaa5f222b55ffc8deb1 (patch) | |
| tree | f884207fb8df4fef34e9390c2ba84e2e5f11ff36 | |
| parent | 28c05b699f5290d08a55e9342a5f83b41dd20a8f (diff) | |
| download | emacs-969aabf250a052aebe981eaa5f222b55ffc8deb1.tar.gz emacs-969aabf250a052aebe981eaa5f222b55ffc8deb1.zip | |
* configure.ac (LIBPNG): Consult libpng-config
for the precise form of "-lpng" to use.
Fixes: debbugs:17339
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.ac | 13 |
2 files changed, 15 insertions, 3 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-05-01 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (LIBPNG): Consult libpng-config for the precise | ||
| 4 | form of "-lpng" to use. (Bug#17339) | ||
| 5 | |||
| 1 | 2014-04-29 Glenn Morris <rgm@gnu.org> | 6 | 2014-04-29 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * configure.ac: Treat MirBSD as OpenBSD. (Bug#17339) | 8 | * configure.ac: Treat MirBSD as OpenBSD. (Bug#17339) |
diff --git a/configure.ac b/configure.ac index c51d7b03e18..5aed265849e 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3101,8 +3101,15 @@ elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then | |||
| 3101 | fi | 3101 | fi |
| 3102 | 3102 | ||
| 3103 | if test "${HAVE_PNG}" = "yes"; then | 3103 | if test "${HAVE_PNG}" = "yes"; then |
| 3104 | AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).]) | 3104 | AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library.]) |
| 3105 | LIBPNG="-lpng -lz -lm" | 3105 | |
| 3106 | dnl Some systems, eg NetBSD 6, only provide eg "libpng16", not "libpng". | ||
| 3107 | lpng=`libpng-config --libs 2> /dev/null` | ||
| 3108 | case $lpng in | ||
| 3109 | -l*) : ;; | ||
| 3110 | *) lpng="-lpng" ;; | ||
| 3111 | esac | ||
| 3112 | LIBPNG="$lpng -lz -lm" | ||
| 3106 | 3113 | ||
| 3107 | AC_CHECK_DECL(png_longjmp, | 3114 | AC_CHECK_DECL(png_longjmp, |
| 3108 | [], | 3115 | [], |
| @@ -4976,7 +4983,7 @@ echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |||
| 4976 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | 4983 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" |
| 4977 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | 4984 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" |
| 4978 | echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF" | 4985 | echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF" |
| 4979 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | 4986 | echo " Does Emacs use a png library? ${HAVE_PNG} $LIBPNG" |
| 4980 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | 4987 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
| 4981 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" | 4988 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" |
| 4982 | 4989 | ||