ref: f5911b3cda06461a8f4fab259bb6f86d5453a0bb
parent: d113ae2198cca92f0c82f55e1cb792fa66cc6004
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Aug 14 12:58:00 EDT 2002
correct order of pow() check git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@200 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
-AC_REVISION([$Revision: 1.15 $])
+AC_REVISION([$Revision: 1.16 $])
# Checks for programs.
AC_PROG_CC
@@ -28,9 +28,9 @@
CFLAGS="$CFLAGS -I$ac_cv_want_libpng/include"
LDFLAGS="$LDFLAGS -L$ac_cv_want_libpng/lib"
fi
+ dnl libpng requires pow() which may be in libm
+ AC_SEARCH_LIBS([pow], [m])
AC_CHECK_LIB([png], [png_check_sig], [
- dnl libpng requires pow() which may be in libm
- AC_SEARCH_LIBS([pow], [m])
AC_CHECK_LIB([z], [deflate], [
AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
LIBS="$LIBS -lpng -lz"