summaryrefslogtreecommitdiff
path: root/configure.in
blob: 4a5d804377d491bf29c4885f5747080471f168ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
dnl
dnl "$Id: configure.in 11109 2013-07-08 21:15:13Z msweet $"
dnl
dnl   Configuration script for CUPS.
dnl
dnl   Copyright 2007-2012 by Apple Inc.
dnl   Copyright 1997-2007 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

AC_INIT(cups/cups.h)

sinclude(config-scripts/cups-opsys.m4)
sinclude(config-scripts/cups-common.m4)
sinclude(config-scripts/cups-directories.m4)
sinclude(config-scripts/cups-manpages.m4)

sinclude(config-scripts/cups-sharedlibs.m4)
sinclude(config-scripts/cups-libtool.m4)
sinclude(config-scripts/cups-compiler.m4)

sinclude(config-scripts/cups-network.m4)
sinclude(config-scripts/cups-poll.m4)
sinclude(config-scripts/cups-gssapi.m4)
sinclude(config-scripts/cups-threads.m4)
sinclude(config-scripts/cups-ssl.m4)
sinclude(config-scripts/cups-pam.m4)
sinclude(config-scripts/cups-largefile.m4)
sinclude(config-scripts/cups-dnssd.m4)
sinclude(config-scripts/cups-launchd.m4)
sinclude(config-scripts/cups-defaults.m4)
sinclude(config-scripts/cups-scripting.m4)

INSTALL_LANGUAGES=""
UNINSTALL_LANGUAGES=""
LANGFILES=""
if test "x$LANGUAGES" != x; then
	INSTALL_LANGUAGES="install-languages"
	UNINSTALL_LANGUAGES="uninstall-languages"
	for lang in $LANGUAGES; do
		if test -f doc/$lang/index.html.in; then
			LANGFILES="$LANGFILES doc/$lang/index.html"
		fi

		if test -f templates/$lang/header.tmpl.in; then
			LANGFILES="$LANGFILES templates/$lang/header.tmpl"
		fi
	done
elif test "x$CUPS_BUNDLEDIR" != x; then
	INSTALL_LANGUAGES="install-langbundle"
	UNINSTALL_LANGUAGES="uninstall-langbundle"
fi

AC_SUBST(INSTALL_LANGUAGES)
AC_SUBST(UNINSTALL_LANGUAGES)

AC_OUTPUT(Makedefs
	  conf/cups-files.conf
	  conf/cupsd.conf
	  conf/mime.convs
	  conf/pam.std
	  conf/snmp.conf
	  cups-config
	  data/testprint
	  desktop/cups.desktop
	  doc/help/ref-cups-files-conf.html
	  doc/help/ref-cupsd-conf.html
	  doc/index.html
	  man/client.conf.man
	  man/cups-deviced.man
	  man/cups-driverd.man
	  man/cups-files.conf.man
	  man/cups-lpd.man
	  man/cups-snmp.man
	  man/cupsaddsmb.man
	  man/cupsd.conf.man
	  man/cupsd.man
	  man/lpoptions.man
	  scheduler/cups-lpd.xinetd
	  scheduler/cups.sh
	  scheduler/cups.xml
	  scheduler/org.cups.cups-lpd.plist
 	  templates/header.tmpl
          packaging/cups.list
	  $LANGFILES)

chmod +x cups-config

dnl
dnl End of "$Id: configure.in 11109 2013-07-08 21:15:13Z msweet $".
dnl