From owner-freebsd-ports@FreeBSD.ORG Tue Mar 20 14:11:58 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B93951065670 for ; Tue, 20 Mar 2012 14:11:58 +0000 (UTC) (envelope-from hsn@filez.com) Received: from ponto.amerinoc.com (ponto.amerinoc.com [64.6.108.239]) by mx1.freebsd.org (Postfix) with ESMTP id 7E3608FC08 for ; Tue, 20 Mar 2012 14:11:58 +0000 (UTC) Received: from fbsd8.localdomain (205.83.broadband7.iol.cz [88.102.83.205]) (authenticated bits=128) by ponto.amerinoc.com (8.14.5/8.14.5) with ESMTP id q2KEBmHs016689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Mar 2012 15:11:51 +0100 (CET) (envelope-from hsn@filez.com) Received: from [127.0.0.1] ([10.0.0.1]) by fbsd8.localdomain (8.14.4/8.14.4) with ESMTP id q2KEBgIp042576 for ; Tue, 20 Mar 2012 15:11:43 +0100 (CET) (envelope-from hsn@filez.com) Message-ID: <4F689018.7010306@filez.com> Date: Tue, 20 Mar 2012 15:11:36 +0100 From: Radim Kolar User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 120320-0, 20.03.2012), Outbound message X-Antivirus-Status: Clean Subject: problems with bsd.autotools.mk 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: Tue, 20 Mar 2012 14:11:58 -0000 I have following problems with automake in ports makefile use case: source to be configured is in $WRKSRC/native-src subdirectory configure_wrksrc = $wrksrc/native-src use_autotools = aclocal libtool autoconf automake Problems: 1. LIBTOOLFILES must be set by hand to subdirectory/aclocal.m4 (this should be automatic) otherwise it will not find file in wrksrc subdirectory 2. AClocal do not include shared path with .m4 files. needs to be set by hand to ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal 3. AUTOMAKE_ARGS must include --add-missing to install missing files if they are not supplied by source distribution 4. automake (and other tools too) should be executed in $configure_wrksrc directory because currently it leads to cryptic errors like: ===> Configuring for hornetq-2.2.5 configure.ac:5: required directory ./build-aux does not exist configure.ac:66: Omit leading `./' from config file names such as `./src/Makefile', configure.ac:66: as not all make implementations treat `file' and `./file' equally. configure.ac:48: installing `build-aux/config.guess'; error while making link: No such file or directory configure.ac:48: installing `build-aux/config.sub'; error while making link: No such file or directory configure.ac:7: installing `build-aux/install-sh'; error while making link: No such file or directory configure.ac:48: required file `build-aux/ltmain.sh' not found configure.ac:7: installing `build-aux/missing'; error while making link: No such file or directory ./src/Makefile.am: installing `build-aux/depcomp'; error while making link: No such file or directory configure.ac:13: required file `config.in' not found *** Error code 1