source: vendor/automake/1.9.6/configure.ac@ 3480

Last change on this file since 3480 was 3086, checked in by bird, 18 years ago

automake 1.9.6

File size: 5.6 KB
Line 
1# Process this file with autoconf to produce a configure script.
2
3# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4# Free Software Foundation, Inc.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19# 02110-1301, USA.
20
21dnl Autoconf 2.58 defines abs_top_builddir incorrectly, so we
22dnl have to require 2.58a, otherwise all our test cases will fail
23dnl (abs_top_builddir is used in tests/automake.in). Note that
24dnl this is a requirement for the Automake package itself.
25dnl Automake users can still use Autoconf 2.58.
26AC_PREREQ(2.58a)
27AC_INIT([GNU Automake], [1.9.6], [bug-automake@gnu.org])
28
29AC_CONFIG_SRCDIR(automake.in)
30AC_CONFIG_AUX_DIR(lib)
31
32AC_CANONICAL_BUILD
33
34# Save the AUTOCONF setting before AM_INIT_AUTOMAKE overrides it; this
35# way we can run Autoconf tests from configure (or from the test
36# suite) without being bothered by `missing'.
37AC_SUBST([am_AUTOCONF], ["${AUTOCONF-autoconf}"])
38
39AM_INIT_AUTOMAKE([1.8a dist-bzip2 filename-length-max=99])
40
41# The API version is the base version. We must guarantee
42# compatibility for all releases with the same API version.
43# Our current rule is that:
44# * All releases, including the prereleases, in an X.Y series
45# are compatible. So 1.5.1c is compatible with 1.5.
46# * Prereleases on the trunk are all incompatible -- 1.5b and 1.5c
47# aren't the same.
48APIVERSION=`echo "$VERSION" | sed -e 's/^\([[0-9]]*\.[[0-9]]*[[a-z]]*\).*$/\1/'`
49AC_SUBST(APIVERSION)
50
51# A versioned directory, defined here for convenience.
52AC_SUBST([pkgvdatadir], ["\${datadir}/$PACKAGE-$APIVERSION"])
53
54# $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
55# hence `.' is really what we want for perllibdir, libdir, and acdir.
56ACLOCAL="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/aclocal --acdir=m4"
57AUTOMAKE="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/automake --libdir=lib"
58
59AC_PATH_PROG(PERL, perl)
60if test -z "$PERL"; then
61 AC_MSG_ERROR([perl not found])
62fi
63$PERL -e 'require 5.005;' || {
64 AC_MSG_ERROR([perl 5.005 or better is required])
65}
66
67# The test suite will skip some tests if tex is absent.
68AC_CHECK_PROG([TEX], [tex], [tex])
69
70# Test for Autoconf. We run Autoconf in a subdirectory to ease
71# deletion of any files created (such as those added to
72# autom4te.cache). We used to perform only the last of the three
73# following tests, but some users were unable to figure out that their
74# installation was broken since --version appeared to work.
75
76AC_CACHE_CHECK([whether autoconf is installed], [am_cv_autoconf_installed],
77[if AM_RUN_LOG([eval $am_AUTOCONF --version]);
78then
79 am_cv_autoconf_installed=yes
80else
81 am_cv_autoconf_installed=no
82fi])
83if test "$am_cv_autoconf_installed" = no; then
84 AC_MSG_ERROR([Autoconf 2.58 or better is required.
85 Please make sure it is installed and in your PATH.])
86fi
87
88AC_CACHE_CHECK([whether autoconf works], [am_cv_autoconf_works],
89[mkdir conftest
90echo 'AC''_INIT' > conftest/conftest.ac
91if AM_RUN_LOG([cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac]);
92then
93 am_cv_autoconf_works=yes
94else
95 am_cv_autoconf_works=no
96fi
97rm -rf conftest])
98if test "$am_cv_autoconf_works" = no; then
99 AC_MSG_ERROR([The installed version of autoconf does not work.
100 Please check config.log for error messages before this one.])
101fi
102
103AC_CACHE_CHECK([whether autoconf is recent enough], [am_cv_autoconf_version],
104[mkdir conftest
105echo 'AC''_PREREQ(2.58)' > conftest/conftest.ac
106if AM_RUN_LOG([cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac]);
107then
108 am_cv_autoconf_version=yes
109else
110 am_cv_autoconf_version=no
111fi
112rm -rf conftest])
113if test "$am_cv_autoconf_version" = no; then
114 AC_MSG_ERROR([Autoconf 2.58 or better is required.])
115fi
116
117# Test for ln. We need use it to install the versioned binaries.
118AC_MSG_CHECKING([whether ln works])
119AC_CACHE_VAL([am_cv_prog_ln], [
120rm -f conftest conftest.file
121: >conftest.file
122if ln conftest.file conftest 2>/dev/null; then
123 am_cv_prog_ln=ln
124else
125 am_cv_prog_ln='cp -p'
126fi
127rm -f conftest conftest.file])
128AC_SUBST([LN], [$am_cv_prog_ln])
129result=no
130test "x$am_cv_prog_ln" = xln && result=yes
131AC_MSG_RESULT([$result])
132
133# The amount we should wait after modifying files depends on the platform.
134# On Windows '95, '98 and ME, files modifications have 2-seconds
135# granularity and can be up to 3 seconds in the future w.r.t. the
136# system clock. When it is important to ensure one file is older
137# than another we wait at least 5 seconds between creations.
138case $build in
139 *-pc-msdosdjgpp) MODIFICATION_DELAY=5;;
140 *) MODIFICATION_DELAY=2;;
141esac
142AC_SUBST([MODIFICATION_DELAY])
143
144# Test for things needed by the test suite.
145AC_PROG_EGREP
146AC_PROG_FGREP
147
148AC_CONFIG_FILES([
149 Makefile
150 doc/Makefile
151 lib/Automake/Makefile
152 lib/Automake/tests/Makefile
153 lib/Makefile
154 lib/am/Makefile
155 m4/Makefile
156 tests/Makefile
157 tests/defs
158])
159AC_CONFIG_FILES([tests/aclocal-${APIVERSION}:tests/aclocal.in],
160 [chmod +x tests/aclocal-${APIVERSION}],
161 [APIVERSION=$APIVERSION])
162AC_CONFIG_FILES([tests/automake-${APIVERSION}:tests/automake.in],
163 [chmod +x tests/automake-${APIVERSION}])
164
165AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.