]> 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
2dnl "$Id: cups-manpages.m4 4833 2005-11-12 21:46:52Z mike $"
3dnl
4dnl Manpage stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
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...
26if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
27 case "$uname" in
28 Darwin* | Linux | GNU | *BSD* | AIX*)
29 # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
30 mandir="/usr/share/man"
31 AMANDIR="/usr/share/man"
32 PMANDIR="/usr/share/man"
33 ;;
34 IRIX)
35 # SGI IRIX
36 mandir="/usr/share/catman/u_man"
37 AMANDIR="/usr/share/catman/a_man"
38 PMANDIR="/usr/share/catman/p_man"
39 ;;
40 *)
41 # All others
42 mandir="/usr/man"
43 AMANDIR="/usr/man"
44 PMANDIR="/usr/man"
45 ;;
46 esac
47else
48 AMANDIR="$mandir"
49 PMANDIR="$mandir"
50fi
51
52AC_SUBST(AMANDIR)
53AC_SUBST(PMANDIR)
54
55dnl Setup manpage extensions...
56case "$uname" in
57 *BSD* | Darwin*)
58 # *BSD
59 MAN1EXT=1
60 MAN5EXT=5
61 MAN8EXT=8
62 MAN8DIR=8
63 ;;
64 IRIX*)
65 # SGI IRIX
66 MAN1EXT=1
67 MAN5EXT=5
68 MAN8EXT=1m
69 MAN8DIR=1
70 ;;
71 SunOS* | HP-UX*)
72 # Solaris and HP-UX
73 MAN1EXT=1
74 MAN5EXT=5
75 MAN8EXT=1m
76 MAN8DIR=1m
77 ;;
78 Linux* | GNU*)
79 # Linux and GNU Hurd
80 MAN1EXT=1.gz
81 MAN5EXT=5.gz
82 MAN8EXT=8.gz
83 MAN8DIR=8
84 ;;
85 *)
86 # All others
87 MAN1EXT=1
88 MAN5EXT=5
89 MAN8EXT=8
90 MAN8DIR=8
91 ;;
92esac
93
94AC_SUBST(MAN1EXT)
95AC_SUBST(MAN5EXT)
96AC_SUBST(MAN8EXT)
97AC_SUBST(MAN8DIR)
98
99dnl
100dnl End of "$Id: cups-manpages.m4 4833 2005-11-12 21:46:52Z mike $".
101dnl