1527
1532
C compiler flags for GTHREAD, overriding pkg-config
1529
1534
linker flags for GTHREAD, overriding pkg-config
1536
C compiler flags for GMODULE, overriding pkg-config
1538
linker flags for GMODULE, overriding pkg-config
1530
1539
GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1531
1540
GTK2_LIBS linker flags for GTK2, overriding pkg-config
1532
1541
GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
13394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
13395
$as_echo_n "checking for GMODULE... " >&6; }
13397
if test -n "$GMODULE_CFLAGS"; then
13398
pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
13399
elif test -n "$PKG_CONFIG"; then
13400
if test -n "$PKG_CONFIG" && \
13401
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13402
($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13404
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405
test $ac_status = 0; }; then
13406
pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
13413
if test -n "$GMODULE_LIBS"; then
13414
pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
13415
elif test -n "$PKG_CONFIG"; then
13416
if test -n "$PKG_CONFIG" && \
13417
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13418
($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13420
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13421
test $ac_status = 0; }; then
13422
pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
13432
if test $pkg_failed = yes; then
13433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434
$as_echo "no" >&6; }
13436
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13437
_pkg_short_errors_supported=yes
13439
_pkg_short_errors_supported=no
13441
if test $_pkg_short_errors_supported = yes; then
13442
GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gmodule-2.0" 2>&1`
13444
GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "gmodule-2.0" 2>&1`
13446
# Put the nasty error message in config.log where it belongs
13447
echo "$GMODULE_PKG_ERRORS" >&5
13449
as_fn_error $? "Package requirements (gmodule-2.0) were not met:
13451
$GMODULE_PKG_ERRORS
13453
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13454
installed software in a non-standard prefix.
13456
Alternatively, you may set the environment variables GMODULE_CFLAGS
13457
and GMODULE_LIBS to avoid the need to call pkg-config.
13458
See the pkg-config man page for more details." "$LINENO" 5
13460
elif test $pkg_failed = untried; then
13461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462
$as_echo "no" >&6; }
13463
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13464
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13465
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13466
is in your PATH or set the PKG_CONFIG environment variable to the full
13467
path to pkg-config.
13469
Alternatively, you may set the environment variables GMODULE_CFLAGS
13470
and GMODULE_LIBS to avoid the need to call pkg-config.
13471
See the pkg-config man page for more details.
13473
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13474
See \`config.log' for more details" "$LINENO" 5; }
13477
GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
13478
GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
13479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13480
$as_echo "yes" >&6; }
13384
13485
for ac_func in strtok_r
13386
13487
ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
13398
# Check whether --enable-more-warnings was given.
13399
if test "${enable_more_warnings+set}" = set; then :
13400
enableval=$enable_more_warnings; set_more_warnings="$enableval"
13403
if test -f $srcdir/CVSVERSION; then
13404
is_cvs_version=true
13405
set_more_warnings=yes
13407
set_more_warnings=no
13412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for more warnings" >&5
13413
$as_echo_n "checking for more warnings... " >&6; }
13414
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
13415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416
$as_echo "yes" >&6; }
13419
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
13420
-Wnested-externs -Wpointer-arith \
13421
-Wcast-align -Wsign-compare \
13424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425
$as_echo "no" >&6; }
13428
13497
# ===========================================================================
13430
13499
# ===========================================================================
13887
13956
##################################################
13957
# Compiler warnings
13958
##################################################
13960
save_CFLAGS="$CFLAGS"
13965
-Wunused -Wreturn-type -Wswitch -Wcomment -Wtrigraphs \
13966
-Wchar-subscripts -Wparentheses -Winline -Wredundant-decls \
13967
-Wformat-nonliteral -Werror=format-security \
13968
-Wsign-compare -Werror=implicit-function-declaration \
13969
-Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
13970
-Waggregate-return -Wcast-align -Wimplicit -Wuninitialized \
13971
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
13972
-Wpacked -Wmissing-format-attribute -Wshadow \
13973
-Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
13974
-Wdeclaration-after-statement -Wold-style-definition \
13975
-Wno-missing-field-initializers -Wno-unused-parameter \
13976
-Wunused-variable -Wunused-function \
13977
-Wempty-body -Wno-switch-enum \
13980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
13981
$as_echo_n "checking if $CC supports $flag flag... " >&6; }
13982
if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13983
$as_echo_n "(cached) " >&6
13986
if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13987
$as_echo_n "(cached) " >&6
13989
ac_save_CFLAGS="$CFLAGS"
13990
CFLAGS="$CFLAGS $flag"
13991
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992
/* end confdefs.h. */
13995
if ac_fn_c_try_compile "$LINENO"; then :
13996
eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
13998
eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
14000
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001
CFLAGS="$ac_save_CFLAGS"
14006
if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
14011
eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
14012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14013
$as_echo "$ac_res" >&6; }
14015
if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
14016
CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
14021
AM_CFLAGS="$AM_CFLAGS $CFLAGS"
14022
CFLAGS="$save_CFLAGS"
14024
##################################################
13888
14025
# Checks for gtk-doc and docbook-tools
13889
14026
##################################################