Annotation of embedaddon/mtr/aclocal.m4, revision 1.1.1.3

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>