~pishuilu1128/unity-china-music-scope/unity-china-music-scope

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2014-02-22 00:42:17 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20140222004217-87szodbc4tb5ookq
Tags: 1.0.5-0ubuntu1
* New upstream release (LP: #1282933)
  - Change the icon of audition button. (LP: #1192955)
* debian/control:
  - std-ver: 3.9.4 -> 3.9.5, no change required.
  - Depends on versioned libglib2.0-dev (>= 2.32).
* debian/source/format: 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.13.2 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
 
 
5
 
# This file is free software; the Free Software Foundation
6
 
# gives unlimited permission to copy and/or distribute it,
7
 
# with or without modifications, as long as this notice is preserved.
8
 
 
9
 
# This program is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
 
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
 
# PARTICULAR PURPOSE.
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
 
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
 
   
341
 
   GLIB_LC_MESSAGES
342
 
   GLIB_WITH_NLS
343
 
 
344
 
   if test "$gt_cv_have_gettext" = "yes"; then
345
 
     if test "x$ALL_LINGUAS" = "x"; then
346
 
       LINGUAS=
347
 
     else
348
 
       AC_MSG_CHECKING(for catalogs to be installed)
349
 
       NEW_LINGUAS=
350
 
       for presentlang in $ALL_LINGUAS; do
351
 
         useit=no
352
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
353
 
           desiredlanguages="$LINGUAS"
354
 
         else
355
 
           desiredlanguages="$ALL_LINGUAS"
356
 
         fi
357
 
         for desiredlang in $desiredlanguages; do
358
 
           # Use the presentlang catalog if desiredlang is
359
 
           #   a. equal to presentlang, or
360
 
           #   b. a variant of presentlang (because in this case,
361
 
           #      presentlang can be used as a fallback for messages
362
 
           #      which are not translated in the desiredlang catalog).
363
 
           case "$desiredlang" in
364
 
             "$presentlang"*) useit=yes;;
365
 
           esac
366
 
         done
367
 
         if test $useit = yes; then
368
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
369
 
         fi
370
 
       done
371
 
       LINGUAS=$NEW_LINGUAS
372
 
       AC_MSG_RESULT($LINGUAS)
373
 
     fi
374
 
 
375
 
     dnl Construct list of names of catalog files to be constructed.
376
 
     if test -n "$LINGUAS"; then
377
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
378
 
     fi
379
 
   fi
380
 
 
381
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
382
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
383
 
   dnl Try to locate is.
384
 
   MKINSTALLDIRS=
385
 
   if test -n "$ac_aux_dir"; then
386
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
387
 
   fi
388
 
   if test -z "$MKINSTALLDIRS"; then
389
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
390
 
   fi
391
 
   AC_SUBST(MKINSTALLDIRS)
392
 
 
393
 
   dnl Generate list of files to be processed by xgettext which will
394
 
   dnl be included in po/Makefile.
395
 
   test -d po || mkdir po
396
 
   if test "x$srcdir" != "x."; then
397
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
398
 
       posrcprefix="$srcdir/"
399
 
     else
400
 
       posrcprefix="../$srcdir/"
401
 
     fi
402
 
   else
403
 
     posrcprefix="../"
404
 
   fi
405
 
   rm -f po/POTFILES
406
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
407
 
        < $srcdir/po/POTFILES.in > po/POTFILES
408
 
  ])
409
 
 
410
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
411
 
# -------------------------------
412
 
# Define VARIABLE to the location where catalog files will
413
 
# be installed by po/Makefile.
414
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
415
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
416
 
glib_save_prefix="$prefix"
417
 
glib_save_exec_prefix="$exec_prefix"
418
 
glib_save_datarootdir="$datarootdir"
419
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
420
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
421
 
datarootdir=`eval echo "${datarootdir}"`
422
 
if test "x$CATOBJEXT" = "x.mo" ; then
423
 
  localedir=`eval echo "${libdir}/locale"`
424
 
else
425
 
  localedir=`eval echo "${datadir}/locale"`
426
 
fi
427
 
prefix="$glib_save_prefix"
428
 
exec_prefix="$glib_save_exec_prefix"
429
 
datarootdir="$glib_save_datarootdir"
430
 
AC_DEFINE_UNQUOTED($1, "$localedir",
431
 
  [Define the location where the catalogs will be installed])
432
 
])
433
 
 
434
 
dnl
435
 
dnl Now the definitions that aclocal will find
436
 
dnl
437
 
ifdef(glib_configure_ac,[],[
438
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
439
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
440
 
])dnl
441
 
 
442
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
443
 
444
 
# Create a temporary file with TEST-FILE as its contents and pass the
445
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
446
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
447
 
AC_DEFUN([GLIB_RUN_PROG],
448
 
[cat >conftest.foo <<_ACEOF
449
 
$2
450
 
_ACEOF
451
 
if AC_RUN_LOG([$1 conftest.foo]); then
452
 
  m4_ifval([$3], [$3], [:])
453
 
m4_ifvaln([$4], [else $4])dnl
454
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
455
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
456
 
fi])
457
 
 
458
 
 
459
 
 
460
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
461
 
# serial 42 IT_PROG_INTLTOOL
462
 
AC_DEFUN([IT_PROG_INTLTOOL], [
463
 
AC_PREREQ([2.50])dnl
464
 
AC_REQUIRE([AM_NLS])dnl
465
 
 
466
 
case "$am__api_version" in
467
 
    1.[01234])
468
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
469
 
    ;;
470
 
    *)
471
 
    ;;
472
 
esac
473
 
 
474
 
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
475
 
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
476
 
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
477
 
if test -n "$1"; then
478
 
    AC_MSG_CHECKING([for intltool >= $1])
479
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
480
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
481
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
482
 
fi
483
 
 
484
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
485
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
486
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
487
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
488
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
489
 
fi
490
 
 
491
 
if test -z "$AM_DEFAULT_VERBOSITY"; then
492
 
  AM_DEFAULT_VERBOSITY=1
493
 
fi
494
 
AC_SUBST([AM_DEFAULT_VERBOSITY])
495
 
 
496
 
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
497
 
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
498
 
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
499
 
AC_SUBST(INTLTOOL_V_MERGE)
500
 
AC_SUBST(INTLTOOL__v_MERGE_)
501
 
AC_SUBST(INTLTOOL__v_MERGE_0)
502
 
 
503
 
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
504
 
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
505
 
intltool__v_merge_options_0='-q'
506
 
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
507
 
AC_SUBST(intltool__v_merge_options_)
508
 
AC_SUBST(intltool__v_merge_options_0)
509
 
 
510
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
511
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
512
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
513
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
514
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
515
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
516
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
517
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
518
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
519
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
520
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
521
 
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
522
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
523
 
else
524
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
525
 
fi
526
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
527
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
528
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
529
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
530
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
531
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
532
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
533
 
 
534
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
535
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
536
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
537
 
_IT_SUBST(INTLTOOL_PROP_RULE)
538
 
_IT_SUBST(INTLTOOL_OAF_RULE)
539
 
_IT_SUBST(INTLTOOL_PONG_RULE)
540
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
541
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
542
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
543
 
_IT_SUBST(INTLTOOL_UI_RULE)
544
 
_IT_SUBST(INTLTOOL_XAM_RULE)
545
 
_IT_SUBST(INTLTOOL_KBD_RULE)
546
 
_IT_SUBST(INTLTOOL_XML_RULE)
547
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
548
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
549
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
550
 
_IT_SUBST(INTLTOOL_THEME_RULE)
551
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
552
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
553
 
 
554
 
# Check the gettext tools to make sure they are GNU
555
 
AC_PATH_PROG(XGETTEXT, xgettext)
556
 
