]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-scripting.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-scripting.m4
CommitLineData
ef416fc2 1dnl
2dnl "$Id: cups-scripting.m4 4494 2005-02-18 02:18:11Z mike $"
3dnl
4dnl Scripting configuration stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org
23dnl
24
25dnl Do we have Java?
26AC_ARG_WITH(java, [ --with-java set Java interpreter for web interfaces ],
27 CUPS_JAVA="$withval",
28 CUPS_JAVA="")
29
30if test "x$CUPS_JAVA" = x; then
31 AC_PATH_PROG(JAVA,java)
32 CUPS_JAVA="$JAVA"
33fi
34
35AC_DEFINE_UNQUOTED(CUPS_JAVA, "$CUPS_JAVA")
36
37if test "x$CUPS_JAVA" != x; then
38 AC_DEFINE(HAVE_JAVA)
39fi
40
41dnl Do we have Perl?
42AC_ARG_WITH(perl, [ --with-perl set Perl interpreter for web interfaces ],
43 CUPS_PERL="$withval",
44 CUPS_PERL="")
45
46if test "x$CUPS_PERL" = x; then
47 AC_PATH_PROG(PERL,perl)
48 CUPS_PERL="$PERL"
49fi
50
51AC_DEFINE_UNQUOTED(CUPS_PERL, "$CUPS_PERL")
52
53if test "x$CUPS_PERL" != x; then
54 AC_DEFINE(HAVE_PERL)
55fi
56
57dnl Do we have PHP?
58AC_ARG_WITH(php, [ --with-php set PHP interpreter for web interfaces ],
59 CUPS_PHP="$withval",
60 CUPS_PHP="")
61
62if test "x$CUPS_PHP" = x; then
63 AC_PATH_PROG(PHP,php)
64 CUPS_PHP="$PHP"
65fi
66
67AC_DEFINE_UNQUOTED(CUPS_PHP, "$CUPS_PHP")
68
69if test "x$CUPS_PHP" != x; then
70 AC_DEFINE(HAVE_PHP)
71fi
72
73dnl Do we have Python?
74AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ],
75 CUPS_PYTHON="$withval",
76 CUPS_PYTHON="")
77
78if test "x$CUPS_PYTHON" = x; then
79 AC_PATH_PROG(PYTHON,python)
80 CUPS_PYTHON="$PYTHON"
81fi
82
83AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON")
84
85if test "x$CUPS_PYTHON" != x; then
86 AC_DEFINE(HAVE_PYTHON)
87fi
88
89dnl
90dnl End of "$Id: cups-scripting.m4 4494 2005-02-18 02:18:11Z mike $".
91dnl