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