]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-manpages.m4
Merge changes from CUPS 1.7svn-r10643
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
CommitLineData
ef416fc2 1dnl
bc44d920 2dnl "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $"
ef416fc2 3dnl
321d8d57 4dnl Manpage stuff for CUPS.
ef416fc2 5dnl
f3c17241 6dnl Copyright 2007-2012 by Apple Inc.
d09495fa 7dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 8dnl
9dnl These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14dnl
15
16dnl Fix "mandir" variable...
d09495fa 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
ef416fc2 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 ;;
ef416fc2 31 *)
32 # All others
33 mandir="/usr/man"
34 AMANDIR="/usr/man"
35 PMANDIR="/usr/man"
36 ;;
37 esac
38else
39 AMANDIR="$mandir"
40 PMANDIR="$mandir"
41fi
42
43AC_SUBST(AMANDIR)
44AC_SUBST(PMANDIR)
45
46dnl Setup manpage extensions...
47case "$uname" in
ef416fc2 48 SunOS* | HP-UX*)
49 # Solaris and HP-UX
50 MAN1EXT=1
51 MAN5EXT=5
bd7854cb 52 MAN7EXT=7
ef416fc2 53 MAN8EXT=1m
54 MAN8DIR=1m
55 ;;
d2354e63 56 Linux* | GNU* | Darwin*)
f3c17241 57 # Linux, GNU Hurd, and OS X
ef416fc2 58 MAN1EXT=1.gz
59 MAN5EXT=5.gz
bd7854cb 60 MAN7EXT=7.gz
ef416fc2 61 MAN8EXT=8.gz
62 MAN8DIR=8
63 ;;
64 *)
65 # All others
66 MAN1EXT=1
67 MAN5EXT=5
bd7854cb 68 MAN7EXT=7
ef416fc2 69 MAN8EXT=8
70 MAN8DIR=8
71 ;;
72esac
73
74AC_SUBST(MAN1EXT)
75AC_SUBST(MAN5EXT)
bd7854cb 76AC_SUBST(MAN7EXT)
ef416fc2 77AC_SUBST(MAN8EXT)
78AC_SUBST(MAN8DIR)
79
80dnl
bc44d920 81dnl End of "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $".
ef416fc2 82dnl