12
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf. It may work, but is not guaranteed to.
20
20
If you have problems, you may need to regenerate the build system entirely.
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23
23
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
24
24
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
866
865
])# PKG_CHECK_MODULES
868
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
867
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
871
869
# This file is free software; the Free Software Foundation
872
870
# gives unlimited permission to copy and/or distribute it,
873
871
# with or without modifications, as long as this notice is preserved.
877
873
# AM_AUTOMAKE_VERSION(VERSION)
878
874
# ----------------------------
879
875
# Automake X.Y traces this macro to ensure aclocal.m4 has been
880
876
# generated from the m4 files accompanying Automake X.Y.
881
877
# (This private macro should not be called outside this file.)
882
878
AC_DEFUN([AM_AUTOMAKE_VERSION],
883
[am__api_version='1.11'
879
[am__api_version='1.14'
884
880
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
885
881
dnl require some minimum version. Point them to the right macro.
886
m4_if([$1], [1.11.6], [],
882
m4_if([$1], [1.14.1], [],
887
883
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
899
895
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
900
896
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
901
897
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
902
[AM_AUTOMAKE_VERSION([1.11.6])dnl
898
[AM_AUTOMAKE_VERSION([1.14.1])dnl
903
899
m4_ifndef([AC_AUTOCONF_VERSION],
904
900
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
905
901
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
907
903
# Figure out how to run the assembler. -*- Autoconf -*-
909
# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
905
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
911
907
# This file is free software; the Free Software Foundation
912
908
# gives unlimited permission to copy and/or distribute it,
913
909
# with or without modifications, as long as this notice is preserved.
919
913
AC_DEFUN([AM_PROG_AS],
929
923
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
931
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
925
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
933
927
# This file is free software; the Free Software Foundation
934
928
# gives unlimited permission to copy and/or distribute it,
935
929
# with or without modifications, as long as this notice is preserved.
939
931
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
940
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
941
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
932
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
933
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
943
935
# Of course, Automake must honor this variable whenever it calls a
944
936
# tool from the auxiliary directory. The problem is that $srcdir (and
981
973
am_aux_dir=`cd $ac_aux_dir && pwd`
985
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
986
# Free Software Foundation, Inc.
988
# This file is free software; the Free Software Foundation
989
# gives unlimited permission to copy and/or distribute it,
990
# with or without modifications, as long as this notice is preserved.
994
# This was merged into AC_PROG_CC in Autoconf.
996
AU_DEFUN([AM_PROG_CC_STDC],
998
AC_DIAGNOSE([obsolete], [$0:
999
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
1000
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
1001
you adjust the code. You can also remove the above call to
1002
AC_PROG_CC if you already called it elsewhere.])
1003
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1005
AU_DEFUN([fp_PROG_CC_STDC])
1007
976
# AM_CONDITIONAL -*- Autoconf -*-
1009
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
1010
# Free Software Foundation, Inc.
978
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1012
980
# This file is free software; the Free Software Foundation
1013
981
# gives unlimited permission to copy and/or distribute it,
1014
982
# with or without modifications, as long as this notice is preserved.
1018
984
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1019
985
# -------------------------------------
1020
986
# Define a conditional.
1021
987
AC_DEFUN([AM_CONDITIONAL],
1023
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1024
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
988
[AC_PREREQ([2.52])dnl
989
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
990
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1025
991
AC_SUBST([$1_TRUE])dnl
1026
992
AC_SUBST([$1_FALSE])dnl
1027
993
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
1040
1006
Usually this means the macro was only invoked conditionally.]])
1043
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
1044
# 2010, 2011 Free Software Foundation, Inc.
1009
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1046
1011
# This file is free software; the Free Software Foundation
1047
1012
# gives unlimited permission to copy and/or distribute it,
1048
1013
# with or without modifications, as long as this notice is preserved.
1052
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1016
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1053
1017
# written in clear, in which case automake, when reading aclocal.m4,
1054
1018
# will think it sees a *use*, and therefore will trigger all it's
1055
1019
# C support machinery. Also note that it means that autoscan, seeing
1072
1036
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1073
1037
AC_REQUIRE([AM_DEP_TRACK])dnl
1075
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1076
[$1], CXX, [depcc="$CXX" am_compiler_list=],
1077
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1078
[$1], UPC, [depcc="$UPC" am_compiler_list=],
1079
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1080
[depcc="$$1" am_compiler_list=])
1039
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
1040
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
1041
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1042
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
1043
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
1044
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1045
[depcc="$$1" am_compiler_list=])
1082
1047
AC_CACHE_CHECK([dependency style of $depcc],
1083
1048
[am_cv_$1_dependencies_compiler_type],
1229
1198
# Generate code to set up dependency tracking. -*- Autoconf -*-
1231
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1232
# Free Software Foundation, Inc.
1200
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1234
1202
# This file is free software; the Free Software Foundation
1235
1203
# gives unlimited permission to copy and/or distribute it,
1236
1204
# with or without modifications, as long as this notice is preserved.
1240
1207
# _AM_OUTPUT_DEPENDENCY_COMMANDS
1241
1208
# ------------------------------
1242
1209
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1244
# Autoconf 2.62 quotes --file arguments for eval, but not when files
1211
# Older Autoconf quotes --file arguments for eval, but not when files
1245
1212
# are listed without --file. Let's play safe and only enable the eval
1246
1213
# if we detect the quoting.
1247
1214
case $CONFIG_FILES in
1268
1235
# Extract the definition of DEPDIR, am__include, and am__quote
1269
# from the Makefile without running `make'.
1236
# from the Makefile without running 'make'.
1270
1237
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1271
1238
test -z "$DEPDIR" && continue
1272
1239
am__include=`sed -n 's/^am__include = //p' < "$mf"`
1273
test -z "am__include" && continue
1240
test -z "$am__include" && continue
1274
1241
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1275
# When using ansi2knr, U may be empty or an underscore; expand it
1276
U=`sed -n 's/^U = //p' < "$mf"`
1277
1242
# Find all dependency output files, they are included files with
1278
1243
# $(DEPDIR) in their names. We invoke sed twice because it is the
1279
1244
# simplest approach to changing $(DEPDIR) to its actual value in the
1281
1246
for file in `sed -n "
1282
1247
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1283
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1248
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1284
1249
# Make sure the directory exists.
1285
1250
test -f "$dirpart/$file" && continue
1286
1251
fdir=`AS_DIRNAME(["$file"])`
1306
1271
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1309
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1310
# Free Software Foundation, Inc.
1312
# This file is free software; the Free Software Foundation
1313
# gives unlimited permission to copy and/or distribute it,
1314
# with or without modifications, as long as this notice is preserved.
1318
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1319
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1321
1274
# Do all the work for Automake. -*- Autoconf -*-
1323
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1324
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1276
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1326
1278
# This file is free software; the Free Software Foundation
1327
1279
# gives unlimited permission to copy and/or distribute it,
1328
1280
# with or without modifications, as long as this notice is preserved.
1332
1282
# This macro actually does too much. Some checks are only needed if
1333
1283
# your package does certain things. But this isn't really a big deal.
1285
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
1286
m4_define([AC_PROG_CC],
1287
m4_defn([AC_PROG_CC])
1335
1291
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1336
1292
# AM_INIT_AUTOMAKE([OPTIONS])
1337
1293
# -----------------------------------------------
1373
1329
# Define the identity of the package.
1374
1330
dnl Distinguish between old-style and new-style calls.
1376
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1332
[AC_DIAGNOSE([obsolete],
1333
[$0: two- and three-arguments forms are deprecated.])
1334
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1377
1335
AC_SUBST([PACKAGE], [$1])dnl
1378
1336
AC_SUBST([VERSION], [$2])],
1379
1337
[_AM_SET_OPTIONS([$1])dnl
1380
1338
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1381
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1340
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1382
1342
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1383
1343
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1384
1344
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1386
1346
_AM_IF_OPTION([no-define],,
1387
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1388
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1347
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1348
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1390
1350
# Some tools Automake needs.
1391
1351
AC_REQUIRE([AM_SANITY_CHECK])dnl
1392
1352
AC_REQUIRE([AC_ARG_PROGRAM])dnl
1393
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1394
AM_MISSING_PROG(AUTOCONF, autoconf)
1395
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1396
AM_MISSING_PROG(AUTOHEADER, autoheader)
1397
AM_MISSING_PROG(MAKEINFO, makeinfo)
1353
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1354
AM_MISSING_PROG([AUTOCONF], [autoconf])
1355
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1356
AM_MISSING_PROG([AUTOHEADER], [autoheader])
1357
AM_MISSING_PROG([MAKEINFO], [makeinfo])
1398
1358
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1399
1359
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1400
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1360
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1361
# For better backward compatibility. To be removed once Automake 1.9.x
1362
# dies out for good. For more background, see:
1363
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1364
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1365
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1401
1366
# We need awk for the "check" target. The system "awk" is bad on
1402
1367
# some platforms.
1403
1368
AC_REQUIRE([AC_PROG_AWK])dnl
1408
1373
[_AM_PROG_TAR([v7])])])
1409
1374
_AM_IF_OPTION([no-dependencies],,
1410
1375
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1411
[_AM_DEPENDENCIES(CC)],
1412
[define([AC_PROG_CC],
1413
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1376
[_AM_DEPENDENCIES([CC])],
1377
[m4_define([AC_PROG_CC],
1378
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1414
1379
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1415
[_AM_DEPENDENCIES(CXX)],
1416
[define([AC_PROG_CXX],
1417
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1380
[_AM_DEPENDENCIES([CXX])],
1381
[m4_define([AC_PROG_CXX],
1382
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1418
1383
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1419
[_AM_DEPENDENCIES(OBJC)],
1420
[define([AC_PROG_OBJC],
1421
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1384
[_AM_DEPENDENCIES([OBJC])],
1385
[m4_define([AC_PROG_OBJC],
1386
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1387
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1388
[_AM_DEPENDENCIES([OBJCXX])],
1389
[m4_define([AC_PROG_OBJCXX],
1390
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1423
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1424
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1425
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1426
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1392
AC_REQUIRE([AM_SILENT_RULES])dnl
1393
dnl The testsuite driver may need to know about EXEEXT, so add the
1394
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1395
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1427
1396
AC_CONFIG_COMMANDS_PRE(dnl
1428
1397
[m4_provide_if([_AM_COMPILER_EXEEXT],
1429
1398
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1432
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1400
# POSIX will say in a future version that running "rm -f" with no argument
1401
# is OK; and we want to be able to make that assumption in our Makefile
1402
# recipes. So use an aggressive probe to check that the usage we want is
1403
# actually supported "in the wild" to an acceptable degree.
1404
# See automake bug#10828.
1405
# To make any issue more visible, cause the running configure to be aborted
1406
# by default if the 'rm' program in use doesn't match our expectations; the
1407
# user can still override this though.
1408
if rm -f && rm -fr && rm -rf; then : OK; else
1412
Your 'rm' program seems unable to run without file operands specified
1413
on the command line, even when the '-f' option is present. This is contrary
1414
to the behaviour of most rm programs out there, and not conforming with
1415
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1417
Please tell bug-automake@gnu.org about your system, including the value
1418
of your $PATH and any error possibly output before this message. This
1419
can help us improve future automake versions.
1422
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1423
echo 'Configuration will proceed anyway, since you have set the' >&2
1424
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1428
Aborting the configuration process, to ensure you take notice of the issue.
1430
You can download and install GNU coreutils to get an 'rm' implementation
1431
that behaves properly: <http://www.gnu.org/software/coreutils/>.
1433
If you want to complete the configuration process using your problematic
1434
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1435
to "yes", and re-run configure.
1438
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1442
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1433
1443
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1434
1444
dnl mangled by Autoconf and run in a shell conditional statement.
1435
1445
m4_define([_AC_COMPILER_EXEEXT],
1436
1446
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1439
1448
# When config.status generates a header, we must update the stamp-h file.
1440
1449
# This file resides in the same directory as the config header
1441
1450
# that is generated. The stamp files are numbered to have different names.
1554
1556
rm -f confinc confmf
1557
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1558
# Free Software Foundation, Inc.
1560
# This file is free software; the Free Software Foundation
1561
# gives unlimited permission to copy and/or distribute it,
1562
# with or without modifications, as long as this notice is preserved.
1568
# Like AC_PROG_CC_C_O, but changed for automake.
1569
AC_DEFUN([AM_PROG_CC_C_O],
1570
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1571
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1572
AC_REQUIRE_AUX_FILE([compile])dnl
1573
# FIXME: we rely on the cache variable name because
1574
# there is no other way.
1576
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1577
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1578
if test "$am_t" != yes; then
1579
# Losing compiler, so override with the script.
1580
# FIXME: It is wrong to rewrite CC.
1581
# But if we don't then we get into trouble of one sort or another.
1582
# A longer-term fix would be to have automake use am__CC in this case,
1583
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1584
CC="$am_aux_dir/compile $CC"
1586
dnl Make sure AC_PROG_CC is never called again, or it will override our
1588
m4_define([AC_PROG_CC],
1589
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1592
1559
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1594
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1595
# Free Software Foundation, Inc.
1561
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1597
1563
# This file is free software; the Free Software Foundation
1598
1564
# gives unlimited permission to copy and/or distribute it,
1599
1565
# with or without modifications, as long as this notice is preserved.
1603
1567
# AM_MISSING_PROG(NAME, PROGRAM)
1604
1568
# ------------------------------
1605
1569
AC_DEFUN([AM_MISSING_PROG],
1626
1589
# Use eval to expand $SHELL
1627
if eval "$MISSING --run true"; then
1628
am_missing_run="$MISSING --run "
1590
if eval "$MISSING --is-lightweight"; then
1591
am_missing_run="$MISSING "
1630
1593
am_missing_run=
1631
AC_MSG_WARN([`missing' script is too old or missing])
1594
AC_MSG_WARN(['missing' script is too old or missing])
1635
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1599
# Obsolete and "removed" macros, that must however still report explicit
1600
# error messages when used, to smooth transition.
1602
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1638
1604
# This file is free software; the Free Software Foundation
1639
1605
# gives unlimited permission to copy and/or distribute it,
1640
1606
# with or without modifications, as long as this notice is preserved.
1646
# Check for `mkdir -p'.
1647
AC_DEFUN([AM_PROG_MKDIR_P],
1648
[AC_PREREQ([2.60])dnl
1649
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1650
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1651
dnl while keeping a definition of mkdir_p for backward compatibility.
1652
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1653
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1654
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1655
dnl adjustment using top_builddir (which is defined more often than
1657
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1659
[[\\/$]]* | ?:[[\\/]]*) ;;
1660
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1608
AC_DEFUN([AM_CONFIG_HEADER],
1609
[AC_DIAGNOSE([obsolete],
1610
['$0': this macro is obsolete.
1611
You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
1612
AC_CONFIG_HEADERS($@)])
1614
AC_DEFUN([AM_PROG_CC_STDC],
1616
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1617
AC_DIAGNOSE([obsolete],
1618
['$0': this macro is obsolete.
1619
You should simply use the 'AC][_PROG_CC' macro instead.
1620
Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
1621
but upon 'ac_cv_prog_cc_stdc'.])])
1623
AC_DEFUN([AM_C_PROTOTYPES],
1624
[AC_FATAL([automatic de-ANSI-fication support has been removed])])
1625
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
1664
1627
# Helper functions for option handling. -*- Autoconf -*-
1666
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1629
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1669
1631
# This file is free software; the Free Software Foundation
1670
1632
# gives unlimited permission to copy and/or distribute it,
1671
1633
# with or without modifications, as long as this notice is preserved.
1675
1635
# _AM_MANGLE_OPTION(NAME)
1676
1636
# -----------------------
1677
1637
AC_DEFUN([_AM_MANGLE_OPTION],
1695
1655
AC_DEFUN([_AM_IF_OPTION],
1696
1656
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1698
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1700
# This file is free software; the Free Software Foundation
1701
# gives unlimited permission to copy and/or distribute it,
1702
# with or without modifications, as long as this notice is preserved.
1658
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1660
# This file is free software; the Free Software Foundation
1661
# gives unlimited permission to copy and/or distribute it,
1662
# with or without modifications, as long as this notice is preserved.
1666
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1667
# to automatically call this.
1668
AC_DEFUN([_AM_PROG_CC_C_O],
1669
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1670
AC_REQUIRE_AUX_FILE([compile])dnl
1671
AC_LANG_PUSH([C])dnl
1673
[whether $CC understands -c and -o together],
1674
[am_cv_prog_cc_c_o],
1675
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1676
# Make sure it works both with $CC and with simple cc.
1677
# Following AC_PROG_CC_C_O, we do the test twice because some
1678
# compilers refuse to overwrite an existing .o file with -o,
1679
# though they will create one.
1680
am_cv_prog_cc_c_o=yes
1682
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1683
&& test -f conftest2.$ac_objext; then
1686
am_cv_prog_cc_c_o=no
1690
rm -f core conftest*
1692
if test "$am_cv_prog_cc_c_o" != yes; then
1693
# Losing compiler, so override with the script.
1694
# FIXME: It is wrong to rewrite CC.
1695
# But if we don't then we get into trouble of one sort or another.
1696
# A longer-term fix would be to have automake use am__CC in this case,
1697
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1698
CC="$am_aux_dir/compile $CC"
1702
# For backward compatibility.
1703
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1705
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1707
# This file is free software; the Free Software Foundation
1708
# gives unlimited permission to copy and/or distribute it,
1709
# with or without modifications, as long as this notice is preserved.
1706
1711
# AM_RUN_LOG(COMMAND)
1707
1712
# -------------------
1743
1742
case $srcdir in
1744
1743
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1745
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1744
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1748
# Do `set' in a subshell so we don't clobber the current shell's
1747
# Do 'set' in a subshell so we don't clobber the current shell's
1749
1748
# arguments. Must try -L first in case configure is actually a
1750
1749
# symlink; some systems play weird games with the mod time of symlinks
1751
1750
# (eg FreeBSD returns the mod time of the symlink's containing
1754
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1755
if test "$[*]" = "X"; then
1757
set X `ls -t "$srcdir/configure" conftest.file`
1760
if test "$[*]" != "X $srcdir/configure conftest.file" \
1761
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1763
# If neither matched, then we have a broken ls. This can happen
1764
# if, for instance, CONFIG_SHELL is bash and it inherits a
1765
# broken ls alias from the environment. This has actually
1766
# happened. Such a system could not be considered "sane".
1767
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1768
alias in your environment])
1754
for am_try in 1 2; do
1755
echo "timestamp, slept: $am_has_slept" > conftest.file
1756
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1757
if test "$[*]" = "X"; then
1759
set X `ls -t "$srcdir/configure" conftest.file`
1761
if test "$[*]" != "X $srcdir/configure conftest.file" \
1762
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1764
# If neither matched, then we have a broken ls. This can happen
1765
# if, for instance, CONFIG_SHELL is bash and it inherits a
1766
# broken ls alias from the environment. This has actually
1767
# happened. Such a system could not be considered "sane".
1768
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1769
alias in your environment])
1771
if test "$[2]" = conftest.file || test $am_try -eq 2; then
1771
1778
test "$[2]" = conftest.file
1777
1784
AC_MSG_ERROR([newly created file is older than distributed files!
1778
1785
Check your system clock])
1780
AC_MSG_RESULT(yes)])
1787
AC_MSG_RESULT([yes])
1788
# If we didn't sleep, we still need to ensure time stamps of config.status and
1789
# generated files are strictly newer.
1791
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1795
AC_CONFIG_COMMANDS_PRE(
1796
[AC_MSG_CHECKING([that generated files are newer than configure])
1797
if test -n "$am_sleep_pid"; then
1798
# Hide warnings about reused PIDs.
1799
wait $am_sleep_pid 2>/dev/null
1801
AC_MSG_RESULT([done])])
1782
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1805
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1784
1807
# This file is free software; the Free Software Foundation
1785
1808
# gives unlimited permission to copy and/or distribute it,
1786
1809
# with or without modifications, as long as this notice is preserved.
1790
1811
# AM_SILENT_RULES([DEFAULT])
1791
1812
# --------------------------
1792
1813
# Enable less verbose build rules; with the default set to DEFAULT
1793
# (`yes' being less verbose, `no' or empty being verbose).
1814
# ("yes" being less verbose, "no" or empty being verbose).
1794
1815
AC_DEFUN([AM_SILENT_RULES],
1795
[AC_ARG_ENABLE([silent-rules],
1796
[ --enable-silent-rules less verbose build output (undo: `make V=1')
1797
--disable-silent-rules verbose build output (undo: `make V=0')])
1798
case $enable_silent_rules in
1799
yes) AM_DEFAULT_VERBOSITY=0;;
1800
no) AM_DEFAULT_VERBOSITY=1;;
1801
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1816
[AC_ARG_ENABLE([silent-rules], [dnl
1818
[--enable-silent-rules],
1819
[less verbose build output (undo: "make V=1")])
1821
[--disable-silent-rules],
1822
[verbose build output (undo: "make V=0")])dnl
1824
case $enable_silent_rules in @%:@ (((
1825
yes) AM_DEFAULT_VERBOSITY=0;;
1826
no) AM_DEFAULT_VERBOSITY=1;;
1827
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1804
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1830
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1805
1831
dnl do not support nested variable expansions.
1806
1832
dnl See automake bug#9928 and bug#10237.
1807
1833
am_make=${MAKE-make}
1836
1862
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1839
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1865
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1841
1867
# This file is free software; the Free Software Foundation
1842
1868
# gives unlimited permission to copy and/or distribute it,
1843
1869
# with or without modifications, as long as this notice is preserved.
1847
1871
# AM_PROG_INSTALL_STRIP
1848
1872
# ---------------------
1849
# One issue with vendor `install' (even GNU) is that you can't
1873
# One issue with vendor 'install' (even GNU) is that you can't
1850
1874
# specify the program used to strip binaries. This is especially
1851
1875
# annoying in cross-compiling environments, where the build's strip
1852
1876
# is unlikely to handle the host's binaries.
1853
1877
# Fortunately install-sh will honor a STRIPPROG variable, so we
1854
# always use install-sh in `make install-strip', and initialize
1878
# always use install-sh in "make install-strip", and initialize
1855
1879
# STRIPPROG with the value of the STRIP variable (set by the user).
1856
1880
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1857
1881
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1858
# Installed binaries are usually stripped using `strip' when the user
1859
# run `make install-strip'. However `strip' might not be the right
1882
# Installed binaries are usually stripped using 'strip' when the user
1883
# run "make install-strip". However 'strip' might not be the right
1860
1884
# tool to use in cross-compilation environments, therefore Automake
1861
# will honor the `STRIP' environment variable to overrule this program.
1862
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1885
# will honor the 'STRIP' environment variable to overrule this program.
1886
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1863
1887
if test "$cross_compiling" != no; then
1864
1888
AC_CHECK_TOOL([STRIP], [strip], :)
1866
1890
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1867
1891
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1869
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1893
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1871
1895
# This file is free software; the Free Software Foundation
1872
1896
# gives unlimited permission to copy and/or distribute it,
1873
1897
# with or without modifications, as long as this notice is preserved.
1877
1899
# _AM_SUBST_NOTMAKE(VARIABLE)
1878
1900
# ---------------------------
1879
1901
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1908
1928
# Substitute a variable $(am__untar) that extract such
1909
1929
# a tarball read from stdin.
1910
1930
# $(am__untar) < result.tar
1911
1932
AC_DEFUN([_AM_PROG_TAR],
1912
1933
[# Always define AMTAR for backward compatibility. Yes, it's still used
1913
1934
# in the wild :-( We should find a proper way to deprecate it ...
1914
1935
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1937
# We'll loop over all known methods to create a tar archive until one works.
1938
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1915
1940
m4_if([$1], [v7],
1916
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1917
[m4_case([$1], [ustar],, [pax],,
1918
[m4_fatal([Unknown tar format])])
1919
AC_MSG_CHECKING([how to create a $1 tar archive])
1920
# Loop over all known methods to create a tar archive until one works.
1921
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1922
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1923
# Do not fold the above two line into one, because Tru64 sh and
1924
# Solaris sh will not grok spaces in the rhs of `-'.
1925
for _am_tool in $_am_tools
1929
for _am_tar in tar gnutar gtar;
1931
AM_RUN_LOG([$_am_tar --version]) && break
1933
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1934
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1935
am__untar="$_am_tar -xf -"
1938
# Must skip GNU tar: if it does not support --format= it doesn't create
1939
# ustar tarball either.
1940
(tar --version) >/dev/null 2>&1 && continue
1941
am__tar='tar chf - "$$tardir"'
1942
am__tar_='tar chf - "$tardir"'
1943
am__untar='tar xf -'
1946
am__tar='pax -L -x $1 -w "$$tardir"'
1947
am__tar_='pax -L -x $1 -w "$tardir"'
1951
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1952
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1953
am__untar='cpio -i -H $1 -d'
1962
# If the value was cached, stop now. We just wanted to have am__tar
1963
# and am__untar set.
1964
test -n "${am_cv_prog_tar_$1}" && break
1966
# tar/untar a dummy directory, and stop if the command works
1969
echo GrepMe > conftest.dir/file
1970
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1972
if test -s conftest.tar; then
1973
AM_RUN_LOG([$am__untar <conftest.tar])
1974
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1979
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1980
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1941
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1945
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1946
# There is notably a 21 bits limit for the UID and the GID. In fact,
1947
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1949
am_max_uid=2097151 # 2^21 - 1
1950
am_max_gid=$am_max_uid
1951
# The $UID and $GID variables are not portable, so we need to resort
1952
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1953
# below are definitely unexpected, so allow the users to see them
1954
# (that is, avoid stderr redirection).
1955
am_uid=`id -u || echo unknown`
1956
am_gid=`id -g || echo unknown`
1957
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1958
if test $am_uid -le $am_max_uid; then
1959
AC_MSG_RESULT([yes])
1964
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1965
if test $am_gid -le $am_max_gid; then
1966
AC_MSG_RESULT([yes])
1975
[m4_fatal([Unknown tar format])])
1977
AC_MSG_CHECKING([how to create a $1 tar archive])
1979
# Go ahead even if we have the value already cached. We do so because we
1980
# need to set the values for the 'am__tar' and 'am__untar' variables.
1981
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1983
for _am_tool in $_am_tools; do
1986
for _am_tar in tar gnutar gtar; do
1987
AM_RUN_LOG([$_am_tar --version]) && break
1989
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1990
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1991
am__untar="$_am_tar -xf -"
1994
# Must skip GNU tar: if it does not support --format= it doesn't create
1995
# ustar tarball either.
1996
(tar --version) >/dev/null 2>&1 && continue
1997
am__tar='tar chf - "$$tardir"'
1998
am__tar_='tar chf - "$tardir"'
1999
am__untar='tar xf -'
2002
am__tar='pax -L -x $1 -w "$$tardir"'
2003
am__tar_='pax -L -x $1 -w "$tardir"'
2007
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
2008
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
2009
am__untar='cpio -i -H $1 -d'
2018
# If the value was cached, stop now. We just wanted to have am__tar
2019
# and am__untar set.
2020
test -n "${am_cv_prog_tar_$1}" && break
2022
# tar/untar a dummy directory, and stop if the command works.
2025
echo GrepMe > conftest.dir/file
2026
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
2028
if test -s conftest.tar; then
2029
AM_RUN_LOG([$am__untar <conftest.tar])
2030
AM_RUN_LOG([cat conftest.dir/file])
2031
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2036
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2037
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1981
2039
AC_SUBST([am__tar])
1982
2040
AC_SUBST([am__untar])
1983
2041
]) # _AM_PROG_TAR