+dnl Perl modules checks
+PERL_MODS="HTTP::Daemon HTTP::Status HTTP::Request LWP::UserAgent DB_File Compress::Zlib"
+PERL_INC=`perl -e 'print(join(" ",@INC))'`
+for perl_mod in $PERL_MODS; do
+ AC_MSG_CHECKING("for perl module: $perl_mod")
+ perl_mod_file=`echo $perl_mod | sed -e 's/::/\//' -e 's/$/\.pm/'`
+ module_found="false"
+ for perl_lib_dir in $PERL_INC; do
+ if test -f "$perl_lib_dir/$perl_mod_file"; then
+ module_found="true"
+ AC_MSG_RESULT("found in $perl_lib_dir")
+ break
+ fi
+ done
+ if test "$module_found" != "true"; then
+ AC_MSG_ERROR("not found")
+ fi
+done
+