Annotation of embedaddon/mtr/aclocal.m4, revision 1.1
1.1 ! misho 1: # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
! 2:
! 3: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
! 4: # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
! 5: # This file is free software; the Free Software Foundation
! 6: # gives unlimited permission to copy and/or distribute it,
! 7: # with or without modifications, as long as this notice is preserved.
! 8:
! 9: # This program is distributed in the hope that it will be useful,
! 10: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
! 11: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
! 12: # PARTICULAR PURPOSE.
! 13:
! 14: m4_ifndef([AC_AUTOCONF_VERSION],
! 15: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
! 16: m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
! 17: [m4_warning([this file was generated for autoconf 2.68.
! 18: You have another version of autoconf. It may work, but is not guaranteed to.
! 19: If you have problems, you may need to regenerate the build system entirely.
! 20: To do so, use the procedure documented by the package, typically `autoreconf'.])])
! 21:
! 22: # Configure paths for GTK+
! 23: # Owen Taylor 1997-2001
! 24:
! 25: dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
! 26: dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
! 27: dnl pass to pkg-config
! 28: dnl
! 29: AC_DEFUN([AM_PATH_GTK_2_0],
! 30: [dnl
! 31: dnl Get the cflags and libraries from pkg-config
! 32: dnl
! 33: AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
! 34: , enable_gtktest=yes)
! 35:
! 36: pkg_config_args=gtk+-2.0
! 37: for module in . $4
! 38: do
! 39: case "$module" in
! 40: gthread)
! 41: pkg_config_args="$pkg_config_args gthread-2.0"
! 42: ;;
! 43: esac
! 44: done
! 45:
! 46: no_gtk=""
! 47:
! 48: AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
! 49:
! 50: if test x$PKG_CONFIG != xno ; then
! 51: if pkg-config --atleast-pkgconfig-version 0.7 ; then
! 52: :
! 53: else
! 54: echo "*** pkg-config too old; version 0.7 or better required."
! 55: no_gtk=yes
! 56: PKG_CONFIG=no
! 57: fi
! 58: else
! 59: no_gtk=yes
! 60: fi
! 61:
! 62: min_gtk_version=ifelse([$1], ,2.0.0,$1)
! 63: AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
! 64:
! 65: if test x$PKG_CONFIG != xno ; then
! 66: ## don't try to run the test against uninstalled libtool libs
! 67: if $PKG_CONFIG --uninstalled $pkg_config_args; then
! 68: echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
! 69: enable_gtktest=no
! 70: fi
! 71:
! 72: if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
! 73: :
! 74: else
! 75: no_gtk=yes
! 76: fi
! 77: fi
! 78:
! 79: if test x"$no_gtk" = x ; then
! 80: GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
! 81: GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
! 82: gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
! 83: sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
! 84: gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
! 85: sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
! 86: gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
! 87: sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
! 88: if test "x$enable_gtktest" = "xyes" ; then
! 89: ac_save_CFLAGS="$CFLAGS"
! 90: ac_save_LIBS="$LIBS"
! 91: CFLAGS="$CFLAGS $GTK_CFLAGS"
! 92: LIBS="$GTK_LIBS $LIBS"
! 93: dnl
! 94: dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
! 95: dnl checks the results of pkg-config to some extent)
! 96: dnl
! 97: rm -f conf.gtktest
! 98: AC_TRY_RUN([
! 99: #include <gtk/gtk.h>
! 100: #include <stdio.h>
! 101: #include <stdlib.h>
! 102:
! 103: int
! 104: main ()
! 105: {
! 106: int major, minor, micro;
! 107: char *tmp_version;
! 108:
! 109: fclose (fopen ("conf.gtktest", "w"));
! 110:
! 111: /* HP/UX 9 (%@#!) writes to sscanf strings */
! 112: tmp_version = g_strdup("$min_gtk_version");
! 113: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
! 114: printf("%s, bad version string\n", "$min_gtk_version");
! 115: exit(1);
! 116: }
! 117:
! 118: if ((gtk_major_version != $gtk_config_major_version) ||
! 119: (gtk_minor_version != $gtk_config_minor_version) ||
! 120: (gtk_micro_version != $gtk_config_micro_version))
! 121: {
! 122: printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
! 123: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
! 124: gtk_major_version, gtk_minor_version, gtk_micro_version);
! 125: printf ("*** was found! If pkg-config was correct, then it is best\n");
! 126: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
! 127: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
! 128: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
! 129: printf("*** required on your system.\n");
! 130: printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
! 131: printf("*** to point to the correct configuration files\n");
! 132: }
! 133: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
! 134: (gtk_minor_version != GTK_MINOR_VERSION) ||
! 135: (gtk_micro_version != GTK_MICRO_VERSION))
! 136: {
! 137: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
! 138: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
! 139: printf("*** library (version %d.%d.%d)\n",
! 140: gtk_major_version, gtk_minor_version, gtk_micro_version);
! 141: }
! 142: else
! 143: {
! 144: if ((gtk_major_version > major) ||
! 145: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
! 146: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
! 147: {
! 148: return 0;
! 149: }
! 150: else
! 151: {
! 152: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
! 153: gtk_major_version, gtk_minor_version, gtk_micro_version);
! 154: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
! 155: major, minor, micro);
! 156: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
! 157: printf("***\n");
! 158: printf("*** If you have already installed a sufficiently new version, this error\n");
! 159: printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
! 160: printf("*** being found. The easiest way to fix this is to remove the old version\n");
! 161: printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
! 162: printf("*** correct copy of pkg-config. (In this case, you will have to\n");
! 163: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
! 164: printf("*** so that the correct libraries are found at run-time))\n");
! 165: }
! 166: }
! 167: return 1;
! 168: }
! 169: ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
! 170: CFLAGS="$ac_save_CFLAGS"
! 171: LIBS="$ac_save_LIBS"
! 172: fi
! 173: fi
! 174: if test "x$no_gtk" = x ; then
! 175: AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
! 176: ifelse([$2], , :, [$2])
! 177: else
! 178: AC_MSG_RESULT(no)
! 179: if test "$PKG_CONFIG" = "no" ; then
! 180: echo "*** A new enough version of pkg-config was not found."
! 181: echo "*** See http://pkgconfig.sourceforge.net"
! 182: else
! 183: if test -f conf.gtktest ; then
! 184: :
! 185: else
! 186: echo "*** Could not run GTK+ test program, checking why..."
! 187: ac_save_CFLAGS="$CFLAGS"
! 188: ac_save_LIBS="$LIBS"
! 189: CFLAGS="$CFLAGS $GTK_CFLAGS"
! 190: LIBS="$LIBS $GTK_LIBS"
! 191: AC_TRY_LINK([
! 192: #include <gtk/gtk.h>
! 193: #include <stdio.h>
! 194: ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
! 195: [ echo "*** The test program compiled, but did not run. This usually means"
! 196: echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
! 197: echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
! 198: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
! 199: echo "*** to the installed location Also, make sure you have run ldconfig if that"
! 200: echo "*** is required on your system"
! 201: echo "***"
! 202: echo "*** If you have an old version installed, it is best to remove it, although"
! 203: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
! 204: [ echo "*** The test program failed to compile or link. See the file config.log for the"
! 205: echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
! 206: CFLAGS="$ac_save_CFLAGS"
! 207: LIBS="$ac_save_LIBS"
! 208: fi
! 209: fi
! 210: GTK_CFLAGS=""
! 211: GTK_LIBS=""
! 212: ifelse([$3], , :, [$3])
! 213: fi
! 214: AC_SUBST(GTK_CFLAGS)
! 215: AC_SUBST(GTK_LIBS)
! 216: rm -f conf.gtktest
! 217: ])
! 218:
! 219: # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
! 220: # serial 1 (pkg-config-0.24)
! 221: #
! 222: # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
! 223: #
! 224: # This program is free software; you can redistribute it and/or modify
! 225: # it under the terms of the GNU General Public License as published by
! 226: # the Free Software Foundation; either version 2 of the License, or
! 227: # (at your option) any later version.
! 228: #
! 229: # This program is distributed in the hope that it will be useful, but
! 230: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 231: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 232: # General Public License for more details.
! 233: #
! 234: # You should have received a copy of the GNU General Public License
! 235: # along with this program; if not, write to the Free Software
! 236: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 237: #
! 238: # As a special exception to the GNU General Public License, if you
! 239: # distribute this file as part of a program that contains a
! 240: # configuration script generated by Autoconf, you may include it under
! 241: # the same distribution terms that you use for the rest of that program.
! 242:
! 243: # PKG_PROG_PKG_CONFIG([MIN-VERSION])
! 244: # ----------------------------------
! 245: AC_DEFUN([PKG_PROG_PKG_CONFIG],
! 246: [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
! 247: m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
! 248: m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
! 249: AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
! 250: AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
! 251: AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
! 252:
! 253: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
! 254: AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
! 255: fi
! 256: if test -n "$PKG_CONFIG"; then
! 257: _pkg_min_version=m4_default([$1], [0.9.0])
! 258: AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
! 259: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
! 260: AC_MSG_RESULT([yes])
! 261: else
! 262: AC_MSG_RESULT([no])
! 263: PKG_CONFIG=""
! 264: fi
! 265: fi[]dnl
! 266: ])# PKG_PROG_PKG_CONFIG
! 267:
! 268: # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
! 269: #
! 270: # Check to see whether a particular set of modules exists. Similar
! 271: # to PKG_CHECK_MODULES(), but does not set variables or print errors.
! 272: #
! 273: # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
! 274: # only at the first occurence in configure.ac, so if the first place
! 275: # it's called might be skipped (such as if it is within an "if", you
! 276: # have to call PKG_CHECK_EXISTS manually
! 277: # --------------------------------------------------------------
! 278: AC_DEFUN([PKG_CHECK_EXISTS],
! 279: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
! 280: if test -n "$PKG_CONFIG" && \
! 281: AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
! 282: m4_default([$2], [:])
! 283: m4_ifvaln([$3], [else
! 284: $3])dnl
! 285: fi])
! 286:
! 287: # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
! 288: # ---------------------------------------------
! 289: m4_define([_PKG_CONFIG],
! 290: [if test -n "$$1"; then
! 291: pkg_cv_[]$1="$$1"
! 292: elif test -n "$PKG_CONFIG"; then
! 293: PKG_CHECK_EXISTS([$3],
! 294: [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
! 295: test "x$?" != "x0" && pkg_failed=yes ],
! 296: [pkg_failed=yes])
! 297: else
! 298: pkg_failed=untried
! 299: fi[]dnl
! 300: ])# _PKG_CONFIG
! 301:
! 302: # _PKG_SHORT_ERRORS_SUPPORTED
! 303: # -----------------------------
! 304: AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
! 305: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
! 306: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
! 307: _pkg_short_errors_supported=yes
! 308: else
! 309: _pkg_short_errors_supported=no
! 310: fi[]dnl
! 311: ])# _PKG_SHORT_ERRORS_SUPPORTED
! 312:
! 313:
! 314: # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
! 315: # [ACTION-IF-NOT-FOUND])
! 316: #
! 317: #
! 318: # Note that if there is a possibility the first call to
! 319: # PKG_CHECK_MODULES might not happen, you should be sure to include an
! 320: # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
! 321: #
! 322: #
! 323: # --------------------------------------------------------------
! 324: AC_DEFUN([PKG_CHECK_MODULES],
! 325: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
! 326: AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
! 327: AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
! 328:
! 329: pkg_failed=no
! 330: AC_MSG_CHECKING([for $1])
! 331:
! 332: _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
! 333: _PKG_CONFIG([$1][_LIBS], [libs], [$2])
! 334:
! 335: m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
! 336: and $1[]_LIBS to avoid the need to call pkg-config.
! 337: See the pkg-config man page for more details.])
! 338:
! 339: if test $pkg_failed = yes; then
! 340: AC_MSG_RESULT([no])
! 341: _PKG_SHORT_ERRORS_SUPPORTED
! 342: if test $_pkg_short_errors_supported = yes; then
! 343: $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
! 344: else
! 345: $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
! 346: fi
! 347: # Put the nasty error message in config.log where it belongs
! 348: echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
! 349:
! 350: m4_default([$4], [AC_MSG_ERROR(
! 351: [Package requirements ($2) were not met:
! 352:
! 353: $$1_PKG_ERRORS
! 354:
! 355: Consider adjusting the PKG_CONFIG_PATH environment variable if you
! 356: installed software in a non-standard prefix.
! 357:
! 358: _PKG_TEXT])[]dnl
! 359: ])
! 360: elif test $pkg_failed = untried; then
! 361: AC_MSG_RESULT([no])
! 362: m4_default([$4], [AC_MSG_FAILURE(
! 363: [The pkg-config script could not be found or is too old. Make sure it
! 364: is in your PATH or set the PKG_CONFIG environment variable to the full
! 365: path to pkg-config.
! 366:
! 367: _PKG_TEXT
! 368:
! 369: To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
! 370: ])
! 371: else
! 372: $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
! 373: $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
! 374: AC_MSG_RESULT([yes])
! 375: $3
! 376: fi[]dnl
! 377: ])# PKG_CHECK_MODULES
! 378:
! 379: # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
! 380: #
! 381: # This file is free software; the Free Software Foundation
! 382: # gives unlimited permission to copy and/or distribute it,
! 383: # with or without modifications, as long as this notice is preserved.
! 384:
! 385: # AM_AUTOMAKE_VERSION(VERSION)
! 386: # ----------------------------
! 387: # Automake X.Y traces this macro to ensure aclocal.m4 has been
! 388: # generated from the m4 files accompanying Automake X.Y.
! 389: # (This private macro should not be called outside this file.)
! 390: AC_DEFUN([AM_AUTOMAKE_VERSION],
! 391: [am__api_version='1.11'
! 392: dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
! 393: dnl require some minimum version. Point them to the right macro.
! 394: m4_if([$1], [1.11.1], [],
! 395: [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
! 396: ])
! 397:
! 398: # _AM_AUTOCONF_VERSION(VERSION)
! 399: # -----------------------------
! 400: # aclocal traces this macro to find the Autoconf version.
! 401: # This is a private macro too. Using m4_define simplifies
! 402: # the logic in aclocal, which can simply ignore this definition.
! 403: m4_define([_AM_AUTOCONF_VERSION], [])
! 404:
! 405: # AM_SET_CURRENT_AUTOMAKE_VERSION
! 406: # -------------------------------
! 407: # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
! 408: # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
! 409: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
! 410: [AM_AUTOMAKE_VERSION([1.11.1])dnl
! 411: m4_ifndef([AC_AUTOCONF_VERSION],
! 412: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
! 413: _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
! 414:
! 415: # AM_AUX_DIR_EXPAND -*- Autoconf -*-
! 416:
! 417: # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
! 418: #
! 419: # This file is free software; the Free Software Foundation
! 420: # gives unlimited permission to copy and/or distribute it,
! 421: # with or without modifications, as long as this notice is preserved.
! 422:
! 423: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
! 424: # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
! 425: # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
! 426: #
! 427: # Of course, Automake must honor this variable whenever it calls a
! 428: # tool from the auxiliary directory. The problem is that $srcdir (and
! 429: # therefore $ac_aux_dir as well) can be either absolute or relative,
! 430: # depending on how configure is run. This is pretty annoying, since
! 431: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
! 432: # source directory, any form will work fine, but in subdirectories a
! 433: # relative path needs to be adjusted first.
! 434: #
! 435: # $ac_aux_dir/missing
! 436: # fails when called from a subdirectory if $ac_aux_dir is relative
! 437: # $top_srcdir/$ac_aux_dir/missing
! 438: # fails if $ac_aux_dir is absolute,
! 439: # fails when called from a subdirectory in a VPATH build with
! 440: # a relative $ac_aux_dir
! 441: #
! 442: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
! 443: # are both prefixed by $srcdir. In an in-source build this is usually
! 444: # harmless because $srcdir is `.', but things will broke when you
! 445: # start a VPATH build or use an absolute $srcdir.
! 446: #
! 447: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
! 448: # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
! 449: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
! 450: # and then we would define $MISSING as
! 451: # MISSING="\${SHELL} $am_aux_dir/missing"
! 452: # This will work as long as MISSING is not called from configure, because
! 453: # unfortunately $(top_srcdir) has no meaning in configure.
! 454: # However there are other variables, like CC, which are often used in
! 455: # configure, and could therefore not use this "fixed" $ac_aux_dir.
! 456: #
! 457: # Another solution, used here, is to always expand $ac_aux_dir to an
! 458: # absolute PATH. The drawback is that using absolute paths prevent a
! 459: # configured tree to be moved without reconfiguration.
! 460:
! 461: AC_DEFUN([AM_AUX_DIR_EXPAND],
! 462: [dnl Rely on autoconf to set up CDPATH properly.
! 463: AC_PREREQ([2.50])dnl
! 464: # expand $ac_aux_dir to an absolute path
! 465: am_aux_dir=`cd $ac_aux_dir && pwd`
! 466: ])
! 467:
! 468: # AM_CONDITIONAL -*- Autoconf -*-
! 469:
! 470: # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
! 471: # Free Software Foundation, Inc.
! 472: #
! 473: # This file is free software; the Free Software Foundation
! 474: # gives unlimited permission to copy and/or distribute it,
! 475: # with or without modifications, as long as this notice is preserved.
! 476:
! 477: # serial 9
! 478:
! 479: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
! 480: # -------------------------------------
! 481: # Define a conditional.
! 482: AC_DEFUN([AM_CONDITIONAL],
! 483: [AC_PREREQ(2.52)dnl
! 484: ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
! 485: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
! 486: AC_SUBST([$1_TRUE])dnl
! 487: AC_SUBST([$1_FALSE])dnl
! 488: _AM_SUBST_NOTMAKE([$1_TRUE])dnl
! 489: _AM_SUBST_NOTMAKE([$1_FALSE])dnl
! 490: m4_define([_AM_COND_VALUE_$1], [$2])dnl
! 491: if $2; then
! 492: $1_TRUE=
! 493: $1_FALSE='#'
! 494: else
! 495: $1_TRUE='#'
! 496: $1_FALSE=
! 497: fi
! 498: AC_CONFIG_COMMANDS_PRE(
! 499: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
! 500: AC_MSG_ERROR([[conditional "$1" was never defined.
! 501: Usually this means the macro was only invoked conditionally.]])
! 502: fi])])
! 503:
! 504: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
! 505: # Free Software Foundation, Inc.
! 506: #
! 507: # This file is free software; the Free Software Foundation
! 508: # gives unlimited permission to copy and/or distribute it,
! 509: # with or without modifications, as long as this notice is preserved.
! 510:
! 511: # serial 10
! 512:
! 513: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
! 514: # written in clear, in which case automake, when reading aclocal.m4,
! 515: # will think it sees a *use*, and therefore will trigger all it's
! 516: # C support machinery. Also note that it means that autoscan, seeing
! 517: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
! 518:
! 519:
! 520: # _AM_DEPENDENCIES(NAME)
! 521: # ----------------------
! 522: # See how the compiler implements dependency checking.
! 523: # NAME is "CC", "CXX", "GCJ", or "OBJC".
! 524: # We try a few techniques and use that to set a single cache variable.
! 525: #
! 526: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
! 527: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
! 528: # dependency, and given that the user is not expected to run this macro,
! 529: # just rely on AC_PROG_CC.
! 530: AC_DEFUN([_AM_DEPENDENCIES],
! 531: [AC_REQUIRE([AM_SET_DEPDIR])dnl
! 532: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
! 533: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
! 534: AC_REQUIRE([AM_DEP_TRACK])dnl
! 535:
! 536: ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
! 537: [$1], CXX, [depcc="$CXX" am_compiler_list=],
! 538: [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
! 539: [$1], UPC, [depcc="$UPC" am_compiler_list=],
! 540: [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
! 541: [depcc="$$1" am_compiler_list=])
! 542:
! 543: AC_CACHE_CHECK([dependency style of $depcc],
! 544: [am_cv_$1_dependencies_compiler_type],
! 545: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 546: # We make a subdir and do the tests there. Otherwise we can end up
! 547: # making bogus files that we don't know about and never remove. For
! 548: # instance it was reported that on HP-UX the gcc test will end up
! 549: # making a dummy file named `D' -- because `-MD' means `put the output
! 550: # in D'.
! 551: mkdir conftest.dir
! 552: # Copy depcomp to subdir because otherwise we won't find it if we're
! 553: # using a relative directory.
! 554: cp "$am_depcomp" conftest.dir
! 555: cd conftest.dir
! 556: # We will build objects and dependencies in a subdirectory because
! 557: # it helps to detect inapplicable dependency modes. For instance
! 558: # both Tru64's cc and ICC support -MD to output dependencies as a
! 559: # side effect of compilation, but ICC will put the dependencies in
! 560: # the current directory while Tru64 will put them in the object
! 561: # directory.
! 562: mkdir sub
! 563:
! 564: am_cv_$1_dependencies_compiler_type=none
! 565: if test "$am_compiler_list" = ""; then
! 566: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
! 567: fi
! 568: am__universal=false
! 569: m4_case([$1], [CC],
! 570: [case " $depcc " in #(
! 571: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 572: esac],
! 573: [CXX],
! 574: [case " $depcc " in #(
! 575: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 576: esac])
! 577:
! 578: for depmode in $am_compiler_list; do
! 579: # Setup a source with many dependencies, because some compilers
! 580: # like to wrap large dependency lists on column 80 (with \), and
! 581: # we should not choose a depcomp mode which is confused by this.
! 582: #
! 583: # We need to recreate these files for each test, as the compiler may
! 584: # overwrite some of them when testing with obscure command lines.
! 585: # This happens at least with the AIX C compiler.
! 586: : > sub/conftest.c
! 587: for i in 1 2 3 4 5 6; do
! 588: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 589: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
! 590: # Solaris 8's {/usr,}/bin/sh.
! 591: touch sub/conftst$i.h
! 592: done
! 593: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
! 594:
! 595: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 596: # mode. It turns out that the SunPro C++ compiler does not properly
! 597: # handle `-M -o', and we need to detect this. Also, some Intel
! 598: # versions had trouble with output in subdirs
! 599: am__obj=sub/conftest.${OBJEXT-o}
! 600: am__minus_obj="-o $am__obj"
! 601: case $depmode in
! 602: gcc)
! 603: # This depmode causes a compiler race in universal mode.
! 604: test "$am__universal" = false || continue
! 605: ;;
! 606: nosideeffect)
! 607: # after this tag, mechanisms are not by side-effect, so they'll
! 608: # only be used when explicitly requested
! 609: if test "x$enable_dependency_tracking" = xyes; then
! 610: continue
! 611: else
! 612: break
! 613: fi
! 614: ;;
! 615: msvisualcpp | msvcmsys)
! 616: # This compiler won't grok `-c -o', but also, the minuso test has
! 617: # not run yet. These depmodes are late enough in the game, and
! 618: # so weak that their functioning should not be impacted.
! 619: am__obj=conftest.${OBJEXT-o}
! 620: am__minus_obj=
! 621: ;;
! 622: none) break ;;
! 623: esac
! 624: if depmode=$depmode \
! 625: source=sub/conftest.c object=$am__obj \
! 626: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 627: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
! 628: >/dev/null 2>conftest.err &&
! 629: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 630: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 631: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
! 632: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 633: # icc doesn't choke on unknown options, it will just issue warnings
! 634: # or remarks (even with -Werror). So we grep stderr for any message
! 635: # that says an option was ignored or not supported.
! 636: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 637: # icc: Command line warning: ignoring option '-M'; no argument required
! 638: # The diagnosis changed in icc 8.0:
! 639: # icc: Command line remark: option '-MP' not supported
! 640: if (grep 'ignoring option' conftest.err ||
! 641: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
! 642: am_cv_$1_dependencies_compiler_type=$depmode
! 643: break
! 644: fi
! 645: fi
! 646: done
! 647:
! 648: cd ..
! 649: rm -rf conftest.dir
! 650: else
! 651: am_cv_$1_dependencies_compiler_type=none
! 652: fi
! 653: ])
! 654: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
! 655: AM_CONDITIONAL([am__fastdep$1], [
! 656: test "x$enable_dependency_tracking" != xno \
! 657: && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
! 658: ])
! 659:
! 660:
! 661: # AM_SET_DEPDIR
! 662: # -------------
! 663: # Choose a directory name for dependency files.
! 664: # This macro is AC_REQUIREd in _AM_DEPENDENCIES
! 665: AC_DEFUN([AM_SET_DEPDIR],
! 666: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
! 667: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
! 668: ])
! 669:
! 670:
! 671: # AM_DEP_TRACK
! 672: # ------------
! 673: AC_DEFUN([AM_DEP_TRACK],
! 674: [AC_ARG_ENABLE(dependency-tracking,
! 675: [ --disable-dependency-tracking speeds up one-time build
! 676: --enable-dependency-tracking do not reject slow dependency extractors])
! 677: if test "x$enable_dependency_tracking" != xno; then
! 678: am_depcomp="$ac_aux_dir/depcomp"
! 679: AMDEPBACKSLASH='\'
! 680: fi
! 681: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
! 682: AC_SUBST([AMDEPBACKSLASH])dnl
! 683: _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
! 684: ])
! 685:
! 686: # Generate code to set up dependency tracking. -*- Autoconf -*-
! 687:
! 688: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
! 689: # Free Software Foundation, Inc.
! 690: #
! 691: # This file is free software; the Free Software Foundation
! 692: # gives unlimited permission to copy and/or distribute it,
! 693: # with or without modifications, as long as this notice is preserved.
! 694:
! 695: #serial 5
! 696:
! 697: # _AM_OUTPUT_DEPENDENCY_COMMANDS
! 698: # ------------------------------
! 699: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
! 700: [{
! 701: # Autoconf 2.62 quotes --file arguments for eval, but not when files
! 702: # are listed without --file. Let's play safe and only enable the eval
! 703: # if we detect the quoting.
! 704: case $CONFIG_FILES in
! 705: *\'*) eval set x "$CONFIG_FILES" ;;
! 706: *) set x $CONFIG_FILES ;;
! 707: esac
! 708: shift
! 709: for mf
! 710: do
! 711: # Strip MF so we end up with the name of the file.
! 712: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 713: # Check whether this is an Automake generated Makefile or not.
! 714: # We used to match only the files named `Makefile.in', but
! 715: # some people rename them; so instead we look at the file content.
! 716: # Grep'ing the first line is not enough: some people post-process
! 717: # each Makefile.in and add a new line on top of each file to say so.
! 718: # Grep'ing the whole file is not good either: AIX grep has a line
! 719: # limit of 2048, but all sed's we know have understand at least 4000.
! 720: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
! 721: dirpart=`AS_DIRNAME("$mf")`
! 722: else
! 723: continue
! 724: fi
! 725: # Extract the definition of DEPDIR, am__include, and am__quote
! 726: # from the Makefile without running `make'.
! 727: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
! 728: test -z "$DEPDIR" && continue
! 729: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 730: test -z "am__include" && continue
! 731: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
! 732: # When using ansi2knr, U may be empty or an underscore; expand it
! 733: U=`sed -n 's/^U = //p' < "$mf"`
! 734: # Find all dependency output files, they are included files with
! 735: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 736: # simplest approach to changing $(DEPDIR) to its actual value in the
! 737: # expansion.
! 738: for file in `sed -n "
! 739: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
! 740: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 741: # Make sure the directory exists.
! 742: test -f "$dirpart/$file" && continue
! 743: fdir=`AS_DIRNAME(["$file"])`
! 744: AS_MKDIR_P([$dirpart/$fdir])
! 745: # echo "creating $dirpart/$file"
! 746: echo '# dummy' > "$dirpart/$file"
! 747: done
! 748: done
! 749: }
! 750: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
! 751:
! 752:
! 753: # AM_OUTPUT_DEPENDENCY_COMMANDS
! 754: # -----------------------------
! 755: # This macro should only be invoked once -- use via AC_REQUIRE.
! 756: #
! 757: # This code is only required when automatic dependency tracking
! 758: # is enabled. FIXME. This creates each `.P' file that we will
! 759: # need in order to bootstrap the dependency handling code.
! 760: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
! 761: [AC_CONFIG_COMMANDS([depfiles],
! 762: [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
! 763: [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
! 764: ])
! 765:
! 766: # Do all the work for Automake. -*- Autoconf -*-
! 767:
! 768: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
! 769: # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
! 770: #
! 771: # This file is free software; the Free Software Foundation
! 772: # gives unlimited permission to copy and/or distribute it,
! 773: # with or without modifications, as long as this notice is preserved.
! 774:
! 775: # serial 16
! 776:
! 777: # This macro actually does too much. Some checks are only needed if
! 778: # your package does certain things. But this isn't really a big deal.
! 779:
! 780: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
! 781: # AM_INIT_AUTOMAKE([OPTIONS])
! 782: # -----------------------------------------------
! 783: # The call with PACKAGE and VERSION arguments is the old style
! 784: # call (pre autoconf-2.50), which is being phased out. PACKAGE
! 785: # and VERSION should now be passed to AC_INIT and removed from
! 786: # the call to AM_INIT_AUTOMAKE.
! 787: # We support both call styles for the transition. After
! 788: # the next Automake release, Autoconf can make the AC_INIT
! 789: # arguments mandatory, and then we can depend on a new Autoconf
! 790: # release and drop the old call support.
! 791: AC_DEFUN([AM_INIT_AUTOMAKE],
! 792: [AC_PREREQ([2.62])dnl
! 793: dnl Autoconf wants to disallow AM_ names. We explicitly allow
! 794: dnl the ones we care about.
! 795: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
! 796: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
! 797: AC_REQUIRE([AC_PROG_INSTALL])dnl
! 798: if test "`cd $srcdir && pwd`" != "`pwd`"; then
! 799: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
! 800: # is not polluted with repeated "-I."
! 801: AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
! 802: # test to see if srcdir already configured
! 803: if test -f $srcdir/config.status; then
! 804: AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
! 805: fi
! 806: fi
! 807:
! 808: # test whether we have cygpath
! 809: if test -z "$CYGPATH_W"; then
! 810: if (cygpath --version) >/dev/null 2>/dev/null; then
! 811: CYGPATH_W='cygpath -w'
! 812: else
! 813: CYGPATH_W=echo
! 814: fi
! 815: fi
! 816: AC_SUBST([CYGPATH_W])
! 817:
! 818: # Define the identity of the package.
! 819: dnl Distinguish between old-style and new-style calls.
! 820: m4_ifval([$2],
! 821: [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
! 822: AC_SUBST([PACKAGE], [$1])dnl
! 823: AC_SUBST([VERSION], [$2])],
! 824: [_AM_SET_OPTIONS([$1])dnl
! 825: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
! 826: m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
! 827: [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
! 828: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
! 829: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
! 830:
! 831: _AM_IF_OPTION([no-define],,
! 832: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
! 833: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
! 834:
! 835: # Some tools Automake needs.
! 836: AC_REQUIRE([AM_SANITY_CHECK])dnl
! 837: AC_REQUIRE([AC_ARG_PROGRAM])dnl
! 838: AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
! 839: AM_MISSING_PROG(AUTOCONF, autoconf)
! 840: AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
! 841: AM_MISSING_PROG(AUTOHEADER, autoheader)
! 842: AM_MISSING_PROG(MAKEINFO, makeinfo)
! 843: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
! 844: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
! 845: AC_REQUIRE([AM_PROG_MKDIR_P])dnl
! 846: # We need awk for the "check" target. The system "awk" is bad on
! 847: # some platforms.
! 848: AC_REQUIRE([AC_PROG_AWK])dnl
! 849: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
! 850: AC_REQUIRE([AM_SET_LEADING_DOT])dnl
! 851: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
! 852: [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
! 853: [_AM_PROG_TAR([v7])])])
! 854: _AM_IF_OPTION([no-dependencies],,
! 855: [AC_PROVIDE_IFELSE([AC_PROG_CC],
! 856: [_AM_DEPENDENCIES(CC)],
! 857: [define([AC_PROG_CC],
! 858: defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
! 859: AC_PROVIDE_IFELSE([AC_PROG_CXX],
! 860: [_AM_DEPENDENCIES(CXX)],
! 861: [define([AC_PROG_CXX],
! 862: defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
! 863: AC_PROVIDE_IFELSE([AC_PROG_OBJC],
! 864: [_AM_DEPENDENCIES(OBJC)],
! 865: [define([AC_PROG_OBJC],
! 866: defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
! 867: ])
! 868: _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
! 869: dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
! 870: dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
! 871: dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
! 872: AC_CONFIG_COMMANDS_PRE(dnl
! 873: [m4_provide_if([_AM_COMPILER_EXEEXT],
! 874: [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
! 875: ])
! 876:
! 877: dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
! 878: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
! 879: dnl mangled by Autoconf and run in a shell conditional statement.
! 880: m4_define([_AC_COMPILER_EXEEXT],
! 881: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
! 882:
! 883:
! 884: # When config.status generates a header, we must update the stamp-h file.
! 885: # This file resides in the same directory as the config header
! 886: # that is generated. The stamp files are numbered to have different names.
! 887:
! 888: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
! 889: # loop where config.status creates the headers, so we can generate
! 890: # our stamp files there.
! 891: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
! 892: [# Compute $1's index in $config_headers.
! 893: _am_arg=$1
! 894: _am_stamp_count=1
! 895: for _am_header in $config_headers :; do
! 896: case $_am_header in
! 897: $_am_arg | $_am_arg:* )
! 898: break ;;
! 899: * )
! 900: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
! 901: esac
! 902: done
! 903: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
! 904:
! 905: # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
! 906: #
! 907: # This file is free software; the Free Software Foundation
! 908: # gives unlimited permission to copy and/or distribute it,
! 909: # with or without modifications, as long as this notice is preserved.
! 910:
! 911: # AM_PROG_INSTALL_SH
! 912: # ------------------
! 913: # Define $install_sh.
! 914: AC_DEFUN([AM_PROG_INSTALL_SH],
! 915: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
! 916: if test x"${install_sh}" != xset; then
! 917: case $am_aux_dir in
! 918: *\ * | *\ *)
! 919: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
! 920: *)
! 921: install_sh="\${SHELL} $am_aux_dir/install-sh"
! 922: esac
! 923: fi
! 924: AC_SUBST(install_sh)])
! 925:
! 926: # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
! 927: #
! 928: # This file is free software; the Free Software Foundation
! 929: # gives unlimited permission to copy and/or distribute it,
! 930: # with or without modifications, as long as this notice is preserved.
! 931:
! 932: # serial 2
! 933:
! 934: # Check whether the underlying file-system supports filenames
! 935: # with a leading dot. For instance MS-DOS doesn't.
! 936: AC_DEFUN([AM_SET_LEADING_DOT],
! 937: [rm -rf .tst 2>/dev/null
! 938: mkdir .tst 2>/dev/null
! 939: if test -d .tst; then
! 940: am__leading_dot=.
! 941: else
! 942: am__leading_dot=_
! 943: fi
! 944: rmdir .tst 2>/dev/null
! 945: AC_SUBST([am__leading_dot])])
! 946:
! 947: # Check to see how 'make' treats includes. -*- Autoconf -*-
! 948:
! 949: # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
! 950: #
! 951: # This file is free software; the Free Software Foundation
! 952: # gives unlimited permission to copy and/or distribute it,
! 953: # with or without modifications, as long as this notice is preserved.
! 954:
! 955: # serial 4
! 956:
! 957: # AM_MAKE_INCLUDE()
! 958: # -----------------
! 959: # Check to see how make treats includes.
! 960: AC_DEFUN([AM_MAKE_INCLUDE],
! 961: [am_make=${MAKE-make}
! 962: cat > confinc << 'END'
! 963: am__doit:
! 964: @echo this is the am__doit target
! 965: .PHONY: am__doit
! 966: END
! 967: # If we don't find an include directive, just comment out the code.
! 968: AC_MSG_CHECKING([for style of include used by $am_make])
! 969: am__include="#"
! 970: am__quote=
! 971: _am_result=none
! 972: # First try GNU make style include.
! 973: echo "include confinc" > confmf
! 974: # Ignore all kinds of additional output from `make'.
! 975: case `$am_make -s -f confmf 2> /dev/null` in #(
! 976: *the\ am__doit\ target*)
! 977: am__include=include
! 978: am__quote=
! 979: _am_result=GNU
! 980: ;;
! 981: esac
! 982: # Now try BSD make style include.
! 983: if test "$am__include" = "#"; then
! 984: echo '.include "confinc"' > confmf
! 985: case `$am_make -s -f confmf 2> /dev/null` in #(
! 986: *the\ am__doit\ target*)
! 987: am__include=.include
! 988: am__quote="\""
! 989: _am_result=BSD
! 990: ;;
! 991: esac
! 992: fi
! 993: AC_SUBST([am__include])
! 994: AC_SUBST([am__quote])
! 995: AC_MSG_RESULT([$_am_result])
! 996: rm -f confinc confmf
! 997: ])
! 998:
! 999: # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
! 1000:
! 1001: # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
! 1002: # Free Software Foundation, Inc.
! 1003: #
! 1004: # This file is free software; the Free Software Foundation
! 1005: # gives unlimited permission to copy and/or distribute it,
! 1006: # with or without modifications, as long as this notice is preserved.
! 1007:
! 1008: # serial 6
! 1009:
! 1010: # AM_MISSING_PROG(NAME, PROGRAM)
! 1011: # ------------------------------
! 1012: AC_DEFUN([AM_MISSING_PROG],
! 1013: [AC_REQUIRE([AM_MISSING_HAS_RUN])
! 1014: $1=${$1-"${am_missing_run}$2"}
! 1015: AC_SUBST($1)])
! 1016:
! 1017:
! 1018: # AM_MISSING_HAS_RUN
! 1019: # ------------------
! 1020: # Define MISSING if not defined so far and test if it supports --run.
! 1021: # If it does, set am_missing_run to use it, otherwise, to nothing.
! 1022: AC_DEFUN([AM_MISSING_HAS_RUN],
! 1023: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
! 1024: AC_REQUIRE_AUX_FILE([missing])dnl
! 1025: if test x"${MISSING+set}" != xset; then
! 1026: case $am_aux_dir in
! 1027: *\ * | *\ *)
! 1028: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
! 1029: *)
! 1030: MISSING="\${SHELL} $am_aux_dir/missing" ;;
! 1031: esac
! 1032: fi
! 1033: # Use eval to expand $SHELL
! 1034: if eval "$MISSING --run true"; then
! 1035: am_missing_run="$MISSING --run "
! 1036: else
! 1037: am_missing_run=
! 1038: AC_MSG_WARN([`missing' script is too old or missing])
! 1039: fi
! 1040: ])
! 1041:
! 1042: # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
! 1043: #
! 1044: # This file is free software; the Free Software Foundation
! 1045: # gives unlimited permission to copy and/or distribute it,
! 1046: # with or without modifications, as long as this notice is preserved.
! 1047:
! 1048: # AM_PROG_MKDIR_P
! 1049: # ---------------
! 1050: # Check for `mkdir -p'.
! 1051: AC_DEFUN([AM_PROG_MKDIR_P],
! 1052: [AC_PREREQ([2.60])dnl
! 1053: AC_REQUIRE([AC_PROG_MKDIR_P])dnl
! 1054: dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
! 1055: dnl while keeping a definition of mkdir_p for backward compatibility.
! 1056: dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
! 1057: dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
! 1058: dnl Makefile.ins that do not define MKDIR_P, so we do our own
! 1059: dnl adjustment using top_builddir (which is defined more often than
! 1060: dnl MKDIR_P).
! 1061: AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
! 1062: case $mkdir_p in
! 1063: [[\\/$]]* | ?:[[\\/]]*) ;;
! 1064: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
! 1065: esac
! 1066: ])
! 1067:
! 1068: # Helper functions for option handling. -*- Autoconf -*-
! 1069:
! 1070: # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
! 1071: #
! 1072: # This file is free software; the Free Software Foundation
! 1073: # gives unlimited permission to copy and/or distribute it,
! 1074: # with or without modifications, as long as this notice is preserved.
! 1075:
! 1076: # serial 4
! 1077:
! 1078: # _AM_MANGLE_OPTION(NAME)
! 1079: # -----------------------
! 1080: AC_DEFUN([_AM_MANGLE_OPTION],
! 1081: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
! 1082:
! 1083: # _AM_SET_OPTION(NAME)
! 1084: # ------------------------------
! 1085: # Set option NAME. Presently that only means defining a flag for this option.
! 1086: AC_DEFUN([_AM_SET_OPTION],
! 1087: [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
! 1088:
! 1089: # _AM_SET_OPTIONS(OPTIONS)
! 1090: # ----------------------------------
! 1091: # OPTIONS is a space-separated list of Automake options.
! 1092: AC_DEFUN([_AM_SET_OPTIONS],
! 1093: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
! 1094:
! 1095: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
! 1096: # -------------------------------------------
! 1097: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
! 1098: AC_DEFUN([_AM_IF_OPTION],
! 1099: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
! 1100:
! 1101: # Check to make sure that the build environment is sane. -*- Autoconf -*-
! 1102:
! 1103: # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
! 1104: # Free Software Foundation, Inc.
! 1105: #
! 1106: # This file is free software; the Free Software Foundation
! 1107: # gives unlimited permission to copy and/or distribute it,
! 1108: # with or without modifications, as long as this notice is preserved.
! 1109:
! 1110: # serial 5
! 1111:
! 1112: # AM_SANITY_CHECK
! 1113: # ---------------
! 1114: AC_DEFUN([AM_SANITY_CHECK],
! 1115: [AC_MSG_CHECKING([whether build environment is sane])
! 1116: # Just in case
! 1117: sleep 1
! 1118: echo timestamp > conftest.file
! 1119: # Reject unsafe characters in $srcdir or the absolute working directory
! 1120: # name. Accept space and tab only in the latter.
! 1121: am_lf='
! 1122: '
! 1123: case `pwd` in
! 1124: *[[\\\"\#\$\&\'\`$am_lf]]*)
! 1125: AC_MSG_ERROR([unsafe absolute working directory name]);;
! 1126: esac
! 1127: case $srcdir in
! 1128: *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
! 1129: AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
! 1130: esac
! 1131:
! 1132: # Do `set' in a subshell so we don't clobber the current shell's
! 1133: # arguments. Must try -L first in case configure is actually a
! 1134: # symlink; some systems play weird games with the mod time of symlinks
! 1135: # (eg FreeBSD returns the mod time of the symlink's containing
! 1136: # directory).
! 1137: if (
! 1138: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
! 1139: if test "$[*]" = "X"; then
! 1140: # -L didn't work.
! 1141: set X `ls -t "$srcdir/configure" conftest.file`
! 1142: fi
! 1143: rm -f conftest.file
! 1144: if test "$[*]" != "X $srcdir/configure conftest.file" \
! 1145: && test "$[*]" != "X conftest.file $srcdir/configure"; then
! 1146:
! 1147: # If neither matched, then we have a broken ls. This can happen
! 1148: # if, for instance, CONFIG_SHELL is bash and it inherits a
! 1149: # broken ls alias from the environment. This has actually
! 1150: # happened. Such a system could not be considered "sane".
! 1151: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
! 1152: alias in your environment])
! 1153: fi
! 1154:
! 1155: test "$[2]" = conftest.file
! 1156: )
! 1157: then
! 1158: # Ok.
! 1159: :
! 1160: else
! 1161: AC_MSG_ERROR([newly created file is older than distributed files!
! 1162: Check your system clock])
! 1163: fi
! 1164: AC_MSG_RESULT(yes)])
! 1165:
! 1166: # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
! 1167: #
! 1168: # This file is free software; the Free Software Foundation
! 1169: # gives unlimited permission to copy and/or distribute it,
! 1170: # with or without modifications, as long as this notice is preserved.
! 1171:
! 1172: # AM_PROG_INSTALL_STRIP
! 1173: # ---------------------
! 1174: # One issue with vendor `install' (even GNU) is that you can't
! 1175: # specify the program used to strip binaries. This is especially
! 1176: # annoying in cross-compiling environments, where the build's strip
! 1177: # is unlikely to handle the host's binaries.
! 1178: # Fortunately install-sh will honor a STRIPPROG variable, so we
! 1179: # always use install-sh in `make install-strip', and initialize
! 1180: # STRIPPROG with the value of the STRIP variable (set by the user).
! 1181: AC_DEFUN([AM_PROG_INSTALL_STRIP],
! 1182: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
! 1183: # Installed binaries are usually stripped using `strip' when the user
! 1184: # run `make install-strip'. However `strip' might not be the right
! 1185: # tool to use in cross-compilation environments, therefore Automake
! 1186: # will honor the `STRIP' environment variable to overrule this program.
! 1187: dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
! 1188: if test "$cross_compiling" != no; then
! 1189: AC_CHECK_TOOL([STRIP], [strip], :)
! 1190: fi
! 1191: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
! 1192: AC_SUBST([INSTALL_STRIP_PROGRAM])])
! 1193:
! 1194: # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
! 1195: #
! 1196: # This file is free software; the Free Software Foundation
! 1197: # gives unlimited permission to copy and/or distribute it,
! 1198: # with or without modifications, as long as this notice is preserved.
! 1199:
! 1200: # serial 2
! 1201:
! 1202: # _AM_SUBST_NOTMAKE(VARIABLE)
! 1203: # ---------------------------
! 1204: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
! 1205: # This macro is traced by Automake.
! 1206: AC_DEFUN([_AM_SUBST_NOTMAKE])
! 1207:
! 1208: # AM_SUBST_NOTMAKE(VARIABLE)
! 1209: # ---------------------------
! 1210: # Public sister of _AM_SUBST_NOTMAKE.
! 1211: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
! 1212:
! 1213: # Check how to create a tarball. -*- Autoconf -*-
! 1214:
! 1215: # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
! 1216: #
! 1217: # This file is free software; the Free Software Foundation
! 1218: # gives unlimited permission to copy and/or distribute it,
! 1219: # with or without modifications, as long as this notice is preserved.
! 1220:
! 1221: # serial 2
! 1222:
! 1223: # _AM_PROG_TAR(FORMAT)
! 1224: # --------------------
! 1225: # Check how to create a tarball in format FORMAT.
! 1226: # FORMAT should be one of `v7', `ustar', or `pax'.
! 1227: #
! 1228: # Substitute a variable $(am__tar) that is a command
! 1229: # writing to stdout a FORMAT-tarball containing the directory
! 1230: # $tardir.
! 1231: # tardir=directory && $(am__tar) > result.tar
! 1232: #
! 1233: # Substitute a variable $(am__untar) that extract such
! 1234: # a tarball read from stdin.
! 1235: # $(am__untar) < result.tar
! 1236: AC_DEFUN([_AM_PROG_TAR],
! 1237: [# Always define AMTAR for backward compatibility.
! 1238: AM_MISSING_PROG([AMTAR], [tar])
! 1239: m4_if([$1], [v7],
! 1240: [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
! 1241: [m4_case([$1], [ustar],, [pax],,
! 1242: [m4_fatal([Unknown tar format])])
! 1243: AC_MSG_CHECKING([how to create a $1 tar archive])
! 1244: # Loop over all known methods to create a tar archive until one works.
! 1245: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
! 1246: _am_tools=${am_cv_prog_tar_$1-$_am_tools}
! 1247: # Do not fold the above two line into one, because Tru64 sh and
! 1248: # Solaris sh will not grok spaces in the rhs of `-'.
! 1249: for _am_tool in $_am_tools
! 1250: do
! 1251: case $_am_tool in
! 1252: gnutar)
! 1253: for _am_tar in tar gnutar gtar;
! 1254: do
! 1255: AM_RUN_LOG([$_am_tar --version]) && break
! 1256: done
! 1257: am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
! 1258: am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
! 1259: am__untar="$_am_tar -xf -"
! 1260: ;;
! 1261: plaintar)
! 1262: # Must skip GNU tar: if it does not support --format= it doesn't create
! 1263: # ustar tarball either.
! 1264: (tar --version) >/dev/null 2>&1 && continue
! 1265: am__tar='tar chf - "$$tardir"'
! 1266: am__tar_='tar chf - "$tardir"'
! 1267: am__untar='tar xf -'
! 1268: ;;
! 1269: pax)
! 1270: am__tar='pax -L -x $1 -w "$$tardir"'
! 1271: am__tar_='pax -L -x $1 -w "$tardir"'
! 1272: am__untar='pax -r'
! 1273: ;;
! 1274: cpio)
! 1275: am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
! 1276: am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
! 1277: am__untar='cpio -i -H $1 -d'
! 1278: ;;
! 1279: none)
! 1280: am__tar=false
! 1281: am__tar_=false
! 1282: am__untar=false
! 1283: ;;
! 1284: esac
! 1285:
! 1286: # If the value was cached, stop now. We just wanted to have am__tar
! 1287: # and am__untar set.
! 1288: test -n "${am_cv_prog_tar_$1}" && break
! 1289:
! 1290: # tar/untar a dummy directory, and stop if the command works
! 1291: rm -rf conftest.dir
! 1292: mkdir conftest.dir
! 1293: echo GrepMe > conftest.dir/file
! 1294: AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
! 1295: rm -rf conftest.dir
! 1296: if test -s conftest.tar; then
! 1297: AM_RUN_LOG([$am__untar <conftest.tar])
! 1298: grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
! 1299: fi
! 1300: done
! 1301: rm -rf conftest.dir
! 1302:
! 1303: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
! 1304: AC_MSG_RESULT([$am_cv_prog_tar_$1])])
! 1305: AC_SUBST([am__tar])
! 1306: AC_SUBST([am__untar])
! 1307: ]) # _AM_PROG_TAR
! 1308:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>