From owner-freebsd-ports@FreeBSD.ORG Wed Oct 4 20:28:47 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 DB1AA16A415 for ; Wed, 4 Oct 2006 20:28:47 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDE7043D67 for ; Wed, 4 Oct 2006 20:28:44 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id k94KSh5G034764; Wed, 4 Oct 2006 13:28:43 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id k94KShHt034763; Wed, 4 Oct 2006 13:28:43 -0700 (PDT) (envelope-from rizzo) Date: Wed, 4 Oct 2006 13:28:43 -0700 From: Luigi Rizzo To: ports@freebsd.org Message-ID: <20061004132843.A34553@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Cc: Subject: [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: Wed, 04 Oct 2006 20:28:48 -0000 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 suppose the problem is common to many ports... cheers luigi ----- Forwarded message from Luigi Rizzo ----- Date: Wed, 4 Oct 2006 12:32:23 -0700 From: Luigi Rizzo Subject: [asterisk-dev] autoconf issues for FreeBSD To: Asterisk Developers Mailing List Looking in more detail at autoconf issues with asterisk on FreeBSD (but i believe the problem is more general) i noticed that several tests fail because /usr/local and /usr/local/include are not in the compiler/linker flags. I added such defines to configure.ac for FreeBSD, but they were removed in svn 40335 (i am not sure why). http://svn.digium.com/view/asterisk/trunk/configure.ac?r1=40335&r2=40722 I am pretty sure that the code below (which was my patch at the time) is NOT a proper fix - i would expect autoconf to deal with platform issues without having us deal with them on each and every port. On the other hand, i am no autoconf expert so i don't have better ideas, so unless someone steps in with a better solution i'd be inclined to put it back into SVN. suggestions anyone ? cheers luigi Index: configure.ac =================================================================== --- configure.ac (revision 44374) +++ configure.ac (working copy) @@ -30,6 +30,8 @@ case "${host_os}" in freebsd*) ac_default_prefix=/usr/local + CPPFLAGS=-I/usr/local/include + LDFLAGS=-L/usr/local/lib ;; *) ac_default_prefix=/usr _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev ----- End forwarded message -----