]>
Commit | Line | Data |
---|---|---|
1 | dnl | |
2 | dnl "$Id: cups-scripting.m4 6649 2007-07-11 21:46:42Z mike $" | |
3 | dnl | |
4 | dnl Scripting configuration stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
6 | dnl Copyright 2007 by Apple Inc. | |
7 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
8 | dnl | |
9 | dnl These coded instructions, statements, and computer programs are the | |
10 | dnl property of Apple Inc. and are protected by Federal copyright | |
11 | dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | dnl which should have been included with this file. If this file is | |
13 | dnl file is missing or damaged, see the license at "http://www.cups.org/". | |
14 | dnl | |
15 | ||
16 | dnl Do we have Java? | |
17 | AC_ARG_WITH(java, [ --with-java set Java interpreter for web interfaces ], | |
18 | CUPS_JAVA="$withval", | |
19 | CUPS_JAVA="") | |
20 | ||
21 | if test "x$CUPS_JAVA" = x; then | |
22 | AC_PATH_PROG(JAVA,java) | |
23 | CUPS_JAVA="$JAVA" | |
24 | fi | |
25 | ||
26 | AC_DEFINE_UNQUOTED(CUPS_JAVA, "$CUPS_JAVA") | |
27 | ||
28 | if test "x$CUPS_JAVA" != x; then | |
29 | AC_DEFINE(HAVE_JAVA) | |
30 | fi | |
31 | ||
32 | dnl Do we have Perl? | |
33 | AC_ARG_WITH(perl, [ --with-perl set Perl interpreter for web interfaces ], | |
34 | CUPS_PERL="$withval", | |
35 | CUPS_PERL="") | |
36 | ||
37 | if test "x$CUPS_PERL" = x; then | |
38 | AC_PATH_PROG(PERL,perl) | |
39 | CUPS_PERL="$PERL" | |
40 | fi | |
41 | ||
42 | AC_DEFINE_UNQUOTED(CUPS_PERL, "$CUPS_PERL") | |
43 | ||
44 | if test "x$CUPS_PERL" != x; then | |
45 | AC_DEFINE(HAVE_PERL) | |
46 | fi | |
47 | ||
48 | dnl Do we have PHP? | |
49 | AC_ARG_WITH(php, [ --with-php set PHP interpreter for web interfaces ], | |
50 | CUPS_PHP="$withval", | |
51 | CUPS_PHP="") | |
52 | ||
53 | if test "x$CUPS_PHP" = x; then | |
54 | AC_PATH_PROG(PHP,php) | |
55 | CUPS_PHP="$PHP" | |
56 | fi | |
57 | ||
58 | AC_DEFINE_UNQUOTED(CUPS_PHP, "$CUPS_PHP") | |
59 | ||
60 | if test "x$CUPS_PHP" = x; then | |
61 | CUPS_PHP="no" | |
62 | else | |
63 | AC_DEFINE(HAVE_PHP) | |
64 | fi | |
65 | ||
66 | PHPDIR="" | |
67 | if test "x$CUPS_PHP" != xno; then | |
68 | AC_PATH_PROG(PHPCONFIG, php-config) | |
69 | ||
70 | if test "x$PHPCONFIG" != x; then | |
71 | PHPDIR="scripting/php" | |
72 | fi | |
73 | fi | |
74 | ||
75 | AC_SUBST(PHPDIR) | |
76 | ||
77 | dnl Do we have Python? | |
78 | AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ], | |
79 | CUPS_PYTHON="$withval", | |
80 | CUPS_PYTHON="") | |
81 | ||
82 | if test "x$CUPS_PYTHON" = x; then | |
83 | AC_PATH_PROG(PYTHON,python) | |
84 | CUPS_PYTHON="$PYTHON" | |
85 | fi | |
86 | ||
87 | AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON") | |
88 | ||
89 | if test "x$CUPS_PYTHON" != x; then | |
90 | AC_DEFINE(HAVE_PYTHON) | |
91 | fi | |
92 | ||
93 | dnl | |
94 | dnl End of "$Id: cups-scripting.m4 6649 2007-07-11 21:46:42Z mike $". | |
95 | dnl |