~ubuntu-branches/ubuntu/trusty/indicator-sound-gtk2/trusty-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2012-09-10 00:09:01 UTC
  • Revision ID: package-import@ubuntu.com-20120910000901-q6469svv5d3pmn0y
Tags: upstream-12.10.0.1
ImportĀ upstreamĀ versionĀ 12.10.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# generated automatically by aclocal 1.11.5 -*- 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.
 
6
# This file is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy and/or distribute it,
 
8
# with or without modifications, as long as this notice is preserved.
 
9
 
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
13
# PARTICULAR PURPOSE.
 
14
 
 
15
m4_ifndef([AC_AUTOCONF_VERSION],
 
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
 
19
You have another version of autoconf.  It may work, but is not guaranteed to.
 
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'.])])
 
22
 
 
23
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
24
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
25
#
 
26
# This file is free software, distributed under the terms of the GNU
 
27
# General Public License.  As a special exception to the GNU General
 
28
# Public License, this file may be distributed as part of a program
 
29
# that contains a configuration script generated by Autoconf, under
 
30
# the same distribution terms as the rest of that program.
 
31
#
 
32
# This file can be copied and used freely without restrictions.  It can
 
33
# be used in projects which are not available under the GNU Public License
 
34
# but which still want to provide support for the GNU gettext functionality.
 
35
#
 
36
# Macro to add for using GNU gettext.
 
37
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
38
#
 
39
# Modified to never use included libintl. 
 
40
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
41
#
 
42
# Major rework to remove unused code
 
43
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
44
#
 
45
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
46
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
47
#
 
48
# Modified to require ngettext
 
49
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
50
#
 
51
# We need this here as well, since someone might use autoconf-2.5x
 
52
# to configure GLib then an older version to configure a package
 
53
# using AM_GLIB_GNU_GETTEXT
 
54
AC_PREREQ(2.53)
 
55
 
 
56
dnl
 
57
dnl We go to great lengths to make sure that aclocal won't 
 
58
dnl try to pull in the installed version of these macros
 
59
dnl when running aclocal in the glib directory.
 
60
dnl
 
61
m4_copy([AC_DEFUN],[glib_DEFUN])
 
62
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
63
dnl
 
64
dnl At the end, if we're not within glib, we'll define the public
 
65
dnl definitions in terms of our private definitions.
 
66
dnl
 
67
 
 
68
# GLIB_LC_MESSAGES
 
69
#--------------------
 
70
glib_DEFUN([GLIB_LC_MESSAGES],
 
71
  [AC_CHECK_HEADERS([locale.h])
 
72
    if test $ac_cv_header_locale_h = yes; then
 
73
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
74
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
75
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
76
    if test $am_cv_val_LC_MESSAGES = yes; then
 
77
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
78
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
79
    fi
 
80
  fi])
 
81
 
 
82
# GLIB_PATH_PROG_WITH_TEST
 
83
#----------------------------
 
84
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
85
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
86
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
87
[# Extract the first word of "$2", so it can be a program name with args.
 
88
set dummy $2; ac_word=[$]2
 
89
AC_MSG_CHECKING([for $ac_word])
 
90
AC_CACHE_VAL(ac_cv_path_$1,
 
91
[case "[$]$1" in
 
92
  /*)
 
93
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
94
  ;;
 
95
  *)
 
96
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
97
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
98
    test -z "$ac_dir" && ac_dir=.
 
99
    if test -f $ac_dir/$ac_word; then
 
100
      if [$3]; then
 
101
        ac_cv_path_$1="$ac_dir/$ac_word"
 
102
        break
 
103
      fi
 
104
    fi
 
105
  done
 
106
  IFS="$ac_save_ifs"
 
107
dnl If no 4th arg is given, leave the cache variable unset,
 
108
dnl so AC_PATH_PROGS will keep looking.
 
109
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
110
])dnl
 
111
  ;;
 
112
esac])dnl
 
113
$1="$ac_cv_path_$1"
 
114
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
115
  AC_MSG_RESULT([$]$1)
 
116
else
 
117
  AC_MSG_RESULT(no)
 
118
fi
 
119
AC_SUBST($1)dnl
 
120
])
 
121
 
 
122
# GLIB_WITH_NLS
 
123
#-----------------
 
124
glib_DEFUN([GLIB_WITH_NLS],
 
125
  dnl NLS is obligatory
 
126
  [USE_NLS=yes
 
127
    AC_SUBST(USE_NLS)
 
128
 
 
129
    gt_cv_have_gettext=no
 
130
 
 
131
    CATOBJEXT=NONE
 
132
    XGETTEXT=:
 
133
    INTLLIBS=
 
134
 
 
135
    AC_CHECK_HEADER(libintl.h,
 
136
     [gt_cv_func_dgettext_libintl="no"
 
137
      libintl_extra_libs=""
 
138
 
 
139
      #
 
140
      # First check in libc
 
141
      #
 
142
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
143
        [AC_TRY_LINK([
 
144
#include <libintl.h>
 
145
],
 
146
         [return !ngettext ("","", 1)],
 
147
          gt_cv_func_ngettext_libc=yes,
 
148
          gt_cv_func_ngettext_libc=no)
 
149
        ])
 
150
  
 
151
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
152
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
153
                [AC_TRY_LINK([
 
154
#include <libintl.h>
 
155
],
 
156
                  [return !dgettext ("","")],
 
157
                  gt_cv_func_dgettext_libc=yes,
 
158
                  gt_cv_func_dgettext_libc=no)
 
159
                ])
 
160
      fi
 
161
  
 
162
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
163
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
164
      fi
 
165
 
 
166
      #
 
167
      # If we don't have everything we want, check in libintl
 
168
      #
 
169
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
170
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
171
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
172
        
 
173
        AC_CHECK_LIB(intl, bindtextdomain,
 
174
            [AC_CHECK_LIB(intl, ngettext,
 
175
                    [AC_CHECK_LIB(intl, dgettext,
 
176
                                  gt_cv_func_dgettext_libintl=yes)])])
 
177
 
 
178
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
179
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
180
          AC_MSG_RESULT([])
 
181
          AC_CHECK_LIB(intl, ngettext,
 
182
                [AC_CHECK_LIB(intl, dcgettext,
 
183
                       [gt_cv_func_dgettext_libintl=yes
 
184
                        libintl_extra_libs=-liconv],
 
185
                        :,-liconv)],
 
186
                :,-liconv)
 
187
        fi
 
188
 
 
189
        #
 
190
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
191
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
192
        # and both have dgettext and ngettext
 
193
        #
 
194
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
195
          glib_save_LIBS="$LIBS"
 
196
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
197
          unset ac_cv_func_bind_textdomain_codeset
 
198
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
199
          LIBS="$glib_save_LIBS"
 
200
 
 
201
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
202
            gt_cv_func_dgettext_libc=no
 
203
          else
 
204
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
205
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
206
              gt_cv_func_dgettext_libintl=no
 
207
            fi
 
208
          fi
 
209
        fi
 
210
      fi
 
211
 
 
212
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
213
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
214
        gt_cv_have_gettext=yes
 
215
      fi
 
216
  
 
217
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
218
        INTLLIBS="-lintl $libintl_extra_libs"
 
219
      fi
 
220
  
 
221
      if test "$gt_cv_have_gettext" = "yes"; then
 
222
        AC_DEFINE(HAVE_GETTEXT,1,
 
223
          [Define if the GNU gettext() function is already present or preinstalled.])
 
224
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
225
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
226
        if test "$MSGFMT" != "no"; then
 
227
          glib_save_LIBS="$LIBS"
 
228
          LIBS="$LIBS $INTLLIBS"
 
229
          AC_CHECK_FUNCS(dcgettext)
 
230
          MSGFMT_OPTS=
 
231
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
232
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
233
msgid ""
 
234
msgstr ""
 
235
"Content-Type: text/plain; charset=UTF-8\n"
 
236
"Project-Id-Version: test 1.0\n"
 
237
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
238
"Last-Translator: test <foo@bar.xx>\n"
 
239
"Language-Team: C <LL@li.org>\n"
 
240
"MIME-Version: 1.0\n"
 
241
"Content-Transfer-Encoding: 8bit\n"
 
242
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
243
          AC_SUBST(MSGFMT_OPTS)
 
244
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
245
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
246
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
247
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
248
                         return _nl_msg_cat_cntr],
 
249
            [CATOBJEXT=.gmo 
 
250
             DATADIRNAME=share],
 
251
            [case $host in
 
252
            *-*-solaris*)
 
253
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
254
            dnl GNU format message catalog is always supported,
 
255
            dnl since both are added to the libc all together.
 
256
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
257
            dnl and CATOBJEXT=.gmo in this case.
 
258
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
259
              [CATOBJEXT=.gmo 
 
260
               DATADIRNAME=share],
 
261
              [CATOBJEXT=.mo
 
262
               DATADIRNAME=lib])
 
263
            ;;
 
264
            *-*-openbsd*)
 
265
            CATOBJEXT=.mo
 
266
            DATADIRNAME=share
 
267
            ;;
 
268
            *)
 
269
            CATOBJEXT=.mo
 
270
            DATADIRNAME=lib
 
271
            ;;
 
272
            esac])
 
273
          LIBS="$glib_save_LIBS"
 
274
          INSTOBJEXT=.mo
 
275
        else
 
276
          gt_cv_have_gettext=no
 
277
        fi
 
278
      fi
 
279
    ])
 
280
 
 
281
    if test "$gt_cv_have_gettext" = "yes" ; then
 
282
      AC_DEFINE(ENABLE_NLS, 1,
 
283
        [always defined to indicate that i18n is enabled])
 
284
    fi
 
285
 
 
286
    dnl Test whether we really found GNU xgettext.
 
287
    if test "$XGETTEXT" != ":"; then
 
288
      dnl If it is not GNU xgettext we define it as : so that the
 
289
      dnl Makefiles still can work.
 
290
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
291
        : ;
 
292
      else
 
293
        AC_MSG_RESULT(
 
294
          [found xgettext program is not GNU xgettext; ignore it])
 
295
        XGETTEXT=":"
 
296
      fi
 
297
    fi
 
298
 
 
299
    # We need to process the po/ directory.
 
300
    POSUB=po
 
301
 
 
302
    AC_OUTPUT_COMMANDS(
 
303
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
304
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
305
      esac])
 
306
 
 
307
    dnl These rules are solely for the distribution goal.  While doing this
 
308
    dnl we only have to keep exactly one list of the available catalogs
 
309
    dnl in configure.ac.
 
310
    for lang in $ALL_LINGUAS; do
 
311
      GMOFILES="$GMOFILES $lang.gmo"
 
312
      POFILES="$POFILES $lang.po"
 
313
    done
 
314
 
 
315
    dnl Make all variables we use known to autoconf.
 
316
    AC_SUBST(CATALOGS)
 
317
    AC_SUBST(CATOBJEXT)
 
318
    AC_SUBST(DATADIRNAME)
 
319
    AC_SUBST(GMOFILES)
 
320
    AC_SUBST(INSTOBJEXT)
 
321
    AC_SUBST(INTLLIBS)
 
322
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
323
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
324
    AC_SUBST(POFILES)
 
325
    AC_SUBST(POSUB)
 
326
  ])
 
327
 
 
328
# AM_GLIB_GNU_GETTEXT
 
329
# -------------------
 
330
# Do checks necessary for use of gettext. If a suitable implementation 
 
331
# of gettext is found in either in libintl or in the C library,
 
332
# it will set INTLLIBS to the libraries needed for use of gettext
 
333
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
334
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
335
# on various variables needed by the Makefile.in.in installed by 
 
336
# glib-gettextize.
 
337
dnl
 
338
glib_DEFUN([GLIB_GNU_GETTEXT],
 
339
  [AC_REQUIRE([AC_PROG_CC])dnl
 
340
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
341
   
 
342
   GLIB_LC_MESSAGES
 
343
   GLIB_WITH_NLS
 
344
 
 
345
   if test "$gt_cv_have_gettext" = "yes"; then
 
346
     if test "x$ALL_LINGUAS" = "x"; then
 
347
       LINGUAS=
 
348
     else
 
349
       AC_MSG_CHECKING(for catalogs to be installed)
 
350
       NEW_LINGUAS=
 
351
       for presentlang in $ALL_LINGUAS; do
 
352
         useit=no
 
353
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
354
           desiredlanguages="$LINGUAS"
 
355
         else
 
356
           desiredlanguages="$ALL_LINGUAS"
 
357
         fi
 
358
         for desiredlang in $desiredlanguages; do
 
359
           # Use the presentlang catalog if desiredlang is
 
360
           #   a. equal to presentlang, or
 
361
           #   b. a variant of presentlang (because in this case,
 
362
           #      presentlang can be used as a fallback for messages
 
363
           #      which are not translated in the desiredlang catalog).
 
364
           case "$desiredlang" in
 
365
             "$presentlang"*) useit=yes;;
 
366
           esac
 
367
         done
 
368
         if test $useit = yes; then
 
369
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
370
         fi
 
371
       done
 
372
       LINGUAS=$NEW_LINGUAS
 
373
       AC_MSG_RESULT($LINGUAS)
 
374
     fi
 
375
 
 
376
     dnl Construct list of names of catalog files to be constructed.
 
377
     if test -n "$LINGUAS"; then
 
378
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
379
     fi
 
380
   fi
 
381
 
 
382
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
383
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
384
   dnl Try to locate is.
 
385
   MKINSTALLDIRS=
 
386
   if test -n "$ac_aux_dir"; then
 
387
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
388
   fi
 
389
   if test -z "$MKINSTALLDIRS"; then
 
390
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
391
   fi
 
392
   AC_SUBST(MKINSTALLDIRS)
 
393
 
 
394
   dnl Generate list of files to be processed by xgettext which will
 
395
   dnl be included in po/Makefile.
 
396
   test -d po || mkdir po
 
397
   if test "x$srcdir" != "x."; then
 
398
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
399
       posrcprefix="$srcdir/"
 
400
     else
 
401
       posrcprefix="../$srcdir/"
 
402
     fi
 
403
   else
 
404
     posrcprefix="../"
 
405
   fi
 
406
   rm -f po/POTFILES
 
407
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
408
        < $srcdir/po/POTFILES.in > po/POTFILES
 
409
  ])
 
410
 
 
411
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
 
412
# -------------------------------
 
413
# Define VARIABLE to the location where catalog files will
 
414
# be installed by po/Makefile.
 
415
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
416
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
417
glib_save_prefix="$prefix"
 
418
glib_save_exec_prefix="$exec_prefix"
 
419
glib_save_datarootdir="$datarootdir"
 
420
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
421
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
422
datarootdir=`eval echo "${datarootdir}"`
 
423
if test "x$CATOBJEXT" = "x.mo" ; then
 
424
  localedir=`eval echo "${libdir}/locale"`
 
425
else
 
426
  localedir=`eval echo "${datadir}/locale"`
 
427
fi
 
428
prefix="$glib_save_prefix"
 
429
exec_prefix="$glib_save_exec_prefix"
 
430
datarootdir="$glib_save_datarootdir"
 
431
AC_DEFINE_UNQUOTED($1, "$localedir",
 
432
  [Define the location where the catalogs will be installed])
 
433
])
 
434
 
 
435
dnl
 
436
dnl Now the definitions that aclocal will find
 
437
dnl
 
438
ifdef(glib_configure_ac,[],[
 
439
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
440
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
441
])dnl
 
442
 
 
443
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
444
 
445
# Create a temporary file with TEST-FILE as its contents and pass the
 
446
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
447
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
448
AC_DEFUN([GLIB_RUN_PROG],
 
449
[cat >conftest.foo <<_ACEOF
 
450
$2
 
451
_ACEOF
 
452
if AC_RUN_LOG([$1 conftest.foo]); then
 
453
  m4_ifval([$3], [$3], [:])
 
454
m4_ifvaln([$4], [else $4])dnl
 
455
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
456
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
457
fi])
 
458
 
 
459
 
 
460
dnl GLIB_GSETTINGS
 
461
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
462
dnl the schema should be compiled
 
463
dnl
 
464
 
 
465
AC_DEFUN([GLIB_GSETTINGS],
 
466
[
 
467
  m4_pattern_allow([AM_V_GEN])
 
468
  AC_ARG_ENABLE(schemas-compile,
 
469
                AS_HELP_STRING([--disable-schemas-compile],
 
470
                               [Disable regeneration of gschemas.compiled on install]),
 
471
                [case ${enableval} in
 
472
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
473
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
474
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
475
                 esac])
 
476
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
477
  PKG_PROG_PKG_CONFIG([0.16])
 
478
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
479
  if test x$cross_compiling != xyes; then
 
480
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
481
  else
 
482
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
483
  fi
 
484
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
485
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
486
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
487
  else
 
488
    ifelse([$1],,[:],[$1])
 
489
  fi
 
490
 
 
491
  GSETTINGS_RULES='
 
492
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
493
 
 
494
mostlyclean-am: clean-gsettings-schemas
 
495
 
 
496
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
497
 
 
498
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
499
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
 
500
 
 
501
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
502
uninstall-am: uninstall-gsettings-schemas
 
503
install-data-am: install-gsettings-schemas
 
504
 
 
505
.SECONDARY: $(gsettings_SCHEMAS)
 
506
 
 
507
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
508
        @$(NORMAL_INSTALL)
 
509
        if test -n "$^"; then \
 
510
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
511
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
512
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
513
        fi
 
514
 
 
515
uninstall-gsettings-schemas:
 
516
        @$(NORMAL_UNINSTALL)
 
517
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
518
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
519
        test -n "$$files" || exit 0; \
 
520
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
521
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
522
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
523
 
 
524
clean-gsettings-schemas:
 
525
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
526
 
 
527
ifdef gsettings_ENUM_NAMESPACE
 
528
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
529
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
 
530
endif
 
531
'
 
532
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
533
])
 
534
 
 
535
dnl _GSETTINGS_SUBST(VARIABLE)
 
536
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
537
AC_DEFUN([_GSETTINGS_SUBST],
 
538
[
 
539
AC_SUBST([$1])
 
540
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
541
]
 
542
)
 
543
 
 
544
# nls.m4 serial 5 (gettext-0.18)
 
545
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
546
dnl Inc.
 
547
dnl This file is free software; the Free Software Foundation
 
548
dnl gives unlimited permission to copy and/or distribute it,
 
549
dnl with or without modifications, as long as this notice is preserved.
 
550
dnl
 
551
dnl This file can can be used in projects which are not available under
 
552
dnl the GNU General Public License or the GNU Library General Public
 
553
dnl License but which still want to provide support for the GNU gettext
 
554
dnl functionality.
 
555
dnl Please note that the actual code of the GNU gettext library is covered
 
556
dnl by the GNU Library General Public License, and the rest of the GNU
 
557
dnl gettext package package is covered by the GNU General Public License.
 
558
dnl They are *not* in the public domain.
 
559
 
 
560
dnl Authors:
 
561
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
562
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
563
 
 
564
AC_PREREQ([2.50])
 
565
 
 
566
AC_DEFUN([AM_NLS],
 
567
[
 
568
  AC_MSG_CHECKING([whether NLS is requested])
 
569
  dnl Default is enabled NLS
 
570
  AC_ARG_ENABLE([nls],
 
571
    [  --disable-nls           do not use Native Language Support],
 
572
    USE_NLS=$enableval, USE_NLS=yes)
 
573
  AC_MSG_RESULT([$USE_NLS])
 
574
  AC_SUBST([USE_NLS])
 
575
])
 
576
 
 
577
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
578
# serial 1 (pkg-config-0.24)
 
579
 
580
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
 
581
#
 
582
# This program is free software; you can redistribute it and/or modify
 
583
# it under the terms of the GNU General Public License as published by
 
584
# the Free Software Foundation; either version 2 of the License, or
 
585
# (at your option) any later version.
 
586
#
 
587
# This program is distributed in the hope that it will be useful, but
 
588
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
589
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
590
# General Public License for more details.
 
591
#
 
592
# You should have received a copy of the GNU General Public License
 
593
# along with this program; if not, write to the Free Software
 
594
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
595
#
 
596
# As a special exception to the GNU General Public License, if you
 
597
# distribute this file as part of a program that contains a
 
598
# configuration script generated by Autoconf, you may include it under
 
599
# the same distribution terms that you use for the rest of that program.
 
600
 
 
601
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
602
# ----------------------------------
 
603
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
604
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
605
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
606
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
607
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
608
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
609
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
610
 
 
611
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
612
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
613
fi
 
614
if test -n "$PKG_CONFIG"; then
 
615
        _pkg_min_version=m4_default([$1], [0.9.0])
 
616
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
617
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
618
                AC_MSG_RESULT([yes])
 
619
        else
 
620
                AC_MSG_RESULT([no])
 
621
                PKG_CONFIG=""
 
622
        fi
 
623
fi[]dnl
 
624
])# PKG_PROG_PKG_CONFIG
 
625
 
 
626
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
627
#
 
628
# Check to see whether a particular set of modules exists.  Similar
 
629
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
630
#
 
631
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
632
# only at the first occurence in configure.ac, so if the first place
 
633
# it's called might be skipped (such as if it is within an "if", you
 
634
# have to call PKG_CHECK_EXISTS manually
 
635
# --------------------------------------------------------------
 
636
AC_DEFUN([PKG_CHECK_EXISTS],
 
637
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
638
if test -n "$PKG_CONFIG" && \
 
639
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
640
  m4_default([$2], [:])
 
641
m4_ifvaln([$3], [else
 
642
  $3])dnl
 
643
fi])
 
644
 
 
645
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
646
# ---------------------------------------------
 
647
m4_define([_PKG_CONFIG],
 
648
[if test -n "$$1"; then
 
649
    pkg_cv_[]$1="$$1"
 
650
 elif test -n "$PKG_CONFIG"; then
 
651
    PKG_CHECK_EXISTS([$3],
 
652
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
653
                      test "x$?" != "x0" && pkg_failed=yes ],
 
654
                     [pkg_failed=yes])
 
655
 else
 
656
    pkg_failed=untried
 
657
fi[]dnl
 
658
])# _PKG_CONFIG
 
659
 
 
660
# _PKG_SHORT_ERRORS_SUPPORTED
 
661
# -----------------------------
 
662
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
663
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
664
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
665
        _pkg_short_errors_supported=yes
 
666
else
 
667
        _pkg_short_errors_supported=no
 
668
fi[]dnl
 
669
])# _PKG_SHORT_ERRORS_SUPPORTED
 
670
 
 
671
 
 
672
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
673
# [ACTION-IF-NOT-FOUND])
 
674
#
 
675
#
 
676
# Note that if there is a possibility the first call to
 
677
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
678
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
679
#
 
680
#
 
681
# --------------------------------------------------------------
 
682
AC_DEFUN([PKG_CHECK_MODULES],
 
683
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
684
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
685
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
686
 
 
687
pkg_failed=no
 
688
AC_MSG_CHECKING([for $1])
 
689
 
 
690
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
691
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
692
 
 
693
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
694
and $1[]_LIBS to avoid the need to call pkg-config.
 
695
See the pkg-config man page for more details.])
 
696
 
 
697
if test $pkg_failed = yes; then
 
698
        AC_MSG_RESULT([no])
 
699
        _PKG_SHORT_ERRORS_SUPPORTED
 
700
        if test $_pkg_short_errors_supported = yes; then
 
701
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
702
        else 
 
703
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
704
        fi
 
705
        # Put the nasty error message in config.log where it belongs
 
706
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
707
 
 
708
        m4_default([$4], [AC_MSG_ERROR(
 
709
[Package requirements ($2) were not met:
 
710
 
 
711
$$1_PKG_ERRORS
 
712
 
 
713
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
714
installed software in a non-standard prefix.
 
715
 
 
716
_PKG_TEXT])[]dnl
 
717
        ])
 
718
elif test $pkg_failed = untried; then
 
719
        AC_MSG_RESULT([no])
 
720
        m4_default([$4], [AC_MSG_FAILURE(
 
721
[The pkg-config script could not be found or is too old.  Make sure it
 
722
is in your PATH or set the PKG_CONFIG environment variable to the full
 
723
path to pkg-config.
 
724
 
 
725
_PKG_TEXT
 
726
 
 
727
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
728
        ])
 
729
else
 
730
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
731
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
732
        AC_MSG_RESULT([yes])
 
733
        $3
 
734
fi[]dnl
 
735
])# PKG_CHECK_MODULES
 
736
 
 
737
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
738
# Foundation, Inc.
 
739
#
 
740
# This file is free software; the Free Software Foundation
 
741
# gives unlimited permission to copy and/or distribute it,
 
742
# with or without modifications, as long as this notice is preserved.
 
743
 
 
744
# serial 1
 
745
 
 
746
# AM_AUTOMAKE_VERSION(VERSION)
 
747
# ----------------------------
 
748
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
749
# generated from the m4 files accompanying Automake X.Y.
 
750
# (This private macro should not be called outside this file.)
 
751
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
752
[am__api_version='1.11'
 
753
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
754
dnl require some minimum version.  Point them to the right macro.
 
755
m4_if([$1], [1.11.5], [],
 
756
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
757
])
 
758
 
 
759
# _AM_AUTOCONF_VERSION(VERSION)
 
760
# -----------------------------
 
761
# aclocal traces this macro to find the Autoconf version.
 
762
# This is a private macro too.  Using m4_define simplifies
 
763
# the logic in aclocal, which can simply ignore this definition.
 
764
m4_define([_AM_AUTOCONF_VERSION], [])
 
765
 
 
766
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
767
# -------------------------------
 
768
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
769
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
770
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
771
[AM_AUTOMAKE_VERSION([1.11.5])dnl
 
772
m4_ifndef([AC_AUTOCONF_VERSION],
 
773
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
774
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
775
 
 
776
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
777
 
 
778
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
779
#
 
780
# This file is free software; the Free Software Foundation
 
781
# gives unlimited permission to copy and/or distribute it,
 
782
# with or without modifications, as long as this notice is preserved.
 
783
 
 
784
# serial 1
 
785
 
 
786
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
787
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
788
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
789
#
 
790
# Of course, Automake must honor this variable whenever it calls a
 
791
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
792
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
793
# depending on how configure is run.  This is pretty annoying, since
 
794
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
795
# source directory, any form will work fine, but in subdirectories a
 
796
# relative path needs to be adjusted first.
 
797
#
 
798
# $ac_aux_dir/missing
 
799
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
800
# $top_srcdir/$ac_aux_dir/missing
 
801
#    fails if $ac_aux_dir is absolute,
 
802
#    fails when called from a subdirectory in a VPATH build with
 
803
#          a relative $ac_aux_dir
 
804
#
 
805
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
806
# are both prefixed by $srcdir.  In an in-source build this is usually
 
807
# harmless because $srcdir is `.', but things will broke when you
 
808
# start a VPATH build or use an absolute $srcdir.
 
809
#
 
810
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
811
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
812
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
813
# and then we would define $MISSING as
 
814
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
815
# This will work as long as MISSING is not called from configure, because
 
816
# unfortunately $(top_srcdir) has no meaning in configure.
 
817
# However there are other variables, like CC, which are often used in
 
818
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
819
#
 
820
# Another solution, used here, is to always expand $ac_aux_dir to an
 
821
# absolute PATH.  The drawback is that using absolute paths prevent a
 
822
# configured tree to be moved without reconfiguration.
 
823
 
 
824
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
825
[dnl Rely on autoconf to set up CDPATH properly.
 
826
AC_PREREQ([2.50])dnl
 
827
# expand $ac_aux_dir to an absolute path
 
828
am_aux_dir=`cd $ac_aux_dir && pwd`
 
829
])
 
830
 
 
831
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
832
 
 
833
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
834
# Free Software Foundation, Inc.
 
835
#
 
836
# This file is free software; the Free Software Foundation
 
837
# gives unlimited permission to copy and/or distribute it,
 
838
# with or without modifications, as long as this notice is preserved.
 
839
 
 
840
# serial 9
 
841
 
 
842
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
843
# -------------------------------------
 
844
# Define a conditional.
 
845
AC_DEFUN([AM_CONDITIONAL],
 
846
[AC_PREREQ(2.52)dnl
 
847
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
848
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
849
AC_SUBST([$1_TRUE])dnl
 
850
AC_SUBST([$1_FALSE])dnl
 
851
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
852
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
853
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
854
if $2; then
 
855
  $1_TRUE=
 
856
  $1_FALSE='#'
 
857
else
 
858
  $1_TRUE='#'
 
859
  $1_FALSE=
 
860
fi
 
861
AC_CONFIG_COMMANDS_PRE(
 
862
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
863
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
864
Usually this means the macro was only invoked conditionally.]])
 
865
fi])])
 
866
 
 
867
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
868
# 2010, 2011 Free Software Foundation, Inc.
 
869
#
 
870
# This file is free software; the Free Software Foundation
 
871
# gives unlimited permission to copy and/or distribute it,
 
872
# with or without modifications, as long as this notice is preserved.
 
873
 
 
874
# serial 12
 
875
 
 
876
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
877
# written in clear, in which case automake, when reading aclocal.m4,
 
878
# will think it sees a *use*, and therefore will trigger all it's
 
879
# C support machinery.  Also note that it means that autoscan, seeing
 
880
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
881
 
 
882
 
 
883
# _AM_DEPENDENCIES(NAME)
 
884
# ----------------------
 
885
# See how the compiler implements dependency checking.
 
886
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
887
# We try a few techniques and use that to set a single cache variable.
 
888
#
 
889
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
890
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
891
# dependency, and given that the user is not expected to run this macro,
 
892
# just rely on AC_PROG_CC.
 
893
AC_DEFUN([_AM_DEPENDENCIES],
 
894
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
895
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
896
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
897
AC_REQUIRE([AM_DEP_TRACK])dnl
 
898
 
 
899
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
900
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
901
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
902
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
903
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
904
                   [depcc="$$1"   am_compiler_list=])
 
905
 
 
906
AC_CACHE_CHECK([dependency style of $depcc],
 
907
               [am_cv_$1_dependencies_compiler_type],
 
908
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
909
  # We make a subdir and do the tests there.  Otherwise we can end up
 
910
  # making bogus files that we don't know about and never remove.  For
 
911
  # instance it was reported that on HP-UX the gcc test will end up
 
912
  # making a dummy file named `D' -- because `-MD' means `put the output
 
913
  # in D'.
 
914
  rm -rf conftest.dir
 
915
  mkdir conftest.dir
 
916
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
917
  # using a relative directory.
 
918
  cp "$am_depcomp" conftest.dir
 
919
  cd conftest.dir
 
920
  # We will build objects and dependencies in a subdirectory because
 
921
  # it helps to detect inapplicable dependency modes.  For instance
 
922
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
923
  # side effect of compilation, but ICC will put the dependencies in
 
924
  # the current directory while Tru64 will put them in the object
 
925
  # directory.
 
926
  mkdir sub
 
927
 
 
928
  am_cv_$1_dependencies_compiler_type=none
 
929
  if test "$am_compiler_list" = ""; then
 
930
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
931
  fi
 
932
  am__universal=false
 
933
  m4_case([$1], [CC],
 
934
    [case " $depcc " in #(
 
935
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
936
     esac],
 
937
    [CXX],
 
938
    [case " $depcc " in #(
 
939
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
940
     esac])
 
941
 
 
942
  for depmode in $am_compiler_list; do
 
943
    # Setup a source with many dependencies, because some compilers
 
944
    # like to wrap large dependency lists on column 80 (with \), and
 
945
    # we should not choose a depcomp mode which is confused by this.
 
946
    #
 
947
    # We need to recreate these files for each test, as the compiler may
 
948
    # overwrite some of them when testing with obscure command lines.
 
949
    # This happens at least with the AIX C compiler.
 
950
    : > sub/conftest.c
 
951
    for i in 1 2 3 4 5 6; do
 
952
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
953
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
954
      # Solaris 8's {/usr,}/bin/sh.
 
955
      touch sub/conftst$i.h
 
956
    done
 
957
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
958
 
 
959
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
960
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
961
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
962
    # versions had trouble with output in subdirs
 
963
    am__obj=sub/conftest.${OBJEXT-o}
 
964
    am__minus_obj="-o $am__obj"
 
965
    case $depmode in
 
966
    gcc)
 
967
      # This depmode causes a compiler race in universal mode.
 
968
      test "$am__universal" = false || continue
 
969
      ;;
 
970
    nosideeffect)
 
971
      # after this tag, mechanisms are not by side-effect, so they'll
 
972
      # only be used when explicitly requested
 
973
      if test "x$enable_dependency_tracking" = xyes; then
 
974
        continue
 
975
      else
 
976
        break
 
977
      fi
 
978
      ;;
 
979
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
980
      # This compiler won't grok `-c -o', but also, the minuso test has
 
981
      # not run yet.  These depmodes are late enough in the game, and
 
982
      # so weak that their functioning should not be impacted.
 
983
      am__obj=conftest.${OBJEXT-o}
 
984
      am__minus_obj=
 
985
      ;;
 
986
    none) break ;;
 
987
    esac
 
988
    if depmode=$depmode \
 
989
       source=sub/conftest.c object=$am__obj \
 
990
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
991
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
992
         >/dev/null 2>conftest.err &&
 
993
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
994
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
995
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
996
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
997
      # icc doesn't choke on unknown options, it will just issue warnings
 
998
      # or remarks (even with -Werror).  So we grep stderr for any message
 
999
      # that says an option was ignored or not supported.
 
1000
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
1001
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
1002
      # The diagnosis changed in icc 8.0:
 
1003
      #   icc: Command line remark: option '-MP' not supported
 
1004
      if (grep 'ignoring option' conftest.err ||
 
1005
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
1006
        am_cv_$1_dependencies_compiler_type=$depmode
 
1007
        break
 
1008
      fi
 
1009
    fi
 
1010
  done
 
1011
 
 
1012
  cd ..
 
1013
  rm -rf conftest.dir
 
1014
else
 
1015
  am_cv_$1_dependencies_compiler_type=none
 
1016
fi
 
1017
])
 
1018
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
1019
AM_CONDITIONAL([am__fastdep$1], [
 
1020
  test "x$enable_dependency_tracking" != xno \
 
1021
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
1022
])
 
1023
 
 
1024
 
 
1025
# AM_SET_DEPDIR
 
1026
# -------------
 
1027
# Choose a directory name for dependency files.
 
1028
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
1029
AC_DEFUN([AM_SET_DEPDIR],
 
1030
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
1031
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
1032
])
 
1033
 
 
1034
 
 
1035
# AM_DEP_TRACK
 
1036
# ------------
 
1037
AC_DEFUN([AM_DEP_TRACK],
 
1038
[AC_ARG_ENABLE(dependency-tracking,
 
1039
[  --disable-dependency-tracking  speeds up one-time build
 
1040
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
1041
if test "x$enable_dependency_tracking" != xno; then
 
1042
  am_depcomp="$ac_aux_dir/depcomp"
 
1043
  AMDEPBACKSLASH='\'
 
1044
  am__nodep='_no'
 
1045
fi
 
1046
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
1047
AC_SUBST([AMDEPBACKSLASH])dnl
 
1048
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
1049
AC_SUBST([am__nodep])dnl
 
1050
_AM_SUBST_NOTMAKE([am__nodep])dnl
 
1051
])
 
1052
 
 
1053
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
1054
 
 
1055
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
1056
# Free Software Foundation, Inc.
 
1057
#
 
1058
# This file is free software; the Free Software Foundation
 
1059
# gives unlimited permission to copy and/or distribute it,
 
1060
# with or without modifications, as long as this notice is preserved.
 
1061
 
 
1062
#serial 5
 
1063
 
 
1064
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
1065
# ------------------------------
 
1066
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1067
[{
 
1068
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
1069
  # are listed without --file.  Let's play safe and only enable the eval
 
1070
  # if we detect the quoting.
 
1071
  case $CONFIG_FILES in
 
1072
  *\'*) eval set x "$CONFIG_FILES" ;;
 
1073
  *)   set x $CONFIG_FILES ;;
 
1074
  esac
 
1075
  shift
 
1076
  for mf
 
1077
  do
 
1078
    # Strip MF so we end up with the name of the file.
 
1079
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
1080
    # Check whether this is an Automake generated Makefile or not.
 
1081
    # We used to match only the files named `Makefile.in', but
 
1082
    # some people rename them; so instead we look at the file content.
 
1083
    # Grep'ing the first line is not enough: some people post-process
 
1084
    # each Makefile.in and add a new line on top of each file to say so.
 
1085
    # Grep'ing the whole file is not good either: AIX grep has a line
 
1086
    # limit of 2048, but all sed's we know have understand at least 4000.
 
1087
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
1088
      dirpart=`AS_DIRNAME("$mf")`
 
1089
    else
 
1090
      continue
 
1091
    fi
 
1092
    # Extract the definition of DEPDIR, am__include, and am__quote
 
1093
    # from the Makefile without running `make'.
 
1094
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
1095
    test -z "$DEPDIR" && continue
 
1096
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
1097
    test -z "am__include" && continue
 
1098
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
1099
    # When using ansi2knr, U may be empty or an underscore; expand it
 
1100
    U=`sed -n 's/^U = //p' < "$mf"`
 
1101
    # Find all dependency output files, they are included files with
 
1102
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
1103
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
1104
    # expansion.
 
1105
    for file in `sed -n "
 
1106
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
1107
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
1108
      # Make sure the directory exists.
 
1109
      test -f "$dirpart/$file" && continue
 
1110
      fdir=`AS_DIRNAME(["$file"])`
 
1111
      AS_MKDIR_P([$dirpart/$fdir])
 
1112
      # echo "creating $dirpart/$file"
 
1113
      echo '# dummy' > "$dirpart/$file"
 
1114
    done
 
1115
  done
 
1116
}
 
1117
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
1118
 
 
1119
 
 
1120
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
1121
# -----------------------------
 
1122
# This macro should only be invoked once -- use via AC_REQUIRE.
 
1123
#
 
1124
# This code is only required when automatic dependency tracking
 
1125
# is enabled.  FIXME.  This creates each `.P' file that we will
 
1126
# need in order to bootstrap the dependency handling code.
 
1127
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1128
[AC_CONFIG_COMMANDS([depfiles],
 
1129
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1130
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
1131
])
 
1132
 
 
1133
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1134
# Free Software Foundation, Inc.
 
1135
#
 
1136
# This file is free software; the Free Software Foundation
 
1137
# gives unlimited permission to copy and/or distribute it,
 
1138
# with or without modifications, as long as this notice is preserved.
 
1139
 
 
1140
# serial 8
 
1141
 
 
1142
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
1143
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
1144
 
 
1145
# Do all the work for Automake.                             -*- Autoconf -*-
 
1146
 
 
1147
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1148
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
1149
#
 
1150
# This file is free software; the Free Software Foundation
 
1151
# gives unlimited permission to copy and/or distribute it,
 
1152
# with or without modifications, as long as this notice is preserved.
 
1153
 
 
1154
# serial 16
 
1155
 
 
1156
# This macro actually does too much.  Some checks are only needed if
 
1157
# your package does certain things.  But this isn't really a big deal.
 
1158
 
 
1159
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
1160
# AM_INIT_AUTOMAKE([OPTIONS])
 
1161
# -----------------------------------------------
 
1162
# The call with PACKAGE and VERSION arguments is the old style
 
1163
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
1164
# and VERSION should now be passed to AC_INIT and removed from
 
1165
# the call to AM_INIT_AUTOMAKE.
 
1166
# We support both call styles for the transition.  After
 
1167
# the next Automake release, Autoconf can make the AC_INIT
 
1168
# arguments mandatory, and then we can depend on a new Autoconf
 
1169
# release and drop the old call support.
 
1170
AC_DEFUN([AM_INIT_AUTOMAKE],
 
1171
[AC_PREREQ([2.62])dnl
 
1172
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
1173
dnl the ones we care about.
 
1174
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
1175
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
1176
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
1177
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1178
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1179
  # is not polluted with repeated "-I."
 
1180
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1181
  # test to see if srcdir already configured
 
1182
  if test -f $srcdir/config.status; then
 
1183
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1184
  fi
 
1185
fi
 
1186
 
 
1187
# test whether we have cygpath
 
1188
if test -z "$CYGPATH_W"; then
 
1189
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1190
    CYGPATH_W='cygpath -w'
 
1191
  else
 
1192
    CYGPATH_W=echo
 
1193
  fi
 
1194
fi
 
1195
AC_SUBST([CYGPATH_W])
 
1196
 
 
1197
# Define the identity of the package.
 
1198
dnl Distinguish between old-style and new-style calls.
 
1199
m4_ifval([$2],
 
1200
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
1201
 AC_SUBST([PACKAGE], [$1])dnl
 
1202
 AC_SUBST([VERSION], [$2])],
 
1203
[_AM_SET_OPTIONS([$1])dnl
 
1204
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1205
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1206
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
1207
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
1208
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
1209
 
 
1210
_AM_IF_OPTION([no-define],,
 
1211
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
1212
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
1213
 
 
1214
# Some tools Automake needs.
 
1215
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
1216
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
1217
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
1218
AM_MISSING_PROG(AUTOCONF, autoconf)
 
1219
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
1220
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
1221
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
1222
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1223
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
1224
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
1225
# We need awk for the "check" target.  The system "awk" is bad on
 
1226
# some platforms.
 
1227
AC_REQUIRE([AC_PROG_AWK])dnl
 
1228
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
1229
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
1230
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
1231
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1232
                             [_AM_PROG_TAR([v7])])])
 
1233
_AM_IF_OPTION([no-dependencies],,
 
1234
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
1235
                  [_AM_DEPENDENCIES(CC)],
 
1236
                  [define([AC_PROG_CC],
 
1237
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1238
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1239
                  [_AM_DEPENDENCIES(CXX)],
 
1240
                  [define([AC_PROG_CXX],
 
1241
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1242
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1243
                  [_AM_DEPENDENCIES(OBJC)],
 
1244
                  [define([AC_PROG_OBJC],
 
1245
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1246
])
 
1247
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1248
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1249
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1250
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1251
AC_CONFIG_COMMANDS_PRE(dnl
 
1252
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1253
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1254
])
 
1255
 
 
1256
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1257
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1258
dnl mangled by Autoconf and run in a shell conditional statement.
 
1259
m4_define([_AC_COMPILER_EXEEXT],
 
1260
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
1261
 
 
1262
 
 
1263
# When config.status generates a header, we must update the stamp-h file.
 
1264
# This file resides in the same directory as the config header
 
1265
# that is generated.  The stamp files are numbered to have different names.
 
1266
 
 
1267
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
1268
# loop where config.status creates the headers, so we can generate
 
1269
# our stamp files there.
 
1270
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
1271
[# Compute $1's index in $config_headers.
 
1272
_am_arg=$1
 
1273
_am_stamp_count=1
 
1274
for _am_header in $config_headers :; do
 
1275
  case $_am_header in
 
1276
    $_am_arg | $_am_arg:* )
 
1277
      break ;;
 
1278
    * )
 
1279
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
1280
  esac
 
1281
done
 
1282
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
1283
 
 
1284
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
1285
# Inc.
 
1286
#
 
1287
# This file is free software; the Free Software Foundation
 
1288
# gives unlimited permission to copy and/or distribute it,
 
1289
# with or without modifications, as long as this notice is preserved.
 
1290
 
 
1291
# serial 1
 
1292
 
 
1293
# AM_PROG_INSTALL_SH
 
1294
# ------------------
 
1295
# Define $install_sh.
 
1296
AC_DEFUN([AM_PROG_INSTALL_SH],
 
1297
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1298
if test x"${install_sh}" != xset; then
 
1299
  case $am_aux_dir in
 
1300
  *\ * | *\     *)
 
1301
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1302
  *)
 
1303
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1304
  esac
 
1305
fi
 
1306
AC_SUBST(install_sh)])
 
1307
 
 
1308
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
1309
#
 
1310
# This file is free software; the Free Software Foundation
 
1311
# gives unlimited permission to copy and/or distribute it,
 
1312
# with or without modifications, as long as this notice is preserved.
 
1313
 
 
1314
# serial 2
 
1315
 
 
1316
# Check whether the underlying file-system supports filenames
 
1317
# with a leading dot.  For instance MS-DOS doesn't.
 
1318
AC_DEFUN([AM_SET_LEADING_DOT],
 
1319
[rm -rf .tst 2>/dev/null
 
1320
mkdir .tst 2>/dev/null
 
1321
if test -d .tst; then
 
1322
  am__leading_dot=.
 
1323
else
 
1324
  am__leading_dot=_
 
1325
fi
 
1326
rmdir .tst 2>/dev/null
 
1327
AC_SUBST([am__leading_dot])])
 
1328
 
 
1329
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
1330
# From Jim Meyering
 
1331
 
 
1332
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
1333
# 2011 Free Software Foundation, Inc.
 
1334
#
 
1335
# This file is free software; the Free Software Foundation
 
1336
# gives unlimited permission to copy and/or distribute it,
 
1337
# with or without modifications, as long as this notice is preserved.
 
1338
 
 
1339
# serial 5
 
1340
 
 
1341
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
1342
# ----------------------------------
 
1343
# Control maintainer-specific portions of Makefiles.
 
1344
# Default is to disable them, unless `enable' is passed literally.
 
1345
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
1346
# can override the default with the --enable/--disable switch.
 
1347
AC_DEFUN([AM_MAINTAINER_MODE],
 
1348
[m4_case(m4_default([$1], [disable]),
 
1349
       [enable], [m4_define([am_maintainer_other], [disable])],
 
1350
       [disable], [m4_define([am_maintainer_other], [enable])],
 
1351
       [m4_define([am_maintainer_other], [enable])
 
1352
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
1353
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
1354
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
1355
  AC_ARG_ENABLE([maintainer-mode],
 
1356
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
1357
                          (and sometimes confusing) to the casual installer],
 
1358
      [USE_MAINTAINER_MODE=$enableval],
 
1359
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
1360
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
1361
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
1362
  MAINT=$MAINTAINER_MODE_TRUE
 
1363
  AC_SUBST([MAINT])dnl
 
1364
]
 
1365
)
 
1366
 
 
1367
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
1368
 
 
1369
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
1370
 
 
1371
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
1372
#
 
1373
# This file is free software; the Free Software Foundation
 
1374
# gives unlimited permission to copy and/or distribute it,
 
1375
# with or without modifications, as long as this notice is preserved.
 
1376
 
 
1377
# serial 4
 
1378
 
 
1379
# AM_MAKE_INCLUDE()
 
1380
# -----------------
 
1381
# Check to see how make treats includes.
 
1382
AC_DEFUN([AM_MAKE_INCLUDE],
 
1383
[am_make=${MAKE-make}
 
1384
cat > confinc << 'END'
 
1385
am__doit:
 
1386
        @echo this is the am__doit target
 
1387
.PHONY: am__doit
 
1388
END
 
1389
# If we don't find an include directive, just comment out the code.
 
1390
AC_MSG_CHECKING([for style of include used by $am_make])
 
1391
am__include="#"
 
1392
am__quote=
 
1393
_am_result=none
 
1394
# First try GNU make style include.
 
1395
echo "include confinc" > confmf
 
1396
# Ignore all kinds of additional output from `make'.
 
1397
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1398
*the\ am__doit\ target*)
 
1399
  am__include=include
 
1400
  am__quote=
 
1401
  _am_result=GNU
 
1402
  ;;
 
1403
esac
 
1404
# Now try BSD make style include.
 
1405
if test "$am__include" = "#"; then
 
1406
   echo '.include "confinc"' > confmf
 
1407
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1408
   *the\ am__doit\ target*)
 
1409
     am__include=.include
 
1410
     am__quote="\""
 
1411
     _am_result=BSD
 
1412
     ;;
 
1413
   esac
 
1414
fi
 
1415
AC_SUBST([am__include])
 
1416
AC_SUBST([am__quote])
 
1417
AC_MSG_RESULT([$_am_result])
 
1418
rm -f confinc confmf
 
1419
])
 
1420
 
 
1421
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
1422
# Free Software Foundation, Inc.
 
1423
#
 
1424
# This file is free software; the Free Software Foundation
 
1425
# gives unlimited permission to copy and/or distribute it,
 
1426
# with or without modifications, as long as this notice is preserved.
 
1427
 
 
1428
# serial 6
 
1429
 
 
1430
# AM_PROG_CC_C_O
 
1431
# --------------
 
1432
# Like AC_PROG_CC_C_O, but changed for automake.
 
1433
AC_DEFUN([AM_PROG_CC_C_O],
 
1434
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
1435
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1436
AC_REQUIRE_AUX_FILE([compile])dnl
 
1437
# FIXME: we rely on the cache variable name because
 
1438
# there is no other way.
 
1439
set dummy $CC
 
1440
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
1441
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
1442
if test "$am_t" != yes; then
 
1443
   # Losing compiler, so override with the script.
 
1444
   # FIXME: It is wrong to rewrite CC.
 
1445
   # But if we don't then we get into trouble of one sort or another.
 
1446
   # A longer-term fix would be to have automake use am__CC in this case,
 
1447
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1448
   CC="$am_aux_dir/compile $CC"
 
1449
fi
 
1450
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
1451
dnl setting of CC.
 
1452
m4_define([AC_PROG_CC],
 
1453
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
1454
])
 
1455
 
 
1456
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
1457
 
 
1458
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
1459
# Free Software Foundation, Inc.
 
1460
#
 
1461
# This file is free software; the Free Software Foundation
 
1462
# gives unlimited permission to copy and/or distribute it,
 
1463
# with or without modifications, as long as this notice is preserved.
 
1464
 
 
1465
# serial 6
 
1466
 
 
1467
# AM_MISSING_PROG(NAME, PROGRAM)
 
1468
# ------------------------------
 
1469
AC_DEFUN([AM_MISSING_PROG],
 
1470
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
1471
$1=${$1-"${am_missing_run}$2"}
 
1472
AC_SUBST($1)])
 
1473
 
 
1474
 
 
1475
# AM_MISSING_HAS_RUN
 
1476
# ------------------
 
1477
# Define MISSING if not defined so far and test if it supports --run.
 
1478
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
1479
AC_DEFUN([AM_MISSING_HAS_RUN],
 
1480
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1481
AC_REQUIRE_AUX_FILE([missing])dnl
 
1482
if test x"${MISSING+set}" != xset; then
 
1483
  case $am_aux_dir in
 
1484
  *\ * | *\     *)
 
1485
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1486
  *)
 
1487
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1488
  esac
 
1489
fi
 
1490
# Use eval to expand $SHELL
 
1491
if eval "$MISSING --run true"; then
 
1492
  am_missing_run="$MISSING --run "
 
1493
else
 
1494
  am_missing_run=
 
1495
  AC_MSG_WARN([`missing' script is too old or missing])
 
1496
fi
 
1497
])
 
1498
 
 
1499
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
1500
# Inc.
 
1501
#
 
1502
# This file is free software; the Free Software Foundation
 
1503
# gives unlimited permission to copy and/or distribute it,
 
1504
# with or without modifications, as long as this notice is preserved.
 
1505
 
 
1506
# serial 1
 
1507
 
 
1508
# AM_PROG_MKDIR_P
 
1509
# ---------------
 
1510
# Check for `mkdir -p'.
 
1511
AC_DEFUN([AM_PROG_MKDIR_P],
 
1512
[AC_PREREQ([2.60])dnl
 
1513
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1514
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1515
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1516
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1517
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1518
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1519
dnl adjustment using top_builddir (which is defined more often than
 
1520
dnl MKDIR_P).
 
1521
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1522
case $mkdir_p in
 
1523
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1524
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1525
esac
 
1526
])
 
1527
 
 
1528
# Helper functions for option handling.                     -*- Autoconf -*-
 
1529
 
 
1530
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
1531
# Foundation, Inc.
 
1532
#
 
1533
# This file is free software; the Free Software Foundation
 
1534
# gives unlimited permission to copy and/or distribute it,
 
1535
# with or without modifications, as long as this notice is preserved.
 
1536
 
 
1537
# serial 5
 
1538
 
 
1539
# _AM_MANGLE_OPTION(NAME)
 
1540
# -----------------------
 
1541
AC_DEFUN([_AM_MANGLE_OPTION],
 
1542
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
1543
 
 
1544
# _AM_SET_OPTION(NAME)
 
1545
# --------------------
 
1546
# Set option NAME.  Presently that only means defining a flag for this option.
 
1547
AC_DEFUN([_AM_SET_OPTION],
 
1548
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
1549
 
 
1550
# _AM_SET_OPTIONS(OPTIONS)
 
1551
# ------------------------
 
1552
# OPTIONS is a space-separated list of Automake options.
 
1553
AC_DEFUN([_AM_SET_OPTIONS],
 
1554
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
1555
 
 
1556
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
1557
# -------------------------------------------
 
1558
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
1559
AC_DEFUN([_AM_IF_OPTION],
 
1560
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
1561
 
 
1562
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
1563
 
 
1564
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
1565
# Free Software Foundation, Inc.
 
1566
#
 
1567
# This file is free software; the Free Software Foundation
 
1568
# gives unlimited permission to copy and/or distribute it,
 
1569
# with or without modifications, as long as this notice is preserved.
 
1570
 
 
1571
# serial 5
 
1572
 
 
1573
# AM_SANITY_CHECK
 
1574
# ---------------
 
1575
AC_DEFUN([AM_SANITY_CHECK],
 
1576
[AC_MSG_CHECKING([whether build environment is sane])
 
1577
# Just in case
 
1578
sleep 1
 
1579
echo timestamp > conftest.file
 
1580
# Reject unsafe characters in $srcdir or the absolute working directory
 
1581
# name.  Accept space and tab only in the latter.
 
1582
am_lf='
 
1583
'
 
1584
case `pwd` in
 
1585
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1586
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1587
esac
 
1588
case $srcdir in
 
1589
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1590
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1591
esac
 
1592
 
 
1593
# Do `set' in a subshell so we don't clobber the current shell's
 
1594
# arguments.  Must try -L first in case configure is actually a
 
1595
# symlink; some systems play weird games with the mod time of symlinks
 
1596
# (eg FreeBSD returns the mod time of the symlink's containing
 
1597
# directory).
 
1598
if (
 
1599
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1600
   if test "$[*]" = "X"; then
 
1601
      # -L didn't work.
 
1602
      set X `ls -t "$srcdir/configure" conftest.file`
 
1603
   fi
 
1604
   rm -f conftest.file
 
1605
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1606
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1607
 
 
1608
      # If neither matched, then we have a broken ls.  This can happen
 
1609
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1610
      # broken ls alias from the environment.  This has actually
 
1611
      # happened.  Such a system could not be considered "sane".
 
1612
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1613
alias in your environment])
 
1614
   fi
 
1615
 
 
1616
   test "$[2]" = conftest.file
 
1617
   )
 
1618
then
 
1619
   # Ok.
 
1620
   :
 
1621
else
 
1622
   AC_MSG_ERROR([newly created file is older than distributed files!
 
1623
Check your system clock])
 
1624
fi
 
1625
AC_MSG_RESULT(yes)])
 
1626
 
 
1627
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1628
#
 
1629
# This file is free software; the Free Software Foundation
 
1630
# gives unlimited permission to copy and/or distribute it,
 
1631
# with or without modifications, as long as this notice is preserved.
 
1632
 
 
1633
# serial 2
 
1634
 
 
1635
# AM_SILENT_RULES([DEFAULT])
 
1636
# --------------------------
 
1637
# Enable less verbose build rules; with the default set to DEFAULT
 
1638
# (`yes' being less verbose, `no' or empty being verbose).
 
1639
AC_DEFUN([AM_SILENT_RULES],
 
1640
[AC_ARG_ENABLE([silent-rules],
 
1641
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1642
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
1643
case $enable_silent_rules in
 
1644
yes) AM_DEFAULT_VERBOSITY=0;;
 
1645
no)  AM_DEFAULT_VERBOSITY=1;;
 
1646
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1647
esac
 
1648
dnl
 
1649
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1650
dnl do not support nested variable expansions.
 
1651
dnl See automake bug#9928 and bug#10237.
 
1652
am_make=${MAKE-make}
 
1653
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
1654
   [am_cv_make_support_nested_variables],
 
1655
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
1656
BAR0=false
 
1657
BAR1=true
 
1658
V=1
 
1659
am__doit:
 
1660
        @$(TRUE)
 
1661
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
1662
  am_cv_make_support_nested_variables=yes
 
1663
else
 
1664
  am_cv_make_support_nested_variables=no
 
1665
fi])
 
1666
if test $am_cv_make_support_nested_variables = yes; then
 
1667
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1668
  AM_V='$(V)'
 
1669
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
1670
else
 
1671
  AM_V=$AM_DEFAULT_VERBOSITY
 
1672
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
1673
fi
 
1674
AC_SUBST([AM_V])dnl
 
1675
AM_SUBST_NOTMAKE([AM_V])dnl
 
1676
AC_SUBST([AM_DEFAULT_V])dnl
 
1677
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
1678
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
1679
AM_BACKSLASH='\'
 
1680
AC_SUBST([AM_BACKSLASH])dnl
 
1681
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
1682
])
 
1683
 
 
1684
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1685
#
 
1686
# This file is free software; the Free Software Foundation
 
1687
# gives unlimited permission to copy and/or distribute it,
 
1688
# with or without modifications, as long as this notice is preserved.
 
1689
 
 
1690
# serial 1
 
1691
 
 
1692
# AM_PROG_INSTALL_STRIP
 
1693
# ---------------------
 
1694
# One issue with vendor `install' (even GNU) is that you can't
 
1695
# specify the program used to strip binaries.  This is especially
 
1696
# annoying in cross-compiling environments, where the build's strip
 
1697
# is unlikely to handle the host's binaries.
 
1698
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
1699
# always use install-sh in `make install-strip', and initialize
 
1700
# STRIPPROG with the value of the STRIP variable (set by the user).
 
1701
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
1702
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1703
# Installed binaries are usually stripped using `strip' when the user
 
1704
# run `make install-strip'.  However `strip' might not be the right
 
1705
# tool to use in cross-compilation environments, therefore Automake
 
1706
# will honor the `STRIP' environment variable to overrule this program.
 
1707
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1708
if test "$cross_compiling" != no; then
 
1709
  AC_CHECK_TOOL([STRIP], [strip], :)
 
1710
fi
 
1711
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
1712
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
1713
 
 
1714
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1715
#
 
1716
# This file is free software; the Free Software Foundation
 
1717
# gives unlimited permission to copy and/or distribute it,
 
1718
# with or without modifications, as long as this notice is preserved.
 
1719
 
 
1720
# serial 3
 
1721
 
 
1722
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1723
# ---------------------------
 
1724
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1725
# This macro is traced by Automake.
 
1726
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1727
 
 
1728
# AM_SUBST_NOTMAKE(VARIABLE)
 
1729
# --------------------------
 
1730
# Public sister of _AM_SUBST_NOTMAKE.
 
1731
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1732
 
 
1733
# Check how to create a tarball.                            -*- Autoconf -*-
 
1734
 
 
1735
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1736
#
 
1737
# This file is free software; the Free Software Foundation
 
1738
# gives unlimited permission to copy and/or distribute it,
 
1739
# with or without modifications, as long as this notice is preserved.
 
1740
 
 
1741
# serial 2
 
1742
 
 
1743
# _AM_PROG_TAR(FORMAT)
 
1744
# --------------------
 
1745
# Check how to create a tarball in format FORMAT.
 
1746
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1747
#
 
1748
# Substitute a variable $(am__tar) that is a command
 
1749
# writing to stdout a FORMAT-tarball containing the directory
 
1750
# $tardir.
 
1751
#     tardir=directory && $(am__tar) > result.tar
 
1752
#
 
1753
# Substitute a variable $(am__untar) that extract such
 
1754
# a tarball read from stdin.
 
1755
#     $(am__untar) < result.tar
 
1756
AC_DEFUN([_AM_PROG_TAR],
 
1757
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1758
# in the wild :-(  We should find a proper way to deprecate it ...
 
1759
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1760
m4_if([$1], [v7],
 
1761
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1762
     [m4_case([$1], [ustar],, [pax],,
 
1763
              [m4_fatal([Unknown tar format])])
 
1764
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1765
# Loop over all known methods to create a tar archive until one works.
 
1766
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1767
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1768
# Do not fold the above two line into one, because Tru64 sh and
 
1769
# Solaris sh will not grok spaces in the rhs of `-'.
 
1770
for _am_tool in $_am_tools
 
1771
do
 
1772
  case $_am_tool in
 
1773
  gnutar)
 
1774
    for _am_tar in tar gnutar gtar;
 
1775
    do
 
1776
      AM_RUN_LOG([$_am_tar --version]) && break
 
1777
    done
 
1778
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1779
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1780
    am__untar="$_am_tar -xf -"
 
1781
    ;;
 
1782
  plaintar)
 
1783
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1784
    # ustar tarball either.
 
1785
    (tar --version) >/dev/null 2>&1 && continue
 
1786
    am__tar='tar chf - "$$tardir"'
 
1787
    am__tar_='tar chf - "$tardir"'
 
1788
    am__untar='tar xf -'
 
1789
    ;;
 
1790
  pax)
 
1791
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1792
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1793
    am__untar='pax -r'
 
1794
    ;;
 
1795
  cpio)
 
1796
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1797
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1798
    am__untar='cpio -i -H $1 -d'
 
1799
    ;;
 
1800
  none)
 
1801
    am__tar=false
 
1802
    am__tar_=false
 
1803
    am__untar=false
 
1804
    ;;
 
1805
  esac
 
1806
 
 
1807
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1808
  # and am__untar set.
 
1809
  test -n "${am_cv_prog_tar_$1}" && break
 
1810
 
 
1811
  # tar/untar a dummy directory, and stop if the command works
 
1812
  rm -rf conftest.dir
 
1813
  mkdir conftest.dir
 
1814
  echo GrepMe > conftest.dir/file
 
1815
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1816
  rm -rf conftest.dir
 
1817
  if test -s conftest.tar; then
 
1818
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1819
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1820
  fi
 
1821
done
 
1822
rm -rf conftest.dir
 
1823
 
 
1824
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1825
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1826
AC_SUBST([am__tar])
 
1827
AC_SUBST([am__untar])
 
1828
]) # _AM_PROG_TAR
 
1829
 
 
1830
# Autoconf support for the Vala compiler
 
1831
 
 
1832
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 
1833
#
 
1834
# This file is free software; the Free Software Foundation
 
1835
# gives unlimited permission to copy and/or distribute it,
 
1836
# with or without modifications, as long as this notice is preserved.
 
1837
 
 
1838
# serial 4
 
1839
 
 
1840
# Check whether the Vala compiler exists in `PATH'. If it is found, the
 
1841
# variable VALAC is set. Optionally a minimum release number of the
 
1842
# compiler can be requested.
 
1843
#
 
1844
# AM_PROG_VALAC([MINIMUM-VERSION])
 
1845
# --------------------------------
 
1846
AC_DEFUN([AM_PROG_VALAC],
 
1847
[AC_PATH_PROG([VALAC], [valac], [])
 
1848
 AS_IF([test -z "$VALAC"],
 
1849
   [AC_MSG_WARN([No Vala compiler found.  You will not be able to compile .vala source files.])],
 
1850
   [AS_IF([test -n "$1"],
 
1851
      [AC_MSG_CHECKING([$VALAC is at least version $1])
 
1852
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
 
1853
       AS_VERSION_COMPARE([$1], ["$am__vala_version"],
 
1854
         [AC_MSG_RESULT([yes])],
 
1855
         [AC_MSG_RESULT([yes])],
 
1856
         [AC_MSG_RESULT([no])
 
1857
          AC_MSG_ERROR([Vala $1 not found.])])])])
 
1858
])
 
1859
 
 
1860
m4_include([m4/intltool.m4])
 
1861
m4_include([m4/libtool.m4])
 
1862
m4_include([m4/ltoptions.m4])
 
1863
m4_include([m4/ltsugar.m4])
 
1864
m4_include([m4/ltversion.m4])
 
1865
m4_include([m4/lt~obsolete.m4])