# HG changeset patch # User Gary Kramlich # Date 1135120616 0 # Node ID 8e15977b9705139d79f50a747b0043611f8655ac # Parent 301e9f0841d70c63d7d2cdb96aa8a24993995189 [gaim-migrate @ 14912] Tweaking the python detection for those of use that have both python2.3 and python2.4 installed. Now instead of depending on python pointing to pyton2.4, you can use --with-python to specify which python interpreter to use. committer: Tailor Script diff -r 301e9f0841d7 -r 8e15977b9705 configure.ac --- a/configure.ac Tue Dec 20 22:57:54 2005 +0000 +++ b/configure.ac Tue Dec 20 23:16:56 2005 +0000 @@ -515,10 +515,17 @@ dnl auto-generated stuff to the CVS is inelegant. Alternatively, dnl these python scripts could be rewritten in C (brrrr ...). +AC_ARG_WITH([python], + AC_HELP_STRING([--with-python], + [Which python interpreter to use for dbus code generation]), + PYTHON=$withval) if test "x$enable_dbus" = "xyes" ; then - AC_PATH_PROG([PYTHON], [python], [no]) - if test "x$PYTHON" = "xno" ; then + if test -z "$PYTHON" ; then + AC_PATH_PROG([PYTHON], [python], [no]) + fi + + if test x"$python" = x"no" ; then AC_MSG_WARN([python interpreter not found in your path]) enable_dbus=no fi @@ -528,7 +535,7 @@ if $PYTHON -c "import sys; sys.exit(sys.version[[:3]] >= '2.4')" ; then AC_MSG_WARN([python version >= 2.4 required]) enable_dbus=no - fi + fi fi dnl Here we locate the directory containing DBus .service files for @@ -1681,10 +1688,10 @@ echo Build with GtkSpell support... : $enable_gtkspell echo Build with Voice/Video support : $enable_vv echo Build with DBUS support....... : $enable_dbus -echo Build with Cyrus SASL support. : $enable_cyrus_sasl if test x$enable_dbus = xyes ; then echo DBUS session directory........ : $DBUS_SESSION_DIR fi +echo Build with Cyrus SASL support. : $enable_cyrus_sasl echo Has you....................... : yes echo echo