mirror of
https://github.com/tstack/lnav.git
synced 2024-10-26 21:19:54 +03:00
[autogen] Honor environment variables and prefer autoreconf.
This commit is contained in:
parent
32e96e6395
commit
c1d37fab97
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