~ubuntu-branches/ubuntu/trusty/systemd/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Michael Biebl, Michael Stapelberg, Daniel Schaal, Ondrej Balaz
  • Date: 2013-09-12 00:13:11 UTC
  • mfrom: (1.1.11) (9.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: package-import@ubuntu.com-20130912001311-dz35it34wr2lbday
Tags: 204-3
[ Michael Biebl ]
* Upload to unstable.
* Use /bin/bash in debug-shell.service as Debian doesn't have /sbin/sushell.
* Only import net.ifaces cmdline property for network devices.
* Generate strict dependencies between the binary packages using a
  shlibs.local file and add an explicit versioned dependency on
  libsystemd-login0 to systemd to ensure packages are upgraded in sync.
  Closes: #719444
* Drop obsolete Replaces: libudev0 from udev package.
* Use correct paths for various binaries, like /sbin/quotaon, which are
  installed in / and not /usr in Debian.  Closes: #721347
* Don't install kernel-install(8) man page since we don't install the
  corresponding binary either.  Closes: #722180
* Cherry-pick upstream fixes to make switching runlevels and starting
  reboot via ctrl-alt-del more robust.
* Cherry-pick upstream fix to properly apply ACLs to Journal files.

[ Michael Stapelberg ]
* Make systemctl enable|disable call update-rc.d for SysV init scripts.
  Closes: #709780
* Don't mount /tmp as tmpfs by default and make it possible to enable this
  feature via "systemctl enable tmp.mount".

[ Daniel Schaal ]
* Add bug-script to systemd and udev.  Closes: #711245

[ Ondrej Balaz ]
* Recognize discard option in /etc/crypttab.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
 
# Inc.
 
1
# generated automatically by aclocal 1.13.1 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
4
 
6
5
# This file is free software; the Free Software Foundation
7
6
# gives unlimited permission to copy and/or distribute it,
8
7
# with or without modifications, as long as this notice is preserved.
12
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
12
# PARTICULAR PURPOSE.
14
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18
 
[m4_warning([this file was generated for autoconf 2.68.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf.  It may work, but is not guaranteed to.
20
20
If you have problems, you may need to regenerate the build system entirely.
21
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
 
22
 
 
23
dnl -*- mode: autoconf -*-
 
24
dnl Copyright 2009 Johan Dahlin
 
25
dnl
 
26
dnl This file is free software; the author(s) gives unlimited
 
27
dnl permission to copy and/or distribute it, with or without
 
28
dnl modifications, as long as this notice is preserved.
 
29
dnl
 
30
 
 
31
# serial 1
 
32
 
 
33
m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
 
34
[
 
35
    AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
36
    AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
37
    AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
 
38
 
 
39
    dnl enable/disable introspection
 
40
    m4_if([$2], [require],
 
41
    [dnl
 
42
        enable_introspection=yes
 
43
    ],[dnl
 
44
        AC_ARG_ENABLE(introspection,
 
45
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
 
46
                                 [Enable introspection for this build]),, 
 
47
                                 [enable_introspection=auto])
 
48
    ])dnl
 
49
 
 
50
    AC_MSG_CHECKING([for gobject-introspection])
 
51
 
 
52
    dnl presence/version checking
 
53
    AS_CASE([$enable_introspection],
 
54
    [no], [dnl
 
55
        found_introspection="no (disabled, use --enable-introspection to enable)"
 
56
    ],dnl
 
57
    [yes],[dnl
 
58
        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
 
59
                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
 
60
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
 
61
                         found_introspection=yes,
 
62
                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
 
63
    ],dnl
 
64
    [auto],[dnl
 
65
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
 
66
        dnl Canonicalize enable_introspection
 
67
        enable_introspection=$found_introspection
 
68
    ],dnl
 
69
    [dnl        
 
70
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
 
71
    ])dnl
 
72
 
 
73
    AC_MSG_RESULT([$found_introspection])
 
74
 
 
75
    INTROSPECTION_SCANNER=
 
76
    INTROSPECTION_COMPILER=
 
77
    INTROSPECTION_GENERATE=
 
78
    INTROSPECTION_GIRDIR=
 
79
    INTROSPECTION_TYPELIBDIR=
 
80
    if test "x$found_introspection" = "xyes"; then
 
81
       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
 
82
       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
 
83
       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
 
84
       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
 
85
       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
 
86
       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
 
87
       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
 
88
       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
 
89
    fi
 
90
    AC_SUBST(INTROSPECTION_SCANNER)
 
91
    AC_SUBST(INTROSPECTION_COMPILER)
 
92
    AC_SUBST(INTROSPECTION_GENERATE)
 
93
    AC_SUBST(INTROSPECTION_GIRDIR)
 
94
    AC_SUBST(INTROSPECTION_TYPELIBDIR)
 
95
    AC_SUBST(INTROSPECTION_CFLAGS)
 
96
    AC_SUBST(INTROSPECTION_LIBS)
 
97
    AC_SUBST(INTROSPECTION_MAKEFILE)
 
98
 
 
99
    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
 
100
])
 
101
 
 
102
 
 
103
dnl Usage:
 
104
dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
 
105
 
 
106
AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
 
107
[
 
108
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
 
109
])
 
110
 
 
111
dnl Usage:
 
112
dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
 
113
 
 
114
 
 
115
AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
 
116
[
 
117
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
 
118
])
 
119
 
 
120
dnl Autoconf macros for libgcrypt
 
121
dnl       Copyright (C) 2002, 2004 Free Software Foundation, Inc.
 
122
dnl
 
123
dnl This file is free software; as a special exception the author gives
 
124
dnl unlimited permission to copy and/or distribute it, with or without
 
125
dnl modifications, as long as this notice is preserved.
 
126
dnl
 
127
dnl This file is distributed in the hope that it will be useful, but
 
128
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
 
129
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
130
 
 
131
 
 
132
dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
 
