ossp-pkg/cfg/cfg.ac 1.3 -> 1.4
--- cfg.ac 2004/07/17 07:37:55 1.3
+++ cfg.ac 2004/11/27 19:56:24 1.4
@@ -29,11 +29,29 @@
dnl ##
-dnl # Check for anything OSSP SA wants to know
+dnl # Check for anything OSSP cfg wants to know
dnl # configure.in:
dnl # CFG_CHECK_ALL
AC_DEFUN(CFG_CHECK_ALL,[
- :
+ dnl # configure option --with-perl
+ AC_ARG_WITH([perl],
+ AS_HELP_STRING([--with-perl], [build Perl bindings to C API]),
+ [ac_cv_with_perl=$withval], [ac_cv_with_perl=no])
+ AC_CACHE_CHECK([whether to build Perl bindings to C API], [ac_cv_with_perl], [ac_cv_with_perl=no])
+ if test ".$ac_cv_with_perl" = ".yes"; then
+ AC_DEFINE(WITH_PERL, 1, [whether to build Perl bindings to C API])
+ WITH_PERL='yes'
+ PERL_NAME='$(PERL_NAME)'
+ else
+ WITH_PERL='no'
+ PERL_NAME=''
+ fi
+ AC_SUBST(WITH_PERL)
+ AC_SUBST(PERL_NAME)
+ AC_PATH_PROG(PERL, perl, NA)
+ if test ".$ac_cv_with_perl" = ".yes" -a ".$PERL" = ".NA"; then
+ AC_ERROR([required Perl interpreter not found in \$PATH])
+ fi
])
|
|