]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | dnl |
5a1d7a17 | 2 | dnl Manpage stuff for CUPS. |
ef416fc2 | 3 | dnl |
5a1d7a17 MS |
4 | dnl Copyright 2007-2013 by Apple Inc. |
5 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
ef416fc2 | 6 | dnl |
5a1d7a17 MS |
7 | dnl These coded instructions, statements, and computer programs are the |
8 | dnl property of Apple Inc. and are protected by Federal copyright | |
9 | dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
10 | dnl which should have been included with this file. If this file is | |
11 | dnl file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 12 | dnl |
13 | ||
14 | dnl Fix "mandir" variable... | |
d09495fa | 15 | if 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" | |
19 | fi | |
20 | ||
ef416fc2 | 21 | if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then |
22 | case "$uname" in | |
5a1d7a17 | 23 | Darwin* | Linux | GNU | *BSD*) |
8072030b | 24 | # Darwin, MacmacOS, Linux, GNU HURD, and *BSD |
ef416fc2 | 25 | mandir="/usr/share/man" |
26 | AMANDIR="/usr/share/man" | |
27 | PMANDIR="/usr/share/man" | |
28 | ;; | |
ef416fc2 | 29 | *) |
30 | # All others | |
31 | mandir="/usr/man" | |
32 | AMANDIR="/usr/man" | |
33 | PMANDIR="/usr/man" | |
34 | ;; | |
35 | esac | |
36 | else | |
37 | AMANDIR="$mandir" | |
38 | PMANDIR="$mandir" | |
39 | fi | |
40 | ||
41 | AC_SUBST(AMANDIR) | |
42 | AC_SUBST(PMANDIR) | |
43 | ||
44 | dnl Setup manpage extensions... | |
45 | case "$uname" in | |
5a1d7a17 MS |
46 | SunOS*) |
47 | # Solaris | |
ef416fc2 | 48 | MAN1EXT=1 |
49 | MAN5EXT=5 | |
bd7854cb | 50 | MAN7EXT=7 |
ef416fc2 | 51 | MAN8EXT=1m |
52 | MAN8DIR=1m | |
53 | ;; | |
d2354e63 | 54 | Linux* | GNU* | Darwin*) |
8072030b | 55 | # Linux, GNU Hurd, and macOS |
ef416fc2 | 56 | MAN1EXT=1.gz |
57 | MAN5EXT=5.gz | |
bd7854cb | 58 | MAN7EXT=7.gz |
ef416fc2 | 59 | MAN8EXT=8.gz |
60 | MAN8DIR=8 | |
61 | ;; | |
62 | *) | |
63 | # All others | |
64 | MAN1EXT=1 | |
65 | MAN5EXT=5 | |
bd7854cb | 66 | MAN7EXT=7 |
ef416fc2 | 67 | MAN8EXT=8 |
68 | MAN8DIR=8 | |
69 | ;; | |
70 | esac | |
71 | ||
72 | AC_SUBST(MAN1EXT) | |
73 | AC_SUBST(MAN5EXT) | |
bd7854cb | 74 | AC_SUBST(MAN7EXT) |
ef416fc2 | 75 | AC_SUBST(MAN8EXT) |
76 | AC_SUBST(MAN8DIR) |