AC_PATH_PROG(MSGMERGE, msgmerge)
557
 
AC_PATH_PROG(MSGFMT, msgfmt)
558
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
559
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
560
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
561
 
fi
562
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
563
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
564
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
565
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
566
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
567
 
fi
568
 
 
569
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
570
 
if test -z "$INTLTOOL_PERL"; then
571
 
   AC_MSG_ERROR([perl not found])
572
 
fi
573
 
AC_MSG_CHECKING([for perl >= 5.8.1])
574
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
575
 
if test $? -ne 0; then
576
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
577
 
else
578
 
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
579
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
580
 
fi
581
 
if test "x$2" != "xno-xml"; then
582
 
   AC_MSG_CHECKING([for XML::Parser])
583
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
584
 
       AC_MSG_RESULT([ok])
585
 
   else
586
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
587
 
   fi
588
 
fi
589
 
 
590
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
591
 
AC_SUBST(ALL_LINGUAS)
592
 
 
593
 
# Set DATADIRNAME correctly if it is not set yet
594
 
# (copied from glib-gettext.m4)
595
 
if test -z "$DATADIRNAME"; then
596
 
  AC_LINK_IFELSE(
597
 
    [AC_LANG_PROGRAM([[]],
598
 
                     [[extern int _nl_msg_cat_cntr;
599
 
                       return _nl_msg_cat_cntr]])],
600
 
    [DATADIRNAME=share],
601
 
    [case $host in
602
 
    *-*-solaris*)
603
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
604
 
    dnl GNU format message catalog is always supported,
605
 
    dnl since both are added to the libc all together.
606
 
    dnl Hence, we'd like to go with DATADIRNAME=share
607
 
    dnl in this case.
608
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
609
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
610
 
    ;;
611
 
    *)
612
 
    [DATADIRNAME=lib]
613
 
    ;;
614
 
    esac])
615
 
fi
616
 
AC_SUBST(DATADIRNAME)
617
 
 
618
 
IT_PO_SUBDIR([po])
619
 
 
620
 
])
621
 
 
622
 
 
623
 
# IT_PO_SUBDIR(DIRNAME)
624
 
# ---------------------
625
 
# All po subdirs have to be declared with this macro; the subdir "po" is
626
 
# declared by IT_PROG_INTLTOOL.
627
 
#
628
 
AC_DEFUN([IT_PO_SUBDIR],
629
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
630
 
dnl
631
 
dnl The following CONFIG_COMMANDS should be executed at the very end
632
 
dnl of config.status.
633
 
AC_CONFIG_COMMANDS_PRE([
634
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
635
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
636
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
637
 
    fi
638
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
639
 
    >"$1/stamp-it.tmp"
640
 
    [sed '/^#/d
641
 
         s/^[[].*] *//
642
 
         /^[    ]*$/d
643
 
        '"s|^|  $ac_top_srcdir/|" \
644
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
645
 
    ]
646
 
    [sed '/^POTFILES =/,/[^\\]$/ {
647
 
                /^POTFILES =/!d
648
 
                r $1/POTFILES
649
 
          }
650
 
         ' "$1/Makefile.in" >"$1/Makefile"]
651
 
    rm -f "$1/Makefile.tmp"
652
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
653
 
  ])
654
 
])dnl
655
 
])
656
 
 
657
 
# _IT_SUBST(VARIABLE)
658
 
# -------------------
659
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
660
 
#
661
 
AC_DEFUN([_IT_SUBST],
662
 
[
663
 
AC_SUBST([$1])
664
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
665
 
]
666
 
)
667
 
 
668
 
# deprecated macros
669
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
670
 
# A hint is needed for aclocal from Automake <= 1.9.4:
671
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
672
 
 
673
 
 
674
 
# nls.m4 serial 5 (gettext-0.18)
675
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
676
 
dnl Inc.
677
 
dnl This file is free software; the Free Software Foundation
678
 
dnl gives unlimited permission to copy and/or distribute it,
679
 
dnl with or without modifications, as long as this notice is preserved.
680
 
dnl
681
 
dnl This file can can be used in projects which are not available under
682
 
dnl the GNU General Public License or the GNU Library General Public
683
 
dnl License but which still want to provide support for the GNU gettext
684
 
dnl functionality.
685
 
dnl Please note that the actual code of the GNU gettext library is covered
686
 
dnl by the GNU Library General Public License, and the rest of the GNU
687
 
dnl gettext package package is covered by the GNU General Public License.
688
 
dnl They are *not* in the public domain.
689
 
 
690
 
dnl Authors:
691
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
692
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
693
 
 
694
 
AC_PREREQ([2.50])
695
 
 
696
 
AC_DEFUN([AM_NLS],
697
 
[
698
 
  AC_MSG_CHECKING([whether NLS is requested])
699
 
  dnl Default is enabled NLS
700
 
  AC_ARG_ENABLE([nls],
701
 
    [  --disable-nls           do not use Native Language Support],
702
 
    USE_NLS=$enableval, USE_NLS=yes)
703
 
  AC_MSG_RESULT([$USE_NLS])
704
 
  AC_SUBST([USE_NLS])
705
 
])
706
 
 
707
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
708
 
# serial 1 (pkg-config-0.24)
709
 
710
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
711
 
#
712
 
# This program is free software; you can redistribute it and/or modify
713
 
# it under the terms of the GNU General Public License as published by
714
 
# the Free Software Foundation; either version 2 of the License, or
715
 
# (at your option) any later version.
716
 
#
717
 
# This program is distributed in the hope that it will be useful, but
718
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
719
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
720
 
# General Public License for more details.
721
 
#
722
 
# You should have received a copy of the GNU General Public License
723
 
# along with this program; if not, write to the Free Software
724
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
725
 
#
726
 
# As a special exception to the GNU General Public License, if you
727
 
# distribute this file as part of a program that contains a
728
 
# configuration script generated by Autoconf, you may include it under
729
 
# the same distribution terms that you use for the rest of that program.
730
 
 
731
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
732
 
# ----------------------------------
733
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
734
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
735
 
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
736
 
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
737
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
738
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
739
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
740
 
 
741
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
742
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
743
 
fi
744
 
if test -n "$PKG_CONFIG"; then
745
 
        _pkg_min_version=m4_default([$1], [0.9.0])
746
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
747
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
748
 
                AC_MSG_RESULT([yes])
749
 
        else
750
 
                AC_MSG_RESULT([no])
751
 
                PKG_CONFIG=""
752
 
        fi
753
 
fi[]dnl
754
 
])# PKG_PROG_PKG_CONFIG
755
 
 
756
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
757
 
#
758
 
# Check to see whether a particular set of modules exists.  Similar
759
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
760
 
#
761
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
762
 
# only at the first occurence in configure.ac, so if the first place
763
 
# it's called might be skipped (such as if it is within an "if", you
764
 
# have to call PKG_CHECK_EXISTS manually
765
 
# --------------------------------------------------------------
766
 
AC_DEFUN([PKG_CHECK_EXISTS],
767
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
768
 
if test -n "$PKG_CONFIG" && \
769
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
770
 
  m4_default([$2], [:])
771
 
m4_ifvaln([$3], [else
772
 
  $3])dnl
773
 
fi])
774
 
 
775
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
776
 
# ---------------------------------------------
777
 
m4_define([_PKG_CONFIG],
778
 
[if test -n "$$1"; then
779
 
    pkg_cv_[]$1="$$1"
780
 
 elif test -n "$PKG_CONFIG"; then
781
 
    PKG_CHECK_EXISTS([$3],
782
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
783
 
                      test "x$?" != "x0" && pkg_failed=yes ],
784
 
                     [pkg_failed=yes])
785
 
 else
786
 
    pkg_failed=untried
787
 
fi[]dnl
788
 
])# _PKG_CONFIG
789
 
 
790
 
