|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m4_ifndef([AC_AUTOCONF_VERSION], |
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
|
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],, |
|
[m4_warning([this file was generated for autoconf 2.67. |
|
You have another version of autoconf. It may work, but is not guaranteed to. |
|
If you have problems, you may need to regenerate the build system entirely. |
|
To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_AUTOMAKE_VERSION], |
|
[am__api_version='1.11' |
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
|
dnl require some minimum version. Point them to the right macro. |
|
m4_if([$1], [1.11.1], [], |
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
m4_define([_AM_AUTOCONF_VERSION], []) |
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
|
[AM_AUTOMAKE_VERSION([1.11.1])dnl |
|
m4_ifndef([AC_AUTOCONF_VERSION], |
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_AUX_DIR_EXPAND], |
|
[dnl Rely on autoconf to set up CDPATH properly. |
|
AC_PREREQ([2.50])dnl |
|
|
|
am_aux_dir=`cd $ac_aux_dir && pwd` |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_CONDITIONAL], |
|
[AC_PREREQ(2.52)dnl |
|
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
|
AC_SUBST([$1_TRUE])dnl |
|
AC_SUBST([$1_FALSE])dnl |
|
_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
|
_AM_SUBST_NOTMAKE([$1_FALSE])dnl |
|
m4_define([_AM_COND_VALUE_$1], [$2])dnl |
|
if $2; then |
|
$1_TRUE= |
|
$1_FALSE=' |
|
else |
|
$1_TRUE=' |
|
$1_FALSE= |
|
fi |
|
AC_CONFIG_COMMANDS_PRE( |
|
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
|
AC_MSG_ERROR([[conditional "$1" was never defined. |
|
Usually this means the macro was only invoked conditionally.]]) |
|
fi])]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([_AM_DEPENDENCIES], |
|
[AC_REQUIRE([AM_SET_DEPDIR])dnl |
|
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
|
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
|
AC_REQUIRE([AM_DEP_TRACK])dnl |
|
|
|
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
|
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
|
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
|
[$1], UPC, [depcc="$UPC" am_compiler_list=], |
|
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
|
[depcc="$$1" am_compiler_list=]) |
|
|
|
AC_CACHE_CHECK([dependency style of $depcc], |
|
[am_cv_$1_dependencies_compiler_type], |
|
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
|
|
|
|
|
|
|
|
|
|
mkdir conftest.dir |
|
|
|
|
|
cp "$am_depcomp" conftest.dir |
|
cd conftest.dir |
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir sub |
|
|
|
am_cv_$1_dependencies_compiler_type=none |
|
if test "$am_compiler_list" = ""; then |
|
am_compiler_list=`sed -n ['s/^ |
|
fi |
|
am__universal=false |
|
m4_case([$1], [CC], |
|
[case " $depcc " in |
|
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
|
esac], |
|
[CXX], |
|
[case " $depcc " in |
|
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
|
esac]) |
|
|
|
for depmode in $am_compiler_list; do |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: > sub/conftest.c |
|
for i in 1 2 3 4 5 6; do |
|
echo ' |
|
|
|
|
|
touch sub/conftst$i.h |
|
done |
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
|
|
|
|
|
|
|
|
|
|
am__obj=sub/conftest.${OBJEXT-o} |
|
am__minus_obj="-o $am__obj" |
|
case $depmode in |
|
gcc) |
|
|
|
test "$am__universal" = false || continue |
|
;; |
|
nosideeffect) |
|
|
|
|
|
if test "x$enable_dependency_tracking" = xyes; then |
|
continue |
|
else |
|
break |
|
fi |
|
;; |
|
msvisualcpp | msvcmsys) |
|
|
|
|
|
|
|
am__obj=conftest.${OBJEXT-o} |
|
am__minus_obj= |
|
;; |
|
none) break ;; |
|
esac |
|
if depmode=$depmode \ |
|
source=sub/conftest.c object=$am__obj \ |
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
|
>/dev/null 2>conftest.err && |
|
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (grep 'ignoring option' conftest.err || |
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
am_cv_$1_dependencies_compiler_type=$depmode |
|
break |
|
fi |
|
fi |
|
done |
|
|
|
cd .. |
|
rm -rf conftest.dir |
|
else |
|
am_cv_$1_dependencies_compiler_type=none |
|
fi |
|
]) |
|
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
|
AM_CONDITIONAL([am__fastdep$1], [ |
|
test "x$enable_dependency_tracking" != xno \ |
|
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_SET_DEPDIR], |
|
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
|
]) |
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_DEP_TRACK], |
|
[AC_ARG_ENABLE(dependency-tracking, |
|
[ |
|
|
|
if test "x$enable_dependency_tracking" != xno; then |
|
am_depcomp="$ac_aux_dir/depcomp" |
|
AMDEPBACKSLASH='\' |
|
fi |
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
|
AC_SUBST([AMDEPBACKSLASH])dnl |
|
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
[{ |
|
|
|
|
|
|
|
case $CONFIG_FILES in |
|
*\'*) eval set x "$CONFIG_FILES" ;; |
|
*) set x $CONFIG_FILES ;; |
|
esac |
|
shift |
|
for mf |
|
do |
|
|
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if sed -n 's,^ |
|
dirpart=`AS_DIRNAME("$mf")` |
|
else |
|
continue |
|
fi |
|
|
|
|
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
test -z "$DEPDIR" && continue |
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
test -z "am__include" && continue |
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
|
|
U=`sed -n 's/^U = //p' < "$mf"` |
|
|
|
|
|
|
|
|
|
for file in `sed -n " |
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
|
|
test -f "$dirpart/$file" && continue |
|
fdir=`AS_DIRNAME(["$file"])` |
|
AS_MKDIR_P([$dirpart/$fdir]) |
|
|
|
echo ' |
|
done |
|
done |
|
} |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
[AC_CONFIG_COMMANDS([depfiles], |
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_INIT_AUTOMAKE], |
|
[AC_PREREQ([2.62])dnl |
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
|
dnl the ones we care about. |
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
|
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
|
AC_REQUIRE([AC_PROG_INSTALL])dnl |
|
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
|
|
|
|
|
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
|
|
|
if test -f $srcdir/config.status; then |
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
|
fi |
|
fi |
|
|
|
|
|
if test -z "$CYGPATH_W"; then |
|
if (cygpath |
|
CYGPATH_W='cygpath -w' |
|
else |
|
CYGPATH_W=echo |
|
fi |
|
fi |
|
AC_SUBST([CYGPATH_W]) |
|
|
|
|
|
dnl Distinguish between old-style and new-style calls. |
|
m4_ifval([$2], |
|
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
|
AC_SUBST([PACKAGE], [$1])dnl |
|
AC_SUBST([VERSION], [$2])], |
|
[_AM_SET_OPTIONS([$1])dnl |
|
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
|
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
|
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
|
|
|
_AM_IF_OPTION([no-define],, |
|
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
|
|
|
|
|
AC_REQUIRE([AM_SANITY_CHECK])dnl |
|
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
|
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
|
AM_MISSING_PROG(AUTOCONF, autoconf) |
|
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
|
AM_MISSING_PROG(AUTOHEADER, autoheader) |
|
AM_MISSING_PROG(MAKEINFO, makeinfo) |
|
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
|
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
|
AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
|
|
|
|
|
AC_REQUIRE([AC_PROG_AWK])dnl |
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
|
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
|
[_AM_PROG_TAR([v7])])]) |
|
_AM_IF_OPTION([no-dependencies],, |
|
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
|
[_AM_DEPENDENCIES(CC)], |
|
[define([AC_PROG_CC], |
|
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
|
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
|
[_AM_DEPENDENCIES(CXX)], |
|
[define([AC_PROG_CXX], |
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
|
AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
|
[_AM_DEPENDENCIES(OBJC)], |
|
[define([AC_PROG_OBJC], |
|
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
|
]) |
|
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl |
|
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the |
|
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro |
|
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. |
|
AC_CONFIG_COMMANDS_PRE(dnl |
|
[m4_provide_if([_AM_COMPILER_EXEEXT], |
|
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
|
]) |
|
|
|
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
|
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
|
dnl mangled by Autoconf and run in a shell conditional statement. |
|
m4_define([_AC_COMPILER_EXEEXT], |
|
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
|
[ |
|
_am_arg=$1 |
|
_am_stamp_count=1 |
|
for _am_header in $config_headers :; do |
|
case $_am_header in |
|
$_am_arg | $_am_arg:* ) |
|
break ;; |
|
* ) |
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
esac |
|
done |
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_PROG_INSTALL_SH], |
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
if test x"${install_sh}" != xset; then |
|
case $am_aux_dir in |
|
*\ * | *\ *) |
|
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
|
*) |
|
install_sh="\${SHELL} $am_aux_dir/install-sh" |
|
esac |
|
fi |
|
AC_SUBST(install_sh)]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_SET_LEADING_DOT], |
|
[rm -rf .tst 2>/dev/null |
|
mkdir .tst 2>/dev/null |
|
if test -d .tst; then |
|
am__leading_dot=. |
|
else |
|
am__leading_dot=_ |
|
fi |
|
rmdir .tst 2>/dev/null |
|
AC_SUBST([am__leading_dot])]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_MAKE_INCLUDE], |
|
[am_make=${MAKE-make} |
|
cat > confinc << 'END' |
|
am__doit: |
|
@echo this is the am__doit target |
|
.PHONY: am__doit |
|
END |
|
|
|
AC_MSG_CHECKING([for style of include used by $am_make]) |
|
am__include="#" |
|
am__quote= |
|
_am_result=none |
|
|
|
echo "include confinc" > confmf |
|
|
|
case `$am_make -s -f confmf 2> /dev/null` in |
|
*the\ am__doit\ target*) |
|
am__include=include |
|
am__quote= |
|
_am_result=GNU |
|
;; |
|
esac |
|
|
|
if test "$am__include" = "#"; then |
|
echo '.include "confinc"' > confmf |
|
case `$am_make -s -f confmf 2> /dev/null` in |
|
*the\ am__doit\ target*) |
|
am__include=.include |
|
am__quote="\"" |
|
_am_result=BSD |
|
;; |
|
esac |
|
fi |
|
AC_SUBST([am__include]) |
|
AC_SUBST([am__quote]) |
|
AC_MSG_RESULT([$_am_result]) |
|
rm -f confinc confmf |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_MISSING_PROG], |
|
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
|
$1=${$1-"${am_missing_run}$2"} |
|
AC_SUBST($1)]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_MISSING_HAS_RUN], |
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
AC_REQUIRE_AUX_FILE([missing])dnl |
|
if test x"${MISSING+set}" != xset; then |
|
case $am_aux_dir in |
|
*\ * | *\ *) |
|
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
|
*) |
|
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
|
esac |
|
fi |
|
|
|
if eval "$MISSING --run true"; then |
|
am_missing_run="$MISSING --run " |
|
else |
|
am_missing_run= |
|
AC_MSG_WARN([`missing' script is too old or missing]) |
|
fi |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_PROG_MKDIR_P], |
|
[AC_PREREQ([2.60])dnl |
|
AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
|
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
|
dnl while keeping a definition of mkdir_p for backward compatibility. |
|
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
|
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
|
dnl Makefile.ins that do not define MKDIR_P, so we do our own |
|
dnl adjustment using top_builddir (which is defined more often than |
|
dnl MKDIR_P). |
|
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
|
case $mkdir_p in |
|
[[\\/$]]* | ?:[[\\/]]*) ;; |
|
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
|
esac |
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([_AM_MANGLE_OPTION], |
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
|
|
|
|
|
|
|
|
|
AC_DEFUN([_AM_SET_OPTION], |
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
|
|
|
|
|
|
|
|
|
AC_DEFUN([_AM_SET_OPTIONS], |
|
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
|
|
|
|
|
|
|
|
|
AC_DEFUN([_AM_IF_OPTION], |
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AM_SANITY_CHECK], |
|
[AC_MSG_CHECKING([whether build environment is sane]) |
|
|
|
sleep 1 |
|
echo timestamp > conftest.file |
|
|
|
|
|
am_lf=' |
|
' |
|
case `pwd` in |
|
*[[\\\"\#\$\&\'\`$am_lf]]*) |
|
AC_MSG_ERROR([unsafe absolute working directory name]);; |
|
esac |
|
case $srcdir in |
|
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
|
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; |
|
esac |
|
|
|
# Do `set' in a subshell so we don't clobber the current shell's |
|
# arguments. Must try -L first in case configure is actually a |
|
# symlink; some systems play weird games with the mod time of symlinks |
|
# (eg FreeBSD returns the mod time of the symlink's containing |
|
# directory). |
|
if ( |
|
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
|
if test "$[*]" = "X"; then |
|
# -L didn't work. |
|
set X `ls -t "$srcdir/configure" conftest.file` |
|
fi |
|
rm -f conftest.file |
|
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
|
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
|
|
|
# If neither matched, then we have a broken ls. This can happen |
|
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|
# broken ls alias from the environment. This has actually |
|
# happened. Such a system could not be considered "sane". |
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
|
alias in your environment]) |
|
fi |
|
|
|
test "$[2]" = conftest.file |
|
) |
|
then |
|
# Ok. |
|
: |
|
else |
|
AC_MSG_ERROR([newly created file is older than distributed files! |
|
Check your system clock]) |
|
fi |
|
AC_MSG_RESULT(yes)]) |
|
|
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
|
# |
|
# This file is free software; the Free Software Foundation |
|
# gives unlimited permission to copy and/or distribute it, |
|
# with or without modifications, as long as this notice is preserved. |
|
|
|
# AM_PROG_INSTALL_STRIP |
|
# --------------------- |
|
# One issue with vendor `install' (even GNU) is that you can't |
|
# specify the program used to strip binaries. This is especially |
|
# annoying in cross-compiling environments, where the build's strip |
|
# is unlikely to handle the host's binaries. |
|
# Fortunately install-sh will honor a STRIPPROG variable, so we |
|
# always use install-sh in `make install-strip', and initialize |
|
# STRIPPROG with the value of the STRIP variable (set by the user). |
|
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
|
# Installed binaries are usually stripped using `strip' when the user |
|
# run `make install-strip'. However `strip' might not be the right |
|
# tool to use in cross-compilation environments, therefore Automake |
|
# will honor the `STRIP' environment variable to overrule this program. |
|
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
|
if test "$cross_compiling" != no; then |
|
AC_CHECK_TOOL([STRIP], [strip], :) |
|
fi |
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
|
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
|
|
|
# Copyright (C) 2006, 2008 Free Software Foundation, Inc. |
|
# |
|
# This file is free software; the Free Software Foundation |
|
# gives unlimited permission to copy and/or distribute it, |
|
# with or without modifications, as long as this notice is preserved. |
|
|
|
# serial 2 |
|
|
|
# _AM_SUBST_NOTMAKE(VARIABLE) |
|
# --------------------------- |
|
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
|
# This macro is traced by Automake. |
|
AC_DEFUN([_AM_SUBST_NOTMAKE]) |
|
|
|
# AM_SUBST_NOTMAKE(VARIABLE) |
|
# --------------------------- |
|
# Public sister of _AM_SUBST_NOTMAKE. |
|
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
|
|
|
# Check how to create a tarball. -*- Autoconf -*- |
|
|
|
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
|
# |
|
# This file is free software; the Free Software Foundation |
|
# gives unlimited permission to copy and/or distribute it, |
|
# with or without modifications, as long as this notice is preserved. |
|
|
|
# serial 2 |
|
|
|
# _AM_PROG_TAR(FORMAT) |
|
# -------------------- |
|
# Check how to create a tarball in format FORMAT. |
|
# FORMAT should be one of `v7', `ustar', or `pax'. |
|
# |
|
# Substitute a variable $(am__tar) that is a command |
|
# writing to stdout a FORMAT-tarball containing the directory |
|
# $tardir. |
|
# tardir=directory && $(am__tar) > result.tar |
|
# |
|
# Substitute a variable $(am__untar) that extract such |
|
# a tarball read from stdin. |
|
# $(am__untar) < result.tar |
|
AC_DEFUN([_AM_PROG_TAR], |
|
[# Always define AMTAR for backward compatibility. |
|
AM_MISSING_PROG([AMTAR], [tar]) |
|
m4_if([$1], [v7], |
|
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
|
[m4_case([$1], [ustar],, [pax],, |
|
[m4_fatal([Unknown tar format])]) |
|
AC_MSG_CHECKING([how to create a $1 tar archive]) |
|
# Loop over all known methods to create a tar archive until one works. |
|
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
|
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
|
# Do not fold the above two line into one, because Tru64 sh and |
|
# Solaris sh will not grok spaces in the rhs of `-'. |
|
for _am_tool in $_am_tools |
|
do |
|
case $_am_tool in |
|
gnutar) |
|
for _am_tar in tar gnutar gtar; |
|
do |
|
AM_RUN_LOG([$_am_tar --version]) && break |
|
done |
|
am__tar="$_am_tar |
|
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
|
am__untar="$_am_tar -xf -" |
|
;; |
|
plaintar) |
|
|
|
|
|
(tar |
|
am__tar='tar chf - "$$tardir"' |
|
am__tar_='tar chf - "$tardir"' |
|
am__untar='tar xf -' |
|
;; |
|
pax) |
|
am__tar='pax -L -x $1 -w "$$tardir"' |
|
am__tar_='pax -L -x $1 -w "$tardir"' |
|
am__untar='pax -r' |
|
;; |
|
cpio) |
|
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
|
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
|
am__untar='cpio -i -H $1 -d' |
|
;; |
|
none) |
|
am__tar=false |
|
am__tar_=false |
|
am__untar=false |
|
;; |
|
esac |
|
|
|
|
|
|
|
test -n "${am_cv_prog_tar_$1}" && break |
|
|
|
|
|
rm -rf conftest.dir |
|
mkdir conftest.dir |
|
echo GrepMe > conftest.dir/file |
|
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
|
rm -rf conftest.dir |
|
if test -s conftest.tar; then |
|
AM_RUN_LOG([$am__untar <conftest.tar]) |
|
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
|
fi |
|
done |
|
rm -rf conftest.dir |
|
|
|
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
|
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
|
AC_SUBST([am__tar]) |
|
AC_SUBST([am__untar]) |
|
]) |
|
|
|
m4_include([m4/ax_boost_base.m4]) |
|
|