From xemacs-m  Thu Dec  5 22:38:52 1996
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with ESMTP id WAA08533 for <xemacs-beta@xemacs.org>; Thu, 5 Dec 1996 22:38:51 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id UAA31092; Thu, 5 Dec 1996 20:48:10 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: Re: b30 success
References: <199612052210.RAA20759@nvwls.cc.purdue.edu> 	<m2ral4plfg.fsf@altair.xemacs.org> 	<199612060343.TAA00478@wmperry.in.aventail.com> <199612060430.UAA03314@xemacs.eng.sun.com>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Martin Buchholz's message of Thu, 5 Dec 1996 20:30:12 -0800
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII
Date: 05 Dec 1996 20:48:09 -0800
Message-ID: <m2viagnura.fsf@altair.xemacs.org>
Lines: 42
X-Mailer: Red Gnus v0.72/XEmacs 19.15

>>>>> "Martin" == Martin Buchholz <mrb@eng.sun.com> writes:

>>>>> "Bill" == William M Perry <wmperry@aventail.com> writes:
Bill> Does PNG autodetection work for ANYONE?  There was a problem where it
Bill> wouldn't autodetect because of some library dependencies (-lz, etc).

Martin> PNG autodetection works for me too, but then you'd expect that.

Martin> I stared at the autodetection code for a while, but couldn't see
Martin> any logic error - maybe another /bin/sh vs bash issue?

Martin> Can YOU spot the bug in the code below?

Doesn't the library test work by linking a dummy program?  I couldn't
see anything in the test code that linked `-lm' after `-lpng -lz'.
The png libraries I have (from Neal's libgr-2.0.10) require `-lm' in to
order to link.

Martin> dnl ### autodetect PNG
Martin> if test "${window_system}" = "none" ; then
Martin>   if test -z "${with_png}" ; then
Martin>     with_png=no
Martin>   elif test "${with_png}" != "no" ; then
Martin>     echo "PNG support cannot be specified without a window system."
Martin>     exit 1
Martin>   fi
Martin> fi
Martin> test -z "${with_png}" && { AC_HEADER_CHECK(png.h, , with_png="no") }
Martin> test -z "${with_png}" && { AC_HAVE_LIBRARY(-lpng, , with_png="no") }
Martin> test -z "${with_png}" && { AC_HAVE_LIBRARY(-lz,  with_png="yes") }
Martin> test -z "${with_png}" && { AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no") }
Martin> case "${with_png}" in
Martin>   yes  ) AC_DEFINE(HAVE_PNG) ;;
Martin>   gnuz ) AC_DEFINE(HAVE_PNG) AC_DEFINE(HAVE_PNG_GNUZ) ;;
Martin> esac


-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"Bill Clinton is a bore.  He doesn't have a creative bone in his
body."  -- David Brinkley

