1 # ===========================================================================
2 # http://www.nongnu.org/autoconf-archive/ax_with_python.html
3 # ===========================================================================
7 # AX_WITH_PYTHON([VALUE-IF-NOT-FOUND],[PATH])
11 # Locates an installed Python binary, placing the result in the precious
12 # variable $PYTHON. Accepts a present $PYTHON, then --with-python, and
13 # failing that searches for python in the given path (which defaults to
14 # the system path). If python is found, $PYTHON is set to the full path of
15 # the binary; if it is not found $PYTHON is set to VALUE-IF-NOT-FOUND if
16 # provided, unchanged otherwise.
18 # A typical use could be the following one:
24 # Copyright (c) 2008 Francesco Salvestrini <salvestrini@users.sourceforge.net>
26 # Copying and distribution of this file, with or without modification, are
27 # permitted in any medium without royalty provided the copyright notice
28 # and this notice are preserved.
30 AC_DEFUN([AX_WITH_PYTHON],[
31 AX_WITH_PROG(PYTHON,python,$1,$2)