summaryrefslogtreecommitdiff
path: root/configure.ac
blob: e95b8018cefef50a7a0aa2f21db360792dce5598 (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
27
28
29
dnl Process this file with Autoconf to produce configure dnl

AC_INIT([stow], [2.1.0], [bug-stow@gnu.org])
AC_PREREQ([2.61])
AC_CONFIG_AUX_DIR([automake])
# Unfortunately we have to disable warnings for overrides, because we
# need to override the built-in `check' rule and also the TEXI2DVI
# variable.
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-override dist-bzip2])
AC_PROG_INSTALL

AM_MAINTAINER_MODE([enable])

dnl Check for perl on our system 
dnl call to AC_SUBST(PERL) is implicit
AC_PATH_PROGS([PERL], [perl] [perl5], [false])
if test "x$PERL" = xfalse
then
  AC_MSG_WARN([WARNING: Perl not found; you must edit line 1 of 'stow'])
fi

AC_ARG_WITH(
    pmdir,
    [  --with-pmdir=DIR        perl modules are in DIR [[LIBDIR/perl5]]],
    [PMDIR=${withval}], [PMDIR=${libdir}/perl5]
)

AC_CONFIG_FILES([Makefile])
AC_OUTPUT