Make the detection of nsgmls more robust for funny shells.
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 6 Nov 2003 10:28:54 +0000 (10:28 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 6 Nov 2003 10:28:54 +0000 (10:28 +0000)
config/docbook.m4
configure

index 32d0d0f2386c882fb5bf50314febb9917a975715..8d8e64f84921bbec7f26bf2beb2933ae09e40006 100644 (file)
@@ -31,11 +31,13 @@ AC_CACHE_CHECK([for DocBook V$1], [pgac_cv_check_docbook],
 </book>
 EOF
 
-${NSGMLS-false} -s conftest.sgml 1>&AS_MESSAGE_LOG_FD 2>&1
-if test $? -eq 0; then
-  pgac_cv_check_docbook=yes
-else
-  pgac_cv_check_docbook=no
+pgac_cv_check_docbook=no
+
+if test -n "$NSGMLS"; then
+  $NSGMLS -s conftest.sgml 1>&AS_MESSAGE_LOG_FD 2>&1
+  if test $? -eq 0; then
+    pgac_cv_check_docbook=yes
+  fi
 fi
 rm -f conftest.sgml])
 
index 635ace535b6209cfaf1ee6ec25c1bf7501d9859a..b5289891754ead96db8a3811f570f47f57f63c73 100755 (executable)
--- a/configure
+++ b/configure
@@ -17441,11 +17441,13 @@ else
 </book>
 EOF
 
-${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
-if test $? -eq 0; then
-  pgac_cv_check_docbook=yes
-else
-  pgac_cv_check_docbook=no
+pgac_cv_check_docbook=no
+
+if test -n "$NSGMLS"; then
+  $NSGMLS -s conftest.sgml 1>&5 2>&1
+  if test $? -eq 0; then
+    pgac_cv_check_docbook=yes
+  fi
 fi
 rm -f conftest.sgml
 fi