summaryrefslogtreecommitdiff
path: root/configure.in
blob: 09f480660bb7ca04cf0e4e9ca977d2f5f8d386bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Process this file with autoconf to produce a configure script.
AC_INIT(automake.in)

AM_INIT_AUTOMAKE(automake, 1.4e)

ACLOCAL="`pwd`/aclocal --acdir=m4"
# $AUTOMAKE is always run after a `cd $top_srcdir', hence `.' is really
# what we want for perllibdir and amdir.
AUTOMAKE="perllibdir=./lib `pwd`/automake --amdir=."

AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
   AC_MSG_ERROR([perl not found])
fi
$PERL -e 'require 5.005;' || {
   AC_MSG_ERROR([perl 5.005 or better is required])
}

AC_OUTPUT([Makefile
           lib/Makefile
           lib/Automake/Makefile
           m4/Makefile
           tests/Makefile

           automake aclocal],
          [chmod +x automake aclocal])