]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-manpages.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
1 dnl
2 dnl "$Id: cups-manpages.m4 5799 2006-08-03 00:54:38Z mike $"
3 dnl
4 dnl Manpage stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
7 dnl
8 dnl These coded instructions, statements, and computer programs are the
9 dnl property of Easy Software Products and are protected by Federal
10 dnl copyright law. Distribution and use rights are outlined in the file
11 dnl "LICENSE.txt" which should have been included with this file. If this
12 dnl file is missing or damaged please contact Easy Software Products
13 dnl at:
14 dnl
15 dnl Attn: CUPS Licensing Information
16 dnl Easy Software Products
17 dnl 44141 Airport View Drive, Suite 204
18 dnl Hollywood, Maryland 20636 USA
19 dnl
20 dnl Voice: (301) 373-9600
21 dnl EMail: cups-info@cups.org
22 dnl WWW: http://www.cups.org
23 dnl
24
25 dnl Fix "mandir" variable...
26 if 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"
30 fi
31
32 if 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
53 else
54 AMANDIR="$mandir"
55 PMANDIR="$mandir"
56 fi
57
58 AC_SUBST(AMANDIR)
59 AC_SUBST(PMANDIR)
60
61 dnl Setup manpage extensions...
62 case "$uname" in
63 *BSD* | Darwin*)
64 # *BSD
65 MAN1EXT=1
66 MAN5EXT=5
67 MAN7EXT=7
68 MAN8EXT=8
69 MAN8DIR=8
70 ;;
71 IRIX*)
72 # SGI IRIX
73 MAN1EXT=1
74 MAN5EXT=5
75 MAN7EXT=7
76 MAN8EXT=1m
77 MAN8DIR=1
78 ;;
79 SunOS* | HP-UX*)
80 # Solaris and HP-UX
81 MAN1EXT=1
82 MAN5EXT=5
83 MAN7EXT=7
84 MAN8EXT=1m
85 MAN8DIR=1m
86 ;;
87 Linux* | GNU*)
88 # Linux and GNU Hurd
89 MAN1EXT=1.gz
90 MAN5EXT=5.gz
91 MAN7EXT=7.gz
92 MAN8EXT=8.gz
93 MAN8DIR=8
94 ;;
95 *)
96 # All others
97 MAN1EXT=1
98 MAN5EXT=5
99 MAN7EXT=7
100 MAN8EXT=8
101 MAN8DIR=8
102 ;;
103 esac
104
105 AC_SUBST(MAN1EXT)
106 AC_SUBST(MAN5EXT)
107 AC_SUBST(MAN7EXT)
108 AC_SUBST(MAN8EXT)
109 AC_SUBST(MAN8DIR)
110
111 dnl
112 dnl End of "$Id: cups-manpages.m4 5799 2006-08-03 00:54:38Z mike $".
113 dnl