1999-04-30 18:38:50 +00:00
|
|
|
dnl autoconf tests for bonsai
|
1999-05-04 15:29:31 +00:00
|
|
|
dnl Pontus Lidman 99-05-04
|
1999-04-30 18:38:50 +00:00
|
|
|
dnl
|
|
|
|
dnl check if Perl::DB is installed
|
|
|
|
dnl
|
|
|
|
AC_DEFUN(AC_PERL_DB,
|
|
|
|
[
|
|
|
|
AC_MSG_CHECKING(for perl DBD::mysql module)
|
|
|
|
$PERL -w -c -e 'use DBD::mysql' 2>/dev/null; has_dbd=$?
|
|
|
|
if test "x$has_dbd" = "x0" ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
ifelse([$1], , :, [$1])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
echo "*** the perl MySQL module (DBD::mysql) could not be found"
|
|
|
|
ifelse([$2], , :, [$2])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
dnl
|
|
|
|
dnl check if Date::Parse is installed
|
|
|
|
dnl
|
|
|
|
AC_DEFUN(AC_PERL_DATEPARSE,
|
|
|
|
[
|
1999-05-12 21:41:57 +00:00
|
|
|
AC_MSG_CHECKING(for perl Date::Parse module)
|
1999-04-30 18:38:50 +00:00
|
|
|
$PERL -w -c -e 'use Date::Parse' 2>/dev/null; has_dateparse=$?
|
|
|
|
if test "x$has_dateparse" = "x0" ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
ifelse([$1], , :, [$1])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
echo "*** the perl Date::Parse module could not be found"
|
|
|
|
ifelse([$2], , :, [$2])
|
|
|
|
fi
|
|
|
|
])
|