# _PKG_SHORT_ERRORS_SUPPORTED
791
 
# -----------------------------
792
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
793
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
794
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
795
 
        _pkg_short_errors_supported=yes
796
 
else
797
 
        _pkg_short_errors_supported=no
798
 
fi[]dnl
799
 
])# _PKG_SHORT_ERRORS_SUPPORTED
800
 
 
801
 
 
802
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
803
 
# [ACTION-IF-NOT-FOUND])
804
 
#
805
 
#
806
 
# Note that if there is a possibility the first call to
807
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
808
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
809
 
#
810
 
#
811
 
# --------------------------------------------------------------
812
 
AC_DEFUN([PKG_CHECK_MODULES],
813
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
814
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
815
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
816
 
 
817
 
pkg_failed=no
818
 
AC_MSG_CHECKING([for $1])
819
 
 
820
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
821
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
822
 
 
823
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
824
 
and $1[]_LIBS to avoid the need to call pkg-config.
825
 
See the pkg-config man page for more details.])
826
 
 
827
 
if test $pkg_failed = yes; then
828
 
        AC_MSG_RESULT([no])
829
 
        _PKG_SHORT_ERRORS_SUPPORTED
830
 
        if test $_pkg_short_errors_supported = yes; then
831
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
832
 
        else 
833
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
834
 
        fi
835
 
        # Put the nasty error message in config.log where it belongs
836
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
837
 
 
838
 
        m4_default([$4], [AC_MSG_ERROR(
839
 
[Package requirements ($2) were not met:
840
 
 
841
 
$$1_PKG_ERRORS
842
 
 
843
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
844
 
installed software in a non-standard prefix.
845
 
 
846
 
_PKG_TEXT])[]dnl
847
 
        ])
848
 
elif test $pkg_failed = untried; then
849
 
        AC_MSG_RESULT([no])
850
 
        m4_default([$4], [AC_MSG_FAILURE(
851
 
[The pkg-config script could not be found or is too old.  Make sure it
852
 
is in your PATH or set the PKG_CONFIG environment variable to the full
853
 
path to pkg-config.
854
 
 
855
 
_PKG_TEXT
856
 
 
857
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
858
 
        ])
859
 
else
860
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
861
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
862
 
        AC_MSG_RESULT([yes])
863
 
        $3
864
 
fi[]dnl
865
 
])# PKG_CHECK_MODULES
866
 
 
867
 
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
868
 
#
869
 
# This file is free software; the Free Software Foundation
870
 
# gives unlimited permission to copy and/or distribute it,
871
 
# with or without modifications, as long as this notice is preserved.
872
 
 
873
 
# AM_AUTOMAKE_VERSION(VERSION)
874
 
# ----------------------------
875
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
876
 
# generated from the m4 files accompanying Automake X.Y.
877
 
# (This private macro should not be called outside this file.)
878
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
879
 
[am__api_version='1.13'
880
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
881
 
dnl require some minimum version.  Point them to the right macro.
882
 
m4_if([$1], [1.13.2], [],
883
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
884
 
])
885
 
 
886
 
# _AM_AUTOCONF_VERSION(VERSION)
887
 
# -----------------------------
888
 
# aclocal traces this macro to find the Autoconf version.
889
 
# This is a private macro too.  Using m4_define simplifies
890
 
# the logic in aclocal, which can simply ignore this definition.
891
 
m4_define([_AM_AUTOCONF_VERSION], [])
892
 
 
893
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
894
 
# -------------------------------
895
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
896
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
897
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
898
 
[AM_AUTOMAKE_VERSION([1.13.2])dnl
899
 
m4_ifndef([AC_AUTOCONF_VERSION],
900
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
901
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
902
 
 
903
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
904
 
 
905
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
906
 
#
907
 
# This file is free software; the Free Software Foundation
908
 
# gives unlimited permission to copy and/or distribute it,
909
 
# with or without modifications, as long as this notice is preserved.
910
 
 
911
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
912
 
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
913
 
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
914
 
#
915
 
# Of course, Automake must honor this variable whenever it calls a
916
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
917
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
918
 
# depending on how configure is run.  This is pretty annoying, since
919
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
920
 
# source directory, any form will work fine, but in subdirectories a
921
 
# relative path needs to be adjusted first.
922
 
#
923
 
# $ac_aux_dir/missing
924
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
925
 
# $top_srcdir/$ac_aux_dir/missing
926
 
#    fails if $ac_aux_dir is absolute,
927
 
#    fails when called from a subdirectory in a VPATH build with
928
 
#          a relative $ac_aux_dir
929
 
#
930
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
931
 
# are both prefixed by $srcdir.  In an in-source build this is usually
932
 
# harmless because $srcdir is '.', but things will broke when you
933
 
# start a VPATH build or use an absolute $srcdir.
934
 
#
935
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
936
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
937
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
938
 
# and then we would define $MISSING as
939
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
940
 
# This will work as long as MISSING is not called from configure, because
941
 
# unfortunately $(top_srcdir) has no meaning in configure.
942
 
# However there are other variables, like CC, which are often used in
943
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
944
 
#
945
 
# Another solution, used here, is to always expand $ac_aux_dir to an
946
 
# absolute PATH.  The drawback is that using absolute paths prevent a
947
 
# configured tree to be moved without reconfiguration.
948
 
 
949
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
950
 
[dnl Rely on autoconf to set up CDPATH properly.
951
 
AC_PREREQ([2.50])dnl
952
 
# expand $ac_aux_dir to an absolute path
953
 
am_aux_dir=`cd $ac_aux_dir && pwd`
954
 
])
955
 
 
956
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
957
 
 
958
 
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
959
 
#
960
 
# This file is free software; the Free Software Foundation
961
 
# gives unlimited permission to copy and/or distribute it,
962
 
# with or without modifications, as long as this notice is preserved.
963
 
 
964
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
965
 
# -------------------------------------
966
 
# Define a conditional.
967
 
AC_DEFUN([AM_CONDITIONAL],
968
 
[AC_PREREQ([2.52])dnl
969
 
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
970
 
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
971
 
AC_SUBST([$1_TRUE])dnl
972
 
AC_SUBST([$1_FALSE])dnl
973
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
974
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
975
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
976
 
if $2; then
977
 
  $1_TRUE=
978
 
  $1_FALSE='#'
979
 
else
980
 
  $1_TRUE='#'
981
 
  $1_FALSE=
982
 
fi
983
 
AC_CONFIG_COMMANDS_PRE(
984
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
985
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
986
 
Usually this means the macro was only invoked conditionally.]])
987
 
fi])])
988
 
 
989
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
990
 
#
991
 
# This file is free software; the Free Software Foundation
992
 
# gives unlimited permission to copy and/or distribute it,
993
 
# with or without modifications, as long as this notice is preserved.
994
 
 
995
 
 
996
 
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
997
 
# written in clear, in which case automake, when reading aclocal.m4,
998
 
# will think it sees a *use*, and therefore will trigger all it's
999
 
# C support machinery.  Also note that it means that autoscan, seeing
1000
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1001
 
 
1002
 
 
1003
 
# _AM_DEPENDENCIES(NAME)
1004
 
# ----------------------
1005
 
# See how the compiler implements dependency checking.
1006
 
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1007
 
# We try a few techniques and use that to set a single cache variable.
1008
 
#
1009
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1010
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1011
 
# dependency, and given that the user is not expected to run this macro,
1012
 
# just rely on AC_PROG_CC.
1013
 
