r21669: Fix --enable-dso build
[Samba/ekacnet.git] / source / build / m4 / check_perl.m4
blob82ca2424999d00c0c5e3299cd38a700dfbe0c7ef
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
8 case "$host_os" in
9         *irix*)
10                 # On IRIX, we prefer Freeware or Nekoware Perl, because the
11                 # system perl is so ancient.
12                 AC_PATH_PROG(PERL, perl, "", "/usr/freeware/bin:/usr/nekoware/bin:$PATH")
13                 ;;
14         *)
15                 AC_PATH_PROG(PERL, perl)
16                 ;;
17 esac
19 if test x"$PERL" = x""; then
20         AC_MSG_WARN([No version of perl was found!])
21         AC_MSG_ERROR([Please install perl from http://www.perl.com/])
23 if test x"$debug" = x"yes";then
24         PERL="$PERL -W"
26 export PERL
28 AC_PATH_PROG(YAPP, yapp, false)