133
dnl                   [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
 
134
dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
 
135
dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
 
136
dnl with the API version to also check the API compatibility. Example:
 
137
dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
 
138
dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1.  Using
 
139
dnl this features allows to prevent build against newer versions of libgcrypt
 
140
dnl with a changed API.
 
141
dnl
 
142
AC_DEFUN([AM_PATH_LIBGCRYPT],
 
143
[ AC_ARG_WITH(libgcrypt-prefix,
 
144
            AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
 
145
                           [prefix where LIBGCRYPT is installed (optional)]),
 
146
     libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
 
147
  if test x$libgcrypt_config_prefix != x ; then
 
148
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
 
149
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
 
150
     fi
 
151
  fi
 
152
 
 
153
  AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no)
 
154
  tmp=ifelse([$1], ,1:1.2.0,$1)
 
155
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
156
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
157
     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
158
  else
 
159
     req_libgcrypt_api=0
 
160
     min_libgcrypt_version="$tmp"
 
161
  fi
 
162
 
 
163
  AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
 
164
  ok=no
 
165
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
 
166
    req_major=`echo $min_libgcrypt_version | \
 
167
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
 
168
    req_minor=`echo $min_libgcrypt_version | \
 
169
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
 
170
    req_micro=`echo $min_libgcrypt_version | \
 
171
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
 
172
    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
 
173
    major=`echo $libgcrypt_config_version | \
 
174
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
 
175
    minor=`echo $libgcrypt_config_version | \
 
176
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
 
177
    micro=`echo $libgcrypt_config_version | \
 
178
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
 
179
    if test "$major" -gt "$req_major"; then
 
180
        ok=yes
 
181
    else
 
182
        if test "$major" -eq "$req_major"; then
 
183
            if test "$minor" -gt "$req_minor"; then
 
184
               ok=yes
 
185
            else
 
186
               if test "$minor" -eq "$req_minor"; then
 
187
                   if test "$micro" -ge "$req_micro"; then
 
188
                     ok=yes
 
189
                   fi
 
190
               fi
 
191
            fi
 
192
        fi
 
193
    fi
 
194
  fi
 
195
  if test $ok = yes; then
 
196
    AC_MSG_RESULT([yes ($libgcrypt_config_version)])
 
197
  else
 
198
    AC_MSG_RESULT(no)
 
199
  fi
 
200
  if test $ok = yes; then
 
201
     # If we have a recent libgcrypt, we should also check that the
 
202
     # API is compatible
 
203
     if test "$req_libgcrypt_api" -gt 0 ; then
 
204
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
 
205
        if test "$tmp" -gt 0 ; then
 
206
           AC_MSG_CHECKING([LIBGCRYPT API version])
 
207
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
 
208
             AC_MSG_RESULT([okay])
 
209
           else
 
210
             ok=no
 
211
             AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp])
 
212
           fi
 
213
        fi
 
214
     fi
 
215
  fi
 
216
  if test $ok = yes; then
 
217
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
 
218
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
 
219
    ifelse([$2], , :, [$2])
 
220
    if test x"$host" != x ; then
 
221
      libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
 
222
      if test x"$libgcrypt_config_host" != xnone ; then
 
223
        if test x"$libgcrypt_config_host" != x"$host" ; then
 
224
  AC_MSG_WARN([[
 
225
***
 
226
*** The config script $LIBGCRYPT_CONFIG was
 
227
*** built for $libgcrypt_config_host and thus may not match the
 
228
*** used host $host.
 
229
*** You may want to use the configure option --with-libgcrypt-prefix
 
230
*** to specify a matching config script.
 
231
***]])
 
232
        fi
 
233
      fi
 
234
    fi
 
235
  else
 
236
    LIBGCRYPT_CFLAGS=""
 
237
    LIBGCRYPT_LIBS=""
 
238
    ifelse([$3], , :, [$3])
 
239
  fi
 
240
  AC_SUBST(LIBGCRYPT_CFLAGS)
 
241
  AC_SUBST(LIBGCRYPT_LIBS)
 
242
])
22
243
 
23
244
# nls.m4 serial 5 (gettext-0.18)
24
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
245
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
25
246
dnl Inc.
26
247
dnl This file is free software; the Free Software Foundation
27
248
dnl gives unlimited permission to copy and/or distribute it,
81
302
# ----------------------------------
82
303
AC_DEFUN([PKG_PROG_PKG_CONFIG],
83
304
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
84
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
305
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
306
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
85
307
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
86
308
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
87
309
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
127
349
    pkg_cv_[]$1="$$1"
128
350
 elif test -n "$PKG_CONFIG"; then
129
351
    PKG_CHECK_EXISTS([$3],
130
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
352
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
353
                      test "x$?" != "x0" && pkg_failed=yes ],
131
354
                     [pkg_failed=yes])
132
355
 else
133
356
    pkg_failed=untried
175
398
        AC_MSG_RESULT([no])
176
399
        _PKG_SHORT_ERRORS_SUPPORTED
177
400
        if test $_pkg_short_errors_supported = yes; then
178
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
401
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
179
402
        else 
180
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
403
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
181
404
        fi
182
405
        # Put the nasty error message in config.log where it belongs
183
406
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
190
413
Consider adjusting the PKG_CONFIG_PATH environment variable if you
191
414
installed software in a non-standard prefix.
192
415
 
193
 
_PKG_TEXT])
 
416
_PKG_TEXT])[]dnl
194
417
        ])
195
418
elif test $pkg_failed = untried; then
196
419
        AC_MSG_RESULT([no])
201
424
 
202
425
_PKG_TEXT
203
426
 
204
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
427
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
205
428
        ])
206
429
else
207
430
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
211
434
fi[]dnl
212
435
])# PKG_CHECK_MODULES
213
436
 
214
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
215
 
# Foundation, Inc.
 
437
 
 
438
# PKG_INSTALLDIR(DIRECTORY)
 
439
# -------------------------
 
440
# Substitutes the variable pkgconfigdir as the location where a module
 
441
# should install pkg-config .pc files. By default the directory is
 
442
# $libdir/pkgconfig, but the default can be changed by passing
 
443
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
444
# parameter.
 
445
AC_DEFUN([PKG_INSTALLDIR],
 
446
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
447
m4_pushdef([pkg_description],
 
448
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
449
AC_ARG_WITH([pkgconfigdir],
 
450
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
451
    [with_pkgconfigdir=]pkg_default)
 
452
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
453
m4_popdef([pkg_default])
 
454
m4_popdef([pkg_description])
 
455
]) dnl PKG_INSTALLDIR
 
456
 
 
457
 
 
458
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
459
# -------------------------
 
460
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
461
# module should install arch-independent pkg-config .pc files. By
 
462
# default the directory is $datadir/pkgconfig, but the default can be
 
463
# changed by passing DIRECTORY. The user can override through the
 
464
# --with-noarch-pkgconfigdir parameter.
 
465
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
466
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
467
m4_pushdef([pkg_description],
 
468
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
469
AC_ARG_WITH([noarch-pkgconfigdir],
 
470
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
471
    [with_noarch_pkgconfigdir=]pkg_default)
 
472
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
473
m4_popdef([pkg_default])
 
474
m4_popdef([pkg_description])
 
475
]) dnl PKG_NOARCH_INSTALLDIR
 
476
 
 
477
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
216
478
#
217
479
# This file is free software; the Free Software Foundation
218
480
# gives unlimited permission to copy and/or distribute it,
219
481
# with or without modifications, as long as this notice is preserved.
220
482
 
221
 
