]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | dnl |
bc44d920 | 2 | dnl "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | dnl |
4 | dnl Manpage stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
bc44d920 | 6 | dnl Copyright 2007 by Apple Inc. |
d09495fa | 7 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 8 | dnl |
9 | dnl These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | dnl property of Apple Inc. and are protected by Federal copyright |
11 | dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | dnl which should have been included with this file. If this file is | |
13 | dnl file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | dnl |
15 | ||
16 | dnl Fix "mandir" variable... | |
d09495fa | 17 | if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then |
18 | # New GNU "standards" break previous ones, so make sure we use | |
19 | # the right default location for the operating system... | |
20 | mandir="\${prefix}/man" | |
21 | fi | |
22 | ||
ef416fc2 | 23 | if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then |
24 | case "$uname" in | |
25 | Darwin* | Linux | GNU | *BSD* | AIX*) | |
26 | # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX | |
27 | mandir="/usr/share/man" | |
28 | AMANDIR="/usr/share/man" | |
29 | PMANDIR="/usr/share/man" | |
30 | ;; | |
31 | IRIX) | |
32 | # SGI IRIX | |
33 | mandir="/usr/share/catman/u_man" | |
34 | AMANDIR="/usr/share/catman/a_man" | |
35 | PMANDIR="/usr/share/catman/p_man" | |
36 | ;; | |
37 | *) | |
38 | # All others | |
39 | mandir="/usr/man" | |
40 | AMANDIR="/usr/man" | |
41 | PMANDIR="/usr/man" | |
42 | ;; | |
43 | esac | |
44 | else | |
45 | AMANDIR="$mandir" | |
46 | PMANDIR="$mandir" | |
47 | fi | |
48 | ||
49 | AC_SUBST(AMANDIR) | |
50 | AC_SUBST(PMANDIR) | |
51 | ||
52 | dnl Setup manpage extensions... | |
53 | case "$uname" in | |
ef416fc2 | 54 | IRIX*) |
55 | # SGI IRIX | |
56 | MAN1EXT=1 | |
57 | MAN5EXT=5 | |
bd7854cb | 58 | MAN7EXT=7 |
ef416fc2 | 59 | MAN8EXT=1m |
60 | MAN8DIR=1 | |
61 | ;; | |
62 | SunOS* | HP-UX*) | |
63 | # Solaris and HP-UX | |
64 | MAN1EXT=1 | |
65 | MAN5EXT=5 | |
bd7854cb | 66 | MAN7EXT=7 |
ef416fc2 | 67 | MAN8EXT=1m |
68 | MAN8DIR=1m | |
69 | ;; | |
d2354e63 MS |
70 | Linux* | GNU* | Darwin*) |
71 | # Linux, GNU Hurd, and Mac OS X | |
ef416fc2 | 72 | MAN1EXT=1.gz |
73 | MAN5EXT=5.gz | |
bd7854cb | 74 | MAN7EXT=7.gz |
ef416fc2 | 75 | MAN8EXT=8.gz |
76 | MAN8DIR=8 | |
77 | ;; | |
78 | *) | |
79 | # All others | |
80 | MAN1EXT=1 | |
81 | MAN5EXT=5 | |
bd7854cb | 82 | MAN7EXT=7 |
ef416fc2 | 83 | MAN8EXT=8 |
84 | MAN8DIR=8 | |
85 | ;; | |
86 | esac | |
87 | ||
88 | AC_SUBST(MAN1EXT) | |
89 | AC_SUBST(MAN5EXT) | |
bd7854cb | 90 | AC_SUBST(MAN7EXT) |
ef416fc2 | 91 | AC_SUBST(MAN8EXT) |
92 | AC_SUBST(MAN8DIR) | |
93 | ||
94 | dnl | |
bc44d920 | 95 | dnl End of "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 96 | dnl |