6379
# WDW - I give up. No matter what I do, I seem to find a package that
6380
# is specified somewhere, but the packaging is not honored by various
6383
#dnl Check for various modules. NOTE: On OpenSolaris, you may
6384
#dnl need to set PKG_CONFIG_PATH=/usr/lib/pkgconfig in order
6385
#dnl for these to be found.
6386
#PKG_CHECK_MODULES(orca, \
6387
# dbus-python >= 0.83.0 \
6388
# gnome-python-desktop-2.0 >= 2.24.0 \
6389
# libspi-1.0 >= 1.24.0 \
6400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
6401
$as_echo_n "checking for GTK... " >&6; }
6403
if test -n "$GTK_CFLAGS"; then
6404
pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6405
elif test -n "$PKG_CONFIG"; then
6406
if test -n "$PKG_CONFIG" && \
6407
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.1.14\""; } >&5
6408
($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.1.14") 2>&5
6410
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411
test $ac_status = 0; }; then
6412
pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.1.14" 2>/dev/null`
6419
if test -n "$GTK_LIBS"; then
6420
pkg_cv_GTK_LIBS="$GTK_LIBS"
6421
elif test -n "$PKG_CONFIG"; then
6422
if test -n "$PKG_CONFIG" && \
6423
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.1.14\""; } >&5
6424
($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.1.14") 2>&5
6426
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427
test $ac_status = 0; }; then
6428
pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.1.14" 2>/dev/null`
6438
if test $pkg_failed = yes; then
6439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440
$as_echo "no" >&6; }
6442
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6443
_pkg_short_errors_supported=yes
6445
_pkg_short_errors_supported=no
6447
if test $_pkg_short_errors_supported = yes; then
6448
GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-3.0 >= 3.1.14" 2>&1`
6450
GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-3.0 >= 3.1.14" 2>&1`
6452
# Put the nasty error message in config.log where it belongs
6453
echo "$GTK_PKG_ERRORS" >&5
6455
as_fn_error $? "Package requirements (gtk+-3.0 >= 3.1.14) were not met:
6459
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6460
installed software in a non-standard prefix.
6462
Alternatively, you may set the environment variables GTK_CFLAGS
6463
and GTK_LIBS to avoid the need to call pkg-config.
6464
See the pkg-config man page for more details." "$LINENO" 5
6466
elif test $pkg_failed = untried; then
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468
$as_echo "no" >&6; }
6469
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6470
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6471
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6472
is in your PATH or set the PKG_CONFIG environment variable to the full
6475
Alternatively, you may set the environment variables GTK_CFLAGS
6476
and GTK_LIBS to avoid the need to call pkg-config.
6477
See the pkg-config man page for more details.
6479
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6480
See \`config.log' for more details" "$LINENO" 5; }
6483
GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6484
GTK_LIBS=$pkg_cv_GTK_LIBS
6485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6486
$as_echo "yes" >&6; }
6491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGOBJECT" >&5
6492
$as_echo_n "checking for PYGOBJECT... " >&6; }
6494
if test -n "$PYGOBJECT_CFLAGS"; then
6495
pkg_cv_PYGOBJECT_CFLAGS="$PYGOBJECT_CFLAGS"
6496
elif test -n "$PKG_CONFIG"; then
6497
if test -n "$PKG_CONFIG" && \
6498
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= 2.90.3\""; } >&5
6499
($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= 2.90.3") 2>&5
6501
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502
test $ac_status = 0; }; then
6503
pkg_cv_PYGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "pygobject-3.0 >= 2.90.3" 2>/dev/null`
6510
if test -n "$PYGOBJECT_LIBS"; then
6511
pkg_cv_PYGOBJECT_LIBS="$PYGOBJECT_LIBS"
6512
elif test -n "$PKG_CONFIG"; then
6513
if test -n "$PKG_CONFIG" && \
6514
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= 2.90.3\""; } >&5
6515
($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= 2.90.3") 2>&5
6517
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518
test $ac_status = 0; }; then
6519
pkg_cv_PYGOBJECT_LIBS=`$PKG_CONFIG --libs "pygobject-3.0 >= 2.90.3" 2>/dev/null`
6529
if test $pkg_failed = yes; then
6530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531
$as_echo "no" >&6; }
6533
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6534
_pkg_short_errors_supported=yes
6536
_pkg_short_errors_supported=no
6538
if test $_pkg_short_errors_supported = yes; then
6539
PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pygobject-3.0 >= 2.90.3" 2>&1`
6541
PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pygobject-3.0 >= 2.90.3" 2>&1`
6543
# Put the nasty error message in config.log where it belongs
6544
echo "$PYGOBJECT_PKG_ERRORS" >&5
6546
as_fn_error $? "Package requirements (pygobject-3.0 >= 2.90.3) were not met:
6548
$PYGOBJECT_PKG_ERRORS
6550
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6551
installed software in a non-standard prefix.
6553
Alternatively, you may set the environment variables PYGOBJECT_CFLAGS
6554
and PYGOBJECT_LIBS to avoid the need to call pkg-config.
6555
See the pkg-config man page for more details." "$LINENO" 5
6557
elif test $pkg_failed = untried; then
6558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559
$as_echo "no" >&6; }
6560
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6561
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6562
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6563
is in your PATH or set the PKG_CONFIG environment variable to the full
6566
Alternatively, you may set the environment variables PYGOBJECT_CFLAGS
6567
and PYGOBJECT_LIBS to avoid the need to call pkg-config.
6568
See the pkg-config man page for more details.
6570
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6571
See \`config.log' for more details" "$LINENO" 5; }
6574
PYGOBJECT_CFLAGS=$pkg_cv_PYGOBJECT_CFLAGS
6575
PYGOBJECT_LIBS=$pkg_cv_PYGOBJECT_LIBS
6576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6577
$as_echo "yes" >&6; }
6582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATSPI2" >&5
6583
$as_echo_n "checking for ATSPI2... " >&6; }
6585
if test -n "$ATSPI2_CFLAGS"; then
6586
pkg_cv_ATSPI2_CFLAGS="$ATSPI2_CFLAGS"
6587
elif test -n "$PKG_CONFIG"; then
6588
if test -n "$PKG_CONFIG" && \
6589
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atspi-2 >= 2.1.90\""; } >&5
6590
($PKG_CONFIG --exists --print-errors "atspi-2 >= 2.1.90") 2>&5
6592
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593
test $ac_status = 0; }; then
6594
pkg_cv_ATSPI2_CFLAGS=`$PKG_CONFIG --cflags "atspi-2 >= 2.1.90" 2>/dev/null`
6601
if test -n "$ATSPI2_LIBS"; then
6602
pkg_cv_ATSPI2_LIBS="$ATSPI2_LIBS"
6603
elif test -n "$PKG_CONFIG"; then
6604
if test -n "$PKG_CONFIG" && \
6605
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atspi-2 >= 2.1.90\""; } >&5
6606
($PKG_CONFIG --exists --print-errors "atspi-2 >= 2.1.90") 2>&5
6608
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609
test $ac_status = 0; }; then
6610
pkg_cv_ATSPI2_LIBS=`$PKG_CONFIG --libs "atspi-2 >= 2.1.90" 2>/dev/null`
6620
if test $pkg_failed = yes; then
6621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622
$as_echo "no" >&6; }
6624
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6625
_pkg_short_errors_supported=yes
6627
_pkg_short_errors_supported=no
6629
if test $_pkg_short_errors_supported = yes; then
6630
ATSPI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "atspi-2 >= 2.1.90" 2>&1`
6632
ATSPI2_PKG_ERRORS=`$PKG_CONFIG --print-errors "atspi-2 >= 2.1.90" 2>&1`
6634
# Put the nasty error message in config.log where it belongs
6635
echo "$ATSPI2_PKG_ERRORS" >&5
6637
as_fn_error $? "Package requirements (atspi-2 >= 2.1.90) were not met:
6641
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6642
installed software in a non-standard prefix.
6644
Alternatively, you may set the environment variables ATSPI2_CFLAGS
6645
and ATSPI2_LIBS to avoid the need to call pkg-config.
6646
See the pkg-config man page for more details." "$LINENO" 5
6648
elif test $pkg_failed = untried; then
6649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650
$as_echo "no" >&6; }
6651
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6652
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6653
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6654
is in your PATH or set the PKG_CONFIG environment variable to the full
6657
Alternatively, you may set the environment variables ATSPI2_CFLAGS
6658
and ATSPI2_LIBS to avoid the need to call pkg-config.
6659
See the pkg-config man page for more details.
6661
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6662
See \`config.log' for more details" "$LINENO" 5; }
6665
ATSPI2_CFLAGS=$pkg_cv_ATSPI2_CFLAGS
6666
ATSPI2_LIBS=$pkg_cv_ATSPI2_LIBS
6667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6668
$as_echo "yes" >&6; }
6619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk version 2.0" >&5
6620
$as_echo_n "checking for pygtk version 2.0... " >&6; }
6621
py_mod_var=`echo 2.0 | sed 'y%./+-%__p_%'`
6622
if eval \${py_cv_mod_$py_mod_var+:} false; then :
6623
$as_echo_n "(cached) " >&6
6630
pygtk.require('2.0')
6634
if $PYTHON -c "$prog" 1>&5 2>&5
6636
eval "py_cv_mod_$py_mod_var=yes"
6638
eval "py_cv_mod_$py_mod_var=no"
6643
py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
6644
if test "x$py_val" != xno; then
6645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6646
$as_echo "yes" >&6; }
6648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649
$as_echo "no" >&6; }
6650
as_fn_error $? "Could not find pygtk 2.0" "$LINENO" 5
6654
py_mod_var=`echo gobject'_' | sed 'y%./+-%__p_%'`
6655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module gobject" >&5
6656
$as_echo_n "checking for python module gobject... " >&6; }
6657
if eval \${py_cv_mod_$py_mod_var+:} false; then :
6658
$as_echo_n "(cached) " >&6
6665
pygtk.require('2.0')
6672
if $PYTHON -c "$prog" 1>&5 2>&5
6674
eval "py_cv_mod_$py_mod_var=yes"
6676
eval "py_cv_mod_$py_mod_var=no"
6681
py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
6682
if test "x$py_val" != xno; then
6683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6684
$as_echo "yes" >&6; }
6686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687
$as_echo "no" >&6; }
6688
as_fn_error $? "Could not find python module: gobject" "$LINENO" 5
6900
#AM_CHECK_PYMOD(gobject,,,[AC_MSG_ERROR(Could not find python module: gobject)])
6691
6901
# Don't require the DISPLAY to be set - the gtk checking will fail
6692
6902
# if DISPLAY is not set, and we don't like that.
6693
#AM_CHECK_PYMOD(gtk,gdk,,[AC_MSG_ERROR(Could not find python module: gtk.gdk)])
6695
6905
py_mod_var=`echo dbus'_' | sed 'y%./+-%__p_%'`
6696
6906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module dbus" >&5