3 GLOBAL_ERROR_INDICATOR=0
5 check_for_application ()
9 which "$PROG" >/dev/null 2>&1
10 if test $? -ne 0; then
12 WARNING: \`$PROG' not found!
13 Please make sure that \`$PROG' is installed and is in one of the
14 directories listed in the PATH environment variable.
16 GLOBAL_ERROR_INDICATOR=1
21 check_for_application lex yacc autoheader aclocal automake autoconf
23 # Actually we don't need the pkg-config executable, but we need the M4 macros.
24 # We check for `pkg-config' here and hope that M4 macros will then be
26 check_for_application pkg-config
29 libtoolize --version >/dev/null 2>/dev/null
34 glibtoolize --version >/dev/null 2>/dev/null
37 libtoolize=glibtoolize
40 WARNING: Neither \`libtoolize' nor \`glibtoolize' have been found!
41 Please make sure that one of them is installed and is in one of the
42 directories listed in the PATH environment variable.
44 GLOBAL_ERROR_INDICATOR=1
48 if test "$GLOBAL_ERROR_INDICATOR" != "0"
57 && $libtoolize --ltdl --copy --force \
58 && automake --add-missing --copy \