diff -Naur surfraw-2.2.9-orig/configure.in surfraw-2.2.9/configure.in --- surfraw-2.2.9-orig/configure.in 2013-12-10 18:07:06.000000000 +0100 +++ surfraw-2.2.9/configure.in 2017-12-17 22:19:14.648432687 +0100 @@ -53,6 +53,8 @@ dnl Checks for programs. AC_PROG_INSTALL AC_PROG_AWK +AC_PATH_PROG([PERL], [perl], [perl]) +AC_SUBST(PERL) AC_CONFIG_FILES([Makefile surfraw.lsm surfraw.spec elvi/Makefile test/Makefile examples/Makefile]) AC_OUTPUT diff -Naur surfraw-2.2.9-orig/Makefile.am surfraw-2.2.9/Makefile.am --- surfraw-2.2.9-orig/Makefile.am 2013-12-10 18:07:06.000000000 +0100 +++ surfraw-2.2.9/Makefile.am 2017-12-17 22:13:48.205031190 +0100 @@ -35,6 +35,7 @@ sed -e 's,@VERSION\@,${VERSION},g; '\ -e 's,@ELVIDIR\@,${ELVIDIR},g; '\ -e 's,@AWK\@,${AWK},g; '\ + -e 's,@PERL\@,${PERL},g; '\ -e 's,@sysconfdir\@,${sysconfdir},g ' $? > $@.tmp chmod +x $@.tmp mv $@.tmp $@ diff -Naur surfraw-2.2.9-orig/surfraw.IN surfraw-2.2.9/surfraw.IN --- surfraw-2.2.9-orig/surfraw.IN 2013-12-10 18:07:06.000000000 +0100 +++ surfraw-2.2.9/surfraw.IN 2017-12-17 22:14:01.613171144 +0100 @@ -160,7 +160,7 @@ quote_ifs () { if [ -z "$1" ]; then return; fi - perl -e '$ifs=$ENV{IFS} || " "; $arg=shift;if($arg =~/[$ifs]/) { $arg="\"$arg\""; } print "$arg\n"; ' -- "$1" + @PERL@ -e '$ifs=$ENV{IFS} || " "; $arg=shift;if($arg =~/[$ifs]/) { $arg="\"$arg\""; } print "$arg\n"; ' -- "$1" } bookmark_file_search () {