diff options
| author | Paul Eggert | 2014-05-04 14:28:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-05-04 14:28:08 -0700 |
| commit | f8c2cef5e60d31f48c44fc883bc72d2f6090834b (patch) | |
| tree | c31f7cd29921efb107390227ee727147f0c63561 /src/image.c | |
| parent | 4a05c50a46dee2a75b06a2e4e3bc7732c267d7bb (diff) | |
| download | emacs-f8c2cef5e60d31f48c44fc883bc72d2f6090834b.tar.gz emacs-f8c2cef5e60d31f48c44fc883bc72d2f6090834b.zip | |
Consult libpng-config more consistently.
This is mainly for simplicity, but it should also avoid
some future problems like the ones we recently had with NetBSD.
* configure.ac (LIBPNG): Configure after LIBZ. Use libpng-config
for cflags, too. Append -lz if we're not already doing that with
LIBZ. Do not bother appending -lm, since we always append that.
Coalesce some duplicate code.
* src/Makefile.in (PNG_CFLAGS): New var.
(ALL_CFLAGS): Use it.
* src/image.c [HAVE_PNG]: Don't worry about <libpng/png.h>, as
CFLAGS now handles this.
Fixes: debbugs:17339
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c index d558540c6e7..c26c0db2b4f 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -22,12 +22,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #include <unistd.h> | 22 | #include <unistd.h> |
| 23 | 23 | ||
| 24 | #ifdef HAVE_PNG | 24 | #ifdef HAVE_PNG |
| 25 | #if defined HAVE_LIBPNG_PNG_H | ||
| 26 | # include <libpng/png.h> | ||
| 27 | #else | ||
| 28 | # include <png.h> | 25 | # include <png.h> |
| 29 | #endif | 26 | #endif |
| 30 | #endif | ||
| 31 | 27 | ||
| 32 | #include <setjmp.h> | 28 | #include <setjmp.h> |
| 33 | #include <c-ctype.h> | 29 | #include <c-ctype.h> |