$NetBSD: patch-ao,v 1.5 2003/06/04 06:08:45 jlam Exp $ --- config-scripts/cups-manpages.m4.orig Tue Dec 17 10:56:39 2002 +++ config-scripts/cups-manpages.m4 @@ -22,6 +22,8 @@ dnl EMail: cups-info@cups.org dnl WWW: http://www.cups.org dnl +AC_ARG_WITH(manext, [ --with-manext set man page extension style (bsd,irix,sysv,none)],manext="$withval",manext="") + dnl Fix "mandir" variable... if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then case "$uname" in @@ -53,9 +55,28 @@ AC_SUBST(AMANDIR) AC_SUBST(PMANDIR) dnl Setup manpage extensions... -case "$uname" in - *BSD* | Darwin*) - # *BSD +if test x$manext = x; then + case "$uname" in + *BSD* | Darwin*) + # *BSD and Darwin (MacOS X) + manext=bsd + ;; + IRIX*) + # SGI IRIX + manext=irix + ;; + SunOS* | HP-UX*) + # Solaris and HP-UX + manext=sysv + ;; + *) + # All others + manext=none + ;; + esac +fi +case "$manext" in + bsd) CAT1EXT=0 CAT3EXT=0 CAT5EXT=0 @@ -63,8 +84,7 @@ case "$uname" in MAN8EXT=8 MAN8DIR=8 ;; - IRIX*) - # SGI IRIX + irix) CAT1EXT=z CAT3EXT=z CAT5EXT=z @@ -72,8 +92,7 @@ case "$uname" in MAN8EXT=1m MAN8DIR=1 ;; - SunOS* | HP-UX*) - # Solaris and HP-UX + sysv) CAT1EXT=1 CAT3EXT=3 CAT5EXT=5 @@ -81,8 +100,7 @@ case "$uname" in MAN8EXT=1m MAN8DIR=1m ;; - *) - # All others + none|*) CAT1EXT=1 CAT3EXT=3 CAT5EXT=5