aboutsummaryrefslogtreecommitdiff
path: root/m4/as-auto-alt.m4
blob: 07c550b38c8ebf22bd55007e8f12496976b2542b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dnl as-auto-alt.m4 0.0.2
dnl autostars m4 macro for supplying alternate autotools versions to configure
dnl thomas@apestaart.org
dnl
dnl AS_AUTOTOOLS_ALTERNATE()
dnl
dnl supplies --with arguments for autoconf, autoheader, automake, aclocal

AC_DEFUN([AS_AUTOTOOLS_ALTERNATE],
[
  dnl allow for different autoconf version
  AC_ARG_WITH(autoconf,
    AS_HELP_STRING([--with-autoconf],
                   [use a different autoconf for regeneration of Makefiles]),
    [
      unset AUTOCONF
      AM_MISSING_PROG(AUTOCONF, ${withval})
      AC_MSG_NOTICE([Using $AUTOCONF as autoconf])
    ])

  dnl allow for different autoheader version
  AC_ARG_WITH(autoheader,
    AS_HELP_STRING([--with-autoheader],
                   [use a different autoheader for regeneration of Makefiles]),
    [
      unset AUTOHEADER
      AM_MISSING_PROG(AUTOHEADER, ${withval})
      AC_MSG_NOTICE([Using $AUTOHEADER as autoheader])
    ])

  dnl allow for different automake version
  AC_ARG_WITH(automake,
    AS_HELP_STRING([--with-automake],
                   [use a different automake for regeneration of Makefiles]),
    [
      unset AUTOMAKE
      AM_MISSING_PROG(AUTOMAKE, ${withval})
      AC_MSG_NOTICE([Using $AUTOMAKE as automake])
    ])

  dnl allow for different aclocal version
  AC_ARG_WITH(aclocal,
    AS_HELP_STRING([--with-aclocal],
                   [use a different aclocal for regeneration of Makefiles]),
    [
      unset ACLOCAL
      AM_MISSING_PROG(ACLOCAL, ${withval})
      AC_MSG_NOTICE([Using $ACLOCAL as aclocal])
    ])
])