Initialize Tizen 2.3
[framework/multimedia/gst-plugins-base0.10.git] / wearable / common / m4 / as-auto-alt.m4
1 dnl as-auto-alt.m4 0.0.2
2 dnl autostars m4 macro for supplying alternate autotools versions to configure
3 dnl thomas@apestaart.org
4 dnl
5 dnl AS_AUTOTOOLS_ALTERNATE()
6 dnl
7 dnl supplies --with arguments for autoconf, autoheader, automake, aclocal
8
9 AC_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 ])