Skip to content

Commit aa2498e

Browse files
committed
Fix check for which man page type to use with nroff
Fixes a bug where configure would use *.man instead of *.mdoc on systems without mandoc. Bug #1077.
1 parent f73162d commit aa2498e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17775,7 +17775,7 @@ then :
1777517775
else case e in #(
1777617776
e)
1777717777
case "$ac_cv_path_NROFFPROG" in
17778-
*mandoc|*nroff)
17778+
*mandoc|nroff)
1777917779
# Prefer mdoc format for mandoc (or when no formatter is present).
1778017780
sudo_cv_var_mantype="mdoc"
1778117781
;;
@@ -17786,7 +17786,7 @@ else case e in #(
1778617786
echo ".Nd sudo" >> conftest
1778717787
echo ".Sh DESCRIPTION" >> conftest
1778817788
echo "sudo" >> conftest
17789-
if $ac_cv_path_NROFF -mdoc conftest >/dev/null 2>&1; then
17789+
if $ac_cv_path_NROFFPROG -mdoc conftest >/dev/null 2>&1; then
1779017790
sudo_cv_var_mantype="mdoc"
1779117791
fi
1779217792
rm -f conftest

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ AC_CACHE_CHECK([which macro set to use for manual pages],
17421742
[sudo_cv_var_mantype],
17431743
[
17441744
case "$ac_cv_path_NROFFPROG" in
1745-
*mandoc|*nroff)
1745+
*mandoc|nroff)
17461746
# Prefer mdoc format for mandoc (or when no formatter is present).
17471747
sudo_cv_var_mantype="mdoc"
17481748
;;
@@ -1753,7 +1753,7 @@ AC_CACHE_CHECK([which macro set to use for manual pages],
17531753
echo ".Nd sudo" >> conftest
17541754
echo ".Sh DESCRIPTION" >> conftest
17551755
echo "sudo" >> conftest
1756-
if $ac_cv_path_NROFF -mdoc conftest >/dev/null 2>&1; then
1756+
if $ac_cv_path_NROFFPROG -mdoc conftest >/dev/null 2>&1; then
17571757
sudo_cv_var_mantype="mdoc"
17581758
fi
17591759
rm -f conftest

0 commit comments

Comments
 (0)