aclocal.m4 revision 282408
14746Srica# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 24746Srica 34746Srica# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 44746Srica# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 54746Srica# This file is free software; the Free Software Foundation 64746Srica# gives unlimited permission to copy and/or distribute it, 74746Srica# with or without modifications, as long as this notice is preserved. 84746Srica 94746Srica# This program is distributed in the hope that it will be useful, 104746Srica# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 114746Srica# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 124746Srica# PARTICULAR PURPOSE. 134746Srica 144746Sricam4_ifndef([AC_AUTOCONF_VERSION], 154746Srica [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 164746Sricam4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 174746Srica[m4_warning([this file was generated for autoconf 2.68. 184746SricaYou have another version of autoconf. It may work, but is not guaranteed to. 194746SricaIf you have problems, you may need to regenerate the build system entirely. 204746SricaTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 214746Srica 224746Srica# serial 9 -*- Autoconf -*- 234746Srica# Enable extensions on systems that normally disable them. 244746Srica 254746Srica# Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc. 264746Srica# This file is free software; the Free Software Foundation 274746Srica# gives unlimited permission to copy and/or distribute it, 284746Srica# with or without modifications, as long as this notice is preserved. 294746Srica 304746Srica# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS 314746Srica# Autoconf. Perhaps we can remove this once we can assume Autoconf 324746Srica# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly 334746Srica# enough in this area it's likely we'll need to redefine 344746Srica# AC_USE_SYSTEM_EXTENSIONS for quite some time. 354746Srica 364746Srica# If autoconf reports a warning 374746Srica# warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 384746Srica# or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 394746Srica# the fix is 404746Srica# 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked 414746Srica# but always AC_REQUIREd, 424746Srica# 2) to ensure that for each occurrence of 434746Srica# AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 444746Srica# or 454746Srica# AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 464746Srica# the corresponding gnulib module description has 'extensions' among 474746Srica# its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS 484746Srica# invocation occurs in gl_EARLY, not in gl_INIT. 494746Srica 504746Srica# AC_USE_SYSTEM_EXTENSIONS 514746Srica# ------------------------ 524746Srica# Enable extensions on systems that normally disable them, 534746Srica# typically due to standards-conformance issues. 544746Srica# Remember that #undef in AH_VERBATIM gets replaced with #define by 554746Srica# AC_DEFINE. The goal here is to define all known feature-enabling 564746Srica# macros, then, if reports of conflicts are made, disable macros that 574746Srica# cause problems on some platforms (such as __EXTENSIONS__). 584746SricaAC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], 594746Srica[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl 604746SricaAC_BEFORE([$0], [AC_RUN_IFELSE])dnl 614746Srica 624746Srica AC_REQUIRE([AC_CANONICAL_HOST]) 634746Srica 644746Srica AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) 654746Srica if test "$MINIX" = yes; then 664746Srica AC_DEFINE([_POSIX_SOURCE], [1], 674746Srica [Define to 1 if you need to in order for `stat' and other 684746Srica things to work.]) 694746Srica AC_DEFINE([_POSIX_1_SOURCE], [2], 704746Srica [Define to 2 if the system does not provide POSIX.1 features 714746Srica except with this defined.]) 724746Srica AC_DEFINE([_MINIX], [1], 734746Srica [Define to 1 if on MINIX.]) 744746Srica fi 754746Srica 764746Srica dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500, 774746Srica dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already 784746Srica dnl provided. 794746Srica case "$host_os" in 804746Srica hpux*) 814746Srica AC_DEFINE([_XOPEN_SOURCE], [500], 824746Srica [Define to 500 only on HP-UX.]) 834746Srica ;; 844746Srica esac 854746Srica 864746Srica AH_VERBATIM([__EXTENSIONS__], 874746Srica[/* Enable extensions on AIX 3, Interix. */ 884746Srica#ifndef _ALL_SOURCE 894746Srica# undef _ALL_SOURCE 904746Srica#endif 914746Srica/* Enable GNU extensions on systems that have them. */ 924746Srica#ifndef _GNU_SOURCE 934746Srica# undef _GNU_SOURCE 944746Srica#endif 954746Srica/* Enable threading extensions on Solaris. */ 964746Srica#ifndef _POSIX_PTHREAD_SEMANTICS 974746Srica# undef _POSIX_PTHREAD_SEMANTICS 984746Srica#endif 994746Srica/* Enable extensions on HP NonStop. */ 1004746Srica#ifndef _TANDEM_SOURCE 1014746Srica# undef _TANDEM_SOURCE 1024746Srica#endif 1034746Srica/* Enable general extensions on Solaris. */ 1044746Srica#ifndef __EXTENSIONS__ 1054746Srica# undef __EXTENSIONS__ 1064746Srica#endif 1074746Srica]) 1084746Srica AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], 1094746Srica [ac_cv_safe_to_define___extensions__], 1104746Srica [AC_COMPILE_IFELSE( 1114746Srica [AC_LANG_PROGRAM([[ 1124746Srica# define __EXTENSIONS__ 1 1134746Srica ]AC_INCLUDES_DEFAULT])], 1144746Srica [ac_cv_safe_to_define___extensions__=yes], 1154746Srica [ac_cv_safe_to_define___extensions__=no])]) 1164746Srica test $ac_cv_safe_to_define___extensions__ = yes && 1174746Srica AC_DEFINE([__EXTENSIONS__]) 1184746Srica AC_DEFINE([_ALL_SOURCE]) 1194746Srica AC_DEFINE([_GNU_SOURCE]) 1204746Srica AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) 1214746Srica AC_DEFINE([_TANDEM_SOURCE]) 1224746Srica])# AC_USE_SYSTEM_EXTENSIONS 1234746Srica 1244746Srica# gl_USE_SYSTEM_EXTENSIONS 1254746Srica# ------------------------ 1264746Srica# Enable extensions on systems that normally disable them, 1274746Srica# typically due to standards-conformance issues. 1284746SricaAC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], 1294746Srica[ 1304746Srica dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. 1314746Srica dnl gnulib does not need it. But if it gets required by third-party macros 1324746Srica dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a 1334746Srica dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". 1344746Srica dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, 1354746Srica dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. 1364746Srica AC_REQUIRE([AC_GNU_SOURCE]) 1374746Srica 1384746Srica AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 1394746Srica]) 1404746Srica 1414746Srica# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1424746Srica# 1434746Srica# This file is free software; the Free Software Foundation 1444746Srica# gives unlimited permission to copy and/or distribute it, 1454746Srica# with or without modifications, as long as this notice is preserved. 1464746Srica 1474746Srica# AM_AUTOMAKE_VERSION(VERSION) 1484746Srica# ---------------------------- 1494746Srica# Automake X.Y traces this macro to ensure aclocal.m4 has been 1504746Srica# generated from the m4 files accompanying Automake X.Y. 1514746Srica# (This private macro should not be called outside this file.) 1524746SricaAC_DEFUN([AM_AUTOMAKE_VERSION], 1534746Srica[am__api_version='1.11' 1544746Sricadnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 1554746Sricadnl require some minimum version. Point them to the right macro. 1564746Sricam4_if([$1], [1.11.1], [], 1574746Srica [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 1584746Srica]) 1594746Srica 1604746Srica# _AM_AUTOCONF_VERSION(VERSION) 1614746Srica# ----------------------------- 1624746Srica# aclocal traces this macro to find the Autoconf version. 1634746Srica# This is a private macro too. Using m4_define simplifies 1644746Srica# the logic in aclocal, which can simply ignore this definition. 1654746Sricam4_define([_AM_AUTOCONF_VERSION], []) 1664746Srica 1674746Srica# AM_SET_CURRENT_AUTOMAKE_VERSION 1684746Srica# ------------------------------- 1694746Srica# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 1704746Srica# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 1714746SricaAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 1724746Srica[AM_AUTOMAKE_VERSION([1.11.1])dnl 1734746Sricam4_ifndef([AC_AUTOCONF_VERSION], 1744746Srica [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 1754746Srica_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 1764746Srica 1774746Srica# AM_AUX_DIR_EXPAND -*- Autoconf -*- 1784746Srica 1794746Srica# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 1804746Srica# 1814746Srica# This file is free software; the Free Software Foundation 1824746Srica# gives unlimited permission to copy and/or distribute it, 1834746Srica# with or without modifications, as long as this notice is preserved. 1844746Srica 1854746Srica# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 1864746Srica# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 1874746Srica# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 1884746Srica# 1894746Srica# Of course, Automake must honor this variable whenever it calls a 1904746Srica# tool from the auxiliary directory. The problem is that $srcdir (and 1914746Srica# therefore $ac_aux_dir as well) can be either absolute or relative, 1924746Srica# depending on how configure is run. This is pretty annoying, since 1934746Srica# it makes $ac_aux_dir quite unusable in subdirectories: in the top 1944746Srica# source directory, any form will work fine, but in subdirectories a 1954746Srica# relative path needs to be adjusted first. 1964746Srica# 1974746Srica# $ac_aux_dir/missing 1984746Srica# fails when called from a subdirectory if $ac_aux_dir is relative 1994746Srica# $top_srcdir/$ac_aux_dir/missing 2004746Srica# fails if $ac_aux_dir is absolute, 2014746Srica# fails when called from a subdirectory in a VPATH build with 2024746Srica# a relative $ac_aux_dir 2034746Srica# 2044746Srica# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 2054746Srica# are both prefixed by $srcdir. In an in-source build this is usually 2064746Srica# harmless because $srcdir is `.', but things will broke when you 2074746Srica# start a VPATH build or use an absolute $srcdir. 2084746Srica# 2094746Srica# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 2104746Srica# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 2114746Srica# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 2124746Srica# and then we would define $MISSING as 2134746Srica# MISSING="\${SHELL} $am_aux_dir/missing" 2144746Srica# This will work as long as MISSING is not called from configure, because 2154746Srica# unfortunately $(top_srcdir) has no meaning in configure. 2164746Srica# However there are other variables, like CC, which are often used in 2174746Srica# configure, and could therefore not use this "fixed" $ac_aux_dir. 2184746Srica# 2194746Srica# Another solution, used here, is to always expand $ac_aux_dir to an 2204746Srica# absolute PATH. The drawback is that using absolute paths prevent a 2214746Srica# configured tree to be moved without reconfiguration. 2224746Srica 2234746SricaAC_DEFUN([AM_AUX_DIR_EXPAND], 2244746Srica[dnl Rely on autoconf to set up CDPATH properly. 2254746SricaAC_PREREQ([2.50])dnl 2264746Srica# expand $ac_aux_dir to an absolute path 2274746Sricaam_aux_dir=`cd $ac_aux_dir && pwd` 2284746Srica]) 2294746Srica 2304746Srica# AM_CONDITIONAL -*- Autoconf -*- 2314746Srica 2324746Srica# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 2334746Srica# Free Software Foundation, Inc. 2344746Srica# 2354746Srica# This file is free software; the Free Software Foundation 2364746Srica# gives unlimited permission to copy and/or distribute it, 2374746Srica# with or without modifications, as long as this notice is preserved. 2384746Srica 2394746Srica# serial 9 2404746Srica 2414746Srica# AM_CONDITIONAL(NAME, SHELL-CONDITION) 2424746Srica# ------------------------------------- 2434746Srica# Define a conditional. 2444746SricaAC_DEFUN([AM_CONDITIONAL], 2454746Srica[AC_PREREQ(2.52)dnl 2464746Srica ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 2474746Srica [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 2484746SricaAC_SUBST([$1_TRUE])dnl 2494746SricaAC_SUBST([$1_FALSE])dnl 2504746Srica_AM_SUBST_NOTMAKE([$1_TRUE])dnl 2514746Srica_AM_SUBST_NOTMAKE([$1_FALSE])dnl 2524746Sricam4_define([_AM_COND_VALUE_$1], [$2])dnl 2534746Sricaif $2; then 2544746Srica $1_TRUE= 2554746Srica $1_FALSE='#' 2564746Sricaelse 2574746Srica $1_TRUE='#' 2584746Srica $1_FALSE= 2594746Sricafi 2604746SricaAC_CONFIG_COMMANDS_PRE( 2614746Srica[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 2624746Srica AC_MSG_ERROR([[conditional "$1" was never defined. 2634746SricaUsually this means the macro was only invoked conditionally.]]) 2644746Sricafi])]) 2654746Srica 2664746Srica# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 2674746Srica# Free Software Foundation, Inc. 2684746Srica# 2694746Srica# This file is free software; the Free Software Foundation 2704746Srica# gives unlimited permission to copy and/or distribute it, 2714746Srica# with or without modifications, as long as this notice is preserved. 2724746Srica 2734746Srica# serial 10 2744746Srica 2754746Srica# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 2764746Srica# written in clear, in which case automake, when reading aclocal.m4, 2774746Srica# will think it sees a *use*, and therefore will trigger all it's 2784746Srica# C support machinery. Also note that it means that autoscan, seeing 2794746Srica# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 2804746Srica 2814746Srica 2824746Srica# _AM_DEPENDENCIES(NAME) 2834746Srica# ---------------------- 2844746Srica# See how the compiler implements dependency checking. 2854746Srica# NAME is "CC", "CXX", "GCJ", or "OBJC". 2864746Srica# We try a few techniques and use that to set a single cache variable. 2874746Srica# 2884746Srica# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 2894746Srica# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 2904746Srica# dependency, and given that the user is not expected to run this macro, 2914746Srica# just rely on AC_PROG_CC. 2924746SricaAC_DEFUN([_AM_DEPENDENCIES], 2934746Srica[AC_REQUIRE([AM_SET_DEPDIR])dnl 2944746SricaAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 2954746SricaAC_REQUIRE([AM_MAKE_INCLUDE])dnl 2964746SricaAC_REQUIRE([AM_DEP_TRACK])dnl 2974746Srica 2984746Sricaifelse([$1], CC, [depcc="$CC" am_compiler_list=], 2994746Srica [$1], CXX, [depcc="$CXX" am_compiler_list=], 3004746Srica [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 3014746Srica [$1], UPC, [depcc="$UPC" am_compiler_list=], 3024746Srica [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 3034746Srica [depcc="$$1" am_compiler_list=]) 3044746Srica 3054746SricaAC_CACHE_CHECK([dependency style of $depcc], 3064746Srica [am_cv_$1_dependencies_compiler_type], 3074746Srica[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3084746Srica # We make a subdir and do the tests there. Otherwise we can end up 3094746Srica # making bogus files that we don't know about and never remove. For 3104746Srica # instance it was reported that on HP-UX the gcc test will end up 3114746Srica # making a dummy file named `D' -- because `-MD' means `put the output 3124746Srica # in D'. 3134746Srica mkdir conftest.dir 3144746Srica # Copy depcomp to subdir because otherwise we won't find it if we're 3154746Srica # using a relative directory. 3164746Srica cp "$am_depcomp" conftest.dir 3174746Srica cd conftest.dir 3184746Srica # We will build objects and dependencies in a subdirectory because 3194746Srica # it helps to detect inapplicable dependency modes. For instance 3204746Srica # both Tru64's cc and ICC support -MD to output dependencies as a 3214746Srica # side effect of compilation, but ICC will put the dependencies in 3224746Srica # the current directory while Tru64 will put them in the object 3234746Srica # directory. 3244746Srica mkdir sub 3254746Srica 3264746Srica am_cv_$1_dependencies_compiler_type=none 3274746Srica if test "$am_compiler_list" = ""; then 3284746Srica am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 3294746Srica fi 3304746Srica am__universal=false 3314746Srica m4_case([$1], [CC], 3324746Srica [case " $depcc " in #( 3334746Srica *\ -arch\ *\ -arch\ *) am__universal=true ;; 3344746Srica esac], 3354746Srica [CXX], 3364746Srica [case " $depcc " in #( 3374746Srica *\ -arch\ *\ -arch\ *) am__universal=true ;; 3384746Srica esac]) 3394746Srica 3404746Srica for depmode in $am_compiler_list; do 3414746Srica # Setup a source with many dependencies, because some compilers 3424746Srica # like to wrap large dependency lists on column 80 (with \), and 3434746Srica # we should not choose a depcomp mode which is confused by this. 3444746Srica # 3454746Srica # We need to recreate these files for each test, as the compiler may 3464746Srica # overwrite some of them when testing with obscure command lines. 3474746Srica # This happens at least with the AIX C compiler. 3484746Srica : > sub/conftest.c 3494746Srica for i in 1 2 3 4 5 6; do 3504746Srica echo '#include "conftst'$i'.h"' >> sub/conftest.c 3514746Srica # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3524746Srica # Solaris 8's {/usr,}/bin/sh. 3534746Srica touch sub/conftst$i.h 3544746Srica done 3554746Srica echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3564746Srica 3574746Srica # We check with `-c' and `-o' for the sake of the "dashmstdout" 3584746Srica # mode. It turns out that the SunPro C++ compiler does not properly 3594746Srica # handle `-M -o', and we need to detect this. Also, some Intel 3604746Srica # versions had trouble with output in subdirs 3614746Srica am__obj=sub/conftest.${OBJEXT-o} 3624746Srica am__minus_obj="-o $am__obj" 3634746Srica case $depmode in 3644746Srica gcc) 3654746Srica # This depmode causes a compiler race in universal mode. 3664746Srica test "$am__universal" = false || continue 3674746Srica ;; 3684746Srica nosideeffect) 3694746Srica # after this tag, mechanisms are not by side-effect, so they'll 3704746Srica # only be used when explicitly requested 3714746Srica if test "x$enable_dependency_tracking" = xyes; then 3724746Srica continue 3734746Srica else 3744746Srica break 3754746Srica fi 3764746Srica ;; 3774746Srica msvisualcpp | msvcmsys) 3784746Srica # This compiler won't grok `-c -o', but also, the minuso test has 3794746Srica # not run yet. These depmodes are late enough in the game, and 3804746Srica # so weak that their functioning should not be impacted. 3814746Srica am__obj=conftest.${OBJEXT-o} 3824746Srica am__minus_obj= 3834746Srica ;; 3844746Srica none) break ;; 3854746Srica esac 3864746Srica if depmode=$depmode \ 3874746Srica source=sub/conftest.c object=$am__obj \ 3884746Srica depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3894746Srica $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3904746Srica >/dev/null 2>conftest.err && 3914746Srica grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3924746Srica grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3934746Srica grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3944746Srica ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3954746Srica # icc doesn't choke on unknown options, it will just issue warnings 3964746Srica # or remarks (even with -Werror). So we grep stderr for any message 3974746Srica # that says an option was ignored or not supported. 3984746Srica # When given -MP, icc 7.0 and 7.1 complain thusly: 3994746Srica # icc: Command line warning: ignoring option '-M'; no argument required 4004746Srica # The diagnosis changed in icc 8.0: 4014746Srica # icc: Command line remark: option '-MP' not supported 4024746Srica if (grep 'ignoring option' conftest.err || 4034746Srica grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4044746Srica am_cv_$1_dependencies_compiler_type=$depmode 4054746Srica break 4064746Srica fi 4074746Srica fi 4084746Srica done 4094746Srica 4104746Srica cd .. 4114746Srica rm -rf conftest.dir 4124746Sricaelse 4134746Srica am_cv_$1_dependencies_compiler_type=none 4144746Sricafi 4154746Srica]) 4164746SricaAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 4174746SricaAM_CONDITIONAL([am__fastdep$1], [ 4184746Srica test "x$enable_dependency_tracking" != xno \ 4194746Srica && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 4204746Srica]) 4214746Srica 4224746Srica 4234746Srica# AM_SET_DEPDIR 4244746Srica# ------------- 4254746Srica# Choose a directory name for dependency files. 4264746Srica# This macro is AC_REQUIREd in _AM_DEPENDENCIES 4274746SricaAC_DEFUN([AM_SET_DEPDIR], 4284746Srica[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 4294746SricaAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 4304746Srica]) 4314746Srica 4324746Srica 4334746Srica# AM_DEP_TRACK 4344746Srica# ------------ 4354746SricaAC_DEFUN([AM_DEP_TRACK], 4364746Srica[AC_ARG_ENABLE(dependency-tracking, 4374746Srica[ --disable-dependency-tracking speeds up one-time build 4384746Srica --enable-dependency-tracking do not reject slow dependency extractors]) 4394746Sricaif test "x$enable_dependency_tracking" != xno; then 4404746Srica am_depcomp="$ac_aux_dir/depcomp" 4414746Srica AMDEPBACKSLASH='\' 4424746Sricafi 4434746SricaAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 4444746SricaAC_SUBST([AMDEPBACKSLASH])dnl 4454746Srica_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 4464746Srica]) 4474746Srica 4484746Srica# Generate code to set up dependency tracking. -*- Autoconf -*- 4494746Srica 4504746Srica# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 4514746Srica# Free Software Foundation, Inc. 4524746Srica# 4534746Srica# This file is free software; the Free Software Foundation 4544746Srica# gives unlimited permission to copy and/or distribute it, 4554746Srica# with or without modifications, as long as this notice is preserved. 4564746Srica 4574746Srica#serial 5 4584746Srica 4594746Srica# _AM_OUTPUT_DEPENDENCY_COMMANDS 4604746Srica# ------------------------------ 4614746SricaAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 4624746Srica[{ 4634746Srica # Autoconf 2.62 quotes --file arguments for eval, but not when files 4644746Srica # are listed without --file. Let's play safe and only enable the eval 4654746Srica # if we detect the quoting. 4664746Srica case $CONFIG_FILES in 4674746Srica *\'*) eval set x "$CONFIG_FILES" ;; 4684746Srica *) set x $CONFIG_FILES ;; 4694746Srica esac 4704746Srica shift 4714746Srica for mf 4724746Srica do 4734746Srica # Strip MF so we end up with the name of the file. 4744746Srica mf=`echo "$mf" | sed -e 's/:.*$//'` 4754746Srica # Check whether this is an Automake generated Makefile or not. 4764746Srica # We used to match only the files named `Makefile.in', but 4774746Srica # some people rename them; so instead we look at the file content. 4784746Srica # Grep'ing the first line is not enough: some people post-process 4794746Srica # each Makefile.in and add a new line on top of each file to say so. 4804746Srica # Grep'ing the whole file is not good either: AIX grep has a line 4814746Srica # limit of 2048, but all sed's we know have understand at least 4000. 4824746Srica if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 4834746Srica dirpart=`AS_DIRNAME("$mf")` 4844746Srica else 4854746Srica continue 4864746Srica fi 4874746Srica # Extract the definition of DEPDIR, am__include, and am__quote 4884746Srica # from the Makefile without running `make'. 4894746Srica DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 4904746Srica test -z "$DEPDIR" && continue 4914746Srica am__include=`sed -n 's/^am__include = //p' < "$mf"` 4924746Srica test -z "am__include" && continue 4934746Srica am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 4944746Srica # When using ansi2knr, U may be empty or an underscore; expand it 4954746Srica U=`sed -n 's/^U = //p' < "$mf"` 4964746Srica # Find all dependency output files, they are included files with 4974746Srica # $(DEPDIR) in their names. We invoke sed twice because it is the 4984746Srica # simplest approach to changing $(DEPDIR) to its actual value in the 4994746Srica # expansion. 5004746Srica for file in `sed -n " 5014746Srica s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 5024746Srica sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 5034746Srica # Make sure the directory exists. 5044746Srica test -f "$dirpart/$file" && continue 5054746Srica fdir=`AS_DIRNAME(["$file"])` 5064746Srica AS_MKDIR_P([$dirpart/$fdir]) 5074746Srica # echo "creating $dirpart/$file" 5084746Srica echo '# dummy' > "$dirpart/$file" 5094746Srica done 5104746Srica done 5114746Srica} 5124746Srica])# _AM_OUTPUT_DEPENDENCY_COMMANDS 5134746Srica 5144746Srica 5154746Srica# AM_OUTPUT_DEPENDENCY_COMMANDS 5164746Srica# ----------------------------- 5174746Srica# This macro should only be invoked once -- use via AC_REQUIRE. 5184746Srica# 5194746Srica# This code is only required when automatic dependency tracking 5204746Srica# is enabled. FIXME. This creates each `.P' file that we will 5214746Srica# need in order to bootstrap the dependency handling code. 5224746SricaAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 5234746Srica[AC_CONFIG_COMMANDS([depfiles], 5244746Srica [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 5254746Srica [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 5264746Srica]) 5274746Srica 5284746Srica# Do all the work for Automake. -*- Autoconf -*- 5294746Srica 5304746Srica# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 5314746Srica# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 5324746Srica# 5334746Srica# This file is free software; the Free Software Foundation 5344746Srica# gives unlimited permission to copy and/or distribute it, 5354746Srica# with or without modifications, as long as this notice is preserved. 5364746Srica 5374746Srica# serial 16 5384746Srica 5394746Srica# This macro actually does too much. Some checks are only needed if 5404746Srica# your package does certain things. But this isn't really a big deal. 5414746Srica 5424746Srica# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 5434746Srica# AM_INIT_AUTOMAKE([OPTIONS]) 5444746Srica# ----------------------------------------------- 5454746Srica# The call with PACKAGE and VERSION arguments is the old style 5464746Srica# call (pre autoconf-2.50), which is being phased out. PACKAGE 5474746Srica# and VERSION should now be passed to AC_INIT and removed from 5484746Srica# the call to AM_INIT_AUTOMAKE. 5494746Srica# We support both call styles for the transition. After 5504746Srica# the next Automake release, Autoconf can make the AC_INIT 5514746Srica# arguments mandatory, and then we can depend on a new Autoconf 5524746Srica# release and drop the old call support. 5534746SricaAC_DEFUN([AM_INIT_AUTOMAKE], 5544746Srica[AC_PREREQ([2.62])dnl 5554746Sricadnl Autoconf wants to disallow AM_ names. We explicitly allow 5564746Sricadnl the ones we care about. 5574746Sricam4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 5584746SricaAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 5594746SricaAC_REQUIRE([AC_PROG_INSTALL])dnl 5604746Sricaif test "`cd $srcdir && pwd`" != "`pwd`"; then 5614746Srica # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5624746Srica # is not polluted with repeated "-I." 5634746Srica AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 5644746Srica # test to see if srcdir already configured 5654746Srica if test -f $srcdir/config.status; then 5664746Srica AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 5674746Srica fi 5684746Sricafi 5694746Srica 5704746Srica# test whether we have cygpath 5714746Sricaif test -z "$CYGPATH_W"; then 5724746Srica if (cygpath --version) >/dev/null 2>/dev/null; then 5734746Srica CYGPATH_W='cygpath -w' 5744746Srica else 5754746Srica CYGPATH_W=echo 5764746Srica fi 5774746Sricafi 5784746SricaAC_SUBST([CYGPATH_W]) 5794746Srica 5804746Srica# Define the identity of the package. 5814746Sricadnl Distinguish between old-style and new-style calls. 5824746Sricam4_ifval([$2], 5834746Srica[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 5844746Srica AC_SUBST([PACKAGE], [$1])dnl 5854746Srica AC_SUBST([VERSION], [$2])], 5864746Srica[_AM_SET_OPTIONS([$1])dnl 5874746Sricadnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 5884746Sricam4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 5894746Srica [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 5904746Srica AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 5914746Srica AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 5924746Srica 5934746Srica_AM_IF_OPTION([no-define],, 5944746Srica[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 5954746Srica AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 5964746Srica 5974746Srica# Some tools Automake needs. 5984746SricaAC_REQUIRE([AM_SANITY_CHECK])dnl 5994746SricaAC_REQUIRE([AC_ARG_PROGRAM])dnl 6004746SricaAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 6014746SricaAM_MISSING_PROG(AUTOCONF, autoconf) 6024746SricaAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 6034746SricaAM_MISSING_PROG(AUTOHEADER, autoheader) 6044746SricaAM_MISSING_PROG(MAKEINFO, makeinfo) 6054746SricaAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 6064746SricaAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 6074746SricaAC_REQUIRE([AM_PROG_MKDIR_P])dnl 6084746Srica# We need awk for the "check" target. The system "awk" is bad on 6094746Srica# some platforms. 6104746SricaAC_REQUIRE([AC_PROG_AWK])dnl 6114746SricaAC_REQUIRE([AC_PROG_MAKE_SET])dnl 6124746SricaAC_REQUIRE([AM_SET_LEADING_DOT])dnl 6134746Srica_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 6144746Srica [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 6154746Srica [_AM_PROG_TAR([v7])])]) 6164746Srica_AM_IF_OPTION([no-dependencies],, 6174746Srica[AC_PROVIDE_IFELSE([AC_PROG_CC], 6184746Srica [_AM_DEPENDENCIES(CC)], 6194746Srica [define([AC_PROG_CC], 6204746Srica defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 6214746SricaAC_PROVIDE_IFELSE([AC_PROG_CXX], 6224746Srica [_AM_DEPENDENCIES(CXX)], 6234746Srica [define([AC_PROG_CXX], 6244746Srica defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 6254746SricaAC_PROVIDE_IFELSE([AC_PROG_OBJC], 6264746Srica [_AM_DEPENDENCIES(OBJC)], 6274746Srica [define([AC_PROG_OBJC], 6284746Srica defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 6294746Srica]) 6304746Srica_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 6314746Sricadnl The `parallel-tests' driver may need to know about EXEEXT, so add the 6324746Sricadnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 6334746Sricadnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 6344746SricaAC_CONFIG_COMMANDS_PRE(dnl 6354746Srica[m4_provide_if([_AM_COMPILER_EXEEXT], 6364746Srica [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 6374746Srica]) 6384746Srica 6394746Sricadnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 6404746Sricadnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 6414746Sricadnl mangled by Autoconf and run in a shell conditional statement. 6424746Sricam4_define([_AC_COMPILER_EXEEXT], 6434746Sricam4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 6444746Srica 6454746Srica 6464746Srica# When config.status generates a header, we must update the stamp-h file. 6474746Srica# This file resides in the same directory as the config header 6484746Srica# that is generated. The stamp files are numbered to have different names. 6494746Srica 6504746Srica# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 6514746Srica# loop where config.status creates the headers, so we can generate 6524746Srica# our stamp files there. 6534746SricaAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 6544746Srica[# Compute $1's index in $config_headers. 6554746Srica_am_arg=$1 6564746Srica_am_stamp_count=1 6574746Sricafor _am_header in $config_headers :; do 6584746Srica case $_am_header in 6594746Srica $_am_arg | $_am_arg:* ) 6604746Srica break ;; 6614746Srica * ) 6624746Srica _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6634746Srica esac 6644746Sricadone 6654746Sricaecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 6664746Srica 6674746Srica# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 6684746Srica# 6694746Srica# This file is free software; the Free Software Foundation 6704746Srica# gives unlimited permission to copy and/or distribute it, 6714746Srica# with or without modifications, as long as this notice is preserved. 6724746Srica 6734746Srica# AM_PROG_INSTALL_SH 6744746Srica# ------------------ 6754746Srica# Define $install_sh. 6764746SricaAC_DEFUN([AM_PROG_INSTALL_SH], 6774746Srica[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6784746Sricaif test x"${install_sh}" != xset; then 6794746Srica case $am_aux_dir in 6804746Srica *\ * | *\ *) 6814746Srica install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 6824746Srica *) 6834746Srica install_sh="\${SHELL} $am_aux_dir/install-sh" 6844746Srica esac 6854746Sricafi 6864746SricaAC_SUBST(install_sh)]) 6874746Srica 6884746Srica# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 6894746Srica# 6904746Srica# This file is free software; the Free Software Foundation 6914746Srica# gives unlimited permission to copy and/or distribute it, 6924746Srica# with or without modifications, as long as this notice is preserved. 6934746Srica 6944746Srica# serial 2 6954746Srica 6964746Srica# Check whether the underlying file-system supports filenames 6974746Srica# with a leading dot. For instance MS-DOS doesn't. 6984746SricaAC_DEFUN([AM_SET_LEADING_DOT], 6994746Srica[rm -rf .tst 2>/dev/null 7004746Sricamkdir .tst 2>/dev/null 7014746Sricaif test -d .tst; then 7024746Srica am__leading_dot=. 7034746Sricaelse 7044746Srica am__leading_dot=_ 7054746Sricafi 7064746Sricarmdir .tst 2>/dev/null 7074746SricaAC_SUBST([am__leading_dot])]) 7084746Srica 7094746Srica# Check to see how 'make' treats includes. -*- Autoconf -*- 7104746Srica 7114746Srica# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 7124746Srica# 7134746Srica# This file is free software; the Free Software Foundation 7144746Srica# gives unlimited permission to copy and/or distribute it, 7154746Srica# with or without modifications, as long as this notice is preserved. 7164746Srica 7174746Srica# serial 4 7184746Srica 7194746Srica# AM_MAKE_INCLUDE() 7204746Srica# ----------------- 7214746Srica# Check to see how make treats includes. 7224746SricaAC_DEFUN([AM_MAKE_INCLUDE], 7234746Srica[am_make=${MAKE-make} 7244746Sricacat > confinc << 'END' 7254746Sricaam__doit: 7264746Srica @echo this is the am__doit target 7274746Srica.PHONY: am__doit 7284746SricaEND 7294746Srica# If we don't find an include directive, just comment out the code. 7304746SricaAC_MSG_CHECKING([for style of include used by $am_make]) 7314746Sricaam__include="#" 7324746Sricaam__quote= 7334746Srica_am_result=none 7344746Srica# First try GNU make style include. 7354746Sricaecho "include confinc" > confmf 7364746Srica# Ignore all kinds of additional output from `make'. 7374746Sricacase `$am_make -s -f confmf 2> /dev/null` in #( 7384746Srica*the\ am__doit\ target*) 7394746Srica am__include=include 7404746Srica am__quote= 7414746Srica _am_result=GNU 7424746Srica ;; 7434746Sricaesac 7444746Srica# Now try BSD make style include. 7454746Sricaif test "$am__include" = "#"; then 7464746Srica echo '.include "confinc"' > confmf 7474746Srica case `$am_make -s -f confmf 2> /dev/null` in #( 7484746Srica *the\ am__doit\ target*) 7494746Srica am__include=.include 7504746Srica am__quote="\"" 7514746Srica _am_result=BSD 7524746Srica ;; 7534746Srica esac 7544746Sricafi 7554746SricaAC_SUBST([am__include]) 7564746SricaAC_SUBST([am__quote]) 7574746SricaAC_MSG_RESULT([$_am_result]) 7584746Sricarm -f confinc confmf 7594746Srica]) 7604746Srica 7614746Srica# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 7624746Srica# Free Software Foundation, Inc. 7634746Srica# 7644746Srica# This file is free software; the Free Software Foundation 7654746Srica# gives unlimited permission to copy and/or distribute it, 7664746Srica# with or without modifications, as long as this notice is preserved. 7674746Srica 7684746Srica# serial 6 7694746Srica 7704746Srica# AM_PROG_CC_C_O 7714746Srica# -------------- 7724746Srica# Like AC_PROG_CC_C_O, but changed for automake. 7734746SricaAC_DEFUN([AM_PROG_CC_C_O], 7744746Srica[AC_REQUIRE([AC_PROG_CC_C_O])dnl 7754746SricaAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7764746SricaAC_REQUIRE_AUX_FILE([compile])dnl 7774746Srica# FIXME: we rely on the cache variable name because 7784746Srica# there is no other way. 7794746Sricaset dummy $CC 7804746Sricaam_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 7814746Sricaeval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 7824746Sricaif test "$am_t" != yes; then 7834746Srica # Losing compiler, so override with the script. 7844746Srica # FIXME: It is wrong to rewrite CC. 7854746Srica # But if we don't then we get into trouble of one sort or another. 7864746Srica # A longer-term fix would be to have automake use am__CC in this case, 7874746Srica # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7884746Srica CC="$am_aux_dir/compile $CC" 789fi 790dnl Make sure AC_PROG_CC is never called again, or it will override our 791dnl setting of CC. 792m4_define([AC_PROG_CC], 793 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 794]) 795 796# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 797 798# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 799# Free Software Foundation, Inc. 800# 801# This file is free software; the Free Software Foundation 802# gives unlimited permission to copy and/or distribute it, 803# with or without modifications, as long as this notice is preserved. 804 805# serial 6 806 807# AM_MISSING_PROG(NAME, PROGRAM) 808# ------------------------------ 809AC_DEFUN([AM_MISSING_PROG], 810[AC_REQUIRE([AM_MISSING_HAS_RUN]) 811$1=${$1-"${am_missing_run}$2"} 812AC_SUBST($1)]) 813 814 815# AM_MISSING_HAS_RUN 816# ------------------ 817# Define MISSING if not defined so far and test if it supports --run. 818# If it does, set am_missing_run to use it, otherwise, to nothing. 819AC_DEFUN([AM_MISSING_HAS_RUN], 820[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 821AC_REQUIRE_AUX_FILE([missing])dnl 822if test x"${MISSING+set}" != xset; then 823 case $am_aux_dir in 824 *\ * | *\ *) 825 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 826 *) 827 MISSING="\${SHELL} $am_aux_dir/missing" ;; 828 esac 829fi 830# Use eval to expand $SHELL 831if eval "$MISSING --run true"; then 832 am_missing_run="$MISSING --run " 833else 834 am_missing_run= 835 AC_MSG_WARN([`missing' script is too old or missing]) 836fi 837]) 838 839# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 840# 841# This file is free software; the Free Software Foundation 842# gives unlimited permission to copy and/or distribute it, 843# with or without modifications, as long as this notice is preserved. 844 845# AM_PROG_MKDIR_P 846# --------------- 847# Check for `mkdir -p'. 848AC_DEFUN([AM_PROG_MKDIR_P], 849[AC_PREREQ([2.60])dnl 850AC_REQUIRE([AC_PROG_MKDIR_P])dnl 851dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 852dnl while keeping a definition of mkdir_p for backward compatibility. 853dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 854dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 855dnl Makefile.ins that do not define MKDIR_P, so we do our own 856dnl adjustment using top_builddir (which is defined more often than 857dnl MKDIR_P). 858AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 859case $mkdir_p in 860 [[\\/$]]* | ?:[[\\/]]*) ;; 861 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 862esac 863]) 864 865# Helper functions for option handling. -*- Autoconf -*- 866 867# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 868# 869# This file is free software; the Free Software Foundation 870# gives unlimited permission to copy and/or distribute it, 871# with or without modifications, as long as this notice is preserved. 872 873# serial 4 874 875# _AM_MANGLE_OPTION(NAME) 876# ----------------------- 877AC_DEFUN([_AM_MANGLE_OPTION], 878[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 879 880# _AM_SET_OPTION(NAME) 881# ------------------------------ 882# Set option NAME. Presently that only means defining a flag for this option. 883AC_DEFUN([_AM_SET_OPTION], 884[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 885 886# _AM_SET_OPTIONS(OPTIONS) 887# ---------------------------------- 888# OPTIONS is a space-separated list of Automake options. 889AC_DEFUN([_AM_SET_OPTIONS], 890[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 891 892# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 893# ------------------------------------------- 894# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 895AC_DEFUN([_AM_IF_OPTION], 896[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 897 898# Check to make sure that the build environment is sane. -*- Autoconf -*- 899 900# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 901# Free Software Foundation, Inc. 902# 903# This file is free software; the Free Software Foundation 904# gives unlimited permission to copy and/or distribute it, 905# with or without modifications, as long as this notice is preserved. 906 907# serial 5 908 909# AM_SANITY_CHECK 910# --------------- 911AC_DEFUN([AM_SANITY_CHECK], 912[AC_MSG_CHECKING([whether build environment is sane]) 913# Just in case 914sleep 1 915echo timestamp > conftest.file 916# Reject unsafe characters in $srcdir or the absolute working directory 917# name. Accept space and tab only in the latter. 918am_lf=' 919' 920case `pwd` in 921 *[[\\\"\#\$\&\'\`$am_lf]]*) 922 AC_MSG_ERROR([unsafe absolute working directory name]);; 923esac 924case $srcdir in 925 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 926 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 927esac 928 929# Do `set' in a subshell so we don't clobber the current shell's 930# arguments. Must try -L first in case configure is actually a 931# symlink; some systems play weird games with the mod time of symlinks 932# (eg FreeBSD returns the mod time of the symlink's containing 933# directory). 934if ( 935 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 936 if test "$[*]" = "X"; then 937 # -L didn't work. 938 set X `ls -t "$srcdir/configure" conftest.file` 939 fi 940 rm -f conftest.file 941 if test "$[*]" != "X $srcdir/configure conftest.file" \ 942 && test "$[*]" != "X conftest.file $srcdir/configure"; then 943 944 # If neither matched, then we have a broken ls. This can happen 945 # if, for instance, CONFIG_SHELL is bash and it inherits a 946 # broken ls alias from the environment. This has actually 947 # happened. Such a system could not be considered "sane". 948 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 949alias in your environment]) 950 fi 951 952 test "$[2]" = conftest.file 953 ) 954then 955 # Ok. 956 : 957else 958 AC_MSG_ERROR([newly created file is older than distributed files! 959Check your system clock]) 960fi 961AC_MSG_RESULT(yes)]) 962 963# Copyright (C) 2009 Free Software Foundation, Inc. 964# 965# This file is free software; the Free Software Foundation 966# gives unlimited permission to copy and/or distribute it, 967# with or without modifications, as long as this notice is preserved. 968 969# serial 1 970 971# AM_SILENT_RULES([DEFAULT]) 972# -------------------------- 973# Enable less verbose build rules; with the default set to DEFAULT 974# (`yes' being less verbose, `no' or empty being verbose). 975AC_DEFUN([AM_SILENT_RULES], 976[AC_ARG_ENABLE([silent-rules], 977[ --enable-silent-rules less verbose build output (undo: `make V=1') 978 --disable-silent-rules verbose build output (undo: `make V=0')]) 979case $enable_silent_rules in 980yes) AM_DEFAULT_VERBOSITY=0;; 981no) AM_DEFAULT_VERBOSITY=1;; 982*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 983esac 984AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 985AM_BACKSLASH='\' 986AC_SUBST([AM_BACKSLASH])dnl 987_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 988]) 989 990# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 991# 992# This file is free software; the Free Software Foundation 993# gives unlimited permission to copy and/or distribute it, 994# with or without modifications, as long as this notice is preserved. 995 996# AM_PROG_INSTALL_STRIP 997# --------------------- 998# One issue with vendor `install' (even GNU) is that you can't 999# specify the program used to strip binaries. This is especially 1000# annoying in cross-compiling environments, where the build's strip 1001# is unlikely to handle the host's binaries. 1002# Fortunately install-sh will honor a STRIPPROG variable, so we 1003# always use install-sh in `make install-strip', and initialize 1004# STRIPPROG with the value of the STRIP variable (set by the user). 1005AC_DEFUN([AM_PROG_INSTALL_STRIP], 1006[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1007# Installed binaries are usually stripped using `strip' when the user 1008# run `make install-strip'. However `strip' might not be the right 1009# tool to use in cross-compilation environments, therefore Automake 1010# will honor the `STRIP' environment variable to overrule this program. 1011dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1012if test "$cross_compiling" != no; then 1013 AC_CHECK_TOOL([STRIP], [strip], :) 1014fi 1015INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1016AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1017 1018# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 1019# 1020# This file is free software; the Free Software Foundation 1021# gives unlimited permission to copy and/or distribute it, 1022# with or without modifications, as long as this notice is preserved. 1023 1024# serial 2 1025 1026# _AM_SUBST_NOTMAKE(VARIABLE) 1027# --------------------------- 1028# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1029# This macro is traced by Automake. 1030AC_DEFUN([_AM_SUBST_NOTMAKE]) 1031 1032# AM_SUBST_NOTMAKE(VARIABLE) 1033# --------------------------- 1034# Public sister of _AM_SUBST_NOTMAKE. 1035AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1036 1037# Check how to create a tarball. -*- Autoconf -*- 1038 1039# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 1040# 1041# This file is free software; the Free Software Foundation 1042# gives unlimited permission to copy and/or distribute it, 1043# with or without modifications, as long as this notice is preserved. 1044 1045# serial 2 1046 1047# _AM_PROG_TAR(FORMAT) 1048# -------------------- 1049# Check how to create a tarball in format FORMAT. 1050# FORMAT should be one of `v7', `ustar', or `pax'. 1051# 1052# Substitute a variable $(am__tar) that is a command 1053# writing to stdout a FORMAT-tarball containing the directory 1054# $tardir. 1055# tardir=directory && $(am__tar) > result.tar 1056# 1057# Substitute a variable $(am__untar) that extract such 1058# a tarball read from stdin. 1059# $(am__untar) < result.tar 1060AC_DEFUN([_AM_PROG_TAR], 1061[# Always define AMTAR for backward compatibility. 1062AM_MISSING_PROG([AMTAR], [tar]) 1063m4_if([$1], [v7], 1064 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 1065 [m4_case([$1], [ustar],, [pax],, 1066 [m4_fatal([Unknown tar format])]) 1067AC_MSG_CHECKING([how to create a $1 tar archive]) 1068# Loop over all known methods to create a tar archive until one works. 1069_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1070_am_tools=${am_cv_prog_tar_$1-$_am_tools} 1071# Do not fold the above two line into one, because Tru64 sh and 1072# Solaris sh will not grok spaces in the rhs of `-'. 1073for _am_tool in $_am_tools 1074do 1075 case $_am_tool in 1076 gnutar) 1077 for _am_tar in tar gnutar gtar; 1078 do 1079 AM_RUN_LOG([$_am_tar --version]) && break 1080 done 1081 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1082 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1083 am__untar="$_am_tar -xf -" 1084 ;; 1085 plaintar) 1086 # Must skip GNU tar: if it does not support --format= it doesn't create 1087 # ustar tarball either. 1088 (tar --version) >/dev/null 2>&1 && continue 1089 am__tar='tar chf - "$$tardir"' 1090 am__tar_='tar chf - "$tardir"' 1091 am__untar='tar xf -' 1092 ;; 1093 pax) 1094 am__tar='pax -L -x $1 -w "$$tardir"' 1095 am__tar_='pax -L -x $1 -w "$tardir"' 1096 am__untar='pax -r' 1097 ;; 1098 cpio) 1099 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1100 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1101 am__untar='cpio -i -H $1 -d' 1102 ;; 1103 none) 1104 am__tar=false 1105 am__tar_=false 1106 am__untar=false 1107 ;; 1108 esac 1109 1110 # If the value was cached, stop now. We just wanted to have am__tar 1111 # and am__untar set. 1112 test -n "${am_cv_prog_tar_$1}" && break 1113 1114 # tar/untar a dummy directory, and stop if the command works 1115 rm -rf conftest.dir 1116 mkdir conftest.dir 1117 echo GrepMe > conftest.dir/file 1118 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1119 rm -rf conftest.dir 1120 if test -s conftest.tar; then 1121 AM_RUN_LOG([$am__untar <conftest.tar]) 1122 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1123 fi 1124done 1125rm -rf conftest.dir 1126 1127AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1128AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1129AC_SUBST([am__tar]) 1130AC_SUBST([am__untar]) 1131]) # _AM_PROG_TAR 1132 1133m4_include([libopts/m4/libopts.m4]) 1134m4_include([libopts/m4/stdnoreturn.m4]) 1135m4_include([m4/hms_search_lib.m4]) 1136m4_include([m4/libtool.m4]) 1137m4_include([m4/ltoptions.m4]) 1138m4_include([m4/ltsugar.m4]) 1139m4_include([m4/ltversion.m4]) 1140m4_include([m4/lt~obsolete.m4]) 1141m4_include([m4/ntp_cacheversion.m4]) 1142m4_include([m4/ntp_compiler.m4]) 1143m4_include([m4/ntp_crosscompile.m4]) 1144m4_include([m4/ntp_debug.m4]) 1145m4_include([m4/ntp_dir_sep.m4]) 1146m4_include([m4/ntp_facilitynames.m4]) 1147m4_include([m4/ntp_googletest.m4]) 1148m4_include([m4/ntp_ipv6.m4]) 1149m4_include([m4/ntp_lib_m.m4]) 1150m4_include([m4/ntp_libevent.m4]) 1151m4_include([m4/ntp_libntp.m4]) 1152m4_include([m4/ntp_lineeditlibs.m4]) 1153m4_include([m4/ntp_locinfo.m4]) 1154m4_include([m4/ntp_openssl.m4]) 1155m4_include([m4/ntp_pkg_config.m4]) 1156m4_include([m4/ntp_prog_cc.m4]) 1157m4_include([m4/ntp_sntp.m4]) 1158m4_include([m4/ntp_sysexits.m4]) 1159m4_include([m4/ntp_ver_suffix.m4]) 1160m4_include([m4/openldap-thread-check.m4]) 1161m4_include([m4/openldap.m4]) 1162m4_include([m4/os_cflags.m4]) 1163m4_include([m4/snprintf.m4]) 1164