147642998b1f8fb0c9ea35d89534533068a6c6bc
[platform/upstream/pygobject2.git] / aclocal.m4
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 # Configure paths for GLIB
24 # Owen Taylor     1997-2001
25
26 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
27 dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
28 dnl gthread, or gio is specified in MODULES, pass to pkg-config
29 dnl
30 AC_DEFUN([AM_PATH_GLIB_2_0],
31 [dnl 
32 dnl Get the cflags and libraries from pkg-config
33 dnl
34 AC_ARG_ENABLE(glibtest, [  --disable-glibtest      do not try to compile and run a test GLIB program],
35                     , enable_glibtest=yes)
36
37   pkg_config_args=glib-2.0
38   for module in . $4
39   do
40       case "$module" in
41          gmodule) 
42              pkg_config_args="$pkg_config_args gmodule-2.0"
43          ;;
44          gmodule-no-export) 
45              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
46          ;;
47          gobject) 
48              pkg_config_args="$pkg_config_args gobject-2.0"
49          ;;
50          gthread) 
51              pkg_config_args="$pkg_config_args gthread-2.0"
52          ;;
53          gio*) 
54              pkg_config_args="$pkg_config_args $module-2.0"
55          ;;
56       esac
57   done
58
59   PKG_PROG_PKG_CONFIG([0.16])
60
61   no_glib=""
62
63   if test "x$PKG_CONFIG" = x ; then
64     no_glib=yes
65     PKG_CONFIG=no
66   fi
67
68   min_glib_version=ifelse([$1], ,2.0.0,$1)
69   AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
70
71   if test x$PKG_CONFIG != xno ; then
72     ## don't try to run the test against uninstalled libtool libs
73     if $PKG_CONFIG --uninstalled $pkg_config_args; then
74           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
75           enable_glibtest=no
76     fi
77
78     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
79           :
80     else
81           no_glib=yes
82     fi
83   fi
84
85   if test x"$no_glib" = x ; then
86     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
87     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
88     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
89     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
90
91     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
92     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
93     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
94            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
95     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
96            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
97     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
98            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
99     if test "x$enable_glibtest" = "xyes" ; then
100       ac_save_CFLAGS="$CFLAGS"
101       ac_save_LIBS="$LIBS"
102       CFLAGS="$CFLAGS $GLIB_CFLAGS"
103       LIBS="$GLIB_LIBS $LIBS"
104 dnl
105 dnl Now check if the installed GLIB is sufficiently new. (Also sanity
106 dnl checks the results of pkg-config to some extent)
107 dnl
108       rm -f conf.glibtest
109       AC_TRY_RUN([
110 #include <glib.h>
111 #include <stdio.h>
112 #include <stdlib.h>
113
114 int 
115 main ()
116 {
117   unsigned int major, minor, micro;
118   char *tmp_version;
119
120   fclose (fopen ("conf.glibtest", "w"));
121
122   /* HP/UX 9 (%@#!) writes to sscanf strings */
123   tmp_version = g_strdup("$min_glib_version");
124   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
125      printf("%s, bad version string\n", "$min_glib_version");
126      exit(1);
127    }
128
129   if ((glib_major_version != $glib_config_major_version) ||
130       (glib_minor_version != $glib_config_minor_version) ||
131       (glib_micro_version != $glib_config_micro_version))
132     {
133       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
134              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
135              glib_major_version, glib_minor_version, glib_micro_version);
136       printf ("*** was found! If pkg-config was correct, then it is best\n");
137       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
138       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
139       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
140       printf("*** required on your system.\n");
141       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
142       printf("*** to point to the correct configuration files\n");
143     } 
144   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
145            (glib_minor_version != GLIB_MINOR_VERSION) ||
146            (glib_micro_version != GLIB_MICRO_VERSION))
147     {
148       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
149              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
150       printf("*** library (version %d.%d.%d)\n",
151              glib_major_version, glib_minor_version, glib_micro_version);
152     }
153   else
154     {
155       if ((glib_major_version > major) ||
156         ((glib_major_version == major) && (glib_minor_version > minor)) ||
157         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
158       {
159         return 0;
160        }
161      else
162       {
163         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
164                glib_major_version, glib_minor_version, glib_micro_version);
165         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
166                major, minor, micro);
167         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
168         printf("***\n");
169         printf("*** If you have already installed a sufficiently new version, this error\n");
170         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
171         printf("*** being found. The easiest way to fix this is to remove the old version\n");
172         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
173         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
174         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
175         printf("*** so that the correct libraries are found at run-time))\n");
176       }
177     }
178   return 1;
179 }
180 ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
181        CFLAGS="$ac_save_CFLAGS"
182        LIBS="$ac_save_LIBS"
183      fi
184   fi
185   if test "x$no_glib" = x ; then
186      AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
187      ifelse([$2], , :, [$2])     
188   else
189      AC_MSG_RESULT(no)
190      if test "$PKG_CONFIG" = "no" ; then
191        echo "*** A new enough version of pkg-config was not found."
192        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
193      else
194        if test -f conf.glibtest ; then
195         :
196        else
197           echo "*** Could not run GLIB test program, checking why..."
198           ac_save_CFLAGS="$CFLAGS"
199           ac_save_LIBS="$LIBS"
200           CFLAGS="$CFLAGS $GLIB_CFLAGS"
201           LIBS="$LIBS $GLIB_LIBS"
202           AC_TRY_LINK([
203 #include <glib.h>
204 #include <stdio.h>
205 ],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
206         [ echo "*** The test program compiled, but did not run. This usually means"
207           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
208           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
209           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
210           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
211           echo "*** is required on your system"
212           echo "***"
213           echo "*** If you have an old version installed, it is best to remove it, although"
214           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
215         [ echo "*** The test program failed to compile or link. See the file config.log for the"
216           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
217           CFLAGS="$ac_save_CFLAGS"
218           LIBS="$ac_save_LIBS"
219        fi
220      fi
221      GLIB_CFLAGS=""
222      GLIB_LIBS=""
223      GLIB_GENMARSHAL=""
224      GOBJECT_QUERY=""
225      GLIB_MKENUMS=""
226      GLIB_COMPILE_RESOURCES=""
227      ifelse([$3], , :, [$3])
228   fi
229   AC_SUBST(GLIB_CFLAGS)
230   AC_SUBST(GLIB_LIBS)
231   AC_SUBST(GLIB_GENMARSHAL)
232   AC_SUBST(GOBJECT_QUERY)
233   AC_SUBST(GLIB_MKENUMS)
234   AC_SUBST(GLIB_COMPILE_RESOURCES)
235   rm -f conf.glibtest
236 ])
237
238 dnl GNOME_CODE_COVERAGE
239 dnl
240 dnl Defines CODE_COVERAGE_CFLAGS and CODE_COVERAGE_LDFLAGS which should be
241 dnl included in the CFLAGS and LIBS/LDFLAGS variables of every build target
242 dnl (program or library) which should be built with code coverage support.
243 dnl Also defines GNOME_CODE_COVERAGE_RULES which should be substituted in your
244 dnl Makefile; and $enable_code_coverage which can be used in subsequent
245 dnl configure output.
246 dnl
247 dnl Note that all optimisation flags in CFLAGS must be disabled when code
248 dnl coverage is enabled.
249 dnl
250 dnl Derived from Makefile.decl in GLib, originally licenced under LGPLv2.1+.
251 dnl This file is licenced under LGPLv2.1+.
252 dnl
253 dnl Usage example:
254 dnl configure.ac:
255 dnl    GNOME_CODE_COVERAGE
256 dnl
257 dnl Makefile.am:
258 dnl    @GNOME_CODE_COVERAGE_RULES@
259 dnl    my_program_LIBS = … $(CODE_COVERAGE_LDFLAGS) …
260 dnl    my_program_CFLAGS = … $(CODE_COVERAGE_CFLAGS) …
261 dnl
262 dnl This results in a “check-code-coverage” rule being added to any Makefile.am
263 dnl which includes “@GNOME_CODE_COVERAGE_RULES@” (assuming the module has been
264 dnl configured with --enable-code-coverage). Running `make check-code-coverage`
265 dnl in that directory will run the module’s test suite (`make check`) and build
266 dnl a code coverage report detailing the code which was touched, then print the
267 dnl URI for the report.
268
269 AC_DEFUN([GNOME_CODE_COVERAGE],[
270         dnl Check for --enable-code-coverage
271         AC_MSG_CHECKING([whether to build with code coverage support])
272         AC_ARG_ENABLE([code-coverage], AS_HELP_STRING([--enable-code-coverage], [Whether to enable code coverage support]),, enable_code_coverage=no)
273         AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes])
274         AC_SUBST([CODE_COVERAGE_ENABLED], [$enable_code_coverage])
275         AC_MSG_RESULT($enable_code_coverage)
276
277         AS_IF([ test "$enable_code_coverage" = "yes" ], [
278                 dnl Check if gcc is being used
279                 AS_IF([ test "$GCC" = "no" ], [
280                         AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage])
281                 ])
282
283                 # List of supported lcov versions.
284                 lcov_version_list="1.6 1.7 1.8 1.9"
285
286                 AC_CHECK_PROG([LCOV], [lcov], [lcov])
287                 AC_CHECK_PROG([GENHTML], [genhtml], [genhtml])
288
289                 AS_IF([ test "$LCOV" ], [
290                         AC_CACHE_CHECK([for lcov version], gnome_cv_lcov_version, [
291                                 gnome_cv_lcov_version=invalid
292                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
293                                 for lcov_check_version in $lcov_version_list; do
294                                         if test "$lcov_version" = "$lcov_check_version"; then
295                                                 gnome_cv_lcov_version="$lcov_check_version (ok)"
296                                         fi
297                                 done
298                         ])
299                 ], [
300                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
301                         AC_MSG_ERROR([$lcov_msg])
302                 ])
303
304                 case $gnome_cv_lcov_version in
305                         ""|invalid[)]
306                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
307                                 AC_MSG_ERROR([$lcov_msg])
308                                 LCOV="exit 0;"
309                         ;;
310                 esac
311
312                 AS_IF([ test -z "$GENHTML" ], [
313                         AC_MSG_ERROR([Could not find genhtml from the lcov package])
314                 ])
315
316                 dnl Build the code coverage flags
317                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
318                 CODE_COVERAGE_LDFLAGS="-lgcov"
319
320                 AC_SUBST([CODE_COVERAGE_CFLAGS])
321                 AC_SUBST([CODE_COVERAGE_LDFLAGS])
322         ])
323
324 GNOME_CODE_COVERAGE_RULES='
325 # Code coverage
326 #
327 # Optional:
328 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
329 #    (Default: $(top_builddir))
330 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
331 #    by lcov for code coverage. (Default:
332 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
333 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
334 #    reports to be created. (Default:
335 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
336 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
337 #    (Default: empty)
338 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
339 #    instance. (Default: empty)
340 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
341 #
342 # The generated report will be titled using the $(PACKAGE_NAME) and
343 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
344 # use the git-version-gen script, available online.
345
346 # Optional variables
347 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
348 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
349 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
350 CODE_COVERAGE_LCOV_OPTIONS ?=
351 CODE_COVERAGE_GENHTML_OPTIONS ?=
352 CODE_COVERAGE_IGNORE_PATTERN ?=
353
354 code_coverage_quiet = $(code_coverage_quiet_$(V))
355 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
356 code_coverage_quiet_0 = --quiet
357
358 # Use recursive makes in order to ignore errors during check
359 check-code-coverage:
360 ifdef CODE_COVERAGE_ENABLED
361         -$(MAKE) $(AM_MAKEFLAGS) -k check
362         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
363 else
364         @echo "Need to reconfigure with --enable-code-coverage"
365 endif
366
367 # Capture code coverage data
368 code-coverage-capture: code-coverage-capture-hook
369 ifdef CODE_COVERAGE_ENABLED
370         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
371         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
372         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
373         LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
374         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
375 else
376         @echo "Need to reconfigure with --enable-code-coverage"
377 endif
378
379 # Hook rule executed before code-coverage-capture, overridable by the user
380 code-coverage-capture-hook:
381
382 clean: code-coverage-clean
383 code-coverage-clean:
384         -$(LCOV) --directory $(top_builddir) -z
385         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
386         -find . -name "*.gcda" -o -name "*.gcov" -delete
387
388 GITIGNOREFILES ?=
389 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
390
391 DISTCHECK_CONFIGURE_FLAGS ?=
392 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
393
394 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
395 '
396
397         AC_SUBST([GNOME_CODE_COVERAGE_RULES])
398         m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([GNOME_CODE_COVERAGE_RULES])])
399 ])
400
401 dnl GNOME_COMPILE_WARNINGS
402 dnl Turn on many useful compiler warnings and substitute the result into
403 dnl WARN_CFLAGS
404 dnl For now, only works on GCC
405 AC_DEFUN([GNOME_COMPILE_WARNINGS],[
406     dnl ******************************
407     dnl More compiler warnings
408     dnl ******************************
409
410     AC_ARG_ENABLE(compile-warnings, 
411                   AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
412                                  [Turn on compiler warnings]),,
413                   [enable_compile_warnings="m4_default([$1],[yes])"])
414
415     if test "x$GCC" != xyes; then
416         enable_compile_warnings=no
417     fi
418
419     warning_flags=
420     realsave_CFLAGS="$CFLAGS"
421
422     dnl These are warning flags that aren't marked as fatal.  Can be
423     dnl overridden on a per-project basis with -Wno-foo.
424     base_warn_flags=" \
425         -Wall \
426         -Wstrict-prototypes \
427         -Wnested-externs \
428     "
429
430     dnl These compiler flags typically indicate very broken or suspicious
431     dnl code.  Some of them such as implicit-function-declaration are
432     dnl just not default because gcc compiles a lot of legacy code.
433     dnl We choose to make this set into explicit errors.
434     base_error_flags=" \
435         -Werror=missing-prototypes \
436         -Werror=implicit-function-declaration \
437         -Werror=pointer-arith \
438         -Werror=init-self \
439         -Werror=format-security \
440         -Werror=format=2 \
441         -Werror=missing-include-dirs \
442     "
443
444     case "$enable_compile_warnings" in
445     no)
446         warning_flags=
447         ;;
448     minimum)
449         warning_flags="-Wall"
450         ;;
451     yes)
452         warning_flags="$base_warn_flags $base_error_flags"
453         ;;
454     maximum|error)
455         warning_flags="$base_warn_flags $base_error_flags"
456         ;;
457     *)
458         AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
459         ;;
460     esac
461
462     if test "$enable_compile_warnings" = "error" ; then
463         warning_flags="$warning_flags -Werror"
464     fi
465
466     dnl Check whether GCC supports the warning options
467     for option in $warning_flags; do
468         save_CFLAGS="$CFLAGS"
469         CFLAGS="$CFLAGS $option"
470         AC_MSG_CHECKING([whether gcc understands $option])
471         AC_TRY_COMPILE([], [],
472             has_option=yes,
473             has_option=no,)
474         CFLAGS="$save_CFLAGS"
475         AC_MSG_RESULT([$has_option])
476         if test $has_option = yes; then
477             tested_warning_flags="$tested_warning_flags $option"
478         fi
479         unset has_option
480         unset save_CFLAGS
481     done
482     unset option
483     CFLAGS="$realsave_CFLAGS"
484     AC_MSG_CHECKING(what warning flags to pass to the C compiler)
485     AC_MSG_RESULT($tested_warning_flags)
486
487     AC_ARG_ENABLE(iso-c,
488                   AC_HELP_STRING([--enable-iso-c],
489                                  [Try to warn if code is not ISO C ]),,
490                   [enable_iso_c=no])
491
492     AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
493     complCFLAGS=
494     if test "x$enable_iso_c" != "xno"; then
495         if test "x$GCC" = "xyes"; then
496         case " $CFLAGS " in
497             *[\ \       ]-ansi[\ \      ]*) ;;
498             *) complCFLAGS="$complCFLAGS -ansi" ;;
499         esac
500         case " $CFLAGS " in
501             *[\ \       ]-pedantic[\ \  ]*) ;;
502             *) complCFLAGS="$complCFLAGS -pedantic" ;;
503         esac
504         fi
505     fi
506     AC_MSG_RESULT($complCFLAGS)
507
508     WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
509     AC_SUBST(WARN_CFLAGS)
510 ])
511
512 dnl For C++, do basically the same thing.
513
514 AC_DEFUN([GNOME_CXX_WARNINGS],[
515   AC_ARG_ENABLE(cxx-warnings,
516                 AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
517                                [Turn on compiler warnings.]),,
518                 [enable_cxx_warnings="m4_default([$1],[minimum])"])
519
520   AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
521   warnCXXFLAGS=
522   if test "x$GXX" != xyes; then
523     enable_cxx_warnings=no
524   fi
525   if test "x$enable_cxx_warnings" != "xno"; then
526     if test "x$GXX" = "xyes"; then
527       case " $CXXFLAGS " in
528       *[\ \     ]-Wall[\ \      ]*) ;;
529       *) warnCXXFLAGS="-Wall -Wno-unused" ;;
530       esac
531
532       ## -W is not all that useful.  And it cannot be controlled
533       ## with individual -Wno-xxx flags, unlike -Wall
534       if test "x$enable_cxx_warnings" = "xyes"; then
535         warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
536       fi
537     fi
538   fi
539   AC_MSG_RESULT($warnCXXFLAGS)
540
541    AC_ARG_ENABLE(iso-cxx,
542                  AC_HELP_STRING([--enable-iso-cxx],
543                                 [Try to warn if code is not ISO C++ ]),,
544                  [enable_iso_cxx=no])
545
546    AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
547    complCXXFLAGS=
548    if test "x$enable_iso_cxx" != "xno"; then
549      if test "x$GXX" = "xyes"; then
550       case " $CXXFLAGS " in
551       *[\ \     ]-ansi[\ \      ]*) ;;
552       *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
553       esac
554
555       case " $CXXFLAGS " in
556       *[\ \     ]-pedantic[\ \  ]*) ;;
557       *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
558       esac
559      fi
560    fi
561   AC_MSG_RESULT($complCXXFLAGS)
562
563   WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
564   AC_SUBST(WARN_CXXFLAGS)
565 ])
566
567 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
568 # serial 1 (pkg-config-0.24)
569
570 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
571 #
572 # This program is free software; you can redistribute it and/or modify
573 # it under the terms of the GNU General Public License as published by
574 # the Free Software Foundation; either version 2 of the License, or
575 # (at your option) any later version.
576 #
577 # This program is distributed in the hope that it will be useful, but
578 # WITHOUT ANY WARRANTY; without even the implied warranty of
579 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
580 # General Public License for more details.
581 #
582 # You should have received a copy of the GNU General Public License
583 # along with this program; if not, write to the Free Software
584 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
585 #
586 # As a special exception to the GNU General Public License, if you
587 # distribute this file as part of a program that contains a
588 # configuration script generated by Autoconf, you may include it under
589 # the same distribution terms that you use for the rest of that program.
590
591 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
592 # ----------------------------------
593 AC_DEFUN([PKG_PROG_PKG_CONFIG],
594 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
595 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
596 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
597 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
598 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
599 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
600
601 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
602         AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
603 fi
604 if test -n "$PKG_CONFIG"; then
605         _pkg_min_version=m4_default([$1], [0.9.0])
606         AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
607         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
608                 AC_MSG_RESULT([yes])
609         else
610                 AC_MSG_RESULT([no])
611                 PKG_CONFIG=""
612         fi
613 fi[]dnl
614 ])# PKG_PROG_PKG_CONFIG
615
616 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
617 #
618 # Check to see whether a particular set of modules exists.  Similar
619 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
620 #
621 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
622 # only at the first occurence in configure.ac, so if the first place
623 # it's called might be skipped (such as if it is within an "if", you
624 # have to call PKG_CHECK_EXISTS manually
625 # --------------------------------------------------------------
626 AC_DEFUN([PKG_CHECK_EXISTS],
627 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
628 if test -n "$PKG_CONFIG" && \
629     AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
630   m4_default([$2], [:])
631 m4_ifvaln([$3], [else
632   $3])dnl
633 fi])
634
635 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
636 # ---------------------------------------------
637 m4_define([_PKG_CONFIG],
638 [if test -n "$$1"; then
639     pkg_cv_[]$1="$$1"
640  elif test -n "$PKG_CONFIG"; then
641     PKG_CHECK_EXISTS([$3],
642                      [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
643                       test "x$?" != "x0" && pkg_failed=yes ],
644                      [pkg_failed=yes])
645  else
646     pkg_failed=untried
647 fi[]dnl
648 ])# _PKG_CONFIG
649
650 # _PKG_SHORT_ERRORS_SUPPORTED
651 # -----------------------------
652 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
653 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
654 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
655         _pkg_short_errors_supported=yes
656 else
657         _pkg_short_errors_supported=no
658 fi[]dnl
659 ])# _PKG_SHORT_ERRORS_SUPPORTED
660
661
662 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
663 # [ACTION-IF-NOT-FOUND])
664 #
665 #
666 # Note that if there is a possibility the first call to
667 # PKG_CHECK_MODULES might not happen, you should be sure to include an
668 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
669 #
670 #
671 # --------------------------------------------------------------
672 AC_DEFUN([PKG_CHECK_MODULES],
673 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
674 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
675 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
676
677 pkg_failed=no
678 AC_MSG_CHECKING([for $1])
679
680 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
681 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
682
683 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
684 and $1[]_LIBS to avoid the need to call pkg-config.
685 See the pkg-config man page for more details.])
686
687 if test $pkg_failed = yes; then
688         AC_MSG_RESULT([no])
689         _PKG_SHORT_ERRORS_SUPPORTED
690         if test $_pkg_short_errors_supported = yes; then
691                 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
692         else 
693                 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
694         fi
695         # Put the nasty error message in config.log where it belongs
696         echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
697
698         m4_default([$4], [AC_MSG_ERROR(
699 [Package requirements ($2) were not met:
700
701 $$1_PKG_ERRORS
702
703 Consider adjusting the PKG_CONFIG_PATH environment variable if you
704 installed software in a non-standard prefix.
705
706 _PKG_TEXT])[]dnl
707         ])
708 elif test $pkg_failed = untried; then
709         AC_MSG_RESULT([no])
710         m4_default([$4], [AC_MSG_FAILURE(
711 [The pkg-config script could not be found or is too old.  Make sure it
712 is in your PATH or set the PKG_CONFIG environment variable to the full
713 path to pkg-config.
714
715 _PKG_TEXT
716
717 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
718         ])
719 else
720         $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
721         $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
722         AC_MSG_RESULT([yes])
723         $3
724 fi[]dnl
725 ])# PKG_CHECK_MODULES
726
727 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
728 #
729 # This file is free software; the Free Software Foundation
730 # gives unlimited permission to copy and/or distribute it,
731 # with or without modifications, as long as this notice is preserved.
732
733 # AM_AUTOMAKE_VERSION(VERSION)
734 # ----------------------------
735 # Automake X.Y traces this macro to ensure aclocal.m4 has been
736 # generated from the m4 files accompanying Automake X.Y.
737 # (This private macro should not be called outside this file.)
738 AC_DEFUN([AM_AUTOMAKE_VERSION],
739 [am__api_version='1.13'
740 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
741 dnl require some minimum version.  Point them to the right macro.
742 m4_if([$1], [1.13.2], [],
743       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
744 ])
745
746 # _AM_AUTOCONF_VERSION(VERSION)
747 # -----------------------------
748 # aclocal traces this macro to find the Autoconf version.
749 # This is a private macro too.  Using m4_define simplifies
750 # the logic in aclocal, which can simply ignore this definition.
751 m4_define([_AM_AUTOCONF_VERSION], [])
752
753 # AM_SET_CURRENT_AUTOMAKE_VERSION
754 # -------------------------------
755 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
756 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
757 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
758 [AM_AUTOMAKE_VERSION([1.13.2])dnl
759 m4_ifndef([AC_AUTOCONF_VERSION],
760   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
761 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
762
763 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
764
765 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
766 #
767 # This file is free software; the Free Software Foundation
768 # gives unlimited permission to copy and/or distribute it,
769 # with or without modifications, as long as this notice is preserved.
770
771 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
772 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
773 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
774 #
775 # Of course, Automake must honor this variable whenever it calls a
776 # tool from the auxiliary directory.  The problem is that $srcdir (and
777 # therefore $ac_aux_dir as well) can be either absolute or relative,
778 # depending on how configure is run.  This is pretty annoying, since
779 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
780 # source directory, any form will work fine, but in subdirectories a
781 # relative path needs to be adjusted first.
782 #
783 # $ac_aux_dir/missing
784 #    fails when called from a subdirectory if $ac_aux_dir is relative
785 # $top_srcdir/$ac_aux_dir/missing
786 #    fails if $ac_aux_dir is absolute,
787 #    fails when called from a subdirectory in a VPATH build with
788 #          a relative $ac_aux_dir
789 #
790 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
791 # are both prefixed by $srcdir.  In an in-source build this is usually
792 # harmless because $srcdir is '.', but things will broke when you
793 # start a VPATH build or use an absolute $srcdir.
794 #
795 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
796 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
797 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
798 # and then we would define $MISSING as
799 #   MISSING="\${SHELL} $am_aux_dir/missing"
800 # This will work as long as MISSING is not called from configure, because
801 # unfortunately $(top_srcdir) has no meaning in configure.
802 # However there are other variables, like CC, which are often used in
803 # configure, and could therefore not use this "fixed" $ac_aux_dir.
804 #
805 # Another solution, used here, is to always expand $ac_aux_dir to an
806 # absolute PATH.  The drawback is that using absolute paths prevent a
807 # configured tree to be moved without reconfiguration.
808
809 AC_DEFUN([AM_AUX_DIR_EXPAND],
810 [dnl Rely on autoconf to set up CDPATH properly.
811 AC_PREREQ([2.50])dnl
812 # expand $ac_aux_dir to an absolute path
813 am_aux_dir=`cd $ac_aux_dir && pwd`
814 ])
815
816 # AM_CONDITIONAL                                            -*- Autoconf -*-
817
818 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
819 #
820 # This file is free software; the Free Software Foundation
821 # gives unlimited permission to copy and/or distribute it,
822 # with or without modifications, as long as this notice is preserved.
823
824 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
825 # -------------------------------------
826 # Define a conditional.
827 AC_DEFUN([AM_CONDITIONAL],
828 [AC_PREREQ([2.52])dnl
829  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
830        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
831 AC_SUBST([$1_TRUE])dnl
832 AC_SUBST([$1_FALSE])dnl
833 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
834 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
835 m4_define([_AM_COND_VALUE_$1], [$2])dnl
836 if $2; then
837   $1_TRUE=
838   $1_FALSE='#'
839 else
840   $1_TRUE='#'
841   $1_FALSE=
842 fi
843 AC_CONFIG_COMMANDS_PRE(
844 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
845   AC_MSG_ERROR([[conditional "$1" was never defined.
846 Usually this means the macro was only invoked conditionally.]])
847 fi])])
848
849 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
850 #
851 # This file is free software; the Free Software Foundation
852 # gives unlimited permission to copy and/or distribute it,
853 # with or without modifications, as long as this notice is preserved.
854
855
856 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
857 # written in clear, in which case automake, when reading aclocal.m4,
858 # will think it sees a *use*, and therefore will trigger all it's
859 # C support machinery.  Also note that it means that autoscan, seeing
860 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
861
862
863 # _AM_DEPENDENCIES(NAME)
864 # ----------------------
865 # See how the compiler implements dependency checking.
866 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
867 # We try a few techniques and use that to set a single cache variable.
868 #
869 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
870 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
871 # dependency, and given that the user is not expected to run this macro,
872 # just rely on AC_PROG_CC.
873 AC_DEFUN([_AM_DEPENDENCIES],
874 [AC_REQUIRE([AM_SET_DEPDIR])dnl
875 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
876 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
877 AC_REQUIRE([AM_DEP_TRACK])dnl
878
879 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
880       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
881       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
882       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
883       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
884       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
885                     [depcc="$$1"   am_compiler_list=])
886
887 AC_CACHE_CHECK([dependency style of $depcc],
888                [am_cv_$1_dependencies_compiler_type],
889 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
890   # We make a subdir and do the tests there.  Otherwise we can end up
891   # making bogus files that we don't know about and never remove.  For
892   # instance it was reported that on HP-UX the gcc test will end up
893   # making a dummy file named 'D' -- because '-MD' means "put the output
894   # in D".
895   rm -rf conftest.dir
896   mkdir conftest.dir
897   # Copy depcomp to subdir because otherwise we won't find it if we're
898   # using a relative directory.
899   cp "$am_depcomp" conftest.dir
900   cd conftest.dir
901   # We will build objects and dependencies in a subdirectory because
902   # it helps to detect inapplicable dependency modes.  For instance
903   # both Tru64's cc and ICC support -MD to output dependencies as a
904   # side effect of compilation, but ICC will put the dependencies in
905   # the current directory while Tru64 will put them in the object
906   # directory.
907   mkdir sub
908
909   am_cv_$1_dependencies_compiler_type=none
910   if test "$am_compiler_list" = ""; then
911      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
912   fi
913   am__universal=false
914   m4_case([$1], [CC],
915     [case " $depcc " in #(
916      *\ -arch\ *\ -arch\ *) am__universal=true ;;
917      esac],
918     [CXX],
919     [case " $depcc " in #(
920      *\ -arch\ *\ -arch\ *) am__universal=true ;;
921      esac])
922
923   for depmode in $am_compiler_list; do
924     # Setup a source with many dependencies, because some compilers
925     # like to wrap large dependency lists on column 80 (with \), and
926     # we should not choose a depcomp mode which is confused by this.
927     #
928     # We need to recreate these files for each test, as the compiler may
929     # overwrite some of them when testing with obscure command lines.
930     # This happens at least with the AIX C compiler.
931     : > sub/conftest.c
932     for i in 1 2 3 4 5 6; do
933       echo '#include "conftst'$i'.h"' >> sub/conftest.c
934       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
935       # Solaris 10 /bin/sh.
936       echo '/* dummy */' > sub/conftst$i.h
937     done
938     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
939
940     # We check with '-c' and '-o' for the sake of the "dashmstdout"
941     # mode.  It turns out that the SunPro C++ compiler does not properly
942     # handle '-M -o', and we need to detect this.  Also, some Intel
943     # versions had trouble with output in subdirs.
944     am__obj=sub/conftest.${OBJEXT-o}
945     am__minus_obj="-o $am__obj"
946     case $depmode in
947     gcc)
948       # This depmode causes a compiler race in universal mode.
949       test "$am__universal" = false || continue
950       ;;
951     nosideeffect)
952       # After this tag, mechanisms are not by side-effect, so they'll
953       # only be used when explicitly requested.
954       if test "x$enable_dependency_tracking" = xyes; then
955         continue
956       else
957         break
958       fi
959       ;;
960     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
961       # This compiler won't grok '-c -o', but also, the minuso test has
962       # not run yet.  These depmodes are late enough in the game, and
963       # so weak that their functioning should not be impacted.
964       am__obj=conftest.${OBJEXT-o}
965       am__minus_obj=
966       ;;
967     none) break ;;
968     esac
969     if depmode=$depmode \
970        source=sub/conftest.c object=$am__obj \
971        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
972        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
973          >/dev/null 2>conftest.err &&
974        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
975        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
976        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
977        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
978       # icc doesn't choke on unknown options, it will just issue warnings
979       # or remarks (even with -Werror).  So we grep stderr for any message
980       # that says an option was ignored or not supported.
981       # When given -MP, icc 7.0 and 7.1 complain thusly:
982       #   icc: Command line warning: ignoring option '-M'; no argument required
983       # The diagnosis changed in icc 8.0:
984       #   icc: Command line remark: option '-MP' not supported
985       if (grep 'ignoring option' conftest.err ||
986           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
987         am_cv_$1_dependencies_compiler_type=$depmode
988         break
989       fi
990     fi
991   done
992
993   cd ..
994   rm -rf conftest.dir
995 else
996   am_cv_$1_dependencies_compiler_type=none
997 fi
998 ])
999 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1000 AM_CONDITIONAL([am__fastdep$1], [
1001   test "x$enable_dependency_tracking" != xno \
1002   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1003 ])
1004
1005
1006 # AM_SET_DEPDIR
1007 # -------------
1008 # Choose a directory name for dependency files.
1009 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1010 AC_DEFUN([AM_SET_DEPDIR],
1011 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1012 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1013 ])
1014
1015
1016 # AM_DEP_TRACK
1017 # ------------
1018 AC_DEFUN([AM_DEP_TRACK],
1019 [AC_ARG_ENABLE([dependency-tracking], [dnl
1020 AS_HELP_STRING(
1021   [--enable-dependency-tracking],
1022   [do not reject slow dependency extractors])
1023 AS_HELP_STRING(
1024   [--disable-dependency-tracking],
1025   [speeds up one-time build])])
1026 if test "x$enable_dependency_tracking" != xno; then
1027   am_depcomp="$ac_aux_dir/depcomp"
1028   AMDEPBACKSLASH='\'
1029   am__nodep='_no'
1030 fi
1031 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1032 AC_SUBST([AMDEPBACKSLASH])dnl
1033 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1034 AC_SUBST([am__nodep])dnl
1035 _AM_SUBST_NOTMAKE([am__nodep])dnl
1036 ])
1037
1038 # Generate code to set up dependency tracking.              -*- Autoconf -*-
1039
1040 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1041 #
1042 # This file is free software; the Free Software Foundation
1043 # gives unlimited permission to copy and/or distribute it,
1044 # with or without modifications, as long as this notice is preserved.
1045
1046
1047 # _AM_OUTPUT_DEPENDENCY_COMMANDS
1048 # ------------------------------
1049 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1050 [{
1051   # Older Autoconf quotes --file arguments for eval, but not when files
1052   # are listed without --file.  Let's play safe and only enable the eval
1053   # if we detect the quoting.
1054   case $CONFIG_FILES in
1055   *\'*) eval set x "$CONFIG_FILES" ;;
1056   *)   set x $CONFIG_FILES ;;
1057   esac
1058   shift
1059   for mf
1060   do
1061     # Strip MF so we end up with the name of the file.
1062     mf=`echo "$mf" | sed -e 's/:.*$//'`
1063     # Check whether this is an Automake generated Makefile or not.
1064     # We used to match only the files named 'Makefile.in', but
1065     # some people rename them; so instead we look at the file content.
1066     # Grep'ing the first line is not enough: some people post-process
1067     # each Makefile.in and add a new line on top of each file to say so.
1068     # Grep'ing the whole file is not good either: AIX grep has a line
1069     # limit of 2048, but all sed's we know have understand at least 4000.
1070     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1071       dirpart=`AS_DIRNAME("$mf")`
1072     else
1073       continue
1074     fi
1075     # Extract the definition of DEPDIR, am__include, and am__quote
1076     # from the Makefile without running 'make'.
1077     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1078     test -z "$DEPDIR" && continue
1079     am__include=`sed -n 's/^am__include = //p' < "$mf"`
1080     test -z "$am__include" && continue
1081     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1082     # Find all dependency output files, they are included files with
1083     # $(DEPDIR) in their names.  We invoke sed twice because it is the
1084     # simplest approach to changing $(DEPDIR) to its actual value in the
1085     # expansion.
1086     for file in `sed -n "
1087       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1088          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1089       # Make sure the directory exists.
1090       test -f "$dirpart/$file" && continue
1091       fdir=`AS_DIRNAME(["$file"])`
1092       AS_MKDIR_P([$dirpart/$fdir])
1093       # echo "creating $dirpart/$file"
1094       echo '# dummy' > "$dirpart/$file"
1095     done
1096   done
1097 }
1098 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1099
1100
1101 # AM_OUTPUT_DEPENDENCY_COMMANDS
1102 # -----------------------------
1103 # This macro should only be invoked once -- use via AC_REQUIRE.
1104 #
1105 # This code is only required when automatic dependency tracking
1106 # is enabled.  FIXME.  This creates each '.P' file that we will
1107 # need in order to bootstrap the dependency handling code.
1108 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1109 [AC_CONFIG_COMMANDS([depfiles],
1110      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1111      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1112 ])
1113
1114 # Do all the work for Automake.                             -*- Autoconf -*-
1115
1116 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1117 #
1118 # This file is free software; the Free Software Foundation
1119 # gives unlimited permission to copy and/or distribute it,
1120 # with or without modifications, as long as this notice is preserved.
1121
1122 # This macro actually does too much.  Some checks are only needed if
1123 # your package does certain things.  But this isn't really a big deal.
1124
1125 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1126 # AM_INIT_AUTOMAKE([OPTIONS])
1127 # -----------------------------------------------
1128 # The call with PACKAGE and VERSION arguments is the old style
1129 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
1130 # and VERSION should now be passed to AC_INIT and removed from
1131 # the call to AM_INIT_AUTOMAKE.
1132 # We support both call styles for the transition.  After
1133 # the next Automake release, Autoconf can make the AC_INIT
1134 # arguments mandatory, and then we can depend on a new Autoconf
1135 # release and drop the old call support.
1136 AC_DEFUN([AM_INIT_AUTOMAKE],
1137 [AC_PREREQ([2.65])dnl
1138 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1139 dnl the ones we care about.
1140 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1141 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1142 AC_REQUIRE([AC_PROG_INSTALL])dnl
1143 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1144   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1145   # is not polluted with repeated "-I."
1146   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1147   # test to see if srcdir already configured
1148   if test -f $srcdir/config.status; then
1149     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1150   fi
1151 fi
1152
1153 # test whether we have cygpath
1154 if test -z "$CYGPATH_W"; then
1155   if (cygpath --version) >/dev/null 2>/dev/null; then
1156     CYGPATH_W='cygpath -w'
1157   else
1158     CYGPATH_W=echo
1159   fi
1160 fi
1161 AC_SUBST([CYGPATH_W])
1162
1163 # Define the identity of the package.
1164 dnl Distinguish between old-style and new-style calls.
1165 m4_ifval([$2],
1166 [AC_DIAGNOSE([obsolete],
1167              [$0: two- and three-arguments forms are deprecated.])
1168 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1169  AC_SUBST([PACKAGE], [$1])dnl
1170  AC_SUBST([VERSION], [$2])],
1171 [_AM_SET_OPTIONS([$1])dnl
1172 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1173 m4_if(
1174   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1175   [ok:ok],,
1176   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1177  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1178  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1179
1180 _AM_IF_OPTION([no-define],,
1181 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1182  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1183
1184 # Some tools Automake needs.
1185 AC_REQUIRE([AM_SANITY_CHECK])dnl
1186 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1187 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1188 AM_MISSING_PROG([AUTOCONF], [autoconf])
1189 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1190 AM_MISSING_PROG([AUTOHEADER], [autoheader])
1191 AM_MISSING_PROG([MAKEINFO], [makeinfo])
1192 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1193 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1194 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1195 # For better backward compatibility.  To be removed once Automake 1.9.x
1196 # dies out for good.  For more background, see:
1197 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1198 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1199 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1200 # We need awk for the "check" target.  The system "awk" is bad on
1201 # some platforms.
1202 AC_REQUIRE([AC_PROG_AWK])dnl
1203 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1204 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1205 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1206               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1207                              [_AM_PROG_TAR([v7])])])
1208 _AM_IF_OPTION([no-dependencies],,
1209 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1210                   [_AM_DEPENDENCIES([CC])],
1211                   [m4_define([AC_PROG_CC],
1212                              m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1213 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1214                   [_AM_DEPENDENCIES([CXX])],
1215                   [m4_define([AC_PROG_CXX],
1216                              m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1217 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1218                   [_AM_DEPENDENCIES([OBJC])],
1219                   [m4_define([AC_PROG_OBJC],
1220                              m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1221 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1222                   [_AM_DEPENDENCIES([OBJCXX])],
1223                   [m4_define([AC_PROG_OBJCXX],
1224                              m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1225 ])
1226 AC_REQUIRE([AM_SILENT_RULES])dnl
1227 dnl The testsuite driver may need to know about EXEEXT, so add the
1228 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
1229 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1230 AC_CONFIG_COMMANDS_PRE(dnl
1231 [m4_provide_if([_AM_COMPILER_EXEEXT],
1232   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1233 ])
1234
1235 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1236 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1237 dnl mangled by Autoconf and run in a shell conditional statement.
1238 m4_define([_AC_COMPILER_EXEEXT],
1239 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1240
1241
1242 # When config.status generates a header, we must update the stamp-h file.
1243 # This file resides in the same directory as the config header
1244 # that is generated.  The stamp files are numbered to have different names.
1245
1246 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1247 # loop where config.status creates the headers, so we can generate
1248 # our stamp files there.
1249 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1250 [# Compute $1's index in $config_headers.
1251 _am_arg=$1
1252 _am_stamp_count=1
1253 for _am_header in $config_headers :; do
1254   case $_am_header in
1255     $_am_arg | $_am_arg:* )
1256       break ;;
1257     * )
1258       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1259   esac
1260 done
1261 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1262
1263 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1264 #
1265 # This file is free software; the Free Software Foundation
1266 # gives unlimited permission to copy and/or distribute it,
1267 # with or without modifications, as long as this notice is preserved.
1268
1269 # AM_PROG_INSTALL_SH
1270 # ------------------
1271 # Define $install_sh.
1272 AC_DEFUN([AM_PROG_INSTALL_SH],
1273 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1274 if test x"${install_sh}" != xset; then
1275   case $am_aux_dir in
1276   *\ * | *\     *)
1277     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1278   *)
1279     install_sh="\${SHELL} $am_aux_dir/install-sh"
1280   esac
1281 fi
1282 AC_SUBST([install_sh])])
1283
1284 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
1285 #
1286 # This file is free software; the Free Software Foundation
1287 # gives unlimited permission to copy and/or distribute it,
1288 # with or without modifications, as long as this notice is preserved.
1289
1290 # Check whether the underlying file-system supports filenames
1291 # with a leading dot.  For instance MS-DOS doesn't.
1292 AC_DEFUN([AM_SET_LEADING_DOT],
1293 [rm -rf .tst 2>/dev/null
1294 mkdir .tst 2>/dev/null
1295 if test -d .tst; then
1296   am__leading_dot=.
1297 else
1298   am__leading_dot=_
1299 fi
1300 rmdir .tst 2>/dev/null
1301 AC_SUBST([am__leading_dot])])
1302
1303 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
1304
1305 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1306 #
1307 # This file is free software; the Free Software Foundation
1308 # gives unlimited permission to copy and/or distribute it,
1309 # with or without modifications, as long as this notice is preserved.
1310
1311 # AM_MAKE_INCLUDE()
1312 # -----------------
1313 # Check to see how make treats includes.
1314 AC_DEFUN([AM_MAKE_INCLUDE],
1315 [am_make=${MAKE-make}
1316 cat > confinc << 'END'
1317 am__doit:
1318         @echo this is the am__doit target
1319 .PHONY: am__doit
1320 END
1321 # If we don't find an include directive, just comment out the code.
1322 AC_MSG_CHECKING([for style of include used by $am_make])
1323 am__include="#"
1324 am__quote=
1325 _am_result=none
1326 # First try GNU make style include.
1327 echo "include confinc" > confmf
1328 # Ignore all kinds of additional output from 'make'.
1329 case `$am_make -s -f confmf 2> /dev/null` in #(
1330 *the\ am__doit\ target*)
1331   am__include=include
1332   am__quote=
1333   _am_result=GNU
1334   ;;
1335 esac
1336 # Now try BSD make style include.
1337 if test "$am__include" = "#"; then
1338    echo '.include "confinc"' > confmf
1339    case `$am_make -s -f confmf 2> /dev/null` in #(
1340    *the\ am__doit\ target*)
1341      am__include=.include
1342      am__quote="\""
1343      _am_result=BSD
1344      ;;
1345    esac
1346 fi
1347 AC_SUBST([am__include])
1348 AC_SUBST([am__quote])
1349 AC_MSG_RESULT([$_am_result])
1350 rm -f confinc confmf
1351 ])
1352
1353 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1354 #
1355 # This file is free software; the Free Software Foundation
1356 # gives unlimited permission to copy and/or distribute it,
1357 # with or without modifications, as long as this notice is preserved.
1358
1359 # AM_PROG_CC_C_O
1360 # --------------
1361 # Like AC_PROG_CC_C_O, but changed for automake.
1362 AC_DEFUN([AM_PROG_CC_C_O],
1363 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
1364 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1365 AC_REQUIRE_AUX_FILE([compile])dnl
1366 # FIXME: we rely on the cache variable name because
1367 # there is no other way.
1368 set dummy $CC
1369 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1370 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1371 if test "$am_t" != yes; then
1372    # Losing compiler, so override with the script.
1373    # FIXME: It is wrong to rewrite CC.
1374    # But if we don't then we get into trouble of one sort or another.
1375    # A longer-term fix would be to have automake use am__CC in this case,
1376    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1377    CC="$am_aux_dir/compile $CC"
1378 fi
1379 dnl Make sure AC_PROG_CC is never called again, or it will override our
1380 dnl setting of CC.
1381 m4_define([AC_PROG_CC],
1382           [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1383 ])
1384
1385 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1386
1387 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
1388 #
1389 # This file is free software; the Free Software Foundation
1390 # gives unlimited permission to copy and/or distribute it,
1391 # with or without modifications, as long as this notice is preserved.
1392
1393 # AM_MISSING_PROG(NAME, PROGRAM)
1394 # ------------------------------
1395 AC_DEFUN([AM_MISSING_PROG],
1396 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1397 $1=${$1-"${am_missing_run}$2"}
1398 AC_SUBST($1)])
1399
1400 # AM_MISSING_HAS_RUN
1401 # ------------------
1402 # Define MISSING if not defined so far and test if it is modern enough.
1403 # If it is, set am_missing_run to use it, otherwise, to nothing.
1404 AC_DEFUN([AM_MISSING_HAS_RUN],
1405 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1406 AC_REQUIRE_AUX_FILE([missing])dnl
1407 if test x"${MISSING+set}" != xset; then
1408   case $am_aux_dir in
1409   *\ * | *\     *)
1410     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1411   *)
1412     MISSING="\${SHELL} $am_aux_dir/missing" ;;
1413   esac
1414 fi
1415 # Use eval to expand $SHELL
1416 if eval "$MISSING --is-lightweight"; then
1417   am_missing_run="$MISSING "
1418 else
1419   am_missing_run=
1420   AC_MSG_WARN(['missing' script is too old or missing])
1421 fi
1422 ])
1423
1424 # Helper functions for option handling.                     -*- Autoconf -*-
1425
1426 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1427 #
1428 # This file is free software; the Free Software Foundation
1429 # gives unlimited permission to copy and/or distribute it,
1430 # with or without modifications, as long as this notice is preserved.
1431
1432 # _AM_MANGLE_OPTION(NAME)
1433 # -----------------------
1434 AC_DEFUN([_AM_MANGLE_OPTION],
1435 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1436
1437 # _AM_SET_OPTION(NAME)
1438 # --------------------
1439 # Set option NAME.  Presently that only means defining a flag for this option.
1440 AC_DEFUN([_AM_SET_OPTION],
1441 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1442
1443 # _AM_SET_OPTIONS(OPTIONS)
1444 # ------------------------
1445 # OPTIONS is a space-separated list of Automake options.
1446 AC_DEFUN([_AM_SET_OPTIONS],
1447 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1448
1449 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1450 # -------------------------------------------
1451 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1452 AC_DEFUN([_AM_IF_OPTION],
1453 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1454
1455 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1456 #
1457 # This file is free software; the Free Software Foundation
1458 # gives unlimited permission to copy and/or distribute it,
1459 # with or without modifications, as long as this notice is preserved.
1460
1461
1462 # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1463 # ---------------------------------------------------------------------------
1464 # Adds support for distributing Python modules and packages.  To
1465 # install modules, copy them to $(pythondir), using the python_PYTHON
1466 # automake variable.  To install a package with the same name as the
1467 # automake package, install to $(pkgpythondir), or use the
1468 # pkgpython_PYTHON automake variable.
1469 #
1470 # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
1471 # locations to install python extension modules (shared libraries).
1472 # Another macro is required to find the appropriate flags to compile
1473 # extension modules.
1474 #
1475 # If your package is configured with a different prefix to python,
1476 # users will have to add the install directory to the PYTHONPATH
1477 # environment variable, or create a .pth file (see the python
1478 # documentation for details).
1479 #
1480 # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
1481 # cause an error if the version of python installed on the system
1482 # doesn't meet the requirement.  MINIMUM-VERSION should consist of
1483 # numbers and dots only.
1484 AC_DEFUN([AM_PATH_PYTHON],
1485  [
1486   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
1487   dnl supported. (2.0 was released on October 16, 2000).
1488   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
1489 [python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
1490  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
1491
1492   AC_ARG_VAR([PYTHON], [the Python interpreter])
1493
1494   m4_if([$1],[],[
1495     dnl No version check is needed.
1496     # Find any Python interpreter.
1497     if test -z "$PYTHON"; then
1498       AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
1499     fi
1500     am_display_PYTHON=python
1501   ], [
1502     dnl A version check is needed.
1503     if test -n "$PYTHON"; then
1504       # If the user set $PYTHON, use it and don't search something else.
1505       AC_MSG_CHECKING([whether $PYTHON version is >= $1])
1506       AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
1507                               [AC_MSG_RESULT([yes])],
1508                               [AC_MSG_RESULT([no])
1509                                AC_MSG_ERROR([Python interpreter is too old])])
1510       am_display_PYTHON=$PYTHON
1511     else
1512       # Otherwise, try each interpreter until we find one that satisfies
1513       # VERSION.
1514       AC_CACHE_CHECK([for a Python interpreter with version >= $1],
1515         [am_cv_pathless_PYTHON],[
1516         for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
1517           test "$am_cv_pathless_PYTHON" = none && break
1518           AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
1519         done])
1520       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1521       if test "$am_cv_pathless_PYTHON" = none; then
1522         PYTHON=:
1523       else
1524         AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
1525       fi
1526       am_display_PYTHON=$am_cv_pathless_PYTHON
1527     fi
1528   ])
1529
1530   if test "$PYTHON" = :; then
1531   dnl Run any user-specified action, or abort.
1532     m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
1533   else
1534
1535   dnl Query Python for its version number.  Getting [:3] seems to be
1536   dnl the best way to do this; it's what "site.py" does in the standard
1537   dnl library.
1538
1539   AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
1540     [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
1541   AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
1542
1543   dnl Use the values of $prefix and $exec_prefix for the corresponding
1544   dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
1545   dnl distinct variables so they can be overridden if need be.  However,
1546   dnl general consensus is that you shouldn't need this ability.
1547
1548   AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
1549   AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
1550
1551   dnl At times (like when building shared libraries) you may want
1552   dnl to know which OS platform Python thinks this is.
1553
1554   AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
1555     [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
1556   AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
1557
1558   # Just factor out some code duplication.
1559   am_python_setup_sysconfig="\
1560 import sys
1561 # Prefer sysconfig over distutils.sysconfig, for better compatibility
1562 # with python 3.x.  See automake bug#10227.
1563 try:
1564     import sysconfig
1565 except ImportError:
1566     can_use_sysconfig = 0
1567 else:
1568     can_use_sysconfig = 1
1569 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1570 # <https://github.com/pypa/virtualenv/issues/118>
1571 try:
1572     from platform import python_implementation
1573     if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
1574         can_use_sysconfig = 0
1575 except ImportError:
1576     pass"
1577
1578   dnl Set up 4 directories:
1579
1580   dnl pythondir -- where to install python scripts.  This is the
1581   dnl   site-packages directory, not the python standard library
1582   dnl   directory like in previous automake betas.  This behavior
1583   dnl   is more consistent with lispdir.m4 for example.
1584   dnl Query distutils for this directory.
1585   AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1586     [am_cv_python_pythondir],
1587     [if test "x$prefix" = xNONE
1588      then
1589        am_py_prefix=$ac_default_prefix
1590      else
1591        am_py_prefix=$prefix
1592      fi
1593      am_cv_python_pythondir=`$PYTHON -c "
1594 $am_python_setup_sysconfig
1595 if can_use_sysconfig:
1596     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1597 else:
1598     from distutils import sysconfig
1599     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1600 sys.stdout.write(sitedir)"`
1601      case $am_cv_python_pythondir in
1602      $am_py_prefix*)
1603        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1604        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1605        ;;
1606      *)
1607        case $am_py_prefix in
1608          /usr|/System*) ;;
1609          *)
1610           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
1611           ;;
1612        esac
1613        ;;
1614      esac
1615     ])
1616   AC_SUBST([pythondir], [$am_cv_python_pythondir])
1617
1618   dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
1619   dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
1620   dnl   more consistent with the rest of automake.
1621
1622   AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
1623
1624   dnl pyexecdir -- directory for installing python extension modules
1625   dnl   (shared libraries)
1626   dnl Query distutils for this directory.
1627   AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1628     [am_cv_python_pyexecdir],
1629     [if test "x$exec_prefix" = xNONE
1630      then
1631        am_py_exec_prefix=$am_py_prefix
1632      else
1633        am_py_exec_prefix=$exec_prefix
1634      fi
1635      am_cv_python_pyexecdir=`$PYTHON -c "
1636 $am_python_setup_sysconfig
1637 if can_use_sysconfig:
1638     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
1639 else:
1640     from distutils import sysconfig
1641     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
1642 sys.stdout.write(sitedir)"`
1643      case $am_cv_python_pyexecdir in
1644      $am_py_exec_prefix*)
1645        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
1646        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
1647        ;;
1648      *)
1649        case $am_py_exec_prefix in
1650          /usr|/System*) ;;
1651          *)
1652            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
1653            ;;
1654        esac
1655        ;;
1656      esac
1657     ])
1658   AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1659
1660   dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1661
1662   AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
1663
1664   dnl Run any user-specified action.
1665   $2
1666   fi
1667
1668 ])
1669
1670
1671 # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1672 # ---------------------------------------------------------------------------
1673 # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
1674 # Run ACTION-IF-FALSE otherwise.
1675 # This test uses sys.hexversion instead of the string equivalent (first
1676 # word of sys.version), in order to cope with versions such as 2.2c1.
1677 # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
1678 AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1679  [prog="import sys
1680 # split strings by '.' and convert to numeric.  Append some zeros
1681 # because we need at least 4 digits for the hex conversion.
1682 # map returns an iterator in Python 3.0 and a list in 2.x
1683 minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
1684 minverhex = 0
1685 # xrange is not present in Python 3.0 and range returns an iterator
1686 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
1687 sys.exit(sys.hexversion < minverhex)"
1688   AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1689
1690 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1691 #
1692 # This file is free software; the Free Software Foundation
1693 # gives unlimited permission to copy and/or distribute it,
1694 # with or without modifications, as long as this notice is preserved.
1695
1696 # AM_RUN_LOG(COMMAND)
1697 # -------------------
1698 # Run COMMAND, save the exit status in ac_status, and log it.
1699 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1700 AC_DEFUN([AM_RUN_LOG],
1701 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1702    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1703    ac_status=$?
1704    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1705    (exit $ac_status); }])
1706
1707 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
1708
1709 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1710 #
1711 # This file is free software; the Free Software Foundation
1712 # gives unlimited permission to copy and/or distribute it,
1713 # with or without modifications, as long as this notice is preserved.
1714
1715 # AM_SANITY_CHECK
1716 # ---------------
1717 AC_DEFUN([AM_SANITY_CHECK],
1718 [AC_MSG_CHECKING([whether build environment is sane])
1719 # Reject unsafe characters in $srcdir or the absolute working directory
1720 # name.  Accept space and tab only in the latter.
1721 am_lf='
1722 '
1723 case `pwd` in
1724   *[[\\\"\#\$\&\'\`$am_lf]]*)
1725     AC_MSG_ERROR([unsafe absolute working directory name]);;
1726 esac
1727 case $srcdir in
1728   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1729     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1730 esac
1731
1732 # Do 'set' in a subshell so we don't clobber the current shell's
1733 # arguments.  Must try -L first in case configure is actually a
1734 # symlink; some systems play weird games with the mod time of symlinks
1735 # (eg FreeBSD returns the mod time of the symlink's containing
1736 # directory).
1737 if (
1738    am_has_slept=no
1739    for am_try in 1 2; do
1740      echo "timestamp, slept: $am_has_slept" > conftest.file
1741      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1742      if test "$[*]" = "X"; then
1743         # -L didn't work.
1744         set X `ls -t "$srcdir/configure" conftest.file`
1745      fi
1746      if test "$[*]" != "X $srcdir/configure conftest.file" \
1747         && test "$[*]" != "X conftest.file $srcdir/configure"; then
1748
1749         # If neither matched, then we have a broken ls.  This can happen
1750         # if, for instance, CONFIG_SHELL is bash and it inherits a
1751         # broken ls alias from the environment.  This has actually
1752         # happened.  Such a system could not be considered "sane".
1753         AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1754   alias in your environment])
1755      fi
1756      if test "$[2]" = conftest.file || test $am_try -eq 2; then
1757        break
1758      fi
1759      # Just in case.
1760      sleep 1
1761      am_has_slept=yes
1762    done
1763    test "$[2]" = conftest.file
1764    )
1765 then
1766    # Ok.
1767    :
1768 else
1769    AC_MSG_ERROR([newly created file is older than distributed files!
1770 Check your system clock])
1771 fi
1772 AC_MSG_RESULT([yes])
1773 # If we didn't sleep, we still need to ensure time stamps of config.status and
1774 # generated files are strictly newer.
1775 am_sleep_pid=
1776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1777   ( sleep 1 ) &
1778   am_sleep_pid=$!
1779 fi
1780 AC_CONFIG_COMMANDS_PRE(
1781   [AC_MSG_CHECKING([that generated files are newer than configure])
1782    if test -n "$am_sleep_pid"; then
1783      # Hide warnings about reused PIDs.
1784      wait $am_sleep_pid 2>/dev/null
1785    fi
1786    AC_MSG_RESULT([done])])
1787 rm -f conftest.file
1788 ])
1789
1790 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1791 #
1792 # This file is free software; the Free Software Foundation
1793 # gives unlimited permission to copy and/or distribute it,
1794 # with or without modifications, as long as this notice is preserved.
1795
1796 # AM_SILENT_RULES([DEFAULT])
1797 # --------------------------
1798 # Enable less verbose build rules; with the default set to DEFAULT
1799 # ("yes" being less verbose, "no" or empty being verbose).
1800 AC_DEFUN([AM_SILENT_RULES],
1801 [AC_ARG_ENABLE([silent-rules], [dnl
1802 AS_HELP_STRING(
1803   [--enable-silent-rules],
1804   [less verbose build output (undo: "make V=1")])
1805 AS_HELP_STRING(
1806   [--disable-silent-rules],
1807   [verbose build output (undo: "make V=0")])dnl
1808 ])
1809 case $enable_silent_rules in @%:@ (((
1810   yes) AM_DEFAULT_VERBOSITY=0;;
1811    no) AM_DEFAULT_VERBOSITY=1;;
1812     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1813 esac
1814 dnl
1815 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1816 dnl do not support nested variable expansions.
1817 dnl See automake bug#9928 and bug#10237.
1818 am_make=${MAKE-make}
1819 AC_CACHE_CHECK([whether $am_make supports nested variables],
1820    [am_cv_make_support_nested_variables],
1821    [if AS_ECHO([['TRUE=$(BAR$(V))
1822 BAR0=false
1823 BAR1=true
1824 V=1
1825 am__doit:
1826         @$(TRUE)
1827 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1828   am_cv_make_support_nested_variables=yes
1829 else
1830   am_cv_make_support_nested_variables=no
1831 fi])
1832 if test $am_cv_make_support_nested_variables = yes; then
1833   dnl Using '$V' instead of '$(V)' breaks IRIX make.
1834   AM_V='$(V)'
1835   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1836 else
1837   AM_V=$AM_DEFAULT_VERBOSITY
1838   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1839 fi
1840 AC_SUBST([AM_V])dnl
1841 AM_SUBST_NOTMAKE([AM_V])dnl
1842 AC_SUBST([AM_DEFAULT_V])dnl
1843 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1844 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1845 AM_BACKSLASH='\'
1846 AC_SUBST([AM_BACKSLASH])dnl
1847 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1848 ])
1849
1850 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1851 #
1852 # This file is free software; the Free Software Foundation
1853 # gives unlimited permission to copy and/or distribute it,
1854 # with or without modifications, as long as this notice is preserved.
1855
1856 # AM_PROG_INSTALL_STRIP
1857 # ---------------------
1858 # One issue with vendor 'install' (even GNU) is that you can't
1859 # specify the program used to strip binaries.  This is especially
1860 # annoying in cross-compiling environments, where the build's strip
1861 # is unlikely to handle the host's binaries.
1862 # Fortunately install-sh will honor a STRIPPROG variable, so we
1863 # always use install-sh in "make install-strip", and initialize
1864 # STRIPPROG with the value of the STRIP variable (set by the user).
1865 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1866 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1867 # Installed binaries are usually stripped using 'strip' when the user
1868 # run "make install-strip".  However 'strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the 'STRIP' environment variable to overrule this program.
1871 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1872 if test "$cross_compiling" != no; then
1873   AC_CHECK_TOOL([STRIP], [strip], :)
1874 fi
1875 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1876 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1877
1878 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1879 #
1880 # This file is free software; the Free Software Foundation
1881 # gives unlimited permission to copy and/or distribute it,
1882 # with or without modifications, as long as this notice is preserved.
1883
1884 # _AM_SUBST_NOTMAKE(VARIABLE)
1885 # ---------------------------
1886 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1887 # This macro is traced by Automake.
1888 AC_DEFUN([_AM_SUBST_NOTMAKE])
1889
1890 # AM_SUBST_NOTMAKE(VARIABLE)
1891 # --------------------------
1892 # Public sister of _AM_SUBST_NOTMAKE.
1893 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1894
1895 # Check how to create a tarball.                            -*- Autoconf -*-
1896
1897 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1898 #
1899 # This file is free software; the Free Software Foundation
1900 # gives unlimited permission to copy and/or distribute it,
1901 # with or without modifications, as long as this notice is preserved.
1902
1903 # _AM_PROG_TAR(FORMAT)
1904 # --------------------
1905 # Check how to create a tarball in format FORMAT.
1906 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1907 #
1908 # Substitute a variable $(am__tar) that is a command
1909 # writing to stdout a FORMAT-tarball containing the directory
1910 # $tardir.
1911 #     tardir=directory && $(am__tar) > result.tar
1912 #
1913 # Substitute a variable $(am__untar) that extract such
1914 # a tarball read from stdin.
1915 #     $(am__untar) < result.tar
1916 #
1917 AC_DEFUN([_AM_PROG_TAR],
1918 [# Always define AMTAR for backward compatibility.  Yes, it's still used
1919 # in the wild :-(  We should find a proper way to deprecate it ...
1920 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1921
1922 # We'll loop over all known methods to create a tar archive until one works.
1923 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1924
1925 m4_if([$1], [v7],
1926   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1927
1928   [m4_case([$1],
1929     [ustar],
1930      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1931       # There is notably a 21 bits limit for the UID and the GID.  In fact,
1932       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1933       # and bug#13588).
1934       am_max_uid=2097151 # 2^21 - 1
1935       am_max_gid=$am_max_uid
1936       # The $UID and $GID variables are not portable, so we need to resort
1937       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1938       # below are definitely unexpected, so allow the users to see them
1939       # (that is, avoid stderr redirection).
1940       am_uid=`id -u || echo unknown`
1941       am_gid=`id -g || echo unknown`
1942       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1943       if test $am_uid -le $am_max_uid; then
1944          AC_MSG_RESULT([yes])
1945       else
1946          AC_MSG_RESULT([no])
1947          _am_tools=none
1948       fi
1949       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1950       if test $am_gid -le $am_max_gid; then
1951          AC_MSG_RESULT([yes])
1952       else
1953         AC_MSG_RESULT([no])
1954         _am_tools=none
1955       fi],
1956
1957   [pax],
1958     [],
1959
1960   [m4_fatal([Unknown tar format])])
1961
1962   AC_MSG_CHECKING([how to create a $1 tar archive])
1963
1964   # Go ahead even if we have the value already cached.  We do so because we
1965   # need to set the values for the 'am__tar' and 'am__untar' variables.
1966   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1967
1968   for _am_tool in $_am_tools; do
1969     case $_am_tool in
1970     gnutar)
1971       for _am_tar in tar gnutar gtar; do
1972         AM_RUN_LOG([$_am_tar --version]) && break
1973       done
1974       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1975       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1976       am__untar="$_am_tar -xf -"
1977       ;;
1978     plaintar)
1979       # Must skip GNU tar: if it does not support --format= it doesn't create
1980       # ustar tarball either.
1981       (tar --version) >/dev/null 2>&1 && continue
1982       am__tar='tar chf - "$$tardir"'
1983       am__tar_='tar chf - "$tardir"'
1984       am__untar='tar xf -'
1985       ;;
1986     pax)
1987       am__tar='pax -L -x $1 -w "$$tardir"'
1988       am__tar_='pax -L -x $1 -w "$tardir"'
1989       am__untar='pax -r'
1990       ;;
1991     cpio)
1992       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1993       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1994       am__untar='cpio -i -H $1 -d'
1995       ;;
1996     none)
1997       am__tar=false
1998       am__tar_=false
1999       am__untar=false
2000       ;;
2001     esac
2002
2003     # If the value was cached, stop now.  We just wanted to have am__tar
2004     # and am__untar set.
2005     test -n "${am_cv_prog_tar_$1}" && break
2006
2007     # tar/untar a dummy directory, and stop if the command works.
2008     rm -rf conftest.dir
2009     mkdir conftest.dir
2010     echo GrepMe > conftest.dir/file
2011     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
2012     rm -rf conftest.dir
2013     if test -s conftest.tar; then
2014       AM_RUN_LOG([$am__untar <conftest.tar])
2015       AM_RUN_LOG([cat conftest.dir/file])
2016       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2017     fi
2018   done
2019   rm -rf conftest.dir
2020
2021   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2022   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
2023
2024 AC_SUBST([am__tar])
2025 AC_SUBST([am__untar])
2026 ]) # _AM_PROG_TAR
2027
2028 m4_include([m4/as-ac-expand.m4])
2029 m4_include([m4/jhflags.m4])
2030 m4_include([m4/libtool.m4])
2031 m4_include([m4/ltoptions.m4])
2032 m4_include([m4/ltsugar.m4])
2033 m4_include([m4/ltversion.m4])
2034 m4_include([m4/lt~obsolete.m4])
2035 m4_include([m4/python.m4])