diff options
author | 2011-12-11 05:46:11 +0000 | |
---|---|---|
committer | 2011-12-11 05:46:11 +0000 | |
commit | 11ceccb22536d8ac75a92ebabc1fbbe0d20ef8e2 (patch) | |
tree | 0c500e4918db74e4126a5bde111f9fd464e4d7c3 /autogen.sh | |
parent | initial autotool support (diff) | |
download | portage-utils-11ceccb22536d8ac75a92ebabc1fbbe0d20ef8e2.tar.gz portage-utils-11ceccb22536d8ac75a92ebabc1fbbe0d20ef8e2.tar.bz2 portage-utils-11ceccb22536d8ac75a92ebabc1fbbe0d20ef8e2.zip |
improve autotools support, and integrate gnulib
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 32 |
1 files changed, 27 insertions, 5 deletions
@@ -1,20 +1,42 @@ #!/bin/bash -e +v() { echo "$@"; "$@"; } + m4dir="autotools/m4" -# avoid ugly warnings due to mismatch between local libtool and -# whatever updated version is on the host -find ${m4dir}/*.m4 '!' -name 'ax_*.m4' -delete 2>/dev/null || : +v rm -rf autotools +v ${MAKE:-make} autotools-update + +# reload the gnulib code if possible +PATH=/usr/local/src/gnu/gnulib:${PATH} +mods=" + faccessat + fstatat + futimens + getline + mkdirat + openat + readlinkat + renameat + strncat + symlinkat + unlinkat + utimensat +" +v gnulib-tool \ + --source-base=autotools/gnulib --m4-base=autotools/m4 \ + --import \ + ${mods} # not everyone has sys-devel/autoconf-archive installed for macro in $(grep -o '\<AX[A-Z_]*\>' configure.ac | sort -u) ; do if m4=$(grep -rl "\[${macro}\]" /usr/share/aclocal/) ; then - cp -v $m4 m4/ + v cp $m4 ${m4dir}/ fi done export AUTOMAKE="automake --foreign" -autoreconf -i -f +v autoreconf -i -f if [[ -x ./test.sh ]] ; then exec ./test.sh "$@" |