# serial 1
222
 
 
223
483
# AM_AUTOMAKE_VERSION(VERSION)
224
484
# ----------------------------
225
485
# Automake X.Y traces this macro to ensure aclocal.m4 has been
226
486
# generated from the m4 files accompanying Automake X.Y.
227
487
# (This private macro should not be called outside this file.)
228
488
AC_DEFUN([AM_AUTOMAKE_VERSION],
229
 
[am__api_version='1.11'
 
489
[am__api_version='1.13'
230
490
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
231
491
dnl require some minimum version.  Point them to the right macro.
232
 
m4_if([$1], [1.11.3], [],
 
492
m4_if([$1], [1.13.1], [],
233
493
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
234
494
])
235
495
 
245
505
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
246
506
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
247
507
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
248
 
[AM_AUTOMAKE_VERSION([1.11.3])dnl
 
508
[AM_AUTOMAKE_VERSION([1.13.1])dnl
249
509
m4_ifndef([AC_AUTOCONF_VERSION],
250
510
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
251
511
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
252
512
 
253
513
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
254
514
 
255
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
515
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
256
516
#
257
517
# This file is free software; the Free Software Foundation
258
518
# gives unlimited permission to copy and/or distribute it,
259
519
# with or without modifications, as long as this notice is preserved.
260
520
 
261
 
# serial 1
262
 
 
263
521
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
264
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
265
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
522
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
523
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
266
524
#
267
525
# Of course, Automake must honor this variable whenever it calls a
268
526
# tool from the auxiliary directory.  The problem is that $srcdir (and
281
539
#
282
540
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
283
541
# are both prefixed by $srcdir.  In an in-source build this is usually
284
 
# harmless because $srcdir is `.', but things will broke when you
 
542
# harmless because $srcdir is '.', but things will broke when you
285
543
# start a VPATH build or use an absolute $srcdir.
286
544
#
287
545
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
307
565
 
308
566
# AM_CONDITIONAL                                            -*- Autoconf -*-
309
567
 
310
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
311
 
# Free Software Foundation, Inc.
 
568
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
312
569
#
313
570
# This file is free software; the Free Software Foundation
314
571
# gives unlimited permission to copy and/or distribute it,
315
572
# with or without modifications, as long as this notice is preserved.
316
573
 
317
 
# serial 9
318
 
 
319
574
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
320
575
# -------------------------------------
321
576
# Define a conditional.
322
577
AC_DEFUN([AM_CONDITIONAL],
323
 
[AC_PREREQ(2.52)dnl
324
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
325
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
578
[AC_PREREQ([2.52])dnl
 
579
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
580
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
326
581
AC_SUBST([$1_TRUE])dnl
327
582
AC_SUBST([$1_FALSE])dnl
328
583
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
341
596
Usually this means the macro was only invoked conditionally.]])
342
597
fi])])
343
598
 
344
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
345
 
# 2010, 2011 Free Software Foundation, Inc.
 
599
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
346
600
#
347
601
# This file is free software; the Free Software Foundation
348
602
# gives unlimited permission to copy and/or distribute it,
349
603
# with or without modifications, as long as this notice is preserved.
350
604
 
351
 
# serial 12
352
605
 
353
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
606
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
354
607
# written in clear, in which case automake, when reading aclocal.m4,
355
608
# will think it sees a *use*, and therefore will trigger all it's
356
609
# C support machinery.  Also note that it means that autoscan, seeing
360
613
# _AM_DEPENDENCIES(NAME)
361
614
# ----------------------
362
615
# See how the compiler implements dependency checking.
363
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
616
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
364
617
# We try a few techniques and use that to set a single cache variable.
365
618
#
366
619
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
373
626
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
374
627
AC_REQUIRE([AM_DEP_TRACK])dnl
375
628
 
376
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
377
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
378
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
379
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
380
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
381
 
                   [depcc="$$1"   am_compiler_list=])
 
629
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
630
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
631
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
632
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
633
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
634
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
635
                    [depcc="$$1"   am_compiler_list=])
382
636
 
383
637
AC_CACHE_CHECK([dependency style of $depcc],
384
638
               [am_cv_$1_dependencies_compiler_type],
386
640
  # We make a subdir and do the tests there.  Otherwise we can end up
387
641
  # making bogus files that we don't know about and never remove.  For
388
642
  # instance it was reported that on HP-UX the gcc test will end up
389
 
  # making a dummy file named `D' -- because `-MD' means `put the output
390
 
  # in D'.
 
643
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
644
  # in D".
391
645
  rm -rf conftest.dir
392
646
  mkdir conftest.dir
393
647
  # Copy depcomp to subdir because otherwise we won't find it if we're
427
681
    : > sub/conftest.c
428
682
    for i in 1 2 3 4 5 6; do
429
683
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
430
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
431
 
      # Solaris 8's {/usr,}/bin/sh.
432
 
      touch sub/conftst$i.h
 
684
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
685
      # Solaris 10 /bin/sh.
 
686
      echo '/* dummy */' > sub/conftst$i.h
433
687
    done
434
688
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
435
689
 
436
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
690
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
437
691
    # mode.  It turns out that the SunPro C++ compiler does not properly
438
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
439
 
    # versions had trouble with output in subdirs
 
692
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
693
    # versions had trouble with output in subdirs.
440
694
    am__obj=sub/conftest.${OBJEXT-o}
441
695
    am__minus_obj="-o $am__obj"
442
696
    case $depmode in
445
699
      test "$am__universal" = false || continue
446
700
      ;;
447
701
    nosideeffect)
448
 
      # after this tag, mechanisms are not by side-effect, so they'll
449
 
      # only be used when explicitly requested
 
702
      # After this tag, mechanisms are not by side-effect, so they'll
 
703
      # only be used when explicitly requested.
450
704
      if test "x$enable_dependency_tracking" = xyes; then
451
705
        continue
452
706
      else
454
708
      fi
455
709
      ;;
456
710
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
457
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
711
      # This compiler won't grok '-c -o', but also, the minuso test has
458
712
      # not run yet.  These depmodes are late enough in the game, and
459
713
      # so weak that their functioning should not be impacted.
460
714
      am__obj=conftest.${OBJEXT-o}
