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

1.1.1.3 ! misho       1: # generated automatically by aclocal 1.12.5 -*- Autoconf -*-
        !             2: 
        !             3: # Copyright (C) 1996-2012 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: 
                     14: m4_ifndef([AC_AUTOCONF_VERSION],
                     15:   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1.1.1.3 ! misho      16: m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
        !            17: [m4_warning([this file was generated for autoconf 2.69.
1.1       misho      18: You have another version of autoconf.  It may work, but is not guaranteed to.
                     19: If you have problems, you may need to regenerate the build system entirely.
1.1.1.3 ! misho      20: To do so, use the procedure documented by the package, typically 'autoreconf'.])])
1.1       misho      21: 
1.1.1.3 ! misho      22: # Copyright (C) 2002-2012 Free Software Foundation, Inc.
1.1       misho      23: #
                     24: # This file is free software; the Free Software Foundation
                     25: # gives unlimited permission to copy and/or distribute it,
                     26: # with or without modifications, as long as this notice is preserved.
                     27: 
                     28: # AM_AUTOMAKE_VERSION(VERSION)
                     29: # ----------------------------
                     30: # Automake X.Y traces this macro to ensure aclocal.m4 has been
                     31: # generated from the m4 files accompanying Automake X.Y.
                     32: # (This private macro should not be called outside this file.)
                     33: AC_DEFUN([AM_AUTOMAKE_VERSION],
1.1.1.3 ! misho      34: [am__api_version='1.12'
1.1       misho      35: dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
                     36: dnl require some minimum version.  Point them to the right macro.
1.1.1.3 ! misho      37: m4_if([$1], [1.12.5], [],
1.1       misho      38:       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
                     39: ])
                     40: 
                     41: # _AM_AUTOCONF_VERSION(VERSION)
                     42: # -----------------------------
                     43: # aclocal traces this macro to find the Autoconf version.
                     44: # This is a private macro too.  Using m4_define simplifies
                     45: # the logic in aclocal, which can simply ignore this definition.
                     46: m4_define([_AM_AUTOCONF_VERSION], [])
                     47: 
                     48: # AM_SET_CURRENT_AUTOMAKE_VERSION
                     49: # -------------------------------
                     50: # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
                     51: # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
                     52: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.1.1.3 ! misho      53: [AM_AUTOMAKE_VERSION([1.12.5])dnl
1.1       misho      54: m4_ifndef([AC_AUTOCONF_VERSION],
                     55:   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
                     56: _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
                     57: 
                     58: # Figure out how to run the assembler.                      -*- Autoconf -*-
                     59: 
1.1.1.3 ! misho      60: # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1.1       misho      61: #
                     62: # This file is free software; the Free Software Foundation
                     63: # gives unlimited permission to copy and/or distribute it,
                     64: # with or without modifications, as long as this notice is preserved.
                     65: 
                     66: # AM_PROG_AS
                     67: # ----------
                     68: AC_DEFUN([AM_PROG_AS],
                     69: [# By default we simply use the C compiler to build assembly code.
                     70: AC_REQUIRE([AC_PROG_CC])
                     71: test "${CCAS+set}" = set || CCAS=$CC
                     72: test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
                     73: AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
                     74: AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
                     75: _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
                     76: ])
                     77: 
                     78: # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
                     79: 
1.1.1.3 ! misho      80: # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1.1       misho      81: #
                     82: # This file is free software; the Free Software Foundation
                     83: # gives unlimited permission to copy and/or distribute it,
                     84: # with or without modifications, as long as this notice is preserved.
                     85: 
                     86: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1.1.1.3 ! misho      87: # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
        !            88: # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
1.1       misho      89: #
                     90: # Of course, Automake must honor this variable whenever it calls a
                     91: # tool from the auxiliary directory.  The problem is that $srcdir (and
                     92: # therefore $ac_aux_dir as well) can be either absolute or relative,
                     93: # depending on how configure is run.  This is pretty annoying, since
                     94: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
                     95: # source directory, any form will work fine, but in subdirectories a
                     96: # relative path needs to be adjusted first.
                     97: #
                     98: # $ac_aux_dir/missing
                     99: #    fails when called from a subdirectory if $ac_aux_dir is relative
                    100: # $top_srcdir/$ac_aux_dir/missing
                    101: #    fails if $ac_aux_dir is absolute,
                    102: #    fails when called from a subdirectory in a VPATH build with
                    103: #          a relative $ac_aux_dir
                    104: #
                    105: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
                    106: # are both prefixed by $srcdir.  In an in-source build this is usually
1.1.1.3 ! misho     107: # harmless because $srcdir is '.', but things will broke when you
1.1       misho     108: # start a VPATH build or use an absolute $srcdir.
                    109: #
                    110: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
                    111: # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
                    112: #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
                    113: # and then we would define $MISSING as
                    114: #   MISSING="\${SHELL} $am_aux_dir/missing"
                    115: # This will work as long as MISSING is not called from configure, because
                    116: # unfortunately $(top_srcdir) has no meaning in configure.
                    117: # However there are other variables, like CC, which are often used in
                    118: # configure, and could therefore not use this "fixed" $ac_aux_dir.
                    119: #
                    120: # Another solution, used here, is to always expand $ac_aux_dir to an
                    121: # absolute PATH.  The drawback is that using absolute paths prevent a
                    122: # configured tree to be moved without reconfiguration.
                    123: 
                    124: AC_DEFUN([AM_AUX_DIR_EXPAND],
                    125: [dnl Rely on autoconf to set up CDPATH properly.
                    126: AC_PREREQ([2.50])dnl
                    127: # expand $ac_aux_dir to an absolute path
                    128: am_aux_dir=`cd $ac_aux_dir && pwd`
                    129: ])
                    130: 
                    131: # AM_CONDITIONAL                                            -*- Autoconf -*-
                    132: 
1.1.1.3 ! misho     133: # Copyright (C) 1997-2012 Free Software Foundation, Inc.
1.1       misho     134: #
                    135: # This file is free software; the Free Software Foundation
                    136: # gives unlimited permission to copy and/or distribute it,
                    137: # with or without modifications, as long as this notice is preserved.
                    138: 
                    139: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
                    140: # -------------------------------------
                    141: # Define a conditional.
                    142: AC_DEFUN([AM_CONDITIONAL],
1.1.1.3 ! misho     143: [AC_PREREQ([2.52])dnl
        !           144:  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
        !           145:        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1.1       misho     146: AC_SUBST([$1_TRUE])dnl
                    147: AC_SUBST([$1_FALSE])dnl
                    148: _AM_SUBST_NOTMAKE([$1_TRUE])dnl
                    149: _AM_SUBST_NOTMAKE([$1_FALSE])dnl
                    150: m4_define([_AM_COND_VALUE_$1], [$2])dnl
                    151: if $2; then
                    152:   $1_TRUE=
                    153:   $1_FALSE='#'
                    154: else
                    155:   $1_TRUE='#'
                    156:   $1_FALSE=
                    157: fi
                    158: AC_CONFIG_COMMANDS_PRE(
                    159: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
                    160:   AC_MSG_ERROR([[conditional "$1" was never defined.
                    161: Usually this means the macro was only invoked conditionally.]])
                    162: fi])])
                    163: 
1.1.1.3 ! misho     164: # Copyright (C) 1999-2012 Free Software Foundation, Inc.
1.1       misho     165: #
                    166: # This file is free software; the Free Software Foundation
                    167: # gives unlimited permission to copy and/or distribute it,
                    168: # with or without modifications, as long as this notice is preserved.
                    169: 
                    170: 
1.1.1.3 ! misho     171: # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1.1       misho     172: # written in clear, in which case automake, when reading aclocal.m4,
                    173: # will think it sees a *use*, and therefore will trigger all it's
                    174: # C support machinery.  Also note that it means that autoscan, seeing
                    175: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
                    176: 
                    177: 
                    178: # _AM_DEPENDENCIES(NAME)
                    179: # ----------------------
                    180: # See how the compiler implements dependency checking.
1.1.1.3 ! misho     181: # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1.1       misho     182: # We try a few techniques and use that to set a single cache variable.
                    183: #
                    184: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
                    185: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
                    186: # dependency, and given that the user is not expected to run this macro,
                    187: # just rely on AC_PROG_CC.
                    188: AC_DEFUN([_AM_DEPENDENCIES],
                    189: [AC_REQUIRE([AM_SET_DEPDIR])dnl
                    190: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
                    191: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
                    192: AC_REQUIRE([AM_DEP_TRACK])dnl
                    193: 
1.1.1.3 ! misho     194: m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
        !           195:       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
        !           196:       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
        !           197:       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
        !           198:       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
        !           199:       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
        !           200:                     [depcc="$$1"   am_compiler_list=])
1.1       misho     201: 
                    202: AC_CACHE_CHECK([dependency style of $depcc],
                    203:                [am_cv_$1_dependencies_compiler_type],
                    204: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                    205:   # We make a subdir and do the tests there.  Otherwise we can end up
                    206:   # making bogus files that we don't know about and never remove.  For
                    207:   # instance it was reported that on HP-UX the gcc test will end up
1.1.1.3 ! misho     208:   # making a dummy file named 'D' -- because '-MD' means "put the output
        !           209:   # in D".
1.1.1.2   misho     210:   rm -rf conftest.dir
1.1       misho     211:   mkdir conftest.dir
                    212:   # Copy depcomp to subdir because otherwise we won't find it if we're
                    213:   # using a relative directory.
                    214:   cp "$am_depcomp" conftest.dir
                    215:   cd conftest.dir
                    216:   # We will build objects and dependencies in a subdirectory because
                    217:   # it helps to detect inapplicable dependency modes.  For instance
                    218:   # both Tru64's cc and ICC support -MD to output dependencies as a
                    219:   # side effect of compilation, but ICC will put the dependencies in
                    220:   # the current directory while Tru64 will put them in the object
                    221:   # directory.
                    222:   mkdir sub
                    223: 
                    224:   am_cv_$1_dependencies_compiler_type=none
                    225:   if test "$am_compiler_list" = ""; then
                    226:      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
                    227:   fi
                    228:   am__universal=false
                    229:   m4_case([$1], [CC],
                    230:     [case " $depcc " in #(
                    231:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                    232:      esac],
                    233:     [CXX],
                    234:     [case " $depcc " in #(
                    235:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                    236:      esac])
                    237: 
                    238:   for depmode in $am_compiler_list; do
                    239:     # Setup a source with many dependencies, because some compilers
                    240:     # like to wrap large dependency lists on column 80 (with \), and
                    241:     # we should not choose a depcomp mode which is confused by this.
                    242:     #
                    243:     # We need to recreate these files for each test, as the compiler may
                    244:     # overwrite some of them when testing with obscure command lines.
                    245:     # This happens at least with the AIX C compiler.
                    246:     : > sub/conftest.c
                    247:     for i in 1 2 3 4 5 6; do
                    248:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1.1.3 ! misho     249:       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
        !           250:       # Solaris 10 /bin/sh.
        !           251:       echo '/* dummy */' > sub/conftst$i.h
1.1       misho     252:     done
                    253:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                    254: 
1.1.1.3 ! misho     255:     # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.1       misho     256:     # mode.  It turns out that the SunPro C++ compiler does not properly
1.1.1.3 ! misho     257:     # handle '-M -o', and we need to detect this.  Also, some Intel
        !           258:     # versions had trouble with output in subdirs.
1.1       misho     259:     am__obj=sub/conftest.${OBJEXT-o}
                    260:     am__minus_obj="-o $am__obj"
                    261:     case $depmode in
                    262:     gcc)
                    263:       # This depmode causes a compiler race in universal mode.
                    264:       test "$am__universal" = false || continue
                    265:       ;;
                    266:     nosideeffect)
1.1.1.3 ! misho     267:       # After this tag, mechanisms are not by side-effect, so they'll
        !           268:       # only be used when explicitly requested.
1.1       misho     269:       if test "x$enable_dependency_tracking" = xyes; then
                    270:        continue
                    271:       else
                    272:        break
                    273:       fi
                    274:       ;;
1.1.1.2   misho     275:     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.1.1.3 ! misho     276:       # This compiler won't grok '-c -o', but also, the minuso test has
1.1       misho     277:       # not run yet.  These depmodes are late enough in the game, and
                    278:       # so weak that their functioning should not be impacted.
                    279:       am__obj=conftest.${OBJEXT-o}
                    280:       am__minus_obj=
                    281:       ;;
                    282:     none) break ;;
                    283:     esac
                    284:     if depmode=$depmode \
                    285:        source=sub/conftest.c object=$am__obj \
                    286:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                    287:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                    288:          >/dev/null 2>conftest.err &&
                    289:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                    290:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                    291:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                    292:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                    293:       # icc doesn't choke on unknown options, it will just issue warnings
                    294:       # or remarks (even with -Werror).  So we grep stderr for any message
                    295:       # that says an option was ignored or not supported.
                    296:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                    297:       #   icc: Command line warning: ignoring option '-M'; no argument required
                    298:       # The diagnosis changed in icc 8.0:
                    299:       #   icc: Command line remark: option '-MP' not supported
                    300:       if (grep 'ignoring option' conftest.err ||
                    301:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                    302:         am_cv_$1_dependencies_compiler_type=$depmode
                    303:         break
                    304:       fi
                    305:     fi
                    306:   done
                    307: 
                    308:   cd ..
                    309:   rm -rf conftest.dir
                    310: else
                    311:   am_cv_$1_dependencies_compiler_type=none
                    312: fi
                    313: ])
                    314: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
                    315: AM_CONDITIONAL([am__fastdep$1], [
                    316:   test "x$enable_dependency_tracking" != xno \
                    317:   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
                    318: ])
                    319: 
                    320: 
                    321: # AM_SET_DEPDIR
                    322: # -------------
                    323: # Choose a directory name for dependency files.
