1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
6
# This file is free software; the Free Software Foundation
7
# gives unlimited permission to copy and/or distribute it,
8
# with or without modifications, as long as this notice is preserved.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
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.68],,
18
[m4_warning([this file was generated for autoconf 2.68.
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'.])])
30
AU_DEFUN([GNOME_COMMON_INIT],
32
dnl this macro should come after AC_CONFIG_MACRO_DIR
33
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
35
dnl ensure that when the Automake generated makefile calls aclocal,
36
dnl it honours the $ACLOCAL_FLAGS environment variable
37
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
38
if test -n "$ac_macro_dir"; then
39
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
42
AC_SUBST([ACLOCAL_AMFLAGS])
44
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
45
in your top-level Makefile.am, instead, where "m4" is the macro directory set
46
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
48
AC_DEFUN([GNOME_DEBUG_CHECK],
50
AC_ARG_ENABLE([debug],
51
AC_HELP_STRING([--enable-debug],
52
[turn on debugging]),,
55
if test x$enable_debug = xyes ; then
56
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
57
[Enable additional debugging at the expense of performance and size])
61
dnl GNOME_MAINTAINER_MODE_DEFINES ()
62
dnl define DISABLE_DEPRECATED
64
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
66
AC_REQUIRE([AM_MAINTAINER_MODE])
69
if test $USE_MAINTAINER_MODE = yes; then
70
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
71
for DOMAIN in $DOMAINS; do
72
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
76
AC_SUBST(DISABLE_DEPRECATED)
79
dnl GNOME_COMPILE_WARNINGS
80
dnl Turn on many useful compiler warnings
81
dnl For now, only works on GCC
82
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
83
dnl ******************************
84
dnl More compiler warnings
85
dnl ******************************
87
AC_ARG_ENABLE(compile-warnings,
88
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
89
[Turn on compiler warnings]),,
90
[enable_compile_warnings="m4_default([$1],[yes])"])
93
if test "x$GCC" != xyes; then
94
enable_compile_warnings=no
98
realsave_CFLAGS="$CFLAGS"
100
case "$enable_compile_warnings" in
105
warning_flags="-Wall"
108
warning_flags="-Wall -Wmissing-prototypes"
111
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
112
CFLAGS="$warning_flags $CFLAGS"
113
for option in -Wno-sign-compare; do
114
SAVE_CFLAGS="$CFLAGS"
115
CFLAGS="$CFLAGS $option"
116
AC_MSG_CHECKING([whether gcc understands $option])
117
AC_TRY_COMPILE([], [],
120
CFLAGS="$SAVE_CFLAGS"
121
AC_MSG_RESULT($has_option)
122
if test $has_option = yes; then
123
warning_flags="$warning_flags $option"
129
if test "$enable_compile_warnings" = "error" ; then
130
warning_flags="$warning_flags -Werror"
134
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
137
CFLAGS="$realsave_CFLAGS"
138
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
139
AC_MSG_RESULT($warning_flags)
142
AC_HELP_STRING([--enable-iso-c],
143
[Try to warn if code is not ISO C ]),,
146
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
148
if test "x$enable_iso_c" != "xno"; then
149
if test "x$GCC" = "xyes"; then
151
*[\ \ ]-ansi[\ \ ]*) ;;
152
*) complCFLAGS="$complCFLAGS -ansi" ;;
155
*[\ \ ]-pedantic[\ \ ]*) ;;
156
*) complCFLAGS="$complCFLAGS -pedantic" ;;
160
AC_MSG_RESULT($complCFLAGS)
162
WARN_CFLAGS="$warning_flags $complCFLAGS"
163
AC_SUBST(WARN_CFLAGS)
166
dnl For C++, do basically the same thing.
168
AC_DEFUN([GNOME_CXX_WARNINGS],[
169
AC_ARG_ENABLE(cxx-warnings,
170
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
171
[Turn on compiler warnings.]),,
172
[enable_cxx_warnings="m4_default([$1],[minimum])"])
174
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
176
if test "x$GXX" != xyes; then
177
enable_cxx_warnings=no
179
if test "x$enable_cxx_warnings" != "xno"; then
180
if test "x$GXX" = "xyes"; then
181
case " $CXXFLAGS " in
182
*[\ \ ]-Wall[\ \ ]*) ;;
183
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
186
## -W is not all that useful. And it cannot be controlled
187
## with individual -Wno-xxx flags, unlike -Wall
188
if test "x$enable_cxx_warnings" = "xyes"; then
189
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
193
AC_MSG_RESULT($warnCXXFLAGS)
195
AC_ARG_ENABLE(iso-cxx,
196
AC_HELP_STRING([--enable-iso-cxx],
197
[Try to warn if code is not ISO C++ ]),,
200
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
202
if test "x$enable_iso_cxx" != "xno"; then
203
if test "x$GXX" = "xyes"; then
204
case " $CXXFLAGS " in
205
*[\ \ ]-ansi[\ \ ]*) ;;
206
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
209
case " $CXXFLAGS " in
210
*[\ \ ]-pedantic[\ \ ]*) ;;
211
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
215
AC_MSG_RESULT($complCXXFLAGS)
217
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
218
AC_SUBST(WARN_CXXFLAGS)
222
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
223
dnl the schema should be compiled
226
AC_DEFUN([GLIB_GSETTINGS],
228
m4_pattern_allow([AM_V_GEN])
229
AC_ARG_ENABLE(schemas-compile,
230
AS_HELP_STRING([--disable-schemas-compile],
231
[Disable regeneration of gschemas.compiled on install]),
232
[case ${enableval} in
233
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
234
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
235
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
237
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
238
PKG_PROG_PKG_CONFIG([0.16])
239
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
240
if test x$cross_compiling != xyes; then
241
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
243
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
245
AC_SUBST(GLIB_COMPILE_SCHEMAS)
246
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
247
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
249
ifelse([$1],,[:],[$1])
253
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
255
mostlyclean-am: clean-gsettings-schemas
257
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
259
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
260
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
262
all-am: $(gsettings_SCHEMAS:.xml=.valid)
263
uninstall-am: uninstall-gsettings-schemas
264
install-data-am: install-gsettings-schemas
266
.SECONDARY: $(gsettings_SCHEMAS)
268
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
270
if test -n "$^"; then \
271
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
272
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
273
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
276
uninstall-gsettings-schemas:
278
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
279
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
280
test -n "$$files" || exit 0; \
281
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
282
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
283
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
285
clean-gsettings-schemas:
286
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
288
ifdef gsettings_ENUM_NAMESPACE
289
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
290
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
293
_GSETTINGS_SUBST(GSETTINGS_RULES)
296
dnl _GSETTINGS_SUBST(VARIABLE)
297
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
298
AC_DEFUN([_GSETTINGS_SUBST],
301
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
305
# Configure paths for GTK+
306
# Owen Taylor 1997-2001
308
dnl AM_PATH_GTK_3_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
309
dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
310
dnl pass to pkg-config
312
AC_DEFUN([AM_PATH_GTK_3_0],
314
dnl Get the cflags and libraries from pkg-config
316
AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
317
, enable_gtktest=yes)
319
pkg_config_args=gtk+-3.0
324
pkg_config_args="$pkg_config_args gthread-2.0"
331
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
333
if test x$PKG_CONFIG != xno ; then
334
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
337
echo "*** pkg-config too old; version 0.7 or better required."
345
min_gtk_version=ifelse([$1], ,3.0.0,$1)
346
AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
348
if test x$PKG_CONFIG != xno ; then
349
## don't try to run the test against uninstalled libtool libs
350
if $PKG_CONFIG --uninstalled $pkg_config_args; then
351
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
355
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
362
if test x"$no_gtk" = x ; then
363
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
364
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
365
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
366
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
367
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
368
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
369
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
370
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
371
if test "x$enable_gtktest" = "xyes" ; then
372
ac_save_CFLAGS="$CFLAGS"
374
CFLAGS="$CFLAGS $GTK_CFLAGS"
375
LIBS="$GTK_LIBS $LIBS"
377
dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
378
dnl checks the results of pkg-config to some extent)
389
int major, minor, micro;
392
fclose (fopen ("conf.gtktest", "w"));
394
/* HP/UX 9 (%@#!) writes to sscanf strings */
395
tmp_version = g_strdup("$min_gtk_version");
396
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
397
printf("%s, bad version string\n", "$min_gtk_version");
401
if ((gtk_major_version != $gtk_config_major_version) ||
402
(gtk_minor_version != $gtk_config_minor_version) ||
403
(gtk_micro_version != $gtk_config_micro_version))
405
printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
406
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
407
gtk_major_version, gtk_minor_version, gtk_micro_version);
408
printf ("*** was found! If pkg-config was correct, then it is best\n");
409
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
410
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
411
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
412
printf("*** required on your system.\n");
413
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
414
printf("*** to point to the correct configuration files\n");
416
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
417
(gtk_minor_version != GTK_MINOR_VERSION) ||
418
(gtk_micro_version != GTK_MICRO_VERSION))
420
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
421
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
422
printf("*** library (version %d.%d.%d)\n",
423
gtk_major_version, gtk_minor_version, gtk_micro_version);
427
if ((gtk_major_version > major) ||
428
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
429
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
435
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
436
gtk_major_version, gtk_minor_version, gtk_micro_version);
437
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
438
major, minor, micro);
439
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
441
printf("*** If you have already installed a sufficiently new version, this error\n");
442
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
443
printf("*** being found. The easiest way to fix this is to remove the old version\n");
444
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
445
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
446
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
447
printf("*** so that the correct libraries are found at run-time))\n");
452
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
453
CFLAGS="$ac_save_CFLAGS"
457
if test "x$no_gtk" = x ; then
458
AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
459
ifelse([$2], , :, [$2])
462
if test "$PKG_CONFIG" = "no" ; then
463
echo "*** A new enough version of pkg-config was not found."
464
echo "*** See http://pkgconfig.sourceforge.net"
466
if test -f conf.gtktest ; then
469
echo "*** Could not run GTK+ test program, checking why..."
470
ac_save_CFLAGS="$CFLAGS"
472
CFLAGS="$CFLAGS $GTK_CFLAGS"
473
LIBS="$LIBS $GTK_LIBS"
477
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
478
[ echo "*** The test program compiled, but did not run. This usually means"
479
echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
480
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
481
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
482
echo "*** to the installed location Also, make sure you have run ldconfig if that"
483
echo "*** is required on your system"
485
echo "*** If you have an old version installed, it is best to remove it, although"
486
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
487
[ echo "*** The test program failed to compile or link. See the file config.log for the"
488
echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
489
CFLAGS="$ac_save_CFLAGS"
495
ifelse([$3], , :, [$3])
502
dnl GTK_CHECK_BACKEND(BACKEND-NAME [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
503
dnl Tests for BACKEND-NAME in the GTK targets list
505
AC_DEFUN([GTK_CHECK_BACKEND],
507
pkg_config_args=ifelse([$1],,gtk+-3.0, gtk+-$1-3.0)
508
min_gtk_version=ifelse([$2],,3.0.0,$2)
510
AC_PATH_PROG(PKG_CONFIG, [pkg-config], [AC_MSG_ERROR([No pkg-config found])])
512
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args ; then
518
if test "x$target_found" = "xno"; then
519
ifelse([$4],,[AC_MSG_ERROR([Backend $backend not found.])],[$4])
521
ifelse([$3],,[:],[$3])
525
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
526
# serial 1 (pkg-config-0.24)
528
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
530
# This program is free software; you can redistribute it and/or modify
531
# it under the terms of the GNU General Public License as published by
532
# the Free Software Foundation; either version 2 of the License, or
533
# (at your option) any later version.
535
# This program is distributed in the hope that it will be useful, but
536
# WITHOUT ANY WARRANTY; without even the implied warranty of
537
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
538
# General Public License for more details.
540
# You should have received a copy of the GNU General Public License
541
# along with this program; if not, write to the Free Software
542
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
544
# As a special exception to the GNU General Public License, if you
545
# distribute this file as part of a program that contains a
546
# configuration script generated by Autoconf, you may include it under
547
# the same distribution terms that you use for the rest of that program.
549
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
550
# ----------------------------------
551
AC_DEFUN([PKG_PROG_PKG_CONFIG],
552
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
553
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
554
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
555
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
556
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
557
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
559
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
560
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
562
if test -n "$PKG_CONFIG"; then
563
_pkg_min_version=m4_default([$1], [0.9.0])
564
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
565
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
572
])# PKG_PROG_PKG_CONFIG
574
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
576
# Check to see whether a particular set of modules exists. Similar
577
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
579
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
580
# only at the first occurence in configure.ac, so if the first place
581
# it's called might be skipped (such as if it is within an "if", you
582
# have to call PKG_CHECK_EXISTS manually
583
# --------------------------------------------------------------
584
AC_DEFUN([PKG_CHECK_EXISTS],
585
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
586
if test -n "$PKG_CONFIG" && \
587
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
588
m4_default([$2], [:])
589
m4_ifvaln([$3], [else
593
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
594
# ---------------------------------------------
595
m4_define([_PKG_CONFIG],
596
[if test -n "$$1"; then
598
elif test -n "$PKG_CONFIG"; then
599
PKG_CHECK_EXISTS([$3],
600
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
601
test "x$?" != "x0" && pkg_failed=yes ],
608
# _PKG_SHORT_ERRORS_SUPPORTED
609
# -----------------------------
610
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
611
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
612
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
613
_pkg_short_errors_supported=yes
615
_pkg_short_errors_supported=no
617
])# _PKG_SHORT_ERRORS_SUPPORTED
620
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
621
# [ACTION-IF-NOT-FOUND])
624
# Note that if there is a possibility the first call to
625
# PKG_CHECK_MODULES might not happen, you should be sure to include an
626
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
629
# --------------------------------------------------------------
630
AC_DEFUN([PKG_CHECK_MODULES],
631
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
632
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
633
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
636
AC_MSG_CHECKING([for $1])
638
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
639
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
641
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
642
and $1[]_LIBS to avoid the need to call pkg-config.
643
See the pkg-config man page for more details.])
645
if test $pkg_failed = yes; then
647
_PKG_SHORT_ERRORS_SUPPORTED
648
if test $_pkg_short_errors_supported = yes; then
649
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
651
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
653
# Put the nasty error message in config.log where it belongs
654
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
656
m4_default([$4], [AC_MSG_ERROR(
657
[Package requirements ($2) were not met:
661
Consider adjusting the PKG_CONFIG_PATH environment variable if you
662
installed software in a non-standard prefix.
666
elif test $pkg_failed = untried; then
668
m4_default([$4], [AC_MSG_FAILURE(
669
[The pkg-config script could not be found or is too old. Make sure it
670
is in your PATH or set the PKG_CONFIG environment variable to the full
675
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
678
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
679
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
683
])# PKG_CHECK_MODULES
685
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
688
# This file is free software; the Free Software Foundation
689
# gives unlimited permission to copy and/or distribute it,
690
# with or without modifications, as long as this notice is preserved.
694
# AM_AUTOMAKE_VERSION(VERSION)
695
# ----------------------------
696
# Automake X.Y traces this macro to ensure aclocal.m4 has been
697
# generated from the m4 files accompanying Automake X.Y.
698
# (This private macro should not be called outside this file.)
699
AC_DEFUN([AM_AUTOMAKE_VERSION],
700
[am__api_version='1.11'
701
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
702
dnl require some minimum version. Point them to the right macro.
703
m4_if([$1], [1.11.3], [],
704
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
707
# _AM_AUTOCONF_VERSION(VERSION)
708
# -----------------------------
709
# aclocal traces this macro to find the Autoconf version.
710
# This is a private macro too. Using m4_define simplifies
711
# the logic in aclocal, which can simply ignore this definition.
712
m4_define([_AM_AUTOCONF_VERSION], [])
714
# AM_SET_CURRENT_AUTOMAKE_VERSION
715
# -------------------------------
716
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
717
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
718
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
719
[AM_AUTOMAKE_VERSION([1.11.3])dnl
720
m4_ifndef([AC_AUTOCONF_VERSION],
721
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
722
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
724
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
726
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
728
# This file is free software; the Free Software Foundation
729
# gives unlimited permission to copy and/or distribute it,
730
# with or without modifications, as long as this notice is preserved.
734
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
735
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
736
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
738
# Of course, Automake must honor this variable whenever it calls a
739
# tool from the auxiliary directory. The problem is that $srcdir (and
740
# therefore $ac_aux_dir as well) can be either absolute or relative,
741
# depending on how configure is run. This is pretty annoying, since
742
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
743
# source directory, any form will work fine, but in subdirectories a
744
# relative path needs to be adjusted first.
746
# $ac_aux_dir/missing
747
# fails when called from a subdirectory if $ac_aux_dir is relative
748
# $top_srcdir/$ac_aux_dir/missing
749
# fails if $ac_aux_dir is absolute,
750
# fails when called from a subdirectory in a VPATH build with
751
# a relative $ac_aux_dir
753
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
754
# are both prefixed by $srcdir. In an in-source build this is usually
755
# harmless because $srcdir is `.', but things will broke when you
756
# start a VPATH build or use an absolute $srcdir.
758
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
759
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
760
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
761
# and then we would define $MISSING as
762
# MISSING="\${SHELL} $am_aux_dir/missing"
763
# This will work as long as MISSING is not called from configure, because
764
# unfortunately $(top_srcdir) has no meaning in configure.
765
# However there are other variables, like CC, which are often used in
766
# configure, and could therefore not use this "fixed" $ac_aux_dir.
768
# Another solution, used here, is to always expand $ac_aux_dir to an
769
# absolute PATH. The drawback is that using absolute paths prevent a
770
# configured tree to be moved without reconfiguration.
772
AC_DEFUN([AM_AUX_DIR_EXPAND],
773
[dnl Rely on autoconf to set up CDPATH properly.
775
# expand $ac_aux_dir to an absolute path
776
am_aux_dir=`cd $ac_aux_dir && pwd`
779
# AM_CONDITIONAL -*- Autoconf -*-
781
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
782
# Free Software Foundation, Inc.
784
# This file is free software; the Free Software Foundation
785
# gives unlimited permission to copy and/or distribute it,
786
# with or without modifications, as long as this notice is preserved.
790
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
791
# -------------------------------------
792
# Define a conditional.
793
AC_DEFUN([AM_CONDITIONAL],
795
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
796
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
797
AC_SUBST([$1_TRUE])dnl
798
AC_SUBST([$1_FALSE])dnl
799
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
800
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
801
m4_define([_AM_COND_VALUE_$1], [$2])dnl
809
AC_CONFIG_COMMANDS_PRE(
810
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
811
AC_MSG_ERROR([[conditional "$1" was never defined.
812
Usually this means the macro was only invoked conditionally.]])
815
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
816
# 2010, 2011 Free Software Foundation, Inc.
818
# This file is free software; the Free Software Foundation
819
# gives unlimited permission to copy and/or distribute it,
820
# with or without modifications, as long as this notice is preserved.
824
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
825
# written in clear, in which case automake, when reading aclocal.m4,
826
# will think it sees a *use*, and therefore will trigger all it's
827
# C support machinery. Also note that it means that autoscan, seeing
828
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
831
# _AM_DEPENDENCIES(NAME)
832
# ----------------------
833
# See how the compiler implements dependency checking.
834
# NAME is "CC", "CXX", "GCJ", or "OBJC".
835
# We try a few techniques and use that to set a single cache variable.
837
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
838
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
839
# dependency, and given that the user is not expected to run this macro,
840
# just rely on AC_PROG_CC.
841
AC_DEFUN([_AM_DEPENDENCIES],
842
[AC_REQUIRE([AM_SET_DEPDIR])dnl
843
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
844
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
845
AC_REQUIRE([AM_DEP_TRACK])dnl
847
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
848
[$1], CXX, [depcc="$CXX" am_compiler_list=],
849
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
850
[$1], UPC, [depcc="$UPC" am_compiler_list=],
851
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
852
[depcc="$$1" am_compiler_list=])
854
AC_CACHE_CHECK([dependency style of $depcc],
855
[am_cv_$1_dependencies_compiler_type],
856
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
857
# We make a subdir and do the tests there. Otherwise we can end up
858
# making bogus files that we don't know about and never remove. For
859
# instance it was reported that on HP-UX the gcc test will end up
860
# making a dummy file named `D' -- because `-MD' means `put the output
864
# Copy depcomp to subdir because otherwise we won't find it if we're
865
# using a relative directory.
866
cp "$am_depcomp" conftest.dir
868
# We will build objects and dependencies in a subdirectory because
869
# it helps to detect inapplicable dependency modes. For instance
870
# both Tru64's cc and ICC support -MD to output dependencies as a
871
# side effect of compilation, but ICC will put the dependencies in
872
# the current directory while Tru64 will put them in the object
876
am_cv_$1_dependencies_compiler_type=none
877
if test "$am_compiler_list" = ""; then
878
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
882
[case " $depcc " in #(
883
*\ -arch\ *\ -arch\ *) am__universal=true ;;
886
[case " $depcc " in #(
887
*\ -arch\ *\ -arch\ *) am__universal=true ;;
890
for depmode in $am_compiler_list; do
891
# Setup a source with many dependencies, because some compilers
892
# like to wrap large dependency lists on column 80 (with \), and
893
# we should not choose a depcomp mode which is confused by this.
895
# We need to recreate these files for each test, as the compiler may
896
# overwrite some of them when testing with obscure command lines.
897
# This happens at least with the AIX C compiler.
899
for i in 1 2 3 4 5 6; do
900
echo '#include "conftst'$i'.h"' >> sub/conftest.c
901
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
902
# Solaris 8's {/usr,}/bin/sh.
903
touch sub/conftst$i.h
905
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
907
# We check with `-c' and `-o' for the sake of the "dashmstdout"
908
# mode. It turns out that the SunPro C++ compiler does not properly
909
# handle `-M -o', and we need to detect this. Also, some Intel
910
# versions had trouble with output in subdirs
911
am__obj=sub/conftest.${OBJEXT-o}
912
am__minus_obj="-o $am__obj"
915
# This depmode causes a compiler race in universal mode.
916
test "$am__universal" = false || continue
919
# after this tag, mechanisms are not by side-effect, so they'll
920
# only be used when explicitly requested
921
if test "x$enable_dependency_tracking" = xyes; then
927
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
928
# This compiler won't grok `-c -o', but also, the minuso test has
929
# not run yet. These depmodes are late enough in the game, and
930
# so weak that their functioning should not be impacted.
931
am__obj=conftest.${OBJEXT-o}
936
if depmode=$depmode \
937
source=sub/conftest.c object=$am__obj \
938
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
939
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
940
>/dev/null 2>conftest.err &&
941
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
942
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
943
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
944
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
945
# icc doesn't choke on unknown options, it will just issue warnings
946
# or remarks (even with -Werror). So we grep stderr for any message
947
# that says an option was ignored or not supported.
948
# When given -MP, icc 7.0 and 7.1 complain thusly:
949
# icc: Command line warning: ignoring option '-M'; no argument required
950
# The diagnosis changed in icc 8.0:
951
# icc: Command line remark: option '-MP' not supported
952
if (grep 'ignoring option' conftest.err ||
953
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
954
am_cv_$1_dependencies_compiler_type=$depmode
963
am_cv_$1_dependencies_compiler_type=none
966
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
967
AM_CONDITIONAL([am__fastdep$1], [
968
test "x$enable_dependency_tracking" != xno \
969
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
975
# Choose a directory name for dependency files.
976
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
977
AC_DEFUN([AM_SET_DEPDIR],
978
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
979
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
985
AC_DEFUN([AM_DEP_TRACK],
986
[AC_ARG_ENABLE(dependency-tracking,
987
[ --disable-dependency-tracking speeds up one-time build
988
--enable-dependency-tracking do not reject slow dependency extractors])
989
if test "x$enable_dependency_tracking" != xno; then
990
am_depcomp="$ac_aux_dir/depcomp"
994
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
995
AC_SUBST([AMDEPBACKSLASH])dnl
996
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
997
AC_SUBST([am__nodep])dnl
998
_AM_SUBST_NOTMAKE([am__nodep])dnl
1001
# Generate code to set up dependency tracking. -*- Autoconf -*-
1003
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1004
# Free Software Foundation, Inc.
1006
# This file is free software; the Free Software Foundation
1007
# gives unlimited permission to copy and/or distribute it,
1008
# with or without modifications, as long as this notice is preserved.
1012
# _AM_OUTPUT_DEPENDENCY_COMMANDS
1013
# ------------------------------
1014
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1016
# Autoconf 2.62 quotes --file arguments for eval, but not when files
1017
# are listed without --file. Let's play safe and only enable the eval
1018
# if we detect the quoting.
1019
case $CONFIG_FILES in
1020
*\'*) eval set x "$CONFIG_FILES" ;;
1021
*) set x $CONFIG_FILES ;;
1026
# Strip MF so we end up with the name of the file.
1027
mf=`echo "$mf" | sed -e 's/:.*$//'`
1028
# Check whether this is an Automake generated Makefile or not.
1029
# We used to match only the files named `Makefile.in', but
1030
# some people rename them; so instead we look at the file content.
1031
# Grep'ing the first line is not enough: some people post-process
1032
# each Makefile.in and add a new line on top of each file to say so.
1033
# Grep'ing the whole file is not good either: AIX grep has a line
1034
# limit of 2048, but all sed's we know have understand at least 4000.
1035
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1036
dirpart=`AS_DIRNAME("$mf")`
1040
# Extract the definition of DEPDIR, am__include, and am__quote
1041
# from the Makefile without running `make'.
1042
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1043
test -z "$DEPDIR" && continue
1044
am__include=`sed -n 's/^am__include = //p' < "$mf"`
1045
test -z "am__include" && continue
1046
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1047
# When using ansi2knr, U may be empty or an underscore; expand it
1048
U=`sed -n 's/^U = //p' < "$mf"`
1049
# Find all dependency output files, they are included files with
1050
# $(DEPDIR) in their names. We invoke sed twice because it is the
1051
# simplest approach to changing $(DEPDIR) to its actual value in the
1053
for file in `sed -n "
1054
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1055
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1056
# Make sure the directory exists.
1057
test -f "$dirpart/$file" && continue
1058
fdir=`AS_DIRNAME(["$file"])`
1059
AS_MKDIR_P([$dirpart/$fdir])
1060
# echo "creating $dirpart/$file"
1061
echo '# dummy' > "$dirpart/$file"
1065
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1068
# AM_OUTPUT_DEPENDENCY_COMMANDS
1069
# -----------------------------
1070
# This macro should only be invoked once -- use via AC_REQUIRE.
1072
# This code is only required when automatic dependency tracking
1073
# is enabled. FIXME. This creates each `.P' file that we will
1074
# need in order to bootstrap the dependency handling code.
1075
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1076
[AC_CONFIG_COMMANDS([depfiles],
1077
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1078
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1081
# Do all the work for Automake. -*- Autoconf -*-
1083
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1084
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1086
# This file is free software; the Free Software Foundation
1087
# gives unlimited permission to copy and/or distribute it,
1088
# with or without modifications, as long as this notice is preserved.
1092
# This macro actually does too much. Some checks are only needed if
1093
# your package does certain things. But this isn't really a big deal.
1095
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1096
# AM_INIT_AUTOMAKE([OPTIONS])
1097
# -----------------------------------------------
1098
# The call with PACKAGE and VERSION arguments is the old style
1099
# call (pre autoconf-2.50), which is being phased out. PACKAGE
1100
# and VERSION should now be passed to AC_INIT and removed from
1101
# the call to AM_INIT_AUTOMAKE.
1102
# We support both call styles for the transition. After
1103
# the next Automake release, Autoconf can make the AC_INIT
1104
# arguments mandatory, and then we can depend on a new Autoconf
1105
# release and drop the old call support.
1106
AC_DEFUN([AM_INIT_AUTOMAKE],
1107
[AC_PREREQ([2.62])dnl
1108
dnl Autoconf wants to disallow AM_ names. We explicitly allow
1109
dnl the ones we care about.
1110
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1111
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1112
AC_REQUIRE([AC_PROG_INSTALL])dnl
1113
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1114
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1115
# is not polluted with repeated "-I."
1116
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1117
# test to see if srcdir already configured
1118
if test -f $srcdir/config.status; then
1119
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1123
# test whether we have cygpath
1124
if test -z "$CYGPATH_W"; then
1125
if (cygpath --version) >/dev/null 2>/dev/null; then
1126
CYGPATH_W='cygpath -w'
1131
AC_SUBST([CYGPATH_W])
1133
# Define the identity of the package.
1134
dnl Distinguish between old-style and new-style calls.
1136
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1137
AC_SUBST([PACKAGE], [$1])dnl
1138
AC_SUBST([VERSION], [$2])],
1139
[_AM_SET_OPTIONS([$1])dnl
1140
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1141
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1142
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1143
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1144
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1146
_AM_IF_OPTION([no-define],,
1147
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1148
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1150
# Some tools Automake needs.
1151
AC_REQUIRE([AM_SANITY_CHECK])dnl
1152
AC_REQUIRE([AC_ARG_PROGRAM])dnl
1153
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1154
AM_MISSING_PROG(AUTOCONF, autoconf)
1155
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1156
AM_MISSING_PROG(AUTOHEADER, autoheader)
1157
AM_MISSING_PROG(MAKEINFO, makeinfo)
1158
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1159
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1160
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1161
# We need awk for the "check" target. The system "awk" is bad on
1163
AC_REQUIRE([AC_PROG_AWK])dnl
1164
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1165
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1166
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1167
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1168
[_AM_PROG_TAR([v7])])])
1169
_AM_IF_OPTION([no-dependencies],,
1170
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1171
[_AM_DEPENDENCIES(CC)],
1172
[define([AC_PROG_CC],
1173
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1174
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1175
[_AM_DEPENDENCIES(CXX)],
1176
[define([AC_PROG_CXX],
1177
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1178
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1179
[_AM_DEPENDENCIES(OBJC)],
1180
[define([AC_PROG_OBJC],
1181
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1183
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1184
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1185
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1186
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1187
AC_CONFIG_COMMANDS_PRE(dnl
1188
[m4_provide_if([_AM_COMPILER_EXEEXT],
1189
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1192
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1193
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1194
dnl mangled by Autoconf and run in a shell conditional statement.
1195
m4_define([_AC_COMPILER_EXEEXT],
1196
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1199
# When config.status generates a header, we must update the stamp-h file.
1200
# This file resides in the same directory as the config header
1201
# that is generated. The stamp files are numbered to have different names.
1203
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1204
# loop where config.status creates the headers, so we can generate
1205
# our stamp files there.
1206
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1207
[# Compute $1's index in $config_headers.
1210
for _am_header in $config_headers :; do
1212
$_am_arg | $_am_arg:* )
1215
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
1218
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1220
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1223
# This file is free software; the Free Software Foundation
1224
# gives unlimited permission to copy and/or distribute it,
1225
# with or without modifications, as long as this notice is preserved.
1229
# AM_PROG_INSTALL_SH
1230
# ------------------
1231
# Define $install_sh.
1232
AC_DEFUN([AM_PROG_INSTALL_SH],
1233
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1234
if test x"${install_sh}" != xset; then
1237
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1239
install_sh="\${SHELL} $am_aux_dir/install-sh"
1242
AC_SUBST(install_sh)])
1244
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1246
# This file is free software; the Free Software Foundation
1247
# gives unlimited permission to copy and/or distribute it,
1248
# with or without modifications, as long as this notice is preserved.
1252
# Check whether the underlying file-system supports filenames
1253
# with a leading dot. For instance MS-DOS doesn't.
1254
AC_DEFUN([AM_SET_LEADING_DOT],
1255
[rm -rf .tst 2>/dev/null
1256
mkdir .tst 2>/dev/null
1257
if test -d .tst; then
1262
rmdir .tst 2>/dev/null
1263
AC_SUBST([am__leading_dot])])
1265
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1268
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
1269
# 2011 Free Software Foundation, Inc.
1271
# This file is free software; the Free Software Foundation
1272
# gives unlimited permission to copy and/or distribute it,
1273
# with or without modifications, as long as this notice is preserved.
1277
# AM_MAINTAINER_MODE([DEFAULT-MODE])
1278
# ----------------------------------
1279
# Control maintainer-specific portions of Makefiles.
1280
# Default is to disable them, unless `enable' is passed literally.
1281
# For symmetry, `disable' may be passed as well. Anyway, the user
1282
# can override the default with the --enable/--disable switch.
1283
AC_DEFUN([AM_MAINTAINER_MODE],
1284
[m4_case(m4_default([$1], [disable]),
1285
[enable], [m4_define([am_maintainer_other], [disable])],
1286
[disable], [m4_define([am_maintainer_other], [enable])],
1287
[m4_define([am_maintainer_other], [enable])
1288
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1289
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1290
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1291
AC_ARG_ENABLE([maintainer-mode],
1292
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1293
(and sometimes confusing) to the casual installer],
1294
[USE_MAINTAINER_MODE=$enableval],
1295
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1296
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1297
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1298
MAINT=$MAINTAINER_MODE_TRUE
1299
AC_SUBST([MAINT])dnl
1303
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1305
# Check to see how 'make' treats includes. -*- Autoconf -*-
1307
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1309
# This file is free software; the Free Software Foundation
1310
# gives unlimited permission to copy and/or distribute it,
1311
# with or without modifications, as long as this notice is preserved.
1317
# Check to see how make treats includes.
1318
AC_DEFUN([AM_MAKE_INCLUDE],
1319
[am_make=${MAKE-make}
1320
cat > confinc << 'END'
1322
@echo this is the am__doit target
1325
# If we don't find an include directive, just comment out the code.
1326
AC_MSG_CHECKING([for style of include used by $am_make])
1330
# First try GNU make style include.
1331
echo "include confinc" > confmf
1332
# Ignore all kinds of additional output from `make'.
1333
case `$am_make -s -f confmf 2> /dev/null` in #(
1334
*the\ am__doit\ target*)
1340
# Now try BSD make style include.
1341
if test "$am__include" = "#"; then
1342
echo '.include "confinc"' > confmf
1343
case `$am_make -s -f confmf 2> /dev/null` in #(
1344
*the\ am__doit\ target*)
1345
am__include=.include
1351
AC_SUBST([am__include])
1352
AC_SUBST([am__quote])
1353
AC_MSG_RESULT([$_am_result])
1354
rm -f confinc confmf
1357
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1358
# Free Software Foundation, Inc.
1360
# This file is free software; the Free Software Foundation
1361
# gives unlimited permission to copy and/or distribute it,
1362
# with or without modifications, as long as this notice is preserved.
1368
# Like AC_PROG_CC_C_O, but changed for automake.
1369
AC_DEFUN([AM_PROG_CC_C_O],
1370
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1371
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1372
AC_REQUIRE_AUX_FILE([compile])dnl
1373
# FIXME: we rely on the cache variable name because
1374
# there is no other way.
1376
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1377
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1378
if test "$am_t" != yes; then
1379
# Losing compiler, so override with the script.
1380
# FIXME: It is wrong to rewrite CC.
1381
# But if we don't then we get into trouble of one sort or another.
1382
# A longer-term fix would be to have automake use am__CC in this case,
1383
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1384
CC="$am_aux_dir/compile $CC"
1386
dnl Make sure AC_PROG_CC is never called again, or it will override our
1388
m4_define([AC_PROG_CC],
1389
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1392
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1394
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1395
# Free Software Foundation, Inc.
1397
# This file is free software; the Free Software Foundation
1398
# gives unlimited permission to copy and/or distribute it,
1399
# with or without modifications, as long as this notice is preserved.
1403
# AM_MISSING_PROG(NAME, PROGRAM)
1404
# ------------------------------
1405
AC_DEFUN([AM_MISSING_PROG],
1406
[AC_REQUIRE([AM_MISSING_HAS_RUN])
1407
$1=${$1-"${am_missing_run}$2"}
1411
# AM_MISSING_HAS_RUN
1412
# ------------------
1413
# Define MISSING if not defined so far and test if it supports --run.
1414
# If it does, set am_missing_run to use it, otherwise, to nothing.
1415
AC_DEFUN([AM_MISSING_HAS_RUN],
1416
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1417
AC_REQUIRE_AUX_FILE([missing])dnl
1418
if test x"${MISSING+set}" != xset; then
1421
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1423
MISSING="\${SHELL} $am_aux_dir/missing" ;;
1426
# Use eval to expand $SHELL
1427
if eval "$MISSING --run true"; then
1428
am_missing_run="$MISSING --run "
1431
AC_MSG_WARN([`missing' script is too old or missing])
1435
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1438
# This file is free software; the Free Software Foundation
1439
# gives unlimited permission to copy and/or distribute it,
1440
# with or without modifications, as long as this notice is preserved.
1446
# Check for `mkdir -p'.
1447
AC_DEFUN([AM_PROG_MKDIR_P],
1448
[AC_PREREQ([2.60])dnl
1449
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1450
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1451
dnl while keeping a definition of mkdir_p for backward compatibility.
1452
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1453
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1454
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1455
dnl adjustment using top_builddir (which is defined more often than
1457
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1459
[[\\/$]]* | ?:[[\\/]]*) ;;
1460
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1464
# Helper functions for option handling. -*- Autoconf -*-
1466
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1469
# This file is free software; the Free Software Foundation
1470
# gives unlimited permission to copy and/or distribute it,
1471
# with or without modifications, as long as this notice is preserved.
1475
# _AM_MANGLE_OPTION(NAME)
1476
# -----------------------
1477
AC_DEFUN([_AM_MANGLE_OPTION],
1478
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1480
# _AM_SET_OPTION(NAME)
1481
# --------------------
1482
# Set option NAME. Presently that only means defining a flag for this option.
1483
AC_DEFUN([_AM_SET_OPTION],
1484
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1486
# _AM_SET_OPTIONS(OPTIONS)
1487
# ------------------------
1488
# OPTIONS is a space-separated list of Automake options.
1489
AC_DEFUN([_AM_SET_OPTIONS],
1490
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1492
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1493
# -------------------------------------------
1494
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1495
AC_DEFUN([_AM_IF_OPTION],
1496
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1498
# Check to make sure that the build environment is sane. -*- Autoconf -*-
1500
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1501
# Free Software Foundation, Inc.
1503
# This file is free software; the Free Software Foundation
1504
# gives unlimited permission to copy and/or distribute it,
1505
# with or without modifications, as long as this notice is preserved.
1511
AC_DEFUN([AM_SANITY_CHECK],
1512
[AC_MSG_CHECKING([whether build environment is sane])
1515
echo timestamp > conftest.file
1516
# Reject unsafe characters in $srcdir or the absolute working directory
1517
# name. Accept space and tab only in the latter.
1521
*[[\\\"\#\$\&\'\`$am_lf]]*)
1522
AC_MSG_ERROR([unsafe absolute working directory name]);;
1525
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1526
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1529
# Do `set' in a subshell so we don't clobber the current shell's
1530
# arguments. Must try -L first in case configure is actually a
1531
# symlink; some systems play weird games with the mod time of symlinks
1532
# (eg FreeBSD returns the mod time of the symlink's containing
1535
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1536
if test "$[*]" = "X"; then
1538
set X `ls -t "$srcdir/configure" conftest.file`
1541
if test "$[*]" != "X $srcdir/configure conftest.file" \
1542
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1544
# If neither matched, then we have a broken ls. This can happen
1545
# if, for instance, CONFIG_SHELL is bash and it inherits a
1546
# broken ls alias from the environment. This has actually
1547
# happened. Such a system could not be considered "sane".
1548
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1549
alias in your environment])
1552
test "$[2]" = conftest.file
1558
AC_MSG_ERROR([newly created file is older than distributed files!
1559
Check your system clock])
1561
AC_MSG_RESULT(yes)])
1563
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1565
# This file is free software; the Free Software Foundation
1566
# gives unlimited permission to copy and/or distribute it,
1567
# with or without modifications, as long as this notice is preserved.
1571
# AM_SILENT_RULES([DEFAULT])
1572
# --------------------------
1573
# Enable less verbose build rules; with the default set to DEFAULT
1574
# (`yes' being less verbose, `no' or empty being verbose).
1575
AC_DEFUN([AM_SILENT_RULES],
1576
[AC_ARG_ENABLE([silent-rules],
1577
[ --enable-silent-rules less verbose build output (undo: `make V=1')
1578
--disable-silent-rules verbose build output (undo: `make V=0')])
1579
case $enable_silent_rules in
1580
yes) AM_DEFAULT_VERBOSITY=0;;
1581
no) AM_DEFAULT_VERBOSITY=1;;
1582
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1585
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1586
dnl do not support nested variable expansions.
1587
dnl See automake bug#9928 and bug#10237.
1588
am_make=${MAKE-make}
1589
AC_CACHE_CHECK([whether $am_make supports nested variables],
1590
[am_cv_make_support_nested_variables],
1591
[if AS_ECHO([['TRUE=$(BAR$(V))
1597
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1598
am_cv_make_support_nested_variables=yes
1600
am_cv_make_support_nested_variables=no
1602
if test $am_cv_make_support_nested_variables = yes; then
1603
dnl Using `$V' instead of `$(V)' breaks IRIX make.
1605
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1607
AM_V=$AM_DEFAULT_VERBOSITY
1608
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1611
AM_SUBST_NOTMAKE([AM_V])dnl
1612
AC_SUBST([AM_DEFAULT_V])dnl
1613
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1614
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1616
AC_SUBST([AM_BACKSLASH])dnl
1617
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1620
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1622
# This file is free software; the Free Software Foundation
1623
# gives unlimited permission to copy and/or distribute it,
1624
# with or without modifications, as long as this notice is preserved.
1628
# AM_PROG_INSTALL_STRIP
1629
# ---------------------
1630
# One issue with vendor `install' (even GNU) is that you can't
1631
# specify the program used to strip binaries. This is especially
1632
# annoying in cross-compiling environments, where the build's strip
1633
# is unlikely to handle the host's binaries.
1634
# Fortunately install-sh will honor a STRIPPROG variable, so we
1635
# always use install-sh in `make install-strip', and initialize
1636
# STRIPPROG with the value of the STRIP variable (set by the user).
1637
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1638
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1639
# Installed binaries are usually stripped using `strip' when the user
1640
# run `make install-strip'. However `strip' might not be the right
1641
# tool to use in cross-compilation environments, therefore Automake
1642
# will honor the `STRIP' environment variable to overrule this program.
1643
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1644
if test "$cross_compiling" != no; then
1645
AC_CHECK_TOOL([STRIP], [strip], :)
1647
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1648
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1650
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1652
# This file is free software; the Free Software Foundation
1653
# gives unlimited permission to copy and/or distribute it,
1654
# with or without modifications, as long as this notice is preserved.
1658
# _AM_SUBST_NOTMAKE(VARIABLE)
1659
# ---------------------------
1660
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1661
# This macro is traced by Automake.
1662
AC_DEFUN([_AM_SUBST_NOTMAKE])
1664
# AM_SUBST_NOTMAKE(VARIABLE)
1665
# --------------------------
1666
# Public sister of _AM_SUBST_NOTMAKE.
1667
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1669
# Check how to create a tarball. -*- Autoconf -*-
1671
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1673
# This file is free software; the Free Software Foundation
1674
# gives unlimited permission to copy and/or distribute it,
1675
# with or without modifications, as long as this notice is preserved.
1679
# _AM_PROG_TAR(FORMAT)
1680
# --------------------
1681
# Check how to create a tarball in format FORMAT.
1682
# FORMAT should be one of `v7', `ustar', or `pax'.
1684
# Substitute a variable $(am__tar) that is a command
1685
# writing to stdout a FORMAT-tarball containing the directory
1687
# tardir=directory && $(am__tar) > result.tar
1689
# Substitute a variable $(am__untar) that extract such
1690
# a tarball read from stdin.
1691
# $(am__untar) < result.tar
1692
AC_DEFUN([_AM_PROG_TAR],
1693
[# Always define AMTAR for backward compatibility. Yes, it's still used
1694
# in the wild :-( We should find a proper way to deprecate it ...
1695
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1697
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1698
[m4_case([$1], [ustar],, [pax],,
1699
[m4_fatal([Unknown tar format])])
1700
AC_MSG_CHECKING([how to create a $1 tar archive])
1701
# Loop over all known methods to create a tar archive until one works.
1702
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1703
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1704
# Do not fold the above two line into one, because Tru64 sh and
1705
# Solaris sh will not grok spaces in the rhs of `-'.
1706
for _am_tool in $_am_tools
1710
for _am_tar in tar gnutar gtar;
1712
AM_RUN_LOG([$_am_tar --version]) && break
1714
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1715
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1716
am__untar="$_am_tar -xf -"
1719
# Must skip GNU tar: if it does not support --format= it doesn't create
1720
# ustar tarball either.
1721
(tar --version) >/dev/null 2>&1 && continue
1722
am__tar='tar chf - "$$tardir"'
1723
am__tar_='tar chf - "$tardir"'
1724
am__untar='tar xf -'
1727
am__tar='pax -L -x $1 -w "$$tardir"'
1728
am__tar_='pax -L -x $1 -w "$tardir"'
1732
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1733
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1734
am__untar='cpio -i -H $1 -d'
1743
# If the value was cached, stop now. We just wanted to have am__tar
1744
# and am__untar set.
1745
test -n "${am_cv_prog_tar_$1}" && break
1747
# tar/untar a dummy directory, and stop if the command works
1750
echo GrepMe > conftest.dir/file
1751
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1753
if test -s conftest.tar; then
1754
AM_RUN_LOG([$am__untar <conftest.tar])
1755
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1760
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1761
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1763
AC_SUBST([am__untar])
1766
m4_include([m4/libtool.m4])
1767
m4_include([m4/ltoptions.m4])
1768
m4_include([m4/ltsugar.m4])
1769
m4_include([m4/ltversion.m4])
1770
m4_include([m4/lt~obsolete.m4])