1231
1236
AC_CONFIG_COMMANDS_PRE(dnl
1232
1237
[m4_provide_if([_AM_COMPILER_EXEEXT],
1233
1238
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1240
# POSIX will say in a future version that running "rm -f" with no argument
1241
# is OK; and we want to be able to make that assumption in our Makefile
1242
# recipes. So use an aggressive probe to check that the usage we want is
1243
# actually supported "in the wild" to an acceptable degree.
1244
# See automake bug#10828.
1245
# To make any issue more visible, cause the running configure to be aborted
1246
# by default if the 'rm' program in use doesn't match our expectations; the
1247
# user can still override this though.
1248
if rm -f && rm -fr && rm -rf; then : OK; else
1252
Your 'rm' program seems unable to run without file operands specified
1253
on the command line, even when the '-f' option is present. This is contrary
1254
to the behaviour of most rm programs out there, and not conforming with
1255
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1257
Please tell bug-automake@gnu.org about your system, including the value
1258
of your $PATH and any error possibly output before this message. This
1259
can help us improve future automake versions.
1262
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1263
echo 'Configuration will proceed anyway, since you have set the' >&2
1264
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1268
Aborting the configuration process, to ensure you take notice of the issue.
1270
You can download and install GNU coreutils to get an 'rm' implementation
1271
that behaves properly: <http://www.gnu.org/software/coreutils/>.
1273
If you want to complete the configuration process using your problematic
1274
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1275
to "yes", and re-run configure.
1278
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1236
1282
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1237
1283
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1387
1432
rm -f confinc confmf
1390
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1392
# This file is free software; the Free Software Foundation
1393
# gives unlimited permission to copy and/or distribute it,
1394
# with or without modifications, as long as this notice is preserved.
1398
# Like AC_PROG_CC_C_O, but changed for automake.
1399
AC_DEFUN([AM_PROG_CC_C_O],
1400
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1401
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1402
AC_REQUIRE_AUX_FILE([compile])dnl
1403
# FIXME: we rely on the cache variable name because
1404
# there is no other way.
1406
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1407
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1408
if test "$am_t" != yes; then
1409
# Losing compiler, so override with the script.
1410
# FIXME: It is wrong to rewrite CC.
1411
# But if we don't then we get into trouble of one sort or another.
1412
# A longer-term fix would be to have automake use am__CC in this case,
1413
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1414
CC="$am_aux_dir/compile $CC"
1416
dnl Make sure AC_PROG_CC is never called again, or it will override our
1418
m4_define([AC_PROG_CC],
1419
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1422
1435
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1424
1437
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1489
1502
AC_DEFUN([_AM_IF_OPTION],
1490
1503
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1505
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1507
# This file is free software; the Free Software Foundation
1508
# gives unlimited permission to copy and/or distribute it,
1509
# with or without modifications, as long as this notice is preserved.
1513
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1514
# to automatically call this.
1515
AC_DEFUN([_AM_PROG_CC_C_O],
1516
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1517
AC_REQUIRE_AUX_FILE([compile])dnl
1518
AC_LANG_PUSH([C])dnl
1520
[whether $CC understands -c and -o together],
1521
[am_cv_prog_cc_c_o],
1522
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1523
# Make sure it works both with $CC and with simple cc.
1524
# Following AC_PROG_CC_C_O, we do the test twice because some
1525
# compilers refuse to overwrite an existing .o file with -o,
1526
# though they will create one.
1527
am_cv_prog_cc_c_o=yes
1529
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1530
&& test -f conftest2.$ac_objext; then
1533
am_cv_prog_cc_c_o=no
1537
rm -f core conftest*
1539
if test "$am_cv_prog_cc_c_o" != yes; then
1540
# Losing compiler, so override with the script.
1541
# FIXME: It is wrong to rewrite CC.
1542
# But if we don't then we get into trouble of one sort or another.
1543
# A longer-term fix would be to have automake use am__CC in this case,
1544
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1545
CC="$am_aux_dir/compile $CC"
1549
# For backward compatibility.
1550
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1492
1552
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1494
1554
# This file is free software; the Free Software Foundation
1715
1775
# Substitute a variable $(am__untar) that extract such
1716
1776
# a tarball read from stdin.
1717
1777
# $(am__untar) < result.tar
1718
1779
AC_DEFUN([_AM_PROG_TAR],
1719
1780
[# Always define AMTAR for backward compatibility. Yes, it's still used
1720
1781
# in the wild :-( We should find a proper way to deprecate it ...
1721
1782
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1784
# We'll loop over all known methods to create a tar archive until one works.
1785
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1722
1787
m4_if([$1], [v7],
1723
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1724
[m4_case([$1], [ustar],, [pax],,
1725
[m4_fatal([Unknown tar format])])
1726
AC_MSG_CHECKING([how to create a $1 tar archive])
1727
# Loop over all known methods to create a tar archive until one works.
1728
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1729
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1730
# Do not fold the above two line into one, because Tru64 sh and
1731
# Solaris sh will not grok spaces in the rhs of '-'.
1732
for _am_tool in $_am_tools
1736
for _am_tar in tar gnutar gtar;
1738
AM_RUN_LOG([$_am_tar --version]) && break
1740
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1741
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1742
am__untar="$_am_tar -xf -"
1745
# Must skip GNU tar: if it does not support --format= it doesn't create
1746
# ustar tarball either.
1747
(tar --version) >/dev/null 2>&1 && continue
1748
am__tar='tar chf - "$$tardir"'
1749
am__tar_='tar chf - "$tardir"'
1750
am__untar='tar xf -'
1753
am__tar='pax -L -x $1 -w "$$tardir"'
1754
am__tar_='pax -L -x $1 -w "$tardir"'
1758
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1759
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1760
am__untar='cpio -i -H $1 -d'
1769
# If the value was cached, stop now. We just wanted to have am__tar
1770
# and am__untar set.
1771
test -n "${am_cv_prog_tar_$1}" && break
1773
# tar/untar a dummy directory, and stop if the command works
1776
echo GrepMe > conftest.dir/file
1777
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1779
if test -s conftest.tar; then
1780
AM_RUN_LOG([$am__untar <conftest.tar])
1781
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1786
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1787
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1788
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1792
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1793
# There is notably a 21 bits limit for the UID and the GID. In fact,
1794
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1796
am_max_uid=2097151 # 2^21 - 1
1797
am_max_gid=$am_max_uid
1798
# The $UID and $GID variables are not portable, so we need to resort
1799
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1800
# below are definitely unexpected, so allow the users to see them
1801
# (that is, avoid stderr redirection).
1802
am_uid=`id -u || echo unknown`
1803
am_gid=`id -g || echo unknown`
1804
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1805
if test $am_uid -le $am_max_uid; then
1806
AC_MSG_RESULT([yes])
1811
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1812
if test $am_gid -le $am_max_gid; then
1813
AC_MSG_RESULT([yes])
1822
[m4_fatal([Unknown tar format])])
1824
AC_MSG_CHECKING([how to create a $1 tar archive])
1826
# Go ahead even if we have the value already cached. We do so because we
1827
# need to set the values for the 'am__tar' and 'am__untar' variables.
1828
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1830
for _am_tool in $_am_tools; do
1833
for _am_tar in tar gnutar gtar; do
1834
AM_RUN_LOG([$_am_tar --version]) && break
1836
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1837
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1838
am__untar="$_am_tar -xf -"
1841
# Must skip GNU tar: if it does not support --format= it doesn't create
1842
# ustar tarball either.
1843
(tar --version) >/dev/null 2>&1 && continue
1844
am__tar='tar chf - "$$tardir"'
1845
am__tar_='tar chf - "$tardir"'
1846
am__untar='tar xf -'
1849
am__tar='pax -L -x $1 -w "$$tardir"'
1850
am__tar_='pax -L -x $1 -w "$tardir"'
1854
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1855
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1856
am__untar='cpio -i -H $1 -d'
1865
# If the value was cached, stop now. We just wanted to have am__tar
1866
# and am__untar set.
1867
test -n "${am_cv_prog_tar_$1}" && break
1869
# tar/untar a dummy directory, and stop if the command works.
1872
echo GrepMe > conftest.dir/file
1873
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1875
if test -s conftest.tar; then
1876
AM_RUN_LOG([$am__untar <conftest.tar])
1877
AM_RUN_LOG([cat conftest.dir/file])
1878
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1883
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1884
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1788
1886
AC_SUBST([am__tar])
1789
1887
AC_SUBST([am__untar])
1790
1888
]) # _AM_PROG_TAR
1792
1890
dnl -*- mode: autoconf -*-
1797
1895
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
1801
1899
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
1802
1900
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1902
ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"])
1903
AC_MSG_CHECKING([for gtk-doc])
1904
PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no])
1905
AC_MSG_RESULT($have_gtk_doc)
1907
if test "$have_gtk_doc" = "no"; then
1909
You will not be able to create source packages with 'make dist'
1910
because $gtk_doc_requires is not found.])
1804
1913
dnl check for tools we added during development
1805
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
1914
dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that
1915
dnl may not be writable by the user. Currently, automake requires that the
1916
dnl test name must end in '.test'.
1917
dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638
1918
AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test])
1919
AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check])
1806
1920
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
1807
1921
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
1819
1933
[use gtk-doc to build documentation [[default=no]]]),,
1820
1934
[enable_gtk_doc=no])
1822
if test x$enable_gtk_doc = xyes; then
1824
[PKG_CHECK_EXISTS([gtk-doc],,
1825
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
1826
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
1827
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
1828
dnl don't check for glib if we build glib
1829
if test "x$PACKAGE_NAME" != "xglib"; then
1830
dnl don't fail if someone does not have glib
1831
PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
1835
1936
AC_MSG_CHECKING([whether to build gtk-doc documentation])
1836
1937
AC_MSG_RESULT($enable_gtk_doc)
1939
if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
1941
You must have $gtk_doc_requires installed to build documentation for
1942
$PACKAGE_NAME. Please install gtk-doc or disable building the
1943
documentation by adding '--disable-gtk-doc' to '[$]0'.])
1946
dnl don't check for glib if we build glib
1947
if test "x$PACKAGE_NAME" != "xglib"; then
1948
dnl don't fail if someone does not have glib
1949
PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:])
1838
1952
dnl enable/disable output formats
1839
1953
AC_ARG_ENABLE([gtk-doc-html],
1840
1954
AS_HELP_STRING([--enable-gtk-doc-html],