]> git.ipfire.org Git - thirdparty/cups.git/blame_incremental - config-scripts/cups-manpages.m4
Update all references to OS X to macOS.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
... / ...
CommitLineData
1dnl
2dnl Manpage stuff for CUPS.
3dnl
4dnl Copyright 2007-2013 by Apple Inc.
5dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
6dnl
7dnl These coded instructions, statements, and computer programs are the
8dnl property of Apple Inc. and are protected by Federal copyright
9dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
10dnl which should have been included with this file. If this file is
11dnl file is missing or damaged, see the license at "http://www.cups.org/".
12dnl
13
14dnl Fix "mandir" variable...
15if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
16 # New GNU "standards" break previous ones, so make sure we use
17 # the right default location for the operating system...
18 mandir="\${prefix}/man"
19fi
20
21if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
22 case "$uname" in
23 Darwin* | Linux | GNU | *BSD*)
24 # Darwin, MacmacOS, Linux, GNU HURD, and *BSD
25 mandir="/usr/share/man"
26 AMANDIR="/usr/share/man"
27 PMANDIR="/usr/share/man"
28 ;;
29 *)
30 # All others
31 mandir="/usr/man"
32 AMANDIR="/usr/man"
33 PMANDIR="/usr/man"
34 ;;
35 esac
36else
37 AMANDIR="$mandir"
38 PMANDIR="$mandir"
39fi
40
41AC_SUBST(AMANDIR)
42AC_SUBST(PMANDIR)
43
44dnl Setup manpage extensions...
45case "$uname" in
46 SunOS*)
47 # Solaris
48 MAN1EXT=1
49 MAN5EXT=5
50 MAN7EXT=7
51 MAN8EXT=1m
52 MAN8DIR=1m
53 ;;
54 Linux* | GNU* | Darwin*)
55 # Linux, GNU Hurd, and macOS
56 MAN1EXT=1.gz
57 MAN5EXT=5.gz
58 MAN7EXT=7.gz
59 MAN8EXT=8.gz
60 MAN8DIR=8
61 ;;
62 *)
63 # All others
64 MAN1EXT=1
65 MAN5EXT=5
66 MAN7EXT=7
67 MAN8EXT=8
68 MAN8DIR=8
69 ;;
70esac
71
72AC_SUBST(MAN1EXT)
73AC_SUBST(MAN5EXT)
74AC_SUBST(MAN7EXT)
75AC_SUBST(MAN8EXT)
76AC_SUBST(MAN8DIR)