]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-manpages.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
CommitLineData
ef416fc2 1dnl
d09495fa 2dnl "$Id: cups-manpages.m4 5799 2006-08-03 00:54:38Z mike $"
ef416fc2 3dnl
4dnl Manpage stuff for the Common UNIX Printing System (CUPS).
5dnl
d09495fa 6dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org
23dnl
24
25dnl Fix "mandir" variable...
d09495fa 26if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
27 # New GNU "standards" break previous ones, so make sure we use
28 # the right default location for the operating system...
29 mandir="\${prefix}/man"
30fi
31
ef416fc2 32if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
33 case "$uname" in
34 Darwin* | Linux | GNU | *BSD* | AIX*)
35 # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
36 mandir="/usr/share/man"
37 AMANDIR="/usr/share/man"
38 PMANDIR="/usr/share/man"
39 ;;
40 IRIX)
41 # SGI IRIX
42 mandir="/usr/share/catman/u_man"
43 AMANDIR="/usr/share/catman/a_man"
44 PMANDIR="/usr/share/catman/p_man"
45 ;;
46 *)
47 # All others
48 mandir="/usr/man"
49 AMANDIR="/usr/man"
50 PMANDIR="/usr/man"
51 ;;
52 esac
53else
54 AMANDIR="$mandir"
55 PMANDIR="$mandir"
56fi
57
58AC_SUBST(AMANDIR)
59AC_SUBST(PMANDIR)
60
61dnl Setup manpage extensions...
62case "$uname" in
63 *BSD* | Darwin*)
64 # *BSD
65 MAN1EXT=1
66 MAN5EXT=5
bd7854cb 67 MAN7EXT=7
ef416fc2 68 MAN8EXT=8
69 MAN8DIR=8
70 ;;
71 IRIX*)
72 # SGI IRIX
73 MAN1EXT=1
74 MAN5EXT=5
bd7854cb 75 MAN7EXT=7
ef416fc2 76 MAN8EXT=1m
77 MAN8DIR=1
78 ;;
79 SunOS* | HP-UX*)
80 # Solaris and HP-UX
81 MAN1EXT=1
82 MAN5EXT=5
bd7854cb 83 MAN7EXT=7
ef416fc2 84 MAN8EXT=1m
85 MAN8DIR=1m
86 ;;
87 Linux* | GNU*)
88 # Linux and GNU Hurd
89 MAN1EXT=1.gz
90 MAN5EXT=5.gz
bd7854cb 91 MAN7EXT=7.gz
ef416fc2 92 MAN8EXT=8.gz
93 MAN8DIR=8
94 ;;
95 *)
96 # All others
97 MAN1EXT=1
98 MAN5EXT=5
bd7854cb 99 MAN7EXT=7
ef416fc2 100 MAN8EXT=8
101 MAN8DIR=8
102 ;;
103esac
104
105AC_SUBST(MAN1EXT)
106AC_SUBST(MAN5EXT)
bd7854cb 107AC_SUBST(MAN7EXT)
ef416fc2 108AC_SUBST(MAN8EXT)
109AC_SUBST(MAN8DIR)
110
111dnl
d09495fa 112dnl End of "$Id: cups-manpages.m4 5799 2006-08-03 00:54:38Z mike $".
ef416fc2 113dnl