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
64 HELPER_DIR=$(automake --print-libdir)
66 cp $HELPER_DIR/config.guess config/
67 cp $HELPER_DIR/config.sub config/
68 cp $HELPER_DIR/install-sh config/
73 echo "Now type '$srcdir/configure' and 'make' to compile."