502
756
# AM_SET_DEPDIR
503
757
# -------------
504
758
# Choose a directory name for dependency files.
505
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
759
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
506
760
AC_DEFUN([AM_SET_DEPDIR],
507
761
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
508
762
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
512
766
# AM_DEP_TRACK
513
767
# ------------
514
768
AC_DEFUN([AM_DEP_TRACK],
515
 
[AC_ARG_ENABLE(dependency-tracking,
516
 
[  --disable-dependency-tracking  speeds up one-time build
517
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
769
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
770
AS_HELP_STRING(
 
771
  [--enable-dependency-tracking],
 
772
  [do not reject slow dependency extractors])
 
773
AS_HELP_STRING(
 
774
  [--disable-dependency-tracking],
 
775
  [speeds up one-time build])])
518
776
if test "x$enable_dependency_tracking" != xno; then
519
777
  am_depcomp="$ac_aux_dir/depcomp"
520
778
  AMDEPBACKSLASH='\'
529
787
 
530
788
# Generate code to set up dependency tracking.              -*- Autoconf -*-
531
789
 
532
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
533
 
# Free Software Foundation, Inc.
 
790
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
534
791
#
535
792
# This file is free software; the Free Software Foundation
536
793
# gives unlimited permission to copy and/or distribute it,
537
794
# with or without modifications, as long as this notice is preserved.
538
795
 
539
 
#serial 5
540
796
 
541
797
# _AM_OUTPUT_DEPENDENCY_COMMANDS
542
798
# ------------------------------
543
799
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
544
800
[{
545
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
801
  # Older Autoconf quotes --file arguments for eval, but not when files
546
802
  # are listed without --file.  Let's play safe and only enable the eval
547
803
  # if we detect the quoting.
548
804
  case $CONFIG_FILES in
555
811
    # Strip MF so we end up with the name of the file.
556
812
    mf=`echo "$mf" | sed -e 's/:.*$//'`
557
813
    # Check whether this is an Automake generated Makefile or not.
558
 
    # We used to match only the files named `Makefile.in', but
 
814
    # We used to match only the files named 'Makefile.in', but
559
815
    # some people rename them; so instead we look at the file content.
560
816
    # Grep'ing the first line is not enough: some people post-process
561
817
    # each Makefile.in and add a new line on top of each file to say so.
567
823
      continue
568
824
    fi
569
825
    # Extract the definition of DEPDIR, am__include, and am__quote
570
 
    # from the Makefile without running `make'.
 
826
    # from the Makefile without running 'make'.
571
827
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
572
828
    test -z "$DEPDIR" && continue
573
829
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
574
830
    test -z "am__include" && continue
575
831
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
576
 
    # When using ansi2knr, U may be empty or an underscore; expand it
577
 
    U=`sed -n 's/^U = //p' < "$mf"`
578
832
    # Find all dependency output files, they are included files with
579
833
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
580
834
    # simplest approach to changing $(DEPDIR) to its actual value in the
581
835
    # expansion.
582
836
    for file in `sed -n "
583
837
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
584
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
838
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
585
839
      # Make sure the directory exists.
586
840
      test -f "$dirpart/$file" && continue
587
841
      fdir=`AS_DIRNAME(["$file"])`
599
853
# This macro should only be invoked once -- use via AC_REQUIRE.
600
854
#
601
855
# This code is only required when automatic dependency tracking
602
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
856
# is enabled.  FIXME.  This creates each '.P' file that we will
603
857
# need in order to bootstrap the dependency handling code.
604
858
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
605
859
[AC_CONFIG_COMMANDS([depfiles],
609
863
 
610
864
# Do all the work for Automake.                             -*- Autoconf -*-
611
865
 
612
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
613
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
866
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
614
867
#
615
868
# This file is free software; the Free Software Foundation
616
869
# gives unlimited permission to copy and/or distribute it,
617
870
# with or without modifications, as long as this notice is preserved.
618
871
 
619
 
# serial 16
620
 
 
621
872
# This macro actually does too much.  Some checks are only needed if
622
873
# your package does certain things.  But this isn't really a big deal.
623
874
 
633
884
# arguments mandatory, and then we can depend on a new Autoconf
634
885
# release and drop the old call support.
635
886
AC_DEFUN([AM_INIT_AUTOMAKE],
636
 
[AC_PREREQ([2.62])dnl
 
887
[AC_PREREQ([2.65])dnl
637
888
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
638
889
dnl the ones we care about.
639
890
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
662
913
# Define the identity of the package.
663
914
dnl Distinguish between old-style and new-style calls.
664
915
m4_ifval([$2],
665
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
916
[AC_DIAGNOSE([obsolete],
 
917
             [$0: two- and three-arguments forms are deprecated.])
 
918
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
666
919
 AC_SUBST([PACKAGE], [$1])dnl
667
920
 AC_SUBST([VERSION], [$2])],
668
921
[_AM_SET_OPTIONS([$1])dnl
669
922
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
670
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
923
m4_if(
 
924
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
925
  [ok:ok],,
671
926
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
672
927
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
673
928
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
674
929
 
675
930
_AM_IF_OPTION([no-define],,
676
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
677
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
931
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
932
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
678
933
 
679
934
# Some tools Automake needs.
680
935
AC_REQUIRE([AM_SANITY_CHECK])dnl
681
936
AC_REQUIRE([AC_ARG_PROGRAM])dnl
682
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
683
 
AM_MISSING_PROG(AUTOCONF, autoconf)
684
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
685
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
686
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
937
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
938
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
939
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
940
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
941
AM_MISSING_PROG([MAKEINFO], [makeinfo])
687
942
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
688
943
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
689
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
944
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
945
# For better backward compatibility.  To be removed once Automake 1.9.x
 
946
# dies out for good.  For more background, see:
 
947
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
948
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
949
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
690
950
# We need awk for the "check" target.  The system "awk" is bad on
691
951
# some platforms.
692
952
AC_REQUIRE([AC_PROG_AWK])dnl
697
957
                             [_AM_PROG_TAR([v7])])])
698
958
_AM_IF_OPTION([no-dependencies],,
699
959
[AC_PROVIDE_IFELSE([AC_PROG_CC],
700
 
                  [_AM_DEPENDENCIES(CC)],
701
 
                  [define([AC_PROG_CC],
702
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
960
                  [_AM_DEPENDENCIES([CC])],
 
961
                  [m4_define([AC_PROG_CC],
 
962
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
703
963
AC_PROVIDE_IFELSE([AC_PROG_CXX],
704
 
                  [_AM_DEPENDENCIES(CXX)],
705
 
                  [define([AC_PROG_CXX],
706
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
964
                  [_AM_DEPENDENCIES([CXX])],
 
965
                  [m4_define([AC_PROG_CXX],
 
966
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
707
967
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
708
 
                  [_AM_DEPENDENCIES(OBJC)],
709
 
                  [define([AC_PROG_OBJC],
710
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
968
                  [_AM_DEPENDENCIES([OBJC])],
 
969
                  [m4_define([AC_PROG_OBJC],
 
970
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
971
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
972
                  [_AM_DEPENDENCIES([OBJCXX])],
 
973
                  [m4_define([AC_PROG_OBJCXX],
 
974
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
711
975
])
712
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
713
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
714
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
715
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
976
AC_REQUIRE([AM_SILENT_RULES])dnl
 
977
dnl The testsuite driver may need to know about EXEEXT, so add the
 
978
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
979
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
716
980
AC_CONFIG_COMMANDS_PRE(dnl
717
981
[m4_provide_if([_AM_COMPILER_EXEEXT],
718
982
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
719
983
])
720
984
 
721
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
985
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
722
986
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
723
987
dnl mangled by Autoconf and run in a shell conditional statement.
724
988
m4_define([_AC_COMPILER_EXEEXT],
746
1010
done
747
1011
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
748
1012
 
749
 
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
750
 
# Inc.
 
1013
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
751
1014
#
752
1015
# This file is free software; the Free Software Foundation
753
1016
# gives unlimited permission to copy and/or distribute it,
754
1017
# with or without modifications, as long as this notice is preserved.
755
1018
 
756
 
# serial 1
757
 
 
758
1019
# AM_PROG_INSTALL_SH
759
1020
# ------------------
760
1021
# Define $install_sh.
768
1029
    install_sh="\${SHELL} $am_aux_dir/install-sh"
769
1030
  esac
770
1031
fi
771
 
AC_SUBST(install_sh)])
 
1032
AC_SUBST([install_sh])])
772
1033
 
773
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
1034
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
774
1035
#
775
1036
# This file is free software; the Free Software Foundation
776
1037
# gives unlimited permission to copy and/or distribute it,
777
1038
# with or without modifications, as long as this notice is preserved.
778
1039
 
779
 
# serial 2
780
 
 
781
1040
# Check whether the underlying file-system supports filenames
782
1041
# with a leading dot.  For instance MS-DOS doesn't.
783
1042
AC_DEFUN([AM_SET_LEADING_DOT],
793
1052
 
794
1053
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
795
1054
 
796
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
1055
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
797
1056
#
798
1057
# This file is free software; the Free Software Foundation
799
1058
# gives unlimited permission to copy and/or distribute it,
800
1059
# with or without modifications, as long as this notice is preserved.
801
1060
 
802
 
# serial 4
803
 
 
804
1061
# AM_MAKE_INCLUDE()
805
1062
# -----------------
806
1063
# Check to see how make treats includes.
818
1075
_am_result=none
819
1076
# First try GNU make style include.
820
1077
echo "include confinc" > confmf
821
 
# Ignore all kinds of additional output from `make'.
 
1078
# Ignore all kinds of additional output from 'make'.
822
1079
case `$am_make -s -f confmf 2> /dev/null` in #(
823
1080
*the\ am__doit\ target*)
824
1081
  am__include=include
843
1100
rm -f confinc confmf
844
1101
])
845
1102
 
846
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
847
 
# Free Software Foundation, Inc.
 
1103
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
848
1104
#
849
1105
# This file is free software; the Free Software Foundation
850
1106
# gives unlimited permission to copy and/or distribute it,
851
1107
# with or without modifications, as long as this notice is preserved.
852
1108
 
853
 
# serial 6
854
 
 
855
1109
# AM_PROG_CC_C_O
856
1110
# --------------
857
1111
# Like AC_PROG_CC_C_O, but changed for automake.
880
1134
 
881
1135
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
882
1136
 
883
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
884
 
# Free Software Foundation, Inc.
 
1137
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
885
1138
#
886
1139
# This file is free software; the Free Software Foundation
887
1140
# gives unlimited permission to copy and/or distribute it,
888
1141
# with or without modifications, as long as this notice is preserved.
889
1142
 
890
 
# serial 6
891
 
 
892
1143
# AM_MISSING_PROG(NAME, PROGRAM)
893
1144
# ------------------------------
894
1145
AC_DEFUN([AM_MISSING_PROG],
896
1147
$1=${$1-"${am_missing_run}$2"}
897
1148
AC_SUBST($1)])
898
1149
 
899
 
 
900
1150
# AM_MISSING_HAS_RUN
901
1151
# ------------------
902
 
# Define MISSING if not defined so far and test if it supports --run.
903
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
1152
# Define MISSING if not defined so far and test if it is modern enough.
 
1153
# If it is, set am_missing_run to use it, otherwise, to nothing.
904
1154
AC_DEFUN([AM_MISSING_HAS_RUN],
905
1155
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
906
1156
AC_REQUIRE_AUX_FILE([missing])dnl
913
1163
  esac
914
1164
fi
915
1165
# Use eval to expand $SHELL
916
 
if eval "$MISSING --run true"; then
917
 
  am_missing_run="$MISSING --run "
 
1166
if eval "$MISSING --is-lightweight"; then
 
1167
  am_missing_run="$MISSING "
918
1168
else
919
1169
  am_missing_run=
920
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
1170
  AC_MSG_WARN(['missing' script is too old or missing])
921
1171
fi
922
1172
])
923
1173
 
