10822
#############################################
10824
#############################################
10825
GETTEXT_PACKAGE="$PACKAGE"
10827
CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS'
10830
cat >>confdefs.h <<_ACEOF
10831
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
10835
for ac_header in locale.h
10837
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10838
if test "x$ac_cv_header_locale_h" = x""yes; then :
10839
cat >>confdefs.h <<_ACEOF
10840
#define HAVE_LOCALE_H 1
10847
if test $ac_cv_header_locale_h = yes; then
10848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10849
$as_echo_n "checking for LC_MESSAGES... " >&6; }
10850
if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10851
$as_echo_n "(cached) " >&6
10853
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854
/* end confdefs.h. */
10855
#include <locale.h>
10864
if ac_fn_c_try_link "$LINENO"; then :
10865
am_cv_val_LC_MESSAGES=yes
10867
am_cv_val_LC_MESSAGES=no
10869
rm -f core conftest.err conftest.$ac_objext \
10870
conftest$ac_exeext conftest.$ac_ext
10872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10873
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10874
if test $am_cv_val_LC_MESSAGES = yes; then
10876
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10883
gt_cv_have_gettext=no
10889
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10890
if test "x$ac_cv_header_libintl_h" = x""yes; then :
10891
gt_cv_func_dgettext_libintl="no"
10892
libintl_extra_libs=""
10895
# First check in libc
10897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
10898
$as_echo_n "checking for ngettext in libc... " >&6; }
10899
if test "${gt_cv_func_ngettext_libc+set}" = set; then :
10900
$as_echo_n "(cached) " >&6
10902
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903
/* end confdefs.h. */
10905
#include <libintl.h>
10910
return !ngettext ("","", 1)
10915
if ac_fn_c_try_link "$LINENO"; then :
10916
gt_cv_func_ngettext_libc=yes
10918
gt_cv_func_ngettext_libc=no
10920
rm -f core conftest.err conftest.$ac_objext \
10921
conftest$ac_exeext conftest.$ac_ext
10924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
10925
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
10927
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
10929
$as_echo_n "checking for dgettext in libc... " >&6; }
10930
if test "${gt_cv_func_dgettext_libc+set}" = set; then :
10931
$as_echo_n "(cached) " >&6
10933
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934
/* end confdefs.h. */
10936
#include <libintl.h>
10941
return !dgettext ("","")
10946
if ac_fn_c_try_link "$LINENO"; then :
10947
gt_cv_func_dgettext_libc=yes
10949
gt_cv_func_dgettext_libc=no
10951
rm -f core conftest.err conftest.$ac_objext \
10952
conftest$ac_exeext conftest.$ac_ext
10955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
10956
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
10959
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10960
for ac_func in bind_textdomain_codeset
10962
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
10963
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
10964
cat >>confdefs.h <<_ACEOF
10965
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
10974
# If we don't have everything we want, check in libintl
10976
if test "$gt_cv_func_dgettext_libc" != "yes" \
10977
|| test "$gt_cv_func_ngettext_libc" != "yes" \
10978
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
10981
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10982
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
10983
$as_echo_n "(cached) " >&6
10985
ac_check_lib_save_LIBS=$LIBS
10986
LIBS="-lintl $LIBS"
10987
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988
/* end confdefs.h. */
10990
/* Override any GCC internal prototype to avoid an error.
10991
Use char because int might match the return type of a GCC
10992
builtin and then its argument prototype would still apply. */
10996
char bindtextdomain ();
11000
return bindtextdomain ();
11005
if ac_fn_c_try_link "$LINENO"; then :
11006
ac_cv_lib_intl_bindtextdomain=yes
11008
ac_cv_lib_intl_bindtextdomain=no
11010
rm -f core conftest.err conftest.$ac_objext \
11011
conftest$ac_exeext conftest.$ac_ext
11012
LIBS=$ac_check_lib_save_LIBS
11014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
11015
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11016
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
11017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11018
$as_echo_n "checking for ngettext in -lintl... " >&6; }
11019
if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
11020
$as_echo_n "(cached) " >&6
11022
ac_check_lib_save_LIBS=$LIBS
11023
LIBS="-lintl $LIBS"
11024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025
/* end confdefs.h. */
11027
/* Override any GCC internal prototype to avoid an error.
11028
Use char because int might match the return type of a GCC
11029
builtin and then its argument prototype would still apply. */
11037
return ngettext ();
11042
if ac_fn_c_try_link "$LINENO"; then :
11043
ac_cv_lib_intl_ngettext=yes
11045
ac_cv_lib_intl_ngettext=no
11047
rm -f core conftest.err conftest.$ac_objext \
11048
conftest$ac_exeext conftest.$ac_ext
11049
LIBS=$ac_check_lib_save_LIBS
11051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11052
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11053
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
11054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
11055
$as_echo_n "checking for dgettext in -lintl... " >&6; }
11056
if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
11057
$as_echo_n "(cached) " >&6
11059
ac_check_lib_save_LIBS=$LIBS
11060
LIBS="-lintl $LIBS"
11061
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062
/* end confdefs.h. */
11064
/* Override any GCC internal prototype to avoid an error.
11065
Use char because int might match the return type of a GCC
11066
builtin and then its argument prototype would still apply. */
11074
return dgettext ();
11079
if ac_fn_c_try_link "$LINENO"; then :
11080
ac_cv_lib_intl_dgettext=yes
11082
ac_cv_lib_intl_dgettext=no
11084
rm -f core conftest.err conftest.$ac_objext \
11085
conftest$ac_exeext conftest.$ac_ext
11086
LIBS=$ac_check_lib_save_LIBS
11088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
11089
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11090
if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
11091
gt_cv_func_dgettext_libintl=yes
11099
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
11101
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11105
$as_echo_n "checking for ngettext in -lintl... " >&6; }
11106
if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
11107
$as_echo_n "(cached) " >&6
11109
ac_check_lib_save_LIBS=$LIBS
11110
LIBS="-lintl -liconv $LIBS"
11111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112
/* end confdefs.h. */
11114
/* Override any GCC internal prototype to avoid an error.
11115
Use char because int might match the return type of a GCC
11116
builtin and then its argument prototype would still apply. */
11124
return ngettext ();
11129
if ac_fn_c_try_link "$LINENO"; then :
11130
ac_cv_lib_intl_ngettext=yes
11132
ac_cv_lib_intl_ngettext=no
11134
rm -f core conftest.err conftest.$ac_objext \
11135
conftest$ac_exeext conftest.$ac_ext
11136
LIBS=$ac_check_lib_save_LIBS
11138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11139
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11140
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
11141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
11142
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
11143
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
11144
$as_echo_n "(cached) " >&6
11146
ac_check_lib_save_LIBS=$LIBS
11147
LIBS="-lintl -liconv $LIBS"
11148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149
/* end confdefs.h. */
11151
/* Override any GCC internal prototype to avoid an error.
11152
Use char because int might match the return type of a GCC
11153
builtin and then its argument prototype would still apply. */
11161
return dcgettext ();
11166
if ac_fn_c_try_link "$LINENO"; then :
11167
ac_cv_lib_intl_dcgettext=yes
11169
ac_cv_lib_intl_dcgettext=no
11171
rm -f core conftest.err conftest.$ac_objext \
11172
conftest$ac_exeext conftest.$ac_ext
11173
LIBS=$ac_check_lib_save_LIBS
11175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
11176
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11177
if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
11178
gt_cv_func_dgettext_libintl=yes
11179
libintl_extra_libs=-liconv
11191
# If we found libintl, then check in it for bind_textdomain_codeset();
11192
# we'll prefer libc if neither have bind_textdomain_codeset(),
11193
# and both have dgettext and ngettext
11195
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11196
glib_save_LIBS="$LIBS"
11197
LIBS="$LIBS -lintl $libintl_extra_libs"
11198
unset ac_cv_func_bind_textdomain_codeset
11199
for ac_func in bind_textdomain_codeset
11201
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11202
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11203
cat >>confdefs.h <<_ACEOF
11204
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11210
LIBS="$glib_save_LIBS"
11212
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11213
gt_cv_func_dgettext_libc=no
11215
if test "$gt_cv_func_dgettext_libc" = "yes" \
11216
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
11217
gt_cv_func_dgettext_libintl=no
11223
if test "$gt_cv_func_dgettext_libc" = "yes" \
11224
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
11225
gt_cv_have_gettext=yes
11228
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11229
INTLLIBS="-lintl $libintl_extra_libs"
11232
if test "$gt_cv_have_gettext" = "yes"; then
11234
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11236
# Extract the first word of "msgfmt", so it can be a program name with args.
11237
set dummy msgfmt; ac_word=$2
11238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239
$as_echo_n "checking for $ac_word... " >&6; }
11240
if test "${ac_cv_path_MSGFMT+set}" = set; then :
11241
$as_echo_n "(cached) " >&6
11245
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11248
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11249
for ac_dir in $PATH; do
11250
test -z "$ac_dir" && ac_dir=.
11251
if test -f $ac_dir/$ac_word; then
11252
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11253
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11259
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11263
MSGFMT="$ac_cv_path_MSGFMT"
11264
if test "$MSGFMT" != "no"; then
11265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11266
$as_echo "$MSGFMT" >&6; }
11268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269
$as_echo "no" >&6; }
11271
if test "$MSGFMT" != "no"; then
11272
glib_save_LIBS="$LIBS"
11273
LIBS="$LIBS $INTLLIBS"
11274
for ac_func in dcgettext
11276
ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
11277
if test "x$ac_cv_func_dcgettext" = x""yes; then :
11278
cat >>confdefs.h <<_ACEOF
11279
#define HAVE_DCGETTEXT 1
11286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
11287
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
11288
cat >conftest.foo <<_ACEOF
11292
"Content-Type: text/plain; charset=UTF-8\n"
11293
"Project-Id-Version: test 1.0\n"
11294
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
11295
"Last-Translator: test <foo@bar.xx>\n"
11296
"Language-Team: C <LL@li.org>\n"
11297
"MIME-Version: 1.0\n"
11298
"Content-Transfer-Encoding: 8bit\n"
11301
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
11302
($MSGFMT -c -o /dev/null conftest.foo) 2>&5
11304
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305
test $ac_status = 0; }; then
11306
MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11307
$as_echo "yes" >&6; }
11308
else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309
$as_echo "no" >&6; }
11310
echo "$as_me: failed input was:" >&5
11311
sed 's/^/| /' conftest.foo >&5
11314
# Extract the first word of "gmsgfmt", so it can be a program name with args.
11315
set dummy gmsgfmt; ac_word=$2
11316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317
$as_echo_n "checking for $ac_word... " >&6; }
11318
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11319
$as_echo_n "(cached) " >&6
11323
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327
for as_dir in $PATH
11330
test -z "$as_dir" && as_dir=.
11331
for ac_exec_ext in '' $ac_executable_extensions; do
11332
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11333
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11334
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11345
GMSGFMT=$ac_cv_path_GMSGFMT
11346
if test -n "$GMSGFMT"; then
11347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11348
$as_echo "$GMSGFMT" >&6; }
11350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351
$as_echo "no" >&6; }
11355
# Extract the first word of "xgettext", so it can be a program name with args.
11356
set dummy xgettext; ac_word=$2
11357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358
$as_echo_n "checking for $ac_word... " >&6; }
11359
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11360
$as_echo_n "(cached) " >&6
11362
case "$XGETTEXT" in
11364
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11367
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11368
for ac_dir in $PATH; do
11369
test -z "$ac_dir" && ac_dir=.
11370
if test -f $ac_dir/$ac_word; then
11371
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11372
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11378
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11382
XGETTEXT="$ac_cv_path_XGETTEXT"
11383
if test "$XGETTEXT" != ":"; then
11384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11385
$as_echo "$XGETTEXT" >&6; }
11387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388
$as_echo "no" >&6; }
11391
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392
/* end confdefs.h. */
11397
extern int _nl_msg_cat_cntr;
11398
return _nl_msg_cat_cntr
11403
if ac_fn_c_try_link "$LINENO"; then :
11409
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11410
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11425
rm -f core conftest.err conftest.$ac_objext \
11426
conftest$ac_exeext conftest.$ac_ext
11427
LIBS="$glib_save_LIBS"
11430
gt_cv_have_gettext=no
11438
if test "$gt_cv_have_gettext" = "yes" ; then
11440
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11444
if test "$XGETTEXT" != ":"; then
11445
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11449
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11454
# We need to process the po/ directory.
11457
ac_config_commands="$ac_config_commands default-1"
11460
for lang in $ALL_LINGUAS; do
11461
GMOFILES="$GMOFILES $lang.gmo"
11462
POFILES="$POFILES $lang.po"
11477
if test "$gt_cv_have_gettext" = "yes"; then
11478
if test "x$ALL_LINGUAS" = "x"; then
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11482
$as_echo_n "checking for catalogs to be installed... " >&6; }
11484
for presentlang in $ALL_LINGUAS; do
11486
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
11487
desiredlanguages="$LINGUAS"
11489
desiredlanguages="$ALL_LINGUAS"
11491
for desiredlang in $desiredlanguages; do
11492
# Use the presentlang catalog if desiredlang is
11493
# a. equal to presentlang, or
11494
# b. a variant of presentlang (because in this case,
11495
# presentlang can be used as a fallback for messages
11496
# which are not translated in the desiredlang catalog).
11497
case "$desiredlang" in
11498
"$presentlang"*) useit=yes;;
11501
if test $useit = yes; then
11502
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
11505
LINGUAS=$NEW_LINGUAS
11506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11507
$as_echo "$LINGUAS" >&6; }
11510
if test -n "$LINGUAS"; then
11511
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11516
if test -n "$ac_aux_dir"; then
11517
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11519
if test -z "$MKINSTALLDIRS"; then
11520
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11524
test -d po || mkdir po
11525
if test "x$srcdir" != "x."; then
11526
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11527
posrcprefix="$srcdir/"
11529
posrcprefix="../$srcdir/"
11535
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11536
< $srcdir/po/POTFILES.in > po/POTFILES
11539
# AM_GNOME_GETTEXT above substs $DATADIRNAME
11540
# this is the directory where the *.{mo,gmo} files are installed
11541
localedir='${prefix}/${DATADIRNAME}/locale'
11545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11546
$as_echo_n "checking whether NLS is requested... " >&6; }
11547
# Check whether --enable-nls was given.
11548
if test "${enable_nls+set}" = set; then :
11549
enableval=$enable_nls; USE_NLS=$enableval
11554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11555
$as_echo "$USE_NLS" >&6; }
11560
case "$am__api_version" in
11562
as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
11568
if test -n "0.40.0"; then
11569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5
11570
$as_echo_n "checking for intltool >= 0.40.0... " >&6; }
11572
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11573
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
11574
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
11577
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
11578
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
11579
as_fn_error $? "Your intltool is too old. You need intltool 0.40.0 or later." "$LINENO" 5
11582
# Extract the first word of "intltool-update", so it can be a program name with args.
11583
set dummy intltool-update; ac_word=$2
11584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585
$as_echo_n "checking for $ac_word... " >&6; }
11586
if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
11587
$as_echo_n "(cached) " >&6
11589
case $INTLTOOL_UPDATE in
11591
ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
11594
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595
for as_dir in $PATH
11598
test -z "$as_dir" && as_dir=.
11599
for ac_exec_ext in '' $ac_executable_extensions; do
11600
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601
ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
11602
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11612
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
11613
if test -n "$INTLTOOL_UPDATE"; then
11614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
11615
$as_echo "$INTLTOOL_UPDATE" >&6; }
11617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618
$as_echo "no" >&6; }
11622
# Extract the first word of "intltool-merge", so it can be a program name with args.
11623
set dummy intltool-merge; ac_word=$2
11624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625
$as_echo_n "checking for $ac_word... " >&6; }
11626
if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
11627
$as_echo_n "(cached) " >&6
11629
case $INTLTOOL_MERGE in
11631
ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
11634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635
for as_dir in $PATH
11638
test -z "$as_dir" && as_dir=.
11639
for ac_exec_ext in '' $ac_executable_extensions; do
11640
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641
ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
11642
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
11653
if test -n "$INTLTOOL_MERGE"; then
11654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
11655
$as_echo "$INTLTOOL_MERGE" >&6; }
11657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658
$as_echo "no" >&6; }
11662
# Extract the first word of "intltool-extract", so it can be a program name with args.
11663
set dummy intltool-extract; ac_word=$2
11664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665
$as_echo_n "checking for $ac_word... " >&6; }
11666
if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
11667
$as_echo_n "(cached) " >&6
11669
case $INTLTOOL_EXTRACT in
11671
ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
11674
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675
for as_dir in $PATH
11678
test -z "$as_dir" && as_dir=.
11679
for ac_exec_ext in '' $ac_executable_extensions; do
11680
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681
ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
11682
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
11693
if test -n "$INTLTOOL_EXTRACT"; then
11694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
11695
$as_echo "$INTLTOOL_EXTRACT" >&6; }
11697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698
$as_echo "no" >&6; }
11702
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
11703
as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
11706
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11707
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11708
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11709
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11710
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
11711
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11712
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11713
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11714
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11715
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11716
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11717
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
11718
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11719
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11720
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11721
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11722
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11723
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11724
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11822
# Check the gettext tools to make sure they are GNU
11823
# Extract the first word of "xgettext", so it can be a program name with args.
11824
set dummy xgettext; ac_word=$2
11825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826
$as_echo_n "checking for $ac_word... " >&6; }
11827
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11828
$as_echo_n "(cached) " >&6
11832
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836
for as_dir in $PATH
11839
test -z "$as_dir" && as_dir=.
11840
for ac_exec_ext in '' $ac_executable_extensions; do
11841
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842
ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
11843
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853
XGETTEXT=$ac_cv_path_XGETTEXT
11854
if test -n "$XGETTEXT"; then
11855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11856
$as_echo "$XGETTEXT" >&6; }
11858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859
$as_echo "no" >&6; }
11863
# Extract the first word of "msgmerge", so it can be a program name with args.
11864
set dummy msgmerge; ac_word=$2
11865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866
$as_echo_n "checking for $ac_word... " >&6; }
11867
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11868
$as_echo_n "(cached) " >&6
11872
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876
for as_dir in $PATH
11879
test -z "$as_dir" && as_dir=.
11880
for ac_exec_ext in '' $ac_executable_extensions; do
11881
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11882
ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
11883
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893
MSGMERGE=$ac_cv_path_MSGMERGE
11894
if test -n "$MSGMERGE"; then
11895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11896
$as_echo "$MSGMERGE" >&6; }
11898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899
$as_echo "no" >&6; }
11903
# Extract the first word of "msgfmt", so it can be a program name with args.
11904
set dummy msgfmt; ac_word=$2
11905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906
$as_echo_n "checking for $ac_word... " >&6; }
11907
if test "${ac_cv_path_MSGFMT+set}" = set; then :
11908
$as_echo_n "(cached) " >&6
11912
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916
for as_dir in $PATH
11919
test -z "$as_dir" && as_dir=.
11920
for ac_exec_ext in '' $ac_executable_extensions; do
11921
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
11923
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933
MSGFMT=$ac_cv_path_MSGFMT
11934
if test -n "$MSGFMT"; then
11935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11936
$as_echo "$MSGFMT" >&6; }
11938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939
$as_echo "no" >&6; }
11943
# Extract the first word of "gmsgfmt", so it can be a program name with args.
11944
set dummy gmsgfmt; ac_word=$2
11945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946
$as_echo_n "checking for $ac_word... " >&6; }
11947
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11948
$as_echo_n "(cached) " >&6
11952
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956
for as_dir in $PATH
11959
test -z "$as_dir" && as_dir=.
11960
for ac_exec_ext in '' $ac_executable_extensions; do
11961
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11963
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11974
GMSGFMT=$ac_cv_path_GMSGFMT
11975
if test -n "$GMSGFMT"; then
11976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11977
$as_echo "$GMSGFMT" >&6; }
11979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980
$as_echo "no" >&6; }
11984
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
11985
as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
11987
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
11988
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
11989
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
11990
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
11991
as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
11994
# Extract the first word of "perl", so it can be a program name with args.
11995
set dummy perl; ac_word=$2
11996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997
$as_echo_n "checking for $ac_word... " >&6; }
11998
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
11999
$as_echo_n "(cached) " >&6
12001
case $INTLTOOL_PERL in
12003
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
12006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007
for as_dir in $PATH
12010
test -z "$as_dir" && as_dir=.
12011
for ac_exec_ext in '' $ac_executable_extensions; do
12012
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
12014
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
12025
if test -n "$INTLTOOL_PERL"; then
12026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
12027
$as_echo "$INTLTOOL_PERL" >&6; }
12029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030
$as_echo "no" >&6; }
12034
if test -z "$INTLTOOL_PERL"; then
12035
as_fn_error $? "perl not found" "$LINENO" 5
12037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
12038
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
12039
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
12040
if test $? -ne 0; then
12041
as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
12043
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
12044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
12045
$as_echo "$IT_PERL_VERSION" >&6; }
12047
if test "x" != "xno-xml"; then
12048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
12049
$as_echo_n "checking for XML::Parser... " >&6; }
12050
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
12051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12052
$as_echo "ok" >&6; }
12054
as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
12058
# Substitute ALL_LINGUAS so we can use it in po/Makefile
12061
# Set DATADIRNAME correctly if it is not set yet
12062
# (copied from glib-gettext.m4)
12063
if test -z "$DATADIRNAME"; then
12064
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065
/* end confdefs.h. */
12070
extern int _nl_msg_cat_cntr;
12071
return _nl_msg_cat_cntr
12076
if ac_fn_c_try_link "$LINENO"; then :
12081
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12082
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
12094
rm -f core conftest.err conftest.$ac_objext \
12095
conftest$ac_exeext conftest.$ac_ext
10679
12104
cat >>confdefs.h <<_ACEOF
10680
12105
#define LOCALE_DIR "${PREFIX}/${DATADIRNAME}/locale"