AC_DEFUN([_AM_DEPENDENCIES],
1014
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
1015
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1016
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1017
 
AC_REQUIRE([AM_DEP_TRACK])dnl
1018
 
 
1019
 
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
1020
 
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
1021
 
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1022
 
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
1023
 
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
1024
 
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
1025
 
                    [depcc="$$1"   am_compiler_list=])
1026
 
 
1027
 
AC_CACHE_CHECK([dependency style of $depcc],
1028
 
               [am_cv_$1_dependencies_compiler_type],
1029
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1030
 
  # We make a subdir and do the tests there.  Otherwise we can end up
1031
 
  # making bogus files that we don't know about and never remove.  For
1032
 
  # instance it was reported that on HP-UX the gcc test will end up
1033
 
  # making a dummy file named 'D' -- because '-MD' means "put the output
1034
 
  # in D".
1035
 
  rm -rf conftest.dir
1036
 
  mkdir conftest.dir
1037
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
1038
 
  # using a relative directory.
1039
 
  cp "$am_depcomp" conftest.dir
1040
 
  cd conftest.dir
1041
 
  # We will build objects and dependencies in a subdirectory because
1042
 
  # it helps to detect inapplicable dependency modes.  For instance
1043
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
1044
 
  # side effect of compilation, but ICC will put the dependencies in
1045
 
  # the current directory while Tru64 will put them in the object
1046
 
  # directory.
1047
 
  mkdir sub
1048
 
 
1049
 
  am_cv_$1_dependencies_compiler_type=none
1050
 
  if test "$am_compiler_list" = ""; then
1051
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1052
 
  fi
1053
 
  am__universal=false
1054
 
  m4_case([$1], [CC],
1055
 
    [case " $depcc " in #(
1056
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
1057
 
     esac],
1058
 
    [CXX],
1059
 
    [case " $depcc " in #(
1060
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
1061
 
     esac])
1062
 
 
1063
 
  for depmode in $am_compiler_list; do
1064
 
    # Setup a source with many dependencies, because some compilers
1065
 
    # like to wrap large dependency lists on column 80 (with \), and
1066
 
    # we should not choose a depcomp mode which is confused by this.
1067
 
    #
1068
 
    # We need to recreate these files for each test, as the compiler may
1069
 
    # overwrite some of them when testing with obscure command lines.
1070
 
    # This happens at least with the AIX C compiler.
1071
 
    : > sub/conftest.c
1072
 
    for i in 1 2 3 4 5 6; do
1073
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
1074
 
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
1075
 
      # Solaris 10 /bin/sh.
1076
 
      echo '/* dummy */' > sub/conftst$i.h
1077
 
    done
1078
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1079
 
 
1080
 
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
1081
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
1082
 
    # handle '-M -o', and we need to detect this.  Also, some Intel
1083
 
    # versions had trouble with output in subdirs.
1084
 
    am__obj=sub/conftest.${OBJEXT-o}
1085
 
    am__minus_obj="-o $am__obj"
1086
 
    case $depmode in
1087
 
    gcc)
1088
 
      # This depmode causes a compiler race in universal mode.
1089
 
      test "$am__universal" = false || continue
1090
 
      ;;
1091
 
    nosideeffect)
1092
 
      # After this tag, mechanisms are not by side-effect, so they'll
1093
 
      # only be used when explicitly requested.
1094
 
      if test "x$enable_dependency_tracking" = xyes; then
1095
 
        continue
1096
 
      else
1097
 
        break
1098
 
      fi
1099
 
      ;;
1100
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1101
 
      # This compiler won't grok '-c -o', but also, the minuso test has
1102
 
      # not run yet.  These depmodes are late enough in the game, and
1103
 
      # so weak that their functioning should not be impacted.
1104
 
      am__obj=conftest.${OBJEXT-o}
1105
 
      am__minus_obj=
1106
 
      ;;
1107
 
    none) break ;;
1108
 
    esac
1109
 
    if depmode=$depmode \
1110
 
       source=sub/conftest.c object=$am__obj \
1111
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1112
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1113
 
         >/dev/null 2>conftest.err &&
1114
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1115
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1116
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1117
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1118
 
      # icc doesn't choke on unknown options, it will just issue warnings
1119
 
      # or remarks (even with -Werror).  So we grep stderr for any message
1120
 
      # that says an option was ignored or not supported.
1121
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
1122
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
1123
 
      # The diagnosis changed in icc 8.0:
1124
 
      #   icc: Command line remark: option '-MP' not supported
1125
 
      if (grep 'ignoring option' conftest.err ||
1126
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1127
 
        am_cv_$1_dependencies_compiler_type=$depmode
1128
 
        break
1129
 
      fi
1130
 
    fi
1131
 
  done
1132
 
 
1133
 
  cd ..
1134
 
  rm -rf conftest.dir
1135
 
else
1136
 
  am_cv_$1_dependencies_compiler_type=none
1137
 
fi
1138
 
])
1139
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1140
 
AM_CONDITIONAL([am__fastdep$1], [
1141
 
  test "x$enable_dependency_tracking" != xno \
1142
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1143
 
])
1144
 
 
1145
 
 
1146
 
# AM_SET_DEPDIR
1147
 
# -------------
1148
 
# Choose a directory name for dependency files.
1149
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1150
 
AC_DEFUN([AM_SET_DEPDIR],
1151
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1152
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1153
 
])
1154
 
 
1155
 
 
1156
 
# AM_DEP_TRACK
1157
 
# ------------
1158
 
AC_DEFUN([AM_DEP_TRACK],
1159
 
[AC_ARG_ENABLE([dependency-tracking], [dnl
1160
 
AS_HELP_STRING(
1161
 
  [--enable-dependency-tracking],
1162
 
  [do not reject slow dependency extractors])
1163
 
AS_HELP_STRING(
1164
 
  [--disable-dependency-tracking],
1165
 
  [speeds up one-time build])])
1166
 
if test "x$enable_dependency_tracking" != xno; then
1167
 
  am_depcomp="$ac_aux_dir/depcomp"
1168
 
  AMDEPBACKSLASH='\'
1169
 
  am__nodep='_no'
1170
 
fi
1171
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1172
 
AC_SUBST([AMDEPBACKSLASH])dnl
1173
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1174
 
AC_SUBST([am__nodep])dnl
1175
 
_AM_SUBST_NOTMAKE([am__nodep])dnl
1176
 
])
1177
 
 
1178
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
1179
 
 
1180
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1181
 
#
1182
 
# This file is free software; the Free Software Foundation
1183
 
# gives unlimited permission to copy and/or distribute it,
1184
 
# with or without modifications, as long as this notice is preserved.
1185
 
 
1186
 
 
1187
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
1188
 
# ------------------------------
1189
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1190
 
