]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-manpages.m4
Greatly simplify the man page handling.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
CommitLineData
ef416fc2 1dnl
5a1d7a17 2dnl Manpage stuff for CUPS.
ef416fc2 3dnl
87030afb
MS
4dnl Copyright © 2007-2019 by Apple Inc.
5dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
87030afb
MS
7dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
8dnl information.
ef416fc2 9dnl
10
11dnl Fix "mandir" variable...
d09495fa 12if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
13 # New GNU "standards" break previous ones, so make sure we use
14 # the right default location for the operating system...
15 mandir="\${prefix}/man"
16fi
17
ef416fc2 18if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
105922ec 19 case "$host_os_name" in
4466c8ca 20 darwin* | linux* | gnu* | *bsd*)
d4874933 21 # Darwin, macOS, Linux, GNU HURD, and *BSD
ef416fc2 22 mandir="/usr/share/man"
ef416fc2 23 ;;
ef416fc2 24 *)
25 # All others
26 mandir="/usr/man"
ef416fc2 27 ;;
28 esac
ef416fc2 29fi