* ChangeLog, ChangeLog.1996, ChangeLog.1998, ChangeLog.2000,
[platform/upstream/automake.git] / configure.in
1 # Process this file with autoconf to produce a configure script.
2
3 # Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software
4 # 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., 59 Temple Place - Suite 330, Boston, MA
19 # 02111-1307, USA.
20
21 AC_INIT(automake.in)
22
23 AC_CONFIG_AUX_DIR(lib)
24
25 AM_INIT_AUTOMAKE(automake, 1.4s)
26
27 ACLOCAL="`pwd`/aclocal --acdir=m4"
28 # $AUTOMAKE is always run after a `cd $top_srcdir', hence `.' is really
29 # what we want for perllibdir and libdir.
30 AUTOMAKE="perllibdir=./lib `pwd`/automake --libdir=lib"
31
32 AC_PATH_PROG(PERL, perl)
33 if test -z "$PERL"; then
34    AC_MSG_ERROR([perl not found])
35 fi
36 $PERL -e 'require 5.005;' || {
37    AC_MSG_ERROR([perl 5.005 or better is required])
38 }
39
40 AC_OUTPUT([Makefile
41            lib/Makefile
42            lib/Automake/Makefile
43            lib/am/Makefile
44            m4/Makefile
45            tests/Makefile
46
47            automake aclocal],
48           [chmod +x automake aclocal])