13632
# Find any Python interpreter.
13633
if test -z "$PYTHON"; then
13634
for ac_prog in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
13636
# Extract the first word of "$ac_prog", so it can be a program name with args.
13637
set dummy $ac_prog; ac_word=$2
13638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13639
$as_echo_n "checking for $ac_word... " >&6; }
13640
if ${ac_cv_path_PYTHON+:} false; then :
13641
$as_echo_n "(cached) " >&6
13645
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649
for as_dir in $PATH
13652
test -z "$as_dir" && as_dir=.
13653
for ac_exec_ext in '' $ac_executable_extensions; do
13654
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13655
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13656
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13666
PYTHON=$ac_cv_path_PYTHON
13667
if test -n "$PYTHON"; then
13668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13669
$as_echo "$PYTHON" >&6; }
13671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672
$as_echo "no" >&6; }
13676
test -n "$PYTHON" && break
13678
test -n "$PYTHON" || PYTHON=":"
13681
am_display_PYTHON=python
13684
if test "$PYTHON" = :; then
13685
as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13690
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13691
if ${am_cv_python_version+:} false; then :
13692
$as_echo_n "(cached) " >&6
13694
am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13697
$as_echo "$am_cv_python_version" >&6; }
13698
PYTHON_VERSION=$am_cv_python_version
13702
PYTHON_PREFIX='${prefix}'
13704
PYTHON_EXEC_PREFIX='${exec_prefix}'
13708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13709
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13710
if ${am_cv_python_platform+:} false; then :
13711
$as_echo_n "(cached) " >&6
13713
am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13716
$as_echo "$am_cv_python_platform" >&6; }
13717
PYTHON_PLATFORM=$am_cv_python_platform
13722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13723
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13724
if ${am_cv_python_pythondir+:} false; then :
13725
$as_echo_n "(cached) " >&6
13727
if test "x$prefix" = xNONE
13729
am_py_prefix=$ac_default_prefix
13731
am_py_prefix=$prefix
13733
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
13734
case $am_cv_python_pythondir in
13736
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13737
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13740
case $am_py_prefix in
13743
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13751
$as_echo "$am_cv_python_pythondir" >&6; }
13752
pythondir=$am_cv_python_pythondir
13756
pkgpythondir=\${pythondir}/$PACKAGE
13759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13760
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13761
if ${am_cv_python_pyexecdir+:} false; then :
13762
$as_echo_n "(cached) " >&6
13764
if test "x$exec_prefix" = xNONE
13766
am_py_exec_prefix=$am_py_prefix
13768
am_py_exec_prefix=$exec_prefix
13770
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
13771
case $am_cv_python_pyexecdir in
13772
$am_py_exec_prefix*)
13773
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13774
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13777
case $am_py_exec_prefix in
13780
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13788
$as_echo "$am_cv_python_pyexecdir" >&6; }
13789
pyexecdir=$am_cv_python_pyexecdir
13793
pkgpyexecdir=\${pyexecdir}/$PACKAGE
13801
PYGOBJECT_REQUIRED=2.90
13803
# Check whether --enable-python was given.
13804
if test "${enable_python+set}" = set; then :
13805
enableval=$enable_python; enable_python=$enableval
13807
enable_python="auto"
13811
if test "x$enable_python" = "xauto"; then
13812
if test -n "$PKG_CONFIG" && \
13813
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= \$PYGOBJECT_REQUIRED\""; } >&5
13814
($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= $PYGOBJECT_REQUIRED") 2>&5
13816
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817
test $ac_status = 0; }; then
13824
if test "x$enable_python" = "xyes"; then
13609
13826
pkg_failed=no
13610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
13611
$as_echo_n "checking for DBUS... " >&6; }
13827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
13828
$as_echo_n "checking for PYTHON... " >&6; }
13613
if test -n "$DBUS_CFLAGS"; then
13614
pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
13830
if test -n "$PYTHON_CFLAGS"; then
13831
pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
13615
13832
elif test -n "$PKG_CONFIG"; then
13616
13833
if test -n "$PKG_CONFIG" && \
13617
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.51, dbus-glib-1 >= 0.51\""; } >&5
13618
($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.51, dbus-glib-1 >= 0.51") 2>&5
13834
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= \$PYGOBJECT_REQUIRED\""; } >&5
13835
($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= $PYGOBJECT_REQUIRED") 2>&5
13620
13837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13621
13838
test $ac_status = 0; }; then
13622
pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.51, dbus-glib-1 >= 0.51" 2>/dev/null`
13839
pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "pygobject-3.0 >= $PYGOBJECT_REQUIRED" 2>/dev/null`
13623
13840
test "x$?" != "x0" && pkg_failed=yes
13625
13842
pkg_failed=yes
13657
13874
_pkg_short_errors_supported=no
13659
13876
if test $_pkg_short_errors_supported = yes; then
13660
DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 0.51, dbus-glib-1 >= 0.51" 2>&1`
13877
PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pygobject-3.0 >= $PYGOBJECT_REQUIRED" 2>&1`
13662
DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 0.51, dbus-glib-1 >= 0.51" 2>&1`
13879
PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pygobject-3.0 >= $PYGOBJECT_REQUIRED" 2>&1`
13664
13881
# Put the nasty error message in config.log where it belongs
13665
echo "$DBUS_PKG_ERRORS" >&5
13882
echo "$PYTHON_PKG_ERRORS" >&5
13884
as_fn_error $? "Package requirements (pygobject-3.0 >= $PYGOBJECT_REQUIRED) were not met:
13888
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13889
installed software in a non-standard prefix.
13891
Alternatively, you may set the environment variables PYTHON_CFLAGS
13892
and PYTHON_LIBS to avoid the need to call pkg-config.
13893
See the pkg-config man page for more details." "$LINENO" 5
13668
13894
elif test $pkg_failed = untried; then
13669
13895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670
13896
$as_echo "no" >&6; }
13897
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13898
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13899
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13900
is in your PATH or set the PKG_CONFIG environment variable to the full
13901
path to pkg-config.
13903
Alternatively, you may set the environment variables PYTHON_CFLAGS
13904
and PYTHON_LIBS to avoid the need to call pkg-config.
13905
See the pkg-config man page for more details.
13907
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13908
See \`config.log' for more details" "$LINENO" 5; }
13673
DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
13674
DBUS_LIBS=$pkg_cv_DBUS_LIBS
13910
PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
13911
PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
13675
13912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13676
13913
$as_echo "yes" >&6; }
13682
ac_config_files="$ac_config_files Makefile libsignon-glib/Makefile libsignon-glib.pc docs/Makefile docs/reference/Makefile tests/Makefile"
13917
pyoverridesdir=`$PYTHON -c "import gi;print gi._overridesdir"`
13921
if test x"$enable_python" = "xyes"; then
13922
ENABLE_PYTHON_TRUE=
13923
ENABLE_PYTHON_FALSE='#'
13925
ENABLE_PYTHON_TRUE='#'
13926
ENABLE_PYTHON_FALSE=
13930
ac_config_files="$ac_config_files Makefile libsignon-glib/Makefile libsignon-glib.pc docs/Makefile docs/reference/Makefile tests/Makefile pygobject/Makefile"
13684
13932
cat >confcache <<\_ACEOF
13685
13933
# This file is a shell script that caches the results of configure