From owner-freebsd-ports@FreeBSD.ORG Fri Oct 6 13:03:45 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77DBE16A40F for ; Fri, 6 Oct 2006 13:03:45 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id A996443D4C for ; Fri, 6 Oct 2006 13:03:43 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F0B9.dip.t-dialin.net [84.165.240.185]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k96D2P8D073682; Fri, 6 Oct 2006 15:02:26 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.4) with ESMTP id k96D3aEe023308; Fri, 6 Oct 2006 15:03:36 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 06 Oct 2006 15:03:36 +0200 Message-ID: <20061006150336.gaobej59b4cw4wwo@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 06 Oct 2006 15:03:36 +0200 From: Alexander Leidinger To: Luigi Rizzo References: <20061004132843.A34553@xorpc.icir.org> In-Reply-To: <20061004132843.A34553@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: ports@freebsd.org Subject: Re: [rizzo@icir.org: [asterisk-dev] autoconf issues for FreeBSD] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2006 13:03:45 -0000 Quoting Luigi Rizzo (from Wed, 4 Oct 2006 13:28:43 -0700): > any autoconf guru here who can help me with the problem described below ? > > basically, what is the proper way to tell configure.ac to set CPPFLAGS > and LDFLAGS properly (i.e. according to platform conventions) without > having to put platform-specific code in configure.ac or invoking > ./configure with these values set ? I don't know about such a way. If you put something like your proposal into place, I suggest to =20 change it a little bit. The way outlined below discards any user =20 specified settings. So I suggest to use FOO=3D"$FOO bar" instead of =20 FOO=3Dbar. This way an user can override the search order. Bye, Alexander. > > Index: configure.ac > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- configure.ac (revision 44374) > +++ configure.ac (working copy) > @@ -30,6 +30,8 @@ > case "${host_os}" in > freebsd*) > ac_default_prefix=3D/usr/local > + CPPFLAGS=3D-I/usr/local/include > + LDFLAGS=3D-L/usr/local/lib > ;; > *) > ac_default_prefix=3D/usr Bye, Alexander. --=20 I don't mind arguing with myself. It's when I lose that it bothers me. =09=09-- Richard Powers http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137