ref: c860cbae3e0b07420dfd2407173673a451a36237
parent: af9ddb9b26b13821f97d789f866c09c15bcc254e
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Mon Jul 8 10:10:27 EDT 2002
Don't look for png.h specifically. This was causing problems with png.h was in an -I in CFLAGS, but not the standard place. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@115 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,7 @@
AM_INIT_AUTOMAKE([$package], [$version])
AM_CONFIG_HEADER(config.h)
-AC_REVISION([$Revision: 1.4 $])
+AC_REVISION([$Revision: 1.5 $])
# Checks for programs.
AC_PROG_CC
@@ -18,12 +18,10 @@
# Checks for libraries.
AC_CHECK_LIB([png], [png_check_sig], [
- AC_CHECK_HEADER([png.h], [
- AC_CHECK_LIB([z], [deflate], [
- AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
- LIBS="$LIBS -lpng -lz"
- LIBOBJS="$LIBOBJS jbig2_image_png.o"
- ])
+ AC_CHECK_LIB([z], [deflate], [
+ AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
+ LIBS="$LIBS -lpng -lz"
+ LIBOBJS="$LIBOBJS jbig2_image_png.o"
])
])