]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Look for xsltproc
authorMark Andrews <marka@isc.org>
Mon, 25 Oct 2021 01:15:42 +0000 (12:15 +1100)
committerMark Andrews <marka@isc.org>
Fri, 29 Oct 2021 23:24:45 +0000 (10:24 +1100)
xsltproc is used by the statistics system test

configure
configure.ac

index b92d3c8bde8e442677cc1dcbd4e7cd7c08518c8e..e2380596360a6fa19c9a2f934a25498a7075e959 100755 (executable)
--- a/configure
+++ b/configure
@@ -676,6 +676,7 @@ CMOCKA_CFLAGS
 LIBIDN2_LDFLAGS
 LIBIDN2_LIBS
 LIBIDN2_CFLAGS
+XSLTPROC
 CURL
 DOXYGEN
 MANSRCS
 
 
 
+#
+# Look for xsltproc
+#
+
+# Extract the first word of "xsltproc", so it can be a program name with args.
+set dummy xsltproc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_XSLTPROC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $XSLTPROC in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
+  ;;
+esac
+fi
+XSLTPROC=$ac_cv_path_XSLTPROC
+if test -n "$XSLTPROC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
+$as_echo "$XSLTPROC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
 #
 # IDN support using libidn2
 #
index e29f506e4789195b9742dbebb11fb4007bf93800..287de41369f157e3568584ddcdc74f48b7afbd14 100644 (file)
@@ -2181,6 +2181,13 @@ AC_SUBST(DOXYGEN)
 AC_PATH_PROG(CURL, curl, curl)
 AC_SUBST(CURL)
 
+#
+# Look for xsltproc
+#
+
+AC_PATH_PROG(XSLTPROC, xsltproc, xsltproc)
+AC_SUBST(XSLTPROC)
+
 #
 # IDN support using libidn2
 #