1234449Sobrien# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 268349Sobrien 3159764Sobrien# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4234449Sobrien# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5133359Sobrien# This file is free software; the Free Software Foundation 6133359Sobrien# gives unlimited permission to copy and/or distribute it, 7133359Sobrien# with or without modifications, as long as this notice is preserved. 868349Sobrien 9133359Sobrien# This program is distributed in the hope that it will be useful, 10133359Sobrien# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11133359Sobrien# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12133359Sobrien# PARTICULAR PURPOSE. 1368349Sobrien 14234449Sobrienm4_ifndef([AC_AUTOCONF_VERSION], 15234449Sobrien [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16234449Sobrienm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 17234449Sobrien[m4_warning([this file was generated for autoconf 2.68. 18234449SobrienYou have another version of autoconf. It may work, but is not guaranteed to. 19234449SobrienIf you have problems, you may need to regenerate the build system entirely. 20234449SobrienTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 21175296Sobrien 22234449Sobrien# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 23139368Sobrien# 24159764Sobrien# This file is free software; the Free Software Foundation 25159764Sobrien# gives unlimited permission to copy and/or distribute it, 26159764Sobrien# with or without modifications, as long as this notice is preserved. 27159764Sobrien 28159764Sobrien# AM_AUTOMAKE_VERSION(VERSION) 29159764Sobrien# ---------------------------- 30159764Sobrien# Automake X.Y traces this macro to ensure aclocal.m4 has been 31159764Sobrien# generated from the m4 files accompanying Automake X.Y. 32175296Sobrien# (This private macro should not be called outside this file.) 33175296SobrienAC_DEFUN([AM_AUTOMAKE_VERSION], 34234449Sobrien[am__api_version='1.11' 35175296Sobriendnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36175296Sobriendnl require some minimum version. Point them to the right macro. 37234449Sobrienm4_if([$1], [1.11.1], [], 38175296Sobrien [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39175296Sobrien]) 40159764Sobrien 41175296Sobrien# _AM_AUTOCONF_VERSION(VERSION) 42175296Sobrien# ----------------------------- 43175296Sobrien# aclocal traces this macro to find the Autoconf version. 44175296Sobrien# This is a private macro too. Using m4_define simplifies 45175296Sobrien# the logic in aclocal, which can simply ignore this definition. 46175296Sobrienm4_define([_AM_AUTOCONF_VERSION], []) 47175296Sobrien 48159764Sobrien# AM_SET_CURRENT_AUTOMAKE_VERSION 49159764Sobrien# ------------------------------- 50175296Sobrien# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51234449Sobrien# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52159764SobrienAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53234449Sobrien[AM_AUTOMAKE_VERSION([1.11.1])dnl 54234449Sobrienm4_ifndef([AC_AUTOCONF_VERSION], 55234449Sobrien [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56234449Sobrien_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57159764Sobrien 58159764Sobrien# AM_AUX_DIR_EXPAND -*- Autoconf -*- 59159764Sobrien 60159764Sobrien# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 61139368Sobrien# 62159764Sobrien# This file is free software; the Free Software Foundation 63159764Sobrien# gives unlimited permission to copy and/or distribute it, 64159764Sobrien# with or without modifications, as long as this notice is preserved. 65159764Sobrien 66159764Sobrien# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 67159764Sobrien# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 68159764Sobrien# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 69139368Sobrien# 70159764Sobrien# Of course, Automake must honor this variable whenever it calls a 71159764Sobrien# tool from the auxiliary directory. The problem is that $srcdir (and 72159764Sobrien# therefore $ac_aux_dir as well) can be either absolute or relative, 73159764Sobrien# depending on how configure is run. This is pretty annoying, since 74159764Sobrien# it makes $ac_aux_dir quite unusable in subdirectories: in the top 75159764Sobrien# source directory, any form will work fine, but in subdirectories a 76159764Sobrien# relative path needs to be adjusted first. 77139368Sobrien# 78159764Sobrien# $ac_aux_dir/missing 79159764Sobrien# fails when called from a subdirectory if $ac_aux_dir is relative 80159764Sobrien# $top_srcdir/$ac_aux_dir/missing 81159764Sobrien# fails if $ac_aux_dir is absolute, 82159764Sobrien# fails when called from a subdirectory in a VPATH build with 83159764Sobrien# a relative $ac_aux_dir 84139368Sobrien# 85159764Sobrien# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 86159764Sobrien# are both prefixed by $srcdir. In an in-source build this is usually 87159764Sobrien# harmless because $srcdir is `.', but things will broke when you 88159764Sobrien# start a VPATH build or use an absolute $srcdir. 89139368Sobrien# 90159764Sobrien# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 91159764Sobrien# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 92159764Sobrien# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 93159764Sobrien# and then we would define $MISSING as 94159764Sobrien# MISSING="\${SHELL} $am_aux_dir/missing" 95159764Sobrien# This will work as long as MISSING is not called from configure, because 96159764Sobrien# unfortunately $(top_srcdir) has no meaning in configure. 97159764Sobrien# However there are other variables, like CC, which are often used in 98159764Sobrien# configure, and could therefore not use this "fixed" $ac_aux_dir. 99139368Sobrien# 100159764Sobrien# Another solution, used here, is to always expand $ac_aux_dir to an 101159764Sobrien# absolute PATH. The drawback is that using absolute paths prevent a 102159764Sobrien# configured tree to be moved without reconfiguration. 103159764Sobrien 104159764SobrienAC_DEFUN([AM_AUX_DIR_EXPAND], 105159764Sobrien[dnl Rely on autoconf to set up CDPATH properly. 106159764SobrienAC_PREREQ([2.50])dnl 107159764Sobrien# expand $ac_aux_dir to an absolute path 108159764Sobrienam_aux_dir=`cd $ac_aux_dir && pwd` 109159764Sobrien]) 110159764Sobrien 111159764Sobrien# AM_CONDITIONAL -*- Autoconf -*- 112159764Sobrien 113234449Sobrien# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 114159764Sobrien# Free Software Foundation, Inc. 115139368Sobrien# 116159764Sobrien# This file is free software; the Free Software Foundation 117159764Sobrien# gives unlimited permission to copy and/or distribute it, 118159764Sobrien# with or without modifications, as long as this notice is preserved. 119159764Sobrien 120234449Sobrien# serial 9 121159764Sobrien 122159764Sobrien# AM_CONDITIONAL(NAME, SHELL-CONDITION) 123159764Sobrien# ------------------------------------- 124159764Sobrien# Define a conditional. 125159764SobrienAC_DEFUN([AM_CONDITIONAL], 126159764Sobrien[AC_PREREQ(2.52)dnl 127159764Sobrien ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 128159764Sobrien [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 129175296SobrienAC_SUBST([$1_TRUE])dnl 130175296SobrienAC_SUBST([$1_FALSE])dnl 131175296Sobrien_AM_SUBST_NOTMAKE([$1_TRUE])dnl 132175296Sobrien_AM_SUBST_NOTMAKE([$1_FALSE])dnl 133234449Sobrienm4_define([_AM_COND_VALUE_$1], [$2])dnl 134159764Sobrienif $2; then 135159764Sobrien $1_TRUE= 136159764Sobrien $1_FALSE='#' 137159764Sobrienelse 138159764Sobrien $1_TRUE='#' 139159764Sobrien $1_FALSE= 140159764Sobrienfi 141159764SobrienAC_CONFIG_COMMANDS_PRE( 142159764Sobrien[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 143159764Sobrien AC_MSG_ERROR([[conditional "$1" was never defined. 144159764SobrienUsually this means the macro was only invoked conditionally.]]) 145159764Sobrienfi])]) 146159764Sobrien 147234449Sobrien# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 148159764Sobrien# Free Software Foundation, Inc. 149139368Sobrien# 150159764Sobrien# This file is free software; the Free Software Foundation 151159764Sobrien# gives unlimited permission to copy and/or distribute it, 152159764Sobrien# with or without modifications, as long as this notice is preserved. 153139368Sobrien 154234449Sobrien# serial 10 155139368Sobrien 156159764Sobrien# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 157159764Sobrien# written in clear, in which case automake, when reading aclocal.m4, 158159764Sobrien# will think it sees a *use*, and therefore will trigger all it's 159159764Sobrien# C support machinery. Also note that it means that autoscan, seeing 160159764Sobrien# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 161139368Sobrien 162139368Sobrien 163159764Sobrien# _AM_DEPENDENCIES(NAME) 164159764Sobrien# ---------------------- 165159764Sobrien# See how the compiler implements dependency checking. 166159764Sobrien# NAME is "CC", "CXX", "GCJ", or "OBJC". 167159764Sobrien# We try a few techniques and use that to set a single cache variable. 168159764Sobrien# 169159764Sobrien# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 170159764Sobrien# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 171159764Sobrien# dependency, and given that the user is not expected to run this macro, 172159764Sobrien# just rely on AC_PROG_CC. 173159764SobrienAC_DEFUN([_AM_DEPENDENCIES], 174159764Sobrien[AC_REQUIRE([AM_SET_DEPDIR])dnl 175159764SobrienAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 176159764SobrienAC_REQUIRE([AM_MAKE_INCLUDE])dnl 177159764SobrienAC_REQUIRE([AM_DEP_TRACK])dnl 178139368Sobrien 179159764Sobrienifelse([$1], CC, [depcc="$CC" am_compiler_list=], 180159764Sobrien [$1], CXX, [depcc="$CXX" am_compiler_list=], 181159764Sobrien [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 182175296Sobrien [$1], UPC, [depcc="$UPC" am_compiler_list=], 183159764Sobrien [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 184159764Sobrien [depcc="$$1" am_compiler_list=]) 185133359Sobrien 186159764SobrienAC_CACHE_CHECK([dependency style of $depcc], 187159764Sobrien [am_cv_$1_dependencies_compiler_type], 188159764Sobrien[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 189159764Sobrien # We make a subdir and do the tests there. Otherwise we can end up 190159764Sobrien # making bogus files that we don't know about and never remove. For 191159764Sobrien # instance it was reported that on HP-UX the gcc test will end up 192159764Sobrien # making a dummy file named `D' -- because `-MD' means `put the output 193159764Sobrien # in D'. 194159764Sobrien mkdir conftest.dir 195159764Sobrien # Copy depcomp to subdir because otherwise we won't find it if we're 196159764Sobrien # using a relative directory. 197159764Sobrien cp "$am_depcomp" conftest.dir 198159764Sobrien cd conftest.dir 199159764Sobrien # We will build objects and dependencies in a subdirectory because 200159764Sobrien # it helps to detect inapplicable dependency modes. For instance 201159764Sobrien # both Tru64's cc and ICC support -MD to output dependencies as a 202159764Sobrien # side effect of compilation, but ICC will put the dependencies in 203159764Sobrien # the current directory while Tru64 will put them in the object 204159764Sobrien # directory. 205159764Sobrien mkdir sub 206133359Sobrien 207159764Sobrien am_cv_$1_dependencies_compiler_type=none 208159764Sobrien if test "$am_compiler_list" = ""; then 209159764Sobrien am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 210159764Sobrien fi 211234449Sobrien am__universal=false 212234449Sobrien m4_case([$1], [CC], 213234449Sobrien [case " $depcc " in #( 214234449Sobrien *\ -arch\ *\ -arch\ *) am__universal=true ;; 215234449Sobrien esac], 216234449Sobrien [CXX], 217234449Sobrien [case " $depcc " in #( 218234449Sobrien *\ -arch\ *\ -arch\ *) am__universal=true ;; 219234449Sobrien esac]) 220234449Sobrien 221159764Sobrien for depmode in $am_compiler_list; do 222159764Sobrien # Setup a source with many dependencies, because some compilers 223159764Sobrien # like to wrap large dependency lists on column 80 (with \), and 224159764Sobrien # we should not choose a depcomp mode which is confused by this. 225159764Sobrien # 226159764Sobrien # We need to recreate these files for each test, as the compiler may 227159764Sobrien # overwrite some of them when testing with obscure command lines. 228159764Sobrien # This happens at least with the AIX C compiler. 229159764Sobrien : > sub/conftest.c 230159764Sobrien for i in 1 2 3 4 5 6; do 231159764Sobrien echo '#include "conftst'$i'.h"' >> sub/conftest.c 232159764Sobrien # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 233159764Sobrien # Solaris 8's {/usr,}/bin/sh. 234159764Sobrien touch sub/conftst$i.h 235159764Sobrien done 236159764Sobrien echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 237159764Sobrien 238234449Sobrien # We check with `-c' and `-o' for the sake of the "dashmstdout" 239234449Sobrien # mode. It turns out that the SunPro C++ compiler does not properly 240234449Sobrien # handle `-M -o', and we need to detect this. Also, some Intel 241234449Sobrien # versions had trouble with output in subdirs 242234449Sobrien am__obj=sub/conftest.${OBJEXT-o} 243234449Sobrien am__minus_obj="-o $am__obj" 244159764Sobrien case $depmode in 245234449Sobrien gcc) 246234449Sobrien # This depmode causes a compiler race in universal mode. 247234449Sobrien test "$am__universal" = false || continue 248234449Sobrien ;; 249159764Sobrien nosideeffect) 250159764Sobrien # after this tag, mechanisms are not by side-effect, so they'll 251159764Sobrien # only be used when explicitly requested 252159764Sobrien if test "x$enable_dependency_tracking" = xyes; then 253159764Sobrien continue 254159764Sobrien else 255159764Sobrien break 256159764Sobrien fi 257159764Sobrien ;; 258234449Sobrien msvisualcpp | msvcmsys) 259234449Sobrien # This compiler won't grok `-c -o', but also, the minuso test has 260234449Sobrien # not run yet. These depmodes are late enough in the game, and 261234449Sobrien # so weak that their functioning should not be impacted. 262234449Sobrien am__obj=conftest.${OBJEXT-o} 263234449Sobrien am__minus_obj= 264234449Sobrien ;; 265159764Sobrien none) break ;; 266159764Sobrien esac 267159764Sobrien if depmode=$depmode \ 268234449Sobrien source=sub/conftest.c object=$am__obj \ 269159764Sobrien depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 270234449Sobrien $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 271159764Sobrien >/dev/null 2>conftest.err && 272175296Sobrien grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 273159764Sobrien grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 274234449Sobrien grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 275159764Sobrien ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 276159764Sobrien # icc doesn't choke on unknown options, it will just issue warnings 277159764Sobrien # or remarks (even with -Werror). So we grep stderr for any message 278159764Sobrien # that says an option was ignored or not supported. 279159764Sobrien # When given -MP, icc 7.0 and 7.1 complain thusly: 280159764Sobrien # icc: Command line warning: ignoring option '-M'; no argument required 281159764Sobrien # The diagnosis changed in icc 8.0: 282159764Sobrien # icc: Command line remark: option '-MP' not supported 283159764Sobrien if (grep 'ignoring option' conftest.err || 284159764Sobrien grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 285159764Sobrien am_cv_$1_dependencies_compiler_type=$depmode 286159764Sobrien break 287159764Sobrien fi 288133359Sobrien fi 289133359Sobrien done 290159764Sobrien 291159764Sobrien cd .. 292159764Sobrien rm -rf conftest.dir 293159764Sobrienelse 294159764Sobrien am_cv_$1_dependencies_compiler_type=none 295159764Sobrienfi 296133359Sobrien]) 297159764SobrienAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 298159764SobrienAM_CONDITIONAL([am__fastdep$1], [ 299159764Sobrien test "x$enable_dependency_tracking" != xno \ 300159764Sobrien && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 301159764Sobrien]) 302133359Sobrien 303133359Sobrien 304159764Sobrien# AM_SET_DEPDIR 305159764Sobrien# ------------- 306159764Sobrien# Choose a directory name for dependency files. 307159764Sobrien# This macro is AC_REQUIREd in _AM_DEPENDENCIES 308159764SobrienAC_DEFUN([AM_SET_DEPDIR], 309159764Sobrien[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 310159764SobrienAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 311133359Sobrien]) 312133359Sobrien 313133359Sobrien 314159764Sobrien# AM_DEP_TRACK 315159764Sobrien# ------------ 316159764SobrienAC_DEFUN([AM_DEP_TRACK], 317159764Sobrien[AC_ARG_ENABLE(dependency-tracking, 318159764Sobrien[ --disable-dependency-tracking speeds up one-time build 319159764Sobrien --enable-dependency-tracking do not reject slow dependency extractors]) 320159764Sobrienif test "x$enable_dependency_tracking" != xno; then 321159764Sobrien am_depcomp="$ac_aux_dir/depcomp" 322159764Sobrien AMDEPBACKSLASH='\' 323159764Sobrienfi 324159764SobrienAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 325175296SobrienAC_SUBST([AMDEPBACKSLASH])dnl 326175296Sobrien_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 327159764Sobrien]) 328133359Sobrien 329159764Sobrien# Generate code to set up dependency tracking. -*- Autoconf -*- 330159764Sobrien 331234449Sobrien# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 332159764Sobrien# Free Software Foundation, Inc. 333159764Sobrien# 334159764Sobrien# This file is free software; the Free Software Foundation 335159764Sobrien# gives unlimited permission to copy and/or distribute it, 336159764Sobrien# with or without modifications, as long as this notice is preserved. 337159764Sobrien 338234449Sobrien#serial 5 339159764Sobrien 340159764Sobrien# _AM_OUTPUT_DEPENDENCY_COMMANDS 341159764Sobrien# ------------------------------ 342159764SobrienAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 343234449Sobrien[{ 344234449Sobrien # Autoconf 2.62 quotes --file arguments for eval, but not when files 345234449Sobrien # are listed without --file. Let's play safe and only enable the eval 346234449Sobrien # if we detect the quoting. 347234449Sobrien case $CONFIG_FILES in 348234449Sobrien *\'*) eval set x "$CONFIG_FILES" ;; 349234449Sobrien *) set x $CONFIG_FILES ;; 350234449Sobrien esac 351234449Sobrien shift 352234449Sobrien for mf 353234449Sobrien do 354234449Sobrien # Strip MF so we end up with the name of the file. 355234449Sobrien mf=`echo "$mf" | sed -e 's/:.*$//'` 356234449Sobrien # Check whether this is an Automake generated Makefile or not. 357234449Sobrien # We used to match only the files named `Makefile.in', but 358234449Sobrien # some people rename them; so instead we look at the file content. 359234449Sobrien # Grep'ing the first line is not enough: some people post-process 360234449Sobrien # each Makefile.in and add a new line on top of each file to say so. 361234449Sobrien # Grep'ing the whole file is not good either: AIX grep has a line 362234449Sobrien # limit of 2048, but all sed's we know have understand at least 4000. 363234449Sobrien if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 364234449Sobrien dirpart=`AS_DIRNAME("$mf")` 365234449Sobrien else 366234449Sobrien continue 367234449Sobrien fi 368234449Sobrien # Extract the definition of DEPDIR, am__include, and am__quote 369234449Sobrien # from the Makefile without running `make'. 370234449Sobrien DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 371234449Sobrien test -z "$DEPDIR" && continue 372234449Sobrien am__include=`sed -n 's/^am__include = //p' < "$mf"` 373234449Sobrien test -z "am__include" && continue 374234449Sobrien am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 375234449Sobrien # When using ansi2knr, U may be empty or an underscore; expand it 376234449Sobrien U=`sed -n 's/^U = //p' < "$mf"` 377234449Sobrien # Find all dependency output files, they are included files with 378234449Sobrien # $(DEPDIR) in their names. We invoke sed twice because it is the 379234449Sobrien # simplest approach to changing $(DEPDIR) to its actual value in the 380234449Sobrien # expansion. 381234449Sobrien for file in `sed -n " 382234449Sobrien s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 383234449Sobrien sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 384234449Sobrien # Make sure the directory exists. 385234449Sobrien test -f "$dirpart/$file" && continue 386234449Sobrien fdir=`AS_DIRNAME(["$file"])` 387234449Sobrien AS_MKDIR_P([$dirpart/$fdir]) 388234449Sobrien # echo "creating $dirpart/$file" 389234449Sobrien echo '# dummy' > "$dirpart/$file" 390234449Sobrien done 391133359Sobrien done 392234449Sobrien} 393159764Sobrien])# _AM_OUTPUT_DEPENDENCY_COMMANDS 394159764Sobrien 395159764Sobrien 396159764Sobrien# AM_OUTPUT_DEPENDENCY_COMMANDS 397159764Sobrien# ----------------------------- 398159764Sobrien# This macro should only be invoked once -- use via AC_REQUIRE. 399159764Sobrien# 400159764Sobrien# This code is only required when automatic dependency tracking 401159764Sobrien# is enabled. FIXME. This creates each `.P' file that we will 402159764Sobrien# need in order to bootstrap the dependency handling code. 403159764SobrienAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 404159764Sobrien[AC_CONFIG_COMMANDS([depfiles], 405159764Sobrien [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 406159764Sobrien [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 407133359Sobrien]) 408133359Sobrien 409159764Sobrien# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 410159764Sobrien# Free Software Foundation, Inc. 411159764Sobrien# 412159764Sobrien# This file is free software; the Free Software Foundation 413159764Sobrien# gives unlimited permission to copy and/or distribute it, 414159764Sobrien# with or without modifications, as long as this notice is preserved. 415133359Sobrien 416159764Sobrien# serial 8 417133359Sobrien 418159764Sobrien# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 419159764SobrienAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 420133359Sobrien 421159764Sobrien# Do all the work for Automake. -*- Autoconf -*- 422133359Sobrien 423175296Sobrien# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 424234449Sobrien# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 425159764Sobrien# 426159764Sobrien# This file is free software; the Free Software Foundation 427159764Sobrien# gives unlimited permission to copy and/or distribute it, 428159764Sobrien# with or without modifications, as long as this notice is preserved. 429133359Sobrien 430234449Sobrien# serial 16 431159764Sobrien 432159764Sobrien# This macro actually does too much. Some checks are only needed if 433159764Sobrien# your package does certain things. But this isn't really a big deal. 434159764Sobrien 435159764Sobrien# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 436159764Sobrien# AM_INIT_AUTOMAKE([OPTIONS]) 437159764Sobrien# ----------------------------------------------- 438159764Sobrien# The call with PACKAGE and VERSION arguments is the old style 439159764Sobrien# call (pre autoconf-2.50), which is being phased out. PACKAGE 440159764Sobrien# and VERSION should now be passed to AC_INIT and removed from 441159764Sobrien# the call to AM_INIT_AUTOMAKE. 442159764Sobrien# We support both call styles for the transition. After 443159764Sobrien# the next Automake release, Autoconf can make the AC_INIT 444159764Sobrien# arguments mandatory, and then we can depend on a new Autoconf 445159764Sobrien# release and drop the old call support. 446159764SobrienAC_DEFUN([AM_INIT_AUTOMAKE], 447234449Sobrien[AC_PREREQ([2.62])dnl 448159764Sobriendnl Autoconf wants to disallow AM_ names. We explicitly allow 449159764Sobriendnl the ones we care about. 450159764Sobrienm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 451159764SobrienAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 452159764SobrienAC_REQUIRE([AC_PROG_INSTALL])dnl 453175296Sobrienif test "`cd $srcdir && pwd`" != "`pwd`"; then 454175296Sobrien # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 455175296Sobrien # is not polluted with repeated "-I." 456175296Sobrien AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 457175296Sobrien # test to see if srcdir already configured 458175296Sobrien if test -f $srcdir/config.status; then 459175296Sobrien AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 460175296Sobrien fi 461133359Sobrienfi 462133359Sobrien 463159764Sobrien# test whether we have cygpath 464159764Sobrienif test -z "$CYGPATH_W"; then 465159764Sobrien if (cygpath --version) >/dev/null 2>/dev/null; then 466159764Sobrien CYGPATH_W='cygpath -w' 467133359Sobrien else 468159764Sobrien CYGPATH_W=echo 469133359Sobrien fi 470133359Sobrienfi 471159764SobrienAC_SUBST([CYGPATH_W]) 472159764Sobrien 473159764Sobrien# Define the identity of the package. 474159764Sobriendnl Distinguish between old-style and new-style calls. 475159764Sobrienm4_ifval([$2], 476159764Sobrien[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 477159764Sobrien AC_SUBST([PACKAGE], [$1])dnl 478159764Sobrien AC_SUBST([VERSION], [$2])], 479159764Sobrien[_AM_SET_OPTIONS([$1])dnl 480175296Sobriendnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 481175296Sobrienm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 482175296Sobrien [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 483159764Sobrien AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 484159764Sobrien AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 485159764Sobrien 486159764Sobrien_AM_IF_OPTION([no-define],, 487159764Sobrien[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 488159764Sobrien AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 489159764Sobrien 490159764Sobrien# Some tools Automake needs. 491159764SobrienAC_REQUIRE([AM_SANITY_CHECK])dnl 492159764SobrienAC_REQUIRE([AC_ARG_PROGRAM])dnl 493159764SobrienAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 494159764SobrienAM_MISSING_PROG(AUTOCONF, autoconf) 495159764SobrienAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 496159764SobrienAM_MISSING_PROG(AUTOHEADER, autoheader) 497159764SobrienAM_MISSING_PROG(MAKEINFO, makeinfo) 498234449SobrienAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 499234449SobrienAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 500159764SobrienAC_REQUIRE([AM_PROG_MKDIR_P])dnl 501159764Sobrien# We need awk for the "check" target. The system "awk" is bad on 502159764Sobrien# some platforms. 503159764SobrienAC_REQUIRE([AC_PROG_AWK])dnl 504159764SobrienAC_REQUIRE([AC_PROG_MAKE_SET])dnl 505159764SobrienAC_REQUIRE([AM_SET_LEADING_DOT])dnl 506159764Sobrien_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 507234449Sobrien [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 508234449Sobrien [_AM_PROG_TAR([v7])])]) 509159764Sobrien_AM_IF_OPTION([no-dependencies],, 510159764Sobrien[AC_PROVIDE_IFELSE([AC_PROG_CC], 511234449Sobrien [_AM_DEPENDENCIES(CC)], 512234449Sobrien [define([AC_PROG_CC], 513234449Sobrien defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 514159764SobrienAC_PROVIDE_IFELSE([AC_PROG_CXX], 515234449Sobrien [_AM_DEPENDENCIES(CXX)], 516234449Sobrien [define([AC_PROG_CXX], 517234449Sobrien defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 518175296SobrienAC_PROVIDE_IFELSE([AC_PROG_OBJC], 519234449Sobrien [_AM_DEPENDENCIES(OBJC)], 520234449Sobrien [define([AC_PROG_OBJC], 521234449Sobrien defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 522133359Sobrien]) 523234449Sobrien_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 524234449Sobriendnl The `parallel-tests' driver may need to know about EXEEXT, so add the 525234449Sobriendnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 526234449Sobriendnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 527234449SobrienAC_CONFIG_COMMANDS_PRE(dnl 528234449Sobrien[m4_provide_if([_AM_COMPILER_EXEEXT], 529234449Sobrien [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 530159764Sobrien]) 531133359Sobrien 532234449Sobriendnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 533234449Sobriendnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 534234449Sobriendnl mangled by Autoconf and run in a shell conditional statement. 535234449Sobrienm4_define([_AC_COMPILER_EXEEXT], 536234449Sobrienm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 537133359Sobrien 538234449Sobrien 539159764Sobrien# When config.status generates a header, we must update the stamp-h file. 540159764Sobrien# This file resides in the same directory as the config header 541159764Sobrien# that is generated. The stamp files are numbered to have different names. 542159764Sobrien 543159764Sobrien# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 544159764Sobrien# loop where config.status creates the headers, so we can generate 545159764Sobrien# our stamp files there. 546159764SobrienAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 547159764Sobrien[# Compute $1's index in $config_headers. 548234449Sobrien_am_arg=$1 549159764Sobrien_am_stamp_count=1 550159764Sobrienfor _am_header in $config_headers :; do 551159764Sobrien case $_am_header in 552234449Sobrien $_am_arg | $_am_arg:* ) 553159764Sobrien break ;; 554159764Sobrien * ) 555159764Sobrien _am_stamp_count=`expr $_am_stamp_count + 1` ;; 556133359Sobrien esac 557159764Sobriendone 558234449Sobrienecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 559159764Sobrien 560234449Sobrien# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 561159764Sobrien# 562159764Sobrien# This file is free software; the Free Software Foundation 563159764Sobrien# gives unlimited permission to copy and/or distribute it, 564159764Sobrien# with or without modifications, as long as this notice is preserved. 565159764Sobrien 566159764Sobrien# AM_PROG_INSTALL_SH 567159764Sobrien# ------------------ 568159764Sobrien# Define $install_sh. 569159764SobrienAC_DEFUN([AM_PROG_INSTALL_SH], 570159764Sobrien[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 571234449Sobrienif test x"${install_sh}" != xset; then 572234449Sobrien case $am_aux_dir in 573234449Sobrien *\ * | *\ *) 574234449Sobrien install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 575234449Sobrien *) 576234449Sobrien install_sh="\${SHELL} $am_aux_dir/install-sh" 577234449Sobrien esac 578234449Sobrienfi 579159764SobrienAC_SUBST(install_sh)]) 580159764Sobrien 581159764Sobrien# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 582159764Sobrien# 583159764Sobrien# This file is free software; the Free Software Foundation 584159764Sobrien# gives unlimited permission to copy and/or distribute it, 585159764Sobrien# with or without modifications, as long as this notice is preserved. 586159764Sobrien 587159764Sobrien# serial 2 588159764Sobrien 589159764Sobrien# Check whether the underlying file-system supports filenames 590159764Sobrien# with a leading dot. For instance MS-DOS doesn't. 591159764SobrienAC_DEFUN([AM_SET_LEADING_DOT], 592159764Sobrien[rm -rf .tst 2>/dev/null 593159764Sobrienmkdir .tst 2>/dev/null 594159764Sobrienif test -d .tst; then 595159764Sobrien am__leading_dot=. 596133359Sobrienelse 597159764Sobrien am__leading_dot=_ 598133359Sobrienfi 599159764Sobrienrmdir .tst 2>/dev/null 600159764SobrienAC_SUBST([am__leading_dot])]) 601159764Sobrien 602159764Sobrien# Check to see how 'make' treats includes. -*- Autoconf -*- 603159764Sobrien 604234449Sobrien# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 605159764Sobrien# 606159764Sobrien# This file is free software; the Free Software Foundation 607159764Sobrien# gives unlimited permission to copy and/or distribute it, 608159764Sobrien# with or without modifications, as long as this notice is preserved. 609159764Sobrien 610234449Sobrien# serial 4 611159764Sobrien 612159764Sobrien# AM_MAKE_INCLUDE() 613159764Sobrien# ----------------- 614159764Sobrien# Check to see how make treats includes. 615159764SobrienAC_DEFUN([AM_MAKE_INCLUDE], 616159764Sobrien[am_make=${MAKE-make} 617159764Sobriencat > confinc << 'END' 618159764Sobrienam__doit: 619234449Sobrien @echo this is the am__doit target 620159764Sobrien.PHONY: am__doit 621159764SobrienEND 622159764Sobrien# If we don't find an include directive, just comment out the code. 623159764SobrienAC_MSG_CHECKING([for style of include used by $am_make]) 624159764Sobrienam__include="#" 625159764Sobrienam__quote= 626159764Sobrien_am_result=none 627159764Sobrien# First try GNU make style include. 628159764Sobrienecho "include confinc" > confmf 629234449Sobrien# Ignore all kinds of additional output from `make'. 630234449Sobriencase `$am_make -s -f confmf 2> /dev/null` in #( 631234449Sobrien*the\ am__doit\ target*) 632234449Sobrien am__include=include 633234449Sobrien am__quote= 634234449Sobrien _am_result=GNU 635234449Sobrien ;; 636234449Sobrienesac 637159764Sobrien# Now try BSD make style include. 638159764Sobrienif test "$am__include" = "#"; then 639159764Sobrien echo '.include "confinc"' > confmf 640234449Sobrien case `$am_make -s -f confmf 2> /dev/null` in #( 641234449Sobrien *the\ am__doit\ target*) 642234449Sobrien am__include=.include 643234449Sobrien am__quote="\"" 644234449Sobrien _am_result=BSD 645234449Sobrien ;; 646234449Sobrien esac 647159764Sobrienfi 648159764SobrienAC_SUBST([am__include]) 649159764SobrienAC_SUBST([am__quote]) 650159764SobrienAC_MSG_RESULT([$_am_result]) 651159764Sobrienrm -f confinc confmf 652133359Sobrien]) 65380588Sobrien 654234449Sobrien# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 655186691Sobrien# Free Software Foundation, Inc. 656186691Sobrien# 657186691Sobrien# This file is free software; the Free Software Foundation 658186691Sobrien# gives unlimited permission to copy and/or distribute it, 659186691Sobrien# with or without modifications, as long as this notice is preserved. 660186691Sobrien 661234449Sobrien# serial 6 662186691Sobrien 663186691Sobrien# AM_PROG_CC_C_O 664186691Sobrien# -------------- 665186691Sobrien# Like AC_PROG_CC_C_O, but changed for automake. 666186691SobrienAC_DEFUN([AM_PROG_CC_C_O], 667186691Sobrien[AC_REQUIRE([AC_PROG_CC_C_O])dnl 668186691SobrienAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 669186691SobrienAC_REQUIRE_AUX_FILE([compile])dnl 670186691Sobrien# FIXME: we rely on the cache variable name because 671186691Sobrien# there is no other way. 672186691Sobrienset dummy $CC 673234449Sobrienam_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 674234449Sobrieneval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 675234449Sobrienif test "$am_t" != yes; then 676186691Sobrien # Losing compiler, so override with the script. 677186691Sobrien # FIXME: It is wrong to rewrite CC. 678186691Sobrien # But if we don't then we get into trouble of one sort or another. 679186691Sobrien # A longer-term fix would be to have automake use am__CC in this case, 680186691Sobrien # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 681186691Sobrien CC="$am_aux_dir/compile $CC" 682186691Sobrienfi 683186691Sobriendnl Make sure AC_PROG_CC is never called again, or it will override our 684186691Sobriendnl setting of CC. 685186691Sobrienm4_define([AC_PROG_CC], 686186691Sobrien [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 687186691Sobrien]) 688186691Sobrien 689159764Sobrien# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 690159764Sobrien 691234449Sobrien# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 692159764Sobrien# Free Software Foundation, Inc. 693159764Sobrien# 694159764Sobrien# This file is free software; the Free Software Foundation 695159764Sobrien# gives unlimited permission to copy and/or distribute it, 696159764Sobrien# with or without modifications, as long as this notice is preserved. 697159764Sobrien 698234449Sobrien# serial 6 699159764Sobrien 700159764Sobrien# AM_MISSING_PROG(NAME, PROGRAM) 701159764Sobrien# ------------------------------ 702159764SobrienAC_DEFUN([AM_MISSING_PROG], 703159764Sobrien[AC_REQUIRE([AM_MISSING_HAS_RUN]) 704159764Sobrien$1=${$1-"${am_missing_run}$2"} 705159764SobrienAC_SUBST($1)]) 706159764Sobrien 707159764Sobrien 708159764Sobrien# AM_MISSING_HAS_RUN 709159764Sobrien# ------------------ 710159764Sobrien# Define MISSING if not defined so far and test if it supports --run. 711159764Sobrien# If it does, set am_missing_run to use it, otherwise, to nothing. 712159764SobrienAC_DEFUN([AM_MISSING_HAS_RUN], 713159764Sobrien[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 714175296SobrienAC_REQUIRE_AUX_FILE([missing])dnl 715234449Sobrienif test x"${MISSING+set}" != xset; then 716234449Sobrien case $am_aux_dir in 717234449Sobrien *\ * | *\ *) 718234449Sobrien MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 719234449Sobrien *) 720234449Sobrien MISSING="\${SHELL} $am_aux_dir/missing" ;; 721234449Sobrien esac 722234449Sobrienfi 723159764Sobrien# Use eval to expand $SHELL 724159764Sobrienif eval "$MISSING --run true"; then 725159764Sobrien am_missing_run="$MISSING --run " 726133359Sobrienelse 727159764Sobrien am_missing_run= 728159764Sobrien AC_MSG_WARN([`missing' script is too old or missing]) 729159764Sobrienfi 730133359Sobrien]) 731133359Sobrien 732175296Sobrien# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 733159764Sobrien# 734159764Sobrien# This file is free software; the Free Software Foundation 735159764Sobrien# gives unlimited permission to copy and/or distribute it, 736159764Sobrien# with or without modifications, as long as this notice is preserved. 737133359Sobrien 738159764Sobrien# AM_PROG_MKDIR_P 739159764Sobrien# --------------- 740175296Sobrien# Check for `mkdir -p'. 741159764SobrienAC_DEFUN([AM_PROG_MKDIR_P], 742175296Sobrien[AC_PREREQ([2.60])dnl 743175296SobrienAC_REQUIRE([AC_PROG_MKDIR_P])dnl 744175296Sobriendnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 745175296Sobriendnl while keeping a definition of mkdir_p for backward compatibility. 746175296Sobriendnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 747175296Sobriendnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 748175296Sobriendnl Makefile.ins that do not define MKDIR_P, so we do our own 749175296Sobriendnl adjustment using top_builddir (which is defined more often than 750175296Sobriendnl MKDIR_P). 751175296SobrienAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 752175296Sobriencase $mkdir_p in 753175296Sobrien [[\\/$]]* | ?:[[\\/]]*) ;; 754175296Sobrien */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 755175296Sobrienesac 756175296Sobrien]) 757133359Sobrien 758159764Sobrien# Helper functions for option handling. -*- Autoconf -*- 759133359Sobrien 760234449Sobrien# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 761159764Sobrien# 762159764Sobrien# This file is free software; the Free Software Foundation 763159764Sobrien# gives unlimited permission to copy and/or distribute it, 764159764Sobrien# with or without modifications, as long as this notice is preserved. 765133359Sobrien 766234449Sobrien# serial 4 767133359Sobrien 768159764Sobrien# _AM_MANGLE_OPTION(NAME) 769159764Sobrien# ----------------------- 770159764SobrienAC_DEFUN([_AM_MANGLE_OPTION], 771159764Sobrien[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 772133359Sobrien 773159764Sobrien# _AM_SET_OPTION(NAME) 774159764Sobrien# ------------------------------ 775159764Sobrien# Set option NAME. Presently that only means defining a flag for this option. 776159764SobrienAC_DEFUN([_AM_SET_OPTION], 777159764Sobrien[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 778133359Sobrien 779159764Sobrien# _AM_SET_OPTIONS(OPTIONS) 780159764Sobrien# ---------------------------------- 781159764Sobrien# OPTIONS is a space-separated list of Automake options. 782159764SobrienAC_DEFUN([_AM_SET_OPTIONS], 783234449Sobrien[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 784133359Sobrien 785159764Sobrien# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 786159764Sobrien# ------------------------------------------- 787159764Sobrien# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 788159764SobrienAC_DEFUN([_AM_IF_OPTION], 789159764Sobrien[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 790133359Sobrien 791159764Sobrien# Check to make sure that the build environment is sane. -*- Autoconf -*- 792133359Sobrien 793234449Sobrien# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 794159764Sobrien# Free Software Foundation, Inc. 795159764Sobrien# 796159764Sobrien# This file is free software; the Free Software Foundation 797159764Sobrien# gives unlimited permission to copy and/or distribute it, 798159764Sobrien# with or without modifications, as long as this notice is preserved. 799133359Sobrien 800234449Sobrien# serial 5 801133359Sobrien 802159764Sobrien# AM_SANITY_CHECK 803159764Sobrien# --------------- 804159764SobrienAC_DEFUN([AM_SANITY_CHECK], 805159764Sobrien[AC_MSG_CHECKING([whether build environment is sane]) 806159764Sobrien# Just in case 807159764Sobriensleep 1 808159764Sobrienecho timestamp > conftest.file 809234449Sobrien# Reject unsafe characters in $srcdir or the absolute working directory 810234449Sobrien# name. Accept space and tab only in the latter. 811234449Sobrienam_lf=' 812234449Sobrien' 813234449Sobriencase `pwd` in 814234449Sobrien *[[\\\"\#\$\&\'\`$am_lf]]*) 815234449Sobrien AC_MSG_ERROR([unsafe absolute working directory name]);; 816234449Sobrienesac 817234449Sobriencase $srcdir in 818234449Sobrien *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 819234449Sobrien AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 820234449Sobrienesac 821234449Sobrien 822159764Sobrien# Do `set' in a subshell so we don't clobber the current shell's 823159764Sobrien# arguments. Must try -L first in case configure is actually a 824159764Sobrien# symlink; some systems play weird games with the mod time of symlinks 825159764Sobrien# (eg FreeBSD returns the mod time of the symlink's containing 826159764Sobrien# directory). 827159764Sobrienif ( 828234449Sobrien set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 829159764Sobrien if test "$[*]" = "X"; then 830159764Sobrien # -L didn't work. 831234449Sobrien set X `ls -t "$srcdir/configure" conftest.file` 832159764Sobrien fi 833159764Sobrien rm -f conftest.file 834159764Sobrien if test "$[*]" != "X $srcdir/configure conftest.file" \ 835159764Sobrien && test "$[*]" != "X conftest.file $srcdir/configure"; then 836133359Sobrien 837159764Sobrien # If neither matched, then we have a broken ls. This can happen 838159764Sobrien # if, for instance, CONFIG_SHELL is bash and it inherits a 839159764Sobrien # broken ls alias from the environment. This has actually 840159764Sobrien # happened. Such a system could not be considered "sane". 841159764Sobrien AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 842159764Sobrienalias in your environment]) 843159764Sobrien fi 844133359Sobrien 845159764Sobrien test "$[2]" = conftest.file 846159764Sobrien ) 847159764Sobrienthen 848159764Sobrien # Ok. 849159764Sobrien : 850159764Sobrienelse 851159764Sobrien AC_MSG_ERROR([newly created file is older than distributed files! 852159764SobrienCheck your system clock]) 853159764Sobrienfi 854159764SobrienAC_MSG_RESULT(yes)]) 855139368Sobrien 856234449Sobrien# Copyright (C) 2009 Free Software Foundation, Inc. 857234449Sobrien# 858234449Sobrien# This file is free software; the Free Software Foundation 859234449Sobrien# gives unlimited permission to copy and/or distribute it, 860234449Sobrien# with or without modifications, as long as this notice is preserved. 861234449Sobrien 862234449Sobrien# serial 1 863234449Sobrien 864234449Sobrien# AM_SILENT_RULES([DEFAULT]) 865234449Sobrien# -------------------------- 866234449Sobrien# Enable less verbose build rules; with the default set to DEFAULT 867234449Sobrien# (`yes' being less verbose, `no' or empty being verbose). 868234449SobrienAC_DEFUN([AM_SILENT_RULES], 869234449Sobrien[AC_ARG_ENABLE([silent-rules], 870234449Sobrien[ --enable-silent-rules less verbose build output (undo: `make V=1') 871234449Sobrien --disable-silent-rules verbose build output (undo: `make V=0')]) 872234449Sobriencase $enable_silent_rules in 873234449Sobrienyes) AM_DEFAULT_VERBOSITY=0;; 874234449Sobrienno) AM_DEFAULT_VERBOSITY=1;; 875234449Sobrien*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 876234449Sobrienesac 877234449SobrienAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 878234449SobrienAM_BACKSLASH='\' 879234449SobrienAC_SUBST([AM_BACKSLASH])dnl 880234449Sobrien_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 881234449Sobrien]) 882234449Sobrien 883159764Sobrien# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 884159764Sobrien# 885159764Sobrien# This file is free software; the Free Software Foundation 886159764Sobrien# gives unlimited permission to copy and/or distribute it, 887159764Sobrien# with or without modifications, as long as this notice is preserved. 888133359Sobrien 889159764Sobrien# AM_PROG_INSTALL_STRIP 890159764Sobrien# --------------------- 891159764Sobrien# One issue with vendor `install' (even GNU) is that you can't 892159764Sobrien# specify the program used to strip binaries. This is especially 893159764Sobrien# annoying in cross-compiling environments, where the build's strip 894159764Sobrien# is unlikely to handle the host's binaries. 895159764Sobrien# Fortunately install-sh will honor a STRIPPROG variable, so we 896159764Sobrien# always use install-sh in `make install-strip', and initialize 897159764Sobrien# STRIPPROG with the value of the STRIP variable (set by the user). 898159764SobrienAC_DEFUN([AM_PROG_INSTALL_STRIP], 899159764Sobrien[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 900159764Sobrien# Installed binaries are usually stripped using `strip' when the user 901159764Sobrien# run `make install-strip'. However `strip' might not be the right 902159764Sobrien# tool to use in cross-compilation environments, therefore Automake 903159764Sobrien# will honor the `STRIP' environment variable to overrule this program. 904159764Sobriendnl Don't test for $cross_compiling = yes, because it might be `maybe'. 905159764Sobrienif test "$cross_compiling" != no; then 906159764Sobrien AC_CHECK_TOOL([STRIP], [strip], :) 907159764Sobrienfi 908175296SobrienINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 909159764SobrienAC_SUBST([INSTALL_STRIP_PROGRAM])]) 910133359Sobrien 911234449Sobrien# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 912175296Sobrien# 913175296Sobrien# This file is free software; the Free Software Foundation 914175296Sobrien# gives unlimited permission to copy and/or distribute it, 915175296Sobrien# with or without modifications, as long as this notice is preserved. 916175296Sobrien 917234449Sobrien# serial 2 918234449Sobrien 919175296Sobrien# _AM_SUBST_NOTMAKE(VARIABLE) 920175296Sobrien# --------------------------- 921234449Sobrien# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 922175296Sobrien# This macro is traced by Automake. 923175296SobrienAC_DEFUN([_AM_SUBST_NOTMAKE]) 924175296Sobrien 925234449Sobrien# AM_SUBST_NOTMAKE(VARIABLE) 926234449Sobrien# --------------------------- 927234449Sobrien# Public sister of _AM_SUBST_NOTMAKE. 928234449SobrienAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 929234449Sobrien 930159764Sobrien# Check how to create a tarball. -*- Autoconf -*- 931133359Sobrien 932159764Sobrien# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 933159764Sobrien# 934159764Sobrien# This file is free software; the Free Software Foundation 935159764Sobrien# gives unlimited permission to copy and/or distribute it, 936159764Sobrien# with or without modifications, as long as this notice is preserved. 937133359Sobrien 938159764Sobrien# serial 2 939159764Sobrien 940159764Sobrien# _AM_PROG_TAR(FORMAT) 941159764Sobrien# -------------------- 942159764Sobrien# Check how to create a tarball in format FORMAT. 943159764Sobrien# FORMAT should be one of `v7', `ustar', or `pax'. 944159764Sobrien# 945159764Sobrien# Substitute a variable $(am__tar) that is a command 946159764Sobrien# writing to stdout a FORMAT-tarball containing the directory 947159764Sobrien# $tardir. 948159764Sobrien# tardir=directory && $(am__tar) > result.tar 949159764Sobrien# 950159764Sobrien# Substitute a variable $(am__untar) that extract such 951159764Sobrien# a tarball read from stdin. 952159764Sobrien# $(am__untar) < result.tar 953159764SobrienAC_DEFUN([_AM_PROG_TAR], 954159764Sobrien[# Always define AMTAR for backward compatibility. 955159764SobrienAM_MISSING_PROG([AMTAR], [tar]) 956159764Sobrienm4_if([$1], [v7], 957159764Sobrien [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 958159764Sobrien [m4_case([$1], [ustar],, [pax],, 959159764Sobrien [m4_fatal([Unknown tar format])]) 960159764SobrienAC_MSG_CHECKING([how to create a $1 tar archive]) 961159764Sobrien# Loop over all known methods to create a tar archive until one works. 962159764Sobrien_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 963159764Sobrien_am_tools=${am_cv_prog_tar_$1-$_am_tools} 964159764Sobrien# Do not fold the above two line into one, because Tru64 sh and 965159764Sobrien# Solaris sh will not grok spaces in the rhs of `-'. 966159764Sobrienfor _am_tool in $_am_tools 967159764Sobriendo 968159764Sobrien case $_am_tool in 969159764Sobrien gnutar) 970159764Sobrien for _am_tar in tar gnutar gtar; 971159764Sobrien do 972159764Sobrien AM_RUN_LOG([$_am_tar --version]) && break 973159764Sobrien done 974159764Sobrien am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 975159764Sobrien am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 976159764Sobrien am__untar="$_am_tar -xf -" 977139368Sobrien ;; 978159764Sobrien plaintar) 979159764Sobrien # Must skip GNU tar: if it does not support --format= it doesn't create 980159764Sobrien # ustar tarball either. 981159764Sobrien (tar --version) >/dev/null 2>&1 && continue 982159764Sobrien am__tar='tar chf - "$$tardir"' 983159764Sobrien am__tar_='tar chf - "$tardir"' 984159764Sobrien am__untar='tar xf -' 985133359Sobrien ;; 986159764Sobrien pax) 987159764Sobrien am__tar='pax -L -x $1 -w "$$tardir"' 988159764Sobrien am__tar_='pax -L -x $1 -w "$tardir"' 989159764Sobrien am__untar='pax -r' 990133359Sobrien ;; 991159764Sobrien cpio) 992159764Sobrien am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 993159764Sobrien am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 994159764Sobrien am__untar='cpio -i -H $1 -d' 995139368Sobrien ;; 996159764Sobrien none) 997159764Sobrien am__tar=false 998159764Sobrien am__tar_=false 999159764Sobrien am__untar=false 1000159764Sobrien ;; 1001133359Sobrien esac 1002133359Sobrien 1003159764Sobrien # If the value was cached, stop now. We just wanted to have am__tar 1004159764Sobrien # and am__untar set. 1005159764Sobrien test -n "${am_cv_prog_tar_$1}" && break 1006133359Sobrien 1007159764Sobrien # tar/untar a dummy directory, and stop if the command works 1008159764Sobrien rm -rf conftest.dir 1009159764Sobrien mkdir conftest.dir 1010159764Sobrien echo GrepMe > conftest.dir/file 1011159764Sobrien AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1012159764Sobrien rm -rf conftest.dir 1013159764Sobrien if test -s conftest.tar; then 1014159764Sobrien AM_RUN_LOG([$am__untar <conftest.tar]) 1015159764Sobrien grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1016133359Sobrien fi 1017159764Sobriendone 1018159764Sobrienrm -rf conftest.dir 1019133359Sobrien 1020159764SobrienAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1021159764SobrienAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1022159764SobrienAC_SUBST([am__tar]) 1023159764SobrienAC_SUBST([am__untar]) 1024159764Sobrien]) # _AM_PROG_TAR 1025133359Sobrien 1026234449Sobrienm4_include([m4/libtool.m4]) 1027234449Sobrienm4_include([m4/ltoptions.m4]) 1028234449Sobrienm4_include([m4/ltsugar.m4]) 1029234449Sobrienm4_include([m4/ltversion.m4]) 1030234449Sobrienm4_include([m4/lt~obsolete.m4]) 1031159764Sobrienm4_include([acinclude.m4]) 1032