X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=b2200be08a03069957c76af3a59f3fbbffd360d6;hp=20961763ff36c33cc8a4d5022d32e76405e95336;hb=f5411574afd34d580e3c1256c4f0807974099fcf;hpb=aab395b2d4edb41d0670c3c838c309df30d95d63 diff --git a/configure b/configure index 20961763..b2200be0 100755 --- a/configure +++ b/configure @@ -54,6 +54,7 @@ fi # Set several defaults (optionally specified by the user in # environment variables) BASH=${BASH:-bash} +PERL=${PERL:-perl} CC=${CC:-cc} CXX=${CXX:-c++} CFLAGS=${CFLAGS:--g -O2} @@ -568,6 +569,16 @@ else printf "No. (%s not found)\n" "${BASH}" fi +printf "Checking for perl... " +if command -v ${PERL} > /dev/null; then + have_perl=1 + perl_absolute=$(command -v ${PERL}) + printf "Yes (%s).\n" "$perl_absolute" +else + have_perl=0 + printf "No. (%s not found)\n" "${PERL}" +fi + printf "Checking for python... " have_python=0 @@ -1096,6 +1107,10 @@ emacsetcdir=${EMACSETCDIR} HAVE_BASH = ${have_bash} BASH_ABSOLUTE = ${bash_absolute} +# Whether perl exists, and if so where +HAVE_PERL = ${have_perl} +PERL_ABSOLUTE = ${perl_absolute} + # Whether there's an emacs binary available for byte-compiling HAVE_EMACS = ${have_emacs} @@ -1281,6 +1296,10 @@ NOTMUCH_HAVE_MAN=$((have_sphinx)) NOTMUCH_HAVE_BASH=${have_bash} NOTMUCH_BASH_ABSOLUTE=${bash_absolute} +# Whether perl exists, and if so where +NOTMUCH_HAVE_PERL=${have_perl} +NOTMUCH_PERL_ABSOLUTE=${perl_absolute} + # Name of python interpreter NOTMUCH_PYTHON=${python}