1# generated automatically by aclocal 1.11.6 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5# Inc. 6# This file is free software; the Free Software Foundation 7# gives unlimited permission to copy and/or distribute it, 8# with or without modifications, as long as this notice is preserved. 9 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13# PARTICULAR PURPOSE. 14 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18[m4_warning([this file was generated for autoconf 2.69. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically `autoreconf'.])]) 22 23# =========================================================================== 24# http://www.gnu.org/software/autoconf-archive/ax_boost_base.html 25# =========================================================================== 26# 27# SYNOPSIS 28# 29# AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 30# 31# DESCRIPTION 32# 33# Test for the Boost C++ libraries of a particular version (or newer) 34# 35# If no path to the installed boost library is given the macro searchs 36# under /usr, /usr/local, /opt and /opt/local and evaluates the 37# $BOOST_ROOT environment variable. Further documentation is available at 38# <http://randspringer.de/boost/index.html>. 39# 40# This macro calls: 41# 42# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS) 43# 44# And sets: 45# 46# HAVE_BOOST 47# 48# LICENSE 49# 50# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> 51# Copyright (c) 2009 Peter Adolphs 52# 53# Copying and distribution of this file, with or without modification, are 54# permitted in any medium without royalty provided the copyright notice 55# and this notice are preserved. This file is offered as-is, without any 56# warranty. 57 58#serial 20 59 60AC_DEFUN([AX_BOOST_BASE], 61[ 62AC_ARG_WITH([boost], 63 [AS_HELP_STRING([--with-boost@<:@=ARG@:>@], 64 [use Boost library from a standard location (ARG=yes), 65 from the specified location (ARG=<path>), 66 or disable it (ARG=no) 67 @<:@ARG=yes@:>@ ])], 68 [ 69 if test "$withval" = "no"; then 70 want_boost="no" 71 elif test "$withval" = "yes"; then 72 want_boost="yes" 73 ac_boost_path="" 74 else 75 want_boost="yes" 76 ac_boost_path="$withval" 77 fi 78 ], 79 [want_boost="yes"]) 80 81 82AC_ARG_WITH([boost-libdir], 83 AS_HELP_STRING([--with-boost-libdir=LIB_DIR], 84 [Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]), 85 [ 86 if test -d "$withval" 87 then 88 ac_boost_lib_path="$withval" 89 else 90 AC_MSG_ERROR(--with-boost-libdir expected directory name) 91 fi 92 ], 93 [ac_boost_lib_path=""] 94) 95 96if test "x$want_boost" = "xyes"; then 97 boost_lib_version_req=ifelse([$1], ,1.20.0,$1) 98 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'` 99 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'` 100 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'` 101 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` 102 if test "x$boost_lib_version_req_sub_minor" = "x" ; then 103 boost_lib_version_req_sub_minor="0" 104 fi 105 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` 106 AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req) 107 succeeded=no 108 109 dnl On 64-bit systems check for system libraries in both lib64 and lib. 110 dnl The former is specified by FHS, but e.g. Debian does not adhere to 111 dnl this (as it rises problems for generic multi-arch support). 112 dnl The last entry in the list is chosen by default when no libraries 113 dnl are found, e.g. when only header-only libraries are installed! 114 libsubdirs="lib" 115 ax_arch=`uname -m` 116 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then 117 libsubdirs="lib64 lib lib64" 118 fi 119 120 dnl first we check the system location for boost libraries 121 dnl this location ist chosen if boost libraries are installed with the --layout=system option 122 dnl or if you install boost with RPM 123 if test "$ac_boost_path" != ""; then 124 BOOST_CPPFLAGS="-I$ac_boost_path/include" 125 for ac_boost_path_tmp in $libsubdirs; do 126 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then 127 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" 128 break 129 fi 130 done 131 elif test "$cross_compiling" != yes; then 132 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do 133 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then 134 for libsubdir in $libsubdirs ; do 135 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 136 done 137 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" 138 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" 139 break; 140 fi 141 done 142 fi 143 144 dnl overwrite ld flags if we have required special directory with 145 dnl --with-boost-libdir parameter 146 if test "$ac_boost_lib_path" != ""; then 147 BOOST_LDFLAGS="-L$ac_boost_lib_path" 148 fi 149 150 CPPFLAGS_SAVED="$CPPFLAGS" 151 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 152 export CPPFLAGS 153 154 LDFLAGS_SAVED="$LDFLAGS" 155 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 156 export LDFLAGS 157 158 AC_REQUIRE([AC_PROG_CXX]) 159 AC_LANG_PUSH(C++) 160 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 161 @%:@include <boost/version.hpp> 162 ]], [[ 163 #if BOOST_VERSION >= $WANT_BOOST_VERSION 164 // Everything is okay 165 #else 166 # error Boost version is too old 167 #endif 168 ]])],[ 169 AC_MSG_RESULT(yes) 170 succeeded=yes 171 found_system=yes 172 ],[ 173 ]) 174 AC_LANG_POP([C++]) 175 176 177 178 dnl if we found no boost with system layout we search for boost libraries 179 dnl built and installed without the --layout=system option or for a staged(not installed) version 180 if test "x$succeeded" != "xyes"; then 181 _version=0 182 if test "$ac_boost_path" != ""; then 183 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 184 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 185 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 186 V_CHECK=`expr $_version_tmp \> $_version` 187 if test "$V_CHECK" = "1" ; then 188 _version=$_version_tmp 189 fi 190 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 191 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 192 done 193 fi 194 else 195 if test "$cross_compiling" != yes; then 196 for ac_boost_path in /usr /usr/local /opt /opt/local ; do 197 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 198 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 199 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 200 V_CHECK=`expr $_version_tmp \> $_version` 201 if test "$V_CHECK" = "1" ; then 202 _version=$_version_tmp 203 best_path=$ac_boost_path 204 fi 205 done 206 fi 207 done 208 209 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 210 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" 211 if test "$ac_boost_lib_path" = ""; then 212 for libsubdir in $libsubdirs ; do 213 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 214 done 215 BOOST_LDFLAGS="-L$best_path/$libsubdir" 216 fi 217 fi 218 219 if test "x$BOOST_ROOT" != "x"; then 220 for libsubdir in $libsubdirs ; do 221 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 222 done 223 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then 224 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` 225 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` 226 stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'` 227 V_CHECK=`expr $stage_version_shorten \>\= $_version` 228 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then 229 AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT) 230 BOOST_CPPFLAGS="-I$BOOST_ROOT" 231 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" 232 fi 233 fi 234 fi 235 fi 236 237 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 238 export CPPFLAGS 239 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 240 export LDFLAGS 241 242 AC_LANG_PUSH(C++) 243 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 244 @%:@include <boost/version.hpp> 245 ]], [[ 246 #if BOOST_VERSION >= $WANT_BOOST_VERSION 247 // Everything is okay 248 #else 249 # error Boost version is too old 250 #endif 251 ]])],[ 252 AC_MSG_RESULT(yes) 253 succeeded=yes 254 found_system=yes 255 ],[ 256 ]) 257 AC_LANG_POP([C++]) 258 fi 259 260 if test "$succeeded" != "yes" ; then 261 if test "$_version" = "0" ; then 262 AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]]) 263 else 264 AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) 265 fi 266 # execute ACTION-IF-NOT-FOUND (if present): 267 ifelse([$3], , :, [$3]) 268 else 269 AC_SUBST(BOOST_CPPFLAGS) 270 AC_SUBST(BOOST_LDFLAGS) 271 AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available]) 272 # execute ACTION-IF-FOUND (if present): 273 ifelse([$2], , :, [$2]) 274 fi 275 276 CPPFLAGS="$CPPFLAGS_SAVED" 277 LDFLAGS="$LDFLAGS_SAVED" 278fi 279 280]) 281 282# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 283# Foundation, Inc. 284# 285# This file is free software; the Free Software Foundation 286# gives unlimited permission to copy and/or distribute it, 287# with or without modifications, as long as this notice is preserved. 288 289# serial 1 290 291# AM_AUTOMAKE_VERSION(VERSION) 292# ---------------------------- 293# Automake X.Y traces this macro to ensure aclocal.m4 has been 294# generated from the m4 files accompanying Automake X.Y. 295# (This private macro should not be called outside this file.) 296AC_DEFUN([AM_AUTOMAKE_VERSION], 297[am__api_version='1.11' 298dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 299dnl require some minimum version. Point them to the right macro. 300m4_if([$1], [1.11.6], [], 301 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 302]) 303 304# _AM_AUTOCONF_VERSION(VERSION) 305# ----------------------------- 306# aclocal traces this macro to find the Autoconf version. 307# This is a private macro too. Using m4_define simplifies 308# the logic in aclocal, which can simply ignore this definition. 309m4_define([_AM_AUTOCONF_VERSION], []) 310 311# AM_SET_CURRENT_AUTOMAKE_VERSION 312# ------------------------------- 313# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 314# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 315AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 316[AM_AUTOMAKE_VERSION([1.11.6])dnl 317m4_ifndef([AC_AUTOCONF_VERSION], 318 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 319_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 320 321# AM_AUX_DIR_EXPAND -*- Autoconf -*- 322 323# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 324# 325# This file is free software; the Free Software Foundation 326# gives unlimited permission to copy and/or distribute it, 327# with or without modifications, as long as this notice is preserved. 328 329# serial 1 330 331# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 332# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 333# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 334# 335# Of course, Automake must honor this variable whenever it calls a 336# tool from the auxiliary directory. The problem is that $srcdir (and 337# therefore $ac_aux_dir as well) can be either absolute or relative, 338# depending on how configure is run. This is pretty annoying, since 339# it makes $ac_aux_dir quite unusable in subdirectories: in the top 340# source directory, any form will work fine, but in subdirectories a 341# relative path needs to be adjusted first. 342# 343# $ac_aux_dir/missing 344# fails when called from a subdirectory if $ac_aux_dir is relative 345# $top_srcdir/$ac_aux_dir/missing 346# fails if $ac_aux_dir is absolute, 347# fails when called from a subdirectory in a VPATH build with 348# a relative $ac_aux_dir 349# 350# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 351# are both prefixed by $srcdir. In an in-source build this is usually 352# harmless because $srcdir is `.', but things will broke when you 353# start a VPATH build or use an absolute $srcdir. 354# 355# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 356# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 357# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 358# and then we would define $MISSING as 359# MISSING="\${SHELL} $am_aux_dir/missing" 360# This will work as long as MISSING is not called from configure, because 361# unfortunately $(top_srcdir) has no meaning in configure. 362# However there are other variables, like CC, which are often used in 363# configure, and could therefore not use this "fixed" $ac_aux_dir. 364# 365# Another solution, used here, is to always expand $ac_aux_dir to an 366# absolute PATH. The drawback is that using absolute paths prevent a 367# configured tree to be moved without reconfiguration. 368 369AC_DEFUN([AM_AUX_DIR_EXPAND], 370[dnl Rely on autoconf to set up CDPATH properly. 371AC_PREREQ([2.50])dnl 372# expand $ac_aux_dir to an absolute path 373am_aux_dir=`cd $ac_aux_dir && pwd` 374]) 375 376# AM_CONDITIONAL -*- Autoconf -*- 377 378# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 379# Free Software Foundation, Inc. 380# 381# This file is free software; the Free Software Foundation 382# gives unlimited permission to copy and/or distribute it, 383# with or without modifications, as long as this notice is preserved. 384 385# serial 9 386 387# AM_CONDITIONAL(NAME, SHELL-CONDITION) 388# ------------------------------------- 389# Define a conditional. 390AC_DEFUN([AM_CONDITIONAL], 391[AC_PREREQ(2.52)dnl 392 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 393 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 394AC_SUBST([$1_TRUE])dnl 395AC_SUBST([$1_FALSE])dnl 396_AM_SUBST_NOTMAKE([$1_TRUE])dnl 397_AM_SUBST_NOTMAKE([$1_FALSE])dnl 398m4_define([_AM_COND_VALUE_$1], [$2])dnl 399if $2; then 400 $1_TRUE= 401 $1_FALSE='#' 402else 403 $1_TRUE='#' 404 $1_FALSE= 405fi 406AC_CONFIG_COMMANDS_PRE( 407[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 408 AC_MSG_ERROR([[conditional "$1" was never defined. 409Usually this means the macro was only invoked conditionally.]]) 410fi])]) 411 412# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 413# 2010, 2011 Free Software Foundation, Inc. 414# 415# This file is free software; the Free Software Foundation 416# gives unlimited permission to copy and/or distribute it, 417# with or without modifications, as long as this notice is preserved. 418 419# serial 12 420 421# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 422# written in clear, in which case automake, when reading aclocal.m4, 423# will think it sees a *use*, and therefore will trigger all it's 424# C support machinery. Also note that it means that autoscan, seeing 425# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 426 427 428# _AM_DEPENDENCIES(NAME) 429# ---------------------- 430# See how the compiler implements dependency checking. 431# NAME is "CC", "CXX", "GCJ", or "OBJC". 432# We try a few techniques and use that to set a single cache variable. 433# 434# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 435# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 436# dependency, and given that the user is not expected to run this macro, 437# just rely on AC_PROG_CC. 438AC_DEFUN([_AM_DEPENDENCIES], 439[AC_REQUIRE([AM_SET_DEPDIR])dnl 440AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 441AC_REQUIRE([AM_MAKE_INCLUDE])dnl 442AC_REQUIRE([AM_DEP_TRACK])dnl 443 444ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 445 [$1], CXX, [depcc="$CXX" am_compiler_list=], 446 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 447 [$1], UPC, [depcc="$UPC" am_compiler_list=], 448 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 449 [depcc="$$1" am_compiler_list=]) 450 451AC_CACHE_CHECK([dependency style of $depcc], 452 [am_cv_$1_dependencies_compiler_type], 453[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 454 # We make a subdir and do the tests there. Otherwise we can end up 455 # making bogus files that we don't know about and never remove. For 456 # instance it was reported that on HP-UX the gcc test will end up 457 # making a dummy file named `D' -- because `-MD' means `put the output 458 # in D'. 459 rm -rf conftest.dir 460 mkdir conftest.dir 461 # Copy depcomp to subdir because otherwise we won't find it if we're 462 # using a relative directory. 463 cp "$am_depcomp" conftest.dir 464 cd conftest.dir 465 # We will build objects and dependencies in a subdirectory because 466 # it helps to detect inapplicable dependency modes. For instance 467 # both Tru64's cc and ICC support -MD to output dependencies as a 468 # side effect of compilation, but ICC will put the dependencies in 469 # the current directory while Tru64 will put them in the object 470 # directory. 471 mkdir sub 472 473 am_cv_$1_dependencies_compiler_type=none 474 if test "$am_compiler_list" = ""; then 475 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 476 fi 477 am__universal=false 478 m4_case([$1], [CC], 479 [case " $depcc " in #( 480 *\ -arch\ *\ -arch\ *) am__universal=true ;; 481 esac], 482 [CXX], 483 [case " $depcc " in #( 484 *\ -arch\ *\ -arch\ *) am__universal=true ;; 485 esac]) 486 487 for depmode in $am_compiler_list; do 488 # Setup a source with many dependencies, because some compilers 489 # like to wrap large dependency lists on column 80 (with \), and 490 # we should not choose a depcomp mode which is confused by this. 491 # 492 # We need to recreate these files for each test, as the compiler may 493 # overwrite some of them when testing with obscure command lines. 494 # This happens at least with the AIX C compiler. 495 : > sub/conftest.c 496 for i in 1 2 3 4 5 6; do 497 echo '#include "conftst'$i'.h"' >> sub/conftest.c 498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 499 # Solaris 8's {/usr,}/bin/sh. 500 touch sub/conftst$i.h 501 done 502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 503 504 # We check with `-c' and `-o' for the sake of the "dashmstdout" 505 # mode. It turns out that the SunPro C++ compiler does not properly 506 # handle `-M -o', and we need to detect this. Also, some Intel 507 # versions had trouble with output in subdirs 508 am__obj=sub/conftest.${OBJEXT-o} 509 am__minus_obj="-o $am__obj" 510 case $depmode in 511 gcc) 512 # This depmode causes a compiler race in universal mode. 513 test "$am__universal" = false || continue 514 ;; 515 nosideeffect) 516 # after this tag, mechanisms are not by side-effect, so they'll 517 # only be used when explicitly requested 518 if test "x$enable_dependency_tracking" = xyes; then 519 continue 520 else 521 break 522 fi 523 ;; 524 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 525 # This compiler won't grok `-c -o', but also, the minuso test has 526 # not run yet. These depmodes are late enough in the game, and 527 # so weak that their functioning should not be impacted. 528 am__obj=conftest.${OBJEXT-o} 529 am__minus_obj= 530 ;; 531 none) break ;; 532 esac 533 if depmode=$depmode \ 534 source=sub/conftest.c object=$am__obj \ 535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 536 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 537 >/dev/null 2>conftest.err && 538 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 539 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 540 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 541 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 542 # icc doesn't choke on unknown options, it will just issue warnings 543 # or remarks (even with -Werror). So we grep stderr for any message 544 # that says an option was ignored or not supported. 545 # When given -MP, icc 7.0 and 7.1 complain thusly: 546 # icc: Command line warning: ignoring option '-M'; no argument required 547 # The diagnosis changed in icc 8.0: 548 # icc: Command line remark: option '-MP' not supported 549 if (grep 'ignoring option' conftest.err || 550 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 551 am_cv_$1_dependencies_compiler_type=$depmode 552 break 553 fi 554 fi 555 done 556 557 cd .. 558 rm -rf conftest.dir 559else 560 am_cv_$1_dependencies_compiler_type=none 561fi 562]) 563AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 564AM_CONDITIONAL([am__fastdep$1], [ 565 test "x$enable_dependency_tracking" != xno \ 566 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 567]) 568 569 570# AM_SET_DEPDIR 571# ------------- 572# Choose a directory name for dependency files. 573# This macro is AC_REQUIREd in _AM_DEPENDENCIES 574AC_DEFUN([AM_SET_DEPDIR], 575[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 576AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 577]) 578 579 580# AM_DEP_TRACK 581# ------------ 582AC_DEFUN([AM_DEP_TRACK], 583[AC_ARG_ENABLE(dependency-tracking, 584[ --disable-dependency-tracking speeds up one-time build 585 --enable-dependency-tracking do not reject slow dependency extractors]) 586if test "x$enable_dependency_tracking" != xno; then 587 am_depcomp="$ac_aux_dir/depcomp" 588 AMDEPBACKSLASH='\' 589 am__nodep='_no' 590fi 591AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 592AC_SUBST([AMDEPBACKSLASH])dnl 593_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 594AC_SUBST([am__nodep])dnl 595_AM_SUBST_NOTMAKE([am__nodep])dnl 596]) 597 598# Generate code to set up dependency tracking. -*- Autoconf -*- 599 600# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 601# Free Software Foundation, Inc. 602# 603# This file is free software; the Free Software Foundation 604# gives unlimited permission to copy and/or distribute it, 605# with or without modifications, as long as this notice is preserved. 606 607#serial 5 608 609# _AM_OUTPUT_DEPENDENCY_COMMANDS 610# ------------------------------ 611AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 612[{ 613 # Autoconf 2.62 quotes --file arguments for eval, but not when files 614 # are listed without --file. Let's play safe and only enable the eval 615 # if we detect the quoting. 616 case $CONFIG_FILES in 617 *\'*) eval set x "$CONFIG_FILES" ;; 618 *) set x $CONFIG_FILES ;; 619 esac 620 shift 621 for mf 622 do 623 # Strip MF so we end up with the name of the file. 624 mf=`echo "$mf" | sed -e 's/:.*$//'` 625 # Check whether this is an Automake generated Makefile or not. 626 # We used to match only the files named `Makefile.in', but 627 # some people rename them; so instead we look at the file content. 628 # Grep'ing the first line is not enough: some people post-process 629 # each Makefile.in and add a new line on top of each file to say so. 630 # Grep'ing the whole file is not good either: AIX grep has a line 631 # limit of 2048, but all sed's we know have understand at least 4000. 632 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 633 dirpart=`AS_DIRNAME("$mf")` 634 else 635 continue 636 fi 637 # Extract the definition of DEPDIR, am__include, and am__quote 638 # from the Makefile without running `make'. 639 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 640 test -z "$DEPDIR" && continue 641 am__include=`sed -n 's/^am__include = //p' < "$mf"` 642 test -z "am__include" && continue 643 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 644 # When using ansi2knr, U may be empty or an underscore; expand it 645 U=`sed -n 's/^U = //p' < "$mf"` 646 # Find all dependency output files, they are included files with 647 # $(DEPDIR) in their names. We invoke sed twice because it is the 648 # simplest approach to changing $(DEPDIR) to its actual value in the 649 # expansion. 650 for file in `sed -n " 651 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 652 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 653 # Make sure the directory exists. 654 test -f "$dirpart/$file" && continue 655 fdir=`AS_DIRNAME(["$file"])` 656 AS_MKDIR_P([$dirpart/$fdir]) 657 # echo "creating $dirpart/$file" 658 echo '# dummy' > "$dirpart/$file" 659 done 660 done 661} 662])# _AM_OUTPUT_DEPENDENCY_COMMANDS 663 664 665# AM_OUTPUT_DEPENDENCY_COMMANDS 666# ----------------------------- 667# This macro should only be invoked once -- use via AC_REQUIRE. 668# 669# This code is only required when automatic dependency tracking 670# is enabled. FIXME. This creates each `.P' file that we will 671# need in order to bootstrap the dependency handling code. 672AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 673[AC_CONFIG_COMMANDS([depfiles], 674 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 675 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 676]) 677 678# Do all the work for Automake. -*- Autoconf -*- 679 680# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 681# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 682# 683# This file is free software; the Free Software Foundation 684# gives unlimited permission to copy and/or distribute it, 685# with or without modifications, as long as this notice is preserved. 686 687# serial 16 688 689# This macro actually does too much. Some checks are only needed if 690# your package does certain things. But this isn't really a big deal. 691 692# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 693# AM_INIT_AUTOMAKE([OPTIONS]) 694# ----------------------------------------------- 695# The call with PACKAGE and VERSION arguments is the old style 696# call (pre autoconf-2.50), which is being phased out. PACKAGE 697# and VERSION should now be passed to AC_INIT and removed from 698# the call to AM_INIT_AUTOMAKE. 699# We support both call styles for the transition. After 700# the next Automake release, Autoconf can make the AC_INIT 701# arguments mandatory, and then we can depend on a new Autoconf 702# release and drop the old call support. 703AC_DEFUN([AM_INIT_AUTOMAKE], 704[AC_PREREQ([2.62])dnl 705dnl Autoconf wants to disallow AM_ names. We explicitly allow 706dnl the ones we care about. 707m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 708AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 709AC_REQUIRE([AC_PROG_INSTALL])dnl 710if test "`cd $srcdir && pwd`" != "`pwd`"; then 711 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 712 # is not polluted with repeated "-I." 713 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 714 # test to see if srcdir already configured 715 if test -f $srcdir/config.status; then 716 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 717 fi 718fi 719 720# test whether we have cygpath 721if test -z "$CYGPATH_W"; then 722 if (cygpath --version) >/dev/null 2>/dev/null; then 723 CYGPATH_W='cygpath -w' 724 else 725 CYGPATH_W=echo 726 fi 727fi 728AC_SUBST([CYGPATH_W]) 729 730# Define the identity of the package. 731dnl Distinguish between old-style and new-style calls. 732m4_ifval([$2], 733[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 734 AC_SUBST([PACKAGE], [$1])dnl 735 AC_SUBST([VERSION], [$2])], 736[_AM_SET_OPTIONS([$1])dnl 737dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 738m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 739 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 740 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 741 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 742 743_AM_IF_OPTION([no-define],, 744[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 745 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 746 747# Some tools Automake needs. 748AC_REQUIRE([AM_SANITY_CHECK])dnl 749AC_REQUIRE([AC_ARG_PROGRAM])dnl 750AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 751AM_MISSING_PROG(AUTOCONF, autoconf) 752AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 753AM_MISSING_PROG(AUTOHEADER, autoheader) 754AM_MISSING_PROG(MAKEINFO, makeinfo) 755AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 756AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 757AC_REQUIRE([AM_PROG_MKDIR_P])dnl 758# We need awk for the "check" target. The system "awk" is bad on 759# some platforms. 760AC_REQUIRE([AC_PROG_AWK])dnl 761AC_REQUIRE([AC_PROG_MAKE_SET])dnl 762AC_REQUIRE([AM_SET_LEADING_DOT])dnl 763_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 764 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 765 [_AM_PROG_TAR([v7])])]) 766_AM_IF_OPTION([no-dependencies],, 767[AC_PROVIDE_IFELSE([AC_PROG_CC], 768 [_AM_DEPENDENCIES(CC)], 769 [define([AC_PROG_CC], 770 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 771AC_PROVIDE_IFELSE([AC_PROG_CXX], 772 [_AM_DEPENDENCIES(CXX)], 773 [define([AC_PROG_CXX], 774 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 775AC_PROVIDE_IFELSE([AC_PROG_OBJC], 776 [_AM_DEPENDENCIES(OBJC)], 777 [define([AC_PROG_OBJC], 778 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 779]) 780_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 781dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 782dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 783dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 784AC_CONFIG_COMMANDS_PRE(dnl 785[m4_provide_if([_AM_COMPILER_EXEEXT], 786 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 787]) 788 789dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 790dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 791dnl mangled by Autoconf and run in a shell conditional statement. 792m4_define([_AC_COMPILER_EXEEXT], 793m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 794 795 796# When config.status generates a header, we must update the stamp-h file. 797# This file resides in the same directory as the config header 798# that is generated. The stamp files are numbered to have different names. 799 800# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 801# loop where config.status creates the headers, so we can generate 802# our stamp files there. 803AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 804[# Compute $1's index in $config_headers. 805_am_arg=$1 806_am_stamp_count=1 807for _am_header in $config_headers :; do 808 case $_am_header in 809 $_am_arg | $_am_arg:* ) 810 break ;; 811 * ) 812 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 813 esac 814done 815echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 816 817# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 818# Inc. 819# 820# This file is free software; the Free Software Foundation 821# gives unlimited permission to copy and/or distribute it, 822# with or without modifications, as long as this notice is preserved. 823 824# serial 1 825 826# AM_PROG_INSTALL_SH 827# ------------------ 828# Define $install_sh. 829AC_DEFUN([AM_PROG_INSTALL_SH], 830[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 831if test x"${install_sh}" != xset; then 832 case $am_aux_dir in 833 *\ * | *\ *) 834 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 835 *) 836 install_sh="\${SHELL} $am_aux_dir/install-sh" 837 esac 838fi 839AC_SUBST(install_sh)]) 840 841# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 842# 843# This file is free software; the Free Software Foundation 844# gives unlimited permission to copy and/or distribute it, 845# with or without modifications, as long as this notice is preserved. 846 847# serial 2 848 849# Check whether the underlying file-system supports filenames 850# with a leading dot. For instance MS-DOS doesn't. 851AC_DEFUN([AM_SET_LEADING_DOT], 852[rm -rf .tst 2>/dev/null 853mkdir .tst 2>/dev/null 854if test -d .tst; then 855 am__leading_dot=. 856else 857 am__leading_dot=_ 858fi 859rmdir .tst 2>/dev/null 860AC_SUBST([am__leading_dot])]) 861 862# Check to see how 'make' treats includes. -*- Autoconf -*- 863 864# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 865# 866# This file is free software; the Free Software Foundation 867# gives unlimited permission to copy and/or distribute it, 868# with or without modifications, as long as this notice is preserved. 869 870# serial 4 871 872# AM_MAKE_INCLUDE() 873# ----------------- 874# Check to see how make treats includes. 875AC_DEFUN([AM_MAKE_INCLUDE], 876[am_make=${MAKE-make} 877cat > confinc << 'END' 878am__doit: 879 @echo this is the am__doit target 880.PHONY: am__doit 881END 882# If we don't find an include directive, just comment out the code. 883AC_MSG_CHECKING([for style of include used by $am_make]) 884am__include="#" 885am__quote= 886_am_result=none 887# First try GNU make style include. 888echo "include confinc" > confmf 889# Ignore all kinds of additional output from `make'. 890case `$am_make -s -f confmf 2> /dev/null` in #( 891*the\ am__doit\ target*) 892 am__include=include 893 am__quote= 894 _am_result=GNU 895 ;; 896esac 897# Now try BSD make style include. 898if test "$am__include" = "#"; then 899 echo '.include "confinc"' > confmf 900 case `$am_make -s -f confmf 2> /dev/null` in #( 901 *the\ am__doit\ target*) 902 am__include=.include 903 am__quote="\"" 904 _am_result=BSD 905 ;; 906 esac 907fi 908AC_SUBST([am__include]) 909AC_SUBST([am__quote]) 910AC_MSG_RESULT([$_am_result]) 911rm -f confinc confmf 912]) 913 914# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 915 916# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 917# Free Software Foundation, Inc. 918# 919# This file is free software; the Free Software Foundation 920# gives unlimited permission to copy and/or distribute it, 921# with or without modifications, as long as this notice is preserved. 922 923# serial 6 924 925# AM_MISSING_PROG(NAME, PROGRAM) 926# ------------------------------ 927AC_DEFUN([AM_MISSING_PROG], 928[AC_REQUIRE([AM_MISSING_HAS_RUN]) 929$1=${$1-"${am_missing_run}$2"} 930AC_SUBST($1)]) 931 932 933# AM_MISSING_HAS_RUN 934# ------------------ 935# Define MISSING if not defined so far and test if it supports --run. 936# If it does, set am_missing_run to use it, otherwise, to nothing. 937AC_DEFUN([AM_MISSING_HAS_RUN], 938[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 939AC_REQUIRE_AUX_FILE([missing])dnl 940if test x"${MISSING+set}" != xset; then 941 case $am_aux_dir in 942 *\ * | *\ *) 943 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 944 *) 945 MISSING="\${SHELL} $am_aux_dir/missing" ;; 946 esac 947fi 948# Use eval to expand $SHELL 949if eval "$MISSING --run true"; then 950 am_missing_run="$MISSING --run " 951else 952 am_missing_run= 953 AC_MSG_WARN([`missing' script is too old or missing]) 954fi 955]) 956 957# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 958# Inc. 959# 960# This file is free software; the Free Software Foundation 961# gives unlimited permission to copy and/or distribute it, 962# with or without modifications, as long as this notice is preserved. 963 964# serial 1 965 966# AM_PROG_MKDIR_P 967# --------------- 968# Check for `mkdir -p'. 969AC_DEFUN([AM_PROG_MKDIR_P], 970[AC_PREREQ([2.60])dnl 971AC_REQUIRE([AC_PROG_MKDIR_P])dnl 972dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 973dnl while keeping a definition of mkdir_p for backward compatibility. 974dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 975dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 976dnl Makefile.ins that do not define MKDIR_P, so we do our own 977dnl adjustment using top_builddir (which is defined more often than 978dnl MKDIR_P). 979AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 980case $mkdir_p in 981 [[\\/$]]* | ?:[[\\/]]*) ;; 982 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 983esac 984]) 985 986# Helper functions for option handling. -*- Autoconf -*- 987 988# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software 989# Foundation, Inc. 990# 991# This file is free software; the Free Software Foundation 992# gives unlimited permission to copy and/or distribute it, 993# with or without modifications, as long as this notice is preserved. 994 995# serial 5 996 997# _AM_MANGLE_OPTION(NAME) 998# ----------------------- 999AC_DEFUN([_AM_MANGLE_OPTION], 1000[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 1001 1002# _AM_SET_OPTION(NAME) 1003# -------------------- 1004# Set option NAME. Presently that only means defining a flag for this option. 1005AC_DEFUN([_AM_SET_OPTION], 1006[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 1007 1008# _AM_SET_OPTIONS(OPTIONS) 1009# ------------------------ 1010# OPTIONS is a space-separated list of Automake options. 1011AC_DEFUN([_AM_SET_OPTIONS], 1012[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1013 1014# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 1015# ------------------------------------------- 1016# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 1017AC_DEFUN([_AM_IF_OPTION], 1018[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1019 1020# Check to make sure that the build environment is sane. -*- Autoconf -*- 1021 1022# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 1023# Free Software Foundation, Inc. 1024# 1025# This file is free software; the Free Software Foundation 1026# gives unlimited permission to copy and/or distribute it, 1027# with or without modifications, as long as this notice is preserved. 1028 1029# serial 5 1030 1031# AM_SANITY_CHECK 1032# --------------- 1033AC_DEFUN([AM_SANITY_CHECK], 1034[AC_MSG_CHECKING([whether build environment is sane]) 1035# Just in case 1036sleep 1 1037echo timestamp > conftest.file 1038# Reject unsafe characters in $srcdir or the absolute working directory 1039# name. Accept space and tab only in the latter. 1040am_lf=' 1041' 1042case `pwd` in 1043 *[[\\\"\#\$\&\'\`$am_lf]]*) 1044 AC_MSG_ERROR([unsafe absolute working directory name]);; 1045esac 1046case $srcdir in 1047 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1048 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 1049esac 1050 1051# Do `set' in a subshell so we don't clobber the current shell's 1052# arguments. Must try -L first in case configure is actually a 1053# symlink; some systems play weird games with the mod time of symlinks 1054# (eg FreeBSD returns the mod time of the symlink's containing 1055# directory). 1056if ( 1057 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1058 if test "$[*]" = "X"; then 1059 # -L didn't work. 1060 set X `ls -t "$srcdir/configure" conftest.file` 1061 fi 1062 rm -f conftest.file 1063 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1064 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1065 1066 # If neither matched, then we have a broken ls. This can happen 1067 # if, for instance, CONFIG_SHELL is bash and it inherits a 1068 # broken ls alias from the environment. This has actually 1069 # happened. Such a system could not be considered "sane". 1070 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1071alias in your environment]) 1072 fi 1073 1074 test "$[2]" = conftest.file 1075 ) 1076then 1077 # Ok. 1078 : 1079else 1080 AC_MSG_ERROR([newly created file is older than distributed files! 1081Check your system clock]) 1082fi 1083AC_MSG_RESULT(yes)]) 1084 1085# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 1086# 1087# This file is free software; the Free Software Foundation 1088# gives unlimited permission to copy and/or distribute it, 1089# with or without modifications, as long as this notice is preserved. 1090 1091# serial 1 1092 1093# AM_PROG_INSTALL_STRIP 1094# --------------------- 1095# One issue with vendor `install' (even GNU) is that you can't 1096# specify the program used to strip binaries. This is especially 1097# annoying in cross-compiling environments, where the build's strip 1098# is unlikely to handle the host's binaries. 1099# Fortunately install-sh will honor a STRIPPROG variable, so we 1100# always use install-sh in `make install-strip', and initialize 1101# STRIPPROG with the value of the STRIP variable (set by the user). 1102AC_DEFUN([AM_PROG_INSTALL_STRIP], 1103[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1104# Installed binaries are usually stripped using `strip' when the user 1105# run `make install-strip'. However `strip' might not be the right 1106# tool to use in cross-compilation environments, therefore Automake 1107# will honor the `STRIP' environment variable to overrule this program. 1108dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1109if test "$cross_compiling" != no; then 1110 AC_CHECK_TOOL([STRIP], [strip], :) 1111fi 1112INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1113AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1114 1115# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. 1116# 1117# This file is free software; the Free Software Foundation 1118# gives unlimited permission to copy and/or distribute it, 1119# with or without modifications, as long as this notice is preserved. 1120 1121# serial 3 1122 1123# _AM_SUBST_NOTMAKE(VARIABLE) 1124# --------------------------- 1125# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1126# This macro is traced by Automake. 1127AC_DEFUN([_AM_SUBST_NOTMAKE]) 1128 1129# AM_SUBST_NOTMAKE(VARIABLE) 1130# -------------------------- 1131# Public sister of _AM_SUBST_NOTMAKE. 1132AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1133 1134# Check how to create a tarball. -*- Autoconf -*- 1135 1136# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. 1137# 1138# This file is free software; the Free Software Foundation 1139# gives unlimited permission to copy and/or distribute it, 1140# with or without modifications, as long as this notice is preserved. 1141 1142# serial 2 1143 1144# _AM_PROG_TAR(FORMAT) 1145# -------------------- 1146# Check how to create a tarball in format FORMAT. 1147# FORMAT should be one of `v7', `ustar', or `pax'. 1148# 1149# Substitute a variable $(am__tar) that is a command 1150# writing to stdout a FORMAT-tarball containing the directory 1151# $tardir. 1152# tardir=directory && $(am__tar) > result.tar 1153# 1154# Substitute a variable $(am__untar) that extract such 1155# a tarball read from stdin. 1156# $(am__untar) < result.tar 1157AC_DEFUN([_AM_PROG_TAR], 1158[# Always define AMTAR for backward compatibility. Yes, it's still used 1159# in the wild :-( We should find a proper way to deprecate it ... 1160AC_SUBST([AMTAR], ['$${TAR-tar}']) 1161m4_if([$1], [v7], 1162 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1163 [m4_case([$1], [ustar],, [pax],, 1164 [m4_fatal([Unknown tar format])]) 1165AC_MSG_CHECKING([how to create a $1 tar archive]) 1166# Loop over all known methods to create a tar archive until one works. 1167_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1168_am_tools=${am_cv_prog_tar_$1-$_am_tools} 1169# Do not fold the above two line into one, because Tru64 sh and 1170# Solaris sh will not grok spaces in the rhs of `-'. 1171for _am_tool in $_am_tools 1172do 1173 case $_am_tool in 1174 gnutar) 1175 for _am_tar in tar gnutar gtar; 1176 do 1177 AM_RUN_LOG([$_am_tar --version]) && break 1178 done 1179 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1180 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1181 am__untar="$_am_tar -xf -" 1182 ;; 1183 plaintar) 1184 # Must skip GNU tar: if it does not support --format= it doesn't create 1185 # ustar tarball either. 1186 (tar --version) >/dev/null 2>&1 && continue 1187 am__tar='tar chf - "$$tardir"' 1188 am__tar_='tar chf - "$tardir"' 1189 am__untar='tar xf -' 1190 ;; 1191 pax) 1192 am__tar='pax -L -x $1 -w "$$tardir"' 1193 am__tar_='pax -L -x $1 -w "$tardir"' 1194 am__untar='pax -r' 1195 ;; 1196 cpio) 1197 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1198 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1199 am__untar='cpio -i -H $1 -d' 1200 ;; 1201 none) 1202 am__tar=false 1203 am__tar_=false 1204 am__untar=false 1205 ;; 1206 esac 1207 1208 # If the value was cached, stop now. We just wanted to have am__tar 1209 # and am__untar set. 1210 test -n "${am_cv_prog_tar_$1}" && break 1211 1212 # tar/untar a dummy directory, and stop if the command works 1213 rm -rf conftest.dir 1214 mkdir conftest.dir 1215 echo GrepMe > conftest.dir/file 1216 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1217 rm -rf conftest.dir 1218 if test -s conftest.tar; then 1219 AM_RUN_LOG([$am__untar <conftest.tar]) 1220 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1221 fi 1222done 1223rm -rf conftest.dir 1224 1225AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1226AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1227AC_SUBST([am__tar]) 1228AC_SUBST([am__untar]) 1229]) # _AM_PROG_TAR 1230 1231m4_include([acinclude.m4]) 1232