[{
1191
 
  # Older Autoconf quotes --file arguments for eval, but not when files
1192
 
  # are listed without --file.  Let's play safe and only enable the eval
1193
 
  # if we detect the quoting.
1194
 
  case $CONFIG_FILES in
1195
 
  *\'*) eval set x "$CONFIG_FILES" ;;
1196
 
  *)   set x $CONFIG_FILES ;;
1197
 
  esac
1198
 
  shift
1199
 
  for mf
1200
 
  do
1201
 
    # Strip MF so we end up with the name of the file.
1202
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
1203
 
    # Check whether this is an Automake generated Makefile or not.
1204
 
    # We used to match only the files named 'Makefile.in', but
1205
 
    # some people rename them; so instead we look at the file content.
1206
 
    # Grep'ing the first line is not enough: some people post-process
1207
 
    # each Makefile.in and add a new line on top of each file to say so.
1208
 
    # Grep'ing the whole file is not good either: AIX grep has a line
1209
 
    # limit of 2048, but all sed's we know have understand at least 4000.
1210
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1211
 
      dirpart=`AS_DIRNAME("$mf")`
1212
 
    else
1213
 
      continue
1214
 
    fi
1215
 
    # Extract the definition of DEPDIR, am__include, and am__quote
1216
 
    # from the Makefile without running 'make'.
1217
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1218
 
    test -z "$DEPDIR" && continue
1219
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1220
 
    test -z "$am__include" && continue
1221
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1222
 
    # Find all dependency output files, they are included files with
1223
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
1224
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
1225
 
    # expansion.
1226
 
    for file in `sed -n "
1227
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1228
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1229
 
      # Make sure the directory exists.
1230
 
      test -f "$dirpart/$file" && continue
1231
 
      fdir=`AS_DIRNAME(["$file"])`
1232
 
      AS_MKDIR_P([$dirpart/$fdir])
1233
 
      # echo "creating $dirpart/$file"
1234
 
      echo '# dummy' > "$dirpart/$file"
1235
 
    done
1236
 
  done
1237
 
}
1238
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1239
 
 
1240
 
 
1241
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
1242
 
# -----------------------------
1243
 
# This macro should only be invoked once -- use via AC_REQUIRE.
1244
 
#
1245
 
# This code is only required when automatic dependency tracking
1246
 
# is enabled.  FIXME.  This creates each '.P' file that we will
1247
 
# need in order to bootstrap the dependency handling code.
1248
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1249
 
[AC_CONFIG_COMMANDS([depfiles],
1250
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1251
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1252
 
])
1253
 
 
1254
 
# Do all the work for Automake.                             -*- Autoconf -*-
1255
 
 
1256
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1257
 
#
1258
 
# This file is free software; the Free Software Foundation
1259
 
# gives unlimited permission to copy and/or distribute it,
1260
 
# with or without modifications, as long as this notice is preserved.
1261
 
 
1262
 
# This macro actually does too much.  Some checks are only needed if
1263
 
# your package does certain things.  But this isn't really a big deal.
1264
 
 
1265
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1266
 
# AM_INIT_AUTOMAKE([OPTIONS])
1267
 
# -----------------------------------------------
1268
 
# The call with PACKAGE and VERSION arguments is the old style
1269
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
1270
 
# and VERSION should now be passed to AC_INIT and removed from
1271
 
# the call to AM_INIT_AUTOMAKE.
1272
 
# We support both call styles for the transition.  After
1273
 
# the next Automake release, Autoconf can make the AC_INIT
1274
 
# arguments mandatory, and then we can depend on a new Autoconf
1275
 
# release and drop the old call support.
1276
 
AC_DEFUN([AM_INIT_AUTOMAKE],
1277
 
[AC_PREREQ([2.65])dnl
1278
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1279
 
dnl the ones we care about.
1280
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1281
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1282
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
1283
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1284
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1285
 
  # is not polluted with repeated "-I."
1286
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1287
 
  # test to see if srcdir already configured
1288
 
  if test -f $srcdir/config.status; then
1289
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1290
 
  fi
1291
 
fi
1292
 
 
1293
 
# test whether we have cygpath
1294
 
if test -z "$CYGPATH_W"; then
1295
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
1296
 
    CYGPATH_W='cygpath -w'
1297
 
  else
1298
 
    CYGPATH_W=echo
1299
 
  fi
1300
 
fi
1301
 
AC_SUBST([CYGPATH_W])
1302
 
 
1303
 
# Define the identity of the package.
1304
 
dnl Distinguish between old-style and new-style calls.
1305
 
m4_ifval([$2],
1306
 
[AC_DIAGNOSE([obsolete],
1307
 
             [$0: two- and three-arguments forms are deprecated.])
1308
 
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1309
 
 AC_SUBST([PACKAGE], [$1])dnl
1310
 
 AC_SUBST([VERSION], [$2])],
1311
 
[_AM_SET_OPTIONS([$1])dnl
1312
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1313
 
m4_if(
1314
 
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1315
 
  [ok:ok],,
1316
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1317
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1318
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1319
 
 
1320
 
_AM_IF_OPTION([no-define],,
1321
 
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1322
 
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1323
 
 
1324
 
# Some tools Automake needs.
1325
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
1326
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
1327
 
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1328
 
AM_MISSING_PROG([AUTOCONF], [autoconf])
1329
 
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1330
 
AM_MISSING_PROG([AUTOHEADER], [autoheader])
1331
 
AM_MISSING_PROG([MAKEINFO], [makeinfo])
1332
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1333
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1334
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1335
 
# For better backward compatibility.  To be removed once Automake 1.9.x
1336
 
# dies out for good.  For more background, see:
1337
 
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1338
 
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1339
 
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1340
 
# We need awk for the "check" target.  The system "awk" is bad on
1341
 
# some platforms.
1342
 
AC_REQUIRE([AC_PROG_AWK])dnl
1343
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1344
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1345
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1346
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1347
 
                             [_AM_PROG_TAR([v7])])])
1348
 
_AM_IF_OPTION([no-dependencies],,
1349
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1350
 
                  [_AM_DEPENDENCIES([CC])],
1351
 
                  [m4_define([AC_PROG_CC],
1352
 
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1353
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1354
 
                  [_AM_DEPENDENCIES([CXX])],
1355
 
                  [m4_define([AC_PROG_CXX],
1356
 
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1357
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1358
 
                  [_AM_DEPENDENCIES([OBJC])],
1359
 
                  [m4_define([AC_PROG_OBJC],
1360
 
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1361
 
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1362
 
                  [_AM_DEPENDENCIES([OBJCXX])],
1363
 
                  [m4_define([AC_PROG_OBJCXX],
1364
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1365
 
])
1366
 
AC_REQUIRE([AM_SILENT_RULES])dnl
1367
 
dnl The testsuite driver may need to know about EXEEXT, so add the
1368
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
1369
 
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1370
 
AC_CONFIG_COMMANDS_PRE(dnl
1371
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
1372
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1373
 
])
1374
 
 
1375
 
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1376
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1377
 
dnl mangled by Autoconf and run in a shell conditional statement.
1378
 
m4_define([_AC_COMPILER_EXEEXT],
1379
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1380
 
 
1381
 
 
1382
 
# When config.status generates a header, we must update the stamp-h file.
1383
 
# This file resides in the same directory as the config header
1384
 
# that is generated.  The stamp files are numbered to have different names.
1385
 
 
1386
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1387
 
# loop where config.status creates the headers, so we can generate
1388
 
# our stamp files there.
1389
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1390
 
[# Compute $1's index in $config_headers.
1391
 
_am_arg=$1
1392
 
_am_stamp_count=1
1393
 
for _am_header in $config_headers :; do
1394
 
  case $_am_header in
1395
 
    $_am_arg | $_am_arg:* )
1396
 
      break ;;
1397
 
    * )
1398
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1399
 
  esac
1400
 
done
1401
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1402
 
 
1403
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1404
 
#
1405
 
# This file is free software; the Free Software Foundation
1406
 
# gives unlimited permission to copy and/or distribute it,
1407
 
# with or without modifications, as long as this notice is preserved.
1408
 
 
1409
 
# AM_PROG_INSTALL_SH
1410
 
# ------------------
1411
 
# Define $install_sh.
1412
 
AC_DEFUN([AM_PROG_INSTALL_SH],
1413
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1414
 
if test x"${install_sh}" != xset; then
1415
 
  case $am_aux_dir in
1416
 
  *\ * | *\     *)
1417
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1418
 
  *)
1419
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
1420
 
  esac
1421
 
fi
1422
 
AC_SUBST([install_sh])])
1423
 
 
1424
 
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1425
 
#
1426
 
# This file is free software; the Free Software Foundation
1427
 
# gives unlimited permission to copy and/or distribute it,
1428
 
# with or without modifications, as long as this notice is preserved.
1429
 
 
1430
 
# Check whether the underlying file-system supports filenames
1431
 
# with a leading dot.  For instance MS-DOS doesn't.
1432
 
AC_DEFUN([AM_SET_LEADING_DOT],
1433
 
[rm -rf .tst 2>/dev/null
1434
 
mkdir .tst 2>/dev/null
1435
 
if test -d .tst; then
1436
 
  am__leading_dot=.
1437
 
else
1438
 
  am__leading_dot=_
1439
 
fi
1440
 
rmdir .tst 2>/dev/null
1441
 
AC_SUBST([am__leading_dot])])
1442
 
 
1443
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
1444
 
# From Jim Meyering
1445
 
 
1446
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1447
 
#
1448
 
# This file is free software; the Free Software Foundation
1449
 
# gives unlimited permission to copy and/or distribute it,
1450
 
# with or without modifications, as long as this notice is preserved.
1451
 
 
1452
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
1453
 
# ----------------------------------
1454
 
# Control maintainer-specific portions of Makefiles.
1455
 
# Default is to disable them, unless 'enable' is passed literally.
1456
 
# For symmetry, 'disable' may be passed as well.  Anyway, the user
1457
 
# can override the default with the --enable/--disable switch.
1458
 
AC_DEFUN([AM_MAINTAINER_MODE],
1459
 
[m4_case(m4_default([$1], [disable]),
1460
 
       [enable], [m4_define([am_maintainer_other], [disable])],
1461
 
       [disable], [m4_define([am_maintainer_other], [enable])],
1462
 
       [m4_define([am_maintainer_other], [enable])
1463
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1464
 
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1465
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1466
 
  AC_ARG_ENABLE([maintainer-mode],
1467
 
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1468
 
      am_maintainer_other[ make rules and dependencies not useful
1469
 
      (and sometimes confusing) to the casual installer])],
1470
 
    [USE_MAINTAINER_MODE=$enableval],
1471
 
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1472
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1473
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1474
 
  MAINT=$MAINTAINER_MODE_TRUE
1475
 
  AC_SUBST([MAINT])dnl
1476
 
]
1477
 
)
1478
 
 
1479
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1480
 
 
1481
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1482
 
#
1483
 
# This file is free software; the Free Software Foundation
1484
 
# gives unlimited permission to copy and/or distribute it,
1485
 
# with or without modifications, as long as this notice is preserved.
1486
 
 
1487
 
# AM_MAKE_INCLUDE()
1488
 
# -----------------
1489
 
# Check to see how make treats includes.
1490
 
AC_DEFUN([AM_MAKE_INCLUDE],
1491
 
[am_make=${MAKE-make}
1492
 
cat > confinc << 'END'
1493
 
am__doit:
1494
 
        @echo this is the am__doit target
1495
 
.PHONY: am__doit
1496
 
END
1497
 
# If we don't find an include directive, just comment out the code.
1498
 
AC_MSG_CHECKING([for style of include used by $am_make])
1499
 
am__include="#"
1500
 
am__quote=
1501
 
_am_result=none
1502
 
# First try GNU make style include.
1503
 
echo "include confinc" > confmf
1504
 
# Ignore all kinds of additional output from 'make'.
1505
 
case `$am_make -s -f confmf 2> /dev/null` in #(
1506
 
*the\ am__doit\ target*)
1507
 
  am__include=include
1508
 
  am__quote=
1509
 
  _am_result=GNU
1510
 
  ;;
1511
 
esac
1512
 
# Now try BSD make style include.
1513
 
if test "$am__include" = "#"; then
1514
 
   echo '.include "confinc"' > confmf
1515
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
1516
 
   *the\ am__doit\ target*)
1517
 
     am__include=.include
1518
 
     am__quote="\""
1519
 
     _am_result=BSD
1520
 
     ;;
1521
 
   esac
1522
 
fi
1523
 
AC_SUBST([am__include])
1524
 
AC_SUBST([am__quote])
1525
 
AC_MSG_RESULT([$_am_result])
1526
 
rm -f confinc confmf
1527
 
])
1528
 
 
1529
 
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1530
 
#
1531
 
# This file is free software; the Free Software Foundation
1532
 
# gives unlimited permission to copy and/or distribute it,
1533
 
# with or without modifications, as long as this notice is preserved.
1534
 
 
1535
 
# AM_PROG_CC_C_O
1536
 
# --------------
1537
 
# Like AC_PROG_CC_C_O, but changed for automake.
1538
 
AC_DEFUN([AM_PROG_CC_C_O],
1539
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1540
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1541
 
AC_REQUIRE_AUX_FILE([compile])dnl
1542
 
# FIXME: we rely on the cache variable name because
1543
 
# there is no other way.
1544
 
set dummy $CC
1545
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1546
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1547
 
if test "$am_t" != yes; then
1548
 
   # Losing compiler, so override with the script.
1549
 
   # FIXME: It is wrong to rewrite CC.
1550
 
   # But if we don't then we get into trouble of one sort or another.
1551
 
   # A longer-term fix would be to have automake use am__CC in this case,
1552
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1553
 
   CC="$am_aux_dir/compile $CC"
1554
 
fi
1555
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
1556
 
dnl setting of CC.
1557
 
m4_define([AC_PROG_CC],
1558
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1559
 
])
1560
 
 
1561
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1562
 
 
1563
 
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1564
 
#
1565
 
# This file is free software; the Free Software Foundation
1566
 
# gives unlimited permission to copy and/or distribute it,
1567
 
# with or without modifications, as long as this notice is preserved.
1568
 
 
1569
 
# AM_MISSING_PROG(NAME, PROGRAM)
1570
 
# ------------------------------
1571
 
AC_DEFUN([AM_MISSING_PROG],
1572
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
1573
 
$1=${$1-"${am_missing_run}$2"}
1574
 
AC_SUBST($1)])
1575
 
 
1576
 
# AM_MISSING_HAS_RUN
1577
 
# ------------------
1578
 
# Define MISSING if not defined so far and test if it is modern enough.
1579
 
# If it is, set am_missing_run to use it, otherwise, to nothing.
1580
 
AC_DEFUN([AM_MISSING_HAS_RUN],
1581
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1582
 
AC_REQUIRE_AUX_FILE([missing])dnl
1583
 
if test x"${MISSING+set}" != xset; then
1584
 
  case $am_aux_dir in
1585
 
  *\ * | *\     *)
1586
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1587
 
  *)
1588
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
1589
 
  esac
1590
 
fi
1591
 
# Use eval to expand $SHELL
1592
 
if eval "$MISSING --is-lightweight"; then
1593
 
  am_missing_run="$MISSING "
1594
 
else
1595
 
  am_missing_run=
1596
 
  AC_MSG_WARN(['missing' script is too old or missing])
1597
 
fi
1598
 
])
1599
 
 
1600
 
# Helper functions for option handling.                     -*- Autoconf -*-
1601
 
 
1602
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1603
 
#
1604
 
# This file is free software; the Free Software Foundation
1605
 
# gives unlimited permission to copy and/or distribute it,
1606
 
# with or without modifications, as long as this notice is preserved.
1607
 
 
1608
 
# _AM_MANGLE_OPTION(NAME)
1609
 
# -----------------------
1610
 
AC_DEFUN([_AM_MANGLE_OPTION],
1611
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1612
 
 
1613
 
# _AM_SET_OPTION(NAME)
1614
 
# --------------------
1615
 
# Set option NAME.  Presently that only means defining a flag for this option.
1616
 
AC_DEFUN([_AM_SET_OPTION],
1617
 
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1618
 
 
1619
 
# _AM_SET_OPTIONS(OPTIONS)
1620
 
# ------------------------
1621
 
# OPTIONS is a space-separated list of Automake options.
1622
 
AC_DEFUN([_AM_SET_OPTIONS],
1623
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1624
 
 
1625
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1626
 
# -------------------------------------------
1627
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1628
 
AC_DEFUN([_AM_IF_OPTION],
1629
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1630
 
 
1631
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1632
 
 
1633
 
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1634
 
#
1635
 
# This file is free software; the Free Software Foundation
1636
 
# gives unlimited permission to copy and/or distribute it,
1637
 
# with or without modifications, as long as this notice is preserved.
1638
 
 
1639
 
# AM_SANITY_CHECK
1640
 
# ---------------
1641
 
AC_DEFUN([AM_SANITY_CHECK],
1642
 
[AC_MSG_CHECKING([whether build environment is sane])
1643
 
# Reject unsafe characters in $srcdir or the absolute working directory
1644
 
# name.  Accept space and tab only in the latter.
1645
 
am_lf='
1646
 
'
1647
 
case `pwd` in
1648
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
1649
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
1650
 
esac
1651
 
case $srcdir in
1652
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1653
 
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1654
 
esac
1655
 
 
1656
 
# Do 'set' in a subshell so we don't clobber the current shell's
1657
 
# arguments.  Must try -L first in case configure is actually a
1658
 
# symlink; some systems play weird games with the mod time of symlinks
1659
 
# (eg FreeBSD returns the mod time of the symlink's containing
1660
 
# directory).
1661
 
if (
1662
 
   am_has_slept=no
1663
 
   for am_try in 1 2; do
1664
 
     echo "timestamp, slept: $am_has_slept" > conftest.file
1665
 
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1666
 
     if test "$[*]" = "X"; then
1667
 
        # -L didn't work.
1668
 
        set X `ls -t "$srcdir/configure" conftest.file`
1669
 
     fi
1670
 
     if test "$[*]" != "X $srcdir/configure conftest.file" \
1671
 
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
1672
 
 
1673
 
        # If neither matched, then we have a broken ls.  This can happen
1674
 
        # if, for instance, CONFIG_SHELL is bash and it inherits a
1675
 
        # broken ls alias from the environment.  This has actually
1676
 
        # happened.  Such a system could not be considered "sane".
1677
 
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1678
 
  alias in your environment])
1679
 
     fi
1680
 
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
1681
 
       break
1682
 
     fi
1683
 
     # Just in case.
1684
 
     sleep 1
1685
 
     am_has_slept=yes
1686
 
   done
1687
 
   test "$[2]" = conftest.file
1688
 
   )
1689
 
then
1690
 
   # Ok.
1691
 
   :
1692
 
else
1693
 
   AC_MSG_ERROR([newly created file is older than distributed files!
1694
 
Check your system clock])
1695
 
fi
1696
 
AC_MSG_RESULT([yes])
1697
 
# If we didn't sleep, we still need to ensure time stamps of config.status and
1698
 
# generated files are strictly newer.
1699
 
am_sleep_pid=
1700
 
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1701
 
  ( sleep 1 ) &
1702
 
  am_sleep_pid=$!
1703
 
fi
1704
 
AC_CONFIG_COMMANDS_PRE(
1705
 
  [AC_MSG_CHECKING([that generated files are newer than configure])
1706
 
   if test -n "$am_sleep_pid"; then
1707
 
     # Hide warnings about reused PIDs.
1708
 
     wait $am_sleep_pid 2>/dev/null
1709
 
   fi
1710
 
   AC_MSG_RESULT([done])])
1711
 
rm -f conftest.file
1712
 
])
1713
 
 
1714
 
# Copyright (C) 2009-2013 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
 
# AM_SILENT_RULES([DEFAULT])
1721
 
# --------------------------
1722
 
# Enable less verbose build rules; with the default set to DEFAULT
1723
 
# ("yes" being less verbose, "no" or empty being verbose).
1724
 
AC_DEFUN([AM_SILENT_RULES],
1725
 
[AC_ARG_ENABLE([silent-rules], [dnl
1726
 
AS_HELP_STRING(
1727
 
  [--enable-silent-rules],
1728
 
  [less verbose build output (undo: "make V=1")])
1729
 
AS_HELP_STRING(
1730
 
  [--disable-silent-rules],
1731
 
  [verbose build output (undo: "make V=0")])dnl
1732
 
])
1733
 
case $enable_silent_rules in @%:@ (((
1734
 
  yes) AM_DEFAULT_VERBOSITY=0;;
1735
 
   no) AM_DEFAULT_VERBOSITY=1;;
1736
 
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1737
 
esac
1738
 
dnl
1739
 
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1740
 
dnl do not support nested variable expansions.
1741
 
dnl See automake bug#9928 and bug#10237.
1742
 
am_make=${MAKE-make}
1743
 
AC_CACHE_CHECK([whether $am_make supports nested variables],
1744
 
   [am_cv_make_support_nested_variables],
1745
 
   [if AS_ECHO([['TRUE=$(BAR$(V))
1746
 
BAR0=false
1747
 
BAR1=true
1748
 
V=1
1749
 
am__doit:
1750
 
        @$(TRUE)
1751
 
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1752
 
  am_cv_make_support_nested_variables=yes
1753
 
else
1754
 
  am_cv_make_support_nested_variables=no
1755
 
fi])
1756
 
if test $am_cv_make_support_nested_variables = yes; then
1757
 
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1758
 
  AM_V='$(V)'
1759
 
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1760
 
else
1761
 
  AM_V=$AM_DEFAULT_VERBOSITY
1762
 
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1763
 
fi
1764
 
AC_SUBST([AM_V])dnl
1765
 
AM_SUBST_NOTMAKE([AM_V])dnl
1766
 
AC_SUBST([AM_DEFAULT_V])dnl
1767
 
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1768
 
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1769
 
AM_BACKSLASH='\'
1770
 
AC_SUBST([AM_BACKSLASH])dnl
1771
 
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1772
 
])
1773
 
 
1774
 
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1775
 
#
1776
 
# This file is free software; the Free Software Foundation
1777
 
# gives unlimited permission to copy and/or distribute it,
1778
 
# with or without modifications, as long as this notice is preserved.
1779
 
 
1780
 
# AM_PROG_INSTALL_STRIP
1781
 
# ---------------------
1782
 
# One issue with vendor 'install' (even GNU) is that you can't
1783
 
# specify the program used to strip binaries.  This is especially
1784
 
# annoying in cross-compiling environments, where the build's strip
1785
 
# is unlikely to handle the host's binaries.
1786
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
1787
 
# always use install-sh in "make install-strip", and initialize
1788
 
# STRIPPROG with the value of the STRIP variable (set by the user).
1789
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1790
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1791
 
# Installed binaries are usually stripped using 'strip' when the user
1792
 
# run "make install-strip".  However 'strip' might not be the right
1793
 
# tool to use in cross-compilation environments, therefore Automake
1794
 
# will honor the 'STRIP' environment variable to overrule this program.
1795
 
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1796
 
if test "$cross_compiling" != no; then
1797
 
  AC_CHECK_TOOL([STRIP], [strip], :)
1798
 
fi
1799
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1800
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1801
 
 
1802
 
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1803
 
#
1804
 
# This file is free software; the Free Software Foundation
1805
 
# gives unlimited permission to copy and/or distribute it,
1806
 
# with or without modifications, as long as this notice is preserved.
1807
 
 
1808
 
# _AM_SUBST_NOTMAKE(VARIABLE)
1809
 
# ---------------------------
1810
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1811
 
# This macro is traced by Automake.
1812
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
1813
 
 
1814
 
# AM_SUBST_NOTMAKE(VARIABLE)
1815
 
# --------------------------
1816
 
# Public sister of _AM_SUBST_NOTMAKE.
1817
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1818
 
 
1819
 
# Check how to create a tarball.                            -*- Autoconf -*-
1820
 
 
1821
 
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1822
 
#
1823
 
# This file is free software; the Free Software Foundation
1824
 
# gives unlimited permission to copy and/or distribute it,
1825
 
# with or without modifications, as long as this notice is preserved.
1826
 
 
1827
 
# _AM_PROG_TAR(FORMAT)
1828
 
# --------------------
1829
 
# Check how to create a tarball in format FORMAT.
1830
 
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1831
 
#
1832
 
# Substitute a variable $(am__tar) that is a command
1833
 
# writing to stdout a FORMAT-tarball containing the directory
1834
 
# $tardir.
1835
 
#     tardir=directory && $(am__tar) > result.tar
1836
 
#
1837
 
# Substitute a variable $(am__untar) that extract such
1838
 
# a tarball read from stdin.
1839
 
#     $(am__untar) < result.tar
1840
 
#
1841
 
AC_DEFUN([_AM_PROG_TAR],
1842
 
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1843
 
# in the wild :-(  We should find a proper way to deprecate it ...
1844
 
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1845
 
 
1846
 
# We'll loop over all known methods to create a tar archive until one works.
1847
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1848
 
 
1849
 
m4_if([$1], [v7],
1850
 
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1851
 
 
1852
 
  [m4_case([$1],
1853
 
    [ustar],
1854
 
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1855
 
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
1856
 
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1857
 
      # and bug#13588).
1858
 
      am_max_uid=2097151 # 2^21 - 1
1859
 
      am_max_gid=$am_max_uid
1860
 
      # The $UID and $GID variables are not portable, so we need to resort
1861
 
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1862
 
      # below are definitely unexpected, so allow the users to see them
1863
 
      # (that is, avoid stderr redirection).
1864
 
      am_uid=`id -u || echo unknown`
1865
 
      am_gid=`id -g || echo unknown`
1866
 
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1867
 
      if test $am_uid -le $am_max_uid; then
1868
 
         AC_MSG_RESULT([yes])
1869
 
      else
1870
 
         AC_MSG_RESULT([no])
1871
 
         _am_tools=none
1872
 
      fi
1873
 
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1874
 
      if test $am_gid -le $am_max_gid; then
1875
 
         AC_MSG_RESULT([yes])
1876
 
      else
1877
 
        AC_MSG_RESULT([no])
1878
 
        _am_tools=none
1879
 
      fi],
1880
 
 
1881
 
  [pax],
1882
 
    [],
1883
 
 
1884
 
  [m4_fatal([Unknown tar format])])
1885
 
 
1886
 
  AC_MSG_CHECKING([how to create a $1 tar archive])
1887
 
 
1888
 
  # Go ahead even if we have the value already cached.  We do so because we
1889
 
  # need to set the values for the 'am__tar' and 'am__untar' variables.
1890
 
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1891
 
 
1892
 
  for _am_tool in $_am_tools; do
1893
 
    case $_am_tool in
1894
 
    gnutar)
1895
 
      for _am_tar in tar gnutar gtar; do
1896
 
        AM_RUN_LOG([$_am_tar --version]) && break
1897
 
      done
1898
 
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1899
 
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1900
 
      am__untar="$_am_tar -xf -"
1901
 
      ;;
1902
 
    plaintar)
1903
 
      # Must skip GNU tar: if it does not support --format= it doesn't create
1904
 
      # ustar tarball either.
1905
 
      (tar --version) >/dev/null 2>&1 && continue
1906
 
      am__tar='tar chf - "$$tardir"'
1907
 
      am__tar_='tar chf - "$tardir"'
1908
 
      am__untar='tar xf -'
1909
 
      ;;
1910
 
    pax)
1911
 
      am__tar='pax -L -x $1 -w "$$tardir"'
1912
 
      am__tar_='pax -L -x $1 -w "$tardir"'
1913
 
      am__untar='pax -r'
1914
 
      ;;
1915
 
    cpio)
1916
 
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1917
 
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1918
 
      am__untar='cpio -i -H $1 -d'
1919
 
      ;;
1920
 
    none)
1921
 
      am__tar=false
1922
 
      am__tar_=false
1923
 
      am__untar=false
1924
 
      ;;
1925
 
    esac
1926
 
 
1927
 
    # If the value was cached, stop now.  We just wanted to have am__tar
1928
 
    # and am__untar set.
1929
 
    test -n "${am_cv_prog_tar_$1}" && break
1930
 
 
1931
 
    # tar/untar a dummy directory, and stop if the command works.
1932
 
    rm -rf conftest.dir
1933
 
    mkdir conftest.dir
1934
 
    echo GrepMe > conftest.dir/file
1935
 
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1936
 
    rm -rf conftest.dir
1937
 
    if test -s conftest.tar; then
1938
 
      AM_RUN_LOG([$am__untar <conftest.tar])
1939
 
      AM_RUN_LOG([cat conftest.dir/file])
1940
 
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1941
 
    fi
1942
 
  done
1943
 
  rm -rf conftest.dir
1944
 
 
1945
 
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1946
 
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1947
 
 
1948
 
AC_SUBST([am__tar])
1949
 
AC_SUBST([am__untar])
1950
 
]) # _AM_PROG_TAR
1951
 
 
1952
 
# Autoconf support for the Vala compiler
1953
 
 
1954
 
# Copyright (C) 2008-2013 Free Software Foundation, Inc.
1955
 
#
1956
 
# This file is free software; the Free Software Foundation
1957
 
# gives unlimited permission to copy and/or distribute it,
1958
 
# with or without modifications, as long as this notice is preserved.
1959
 
 
1960
 
# Check whether the Vala compiler exists in $PATH.  If it is found, the
1961
 
# variable VALAC is set pointing to its absolute path.  Otherwise, it is
1962
 
# simply set to 'valac'.
1963
 
# Optionally a minimum release number of the compiler can be requested.
1964
 
# If the ACTION-IF-FOUND parameter is given, it will be run if a proper
1965
 
# Vala compiler is found.
1966
 
# Similarly, if the ACTION-IF-FOUND is given, it will be run if no proper
1967
 
# Vala compiler is found.  It defaults to simply print a warning about the
1968
 
# situation, but otherwise proceeding with the configuration.
1969
 
#
1970
 
# AM_PROG_VALAC([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1971
 
# --------------------------------------------------------------------------
1972
 
AC_DEFUN([AM_PROG_VALAC],
1973
 
  [AC_PATH_PROG([VALAC], [valac], [valac])
1974
 
   AS_IF([test "$VALAC" != valac && test -n "$1"],
1975
 
      [AC_MSG_CHECKING([whether $VALAC is at least version $1])
1976
 
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
1977
 
       AS_VERSION_COMPARE([$1], ["$am__vala_version"],
1978
 
         [AC_MSG_RESULT([yes])],
1979
 
         [AC_MSG_RESULT([yes])],
1980
 
         [AC_MSG_RESULT([no])
1981
 
          VALAC=valac])])
1982
 
    if test "$VALAC" = valac; then
1983
 
      m4_default([$3],
1984
 
        [AC_MSG_WARN([no proper vala compiler found])
1985
 
         AC_MSG_WARN([you will not be able to compile vala source files])])
1986
 
    else
1987
 
      m4_default([$2], [:])
1988
 
    fi])
1989
 
 
1990
 
m4_include([m4/libtool.m4])
1991
 
m4_include([m4/ltoptions.m4])
1992
 
m4_include([m4/ltsugar.m4])
1993
 
m4_include([m4/ltversion.m4])
1994
 
m4_include([m4/lt~obsolete.m4])
1995
 
m4_include([acinclude.m4])