1.1.1.3 ! misho     324: # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1.1       misho     325: AC_DEFUN([AM_SET_DEPDIR],
                    326: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
                    327: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
                    328: ])
                    329: 
                    330: 
                    331: # AM_DEP_TRACK
                    332: # ------------
                    333: AC_DEFUN([AM_DEP_TRACK],
1.1.1.3 ! misho     334: [AC_ARG_ENABLE([dependency-tracking], [dnl
        !           335: AS_HELP_STRING(
        !           336:   [--enable-dependency-tracking],
        !           337:   [do not reject slow dependency extractors])
        !           338: AS_HELP_STRING(
        !           339:   [--disable-dependency-tracking],
        !           340:   [speeds up one-time build])])
1.1       misho     341: if test "x$enable_dependency_tracking" != xno; then
                    342:   am_depcomp="$ac_aux_dir/depcomp"
                    343:   AMDEPBACKSLASH='\'
1.1.1.2   misho     344:   am__nodep='_no'
1.1       misho     345: fi
                    346: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
                    347: AC_SUBST([AMDEPBACKSLASH])dnl
                    348: _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1.1.1.2   misho     349: AC_SUBST([am__nodep])dnl
                    350: _AM_SUBST_NOTMAKE([am__nodep])dnl
1.1       misho     351: ])
                    352: 
                    353: # Generate code to set up dependency tracking.              -*- Autoconf -*-
                    354: 
