]> Savannah Git Hosting - gnulib.git/commitdiff
x-to-1: Avoid failure due to missing perl modules.
authorBruno Haible <bruno@clisp.org>
Sat, 13 Apr 2019 13:12:15 +0000 (15:12 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Apr 2019 13:12:48 +0000 (15:12 +0200)
* build-aux/x-to-1.in: Test whether all the perl modules that help2man
needs are installed.

ChangeLog
build-aux/x-to-1.in

index 469003a5b96c6c8ee308c20b1e5535679a6cc559..9aeb2f42c0244ae63452e32e3ade3d50da108b21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-04-13  Bruno Haible  <bruno@clisp.org>
+
+       x-to-1: Avoid failure due to missing perl modules.
+       * build-aux/x-to-1.in: Test whether all the perl modules that help2man
+       needs are installed.
+
 2019-04-13  Bruno Haible  <bruno@clisp.org>
 
        openmp-init: New module.
index 1b09d33db42daa9337ce9367ae4e583e8109481b..b31175f9043fab24e8167d15a06a02151b6f6f43 100644 (file)
@@ -41,7 +41,20 @@ aux="$4"
 output="$5"
 
 progname=`basename $aux .x`
-case "$PERL" in *"/missing perl") perlok=no;; *) perlok=yes;; esac
+# configure determined whether perl exists.
+case "$PERL" in
+  *"/missing perl")
+    perlok=no
+    ;;
+  *)
+    # Determine whether all the perl modules that help2man needs are installed.
+    if $PERL $HELP2MAN --help >/dev/null 2>/dev/null; then
+      perlok=yes
+    else
+      perlok=no
+    fi
+    ;;
+esac
 if test @CROSS_COMPILING@ = no && test -f $executable && test $perlok = yes; then
   echo "Updating man page $output"
   echo "$PERL $HELP2MAN --include=$aux $executable > $output"