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