1653
1657
directories to add to pkg-config's search path
1654
1658
PKG_CONFIG_LIBDIR
1655
1659
path overriding pkg-config's built-in search path
1661
C compiler flags for GTKDOC_DEPS, overriding pkg-config
1663
linker flags for GTKDOC_DEPS, overriding pkg-config
1656
1664
GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1657
1665
GLIB_LIBS linker flags for GLIB, overriding pkg-config
1658
1666
DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
13409
13418
as_fn_error $? "gtk-doc not installed and --enable-gtk-doc requested" "$LINENO" 5
13420
if test "x$PACKAGE_NAME" != "xglib"; then
13423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13424
$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13426
if test -n "$GTKDOC_DEPS_CFLAGS"; then
13427
pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13428
elif test -n "$PKG_CONFIG"; then
13429
if test -n "$PKG_CONFIG" && \
13430
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
13431
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13433
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434
test $ac_status = 0; }; then
13435
pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13442
if test -n "$GTKDOC_DEPS_LIBS"; then
13443
pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13444
elif test -n "$PKG_CONFIG"; then
13445
if test -n "$PKG_CONFIG" && \
13446
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
13447
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13449
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13450
test $ac_status = 0; }; then
13451
pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13461
if test $pkg_failed = yes; then
13462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463
$as_echo "no" >&6; }
13465
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13466
_pkg_short_errors_supported=yes
13468
_pkg_short_errors_supported=no
13470
if test $_pkg_short_errors_supported = yes; then
13471
GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13473
GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13475
# Put the nasty error message in config.log where it belongs
13476
echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13478
as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
13480
$GTKDOC_DEPS_PKG_ERRORS
13482
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13483
installed software in a non-standard prefix.
13485
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13486
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13487
See the pkg-config man page for more details." "$LINENO" 5
13489
elif test $pkg_failed = untried; then
13490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491
$as_echo "no" >&6; }
13492
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13493
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13494
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13495
is in your PATH or set the PKG_CONFIG environment variable to the full
13496
path to pkg-config.
13498
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13499
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13500
See the pkg-config man page for more details.
13502
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13503
See \`config.log' for more details" "$LINENO" 5; }
13506
GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13507
GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509
$as_echo "yes" >&6; }
13413
13515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5