From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 11 20:10:36 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCB0916A41F for ; Sun, 11 Feb 2007 20:10:36 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (smtp.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 887D013C46B for ; Sun, 11 Feb 2007 20:10:36 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id l1BJmApY035478; Sun, 11 Feb 2007 12:48:10 -0700 (MST) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.8/8.13.8) with ESMTP id l1BJm4av092748; Sun, 11 Feb 2007 12:48:04 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.13.8/8.13.8/Submit) id l1BJm4Dx092745; Sun, 11 Feb 2007 12:48:04 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17871.29428.183244.232189@gromit.timing.com> Date: Sun, 11 Feb 2007 12:48:04 -0700 From: John E Hein To: Garrett Cooper In-Reply-To: <2D763A31-2BAF-4AD5-A256-273CD37EB7A5@u.washington.edu> References: <45CE8BEC.7050404@u.washington.edu> <17870.42419.779434.735451@bhuda.mired.org> <2D763A31-2BAF-4AD5-A256-273CD37EB7A5@u.washington.edu> X-Mailer: VM 7.19 under Emacs 22.0.93.1 X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: Finding libraries to link with and autoconf resources? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Feb 2007 20:10:36 -0000 Garrett Cooper wrote at 22:46 -0800 on Feb 10, 2007: > Are there any global scripts or options to pass to autoconf that sets > the -L option for gcc properly? If the configure script doesn't support --with-png=/your/path/to/png, then you can force feed it by using env vars. As in: env LDFLAGS=-L/your/path/to/png/lib CPPFLAGS=-I/your/path/to/png/include configure In your freebsd port, there is a common idiom that looks like this in the Makefile: LDFLAGS+=-L/your/path/to/png/lib CPPFLAGS+=-I/your/path/to/png/include CONFIGURE_ENV=CPPFLAGS="${CPPFLAGS} LDFLAGS="${LDFLAGS} (see also bsd.port.mk and the Porter's Handbook) ports@ is a better place to ask such questions, by the way.