]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - config-scripts/cups-manpages.m4
Greatly simplify the man page handling.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
index 16246838c09c6ee34e30f5af21e9f0468ddce4db..2277196ad6cdf45f0eb48f1f1d2d5c4a1f0673b7 100644 (file)
@@ -1,16 +1,11 @@
 dnl
-dnl "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $"
+dnl Manpage stuff for CUPS.
 dnl
-dnl   Manpage stuff for CUPS.
+dnl Copyright © 2007-2019 by Apple Inc.
+dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved.
 dnl
-dnl   Copyright 2007-2012 by Apple Inc.
-dnl   Copyright 1997-2006 by Easy Software Products, all rights reserved.
-dnl
-dnl   These coded instructions, statements, and computer programs are the
-dnl   property of Apple Inc. and are protected by Federal copyright
-dnl   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-dnl   which should have been included with this file.  If this file is
-dnl   file is missing or damaged, see the license at "http://www.cups.org/".
+dnl Licensed under Apache License v2.0.  See the file "LICENSE" for more
+dnl information.
 dnl
 
 dnl Fix "mandir" variable...
@@ -21,62 +16,14 @@ if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
 fi
 
 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
-       case "$uname" in
-               Darwin* | Linux | GNU | *BSD* | AIX*)
-                       # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
+       case "$host_os_name" in
+               darwin* | linux* | gnu* | *bsd*)
+                       # Darwin, macOS, Linux, GNU HURD, and *BSD
                        mandir="/usr/share/man"
-                       AMANDIR="/usr/share/man"
-                       PMANDIR="/usr/share/man"
                        ;;
                *)
                        # All others
                        mandir="/usr/man"
-                       AMANDIR="/usr/man"
-                       PMANDIR="/usr/man"
                        ;;
        esac
-else
-       AMANDIR="$mandir"
-       PMANDIR="$mandir"
 fi
-
-AC_SUBST(AMANDIR)
-AC_SUBST(PMANDIR)
-
-dnl Setup manpage extensions...
-case "$uname" in
-       SunOS* | HP-UX*)
-               # Solaris and HP-UX
-               MAN1EXT=1
-               MAN5EXT=5
-               MAN7EXT=7
-               MAN8EXT=1m
-               MAN8DIR=1m
-               ;;
-       Linux* | GNU* | Darwin*)
-               # Linux, GNU Hurd, and OS X
-               MAN1EXT=1.gz
-               MAN5EXT=5.gz
-               MAN7EXT=7.gz
-               MAN8EXT=8.gz
-               MAN8DIR=8
-               ;;
-       *)
-               # All others
-               MAN1EXT=1
-               MAN5EXT=5
-               MAN7EXT=7
-               MAN8EXT=8
-               MAN8DIR=8
-               ;;
-esac
-
-AC_SUBST(MAN1EXT)
-AC_SUBST(MAN5EXT)
-AC_SUBST(MAN7EXT)
-AC_SUBST(MAN8EXT)
-AC_SUBST(MAN8DIR)
-
-dnl
-dnl End of "$Id: cups-manpages.m4 6649 2007-07-11 21:46:42Z mike $".
-dnl