4 # Helps generate autoconf stuff, when code is checked out from SCM.
6 # Copyright (C) 2006-2014 - Karel Zak <kzak@redhat.com>
10 test -z "$srcdir" && srcdir
=.
18 echo "You must run this script in the top-level btrfs-progs directory"
23 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
25 echo "You must have autoconf installed to generate btrfs-progs build system."
29 (autoheader
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
31 echo "You must have autoheader installed to generate btrfs-progs build system."
32 echo "The autoheader command is part of the GNU autoconf package."
37 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
39 echo "You must have automake installed to generate btrfs-progs build system."
44 if test "$DIE" -eq 1; then
49 echo "Generate build-system by:"
50 echo " aclocal: $(aclocal --version | head -1)"
51 echo " autoconf: $(autoconf --version | head -1)"
52 echo " autoheader: $(autoheader --version | head -1)"
53 echo " automake: $(automake --version | head -1)"
62 # it's better to use helper files from automake installation than
63 # maintain copies in git tree
68 for HELPER_DIR
in $
(automake
--print-libdir 2>/dev
/null
) \
70 /usr
/share
/automake-
* ; do
77 echo "Cannot find "$1" in known locations"
82 find_autofile config.guess
83 find_autofile config.sub
84 find_autofile install-sh
89 echo "Now type '$srcdir/configure' and 'make' to compile."