]> git.ipfire.org Git - thirdparty/cups.git/blame_incremental - config-scripts/cups-manpages.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
... / ...
CommitLineData
1dnl
2dnl "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $"
3dnl
4dnl Manpage stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 2007 by Apple Inc.
7dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
8dnl
9dnl These coded instructions, statements, and computer programs are the
10dnl property of Apple Inc. and are protected by Federal copyright
11dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12dnl which should have been included with this file. If this file is
13dnl file is missing or damaged, see the license at "http://www.cups.org/".
14dnl
15
16dnl Fix "mandir" variable...
17if 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"
21fi
22
23if 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
44else
45 AMANDIR="$mandir"
46 PMANDIR="$mandir"
47fi
48
49AC_SUBST(AMANDIR)
50AC_SUBST(PMANDIR)
51
52dnl Setup manpage extensions...
53case "$uname" in
54 *BSD* | Darwin*)
55 # *BSD
56 MAN1EXT=1
57 MAN5EXT=5
58 MAN7EXT=7
59 MAN8EXT=8
60 MAN8DIR=8
61 ;;
62 IRIX*)
63 # SGI IRIX
64 MAN1EXT=1
65 MAN5EXT=5
66 MAN7EXT=7
67 MAN8EXT=1m
68 MAN8DIR=1
69 ;;
70 SunOS* | HP-UX*)
71 # Solaris and HP-UX
72 MAN1EXT=1
73 MAN5EXT=5
74 MAN7EXT=7
75 MAN8EXT=1m
76 MAN8DIR=1m
77 ;;
78 Linux* | GNU*)
79 # Linux and GNU Hurd
80 MAN1EXT=1.gz
81 MAN5EXT=5.gz
82 MAN7EXT=7.gz
83 MAN8EXT=8.gz
84 MAN8DIR=8
85 ;;
86 *)
87 # All others
88 MAN1EXT=1
89 MAN5EXT=5
90 MAN7EXT=7
91 MAN8EXT=8
92 MAN8DIR=8
93 ;;
94esac
95
96AC_SUBST(MAN1EXT)
97AC_SUBST(MAN5EXT)
98AC_SUBST(MAN7EXT)
99AC_SUBST(MAN8EXT)
100AC_SUBST(MAN8DIR)
101
102dnl
103dnl End of "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $".
104dnl