diff --git a/configure.in b/configure.in
index 50f5fd5a124c87b5aa411be265a19748112224d2..f1235867cfe421e30afe082c50dc3de89fff4178 100644 (file)
--- a/configure.in
+++ b/configure.in
perl_interpreter="perl"
AC_ARG_WITH(libperl, [AS_HELP_STRING([--with-libperl@<:@=PREFIX@:>@], [Path to libperl.])],
[
- if test -x "$withval"
+ if test -f "$withval" && test -x "$withval"
then
perl_interpreter="$withval"
with_libperl="yes"