Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2012 15:11:36 +0100
From:      Radim Kolar <hsn@filez.com>
To:        freebsd-ports@freebsd.org
Subject:   problems with bsd.autotools.mk
Message-ID:  <4F689018.7010306@filez.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F689018.7010306>