~ubuntu-branches/ubuntu/trusty/mm-common/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-11-12 17:07:27 UTC
  • Revision ID: package-import@ubuntu.com-20121112170727-pzd1lizzqnxp6u3f
Tags: 0.9.6-0ubuntu1
* New upstream release
* debian/watch:
  - Watch for .xz releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
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/>.
17
17
 
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/])
20
20
AC_PREREQ([2.59])
21
21
AC_CONFIG_SRCDIR([util/mm-common-prepare.in])
29
29
AC_ARG_VAR([WGET], [wget download command])
30
30
 
31
31
AC_PROG_SED
32
 
AC_CHECK_PROG([CURL], [curl], [curl])
33
 
AC_CHECK_PROG([WGET], [wget], [wget])
34
 
 
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])])
 
35
 
 
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.]])]
 
43
                                   )
 
44
                         ]
 
45
                        )
 
46
               AS_VAR_SET([enable_network], ["$enableval"])
 
47
              ],
 
48
              [AS_VAR_SET([enable_network], ["$USE_MAINTAINER_MODE"])]
 
49
             )
 
50
AC_SUBST([USE_NETWORK], ["$enable_network"])
 
51
AM_CONDITIONAL(NETWORK_ENABLED, [test "x$enable_network" = 'xyes'])
 
52
AC_MSG_RESULT([$USE_NETWORK])
 
53
 
 
54
AS_VAR_IF([USE_NETWORK], ['yes'],
 
55
          [AC_CHECK_PROG([CURL], [curl], [curl])
 
56
           AC_CHECK_PROG([WGET], [wget], [wget])
 
57
           AS_VAR_IF([CURL], [],
 
58
                     [AS_VAR_IF([WGET], [],
 
59
                                [AC_MSG_FAILURE([[Network is enabled so either curl or wget is required for building mm-common.]])]
 
60
                               )
 
61
                     ]
 
62
                    )
 
63
          ]
 
64
         )
37
65
 
38
66
AC_CONFIG_FILES([Makefile
39
67
                 doctags/mm-common-libstdc++.pc