* configure.in: Set perllibdir.
[platform/upstream/automake.git] / configure.in
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(automake.in)
3
4 AM_INIT_AUTOMAKE(automake, 1.4e)
5
6 ACLOCAL="`pwd`/aclocal --acdir=m4"
7 # $AUTOMAKE is always run after a `cd $top_srcdir', hence `.' is really
8 # what we want for perllibdir and amdir.
9 AUTOMAKE="perllibdir=./lib `pwd`/automake --amdir=."
10
11 AC_PATH_PROG(PERL, perl)
12 if test -z "$PERL"; then
13    AC_MSG_ERROR([perl not found])
14 fi
15 $PERL -e 'require 5.005;' || {
16    AC_MSG_ERROR([perl 5.005 or better is required])
17 }
18
19 AC_OUTPUT([Makefile
20            lib/Makefile
21            lib/Automake/Makefile
22            m4/Makefile
23            tests/Makefile
24
25            automake aclocal],
26           [chmod +x automake aclocal])