924
 
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
925
 
# Inc.
926
 
#
927
 
# This file is free software; the Free Software Foundation
928
 
# gives unlimited permission to copy and/or distribute it,
929
 
# with or without modifications, as long as this notice is preserved.
930
 
 
931
 
# serial 1
932
 
 
933
 
# AM_PROG_MKDIR_P
934
 
# ---------------
935
 
# Check for `mkdir -p'.
936
 
AC_DEFUN([AM_PROG_MKDIR_P],
937
 
[AC_PREREQ([2.60])dnl
938
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
939
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
940
 
dnl while keeping a definition of mkdir_p for backward compatibility.
941
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
942
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
943
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
944
 
dnl adjustment using top_builddir (which is defined more often than
945
 
dnl MKDIR_P).
946
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
947
 
case $mkdir_p in
948
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
949
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
950
 
esac
951
 
])
952
 
 
953
1174
# Helper functions for option handling.                     -*- Autoconf -*-
954
1175
 
955
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
956
 
# Foundation, Inc.
 
1176
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
957
1177
#
958
1178
# This file is free software; the Free Software Foundation
959
1179
# gives unlimited permission to copy and/or distribute it,
960
1180
# with or without modifications, as long as this notice is preserved.
961
1181
 
962
 
# serial 5
963
 
 
964
1182
# _AM_MANGLE_OPTION(NAME)
965
1183
# -----------------------
966
1184
AC_DEFUN([_AM_MANGLE_OPTION],
970
1188
# --------------------
971
1189
# Set option NAME.  Presently that only means defining a flag for this option.
972
1190
AC_DEFUN([_AM_SET_OPTION],
973
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
1191
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
974
1192
 
975
1193
# _AM_SET_OPTIONS(OPTIONS)
976
1194
# ------------------------
984
1202
AC_DEFUN([_AM_IF_OPTION],
985
1203
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
986
1204
 
987
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
988
 
#
989
 
# This file is free software; the Free Software Foundation
990
 
# gives unlimited permission to copy and/or distribute it,
991
 
# with or without modifications, as long as this notice is preserved.
992
 
 
993
 
# serial 1
 
1205
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
1206
#
 
1207
# This file is free software; the Free Software Foundation
 
1208
# gives unlimited permission to copy and/or distribute it,
 
1209
# with or without modifications, as long as this notice is preserved.
 
1210
 
 
1211
 
 
1212
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1213
# ---------------------------------------------------------------------------
 
1214
# Adds support for distributing Python modules and packages.  To
 
1215
# install modules, copy them to $(pythondir), using the python_PYTHON
 
1216
# automake variable.  To install a package with the same name as the
 
1217
# automake package, install to $(pkgpythondir), or use the
 
1218
# pkgpython_PYTHON automake variable.
 
1219
#
 
1220
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
 
1221
# locations to install python extension modules (shared libraries).
 
1222
# Another macro is required to find the appropriate flags to compile
 
1223
# extension modules.
 
1224
#
 
1225
# If your package is configured with a different prefix to python,
 
1226
# users will have to add the install directory to the PYTHONPATH
 
1227
# environment variable, or create a .pth file (see the python
 
1228
# documentation for details).
 
1229
#
 
1230
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
 
1231
# cause an error if the version of python installed on the system
 
1232
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
 
1233
# numbers and dots only.
 
1234
AC_DEFUN([AM_PATH_PYTHON],
 
1235
 [
 
1236
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
 
1237
  dnl supported. (2.0 was released on October 16, 2000).
 
1238
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
 
1239
[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
 
1240
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
 
1241
 
 
1242
  AC_ARG_VAR([PYTHON], [the Python interpreter])
 
1243
 
 
1244
  m4_if([$1],[],[
 
1245
    dnl No version check is needed.
 
1246
    # Find any Python interpreter.
 
1247
    if test -z "$PYTHON"; then
 
1248
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
 
1249
    fi
 
1250
    am_display_PYTHON=python
 
1251
  ], [
 
1252
    dnl A version check is needed.
 
1253
    if test -n "$PYTHON"; then
 
1254
      # If the user set $PYTHON, use it and don't search something else.
 
1255
      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
 
1256
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
 
1257
                              [AC_MSG_RESULT([yes])],
 
1258
                              [AC_MSG_RESULT([no])
 
1259
                               AC_MSG_ERROR([Python interpreter is too old])])
 
1260
      am_display_PYTHON=$PYTHON
 
1261
    else
 
1262
      # Otherwise, try each interpreter until we find one that satisfies
 
1263
      # VERSION.
 
1264
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
 
1265
        [am_cv_pathless_PYTHON],[
 
1266
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 
1267
          test "$am_cv_pathless_PYTHON" = none && break
 
1268
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 
1269
        done])
 
1270
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
1271
      if test "$am_cv_pathless_PYTHON" = none; then
 
1272
        PYTHON=:
 
1273
      else
 
1274
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 
1275
      fi
 
1276
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
1277
    fi
 
1278
  ])
 
1279
 
 
1280
  if test "$PYTHON" = :; then
 
1281
  dnl Run any user-specified action, or abort.
 
1282
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 
1283
  else
 
1284
 
 
1285
  dnl Query Python for its version number.  Getting [:3] seems to be
 
1286
  dnl the best way to do this; it's what "site.py" does in the standard
 
1287
  dnl library.
 
1288
 
 
1289
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
 
1290
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
 
1291
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
 
1292
 
 
1293
  dnl Use the values of $prefix and $exec_prefix for the corresponding
 
1294
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
 
1295
  dnl distinct variables so they can be overridden if need be.  However,
 
1296
  dnl general consensus is that you shouldn't need this ability.
 
1297
 
 
1298
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
 
1299
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
 
1300
 
 
1301
  dnl At times (like when building shared libraries) you may want
 
1302
  dnl to know which OS platform Python thinks this is.
 
1303
 
 
1304
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 
1305
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
 
1306
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
 
1307
 
 
1308
  # Just factor out some code duplication.
 
1309
  am_python_setup_sysconfig="\
 
1310
import sys
 
1311
# Prefer sysconfig over distutils.sysconfig, for better compatibility
 
1312
# with python 3.x.  See automake bug#10227.
 
1313
try:
 
1314
    import sysconfig
 
1315
except ImportError:
 
1316
    can_use_sysconfig = 0
 
1317
else:
 
1318
    can_use_sysconfig = 1
 
1319
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
 
1320
# <https://github.com/pypa/virtualenv/issues/118>
 
1321
try:
 
1322
    from platform import python_implementation
 
1323
    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
 
1324
        can_use_sysconfig = 0
 
1325
except ImportError:
 
1326
    pass"
 
1327
 
 
1328
  dnl Set up 4 directories:
 
1329
 
 
1330
  dnl pythondir -- where to install python scripts.  This is the
 
1331
  dnl   site-packages directory, not the python standard library
 
1332
  dnl   directory like in previous automake betas.  This behavior
 
1333
  dnl   is more consistent with lispdir.m4 for example.
 
1334
  dnl Query distutils for this directory.
 
1335
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
 
1336
    [am_cv_python_pythondir],
 
1337
    [if test "x$prefix" = xNONE
 
1338
     then
 
1339
       am_py_prefix=$ac_default_prefix
 
1340
     else
 
1341
       am_py_prefix=$prefix
 
1342
     fi
 
1343
     am_cv_python_pythondir=`$PYTHON -c "
 
1344
$am_python_setup_sysconfig
 
1345
if can_use_sysconfig:
 
1346
    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
 
1347
else:
 
1348
    from distutils import sysconfig
 
1349
    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
 
1350
sys.stdout.write(sitedir)"`
 
1351
     case $am_cv_python_pythondir in
 
1352
     $am_py_prefix*)
 
1353
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
1354
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
1355
       ;;
 
1356
     *)
 
1357
       case $am_py_prefix in
 
1358
         /usr|/System*) ;;
 
1359
         *)
 
1360
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
1361
          ;;
 
1362
       esac
 
1363
       ;;
 
1364
     esac
 
1365
    ])
 
