1dnl
2dnl "$Id: configure.in 11110 2013-07-08 21:17:10Z msweet $"
3dnl
4dnl   Configuration script for CUPS.
5dnl
6dnl   Copyright 2007-2012 by Apple Inc.
7dnl   Copyright 1997-2007 by Easy Software Products, all rights reserved.
8dnl
9dnl   These coded instructions, statements, and computer programs are the
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/".
14dnl
15
16AC_INIT(cups/cups.h)
17
18sinclude(config-scripts/cups-opsys.m4)
19sinclude(config-scripts/cups-common.m4)
20sinclude(config-scripts/cups-directories.m4)
21sinclude(config-scripts/cups-manpages.m4)
22
23sinclude(config-scripts/cups-sharedlibs.m4)
24sinclude(config-scripts/cups-libtool.m4)
25sinclude(config-scripts/cups-compiler.m4)
26
27sinclude(config-scripts/cups-network.m4)
28sinclude(config-scripts/cups-poll.m4)
29sinclude(config-scripts/cups-gssapi.m4)
30sinclude(config-scripts/cups-threads.m4)
31sinclude(config-scripts/cups-ssl.m4)
32sinclude(config-scripts/cups-pam.m4)
33sinclude(config-scripts/cups-largefile.m4)
34sinclude(config-scripts/cups-dnssd.m4)
35sinclude(config-scripts/cups-launchd.m4)
36sinclude(config-scripts/cups-defaults.m4)
37sinclude(config-scripts/cups-scripting.m4)
38
39INSTALL_LANGUAGES=""
40UNINSTALL_LANGUAGES=""
41LANGFILES=""
42if test "x$LANGUAGES" != x; then
43	INSTALL_LANGUAGES="install-languages"
44	UNINSTALL_LANGUAGES="uninstall-languages"
45	for lang in $LANGUAGES; do
46		if test -f doc/$lang/index.html.in; then
47			LANGFILES="$LANGFILES doc/$lang/index.html"
48		fi
49
50		if test -f templates/$lang/header.tmpl.in; then
51			LANGFILES="$LANGFILES templates/$lang/header.tmpl"
52		fi
53	done
54elif test "x$CUPS_BUNDLEDIR" != x; then
55	INSTALL_LANGUAGES="install-langbundle"
56	UNINSTALL_LANGUAGES="uninstall-langbundle"
57fi
58
59AC_SUBST(INSTALL_LANGUAGES)
60AC_SUBST(UNINSTALL_LANGUAGES)
61
62AC_OUTPUT(Makedefs
63	  conf/cups-files.conf
64	  conf/cupsd.conf
65	  conf/mime.convs
66	  conf/pam.std
67	  conf/snmp.conf
68	  cups-config
69	  data/testprint
70	  desktop/cups.desktop
71	  doc/help/ref-cups-files-conf.html
72	  doc/help/ref-cupsd-conf.html
73	  doc/index.html
74	  man/client.conf.man
75	  man/cups-deviced.man
76	  man/cups-driverd.man
77	  man/cups-files.conf.man
78	  man/cups-lpd.man
79	  man/cups-snmp.man
80	  man/cupsaddsmb.man
81	  man/cupsd.conf.man
82	  man/cupsd.man
83	  man/lpoptions.man
84	  scheduler/cups-lpd.xinetd
85	  scheduler/cups.sh
86	  scheduler/cups.xml
87	  scheduler/org.cups.cups-lpd.plist
88 	  templates/header.tmpl
89          packaging/cups.list
90	  $LANGFILES)
91
92chmod +x cups-config
93
94dnl
95dnl End of "$Id: configure.in 11110 2013-07-08 21:17:10Z msweet $".
96dnl
97