]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-manpages.m4
Remove support for AIX, HP-UX, and OSF/1.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
1 dnl
2 dnl "$Id$"
3 dnl
4 dnl Manpage stuff for CUPS.
5 dnl
6 dnl Copyright 2007-2013 by Apple Inc.
7 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
8 dnl
9 dnl These coded instructions, statements, and computer programs are the
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/".
14 dnl
15
16 dnl Fix "mandir" variable...
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
23 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
24 case "$uname" in
25 Darwin* | Linux | GNU | *BSD*)
26 # Darwin, MacOS X, Linux, GNU HURD, and *BSD
27 mandir="/usr/share/man"
28 AMANDIR="/usr/share/man"
29 PMANDIR="/usr/share/man"
30 ;;
31 *)
32 # All others
33 mandir="/usr/man"
34 AMANDIR="/usr/man"
35 PMANDIR="/usr/man"
36 ;;
37 esac
38 else
39 AMANDIR="$mandir"
40 PMANDIR="$mandir"
41 fi
42
43 AC_SUBST(AMANDIR)
44 AC_SUBST(PMANDIR)
45
46 dnl Setup manpage extensions...
47 case "$uname" in
48 SunOS*)
49 # Solaris
50 MAN1EXT=1
51 MAN5EXT=5
52 MAN7EXT=7
53 MAN8EXT=1m
54 MAN8DIR=1m
55 ;;
56 Linux* | GNU* | Darwin*)
57 # Linux, GNU Hurd, and OS X
58 MAN1EXT=1.gz
59 MAN5EXT=5.gz
60 MAN7EXT=7.gz
61 MAN8EXT=8.gz
62 MAN8DIR=8
63 ;;
64 *)
65 # All others
66 MAN1EXT=1
67 MAN5EXT=5
68 MAN7EXT=7
69 MAN8EXT=8
70 MAN8DIR=8
71 ;;
72 esac
73
74 AC_SUBST(MAN1EXT)
75 AC_SUBST(MAN5EXT)
76 AC_SUBST(MAN7EXT)
77 AC_SUBST(MAN8EXT)
78 AC_SUBST(MAN8DIR)
79
80 dnl
81 dnl End of "$Id$".
82 dnl