1366
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
 
1367
 
 
1368
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
 
1369
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
 
1370
  dnl   more consistent with the rest of automake.
 
1371
 
 
1372
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
 
1373
 
 
1374
  dnl pyexecdir -- directory for installing python extension modules
 
1375
  dnl   (shared libraries)
 
1376
  dnl Query distutils for this directory.
 
1377
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
 
1378
    [am_cv_python_pyexecdir],
 
1379
    [if test "x$exec_prefix" = xNONE
 
1380
     then
 
1381
       am_py_exec_prefix=$am_py_prefix
 
1382
     else
 
1383
       am_py_exec_prefix=$exec_prefix
 
1384
     fi
 
1385
     am_cv_python_pyexecdir=`$PYTHON -c "
 
1386
$am_python_setup_sysconfig
 
1387
if can_use_sysconfig:
 
1388
    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
 
1389
else:
 
1390
    from distutils import sysconfig
 
1391
    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
 
1392
sys.stdout.write(sitedir)"`
 
1393
     case $am_cv_python_pyexecdir in
 
1394
     $am_py_exec_prefix*)
 
1395
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
1396
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
1397
       ;;
 
1398
     *)
 
1399
       case $am_py_exec_prefix in
 
1400
         /usr|/System*) ;;
 
1401
         *)
 
