summaryrefslogtreecommitdiff
path: root/m4/manual_format.m4
blob: 50c6a91480ab9661b42e1fb45779194f7ccacd52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 
# Find format of installed man pages.
# Always gzipped on Debian, but not Redhat pre-7.0.
# We don't deal with bzip2'd man pages, which Mandrake uses,
# someone will send us a patch sometime hopefully. :-)
# 
AC_DEFUN([AC_MANUAL_FORMAT],
  [ have_zipped_manpages=false
    for d in ${prefix}/share/man ${prefix}/man ; do
        if test -f $d/man1/man.1.gz
        then
            have_zipped_manpages=true
            break
        fi
    done
    AC_SUBST(have_zipped_manpages)
  ])