Initial step at cleaning and splitting up configure.in.
[ira/wip.git] / source / python / config.m4
1 #################################################
2 # Check if the user wants Python
3
4 # At the moment, you can use this to set which Python binary to link
5 # against.  (Libraries built for Python2.2 can't be used by 2.1,
6 # though they can coexist in different directories.)  In the future
7 # this might make the Python stuff be built by default.
8
9 # Defaulting python breaks the clean target if python isn't installed
10
11 PYTHON=
12
13 AC_ARG_WITH(python,
14 [  --with-python=PYTHONNAME  build Python libraries],
15 [ case "${withval-python}" in
16   yes)
17         PYTHON=python
18         EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
19         ;;
20   no)
21         PYTHON=
22         ;;
23   *)
24         PYTHON=${withval-python}
25         ;;
26   esac ])
27 AC_SUBST(PYTHON)