r10071: Configure checks for IRIX build environment. Test whether we can
[samba.git] / source / build / m4 / check_perl.m4
index 5f5f614f84315b2be67f41139353d838453d3c36..26abff631742244f23673e19cc1ee1fe4d4c759e 100644 (file)
@@ -5,11 +5,26 @@ dnl  Released under the GNU GPL
 dnl -------------------------------------------------------
 dnl
 
-AC_PATH_PROG(PERL, perl)
+case "$host_os" in
+       *irix*)
+               # On IRIX, we prefer Freeware or Nekoware Perl, because the
+               # system perl so ancient.
+               AC_PATH_PROG(PERL, perl, "", "/usr/freeware/bin:/usr/nekoware/bin:$PATH")
+               ;;
+       *)
+               AC_PATH_PROG(PERL, perl)
+               ;;
+esac
+
 if test x"$PERL" = x""; then
        AC_MSG_WARN([No version of perl was not found!])
-       AC_MSG_ERROR([Please Install perl from http://www.perl.com/])
+       AC_MSG_ERROR([Please install perl from http://www.perl.com/])
 fi
 if test x"$debug" = x"yes";then
        PERL="$PERL -W"
 fi
+
+AC_PATH_PROG(YAPP, yapp, false)
+
+PIDL_ARGS=""
+AC_SUBST(PIDL_ARGS)