]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-scripting.m4
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / config-scripts / cups-scripting.m4
CommitLineData
ef416fc2 1dnl
c07d5b2d 2dnl "$Id: cups-scripting.m4 177 2006-06-21 00:20:03Z jlovell $"
ef416fc2 3dnl
4dnl Scripting configuration stuff for the Common UNIX Printing System (CUPS).
5dnl
b423cd4c 6dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 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
b423cd4c 69if test "x$CUPS_PHP" = x; then
70 CUPS_PHP="no"
71else
ef416fc2 72 AC_DEFINE(HAVE_PHP)
73fi
74
b423cd4c 75PHPDIR=""
76if test "x$CUPS_PHP" != xno; then
77 AC_PATH_PROG(PHPCONFIG, php-config)
78
79 if test "x$PHPCONFIG" != x; then
80 PHPDIR="scripting/php"
81 fi
82fi
83
84AC_SUBST(PHPDIR)
85
ef416fc2 86dnl Do we have Python?
87AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ],
88 CUPS_PYTHON="$withval",
89 CUPS_PYTHON="")
90
91if test "x$CUPS_PYTHON" = x; then
92 AC_PATH_PROG(PYTHON,python)
93 CUPS_PYTHON="$PYTHON"
94fi
95
96AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON")
97
98if test "x$CUPS_PYTHON" != x; then
99 AC_DEFINE(HAVE_PYTHON)
100fi
101
102dnl
c07d5b2d 103dnl End of "$Id: cups-scripting.m4 177 2006-06-21 00:20:03Z jlovell $".
ef416fc2 104dnl