Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <39EF6571.2BC33845@Wanadoo.fr>
Date: Thu, 19 Oct 2000 23:19:45 +0200
From: Jerome Benoit <JGMBenoit@Wanadoo.fr>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: "Charles S. Wilson" <cwilson@ece.gatech.edu>
CC: Cygnus <cygwin@sourceware.cygnus.com>
Subject: Re: ImageMagick
References: <39EE57CC.F1D69F6D@Wanadoo.fr> <39EE629D.A6765C85@ece.gatech.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

It works !

Thank you very much !

"Charles S. Wilson" wrote:
> 
> Jerome Benoit wrote:
> >
> > Hi !
> >
> > I try to build ImageMagick:
> > the `configure' script (generate by `autoconf' since
> > the distributed one fails) recognizes some packages (jpeg,z)
> > not someothers (bzip2,png):
> > it seem that the mecanism
> > AC_CHECK_LIB(jpeg,jpeg_read_header, [...] )
> > works for some lib*.a and not for some other !
> >
> > How can we fix it ?
> 
> the bzip2 package in cygwin doesn't contain libbz2.a (or libbz2.dll[.a]
> for that matter) -- so it cannot be found.  However, try Michael Ring's
> package at
> ftp://sourceware.cygnus.com/pub/cygwin/private/cygwin-rpm-712/tar/ or my
> (older) version at http://cygutils.netpedia.net/V1.1/bzip2-0.9.5d/
> 
> the library interface of libpng is slightly different depending on
> whether you link dynamically (default) or statically.  This is all
> handled as described in /usr/doc/Cygwin/libpng-1.0.8.README.
> Unfortunately, autoconf/configure is notorious for *NOT* using
> system/library header files -- it just "knows" that a given function in
> library "X" is defined "thus".
> 
> My suspicion is that autoconf assumes the "static"-style definition.
> The following is just a hack, but try it -- it'll help narrow down the
> problem.  (I do NOT recommend this as a solution, just a debugging
> tool...)
> 
> First, 'mv /usr/lib/libpng.dll.a /usr/lib/libpng.dll.a.bak'
>   (this will force configure's test program to link using libpng.a, not
> the import lib.)
> export CFLAGS=-DPNG_STATIC
> ./configure
> 
> Does that help?
> 
> --Chuck


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

