2 # Run this to generate all the initial makefiles, etc.
7 Generate makefiles and other infrastructure needed for building
11 --gnulib-srcdir=DIRNAME Specify the local directory where gnulib
12 sources reside. Use this if you already
13 have gnulib sources on your machine, and
14 do not want to waste your bandwidth downloading
16 --help Print this message
17 any other option Pass to the 'configure' script verbatim
19 Running without arguments will suffice in most cases.
23 BUILD_AUX=build/ac-aux
28 test -z "$srcdir" && srcdir=.
33 # Split out options for bootstrap and for configure
42 GNULIB_SRCDIR=$option;;
44 CF_ARGS[${#CF_ARGS[@]}]=$option;;
50 Darwin) LIBTOOLIZE=glibtoolize;;
51 *) LIBTOOLIZE=libtoolize;;
57 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
59 echo "You must have autoconf installed to compile augeas."
60 echo "Download the appropriate package for your distribution,"
61 echo "or see http://www.gnu.org/software/autoconf"
65 (automake --version) < /dev/null > /dev/null 2>&1 || {
68 echo "You must have automake installed to compile augeas."
69 echo "Download the appropriate package for your distribution,"
70 echo "or see http://www.gnu.org/software/automake"
73 if test "$DIE" -eq 1; then
77 if test -z "${CF_ARGS[*]}"; then
78 echo "I am going to run ./configure with --enable-warnings - if you "
79 echo "wish to pass any extra arguments to it, please specify them on "
80 echo "the $0 command line."
85 $LIBTOOLIZE --copy --force
86 ./bootstrap $GNULIB_SRCDIR
89 automake --add-missing
94 if test x$OBJ_DIR != x; then
99 $srcdir/configure "${CF_ARGS[@]}" && {
101 echo "Now type 'make' to compile augeas."