1402
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
1403
           ;;
 
1404
       esac
 
1405
       ;;
 
1406
     esac
 
1407
    ])
 
1408
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
 
1409
 
 
1410
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
 
1411
 
 
1412
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 
1413
 
 
1414
  dnl Run any user-specified action.
 
1415
  $2
 
1416
  fi
 
1417
 
 
1418
])
 
1419
 
 
1420
 
 
1421
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 
1422
# ---------------------------------------------------------------------------
 
1423
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
 
1424
# Run ACTION-IF-FALSE otherwise.
 
1425
# This test uses sys.hexversion instead of the string equivalent (first
 
1426
# word of sys.version), in order to cope with versions such as 2.2c1.
 
1427
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
 
1428
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
 
1429
 [prog="import sys
 
1430
# split strings by '.' and convert to numeric.  Append some zeros
 
1431
# because we need at least 4 digits for the hex conversion.
 
1432
# map returns an iterator in Python 3.0 and a list in 2.x
 
1433
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
 
1434
minverhex = 0
 
1435
# xrange is not present in Python 3.0 and range returns an iterator
 
1436
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
 
1437
sys.exit(sys.hexversion < minverhex)"
 
1438
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
 
1439
 
 
1440
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1441
#
 
1442
# This file is free software; the Free Software Foundation
 
1443
# gives unlimited permission to copy and/or distribute it,
 
1444
# with or without modifications, as long as this notice is preserved.
994
1445
 
995
1446
# AM_RUN_LOG(COMMAND)
996
1447
# -------------------
1005
1456
 
1006
1457
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1007
1458
 
1008
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1009
 
# Free Software Foundation, Inc.
 
1459
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1010
1460
#
1011
1461
# This file is free software; the Free Software Foundation
1012
1462
# gives unlimited permission to copy and/or distribute it,
1013
1463
# with or without modifications, as long as this notice is preserved.
1014
1464
 
1015
 
# serial 5
1016
 
 
1017
1465
# AM_SANITY_CHECK
1018
1466
# ---------------
1019
1467
AC_DEFUN([AM_SANITY_CHECK],
1020
1468
[AC_MSG_CHECKING([whether build environment is sane])
1021
 
# Just in case
1022
 
sleep 1
1023
 
echo timestamp > conftest.file
1024
1469
# Reject unsafe characters in $srcdir or the absolute working directory
1025
1470
# name.  Accept space and tab only in the latter.
1026
1471
am_lf='
1031
1476
esac
1032
1477
case $srcdir in
1033
1478
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1034
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1479
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1035
1480
esac
1036
1481
 
1037
 
# Do `set' in a subshell so we don't clobber the current shell's
 
1482
# Do 'set' in a subshell so we don't clobber the current shell's
1038
1483
# arguments.  Must try -L first in case configure is actually a
1039
1484
# symlink; some systems play weird games with the mod time of symlinks
1040
1485
# (eg FreeBSD returns the mod time of the symlink's containing
1041
1486
# directory).
1042
1487
if (
1043
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1044
 
   if test "$[*]" = "X"; then
1045
 
      # -L didn't work.
1046
 
      set X `ls -t "$srcdir/configure" conftest.file`
1047
 
   fi
1048
 
   rm -f conftest.file
1049
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1050
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
1051
 
 
1052
 
      # If neither matched, then we have a broken ls.  This can happen
1053
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1054
 
      # broken ls alias from the environment.  This has actually
1055
 
      # happened.  Such a system could not be considered "sane".
1056
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1057
 
alias in your environment])
1058
 
   fi
1059
 
 
 
1488
   am_has_slept=no
 
1489
   for am_try in 1 2; do
 
1490
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
1491
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1492
     if test "$[*]" = "X"; then
 
1493
        # -L didn't work.
 
1494
        set X `ls -t "$srcdir/configure" conftest.file`
 
1495
     fi
 
1496
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1497
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1498
 
 
1499
        # If neither matched, then we have a broken ls.  This can happen
 
1500
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1501
        # broken ls alias from the environment.  This has actually
 
1502
        # happened.  Such a system could not be considered "sane".
 
1503
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1504
  alias in your environment])
 
1505
     fi
 
1506
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
1507
       break
 
1508
     fi
 
1509
     # Just in case.
 
1510
     sleep 1
 
1511
     am_has_slept=yes
 
1512
   done
1060
1513
   test "$[2]" = conftest.file
1061
1514
   )
1062
1515
then
1066
1519
   AC_MSG_ERROR([newly created file is older than distributed files!
1067
1520
Check your system clock])
1068
1521
fi
1069
 
AC_MSG_RESULT(yes)])
 
1522
AC_MSG_RESULT([yes])
 
1523
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
1524
# generated files are strictly newer.
 
1525
am_sleep_pid=
 
1526
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
1527
  ( sleep 1 ) &
 
1528
  am_sleep_pid=$!
 
1529
fi
 
1530
AC_CONFIG_COMMANDS_PRE(
 
1531
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
1532
   if test -n "$am_sleep_pid"; then
 
1533
     # Hide warnings about reused PIDs.
 
1534
     wait $am_sleep_pid 2>/dev/null
 
1535
   fi
 
1536
   AC_MSG_RESULT([done])])
 
1537
rm -f conftest.file
 
1538
])
1070
1539
 
1071
 
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1540
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1072
1541
#
1073
1542
# This file is free software; the Free Software Foundation
1074
1543
# gives unlimited permission to copy and/or distribute it,
1075
1544
# with or without modifications, as long as this notice is preserved.
1076
1545
 
1077
 
# serial 2
1078
 
 
1079
1546
# AM_SILENT_RULES([DEFAULT])
1080
1547
# --------------------------
1081
1548
# Enable less verbose build rules; with the default set to DEFAULT
1082
 
# (`yes' being less verbose, `no' or empty being verbose).
 
