Greatly simplify the man page handling.
[thirdparty/cups.git] / configure.ac
CommitLineData
ef416fc2 1dnl
9ca6ba8f 2dnl Configuration script for CUPS.
ef416fc2 3dnl
7c8fb0fc
MS
4dnl Copyright © 2007-2018 by Apple Inc.
5dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
7c8fb0fc
MS
7dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
8dnl information.
ef416fc2 9dnl
10
6fe0e360
MS
11dnl We need at least autoconf 2.60...
12AC_PREREQ(2.60)
13
14dnl Package name and version...
8a763079 15AC_INIT([CUPS], [2.3b7], [https://github.com/apple/cups/issues], [cups], [https://www.cups.org/])
ef416fc2 16
17sinclude(config-scripts/cups-opsys.m4)
18sinclude(config-scripts/cups-common.m4)
19sinclude(config-scripts/cups-directories.m4)
20sinclude(config-scripts/cups-manpages.m4)
21
22sinclude(config-scripts/cups-sharedlibs.m4)
23sinclude(config-scripts/cups-libtool.m4)
24sinclude(config-scripts/cups-compiler.m4)
25
ef416fc2 26sinclude(config-scripts/cups-network.m4)
f7deaa1a 27sinclude(config-scripts/cups-poll.m4)
f7deaa1a 28sinclude(config-scripts/cups-gssapi.m4)
c7017ecc 29sinclude(config-scripts/cups-threads.m4)
ef416fc2 30sinclude(config-scripts/cups-ssl.m4)
31sinclude(config-scripts/cups-pam.m4)
ef416fc2 32sinclude(config-scripts/cups-largefile.m4)
f7deaa1a 33sinclude(config-scripts/cups-dnssd.m4)
1720786e 34sinclude(config-scripts/cups-startup.m4)
e53920b9 35sinclude(config-scripts/cups-defaults.m4)
ef416fc2 36
ed486911 37INSTALL_LANGUAGES=""
38UNINSTALL_LANGUAGES=""
89d46774 39LANGFILES=""
40if test "x$LANGUAGES" != x; then
ed486911 41 INSTALL_LANGUAGES="install-languages"
42 UNINSTALL_LANGUAGES="uninstall-languages"
89d46774 43 for lang in $LANGUAGES; do
d09495fa 44 if test -f doc/$lang/index.html.in; then
45 LANGFILES="$LANGFILES doc/$lang/index.html"
46 fi
47
d09495fa 48 if test -f templates/$lang/header.tmpl.in; then
49 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
50 fi
89d46774 51 done
a4845881 52elif test "x$CUPS_BUNDLEDIR" != x; then
0837b7e8
MS
53 INSTALL_LANGUAGES="install-langbundle"
54 UNINSTALL_LANGUAGES="uninstall-langbundle"
89d46774 55fi
56
ed486911 57AC_SUBST(INSTALL_LANGUAGES)
58AC_SUBST(UNINSTALL_LANGUAGES)
59
4d301e69 60AC_OUTPUT(Makedefs
c41769ff 61 conf/cups-files.conf
4d301e69
MS
62 conf/cupsd.conf
63 conf/mime.convs
64 conf/pam.std
65 conf/snmp.conf
66 cups-config
ee571f26 67 desktop/cups.desktop
4d301e69 68 doc/index.html
4d301e69
MS
69 scheduler/cups-lpd.xinetd
70 scheduler/cups.sh
71 scheduler/cups.xml
72 scheduler/org.cups.cups-lpd.plist
451d5797 73 scheduler/org.cups.cups-lpdAT.service
f2b8078b
MS
74 scheduler/org.cups.cupsd.path
75 scheduler/org.cups.cupsd.service
76 scheduler/org.cups.cupsd.socket
4d301e69
MS
77 templates/header.tmpl
78 packaging/cups.list
89d46774 79 $LANGFILES)
ef416fc2 80
81chmod +x cups-config