1dnl as-auto-alt.m4 0.0.2
2dnl autostars m4 macro for supplying alternate autotools versions to configure
3dnl thomas@apestaart.org
4dnl
5dnl AS_AUTOTOOLS_ALTERNATE()
6dnl
7dnl supplies --with arguments for autoconf, autoheader, automake, aclocal
8
9AC_DEFUN([AS_AUTOTOOLS_ALTERNATE],
10[
11  dnl allow for different autoconf version
12  AC_ARG_WITH(autoconf,
13    AC_HELP_STRING([--with-autoconf],
14                   [use a different autoconf for regeneration of Makefiles]),
15    [
16      unset AUTOCONF
17      AM_MISSING_PROG(AUTOCONF, ${withval})
18      AC_MSG_NOTICE([Using $AUTOCONF as autoconf])
19    ])
20
21  dnl allow for different autoheader version
22  AC_ARG_WITH(autoheader,
23    AC_HELP_STRING([--with-autoheader],
24                   [use a different autoheader for regeneration of Makefiles]),
25    [
26      unset AUTOHEADER
27      AM_MISSING_PROG(AUTOHEADER, ${withval})
28      AC_MSG_NOTICE([Using $AUTOHEADER as autoheader])
29    ])
30
31  dnl allow for different automake version
32  AC_ARG_WITH(automake,
33    AC_HELP_STRING([--with-automake],
34                   [use a different automake for regeneration of Makefiles]),
35    [
36      unset AUTOMAKE
37      AM_MISSING_PROG(AUTOMAKE, ${withval})
38      AC_MSG_NOTICE([Using $AUTOMAKE as automake])
39    ])
40
41  dnl allow for different aclocal version
42  AC_ARG_WITH(aclocal,
43    AC_HELP_STRING([--with-aclocal],
44                   [use a different aclocal for regeneration of Makefiles]),
45    [
46      unset ACLOCAL
47      AM_MISSING_PROG(ACLOCAL, ${withval})
48      AC_MSG_NOTICE([Using $ACLOCAL as aclocal])
49    ])
50])
51