Ignore:
Timestamp:
08/04/04 16:04:56 (20 years ago)
Author:
merck
Message:
MMerck Version 2.01
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/AMC/activemirrorcontrol/aclocal.m4

    r3401 r4471  
    1 # aclocal.m4 generated automatically by aclocal 1.5
    2 
    3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001
    4 # Free Software Foundation, Inc.
    5 # This file is free software; the Free Software Foundation
    6 # gives unlimited permission to copy and/or distribute it,
    7 # with or without modifications, as long as this notice is preserved.
    8 
    9 # This program is distributed in the hope that it will be useful,
    10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    12 # PARTICULAR PURPOSE.
     1dnl aclocal.m4 generated automatically by aclocal 1.4
     2
     3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4dnl This file is free software; the Free Software Foundation
     5dnl gives unlimited permission to copy and/or distribute it,
     6dnl with or without modifications, as long as this notice is preserved.
     7
     8dnl This program is distributed in the hope that it will be useful,
     9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11dnl PARTICULAR PURPOSE.
    1312
    1413
     
    48964895# But this isn't really a big deal.
    48974896
    4898 # serial 5
    4899 
    4900 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
    4901 # written in clear, in which case automake, when reading aclocal.m4,
    4902 # will think it sees a *use*, and therefore will trigger all it's
    4903 # C support machinery.  Also note that it means that autoscan, seeing
    4904 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    4905 
    4906 
    4907 # We require 2.13 because we rely on SHELL being computed by configure.
    4908 AC_PREREQ([2.13])
    4909 
    4910 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    4911 # -----------------------------------------------------------
    4912 # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.
    4913 # The purpose of this macro is to provide the user with a means to
    4914 # check macros which are provided without letting her know how the
    4915 # information is coded.
    4916 # If this macro is not defined by Autoconf, define it here.
    4917 ifdef([AC_PROVIDE_IFELSE],
    4918       [],
    4919       [define([AC_PROVIDE_IFELSE],
    4920               [ifdef([AC_PROVIDE_$1],
    4921                      [$2], [$3])])])
    4922 
    4923 
    4924 # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
    4925 # ----------------------------------------------
    4926 AC_DEFUN([AM_INIT_AUTOMAKE],
    4927 [AC_REQUIRE([AC_PROG_INSTALL])dnl
    4928 # test to see if srcdir already configured
    4929 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
    4930    test -f $srcdir/config.status; then
    4931   AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
    4932 fi
    4933 
    4934 # Define the identity of the package.
    4935 PACKAGE=$1
    4936 AC_SUBST(PACKAGE)dnl
    4937 VERSION=$2
    4938 AC_SUBST(VERSION)dnl
     4897# serial 1
     4898
     4899dnl Usage:
     4900dnl AM_INIT_AUTOMAKE(package,version, [no-define])
     4901
     4902AC_DEFUN(AM_INIT_AUTOMAKE,
     4903[AC_REQUIRE([AC_PROG_INSTALL])
     4904PACKAGE=[$1]
     4905AC_SUBST(PACKAGE)
     4906VERSION=[$2]
     4907AC_SUBST(VERSION)
     4908dnl test to see if srcdir already configured
     4909if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     4910  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     4911fi
    49394912ifelse([$3],,
    4940 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
    4941 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
    4942 
    4943 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
    4944 # the ones we care about.
    4945 ifdef([m4_pattern_allow],
    4946       [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl
    4947 
    4948 # Autoconf 2.50 always computes EXEEXT.  However we need to be
    4949 # compatible with 2.13, for now.  So we always define EXEEXT, but we
    4950 # don't compute it.
    4951 AC_SUBST(EXEEXT)
    4952 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
    4953 # requests that it be used.  This is a bit dumb.
    4954 : ${OBJEXT=o}
    4955 AC_SUBST(OBJEXT)
    4956 
    4957 # Some tools Automake needs.
    4958 AC_REQUIRE([AM_SANITY_CHECK])dnl
    4959 AC_REQUIRE([AC_ARG_PROGRAM])dnl
    4960 AM_MISSING_PROG(ACLOCAL, aclocal)
    4961 AM_MISSING_PROG(AUTOCONF, autoconf)
    4962 AM_MISSING_PROG(AUTOMAKE, automake)
    4963 AM_MISSING_PROG(AUTOHEADER, autoheader)
    4964 AM_MISSING_PROG(MAKEINFO, makeinfo)
    4965 AM_MISSING_PROG(AMTAR, tar)
    4966 AM_PROG_INSTALL_SH
    4967 AM_PROG_INSTALL_STRIP
    4968 # We need awk for the "check" target.  The system "awk" is bad on
    4969 # some platforms.
    4970 AC_REQUIRE([AC_PROG_AWK])dnl
    4971 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    4972 AC_REQUIRE([AM_DEP_TRACK])dnl
    4973 AC_REQUIRE([AM_SET_DEPDIR])dnl
    4974 AC_PROVIDE_IFELSE([AC_PROG_][CC],
    4975                   [_AM_DEPENDENCIES(CC)],
    4976                   [define([AC_PROG_][CC],
    4977                           defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
    4978 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
    4979                   [_AM_DEPENDENCIES(CXX)],
    4980                   [define([AC_PROG_][CXX],
    4981                           defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
    4982 ])
     4913AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     4914AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     4915AC_REQUIRE([AM_SANITY_CHECK])
     4916AC_REQUIRE([AC_ARG_PROGRAM])
     4917dnl FIXME This is truly gross.
     4918missing_dir=`cd $ac_aux_dir && pwd`
     4919AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
     4920AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
     4921AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
     4922AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
     4923AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
     4924AC_REQUIRE([AC_PROG_MAKE_SET])])
    49834925
    49844926#
     
    49864928#
    49874929
    4988 # serial 3
    4989 
    4990 # AM_SANITY_CHECK
    4991 # ---------------
    4992 AC_DEFUN([AM_SANITY_CHECK],
     4930AC_DEFUN(AM_SANITY_CHECK,
    49934931[AC_MSG_CHECKING([whether build environment is sane])
    49944932# Just in case
    49954933sleep 1
    4996 echo timestamp > conftest.file
     4934echo timestamp > conftestfile
    49974935# Do `set' in a subshell so we don't clobber the current shell's
    49984936# arguments.  Must try -L first in case configure is actually a
     
    50014939# directory).
    50024940if (
    5003    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    5004    if test "$[*]" = "X"; then
     4941   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
     4942   if test "[$]*" = "X"; then
    50054943      # -L didn't work.
    5006       set X `ls -t $srcdir/configure conftest.file`
     4944      set X `ls -t $srcdir/configure conftestfile`
    50074945   fi
    5008    rm -f conftest.file
    5009    if test "$[*]" != "X $srcdir/configure conftest.file" \
    5010       && test "$[*]" != "X conftest.file $srcdir/configure"; then
     4946   if test "[$]*" != "X $srcdir/configure conftestfile" \
     4947      && test "[$]*" != "X conftestfile $srcdir/configure"; then
    50114948
    50124949      # If neither matched, then we have a broken ls.  This can happen
     
    50184955   fi
    50194956
    5020    test "$[2]" = conftest.file
     4957   test "[$]2" = conftestfile
    50214958   )
    50224959then
     
    50274964Check your system clock])
    50284965fi
     4966rm -f conftest*
    50294967AC_MSG_RESULT(yes)])
    50304968
    5031 
    5032 # serial 2
    5033 
    5034 # AM_MISSING_PROG(NAME, PROGRAM)
    5035 # ------------------------------
    5036 AC_DEFUN([AM_MISSING_PROG],
    5037 [AC_REQUIRE([AM_MISSING_HAS_RUN])
    5038 $1=${$1-"${am_missing_run}$2"}
     4969dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
     4970dnl The program must properly implement --version.
     4971AC_DEFUN(AM_MISSING_PROG,
     4972[AC_MSG_CHECKING(for working $2)
     4973# Run test in a subshell; some versions of sh will print an error if
     4974# an executable is not found, even if stderr is redirected.
     4975# Redirect stdin to placate older versions of autoconf.  Sigh.
     4976if ($2 --version) < /dev/null > /dev/null 2>&1; then
     4977   $1=$2
     4978   AC_MSG_RESULT(found)
     4979else
     4980   $1="$3/missing $2"
     4981   AC_MSG_RESULT(missing)
     4982fi
    50394983AC_SUBST($1)])
    50404984
    5041 
    5042 # AM_MISSING_HAS_RUN
    5043 # ------------------
    5044 # Define MISSING if not defined so far and test if it supports --run.
    5045 # If it does, set am_missing_run to use it, otherwise, to nothing.
    5046 AC_DEFUN([AM_MISSING_HAS_RUN],
    5047 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    5048 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    5049 # Use eval to expand $SHELL
    5050 if eval "$MISSING --run true"; then
    5051   am_missing_run="$MISSING --run "
    5052 else
    5053   am_missing_run=
    5054   am_backtick='`'
    5055   AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
    5056 fi
    5057 ])
    5058 
    5059 # AM_AUX_DIR_EXPAND
    5060 
    5061 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    5062 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
    5063 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
    5064 #
    5065 # Of course, Automake must honor this variable whenever it calls a
    5066 # tool from the auxiliary directory.  The problem is that $srcdir (and
    5067 # therefore $ac_aux_dir as well) can be either absolute or relative,
    5068 # depending on how configure is run.  This is pretty annoying, since
    5069 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
    5070 # source directory, any form will work fine, but in subdirectories a
    5071 # relative path needs to be adjusted first.
    5072 #
    5073 # $ac_aux_dir/missing
    5074 #    fails when called from a subdirectory if $ac_aux_dir is relative
    5075 # $top_srcdir/$ac_aux_dir/missing
    5076 #    fails if $ac_aux_dir is absolute,
    5077 #    fails when called from a subdirectory in a VPATH build with
    5078 #          a relative $ac_aux_dir
    5079 #
    5080 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    5081 # are both prefixed by $srcdir.  In an in-source build this is usually
    5082 # harmless because $srcdir is `.', but things will broke when you
    5083 # start a VPATH build or use an absolute $srcdir.
    5084 #
    5085 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
    5086 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
    5087 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
    5088 # and then we would define $MISSING as
    5089 #   MISSING="\${SHELL} $am_aux_dir/missing"
    5090 # This will work as long as MISSING is not called from configure, because
    5091 # unfortunately $(top_srcdir) has no meaning in configure.
    5092 # However there are other variables, like CC, which are often used in
    5093 # configure, and could therefore not use this "fixed" $ac_aux_dir.
    5094 #
    5095 # Another solution, used here, is to always expand $ac_aux_dir to an
    5096 # absolute PATH.  The drawback is that using absolute paths prevent a
    5097 # configured tree to be moved without reconfiguration.
    5098 
    5099 AC_DEFUN([AM_AUX_DIR_EXPAND], [
    5100 # expand $ac_aux_dir to an absolute path
    5101 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
    5102 ])
    5103 
    5104 # AM_PROG_INSTALL_SH
    5105 # ------------------
    5106 # Define $install_sh.
    5107 AC_DEFUN([AM_PROG_INSTALL_SH],
    5108 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    5109 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    5110 AC_SUBST(install_sh)])
    5111 
    5112 # One issue with vendor `install' (even GNU) is that you can't
    5113 # specify the program used to strip binaries.  This is especially
    5114 # annoying in cross-compiling environments, where the build's strip
    5115 # is unlikely to handle the host's binaries.
    5116 # Fortunately install-sh will honor a STRIPPROG variable, so we
    5117 # always use install-sh in `make install-strip', and initialize
    5118 # STRIPPROG with the value of the STRIP variable (set by the user).
    5119 AC_DEFUN([AM_PROG_INSTALL_STRIP],
    5120 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    5121 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
    5122 AC_SUBST([INSTALL_STRIP_PROGRAM])])
    5123 
    5124 # serial 4                                              -*- Autoconf -*-
    5125 
    5126 
    5127 
    5128 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
    5129 # written in clear, in which case automake, when reading aclocal.m4,
    5130 # will think it sees a *use*, and therefore will trigger all it's
    5131 # C support machinery.  Also note that it means that autoscan, seeing
    5132 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    5133 
    5134 
    5135 
    5136 # _AM_DEPENDENCIES(NAME)
    5137 # ---------------------
    5138 # See how the compiler implements dependency checking.
    5139 # NAME is "CC", "CXX" or "OBJC".
    5140 # We try a few techniques and use that to set a single cache variable.
    5141 #
    5142 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
    5143 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
    5144 # dependency, and given that the user is not expected to run this macro,
    5145 # just rely on AC_PROG_CC.
    5146 AC_DEFUN([_AM_DEPENDENCIES],
    5147 [AC_REQUIRE([AM_SET_DEPDIR])dnl
    5148 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
    5149 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
    5150 AC_REQUIRE([AM_DEP_TRACK])dnl
    5151 
    5152 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
    5153        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
    5154        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
    5155        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
    5156                    [depcc="$$1"   am_compiler_list=])
    5157 
    5158 AC_CACHE_CHECK([dependency style of $depcc],
    5159                [am_cv_$1_dependencies_compiler_type],
    5160 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    5161   # We make a subdir and do the tests there.  Otherwise we can end up
    5162   # making bogus files that we don't know about and never remove.  For
    5163   # instance it was reported that on HP-UX the gcc test will end up
    5164   # making a dummy file named `D' -- because `-MD' means `put the output
    5165   # in D'.
    5166   mkdir conftest.dir
    5167   # Copy depcomp to subdir because otherwise we won't find it if we're
    5168   # using a relative directory.
    5169   cp "$am_depcomp" conftest.dir
    5170   cd conftest.dir
    5171 
    5172   am_cv_$1_dependencies_compiler_type=none
    5173   if test "$am_compiler_list" = ""; then
    5174      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
    5175   fi
    5176   for depmode in $am_compiler_list; do
    5177     # We need to recreate these files for each test, as the compiler may
    5178     # overwrite some of them when testing with obscure command lines.
    5179     # This happens at least with the AIX C compiler.
    5180     echo '#include "conftest.h"' > conftest.c
    5181     echo 'int i;' > conftest.h
    5182     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
    5183 
    5184     case $depmode in
    5185     nosideeffect)
    5186       # after this tag, mechanisms are not by side-effect, so they'll
    5187       # only be used when explicitly requested
    5188       if test "x$enable_dependency_tracking" = xyes; then
    5189         continue
    5190       else
    5191         break
    5192       fi
    5193       ;;
    5194     none) break ;;
    5195     esac
    5196     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    5197     # mode.  It turns out that the SunPro C++ compiler does not properly
    5198     # handle `-M -o', and we need to detect this.
    5199     if depmode=$depmode \
    5200        source=conftest.c object=conftest.o \
    5201        depfile=conftest.Po tmpdepfile=conftest.TPo \
    5202        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
    5203        grep conftest.h conftest.Po > /dev/null 2>&1 &&
    5204        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    5205       am_cv_$1_dependencies_compiler_type=$depmode
    5206       break
    5207     fi
    5208   done
    5209 
    5210   cd ..
    5211   rm -rf conftest.dir
    5212 else
    5213   am_cv_$1_dependencies_compiler_type=none
    5214 fi
    5215 ])
    5216 $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"
    5217 AC_SUBST([$1DEPMODE])
    5218 ])
    5219 
    5220 
    5221 # AM_SET_DEPDIR
    5222 # -------------
    5223 # Choose a directory name for dependency files.
    5224 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
    5225 AC_DEFUN([AM_SET_DEPDIR],
    5226 [rm -f .deps 2>/dev/null
    5227 mkdir .deps 2>/dev/null
    5228 if test -d .deps; then
    5229   DEPDIR=.deps
    5230 else
    5231   # MS-DOS does not allow filenames that begin with a dot.
    5232   DEPDIR=_deps
    5233 fi
    5234 rmdir .deps 2>/dev/null
    5235 AC_SUBST(DEPDIR)
    5236 ])
    5237 
    5238 
    5239 # AM_DEP_TRACK
    5240 # ------------
    5241 AC_DEFUN([AM_DEP_TRACK],
    5242 [AC_ARG_ENABLE(dependency-tracking,
    5243 [  --disable-dependency-tracking Speeds up one-time builds
    5244   --enable-dependency-tracking  Do not reject slow dependency extractors])
    5245 if test "x$enable_dependency_tracking" != xno; then
    5246   am_depcomp="$ac_aux_dir/depcomp"
    5247   AMDEPBACKSLASH='\'
    5248 fi
    5249 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
    5250 pushdef([subst], defn([AC_SUBST]))
    5251 subst(AMDEPBACKSLASH)
    5252 popdef([subst])
    5253 ])
    5254 
    5255 # Generate code to set up dependency tracking.
    5256 # This macro should only be invoked once -- use via AC_REQUIRE.
    5257 # Usage:
    5258 # AM_OUTPUT_DEPENDENCY_COMMANDS
    5259 
    5260 #
    5261 # This code is only required when automatic dependency tracking
    5262 # is enabled.  FIXME.  This creates each `.P' file that we will
    5263 # need in order to bootstrap the dependency handling code.
    5264 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[
    5265 AC_OUTPUT_COMMANDS([
    5266 test x"$AMDEP_TRUE" != x"" ||
    5267 for mf in $CONFIG_FILES; do
    5268   case "$mf" in
    5269   Makefile) dirpart=.;;
    5270   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
    5271   *) continue;;
    5272   esac
    5273   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
    5274   # Extract the definition of DEP_FILES from the Makefile without
    5275   # running `make'.
    5276   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
    5277   test -z "$DEPDIR" && continue
    5278   # When using ansi2knr, U may be empty or an underscore; expand it
    5279   U=`sed -n -e '/^U = / s///p' < "$mf"`
    5280   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    5281   # We invoke sed twice because it is the simplest approach to
    5282   # changing $(DEPDIR) to its actual value in the expansion.
    5283   for file in `sed -n -e '
    5284     /^DEP_FILES = .*\\\\$/ {
    5285       s/^DEP_FILES = //
    5286       :loop
    5287         s/\\\\$//
    5288         p
    5289         n
    5290         /\\\\$/ b loop
    5291       p
    5292     }
    5293     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
    5294        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    5295     # Make sure the directory exists.
    5296     test -f "$dirpart/$file" && continue
    5297     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
    5298     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
    5299     # echo "creating $dirpart/$file"
    5300     echo '# dummy' > "$dirpart/$file"
    5301   done
    5302 done
    5303 ], [AMDEP_TRUE="$AMDEP_TRUE"
    5304 ac_aux_dir="$ac_aux_dir"])])
    5305 
    5306 # AM_MAKE_INCLUDE()
    5307 # -----------------
    5308 # Check to see how make treats includes.
    5309 AC_DEFUN([AM_MAKE_INCLUDE],
    5310 [am_make=${MAKE-make}
    5311 cat > confinc << 'END'
    5312 doit:
    5313         @echo done
    5314 END
    5315 # If we don't find an include directive, just comment out the code.
    5316 AC_MSG_CHECKING([for style of include used by $am_make])
    5317 am__include='#'
    5318 am__quote=
    5319 _am_result=none
    5320 # First try GNU make style include.
    5321 echo "include confinc" > confmf
    5322 # We grep out `Entering directory' and `Leaving directory'
    5323 # messages which can occur if `w' ends up in MAKEFLAGS.
    5324 # In particular we don't look at `^make:' because GNU make might
    5325 # be invoked under some other name (usually "gmake"), in which
    5326 # case it prints its new name instead of `make'.
    5327 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
    5328    am__include=include
    5329    am__quote=
    5330    _am_result=GNU
    5331 fi
    5332 # Now try BSD make style include.
    5333 if test "$am__include" = "#"; then
    5334    echo '.include "confinc"' > confmf
    5335    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    5336       am__include=.include
    5337       am__quote='"'
    5338       _am_result=BSD
    5339    fi
    5340 fi
    5341 AC_SUBST(am__include)
    5342 AC_SUBST(am__quote)
    5343 AC_MSG_RESULT($_am_result)
    5344 rm -f confinc confmf
    5345 ])
    5346 
    5347 # serial 3
    5348 
    5349 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
    5350 # -------------------------------------
    5351 # Define a conditional.
    5352 #
    5353 # FIXME: Once using 2.50, use this:
    5354 # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
    5355 AC_DEFUN([AM_CONDITIONAL],
    5356 [ifelse([$1], [TRUE],
    5357         [errprint(__file__:__line__: [$0: invalid condition: $1
    5358 ])dnl
    5359 m4exit(1)])dnl
    5360 ifelse([$1], [FALSE],
    5361        [errprint(__file__:__line__: [$0: invalid condition: $1
    5362 ])dnl
    5363 m4exit(1)])dnl
    5364 AC_SUBST([$1_TRUE])
    5365 AC_SUBST([$1_FALSE])
    5366 if $2; then
    5367   $1_TRUE=
    5368   $1_FALSE='#'
    5369 else
    5370   $1_TRUE='#'
    5371   $1_FALSE=
    5372 fi])
    5373 
    53744985# Like AC_CONFIG_HEADER, but automatically create stamp file.
    53754986
    5376 # serial 3
    5377 
    5378 # When config.status generates a header, we must update the stamp-h file.
    5379 # This file resides in the same directory as the config header
    5380 # that is generated.  We must strip everything past the first ":",
    5381 # and everything past the last "/".
    5382 
    5383 AC_PREREQ([2.12])
    5384 
    5385 AC_DEFUN([AM_CONFIG_HEADER],
    5386 [ifdef([AC_FOREACH],dnl
    5387          [dnl init our file count if it isn't already
    5388          m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))
    5389          dnl prepare to store our destination file list for use in config.status
    5390          AC_FOREACH([_AM_File], [$1],
    5391                     [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))
    5392                     m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))
    5393                     dnl and add it to the list of files AC keeps track of, along
    5394                     dnl with our hook
    5395                     AC_CONFIG_HEADERS(_AM_File,
    5396 dnl COMMANDS, [, INIT-CMDS]
    5397 [# update the timestamp
    5398 echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["
    5399 ][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS
    5400                     m4_popdef([_AM_Dest])])],dnl
    5401 [AC_CONFIG_HEADER([$1])
    5402   AC_OUTPUT_COMMANDS(
    5403    ifelse(patsubst([$1], [[^ ]], []),
    5404           [],
    5405           [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
    5406            patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl
    5407 [am_indx=1
    5408 for am_file in $1; do
    5409   case " \$CONFIG_HEADERS " in
    5410   *" \$am_file "*)
    5411     am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
    5412     if test -n "\$am_dir"; then
    5413       am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
    5414       for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
    5415         am_tmpdir=\$am_tmpdir\$am_subdir/
    5416         if test ! -d \$am_tmpdir; then
    5417           mkdir \$am_tmpdir
    5418         fi
    5419       done
    5420     fi
    5421     echo timestamp > "\$am_dir"stamp-h\$am_indx
     4987AC_DEFUN(AM_CONFIG_HEADER,
     4988[AC_PREREQ([2.12])
     4989AC_CONFIG_HEADER([$1])
     4990dnl When config.status generates a header, we must update the stamp-h file.
     4991dnl This file resides in the same directory as the config header
     4992dnl that is generated.  We must strip everything past the first ":",
     4993dnl and everything past the last "/".
     4994AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
     4995ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
     4996<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
     4997<<am_indx=1
     4998for am_file in <<$1>>; do
     4999  case " <<$>>CONFIG_HEADERS " in
     5000  *" <<$>>am_file "*<<)>>
     5001    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
    54225002    ;;
    54235003  esac
    5424   am_indx=\`expr \$am_indx + 1\`
    5425 done])
    5426 ])]) # AM_CONFIG_HEADER
    5427 
    5428 # _AM_DIRNAME(PATH)
    5429 # -----------------
    5430 # Like AS_DIRNAME, only do it during macro expansion
    5431 AC_DEFUN([_AM_DIRNAME],
    5432        [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
    5433               m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,
    5434                     m4_if(m4_regexp([$1], [^/.*]), -1,
    5435                           [.],
    5436                           m4_patsubst([$1], [^\(/\).*], [\1])),
    5437                     m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
    5438               m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
    5439 ]) # _AM_DIRNAME
    5440 
     5004  am_indx=`expr "<<$>>am_indx" + 1`
     5005done<<>>dnl>>)
     5006changequote([,]))])
     5007
Note: See TracChangeset for help on using the changeset viewer.