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