2 dnl Scripting configuration stuff for CUPS.
4 dnl Copyright 2007-2010 by Apple Inc.
5 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
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/".
15 AC_ARG_WITH(java, [ --with-java set Java interpreter for web interfaces ],
19 if test "x$CUPS_JAVA" = x; then
20 AC_PATH_PROG(JAVA,java)
24 AC_DEFINE_UNQUOTED(CUPS_JAVA, "$CUPS_JAVA")
26 if test "x$CUPS_JAVA" != x; then
31 AC_ARG_WITH(perl, [ --with-perl set Perl interpreter for web interfaces ],
35 if test "x$CUPS_PERL" = x; then
36 AC_PATH_PROG(PERL,perl)
40 AC_DEFINE_UNQUOTED(CUPS_PERL, "$CUPS_PERL")
42 if test "x$CUPS_PERL" != x; then
47 AC_ARG_WITH(php, [ --with-php set PHP interpreter for web interfaces ],
51 if test "x$CUPS_PHP" = x; then
52 AC_PATH_PROG(PHPCGI,php-cgi)
53 if test "x$PHPCGI" = x; then
61 AC_DEFINE_UNQUOTED(CUPS_PHP, "$CUPS_PHP")
63 if test "x$CUPS_PHP" = x; then
69 dnl Do we have Python?
70 AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ],
71 CUPS_PYTHON="$withval",
74 if test "x$CUPS_PYTHON" = x; then
75 AC_PATH_PROG(PYTHON,python)
79 AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON")
81 if test "x$CUPS_PYTHON" != x; then
82 AC_DEFINE(HAVE_PYTHON)