5e493db875d35910226350205700407c62dcd047
[sfrench/samba-autobuild/.git] / source4 / build / m4 / check_perl.m4
1 dnl SMB Build Environment Perl Checks
2 dnl -------------------------------------------------------
3 dnl  Copyright (C) Stefan (metze) Metzmacher 2004
4 dnl  Released under the GNU GPL
5 dnl -------------------------------------------------------
6 dnl
7
8 AC_PATH_PROG(PERL, perl)
9 if test x"$PERL" = x""; then
10         AC_MSG_WARN([No version of perl was not found!])
11         AC_MSG_ERROR([Please Install perl from http://www.perl.com/])
12 fi
13 if test x"$debug" = x"yes";then
14         PERL="$PERL -W"
15 fi
16
17 PIDL_ARGS=""
18 AC_SUBST(PIDL_ARGS)