3 GLOBAL_ERROR_INDICATOR=0
5 check_for_application ()
9 if ! which "$PROG" >/dev/null 2>&1; then
11 WARNING: \`$PROG' not found!
12 Please make sure that \`$PROG' is installed and is in one of the
13 directories listed in the PATH environment variable.
15 GLOBAL_ERROR_INDICATOR=1
20 check_for_application lex yacc autoheader aclocal automake autoconf
22 # Actually we don't need the pkg-config executable, but we need the M4 macros.
23 # We check for `pkg-config' here and hope that M4 macros will then be
25 check_for_application pkg-config
28 libtoolize --version >/dev/null 2>/dev/null
33 glibtoolize --version >/dev/null 2>/dev/null
36 libtoolize=glibtoolize
39 WARNING: Neither \`libtoolize' nor \`glibtoolize' have been found!
40 Please make sure that one of them is installed and is in one of the
41 directories listed in the PATH environment variable.
43 GLOBAL_ERROR_INDICATOR=1
47 if test "$GLOBAL_ERROR_INDICATOR" != "0"
56 && $libtoolize --ltdl --copy --force \
57 && automake --add-missing --copy \