mirror of
https://github.com/tstack/lnav.git
synced 2024-08-17 08:50:41 +03:00
Merge pull request #199 from sureshsundriyal/wip
[autogen] Fix autogen on systems without 'which'.
This commit is contained in:
commit
07179063f8
15
autogen.sh
15
autogen.sh
@ -1,15 +1,20 @@
|
||||
#! /bin/sh
|
||||
|
||||
|
||||
AUTORECONF=${AUTORECONF:-$(which autoreconf)}
|
||||
if [ -n ${AUTORECONF} ]; then
|
||||
autoreconf 1>/dev/null 2>/dev/null
|
||||
if [ $? ]; then
|
||||
AUTORECONF=autoreconf
|
||||
fi
|
||||
fi
|
||||
|
||||
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=${AUTOCONF:-autoconf}
|
||||
AUTOMAKE=${AUTOMAKE:-automake}
|
||||
AUTOHEADER=${AUTOHEADER:-autoheader}
|
||||
ACLOCAL=${ACLOCAL:-aclocal}
|
||||
|
||||
${AUTOCONF} --version
|
||||
${AUTOMAKE} --version
|
||||
|
Loading…
Reference in New Issue
Block a user