mirror of
https://github.com/tstack/lnav.git
synced 2024-08-17 08:50:41 +03:00
Merge pull request #198 from sureshsundriyal/wip
[autogen] Honor environment variables and prefer autoreconf.
This commit is contained in:
commit
4d3c1e206b
24
autogen.sh
24
autogen.sh
@ -1,9 +1,21 @@
|
||||
#! /bin/sh
|
||||
|
||||
autoconf --version
|
||||
automake --version
|
||||
|
||||
aclocal -I m4 -I .
|
||||
autoheader -I .
|
||||
automake --add-missing --copy --force-missing --foreign
|
||||
autoconf
|
||||
AUTORECONF=${AUTORECONF:-$(which autoreconf)}
|
||||
|
||||
if [ -n ${AUTORECONF} ]; then
|
||||
${AUTORECONF} -vfi -I m4
|
||||
else
|
||||
AUTOCONF=${AUTOCONF:-$(which autoconf)}
|
||||
AUTOMAKE=${AUTOMAKE:-$(which automake)}
|
||||
AUTOHEADER=${AUTOHEADER:-$(which autoheader)}
|
||||
ACLOCAL=${ACLOCAL:-$(which aclocal)}
|
||||
|
||||
${AUTOCONF} --version
|
||||
${AUTOMAKE} --version
|
||||
|
||||
${ACLOCAL} -I m4 -I .
|
||||
${AUTOHEADER} -I .
|
||||
${AUTOMAKE} --add-missing --copy --force-missing --foreign
|
||||
${AUTOCONF}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user