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