• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl
2dnl Manpage stuff for CUPS.
3dnl
4dnl Copyright © 2020-2024 by OpenPrinting.
5dnl Copyright © 2007-2019 by Apple Inc.
6dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved.
7dnl
8dnl Licensed under Apache License v2.0.  See the file "LICENSE" for more
9dnl information.
10dnl
11
12dnl Fix "mandir" variable...
13AS_IF([test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"], [
14    # New GNU "standards" break previous ones, so make sure we use
15    # the right default location for the operating system...
16    mandir="\${prefix}/man"
17])
18
19AS_IF([test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"], [
20    AS_CASE(["$host_os_name"], [darwin* | linux* | gnu* | *bsd*], [
21	# Darwin, macOS, Linux, GNU HURD, and *BSD
22	mandir="/usr/share/man"
23    ], [*], [
24	# All others
25	mandir="/usr/man"
26
27    ])
28])
29