melunko@917: # generated automatically by aclocal 1.9.6 -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, melunko@917: # 2005 Free Software Foundation, Inc. melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # This program is distributed in the hope that it will be useful, melunko@917: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without melunko@917: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A melunko@917: # PARTICULAR PURPOSE. melunko@917: melunko@917: # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # AM_AUTOMAKE_VERSION(VERSION) melunko@917: # ---------------------------- melunko@917: # Automake X.Y traces this macro to ensure aclocal.m4 has been melunko@917: # generated from the m4 files accompanying Automake X.Y. melunko@917: AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) melunko@917: melunko@917: # AM_SET_CURRENT_AUTOMAKE_VERSION melunko@917: # ------------------------------- melunko@917: # Call AM_AUTOMAKE_VERSION so it can be traced. melunko@917: # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. melunko@917: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], melunko@917: [AM_AUTOMAKE_VERSION([1.9.6])]) melunko@917: melunko@917: # Figure out how to run the assembler. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 4 melunko@917: melunko@917: # AM_PROG_AS melunko@917: # ---------- melunko@917: AC_DEFUN([AM_PROG_AS], melunko@917: [# By default we simply use the C compiler to build assembly code. melunko@917: AC_REQUIRE([AC_PROG_CC]) melunko@917: test "${CCAS+set}" = set || CCAS=$CC melunko@917: test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS melunko@917: AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) melunko@917: AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) melunko@917: ]) melunko@917: melunko@917: # AM_AUX_DIR_EXPAND -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets melunko@917: # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to melunko@917: # `$srcdir', `$srcdir/..', or `$srcdir/../..'. melunko@917: # melunko@917: # Of course, Automake must honor this variable whenever it calls a melunko@917: # tool from the auxiliary directory. The problem is that $srcdir (and melunko@917: # therefore $ac_aux_dir as well) can be either absolute or relative, melunko@917: # depending on how configure is run. This is pretty annoying, since melunko@917: # it makes $ac_aux_dir quite unusable in subdirectories: in the top melunko@917: # source directory, any form will work fine, but in subdirectories a melunko@917: # relative path needs to be adjusted first. melunko@917: # melunko@917: # $ac_aux_dir/missing melunko@917: # fails when called from a subdirectory if $ac_aux_dir is relative melunko@917: # $top_srcdir/$ac_aux_dir/missing melunko@917: # fails if $ac_aux_dir is absolute, melunko@917: # fails when called from a subdirectory in a VPATH build with melunko@917: # a relative $ac_aux_dir melunko@917: # melunko@917: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir melunko@917: # are both prefixed by $srcdir. In an in-source build this is usually melunko@917: # harmless because $srcdir is `.', but things will broke when you melunko@917: # start a VPATH build or use an absolute $srcdir. melunko@917: # melunko@917: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, melunko@917: # iff we strip the leading $srcdir from $ac_aux_dir. That would be: melunko@917: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` melunko@917: # and then we would define $MISSING as melunko@917: # MISSING="\${SHELL} $am_aux_dir/missing" melunko@917: # This will work as long as MISSING is not called from configure, because melunko@917: # unfortunately $(top_srcdir) has no meaning in configure. melunko@917: # However there are other variables, like CC, which are often used in melunko@917: # configure, and could therefore not use this "fixed" $ac_aux_dir. melunko@917: # melunko@917: # Another solution, used here, is to always expand $ac_aux_dir to an melunko@917: # absolute PATH. The drawback is that using absolute paths prevent a melunko@917: # configured tree to be moved without reconfiguration. melunko@917: melunko@917: AC_DEFUN([AM_AUX_DIR_EXPAND], melunko@917: [dnl Rely on autoconf to set up CDPATH properly. melunko@917: AC_PREREQ([2.50])dnl melunko@917: # expand $ac_aux_dir to an absolute path melunko@917: am_aux_dir=`cd $ac_aux_dir && pwd` melunko@917: ]) melunko@917: melunko@917: # AM_CONDITIONAL -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 7 melunko@917: melunko@917: # AM_CONDITIONAL(NAME, SHELL-CONDITION) melunko@917: # ------------------------------------- melunko@917: # Define a conditional. melunko@917: AC_DEFUN([AM_CONDITIONAL], melunko@917: [AC_PREREQ(2.52)dnl melunko@917: ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], melunko@917: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl melunko@917: AC_SUBST([$1_TRUE]) melunko@917: AC_SUBST([$1_FALSE]) melunko@917: if $2; then melunko@917: $1_TRUE= melunko@917: $1_FALSE='#' melunko@917: else melunko@917: $1_TRUE='#' melunko@917: $1_FALSE= melunko@917: fi melunko@917: AC_CONFIG_COMMANDS_PRE( melunko@917: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then melunko@917: AC_MSG_ERROR([[conditional "$1" was never defined. melunko@917: Usually this means the macro was only invoked conditionally.]]) melunko@917: fi])]) melunko@917: melunko@917: melunko@917: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 8 melunko@917: melunko@917: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be melunko@917: # written in clear, in which case automake, when reading aclocal.m4, melunko@917: # will think it sees a *use*, and therefore will trigger all it's melunko@917: # C support machinery. Also note that it means that autoscan, seeing melunko@917: # CC etc. in the Makefile, will ask for an AC_PROG_CC use... melunko@917: melunko@917: melunko@917: # _AM_DEPENDENCIES(NAME) melunko@917: # ---------------------- melunko@917: # See how the compiler implements dependency checking. melunko@917: # NAME is "CC", "CXX", "GCJ", or "OBJC". melunko@917: # We try a few techniques and use that to set a single cache variable. melunko@917: # melunko@917: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was melunko@917: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular melunko@917: # dependency, and given that the user is not expected to run this macro, melunko@917: # just rely on AC_PROG_CC. melunko@917: AC_DEFUN([_AM_DEPENDENCIES], melunko@917: [AC_REQUIRE([AM_SET_DEPDIR])dnl melunko@917: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl melunko@917: AC_REQUIRE([AM_MAKE_INCLUDE])dnl melunko@917: AC_REQUIRE([AM_DEP_TRACK])dnl melunko@917: melunko@917: ifelse([$1], CC, [depcc="$CC" am_compiler_list=], melunko@917: [$1], CXX, [depcc="$CXX" am_compiler_list=], melunko@917: [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], melunko@917: [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], melunko@917: [depcc="$$1" am_compiler_list=]) melunko@917: melunko@917: AC_CACHE_CHECK([dependency style of $depcc], melunko@917: [am_cv_$1_dependencies_compiler_type], melunko@917: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then melunko@917: # We make a subdir and do the tests there. Otherwise we can end up melunko@917: # making bogus files that we don't know about and never remove. For melunko@917: # instance it was reported that on HP-UX the gcc test will end up melunko@917: # making a dummy file named `D' -- because `-MD' means `put the output melunko@917: # in D'. melunko@917: mkdir conftest.dir melunko@917: # Copy depcomp to subdir because otherwise we won't find it if we're melunko@917: # using a relative directory. melunko@917: cp "$am_depcomp" conftest.dir melunko@917: cd conftest.dir melunko@917: # We will build objects and dependencies in a subdirectory because melunko@917: # it helps to detect inapplicable dependency modes. For instance melunko@917: # both Tru64's cc and ICC support -MD to output dependencies as a melunko@917: # side effect of compilation, but ICC will put the dependencies in melunko@917: # the current directory while Tru64 will put them in the object melunko@917: # directory. melunko@917: mkdir sub melunko@917: melunko@917: am_cv_$1_dependencies_compiler_type=none melunko@917: if test "$am_compiler_list" = ""; then melunko@917: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` melunko@917: fi melunko@917: for depmode in $am_compiler_list; do melunko@917: # Setup a source with many dependencies, because some compilers melunko@917: # like to wrap large dependency lists on column 80 (with \), and melunko@917: # we should not choose a depcomp mode which is confused by this. melunko@917: # melunko@917: # We need to recreate these files for each test, as the compiler may melunko@917: # overwrite some of them when testing with obscure command lines. melunko@917: # This happens at least with the AIX C compiler. melunko@917: : > sub/conftest.c melunko@917: for i in 1 2 3 4 5 6; do melunko@917: echo '#include "conftst'$i'.h"' >> sub/conftest.c melunko@917: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with melunko@917: # Solaris 8's {/usr,}/bin/sh. melunko@917: touch sub/conftst$i.h melunko@917: done melunko@917: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf melunko@917: melunko@917: case $depmode in melunko@917: nosideeffect) melunko@917: # after this tag, mechanisms are not by side-effect, so they'll melunko@917: # only be used when explicitly requested melunko@917: if test "x$enable_dependency_tracking" = xyes; then melunko@917: continue melunko@917: else melunko@917: break melunko@917: fi melunko@917: ;; melunko@917: none) break ;; melunko@917: esac melunko@917: # We check with `-c' and `-o' for the sake of the "dashmstdout" melunko@917: # mode. It turns out that the SunPro C++ compiler does not properly melunko@917: # handle `-M -o', and we need to detect this. melunko@917: if depmode=$depmode \ melunko@917: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ melunko@917: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ melunko@917: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ melunko@917: >/dev/null 2>conftest.err && melunko@917: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && melunko@917: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && melunko@917: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then melunko@917: # icc doesn't choke on unknown options, it will just issue warnings melunko@917: # or remarks (even with -Werror). So we grep stderr for any message melunko@917: # that says an option was ignored or not supported. melunko@917: # When given -MP, icc 7.0 and 7.1 complain thusly: melunko@917: # icc: Command line warning: ignoring option '-M'; no argument required melunko@917: # The diagnosis changed in icc 8.0: melunko@917: # icc: Command line remark: option '-MP' not supported melunko@917: if (grep 'ignoring option' conftest.err || melunko@917: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else melunko@917: am_cv_$1_dependencies_compiler_type=$depmode melunko@917: break melunko@917: fi melunko@917: fi melunko@917: done melunko@917: melunko@917: cd .. melunko@917: rm -rf conftest.dir melunko@917: else melunko@917: am_cv_$1_dependencies_compiler_type=none melunko@917: fi melunko@917: ]) melunko@917: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) melunko@917: AM_CONDITIONAL([am__fastdep$1], [ melunko@917: test "x$enable_dependency_tracking" != xno \ melunko@917: && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) melunko@917: ]) melunko@917: melunko@917: melunko@917: # AM_SET_DEPDIR melunko@917: # ------------- melunko@917: # Choose a directory name for dependency files. melunko@917: # This macro is AC_REQUIREd in _AM_DEPENDENCIES melunko@917: AC_DEFUN([AM_SET_DEPDIR], melunko@917: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl melunko@917: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl melunko@917: ]) melunko@917: melunko@917: melunko@917: # AM_DEP_TRACK melunko@917: # ------------ melunko@917: AC_DEFUN([AM_DEP_TRACK], melunko@917: [AC_ARG_ENABLE(dependency-tracking, melunko@917: [ --disable-dependency-tracking speeds up one-time build melunko@917: --enable-dependency-tracking do not reject slow dependency extractors]) melunko@917: if test "x$enable_dependency_tracking" != xno; then melunko@917: am_depcomp="$ac_aux_dir/depcomp" melunko@917: AMDEPBACKSLASH='\' melunko@917: fi melunko@917: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) melunko@917: AC_SUBST([AMDEPBACKSLASH]) melunko@917: ]) melunko@917: melunko@917: # Generate code to set up dependency tracking. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: #serial 3 melunko@917: melunko@917: # _AM_OUTPUT_DEPENDENCY_COMMANDS melunko@917: # ------------------------------ melunko@917: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], melunko@917: [for mf in $CONFIG_FILES; do melunko@917: # Strip MF so we end up with the name of the file. melunko@917: mf=`echo "$mf" | sed -e 's/:.*$//'` melunko@917: # Check whether this is an Automake generated Makefile or not. melunko@917: # We used to match only the files named `Makefile.in', but melunko@917: # some people rename them; so instead we look at the file content. melunko@917: # Grep'ing the first line is not enough: some people post-process melunko@917: # each Makefile.in and add a new line on top of each file to say so. melunko@917: # So let's grep whole file. melunko@917: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then melunko@917: dirpart=`AS_DIRNAME("$mf")` melunko@917: else melunko@917: continue melunko@917: fi melunko@917: # Extract the definition of DEPDIR, am__include, and am__quote melunko@917: # from the Makefile without running `make'. melunko@917: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` melunko@917: test -z "$DEPDIR" && continue melunko@917: am__include=`sed -n 's/^am__include = //p' < "$mf"` melunko@917: test -z "am__include" && continue melunko@917: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` melunko@917: # When using ansi2knr, U may be empty or an underscore; expand it melunko@917: U=`sed -n 's/^U = //p' < "$mf"` melunko@917: # Find all dependency output files, they are included files with melunko@917: # $(DEPDIR) in their names. We invoke sed twice because it is the melunko@917: # simplest approach to changing $(DEPDIR) to its actual value in the melunko@917: # expansion. melunko@917: for file in `sed -n " melunko@917: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ melunko@917: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do melunko@917: # Make sure the directory exists. melunko@917: test -f "$dirpart/$file" && continue melunko@917: fdir=`AS_DIRNAME(["$file"])` melunko@917: AS_MKDIR_P([$dirpart/$fdir]) melunko@917: # echo "creating $dirpart/$file" melunko@917: echo '# dummy' > "$dirpart/$file" melunko@917: done melunko@917: done melunko@917: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS melunko@917: melunko@917: melunko@917: # AM_OUTPUT_DEPENDENCY_COMMANDS melunko@917: # ----------------------------- melunko@917: # This macro should only be invoked once -- use via AC_REQUIRE. melunko@917: # melunko@917: # This code is only required when automatic dependency tracking melunko@917: # is enabled. FIXME. This creates each `.P' file that we will melunko@917: # need in order to bootstrap the dependency handling code. melunko@917: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], melunko@917: [AC_CONFIG_COMMANDS([depfiles], melunko@917: [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], melunko@917: [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) melunko@917: ]) melunko@917: melunko@917: # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 8 melunko@917: melunko@917: # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. melunko@917: AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) melunko@917: melunko@917: # Do all the work for Automake. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 12 melunko@917: melunko@917: # This macro actually does too much. Some checks are only needed if melunko@917: # your package does certain things. But this isn't really a big deal. melunko@917: melunko@917: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) melunko@917: # AM_INIT_AUTOMAKE([OPTIONS]) melunko@917: # ----------------------------------------------- melunko@917: # The call with PACKAGE and VERSION arguments is the old style melunko@917: # call (pre autoconf-2.50), which is being phased out. PACKAGE melunko@917: # and VERSION should now be passed to AC_INIT and removed from melunko@917: # the call to AM_INIT_AUTOMAKE. melunko@917: # We support both call styles for the transition. After melunko@917: # the next Automake release, Autoconf can make the AC_INIT melunko@917: # arguments mandatory, and then we can depend on a new Autoconf melunko@917: # release and drop the old call support. melunko@917: AC_DEFUN([AM_INIT_AUTOMAKE], melunko@917: [AC_PREREQ([2.58])dnl melunko@917: dnl Autoconf wants to disallow AM_ names. We explicitly allow melunko@917: dnl the ones we care about. melunko@917: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl melunko@917: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl melunko@917: AC_REQUIRE([AC_PROG_INSTALL])dnl melunko@917: # test to see if srcdir already configured melunko@917: if test "`cd $srcdir && pwd`" != "`pwd`" && melunko@917: test -f $srcdir/config.status; then melunko@917: AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) melunko@917: fi melunko@917: melunko@917: # test whether we have cygpath melunko@917: if test -z "$CYGPATH_W"; then melunko@917: if (cygpath --version) >/dev/null 2>/dev/null; then melunko@917: CYGPATH_W='cygpath -w' melunko@917: else melunko@917: CYGPATH_W=echo melunko@917: fi melunko@917: fi melunko@917: AC_SUBST([CYGPATH_W]) melunko@917: melunko@917: # Define the identity of the package. melunko@917: dnl Distinguish between old-style and new-style calls. melunko@917: m4_ifval([$2], melunko@917: [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl melunko@917: AC_SUBST([PACKAGE], [$1])dnl melunko@917: AC_SUBST([VERSION], [$2])], melunko@917: [_AM_SET_OPTIONS([$1])dnl melunko@917: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl melunko@917: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl melunko@917: melunko@917: _AM_IF_OPTION([no-define],, melunko@917: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) melunko@917: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl melunko@917: melunko@917: # Some tools Automake needs. melunko@917: AC_REQUIRE([AM_SANITY_CHECK])dnl melunko@917: AC_REQUIRE([AC_ARG_PROGRAM])dnl melunko@917: AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) melunko@917: AM_MISSING_PROG(AUTOCONF, autoconf) melunko@917: AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) melunko@917: AM_MISSING_PROG(AUTOHEADER, autoheader) melunko@917: AM_MISSING_PROG(MAKEINFO, makeinfo) melunko@917: AM_PROG_INSTALL_SH melunko@917: AM_PROG_INSTALL_STRIP melunko@917: AC_REQUIRE([AM_PROG_MKDIR_P])dnl melunko@917: # We need awk for the "check" target. The system "awk" is bad on melunko@917: # some platforms. melunko@917: AC_REQUIRE([AC_PROG_AWK])dnl melunko@917: AC_REQUIRE([AC_PROG_MAKE_SET])dnl melunko@917: AC_REQUIRE([AM_SET_LEADING_DOT])dnl melunko@917: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], melunko@917: [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], melunko@917: [_AM_PROG_TAR([v7])])]) melunko@917: _AM_IF_OPTION([no-dependencies],, melunko@917: [AC_PROVIDE_IFELSE([AC_PROG_CC], melunko@917: [_AM_DEPENDENCIES(CC)], melunko@917: [define([AC_PROG_CC], melunko@917: defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl melunko@917: AC_PROVIDE_IFELSE([AC_PROG_CXX], melunko@917: [_AM_DEPENDENCIES(CXX)], melunko@917: [define([AC_PROG_CXX], melunko@917: defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl melunko@917: ]) melunko@917: ]) melunko@917: melunko@917: melunko@917: # When config.status generates a header, we must update the stamp-h file. melunko@917: # This file resides in the same directory as the config header melunko@917: # that is generated. The stamp files are numbered to have different names. melunko@917: melunko@917: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the melunko@917: # loop where config.status creates the headers, so we can generate melunko@917: # our stamp files there. melunko@917: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], melunko@917: [# Compute $1's index in $config_headers. melunko@917: _am_stamp_count=1 melunko@917: for _am_header in $config_headers :; do melunko@917: case $_am_header in melunko@917: $1 | $1:* ) melunko@917: break ;; melunko@917: * ) melunko@917: _am_stamp_count=`expr $_am_stamp_count + 1` ;; melunko@917: esac melunko@917: done melunko@917: echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) melunko@917: melunko@917: # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # AM_PROG_INSTALL_SH melunko@917: # ------------------ melunko@917: # Define $install_sh. melunko@917: AC_DEFUN([AM_PROG_INSTALL_SH], melunko@917: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl melunko@917: install_sh=${install_sh-"$am_aux_dir/install-sh"} melunko@917: AC_SUBST(install_sh)]) melunko@917: melunko@917: # Copyright (C) 2003, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 2 melunko@917: melunko@917: # Check whether the underlying file-system supports filenames melunko@917: # with a leading dot. For instance MS-DOS doesn't. melunko@917: AC_DEFUN([AM_SET_LEADING_DOT], melunko@917: [rm -rf .tst 2>/dev/null melunko@917: mkdir .tst 2>/dev/null melunko@917: if test -d .tst; then melunko@917: am__leading_dot=. melunko@917: else melunko@917: am__leading_dot=_ melunko@917: fi melunko@917: rmdir .tst 2>/dev/null melunko@917: AC_SUBST([am__leading_dot])]) melunko@917: melunko@917: # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- melunko@917: # From Jim Meyering melunko@917: melunko@917: # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 4 melunko@917: melunko@917: AC_DEFUN([AM_MAINTAINER_MODE], melunko@917: [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) melunko@917: dnl maintainer-mode is disabled by default melunko@917: AC_ARG_ENABLE(maintainer-mode, melunko@917: [ --enable-maintainer-mode enable make rules and dependencies not useful melunko@917: (and sometimes confusing) to the casual installer], melunko@917: USE_MAINTAINER_MODE=$enableval, melunko@917: USE_MAINTAINER_MODE=no) melunko@917: AC_MSG_RESULT([$USE_MAINTAINER_MODE]) melunko@917: AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) melunko@917: MAINT=$MAINTAINER_MODE_TRUE melunko@917: AC_SUBST(MAINT)dnl melunko@917: ] melunko@917: ) melunko@917: melunko@917: AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) melunko@917: melunko@917: # Check to see how 'make' treats includes. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 3 melunko@917: melunko@917: # AM_MAKE_INCLUDE() melunko@917: # ----------------- melunko@917: # Check to see how make treats includes. melunko@917: AC_DEFUN([AM_MAKE_INCLUDE], melunko@917: [am_make=${MAKE-make} melunko@917: cat > confinc << 'END' melunko@917: am__doit: melunko@917: @echo done melunko@917: .PHONY: am__doit melunko@917: END melunko@917: # If we don't find an include directive, just comment out the code. melunko@917: AC_MSG_CHECKING([for style of include used by $am_make]) melunko@917: am__include="#" melunko@917: am__quote= melunko@917: _am_result=none melunko@917: # First try GNU make style include. melunko@917: echo "include confinc" > confmf melunko@917: # We grep out `Entering directory' and `Leaving directory' melunko@917: # messages which can occur if `w' ends up in MAKEFLAGS. melunko@917: # In particular we don't look at `^make:' because GNU make might melunko@917: # be invoked under some other name (usually "gmake"), in which melunko@917: # case it prints its new name instead of `make'. melunko@917: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then melunko@917: am__include=include melunko@917: am__quote= melunko@917: _am_result=GNU melunko@917: fi melunko@917: # Now try BSD make style include. melunko@917: if test "$am__include" = "#"; then melunko@917: echo '.include "confinc"' > confmf melunko@917: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then melunko@917: am__include=.include melunko@917: am__quote="\"" melunko@917: _am_result=BSD melunko@917: fi melunko@917: fi melunko@917: AC_SUBST([am__include]) melunko@917: AC_SUBST([am__quote]) melunko@917: AC_MSG_RESULT([$_am_result]) melunko@917: rm -f confinc confmf melunko@917: ]) melunko@917: melunko@917: # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 4 melunko@917: melunko@917: # AM_MISSING_PROG(NAME, PROGRAM) melunko@917: # ------------------------------ melunko@917: AC_DEFUN([AM_MISSING_PROG], melunko@917: [AC_REQUIRE([AM_MISSING_HAS_RUN]) melunko@917: $1=${$1-"${am_missing_run}$2"} melunko@917: AC_SUBST($1)]) melunko@917: melunko@917: melunko@917: # AM_MISSING_HAS_RUN melunko@917: # ------------------ melunko@917: # Define MISSING if not defined so far and test if it supports --run. melunko@917: # If it does, set am_missing_run to use it, otherwise, to nothing. melunko@917: AC_DEFUN([AM_MISSING_HAS_RUN], melunko@917: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl melunko@917: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" melunko@917: # Use eval to expand $SHELL melunko@917: if eval "$MISSING --run true"; then melunko@917: am_missing_run="$MISSING --run " melunko@917: else melunko@917: am_missing_run= melunko@917: AC_MSG_WARN([`missing' script is too old or missing]) melunko@917: fi melunko@917: ]) melunko@917: melunko@917: # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # AM_PROG_MKDIR_P melunko@917: # --------------- melunko@917: # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. melunko@917: # melunko@917: # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories melunko@917: # created by `make install' are always world readable, even if the melunko@917: # installer happens to have an overly restrictive umask (e.g. 077). melunko@917: # This was a mistake. There are at least two reasons why we must not melunko@917: # use `-m 0755': melunko@917: # - it causes special bits like SGID to be ignored, melunko@917: # - it may be too restrictive (some setups expect 775 directories). melunko@917: # melunko@917: # Do not use -m 0755 and let people choose whatever they expect by melunko@917: # setting umask. melunko@917: # melunko@917: # We cannot accept any implementation of `mkdir' that recognizes `-p'. melunko@917: # Some implementations (such as Solaris 8's) are not thread-safe: if a melunko@917: # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' melunko@917: # concurrently, both version can detect that a/ is missing, but only melunko@917: # one can create it and the other will error out. Consequently we melunko@917: # restrict ourselves to GNU make (using the --version option ensures melunko@917: # this.) melunko@917: AC_DEFUN([AM_PROG_MKDIR_P], melunko@917: [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then melunko@917: # We used to keeping the `.' as first argument, in order to melunko@917: # allow $(mkdir_p) to be used without argument. As in melunko@917: # $(mkdir_p) $(somedir) melunko@917: # where $(somedir) is conditionally defined. However this is wrong melunko@917: # for two reasons: melunko@917: # 1. if the package is installed by a user who cannot write `.' melunko@917: # make install will fail, melunko@917: # 2. the above comment should most certainly read melunko@917: # $(mkdir_p) $(DESTDIR)$(somedir) melunko@917: # so it does not work when $(somedir) is undefined and melunko@917: # $(DESTDIR) is not. melunko@917: # To support the latter case, we have to write melunko@917: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), melunko@917: # so the `.' trick is pointless. melunko@917: mkdir_p='mkdir -p --' melunko@917: else melunko@917: # On NextStep and OpenStep, the `mkdir' command does not melunko@917: # recognize any option. It will interpret all options as melunko@917: # directories to create, and then abort because `.' already melunko@917: # exists. melunko@917: for d in ./-p ./--version; melunko@917: do melunko@917: test -d $d && rmdir $d melunko@917: done melunko@917: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. melunko@917: if test -f "$ac_aux_dir/mkinstalldirs"; then melunko@917: mkdir_p='$(mkinstalldirs)' melunko@917: else melunko@917: mkdir_p='$(install_sh) -d' melunko@917: fi melunko@917: fi melunko@917: AC_SUBST([mkdir_p])]) melunko@917: melunko@917: # Helper functions for option handling. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 3 melunko@917: melunko@917: # _AM_MANGLE_OPTION(NAME) melunko@917: # ----------------------- melunko@917: AC_DEFUN([_AM_MANGLE_OPTION], melunko@917: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) melunko@917: melunko@917: # _AM_SET_OPTION(NAME) melunko@917: # ------------------------------ melunko@917: # Set option NAME. Presently that only means defining a flag for this option. melunko@917: AC_DEFUN([_AM_SET_OPTION], melunko@917: [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) melunko@917: melunko@917: # _AM_SET_OPTIONS(OPTIONS) melunko@917: # ---------------------------------- melunko@917: # OPTIONS is a space-separated list of Automake options. melunko@917: AC_DEFUN([_AM_SET_OPTIONS], melunko@917: [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) melunko@917: melunko@917: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) melunko@917: # ------------------------------------------- melunko@917: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. melunko@917: AC_DEFUN([_AM_IF_OPTION], melunko@917: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) melunko@917: melunko@917: # Check to make sure that the build environment is sane. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 melunko@917: # Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 4 melunko@917: melunko@917: # AM_SANITY_CHECK melunko@917: # --------------- melunko@917: AC_DEFUN([AM_SANITY_CHECK], melunko@917: [AC_MSG_CHECKING([whether build environment is sane]) melunko@917: # Just in case melunko@917: sleep 1 melunko@917: echo timestamp > conftest.file melunko@917: # Do `set' in a subshell so we don't clobber the current shell's melunko@917: # arguments. Must try -L first in case configure is actually a melunko@917: # symlink; some systems play weird games with the mod time of symlinks melunko@917: # (eg FreeBSD returns the mod time of the symlink's containing melunko@917: # directory). melunko@917: if ( melunko@917: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` melunko@917: if test "$[*]" = "X"; then melunko@917: # -L didn't work. melunko@917: set X `ls -t $srcdir/configure conftest.file` melunko@917: fi melunko@917: rm -f conftest.file melunko@917: if test "$[*]" != "X $srcdir/configure conftest.file" \ melunko@917: && test "$[*]" != "X conftest.file $srcdir/configure"; then melunko@917: melunko@917: # If neither matched, then we have a broken ls. This can happen melunko@917: # if, for instance, CONFIG_SHELL is bash and it inherits a melunko@917: # broken ls alias from the environment. This has actually melunko@917: # happened. Such a system could not be considered "sane". melunko@917: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken melunko@917: alias in your environment]) melunko@917: fi melunko@917: melunko@917: test "$[2]" = conftest.file melunko@917: ) melunko@917: then melunko@917: # Ok. melunko@917: : melunko@917: else melunko@917: AC_MSG_ERROR([newly created file is older than distributed files! melunko@917: Check your system clock]) melunko@917: fi melunko@917: AC_MSG_RESULT(yes)]) melunko@917: melunko@917: # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # AM_PROG_INSTALL_STRIP melunko@917: # --------------------- melunko@917: # One issue with vendor `install' (even GNU) is that you can't melunko@917: # specify the program used to strip binaries. This is especially melunko@917: # annoying in cross-compiling environments, where the build's strip melunko@917: # is unlikely to handle the host's binaries. melunko@917: # Fortunately install-sh will honor a STRIPPROG variable, so we melunko@917: # always use install-sh in `make install-strip', and initialize melunko@917: # STRIPPROG with the value of the STRIP variable (set by the user). melunko@917: AC_DEFUN([AM_PROG_INSTALL_STRIP], melunko@917: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl melunko@917: # Installed binaries are usually stripped using `strip' when the user melunko@917: # run `make install-strip'. However `strip' might not be the right melunko@917: # tool to use in cross-compilation environments, therefore Automake melunko@917: # will honor the `STRIP' environment variable to overrule this program. melunko@917: dnl Don't test for $cross_compiling = yes, because it might be `maybe'. melunko@917: if test "$cross_compiling" != no; then melunko@917: AC_CHECK_TOOL([STRIP], [strip], :) melunko@917: fi melunko@917: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" melunko@917: AC_SUBST([INSTALL_STRIP_PROGRAM])]) melunko@917: melunko@917: # Check how to create a tarball. -*- Autoconf -*- melunko@917: melunko@917: # Copyright (C) 2004, 2005 Free Software Foundation, Inc. melunko@917: # melunko@917: # This file is free software; the Free Software Foundation melunko@917: # gives unlimited permission to copy and/or distribute it, melunko@917: # with or without modifications, as long as this notice is preserved. melunko@917: melunko@917: # serial 2 melunko@917: melunko@917: # _AM_PROG_TAR(FORMAT) melunko@917: # -------------------- melunko@917: # Check how to create a tarball in format FORMAT. melunko@917: # FORMAT should be one of `v7', `ustar', or `pax'. melunko@917: # melunko@917: # Substitute a variable $(am__tar) that is a command melunko@917: # writing to stdout a FORMAT-tarball containing the directory melunko@917: # $tardir. melunko@917: # tardir=directory && $(am__tar) > result.tar melunko@917: # melunko@917: # Substitute a variable $(am__untar) that extract such melunko@917: # a tarball read from stdin. melunko@917: # $(am__untar) < result.tar melunko@917: AC_DEFUN([_AM_PROG_TAR], melunko@917: [# Always define AMTAR for backward compatibility. melunko@917: AM_MISSING_PROG([AMTAR], [tar]) melunko@917: m4_if([$1], [v7], melunko@917: [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], melunko@917: [m4_case([$1], [ustar],, [pax],, melunko@917: [m4_fatal([Unknown tar format])]) melunko@917: AC_MSG_CHECKING([how to create a $1 tar archive]) melunko@917: # Loop over all known methods to create a tar archive until one works. melunko@917: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' melunko@917: _am_tools=${am_cv_prog_tar_$1-$_am_tools} melunko@917: # Do not fold the above two line into one, because Tru64 sh and melunko@917: # Solaris sh will not grok spaces in the rhs of `-'. melunko@917: for _am_tool in $_am_tools melunko@917: do melunko@917: case $_am_tool in melunko@917: gnutar) melunko@917: for _am_tar in tar gnutar gtar; melunko@917: do melunko@917: AM_RUN_LOG([$_am_tar --version]) && break melunko@917: done melunko@917: am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' melunko@917: am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' melunko@917: am__untar="$_am_tar -xf -" melunko@917: ;; melunko@917: plaintar) melunko@917: # Must skip GNU tar: if it does not support --format= it doesn't create melunko@917: # ustar tarball either. melunko@917: (tar --version) >/dev/null 2>&1 && continue melunko@917: am__tar='tar chf - "$$tardir"' melunko@917: am__tar_='tar chf - "$tardir"' melunko@917: am__untar='tar xf -' melunko@917: ;; melunko@917: pax) melunko@917: am__tar='pax -L -x $1 -w "$$tardir"' melunko@917: am__tar_='pax -L -x $1 -w "$tardir"' melunko@917: am__untar='pax -r' melunko@917: ;; melunko@917: cpio) melunko@917: am__tar='find "$$tardir" -print | cpio -o -H $1 -L' melunko@917: am__tar_='find "$tardir" -print | cpio -o -H $1 -L' melunko@917: am__untar='cpio -i -H $1 -d' melunko@917: ;; melunko@917: none) melunko@917: am__tar=false melunko@917: am__tar_=false melunko@917: am__untar=false melunko@917: ;; melunko@917: esac melunko@917: melunko@917: # If the value was cached, stop now. We just wanted to have am__tar melunko@917: # and am__untar set. melunko@917: test -n "${am_cv_prog_tar_$1}" && break melunko@917: melunko@917: # tar/untar a dummy directory, and stop if the command works melunko@917: rm -rf conftest.dir melunko@917: mkdir conftest.dir melunko@917: echo GrepMe > conftest.dir/file melunko@917: AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) melunko@917: rm -rf conftest.dir melunko@917: if test -s conftest.tar; then melunko@917: AM_RUN_LOG([$am__untar /dev/null 2>&1 && break melunko@917: fi melunko@917: done melunko@917: rm -rf conftest.dir melunko@917: melunko@917: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) melunko@917: AC_MSG_RESULT([$am_cv_prog_tar_$1])]) melunko@917: AC_SUBST([am__tar]) melunko@917: AC_SUBST([am__untar]) melunko@917: ]) # _AM_PROG_TAR melunko@917: melunko@917: m4_include([m4/as-compiler-flag.m4]) melunko@917: m4_include([m4/as-version.m4]) melunko@917: m4_include([m4/libtool.m4]) melunko@917: m4_include([m4/pkg.m4])