Chris@10: # generated automatically by aclocal 1.11.6 -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Chris@10: # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Chris@10: # Inc. Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # This program is distributed in the hope that it will be useful, Chris@10: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without Chris@10: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A Chris@10: # PARTICULAR PURPOSE. Chris@10: Chris@10: m4_ifndef([AC_AUTOCONF_VERSION], Chris@10: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl Chris@10: m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, Chris@10: [m4_warning([this file was generated for autoconf 2.69. Chris@10: You have another version of autoconf. It may work, but is not guaranteed to. Chris@10: If you have problems, you may need to regenerate the build system entirely. Chris@10: To do so, use the procedure documented by the package, typically `autoreconf'.])]) Chris@10: Chris@10: # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software Chris@10: # Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 1 Chris@10: Chris@10: # AM_AUTOMAKE_VERSION(VERSION) Chris@10: # ---------------------------- Chris@10: # Automake X.Y traces this macro to ensure aclocal.m4 has been Chris@10: # generated from the m4 files accompanying Automake X.Y. Chris@10: # (This private macro should not be called outside this file.) Chris@10: AC_DEFUN([AM_AUTOMAKE_VERSION], Chris@10: [am__api_version='1.11' Chris@10: dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to Chris@10: dnl require some minimum version. Point them to the right macro. Chris@10: m4_if([$1], [1.11.6], [], Chris@10: [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl Chris@10: ]) Chris@10: Chris@10: # _AM_AUTOCONF_VERSION(VERSION) Chris@10: # ----------------------------- Chris@10: # aclocal traces this macro to find the Autoconf version. Chris@10: # This is a private macro too. Using m4_define simplifies Chris@10: # the logic in aclocal, which can simply ignore this definition. Chris@10: m4_define([_AM_AUTOCONF_VERSION], []) Chris@10: Chris@10: # AM_SET_CURRENT_AUTOMAKE_VERSION Chris@10: # ------------------------------- Chris@10: # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. Chris@10: # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. Chris@10: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], Chris@10: [AM_AUTOMAKE_VERSION([1.11.6])dnl Chris@10: m4_ifndef([AC_AUTOCONF_VERSION], Chris@10: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl Chris@10: _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) Chris@10: Chris@10: # AM_AUX_DIR_EXPAND -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 1 Chris@10: Chris@10: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets Chris@10: # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to Chris@10: # `$srcdir', `$srcdir/..', or `$srcdir/../..'. Chris@10: # Chris@10: # Of course, Automake must honor this variable whenever it calls a Chris@10: # tool from the auxiliary directory. The problem is that $srcdir (and Chris@10: # therefore $ac_aux_dir as well) can be either absolute or relative, Chris@10: # depending on how configure is run. This is pretty annoying, since Chris@10: # it makes $ac_aux_dir quite unusable in subdirectories: in the top Chris@10: # source directory, any form will work fine, but in subdirectories a Chris@10: # relative path needs to be adjusted first. Chris@10: # Chris@10: # $ac_aux_dir/missing Chris@10: # fails when called from a subdirectory if $ac_aux_dir is relative Chris@10: # $top_srcdir/$ac_aux_dir/missing Chris@10: # fails if $ac_aux_dir is absolute, Chris@10: # fails when called from a subdirectory in a VPATH build with Chris@10: # a relative $ac_aux_dir Chris@10: # Chris@10: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir Chris@10: # are both prefixed by $srcdir. In an in-source build this is usually Chris@10: # harmless because $srcdir is `.', but things will broke when you Chris@10: # start a VPATH build or use an absolute $srcdir. Chris@10: # Chris@10: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, Chris@10: # iff we strip the leading $srcdir from $ac_aux_dir. That would be: Chris@10: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` Chris@10: # and then we would define $MISSING as Chris@10: # MISSING="\${SHELL} $am_aux_dir/missing" Chris@10: # This will work as long as MISSING is not called from configure, because Chris@10: # unfortunately $(top_srcdir) has no meaning in configure. Chris@10: # However there are other variables, like CC, which are often used in Chris@10: # configure, and could therefore not use this "fixed" $ac_aux_dir. Chris@10: # Chris@10: # Another solution, used here, is to always expand $ac_aux_dir to an Chris@10: # absolute PATH. The drawback is that using absolute paths prevent a Chris@10: # configured tree to be moved without reconfiguration. Chris@10: Chris@10: AC_DEFUN([AM_AUX_DIR_EXPAND], Chris@10: [dnl Rely on autoconf to set up CDPATH properly. Chris@10: AC_PREREQ([2.50])dnl Chris@10: # expand $ac_aux_dir to an absolute path Chris@10: am_aux_dir=`cd $ac_aux_dir && pwd` Chris@10: ]) Chris@10: Chris@10: # AM_CONDITIONAL -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 Chris@10: # Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 9 Chris@10: Chris@10: # AM_CONDITIONAL(NAME, SHELL-CONDITION) Chris@10: # ------------------------------------- Chris@10: # Define a conditional. Chris@10: AC_DEFUN([AM_CONDITIONAL], Chris@10: [AC_PREREQ(2.52)dnl Chris@10: ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], Chris@10: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl Chris@10: AC_SUBST([$1_TRUE])dnl Chris@10: AC_SUBST([$1_FALSE])dnl Chris@10: _AM_SUBST_NOTMAKE([$1_TRUE])dnl Chris@10: _AM_SUBST_NOTMAKE([$1_FALSE])dnl Chris@10: m4_define([_AM_COND_VALUE_$1], [$2])dnl Chris@10: if $2; then Chris@10: $1_TRUE= Chris@10: $1_FALSE='#' Chris@10: else Chris@10: $1_TRUE='#' Chris@10: $1_FALSE= Chris@10: fi Chris@10: AC_CONFIG_COMMANDS_PRE( Chris@10: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then Chris@10: AC_MSG_ERROR([[conditional "$1" was never defined. Chris@10: Usually this means the macro was only invoked conditionally.]]) Chris@10: fi])]) Chris@10: Chris@10: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, Chris@10: # 2010, 2011 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 12 Chris@10: Chris@10: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be Chris@10: # written in clear, in which case automake, when reading aclocal.m4, Chris@10: # will think it sees a *use*, and therefore will trigger all it's Chris@10: # C support machinery. Also note that it means that autoscan, seeing Chris@10: # CC etc. in the Makefile, will ask for an AC_PROG_CC use... Chris@10: Chris@10: Chris@10: # _AM_DEPENDENCIES(NAME) Chris@10: # ---------------------- Chris@10: # See how the compiler implements dependency checking. Chris@10: # NAME is "CC", "CXX", "GCJ", or "OBJC". Chris@10: # We try a few techniques and use that to set a single cache variable. Chris@10: # Chris@10: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was Chris@10: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular Chris@10: # dependency, and given that the user is not expected to run this macro, Chris@10: # just rely on AC_PROG_CC. Chris@10: AC_DEFUN([_AM_DEPENDENCIES], Chris@10: [AC_REQUIRE([AM_SET_DEPDIR])dnl Chris@10: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl Chris@10: AC_REQUIRE([AM_MAKE_INCLUDE])dnl Chris@10: AC_REQUIRE([AM_DEP_TRACK])dnl Chris@10: Chris@10: ifelse([$1], CC, [depcc="$CC" am_compiler_list=], Chris@10: [$1], CXX, [depcc="$CXX" am_compiler_list=], Chris@10: [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], Chris@10: [$1], UPC, [depcc="$UPC" am_compiler_list=], Chris@10: [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], Chris@10: [depcc="$$1" am_compiler_list=]) Chris@10: Chris@10: AC_CACHE_CHECK([dependency style of $depcc], Chris@10: [am_cv_$1_dependencies_compiler_type], Chris@10: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then Chris@10: # We make a subdir and do the tests there. Otherwise we can end up Chris@10: # making bogus files that we don't know about and never remove. For Chris@10: # instance it was reported that on HP-UX the gcc test will end up Chris@10: # making a dummy file named `D' -- because `-MD' means `put the output Chris@10: # in D'. Chris@10: rm -rf conftest.dir Chris@10: mkdir conftest.dir Chris@10: # Copy depcomp to subdir because otherwise we won't find it if we're Chris@10: # using a relative directory. Chris@10: cp "$am_depcomp" conftest.dir Chris@10: cd conftest.dir Chris@10: # We will build objects and dependencies in a subdirectory because Chris@10: # it helps to detect inapplicable dependency modes. For instance Chris@10: # both Tru64's cc and ICC support -MD to output dependencies as a Chris@10: # side effect of compilation, but ICC will put the dependencies in Chris@10: # the current directory while Tru64 will put them in the object Chris@10: # directory. Chris@10: mkdir sub Chris@10: Chris@10: am_cv_$1_dependencies_compiler_type=none Chris@10: if test "$am_compiler_list" = ""; then Chris@10: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` Chris@10: fi Chris@10: am__universal=false Chris@10: m4_case([$1], [CC], Chris@10: [case " $depcc " in #( Chris@10: *\ -arch\ *\ -arch\ *) am__universal=true ;; Chris@10: esac], Chris@10: [CXX], Chris@10: [case " $depcc " in #( Chris@10: *\ -arch\ *\ -arch\ *) am__universal=true ;; Chris@10: esac]) Chris@10: Chris@10: for depmode in $am_compiler_list; do Chris@10: # Setup a source with many dependencies, because some compilers Chris@10: # like to wrap large dependency lists on column 80 (with \), and Chris@10: # we should not choose a depcomp mode which is confused by this. Chris@10: # Chris@10: # We need to recreate these files for each test, as the compiler may Chris@10: # overwrite some of them when testing with obscure command lines. Chris@10: # This happens at least with the AIX C compiler. Chris@10: : > sub/conftest.c Chris@10: for i in 1 2 3 4 5 6; do Chris@10: echo '#include "conftst'$i'.h"' >> sub/conftest.c Chris@10: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with Chris@10: # Solaris 8's {/usr,}/bin/sh. Chris@10: touch sub/conftst$i.h Chris@10: done Chris@10: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf Chris@10: Chris@10: # We check with `-c' and `-o' for the sake of the "dashmstdout" Chris@10: # mode. It turns out that the SunPro C++ compiler does not properly Chris@10: # handle `-M -o', and we need to detect this. Also, some Intel Chris@10: # versions had trouble with output in subdirs Chris@10: am__obj=sub/conftest.${OBJEXT-o} Chris@10: am__minus_obj="-o $am__obj" Chris@10: case $depmode in Chris@10: gcc) Chris@10: # This depmode causes a compiler race in universal mode. Chris@10: test "$am__universal" = false || continue Chris@10: ;; Chris@10: nosideeffect) Chris@10: # after this tag, mechanisms are not by side-effect, so they'll Chris@10: # only be used when explicitly requested Chris@10: if test "x$enable_dependency_tracking" = xyes; then Chris@10: continue Chris@10: else Chris@10: break Chris@10: fi Chris@10: ;; Chris@10: msvc7 | msvc7msys | msvisualcpp | msvcmsys) Chris@10: # This compiler won't grok `-c -o', but also, the minuso test has Chris@10: # not run yet. These depmodes are late enough in the game, and Chris@10: # so weak that their functioning should not be impacted. Chris@10: am__obj=conftest.${OBJEXT-o} Chris@10: am__minus_obj= Chris@10: ;; Chris@10: none) break ;; Chris@10: esac Chris@10: if depmode=$depmode \ Chris@10: source=sub/conftest.c object=$am__obj \ Chris@10: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ Chris@10: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ Chris@10: >/dev/null 2>conftest.err && Chris@10: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && Chris@10: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && Chris@10: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && Chris@10: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then Chris@10: # icc doesn't choke on unknown options, it will just issue warnings Chris@10: # or remarks (even with -Werror). So we grep stderr for any message Chris@10: # that says an option was ignored or not supported. Chris@10: # When given -MP, icc 7.0 and 7.1 complain thusly: Chris@10: # icc: Command line warning: ignoring option '-M'; no argument required Chris@10: # The diagnosis changed in icc 8.0: Chris@10: # icc: Command line remark: option '-MP' not supported Chris@10: if (grep 'ignoring option' conftest.err || Chris@10: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else Chris@10: am_cv_$1_dependencies_compiler_type=$depmode Chris@10: break Chris@10: fi Chris@10: fi Chris@10: done Chris@10: Chris@10: cd .. Chris@10: rm -rf conftest.dir Chris@10: else Chris@10: am_cv_$1_dependencies_compiler_type=none Chris@10: fi Chris@10: ]) Chris@10: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) Chris@10: AM_CONDITIONAL([am__fastdep$1], [ Chris@10: test "x$enable_dependency_tracking" != xno \ Chris@10: && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) Chris@10: ]) Chris@10: Chris@10: Chris@10: # AM_SET_DEPDIR Chris@10: # ------------- Chris@10: # Choose a directory name for dependency files. Chris@10: # This macro is AC_REQUIREd in _AM_DEPENDENCIES Chris@10: AC_DEFUN([AM_SET_DEPDIR], Chris@10: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl Chris@10: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl Chris@10: ]) Chris@10: Chris@10: Chris@10: # AM_DEP_TRACK Chris@10: # ------------ Chris@10: AC_DEFUN([AM_DEP_TRACK], Chris@10: [AC_ARG_ENABLE(dependency-tracking, Chris@10: [ --disable-dependency-tracking speeds up one-time build Chris@10: --enable-dependency-tracking do not reject slow dependency extractors]) Chris@10: if test "x$enable_dependency_tracking" != xno; then Chris@10: am_depcomp="$ac_aux_dir/depcomp" Chris@10: AMDEPBACKSLASH='\' Chris@10: am__nodep='_no' Chris@10: fi Chris@10: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) Chris@10: AC_SUBST([AMDEPBACKSLASH])dnl Chris@10: _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl Chris@10: AC_SUBST([am__nodep])dnl Chris@10: _AM_SUBST_NOTMAKE([am__nodep])dnl Chris@10: ]) Chris@10: Chris@10: # Generate code to set up dependency tracking. -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 Chris@10: # Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: #serial 5 Chris@10: Chris@10: # _AM_OUTPUT_DEPENDENCY_COMMANDS Chris@10: # ------------------------------ Chris@10: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], Chris@10: [{ Chris@10: # Autoconf 2.62 quotes --file arguments for eval, but not when files Chris@10: # are listed without --file. Let's play safe and only enable the eval Chris@10: # if we detect the quoting. Chris@10: case $CONFIG_FILES in Chris@10: *\'*) eval set x "$CONFIG_FILES" ;; Chris@10: *) set x $CONFIG_FILES ;; Chris@10: esac Chris@10: shift Chris@10: for mf Chris@10: do Chris@10: # Strip MF so we end up with the name of the file. Chris@10: mf=`echo "$mf" | sed -e 's/:.*$//'` Chris@10: # Check whether this is an Automake generated Makefile or not. Chris@10: # We used to match only the files named `Makefile.in', but Chris@10: # some people rename them; so instead we look at the file content. Chris@10: # Grep'ing the first line is not enough: some people post-process Chris@10: # each Makefile.in and add a new line on top of each file to say so. Chris@10: # Grep'ing the whole file is not good either: AIX grep has a line Chris@10: # limit of 2048, but all sed's we know have understand at least 4000. Chris@10: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then Chris@10: dirpart=`AS_DIRNAME("$mf")` Chris@10: else Chris@10: continue Chris@10: fi Chris@10: # Extract the definition of DEPDIR, am__include, and am__quote Chris@10: # from the Makefile without running `make'. Chris@10: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` Chris@10: test -z "$DEPDIR" && continue Chris@10: am__include=`sed -n 's/^am__include = //p' < "$mf"` Chris@10: test -z "am__include" && continue Chris@10: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` Chris@10: # When using ansi2knr, U may be empty or an underscore; expand it Chris@10: U=`sed -n 's/^U = //p' < "$mf"` Chris@10: # Find all dependency output files, they are included files with Chris@10: # $(DEPDIR) in their names. We invoke sed twice because it is the Chris@10: # simplest approach to changing $(DEPDIR) to its actual value in the Chris@10: # expansion. Chris@10: for file in `sed -n " Chris@10: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ Chris@10: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do Chris@10: # Make sure the directory exists. Chris@10: test -f "$dirpart/$file" && continue Chris@10: fdir=`AS_DIRNAME(["$file"])` Chris@10: AS_MKDIR_P([$dirpart/$fdir]) Chris@10: # echo "creating $dirpart/$file" Chris@10: echo '# dummy' > "$dirpart/$file" Chris@10: done Chris@10: done Chris@10: } Chris@10: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS Chris@10: Chris@10: Chris@10: # AM_OUTPUT_DEPENDENCY_COMMANDS Chris@10: # ----------------------------- Chris@10: # This macro should only be invoked once -- use via AC_REQUIRE. Chris@10: # Chris@10: # This code is only required when automatic dependency tracking Chris@10: # is enabled. FIXME. This creates each `.P' file that we will Chris@10: # need in order to bootstrap the dependency handling code. Chris@10: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], Chris@10: [AC_CONFIG_COMMANDS([depfiles], Chris@10: [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], Chris@10: [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) Chris@10: ]) Chris@10: Chris@10: # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 Chris@10: # Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 8 Chris@10: Chris@10: # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. Chris@10: AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) Chris@10: Chris@10: # Do all the work for Automake. -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Chris@10: # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 16 Chris@10: Chris@10: # This macro actually does too much. Some checks are only needed if Chris@10: # your package does certain things. But this isn't really a big deal. Chris@10: Chris@10: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) Chris@10: # AM_INIT_AUTOMAKE([OPTIONS]) Chris@10: # ----------------------------------------------- Chris@10: # The call with PACKAGE and VERSION arguments is the old style Chris@10: # call (pre autoconf-2.50), which is being phased out. PACKAGE Chris@10: # and VERSION should now be passed to AC_INIT and removed from Chris@10: # the call to AM_INIT_AUTOMAKE. Chris@10: # We support both call styles for the transition. After Chris@10: # the next Automake release, Autoconf can make the AC_INIT Chris@10: # arguments mandatory, and then we can depend on a new Autoconf Chris@10: # release and drop the old call support. Chris@10: AC_DEFUN([AM_INIT_AUTOMAKE], Chris@10: [AC_PREREQ([2.62])dnl Chris@10: dnl Autoconf wants to disallow AM_ names. We explicitly allow Chris@10: dnl the ones we care about. Chris@10: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl Chris@10: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl Chris@10: AC_REQUIRE([AC_PROG_INSTALL])dnl Chris@10: if test "`cd $srcdir && pwd`" != "`pwd`"; then Chris@10: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output Chris@10: # is not polluted with repeated "-I." Chris@10: AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl Chris@10: # test to see if srcdir already configured Chris@10: if test -f $srcdir/config.status; then Chris@10: AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) Chris@10: fi Chris@10: fi Chris@10: Chris@10: # test whether we have cygpath Chris@10: if test -z "$CYGPATH_W"; then Chris@10: if (cygpath --version) >/dev/null 2>/dev/null; then Chris@10: CYGPATH_W='cygpath -w' Chris@10: else Chris@10: CYGPATH_W=echo Chris@10: fi Chris@10: fi Chris@10: AC_SUBST([CYGPATH_W]) Chris@10: Chris@10: # Define the identity of the package. Chris@10: dnl Distinguish between old-style and new-style calls. Chris@10: m4_ifval([$2], Chris@10: [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl Chris@10: AC_SUBST([PACKAGE], [$1])dnl Chris@10: AC_SUBST([VERSION], [$2])], Chris@10: [_AM_SET_OPTIONS([$1])dnl Chris@10: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. Chris@10: m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, Chris@10: [m4_fatal([AC_INIT should be called with package and version arguments])])dnl Chris@10: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl Chris@10: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl Chris@10: Chris@10: _AM_IF_OPTION([no-define],, Chris@10: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) Chris@10: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl Chris@10: Chris@10: # Some tools Automake needs. Chris@10: AC_REQUIRE([AM_SANITY_CHECK])dnl Chris@10: AC_REQUIRE([AC_ARG_PROGRAM])dnl Chris@10: AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) Chris@10: AM_MISSING_PROG(AUTOCONF, autoconf) Chris@10: AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) Chris@10: AM_MISSING_PROG(AUTOHEADER, autoheader) Chris@10: AM_MISSING_PROG(MAKEINFO, makeinfo) Chris@10: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl Chris@10: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl Chris@10: AC_REQUIRE([AM_PROG_MKDIR_P])dnl Chris@10: # We need awk for the "check" target. The system "awk" is bad on Chris@10: # some platforms. Chris@10: AC_REQUIRE([AC_PROG_AWK])dnl Chris@10: AC_REQUIRE([AC_PROG_MAKE_SET])dnl Chris@10: AC_REQUIRE([AM_SET_LEADING_DOT])dnl Chris@10: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], Chris@10: [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], Chris@10: [_AM_PROG_TAR([v7])])]) Chris@10: _AM_IF_OPTION([no-dependencies],, Chris@10: [AC_PROVIDE_IFELSE([AC_PROG_CC], Chris@10: [_AM_DEPENDENCIES(CC)], Chris@10: [define([AC_PROG_CC], Chris@10: defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl Chris@10: AC_PROVIDE_IFELSE([AC_PROG_CXX], Chris@10: [_AM_DEPENDENCIES(CXX)], Chris@10: [define([AC_PROG_CXX], Chris@10: defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl Chris@10: AC_PROVIDE_IFELSE([AC_PROG_OBJC], Chris@10: [_AM_DEPENDENCIES(OBJC)], Chris@10: [define([AC_PROG_OBJC], Chris@10: defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl Chris@10: ]) Chris@10: _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl Chris@10: dnl The `parallel-tests' driver may need to know about EXEEXT, so add the Chris@10: dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro Chris@10: dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. Chris@10: AC_CONFIG_COMMANDS_PRE(dnl Chris@10: [m4_provide_if([_AM_COMPILER_EXEEXT], Chris@10: [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl Chris@10: ]) Chris@10: Chris@10: dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not Chris@10: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further Chris@10: dnl mangled by Autoconf and run in a shell conditional statement. Chris@10: m4_define([_AC_COMPILER_EXEEXT], Chris@10: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) Chris@10: Chris@10: Chris@10: # When config.status generates a header, we must update the stamp-h file. Chris@10: # This file resides in the same directory as the config header Chris@10: # that is generated. The stamp files are numbered to have different names. Chris@10: Chris@10: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the Chris@10: # loop where config.status creates the headers, so we can generate Chris@10: # our stamp files there. Chris@10: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], Chris@10: [# Compute $1's index in $config_headers. Chris@10: _am_arg=$1 Chris@10: _am_stamp_count=1 Chris@10: for _am_header in $config_headers :; do Chris@10: case $_am_header in Chris@10: $_am_arg | $_am_arg:* ) Chris@10: break ;; Chris@10: * ) Chris@10: _am_stamp_count=`expr $_am_stamp_count + 1` ;; Chris@10: esac Chris@10: done Chris@10: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) Chris@10: Chris@10: # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, Chris@10: # Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 1 Chris@10: Chris@10: # AM_PROG_INSTALL_SH Chris@10: # ------------------ Chris@10: # Define $install_sh. Chris@10: AC_DEFUN([AM_PROG_INSTALL_SH], Chris@10: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl Chris@10: if test x"${install_sh}" != xset; then Chris@10: case $am_aux_dir in Chris@10: *\ * | *\ *) Chris@10: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; Chris@10: *) Chris@10: install_sh="\${SHELL} $am_aux_dir/install-sh" Chris@10: esac Chris@10: fi Chris@10: AC_SUBST(install_sh)]) Chris@10: Chris@10: # Copyright (C) 2003, 2005 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 2 Chris@10: Chris@10: # Check whether the underlying file-system supports filenames Chris@10: # with a leading dot. For instance MS-DOS doesn't. Chris@10: AC_DEFUN([AM_SET_LEADING_DOT], Chris@10: [rm -rf .tst 2>/dev/null Chris@10: mkdir .tst 2>/dev/null Chris@10: if test -d .tst; then Chris@10: am__leading_dot=. Chris@10: else Chris@10: am__leading_dot=_ Chris@10: fi Chris@10: rmdir .tst 2>/dev/null Chris@10: AC_SUBST([am__leading_dot])]) Chris@10: Chris@10: # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- Chris@10: # From Jim Meyering Chris@10: Chris@10: # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, Chris@10: # 2011 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 5 Chris@10: Chris@10: # AM_MAINTAINER_MODE([DEFAULT-MODE]) Chris@10: # ---------------------------------- Chris@10: # Control maintainer-specific portions of Makefiles. Chris@10: # Default is to disable them, unless `enable' is passed literally. Chris@10: # For symmetry, `disable' may be passed as well. Anyway, the user Chris@10: # can override the default with the --enable/--disable switch. Chris@10: AC_DEFUN([AM_MAINTAINER_MODE], Chris@10: [m4_case(m4_default([$1], [disable]), Chris@10: [enable], [m4_define([am_maintainer_other], [disable])], Chris@10: [disable], [m4_define([am_maintainer_other], [enable])], Chris@10: [m4_define([am_maintainer_other], [enable]) Chris@10: m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) Chris@10: AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) Chris@10: dnl maintainer-mode's default is 'disable' unless 'enable' is passed Chris@10: AC_ARG_ENABLE([maintainer-mode], Chris@10: [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful Chris@10: (and sometimes confusing) to the casual installer], Chris@10: [USE_MAINTAINER_MODE=$enableval], Chris@10: [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) Chris@10: AC_MSG_RESULT([$USE_MAINTAINER_MODE]) Chris@10: AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) Chris@10: MAINT=$MAINTAINER_MODE_TRUE Chris@10: AC_SUBST([MAINT])dnl Chris@10: ] Chris@10: ) Chris@10: Chris@10: AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) Chris@10: Chris@10: # Check to see how 'make' treats includes. -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 4 Chris@10: Chris@10: # AM_MAKE_INCLUDE() Chris@10: # ----------------- Chris@10: # Check to see how make treats includes. Chris@10: AC_DEFUN([AM_MAKE_INCLUDE], Chris@10: [am_make=${MAKE-make} Chris@10: cat > confinc << 'END' Chris@10: am__doit: Chris@10: @echo this is the am__doit target Chris@10: .PHONY: am__doit Chris@10: END Chris@10: # If we don't find an include directive, just comment out the code. Chris@10: AC_MSG_CHECKING([for style of include used by $am_make]) Chris@10: am__include="#" Chris@10: am__quote= Chris@10: _am_result=none Chris@10: # First try GNU make style include. Chris@10: echo "include confinc" > confmf Chris@10: # Ignore all kinds of additional output from `make'. Chris@10: case `$am_make -s -f confmf 2> /dev/null` in #( Chris@10: *the\ am__doit\ target*) Chris@10: am__include=include Chris@10: am__quote= Chris@10: _am_result=GNU Chris@10: ;; Chris@10: esac Chris@10: # Now try BSD make style include. Chris@10: if test "$am__include" = "#"; then Chris@10: echo '.include "confinc"' > confmf Chris@10: case `$am_make -s -f confmf 2> /dev/null` in #( Chris@10: *the\ am__doit\ target*) Chris@10: am__include=.include Chris@10: am__quote="\"" Chris@10: _am_result=BSD Chris@10: ;; Chris@10: esac Chris@10: fi Chris@10: AC_SUBST([am__include]) Chris@10: AC_SUBST([am__quote]) Chris@10: AC_MSG_RESULT([$_am_result]) Chris@10: rm -f confinc confmf Chris@10: ]) Chris@10: Chris@10: # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 Chris@10: # Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 6 Chris@10: Chris@10: # AM_PROG_CC_C_O Chris@10: # -------------- Chris@10: # Like AC_PROG_CC_C_O, but changed for automake. Chris@10: AC_DEFUN([AM_PROG_CC_C_O], Chris@10: [AC_REQUIRE([AC_PROG_CC_C_O])dnl Chris@10: AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl Chris@10: AC_REQUIRE_AUX_FILE([compile])dnl Chris@10: # FIXME: we rely on the cache variable name because Chris@10: # there is no other way. Chris@10: set dummy $CC Chris@10: am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` Chris@10: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o Chris@10: if test "$am_t" != yes; then Chris@10: # Losing compiler, so override with the script. Chris@10: # FIXME: It is wrong to rewrite CC. Chris@10: # But if we don't then we get into trouble of one sort or another. Chris@10: # A longer-term fix would be to have automake use am__CC in this case, Chris@10: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" Chris@10: CC="$am_aux_dir/compile $CC" Chris@10: fi Chris@10: dnl Make sure AC_PROG_CC is never called again, or it will override our Chris@10: dnl setting of CC. Chris@10: m4_define([AC_PROG_CC], Chris@10: [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) Chris@10: ]) Chris@10: Chris@10: # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 Chris@10: # Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 6 Chris@10: Chris@10: # AM_MISSING_PROG(NAME, PROGRAM) Chris@10: # ------------------------------ Chris@10: AC_DEFUN([AM_MISSING_PROG], Chris@10: [AC_REQUIRE([AM_MISSING_HAS_RUN]) Chris@10: $1=${$1-"${am_missing_run}$2"} Chris@10: AC_SUBST($1)]) Chris@10: Chris@10: Chris@10: # AM_MISSING_HAS_RUN Chris@10: # ------------------ Chris@10: # Define MISSING if not defined so far and test if it supports --run. Chris@10: # If it does, set am_missing_run to use it, otherwise, to nothing. Chris@10: AC_DEFUN([AM_MISSING_HAS_RUN], Chris@10: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl Chris@10: AC_REQUIRE_AUX_FILE([missing])dnl Chris@10: if test x"${MISSING+set}" != xset; then Chris@10: case $am_aux_dir in Chris@10: *\ * | *\ *) Chris@10: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; Chris@10: *) Chris@10: MISSING="\${SHELL} $am_aux_dir/missing" ;; Chris@10: esac Chris@10: fi Chris@10: # Use eval to expand $SHELL Chris@10: if eval "$MISSING --run true"; then Chris@10: am_missing_run="$MISSING --run " Chris@10: else Chris@10: am_missing_run= Chris@10: AC_MSG_WARN([`missing' script is too old or missing]) Chris@10: fi Chris@10: ]) Chris@10: Chris@10: # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, Chris@10: # Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 1 Chris@10: Chris@10: # AM_PROG_MKDIR_P Chris@10: # --------------- Chris@10: # Check for `mkdir -p'. Chris@10: AC_DEFUN([AM_PROG_MKDIR_P], Chris@10: [AC_PREREQ([2.60])dnl Chris@10: AC_REQUIRE([AC_PROG_MKDIR_P])dnl Chris@10: dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, Chris@10: dnl while keeping a definition of mkdir_p for backward compatibility. Chris@10: dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. Chris@10: dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of Chris@10: dnl Makefile.ins that do not define MKDIR_P, so we do our own Chris@10: dnl adjustment using top_builddir (which is defined more often than Chris@10: dnl MKDIR_P). Chris@10: AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl Chris@10: case $mkdir_p in Chris@10: [[\\/$]]* | ?:[[\\/]]*) ;; Chris@10: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; Chris@10: esac Chris@10: ]) Chris@10: Chris@10: # Helper functions for option handling. -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software Chris@10: # Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 5 Chris@10: Chris@10: # _AM_MANGLE_OPTION(NAME) Chris@10: # ----------------------- Chris@10: AC_DEFUN([_AM_MANGLE_OPTION], Chris@10: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) Chris@10: Chris@10: # _AM_SET_OPTION(NAME) Chris@10: # -------------------- Chris@10: # Set option NAME. Presently that only means defining a flag for this option. Chris@10: AC_DEFUN([_AM_SET_OPTION], Chris@10: [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) Chris@10: Chris@10: # _AM_SET_OPTIONS(OPTIONS) Chris@10: # ------------------------ Chris@10: # OPTIONS is a space-separated list of Automake options. Chris@10: AC_DEFUN([_AM_SET_OPTIONS], Chris@10: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) Chris@10: Chris@10: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) Chris@10: # ------------------------------------------- Chris@10: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. Chris@10: AC_DEFUN([_AM_IF_OPTION], Chris@10: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) Chris@10: Chris@10: # Check to make sure that the build environment is sane. -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 Chris@10: # Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 5 Chris@10: Chris@10: # AM_SANITY_CHECK Chris@10: # --------------- Chris@10: AC_DEFUN([AM_SANITY_CHECK], Chris@10: [AC_MSG_CHECKING([whether build environment is sane]) Chris@10: # Just in case Chris@10: sleep 1 Chris@10: echo timestamp > conftest.file Chris@10: # Reject unsafe characters in $srcdir or the absolute working directory Chris@10: # name. Accept space and tab only in the latter. Chris@10: am_lf=' Chris@10: ' Chris@10: case `pwd` in Chris@10: *[[\\\"\#\$\&\'\`$am_lf]]*) Chris@10: AC_MSG_ERROR([unsafe absolute working directory name]);; Chris@10: esac Chris@10: case $srcdir in Chris@10: *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) Chris@10: AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; Chris@10: esac Chris@10: Chris@10: # Do `set' in a subshell so we don't clobber the current shell's Chris@10: # arguments. Must try -L first in case configure is actually a Chris@10: # symlink; some systems play weird games with the mod time of symlinks Chris@10: # (eg FreeBSD returns the mod time of the symlink's containing Chris@10: # directory). Chris@10: if ( Chris@10: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` Chris@10: if test "$[*]" = "X"; then Chris@10: # -L didn't work. Chris@10: set X `ls -t "$srcdir/configure" conftest.file` Chris@10: fi Chris@10: rm -f conftest.file Chris@10: if test "$[*]" != "X $srcdir/configure conftest.file" \ Chris@10: && test "$[*]" != "X conftest.file $srcdir/configure"; then Chris@10: Chris@10: # If neither matched, then we have a broken ls. This can happen Chris@10: # if, for instance, CONFIG_SHELL is bash and it inherits a Chris@10: # broken ls alias from the environment. This has actually Chris@10: # happened. Such a system could not be considered "sane". Chris@10: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken Chris@10: alias in your environment]) Chris@10: fi Chris@10: Chris@10: test "$[2]" = conftest.file Chris@10: ) Chris@10: then Chris@10: # Ok. Chris@10: : Chris@10: else Chris@10: AC_MSG_ERROR([newly created file is older than distributed files! Chris@10: Check your system clock]) Chris@10: fi Chris@10: AC_MSG_RESULT(yes)]) Chris@10: Chris@10: # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 1 Chris@10: Chris@10: # AM_PROG_INSTALL_STRIP Chris@10: # --------------------- Chris@10: # One issue with vendor `install' (even GNU) is that you can't Chris@10: # specify the program used to strip binaries. This is especially Chris@10: # annoying in cross-compiling environments, where the build's strip Chris@10: # is unlikely to handle the host's binaries. Chris@10: # Fortunately install-sh will honor a STRIPPROG variable, so we Chris@10: # always use install-sh in `make install-strip', and initialize Chris@10: # STRIPPROG with the value of the STRIP variable (set by the user). Chris@10: AC_DEFUN([AM_PROG_INSTALL_STRIP], Chris@10: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl Chris@10: # Installed binaries are usually stripped using `strip' when the user Chris@10: # run `make install-strip'. However `strip' might not be the right Chris@10: # tool to use in cross-compilation environments, therefore Automake Chris@10: # will honor the `STRIP' environment variable to overrule this program. Chris@10: dnl Don't test for $cross_compiling = yes, because it might be `maybe'. Chris@10: if test "$cross_compiling" != no; then Chris@10: AC_CHECK_TOOL([STRIP], [strip], :) Chris@10: fi Chris@10: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" Chris@10: AC_SUBST([INSTALL_STRIP_PROGRAM])]) Chris@10: Chris@10: # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 3 Chris@10: Chris@10: # _AM_SUBST_NOTMAKE(VARIABLE) Chris@10: # --------------------------- Chris@10: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. Chris@10: # This macro is traced by Automake. Chris@10: AC_DEFUN([_AM_SUBST_NOTMAKE]) Chris@10: Chris@10: # AM_SUBST_NOTMAKE(VARIABLE) Chris@10: # -------------------------- Chris@10: # Public sister of _AM_SUBST_NOTMAKE. Chris@10: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) Chris@10: Chris@10: # Check how to create a tarball. -*- Autoconf -*- Chris@10: Chris@10: # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. Chris@10: # Chris@10: # This file is free software; the Free Software Foundation Chris@10: # gives unlimited permission to copy and/or distribute it, Chris@10: # with or without modifications, as long as this notice is preserved. Chris@10: Chris@10: # serial 2 Chris@10: Chris@10: # _AM_PROG_TAR(FORMAT) Chris@10: # -------------------- Chris@10: # Check how to create a tarball in format FORMAT. Chris@10: # FORMAT should be one of `v7', `ustar', or `pax'. Chris@10: # Chris@10: # Substitute a variable $(am__tar) that is a command Chris@10: # writing to stdout a FORMAT-tarball containing the directory Chris@10: # $tardir. Chris@10: # tardir=directory && $(am__tar) > result.tar Chris@10: # Chris@10: # Substitute a variable $(am__untar) that extract such Chris@10: # a tarball read from stdin. Chris@10: # $(am__untar) < result.tar Chris@10: AC_DEFUN([_AM_PROG_TAR], Chris@10: [# Always define AMTAR for backward compatibility. Yes, it's still used Chris@10: # in the wild :-( We should find a proper way to deprecate it ... Chris@10: AC_SUBST([AMTAR], ['$${TAR-tar}']) Chris@10: m4_if([$1], [v7], Chris@10: [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], Chris@10: [m4_case([$1], [ustar],, [pax],, Chris@10: [m4_fatal([Unknown tar format])]) Chris@10: AC_MSG_CHECKING([how to create a $1 tar archive]) Chris@10: # Loop over all known methods to create a tar archive until one works. Chris@10: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' Chris@10: _am_tools=${am_cv_prog_tar_$1-$_am_tools} Chris@10: # Do not fold the above two line into one, because Tru64 sh and Chris@10: # Solaris sh will not grok spaces in the rhs of `-'. Chris@10: for _am_tool in $_am_tools Chris@10: do Chris@10: case $_am_tool in Chris@10: gnutar) Chris@10: for _am_tar in tar gnutar gtar; Chris@10: do Chris@10: AM_RUN_LOG([$_am_tar --version]) && break Chris@10: done Chris@10: am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' Chris@10: am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' Chris@10: am__untar="$_am_tar -xf -" Chris@10: ;; Chris@10: plaintar) Chris@10: # Must skip GNU tar: if it does not support --format= it doesn't create Chris@10: # ustar tarball either. Chris@10: (tar --version) >/dev/null 2>&1 && continue Chris@10: am__tar='tar chf - "$$tardir"' Chris@10: am__tar_='tar chf - "$tardir"' Chris@10: am__untar='tar xf -' Chris@10: ;; Chris@10: pax) Chris@10: am__tar='pax -L -x $1 -w "$$tardir"' Chris@10: am__tar_='pax -L -x $1 -w "$tardir"' Chris@10: am__untar='pax -r' Chris@10: ;; Chris@10: cpio) Chris@10: am__tar='find "$$tardir" -print | cpio -o -H $1 -L' Chris@10: am__tar_='find "$tardir" -print | cpio -o -H $1 -L' Chris@10: am__untar='cpio -i -H $1 -d' Chris@10: ;; Chris@10: none) Chris@10: am__tar=false Chris@10: am__tar_=false Chris@10: am__untar=false Chris@10: ;; Chris@10: esac Chris@10: Chris@10: # If the value was cached, stop now. We just wanted to have am__tar Chris@10: # and am__untar set. Chris@10: test -n "${am_cv_prog_tar_$1}" && break Chris@10: Chris@10: # tar/untar a dummy directory, and stop if the command works Chris@10: rm -rf conftest.dir Chris@10: mkdir conftest.dir Chris@10: echo GrepMe > conftest.dir/file Chris@10: AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) Chris@10: rm -rf conftest.dir Chris@10: if test -s conftest.tar; then Chris@10: AM_RUN_LOG([$am__untar /dev/null 2>&1 && break Chris@10: fi Chris@10: done Chris@10: rm -rf conftest.dir Chris@10: Chris@10: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) Chris@10: AC_MSG_RESULT([$am_cv_prog_tar_$1])]) Chris@10: AC_SUBST([am__tar]) Chris@10: AC_SUBST([am__untar]) Chris@10: ]) # _AM_PROG_TAR Chris@10: Chris@10: m4_include([m4/acx_mpi.m4]) Chris@10: m4_include([m4/acx_pthread.m4]) Chris@10: m4_include([m4/ax_cc_maxopt.m4]) Chris@10: m4_include([m4/ax_check_compiler_flags.m4]) Chris@10: m4_include([m4/ax_compiler_vendor.m4]) Chris@10: m4_include([m4/ax_gcc_aligns_stack.m4]) Chris@10: m4_include([m4/ax_gcc_version.m4]) Chris@10: m4_include([m4/ax_openmp.m4]) Chris@10: m4_include([m4/libtool.m4]) Chris@10: m4_include([m4/ltoptions.m4]) Chris@10: m4_include([m4/ltsugar.m4]) Chris@10: m4_include([m4/ltversion.m4]) Chris@10: m4_include([m4/lt~obsolete.m4])