From owner-freebsd-ports Sun Oct 8 11:41:33 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id D7F2937B503 for ; Sun, 8 Oct 2000 11:41:30 -0700 (PDT) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id e98IfS717983; Sun, 8 Oct 2000 13:41:28 -0500 (CDT) Received: (from steve@localhost) by bonsai.knology.net (8.11.0/8.9.3) id e98IfPW19911; Sun, 8 Oct 2000 13:41:25 -0500 (CDT) (envelope-from steve) Date: Sun, 8 Oct 2000 13:41:25 -0500 From: Steve Price To: Steve Kargl Cc: freebsd-ports@FreeBSD.ORG Subject: Re: Problem with GNU_CONFIGURE Message-ID: <20001008134125.C13010@bonsai.knology.net> References: <200010081827.e98IR7210488@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200010081827.e98IR7210488@troutmask.apl.washington.edu>; from sgk@troutmask.apl.washington.edu on Sun, Oct 08, 2000 at 11:27:07AM -0700 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Oct 08, 2000 at 11:27:07AM -0700, Steve Kargl wrote: # I'm trying to put together a port of the FSF gmp library. # But, the bare bone Makefile blows up during the configure phase. # Here's the Makefile content: # [snip] # # The problem is that the Makefile file is trying to feed # i386-freebsd5.0 to the configure script. This should not # be done for this port. Why? Because, the configure script # goes to some extremes to determine the specific processor # type. That is, it will identify if you have an i386, i486, # i586, i686, k5, k6, k7, ev4, ev5, ev6, and a slew of others, # so that *highly optimized* assembly can be used. The script # also checks for 3dnow, mmx, and other advance features. # # So, how does one get the configure script to run without the # i386--freebsd5.0? Well because CONFIGURE_ARGS is set with += and not ?= in bsd.port.mk you can't just override it. However if you want to resort to a somewhat ugly hack then you can override ${CONFIGURE_SCRIPT}. In the Makefile you'd have something like this. GNU_CONFIGURE= yes CONFIGURE_ARGS= _myarch=${CONFIGURE_TARGET} CONFIGURE_SCRIPT= Myconfig pre-configure: ${CP} ${FILESDIR}/Myconfig ${WRKSRC} ${CHMOD} +x ${WRKSRC}/Myconfig And the replacement configure script would look something like this. #!/bin/sh args=`echo $* | sed -e"s/${_myarch}//"` ./configure $args The only other way I can think would be to roll your do-configure target in the Makefile. HTH -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message