15
15
## You should have received a copy of the GNU General Public License
16
16
## along with mm-common. If not, see <http://www.gnu.org/licenses/>.
18
AC_INIT([mm-common], [0.9.5], [https://bugzilla.gnome.org/enter_bug.cgi?product=mm-common],
18
AC_INIT([mm-common], [0.9.6], [https://bugzilla.gnome.org/enter_bug.cgi?product=mm-common],
19
19
[mm-common], [http://www.gtkmm.org/])
21
21
AC_CONFIG_SRCDIR([util/mm-common-prepare.in])
29
29
AC_ARG_VAR([WGET], [wget download command])
32
AC_CHECK_PROG([CURL], [curl], [curl])
33
AC_CHECK_PROG([WGET], [wget], [wget])
35
AS_IF([test "x$USE_MAINTAINER_MODE" != xno && test "x$CURL$WGET" = x],
36
[AC_MSG_FAILURE([[Either curl or wget is required for building mm-common.]])])
32
dnl list of tar execs is taken from the generated ./missing script.
33
AC_CHECK_PROGS([TAR], [tar gnutar gtar], [no])
34
AS_VAR_IF([TAR], [no], [AC_MSG_ERROR([tar utility not found])])
36
AC_MSG_CHECKING([whether to enable network])
37
AC_ARG_ENABLE([network],
38
[AS_HELP_STRING([--enable-network],
39
[use network to download tags if needed @<:@default=same as maintainer mode@:>@])],
40
[AS_VAR_IF([enableval], ['yes'],,
41
[AS_VAR_IF([enableval], ['no'],,
42
[AC_MSG_ERROR([[Pass either `yes', `no' or nothing to --enable-network.]])]
46
AS_VAR_SET([enable_network], ["$enableval"])
48
[AS_VAR_SET([enable_network], ["$USE_MAINTAINER_MODE"])]
50
AC_SUBST([USE_NETWORK], ["$enable_network"])
51
AM_CONDITIONAL(NETWORK_ENABLED, [test "x$enable_network" = 'xyes'])
52
AC_MSG_RESULT([$USE_NETWORK])
54
AS_VAR_IF([USE_NETWORK], ['yes'],
55
[AC_CHECK_PROG([CURL], [curl], [curl])
56
AC_CHECK_PROG([WGET], [wget], [wget])
58
[AS_VAR_IF([WGET], [],
59
[AC_MSG_FAILURE([[Network is enabled so either curl or wget is required for building mm-common.]])]
38
66
AC_CONFIG_FILES([Makefile
39
67
doctags/mm-common-libstdc++.pc