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