1.1.1.3 ! misho     355: # Copyright (C) 1999-2012 Free Software Foundation, Inc.
1.1       misho     356: #
                    357: # This file is free software; the Free Software Foundation
                    358: # gives unlimited permission to copy and/or distribute it,
                    359: # with or without modifications, as long as this notice is preserved.
                    360: 
                    361: 
                    362: # _AM_OUTPUT_DEPENDENCY_COMMANDS
                    363: # ------------------------------
                    364: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
                    365: [{
                    366:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                    367:   # are listed without --file.  Let's play safe and only enable the eval
                    368:   # if we detect the quoting.
                    369:   case $CONFIG_FILES in
                    370:   *\'*) eval set x "$CONFIG_FILES" ;;
                    371:   *)   set x $CONFIG_FILES ;;
                    372:   esac
                    373:   shift
                    374:   for mf
                    375:   do
                    376:     # Strip MF so we end up with the name of the file.
                    377:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                    378:     # Check whether this is an Automake generated Makefile or not.
1.1.1.3 ! misho     379:     # We used to match only the files named 'Makefile.in', but
1.1       misho     380:     # some people rename them; so instead we look at the file content.
                    381:     # Grep'ing the first line is not enough: some people post-process
                    382:     # each Makefile.in and add a new line on top of each file to say so.
                    383:     # Grep'ing the whole file is not good either: AIX grep has a line
                    384:     # limit of 2048, but all sed's we know have understand at least 4000.
                    385:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                    386:       dirpart=`AS_DIRNAME("$mf")`
                    387:     else
                    388:       continue
                    389:     fi
                    390:     # Extract the definition of DEPDIR, am__include, and am__quote
1.1.1.3 ! misho     391:     # from the Makefile without running 'make'.
1.1       misho     392:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                    393:     test -z "$DEPDIR" && continue
                    394:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                    395:     test -z "am__include" && continue
                    396:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                    397:     # Find all dependency output files, they are included files with
                    398:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                    399:     # simplest approach to changing $(DEPDIR) to its actual value in the
                    400:     # expansion.
                    401:     for file in `sed -n "
                    402:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.1.1.3 ! misho     403:         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.1       misho     404:       # Make sure the directory exists.
                    405:       test -f "$dirpart/$file" && continue
                    406:       fdir=`AS_DIRNAME(["$file"])`
                    407:       AS_MKDIR_P([$dirpart/$fdir])
                    408:       # echo "creating $dirpart/$file"
                    409:       echo '# dummy' > "$dirpart/$file"
                    410:     done
                    411:   done
                    412: }
                    413: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
                    414: 
                    415: 
                    416: # AM_OUTPUT_DEPENDENCY_COMMANDS
                    417: # -----------------------------
                    418: # This macro should only be invoked once -- use via AC_REQUIRE.
                    419: #
                    420: # This code is only required when automatic dependency tracking
1.1.1.3 ! misho     421: # is enabled.  FIXME.  This creates each '.P' file that we will
1.1       misho     422: # need in order to bootstrap the dependency handling code.
                    423: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
                    424: [AC_CONFIG_COMMANDS([depfiles],
                    425:      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
                    426:      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
                    427: ])
                    428: 
1.1.1.3 ! misho     429: # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1.1       misho     430: #
                    431: # This file is free software; the Free Software Foundation
                    432: # gives unlimited permission to copy and/or distribute it,
                    433: # with or without modifications, as long as this notice is preserved.
                    434: 
                    435: # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
                    436: AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
                    437: 
                    438: # Do all the work for Automake.                             -*- Autoconf -*-
                    439: 
1.1.1.3 ! misho     440: # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1.1       misho     441: #
                    442: # This file is free software; the Free Software Foundation
                    443: # gives unlimited permission to copy and/or distribute it,
                    444: # with or without modifications, as long as this notice is preserved.
                    445: 
                    446: # This macro actually does too much.  Some checks are only needed if
                    447: # your package does certain things.  But this isn't really a big deal.
                    448: 
                    449: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
                    450: # AM_INIT_AUTOMAKE([OPTIONS])
                    451: # -----------------------------------------------
                    452: # The call with PACKAGE and VERSION arguments is the old style
                    453: # call (pre autoconf-2.50), which is being phased out.  PACKAGE
                    454: # and VERSION should now be passed to AC_INIT and removed from
                    455: # the call to AM_INIT_AUTOMAKE.
                    456: # We support both call styles for the transition.  After
                    457: # the next Automake release, Autoconf can make the AC_INIT
                    458: # arguments mandatory, and then we can depend on a new Autoconf
                    459: # release and drop the old call support.
                    460: AC_DEFUN([AM_INIT_AUTOMAKE],
                    461: [AC_PREREQ([2.62])dnl
                    462: dnl Autoconf wants to disallow AM_ names.  We explicitly allow
                    463: dnl the ones we care about.
                    464: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
                    465: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
                    466: AC_REQUIRE([AC_PROG_INSTALL])dnl
                    467: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                    468:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                    469:   # is not polluted with repeated "-I."
                    470:   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
                    471:   # test to see if srcdir already configured
                    472:   if test -f $srcdir/config.status; then
                    473:     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
                    474:   fi
                    475: fi
                    476: 
                    477: # test whether we have cygpath
                    478: if test -z "$CYGPATH_W"; then
                    479:   if (cygpath --version) >/dev/null 2>/dev/null; then
                    480:     CYGPATH_W='cygpath -w'
                    481:   else
                    482:     CYGPATH_W=echo
                    483:   fi
                    484: fi
                    485: AC_SUBST([CYGPATH_W])
                    486: 
                    487: # Define the identity of the package.
                    488: dnl Distinguish between old-style and new-style calls.
                    489: m4_ifval([$2],
1.1.1.3 ! misho     490: [AC_DIAGNOSE([obsolete],
        !           491: [$0: two- and three-arguments forms are deprecated.  For more info, see:
        !           492: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
        !           493: m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1.1       misho     494:  AC_SUBST([PACKAGE], [$1])dnl
                    495:  AC_SUBST([VERSION], [$2])],
                    496: [_AM_SET_OPTIONS([$1])dnl
                    497: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1.1.1.3 ! misho     498: m4_if(
        !           499:   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
        !           500:   [ok:ok],,
1.1       misho     501:   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
                    502:  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
                    503:  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
                    504: 
                    505: _AM_IF_OPTION([no-define],,
1.1.1.3 ! misho     506: [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
        !           507:  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1.1       misho     508: 
                    509: # Some tools Automake needs.
                    510: AC_REQUIRE([AM_SANITY_CHECK])dnl
                    511: AC_REQUIRE([AC_ARG_PROGRAM])dnl
1.1.1.3 ! misho     512: AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
        !           513: AM_MISSING_PROG([AUTOCONF], [autoconf])
        !           514: AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
        !           515: AM_MISSING_PROG([AUTOHEADER], [autoheader])
        !           516: AM_MISSING_PROG([MAKEINFO], [makeinfo])
1.1       misho     517: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
                    518: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1.1.1.3 ! misho     519: AC_REQUIRE([AC_PROG_MKDIR_P])dnl
        !           520: # For better backward compatibility.  To be removed once Automake 1.9.x
        !           521: # dies out for good.  For more background, see:
        !           522: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
        !           523: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
        !           524: AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1.1       misho     525: # We need awk for the "check" target.  The system "awk" is bad on
                    526: # some platforms.
                    527: AC_REQUIRE([AC_PROG_AWK])dnl
                    528: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
                    529: AC_REQUIRE([AM_SET_LEADING_DOT])dnl
                    530: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
                    531:              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
                    532:                             [_AM_PROG_TAR([v7])])])
                    533: _AM_IF_OPTION([no-dependencies],,
                    534: [AC_PROVIDE_IFELSE([AC_PROG_CC],
1.1.1.3 ! misho     535:                  [_AM_DEPENDENCIES([CC])],
        !           536:                  [m4_define([AC_PROG_CC],
        !           537:                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1.1       misho     538: AC_PROVIDE_IFELSE([AC_PROG_CXX],
1.1.1.3 ! misho     539:                  [_AM_DEPENDENCIES([CXX])],
        !           540:                  [m4_define([AC_PROG_CXX],
        !           541:                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1.1       misho     542: AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1.1.1.3 ! misho     543:                  [_AM_DEPENDENCIES([OBJC])],
        !           544:                  [m4_define([AC_PROG_OBJC],
        !           545:                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
        !           546: dnl Support for Objective C++ was only introduced in Autoconf 2.65,
        !           547: dnl but we still cater to Autoconf 2.62.
        !           548: m4_ifdef([AC_PROG_OBJCXX],
        !           549: [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
        !           550:                  [_AM_DEPENDENCIES([OBJCXX])],
        !           551:                  [m4_define([AC_PROG_OBJCXX],
        !           552:                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
1.1       misho     553: ])
                    554: _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1.1.1.3 ! misho     555: dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
        !           556: dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
1.1       misho     557: dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
                    558: AC_CONFIG_COMMANDS_PRE(dnl
                    559: [m4_provide_if([_AM_COMPILER_EXEEXT],
                    560:   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
                    561: ])
                    562: 
1.1.1.3 ! misho     563: dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1.1       misho     564: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
                    565: dnl mangled by Autoconf and run in a shell conditional statement.
                    566: m4_define([_AC_COMPILER_EXEEXT],
                    567: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
                    568: 
                    569: 
                    570: # When config.status generates a header, we must update the stamp-h file.
                    571: # This file resides in the same directory as the config header
                    572: # that is generated.  The stamp files are numbered to have different names.
                    573: 
                    574: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
                    575: # loop where config.status creates the headers, so we can generate
                    576: # our stamp files there.
                    577: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
                    578: [# Compute $1's index in $config_headers.
                    579: _am_arg=$1
                    580: _am_stamp_count=1
                    581: for _am_header in $config_headers :; do
                    582:   case $_am_header in
                    583:     $_am_arg | $_am_arg:* )
                    584:       break ;;
                    585:     * )
                    586:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                    587:   esac
                    588: done
                    589: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
                    590: 
1.1.1.3 ! misho     591: # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1.1       misho     592: #
                    593: # This file is free software; the Free Software Foundation
                    594: # gives unlimited permission to copy and/or distribute it,
                    595: # with or without modifications, as long as this notice is preserved.
                    596: 
                    597: # AM_PROG_INSTALL_SH
                    598: # ------------------
                    599: # Define $install_sh.
                    600: AC_DEFUN([AM_PROG_INSTALL_SH],
                    601: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
                    602: if test x"${install_sh}" != xset; then
                    603:   case $am_aux_dir in
                    604:   *\ * | *\    *)
                    605:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                    606:   *)
                    607:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                    608:   esac
                    609: fi
1.1.1.3 ! misho     610: AC_SUBST([install_sh])])
1.1       misho     611: 
1.1.1.3 ! misho     612: # Copyright (C) 2003-2012 Free Software Foundation, Inc.
1.1       misho     613: #
                    614: # This file is free software; the Free Software Foundation
                    615: # gives unlimited permission to copy and/or distribute it,
                    616: # with or without modifications, as long as this notice is preserved.
                    617: 
                    618: # Check whether the underlying file-system supports filenames
                    619: # with a leading dot.  For instance MS-DOS doesn't.
                    620: AC_DEFUN([AM_SET_LEADING_DOT],
                    621: [rm -rf .tst 2>/dev/null
                    622: mkdir .tst 2>/dev/null
                    623: if test -d .tst; then
                    624:   am__leading_dot=.
                    625: else
                    626:   am__leading_dot=_
                    627: fi
                    628: rmdir .tst 2>/dev/null
                    629: AC_SUBST([am__leading_dot])])
                    630: 
                    631: # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
                    632: # From Jim Meyering
                    633: 
1.1.1.3 ! misho     634: # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1.1       misho     635: #
                    636: # This file is free software; the Free Software Foundation
                    637: # gives unlimited permission to copy and/or distribute it,
                    638: # with or without modifications, as long as this notice is preserved.
                    639: 
                    640: # AM_MAINTAINER_MODE([DEFAULT-MODE])
                    641: # ----------------------------------
                    642: # Control maintainer-specific portions of Makefiles.
1.1.1.3 ! misho     643: # Default is to disable them, unless 'enable' is passed literally.
        !           644: # For symmetry, 'disable' may be passed as well.  Anyway, the user
1.1       misho     645: # can override the default with the --enable/--disable switch.
                    646: AC_DEFUN([AM_MAINTAINER_MODE],
                    647: [m4_case(m4_default([$1], [disable]),
                    648:        [enable], [m4_define([am_maintainer_other], [disable])],
                    649:        [disable], [m4_define([am_maintainer_other], [enable])],
                    650:        [m4_define([am_maintainer_other], [enable])
                    651:         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1.1.1.2   misho     652: AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1.1       misho     653:   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
                    654:   AC_ARG_ENABLE([maintainer-mode],
1.1.1.3 ! misho     655:     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
        !           656:       am_maintainer_other[ make rules and dependencies not useful
        !           657:       (and sometimes confusing) to the casual installer])],
        !           658:     [USE_MAINTAINER_MODE=$enableval],
        !           659:     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1.1       misho     660:   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
                    661:   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
                    662:   MAINT=$MAINTAINER_MODE_TRUE
                    663:   AC_SUBST([MAINT])dnl
                    664: ]
                    665: )
                    666: 
                    667: AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
                    668: 
                    669: # Check to see how 'make' treats includes.                 -*- Autoconf -*-
                    670: 
1.1.1.3 ! misho     671: # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1.1       misho     672: #
                    673: # This file is free software; the Free Software Foundation
                    674: # gives unlimited permission to copy and/or distribute it,
                    675: # with or without modifications, as long as this notice is preserved.
                    676: 
                    677: # AM_MAKE_INCLUDE()
                    678: # -----------------
                    679: # Check to see how make treats includes.
                    680: AC_DEFUN([AM_MAKE_INCLUDE],
                    681: [am_make=${MAKE-make}
                    682: cat > confinc << 'END'
                    683: am__doit:
                    684:        @echo this is the am__doit target
                    685: .PHONY: am__doit
                    686: END
                    687: # If we don't find an include directive, just comment out the code.
                    688: AC_MSG_CHECKING([for style of include used by $am_make])
                    689: am__include="#"
                    690: am__quote=
                    691: _am_result=none
                    692: # First try GNU make style include.
                    693: echo "include confinc" > confmf
1.1.1.3 ! misho     694: # Ignore all kinds of additional output from 'make'.
1.1       misho     695: case `$am_make -s -f confmf 2> /dev/null` in #(
                    696: *the\ am__doit\ target*)
                    697:   am__include=include
                    698:   am__quote=
                    699:   _am_result=GNU
                    700:   ;;
                    701: esac
                    702: # Now try BSD make style include.
                    703: if test "$am__include" = "#"; then
                    704:    echo '.include "confinc"' > confmf
                    705:    case `$am_make -s -f confmf 2> /dev/null` in #(
                    706:    *the\ am__doit\ target*)
                    707:      am__include=.include
                    708:      am__quote="\""
                    709:      _am_result=BSD
                    710:      ;;
                    711:    esac
                    712: fi
                    713: AC_SUBST([am__include])
                    714: AC_SUBST([am__quote])
                    715: AC_MSG_RESULT([$_am_result])
                    716: rm -f confinc confmf
                    717: ])
                    718: 
                    719: # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
                    720: 
1.1.1.3 ! misho     721: # Copyright (C) 1997-2012 Free Software Foundation, Inc.
1.1       misho     722: #
                    723: # This file is free software; the Free Software Foundation
                    724: # gives unlimited permission to copy and/or distribute it,
                    725: # with or without modifications, as long as this notice is preserved.
                    726: 
                    727: # AM_MISSING_PROG(NAME, PROGRAM)
                    728: # ------------------------------
                    729: AC_DEFUN([AM_MISSING_PROG],
                    730: [AC_REQUIRE([AM_MISSING_HAS_RUN])
                    731: $1=${$1-"${am_missing_run}$2"}
                    732: AC_SUBST($1)])
                    733: 
                    734: # AM_MISSING_HAS_RUN
                    735: # ------------------
                    736: # Define MISSING if not defined so far and test if it supports --run.
                    737: # If it does, set am_missing_run to use it, otherwise, to nothing.
                    738: AC_DEFUN([AM_MISSING_HAS_RUN],
                    739: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
                    740: AC_REQUIRE_AUX_FILE([missing])dnl
                    741: if test x"${MISSING+set}" != xset; then
                    742:   case $am_aux_dir in
                    743:   *\ * | *\    *)
                    744:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
                    745:   *)
                    746:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                    747:   esac
                    748: fi
                    749: # Use eval to expand $SHELL
                    750: if eval "$MISSING --run true"; then
                    751:   am_missing_run="$MISSING --run "
                    752: else
                    753:   am_missing_run=
1.1.1.3 ! misho     754:   AC_MSG_WARN(['missing' script is too old or missing])
1.1       misho     755: fi
                    756: ])
                    757: 
                    758: # Helper functions for option handling.                     -*- Autoconf -*-
                    759: 
1.1.1.3 ! misho     760: # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1.1       misho     761: #
                    762: # This file is free software; the Free Software Foundation
                    763: # gives unlimited permission to copy and/or distribute it,
                    764: # with or without modifications, as long as this notice is preserved.
                    765: 
                    766: # _AM_MANGLE_OPTION(NAME)
                    767: # -----------------------
                    768: AC_DEFUN([_AM_MANGLE_OPTION],
                    769: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
                    770: 
                    771: # _AM_SET_OPTION(NAME)
1.1.1.2   misho     772: # --------------------
1.1       misho     773: # Set option NAME.  Presently that only means defining a flag for this option.
                    774: AC_DEFUN([_AM_SET_OPTION],
1.1.1.3 ! misho     775: [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1.1       misho     776: 
                    777: # _AM_SET_OPTIONS(OPTIONS)
1.1.1.2   misho     778: # ------------------------
1.1       misho     779: # OPTIONS is a space-separated list of Automake options.
                    780: AC_DEFUN([_AM_SET_OPTIONS],
                    781: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
                    782: 
                    783: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
                    784: # -------------------------------------------
                    785: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
                    786: AC_DEFUN([_AM_IF_OPTION],
                    787: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
                    788: 
                    789: # Check to make sure that the build environment is sane.    -*- Autoconf -*-
                    790: 
1.1.1.3 ! misho     791: # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1.1       misho     792: #
                    793: # This file is free software; the Free Software Foundation
                    794: # gives unlimited permission to copy and/or distribute it,
                    795: # with or without modifications, as long as this notice is preserved.
                    796: 
                    797: # AM_SANITY_CHECK
                    798: # ---------------
                    799: AC_DEFUN([AM_SANITY_CHECK],
                    800: [AC_MSG_CHECKING([whether build environment is sane])
                    801: # Reject unsafe characters in $srcdir or the absolute working directory
                    802: # name.  Accept space and tab only in the latter.
                    803: am_lf='
                    804: '
                    805: case `pwd` in
                    806:   *[[\\\"\#\$\&\'\`$am_lf]]*)
                    807:     AC_MSG_ERROR([unsafe absolute working directory name]);;
                    808: esac
                    809: case $srcdir in
                    810:   *[[\\\"\#\$\&\'\`$am_lf\ \   ]]*)
1.1.1.3 ! misho     811:     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1.1       misho     812: esac
                    813: 
1.1.1.3 ! misho     814: # Do 'set' in a subshell so we don't clobber the current shell's
1.1       misho     815: # arguments.  Must try -L first in case configure is actually a
                    816: # symlink; some systems play weird games with the mod time of symlinks
                    817: # (eg FreeBSD returns the mod time of the symlink's containing
                    818: # directory).
                    819: if (
1.1.1.3 ! misho     820:    am_has_slept=no
        !           821:    for am_try in 1 2; do
        !           822:      echo "timestamp, slept: $am_has_slept" > conftest.file
        !           823:      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
        !           824:      if test "$[*]" = "X"; then
        !           825:        # -L didn't work.
        !           826:        set X `ls -t "$srcdir/configure" conftest.file`
        !           827:      fi
        !           828:      if test "$[*]" != "X $srcdir/configure conftest.file" \
        !           829:        && test "$[*]" != "X conftest.file $srcdir/configure"; then
        !           830: 
        !           831:        # If neither matched, then we have a broken ls.  This can happen
        !           832:        # if, for instance, CONFIG_SHELL is bash and it inherits a
        !           833:        # broken ls alias from the environment.  This has actually
        !           834:        # happened.  Such a system could not be considered "sane".
        !           835:        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
        !           836:   alias in your environment])
        !           837:      fi
        !           838:      if test "$[2]" = conftest.file || test $am_try -eq 2; then
        !           839:        break
        !           840:      fi
        !           841:      # Just in case.
        !           842:      sleep 1
        !           843:      am_has_slept=yes
        !           844:    done
1.1       misho     845:    test "$[2]" = conftest.file
                    846:    )
                    847: then
                    848:    # Ok.
                    849:    :
                    850: else
                    851:    AC_MSG_ERROR([newly created file is older than distributed files!
                    852: Check your system clock])
                    853: fi
1.1.1.3 ! misho     854: AC_MSG_RESULT([yes])
        !           855: # If we didn't sleep, we still need to ensure time stamps of config.status and
        !           856: # generated files are strictly newer.
        !           857: am_sleep_pid=
        !           858: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
        !           859:   ( sleep 1 ) &
        !           860:   am_sleep_pid=$!
        !           861: fi
        !           862: AC_CONFIG_COMMANDS_PRE(
        !           863:   [AC_MSG_CHECKING([that generated files are newer than configure])
        !           864:    if test -n "$am_sleep_pid"; then
        !           865:      # Hide warnings about reused PIDs.
        !           866:      wait $am_sleep_pid 2>/dev/null
        !           867:    fi
        !           868:    AC_MSG_RESULT([done])])
        !           869: rm -f conftest.file
        !           870: ])
1.1       misho     871: 
1.1.1.3 ! misho     872: # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1.1       misho     873: #
                    874: # This file is free software; the Free Software Foundation
                    875: # gives unlimited permission to copy and/or distribute it,
                    876: # with or without modifications, as long as this notice is preserved.
                    877: 
                    878: # AM_PROG_INSTALL_STRIP
                    879: # ---------------------
1.1.1.3 ! misho     880: # One issue with vendor 'install' (even GNU) is that you can't
1.1       misho     881: # specify the program used to strip binaries.  This is especially
                    882: # annoying in cross-compiling environments, where the build's strip
                    883: # is unlikely to handle the host's binaries.
                    884: # Fortunately install-sh will honor a STRIPPROG variable, so we
1.1.1.3 ! misho     885: # always use install-sh in "make install-strip", and initialize
1.1       misho     886: # STRIPPROG with the value of the STRIP variable (set by the user).
                    887: AC_DEFUN([AM_PROG_INSTALL_STRIP],
                    888: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1.1.1.3 ! misho     889: # Installed binaries are usually stripped using 'strip' when the user
        !           890: # run "make install-strip".  However 'strip' might not be the right
1.1       misho     891: # tool to use in cross-compilation environments, therefore Automake
1.1.1.3 ! misho     892: # will honor the 'STRIP' environment variable to overrule this program.
        !           893: dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1.1       misho     894: if test "$cross_compiling" != no; then
                    895:   AC_CHECK_TOOL([STRIP], [strip], :)
                    896: fi
                    897: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
                    898: AC_SUBST([INSTALL_STRIP_PROGRAM])])
                    899: 
1.1.1.3 ! misho     900: # Copyright (C) 2006-2012 Free Software Foundation, Inc.
1.1       misho     901: #
                    902: # This file is free software; the Free Software Foundation
                    903: # gives unlimited permission to copy and/or distribute it,
                    904: # with or without modifications, as long as this notice is preserved.
                    905: 
                    906: # _AM_SUBST_NOTMAKE(VARIABLE)
                    907: # ---------------------------
                    908: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
                    909: # This macro is traced by Automake.
                    910: AC_DEFUN([_AM_SUBST_NOTMAKE])
                    911: 
                    912: # AM_SUBST_NOTMAKE(VARIABLE)
1.1.1.2   misho     913: # --------------------------
1.1       misho     914: # Public sister of _AM_SUBST_NOTMAKE.
                    915: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
                    916: 
                    917: # Check how to create a tarball.                            -*- Autoconf -*-
                    918: 
1.1.1.3 ! misho     919: # Copyright (C) 2004-2012 Free Software Foundation, Inc.
1.1       misho     920: #
                    921: # This file is free software; the Free Software Foundation
                    922: # gives unlimited permission to copy and/or distribute it,
                    923: # with or without modifications, as long as this notice is preserved.
                    924: 
                    925: # _AM_PROG_TAR(FORMAT)
                    926: # --------------------
                    927: # Check how to create a tarball in format FORMAT.
1.1.1.3 ! misho     928: # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1.1       misho     929: #
                    930: # Substitute a variable $(am__tar) that is a command
                    931: # writing to stdout a FORMAT-tarball containing the directory
                    932: # $tardir.
                    933: #     tardir=directory && $(am__tar) > result.tar
                    934: #
                    935: # Substitute a variable $(am__untar) that extract such
                    936: # a tarball read from stdin.
                    937: #     $(am__untar) < result.tar
                    938: AC_DEFUN([_AM_PROG_TAR],
1.1.1.2   misho     939: [# Always define AMTAR for backward compatibility.  Yes, it's still used
                    940: # in the wild :-(  We should find a proper way to deprecate it ...
                    941: AC_SUBST([AMTAR], ['$${TAR-tar}'])
1.1       misho     942: m4_if([$1], [v7],
1.1.1.2   misho     943:      [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1.1       misho     944:      [m4_case([$1], [ustar],, [pax],,
                    945:               [m4_fatal([Unknown tar format])])
                    946: AC_MSG_CHECKING([how to create a $1 tar archive])
                    947: # Loop over all known methods to create a tar archive until one works.
                    948: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
                    949: _am_tools=${am_cv_prog_tar_$1-$_am_tools}
                    950: # Do not fold the above two line into one, because Tru64 sh and
1.1.1.3 ! misho     951: # Solaris sh will not grok spaces in the rhs of '-'.
1.1       misho     952: for _am_tool in $_am_tools
                    953: do
                    954:   case $_am_tool in
                    955:   gnutar)
                    956:     for _am_tar in tar gnutar gtar;
                    957:     do
                    958:       AM_RUN_LOG([$_am_tar --version]) && break
                    959:     done
                    960:     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
                    961:     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
                    962:     am__untar="$_am_tar -xf -"
                    963:     ;;
                    964:   plaintar)
                    965:     # Must skip GNU tar: if it does not support --format= it doesn't create
                    966:     # ustar tarball either.
                    967:     (tar --version) >/dev/null 2>&1 && continue
                    968:     am__tar='tar chf - "$$tardir"'
                    969:     am__tar_='tar chf - "$tardir"'
                    970:     am__untar='tar xf -'
                    971:     ;;
                    972:   pax)
                    973:     am__tar='pax -L -x $1 -w "$$tardir"'
                    974:     am__tar_='pax -L -x $1 -w "$tardir"'
                    975:     am__untar='pax -r'
                    976:     ;;
                    977:   cpio)
                    978:     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
                    979:     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
                    980:     am__untar='cpio -i -H $1 -d'
                    981:     ;;
                    982:   none)
                    983:     am__tar=false
                    984:     am__tar_=false
                    985:     am__untar=false
                    986:     ;;
                    987:   esac
                    988: 
                    989:   # If the value was cached, stop now.  We just wanted to have am__tar
                    990:   # and am__untar set.
                    991:   test -n "${am_cv_prog_tar_$1}" && break
                    992: 
                    993:   # tar/untar a dummy directory, and stop if the command works
                    994:   rm -rf conftest.dir
                    995:   mkdir conftest.dir
                    996:   echo GrepMe > conftest.dir/file
                    997:   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
                    998:   rm -rf conftest.dir
                    999:   if test -s conftest.tar; then
                   1000:     AM_RUN_LOG([$am__untar <conftest.tar])
                   1001:     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
                   1002:   fi
                   1003: done
                   1004: rm -rf conftest.dir
                   1005: 
                   1006: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
                   1007: AC_MSG_RESULT([$am_cv_prog_tar_$1])])
                   1008: AC_SUBST([am__tar])
                   1009: AC_SUBST([am__untar])
                   1010: ]) # _AM_PROG_TAR
                   1011: 
1.1.1.2   misho    1012: m4_include([m4/pkg.m4])

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