31 lines
952 B
Plaintext
31 lines
952 B
Plaintext
dnl Process this file with Autoconf to produce configure dnl
|
|
|
|
AC_INIT([stow], [2.1.1], [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
|
|
|
|
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_ERROR([Perl not found; check your \$PATH.])
|
|
fi
|
|
|
|
AC_ARG_WITH(
|
|
pmdir,
|
|
[ --with-pmdir=DIR Perl modules are in DIR [[LIBDIR/perl5]]],
|
|
[PMDIR=${withval}],
|
|
[eval `$PERL -V:installsitelib -V:siteprefix`
|
|
PMDIR='${prefix}'/"${installsitelib#$siteprefix/}"])
|
|
AC_CONFIG_COMMANDS_POST([eval echo "Perl modules will be installed to $PMDIR"])
|
|
AC_SUBST([PMDIR])
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|