1549
# ("yes" being less verbose, "no" or empty being verbose).
1083
1550
AC_DEFUN([AM_SILENT_RULES],
1084
 
[AC_ARG_ENABLE([silent-rules],
1085
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
1086
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
1087
 
case $enable_silent_rules in
1088
 
yes) AM_DEFAULT_VERBOSITY=0;;
1089
 
no)  AM_DEFAULT_VERBOSITY=1;;
1090
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1551
[AC_ARG_ENABLE([silent-rules], [dnl
 
1552
AS_HELP_STRING(
 
1553
  [--enable-silent-rules],
 
1554
  [less verbose build output (undo: "make V=1")])
 
1555
AS_HELP_STRING(
 
1556
  [--disable-silent-rules],
 
1557
  [verbose build output (undo: "make V=0")])dnl
 
1558
])
 
1559
case $enable_silent_rules in @%:@ (((
 
1560
  yes) AM_DEFAULT_VERBOSITY=0;;
 
1561
   no) AM_DEFAULT_VERBOSITY=1;;
 
1562
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1091
1563
esac
1092
1564
dnl
1093
 
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1565
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1094
1566
dnl do not support nested variable expansions.
1095
1567
dnl See automake bug#9928 and bug#10237.
1096
1568
am_make=${MAKE-make}
1108
1580
  am_cv_make_support_nested_variables=no
1109
1581
fi])
1110
1582
if test $am_cv_make_support_nested_variables = yes; then
1111
 
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1583
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1112
1584
  AM_V='$(V)'
1113
1585
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1114
1586
else
1125
1597
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1126
1598
])
1127
1599
 
1128
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1600
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1129
1601
#
1130
1602
# This file is free software; the Free Software Foundation
1131
1603
# gives unlimited permission to copy and/or distribute it,
1132
1604
# with or without modifications, as long as this notice is preserved.
1133
1605
 
1134
 
# serial 1
1135
 
 
1136
1606
# AM_PROG_INSTALL_STRIP
1137
1607
# ---------------------
1138
 
# One issue with vendor `install' (even GNU) is that you can't
 
1608
# One issue with vendor 'install' (even GNU) is that you can't
1139
1609
# specify the program used to strip binaries.  This is especially
1140
1610
# annoying in cross-compiling environments, where the build's strip
1141
1611
# is unlikely to handle the host's binaries.
1142
1612
# Fortunately install-sh will honor a STRIPPROG variable, so we
1143
 
# always use install-sh in `make install-strip', and initialize
 
1613
# always use install-sh in "make install-strip", and initialize
1144
1614
# STRIPPROG with the value of the STRIP variable (set by the user).
1145
1615
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1146
1616
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1147
 
# Installed binaries are usually stripped using `strip' when the user
1148
 
# run `make install-strip'.  However `strip' might not be the right
 
1617
# Installed binaries are usually stripped using 'strip' when the user
 
1618
# run "make install-strip".  However 'strip' might not be the right
1149
1619
# tool to use in cross-compilation environments, therefore Automake
1150
 
# will honor the `STRIP' environment variable to overrule this program.
1151
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1620
# will honor the 'STRIP' environment variable to overrule this program.
 
1621
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1152
1622
if test "$cross_compiling" != no; then
1153
1623
  AC_CHECK_TOOL([STRIP], [strip], :)
1154
1624
fi
1155
1625
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1156
1626
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1157
1627
 
1158
 
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1628
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1159
1629
#
1160
1630
# This file is free software; the Free Software Foundation
1161
1631
# gives unlimited permission to copy and/or distribute it,
1162
1632
# with or without modifications, as long as this notice is preserved.
1163
1633
 
1164
 
# serial 3
1165
 
 
1166
1634
# _AM_SUBST_NOTMAKE(VARIABLE)
1167
1635
# ---------------------------
1168
1636
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1176
1644
 
1177
1645
# Check how to create a tarball.                            -*- Autoconf -*-
1178
1646
 
1179
 
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1647
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1180
1648
#
1181
1649
# This file is free software; the Free Software Foundation
1182
1650
# gives unlimited permission to copy and/or distribute it,
1183
1651
# with or without modifications, as long as this notice is preserved.
1184
1652
 
1185
 
# serial 2
1186
 
 
1187
1653
# _AM_PROG_TAR(FORMAT)
1188
1654
# --------------------
1189
1655
# Check how to create a tarball in format FORMAT.
1190
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1656
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1191
1657
#
1192
1658
# Substitute a variable $(am__tar) that is a command
1193
1659
# writing to stdout a FORMAT-tarball containing the directory
1210
1676
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1211
1677
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1212
1678
# Do not fold the above two line into one, because Tru64 sh and
1213
 
# Solaris sh will not grok spaces in the rhs of `-'.
 
1679
# Solaris sh will not grok spaces in the rhs of '-'.
1214
1680
for _am_tool in $_am_tools
1215
1681
do
1216
1682
  case $_am_tool in
1271
1737
AC_SUBST([am__untar])
1272
1738
]) # _AM_PROG_TAR
1273
1739
 
1274
 
# Autoconf support for the Vala compiler
1275
 
 
1276
 
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
1277
 
#
1278
 
# This file is free software; the Free Software Foundation
1279
 
# gives unlimited permission to copy and/or distribute it,
1280
 
# with or without modifications, as long as this notice is preserved.
1281
 
 
1282
 
# serial 4
1283
 
 
1284
 
# Check whether the Vala compiler exists in `PATH'. If it is found, the
1285
 
# variable VALAC is set. Optionally a minimum release number of the
1286
 
# compiler can be requested.
1287
 
#
1288
 
# AM_PROG_VALAC([MINIMUM-VERSION])
1289
 
# --------------------------------
1290
 
AC_DEFUN([AM_PROG_VALAC],
1291
 
[AC_PATH_PROG([VALAC], [valac], [])
1292
 
 AS_IF([test -z "$VALAC"],
1293
 
   [AC_MSG_WARN([No Vala compiler found.  You will not be able to compile .vala source files.])],
1294
 
   [AS_IF([test -n "$1"],
1295
 
      [AC_MSG_CHECKING([$VALAC is at least version $1])
1296
 
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
1297
 
       AS_VERSION_COMPARE([$1], ["$am__vala_version"],
1298
 
         [AC_MSG_RESULT([yes])],
1299
 
         [AC_MSG_RESULT([yes])],
1300
 
         [AC_MSG_RESULT([no])
1301
 
          AC_MSG_ERROR([Vala $1 not found.])])])])
1302
 
])
1303
 
 
1304
1740
m4_include([m4/acx_libwrap.m4])
1305
1741
m4_include([m4/attributes.m4])
 
1742
m4_include([m4/gtk-doc.m4])
1306
1743
m4_include([m4/intltool.m4])
1307
1744
m4_include([m4/libtool.m4])
1308
1745
m4_include([m4/ltoptions.m4])