15011
15069
LIBS="$LIBS $LIBINTL"
15014
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15017
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15019
LIBS="$LIBS -L/usr/lib -lintl"
15071
if test "$mingwce_found" != "yes" ; then
15073
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15076
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15078
LIBS="$LIBS -L/usr/lib -lintl"
15100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15101
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15102
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
15103
$as_echo_n "(cached) " >&6
15105
gt_save_LIBS="$LIBS"
15106
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108
/* end confdefs.h. */
15109
#include <CoreFoundation/CFPreferences.h>
15113
CFPreferencesCopyAppValue(NULL, NULL)
15118
if ac_fn_c_try_link "$LINENO"; then :
15119
gt_cv_func_CFPreferencesCopyAppValue=yes
15121
gt_cv_func_CFPreferencesCopyAppValue=no
15123
rm -f core conftest.err conftest.$ac_objext \
15124
conftest$ac_exeext conftest.$ac_ext
15125
LIBS="$gt_save_LIBS"
15127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15128
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15129
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15131
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15135
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15136
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
15137
$as_echo_n "(cached) " >&6
15139
gt_save_LIBS="$LIBS"
15140
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142
/* end confdefs.h. */
15143
#include <CoreFoundation/CFLocale.h>
15147
CFLocaleCopyCurrent();
15152
if ac_fn_c_try_link "$LINENO"; then :
15153
gt_cv_func_CFLocaleCopyCurrent=yes
15155
gt_cv_func_CFLocaleCopyCurrent=no
15157
rm -f core conftest.err conftest.$ac_objext \
15158
conftest$ac_exeext conftest.$ac_ext
15159
LIBS="$gt_save_LIBS"
15161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15162
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15163
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15165
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15169
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15170
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15182
case " $gt_needs " in
15183
*" need-formatstring-macros "*) gt_api_version=3 ;;
15184
*" need-ngettext "*) gt_api_version=2 ;;
15185
*) gt_api_version=1 ;;
15187
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15188
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15190
if test "$USE_NLS" = "yes"; then
15191
gt_use_preinstalled_gnugettext=no
15194
if test $gt_api_version -ge 3; then
15195
gt_revision_test_code='
15196
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15197
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15199
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15202
gt_revision_test_code=
15204
if test $gt_api_version -ge 2; then
15205
gt_expression_test_code=' + * ngettext ("", "", 0)'
15207
gt_expression_test_code=
15210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15211
$as_echo_n "checking for GNU gettext in libc... " >&6; }
15212
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
15213
$as_echo_n "(cached) " >&6
15215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216
/* end confdefs.h. */
15217
#include <libintl.h>
15218
$gt_revision_test_code
15219
extern int _nl_msg_cat_cntr;
15220
extern int *_nl_domain_bindings;
15224
bindtextdomain ("", "");
15225
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15230
if ac_fn_c_try_link "$LINENO"; then :
15231
eval "$gt_func_gnugettext_libc=yes"
15233
eval "$gt_func_gnugettext_libc=no"
15235
rm -f core conftest.err conftest.$ac_objext \
15236
conftest$ac_exeext conftest.$ac_ext
15238
eval ac_res=\$$gt_func_gnugettext_libc
15239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15240
$as_echo "$ac_res" >&6; }
15242
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15248
am_save_CPPFLAGS="$CPPFLAGS"
15250
for element in $INCICONV; do
15252
for x in $CPPFLAGS; do
15254
acl_save_prefix="$prefix"
15255
prefix="$acl_final_prefix"
15256
acl_save_exec_prefix="$exec_prefix"
15257
exec_prefix="$acl_final_exec_prefix"
15259
exec_prefix="$acl_save_exec_prefix"
15260
prefix="$acl_save_prefix"
15262
if test "X$x" = "X$element"; then
15267
if test -z "$haveit"; then
15268
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15274
$as_echo_n "checking for iconv... " >&6; }
15275
if test "${am_cv_func_iconv+set}" = set; then :
15276
$as_echo_n "(cached) " >&6
15279
am_cv_func_iconv="no, consider installing GNU libiconv"
15281
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282
/* end confdefs.h. */
15283
#include <stdlib.h>
15288
iconv_t cd = iconv_open("","");
15289
iconv(cd,NULL,NULL,NULL,NULL);
15295
if ac_fn_c_try_link "$LINENO"; then :
15296
am_cv_func_iconv=yes
15298
rm -f core conftest.err conftest.$ac_objext \
15299
conftest$ac_exeext conftest.$ac_ext
15300
if test "$am_cv_func_iconv" != yes; then
15301
am_save_LIBS="$LIBS"
15302
LIBS="$LIBS $LIBICONV"
15303
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304
/* end confdefs.h. */
15305
#include <stdlib.h>
15310
iconv_t cd = iconv_open("","");
15311
iconv(cd,NULL,NULL,NULL,NULL);
15317
if ac_fn_c_try_link "$LINENO"; then :
15318
am_cv_lib_iconv=yes
15319
am_cv_func_iconv=yes
15321
rm -f core conftest.err conftest.$ac_objext \
15322
conftest$ac_exeext conftest.$ac_ext
15323
LIBS="$am_save_LIBS"
15327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15328
$as_echo "$am_cv_func_iconv" >&6; }
15329
if test "$am_cv_func_iconv" = yes; then
15331
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15334
if test "$am_cv_lib_iconv" = yes; then
15335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15336
$as_echo_n "checking how to link with libiconv... " >&6; }
15337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15338
$as_echo "$LIBICONV" >&6; }
15340
CPPFLAGS="$am_save_CPPFLAGS"
15353
acl_save_prefix="$prefix"
15354
prefix="$acl_final_prefix"
15355
acl_save_exec_prefix="$exec_prefix"
15356
exec_prefix="$acl_final_exec_prefix"
15358
eval additional_includedir=\"$includedir\"
15359
eval additional_libdir=\"$libdir\"
15361
exec_prefix="$acl_save_exec_prefix"
15362
prefix="$acl_save_prefix"
15365
# Check whether --with-libintl-prefix was given.
15366
if test "${with_libintl_prefix+set}" = set; then :
15367
withval=$with_libintl_prefix;
15368
if test "X$withval" = "Xno"; then
15371
if test "X$withval" = "X"; then
15373
acl_save_prefix="$prefix"
15374
prefix="$acl_final_prefix"
15375
acl_save_exec_prefix="$exec_prefix"
15376
exec_prefix="$acl_final_exec_prefix"
15378
eval additional_includedir=\"$includedir\"
15379
eval additional_libdir=\"$libdir\"
15381
exec_prefix="$acl_save_exec_prefix"
15382
prefix="$acl_save_prefix"
15385
additional_includedir="$withval/include"
15386
additional_libdir="$withval/$acl_libdirstem"
15397
names_already_handled=
15398
names_next_round='intl '
15399
while test -n "$names_next_round"; do
15400
names_this_round="$names_next_round"
15402
for name in $names_this_round; do
15404
for n in $names_already_handled; do
15405
if test "$n" = "$name"; then
15406
already_handled=yes
15410
if test -z "$already_handled"; then
15411
names_already_handled="$names_already_handled $name"
15412
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15413
eval value=\"\$HAVE_LIB$uppername\"
15414
if test -n "$value"; then
15415
if test "$value" = yes; then
15416
eval value=\"\$LIB$uppername\"
15417
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15418
eval value=\"\$LTLIB$uppername\"
15419
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15428
if test $use_additional = yes; then
15429
if test -n "$shlibext" \
15430
&& { test -f "$additional_libdir/lib$name.$shlibext" \
15431
|| { test "$shlibext" = dll \
15432
&& test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15433
found_dir="$additional_libdir"
15434
if test -f "$additional_libdir/lib$name.$shlibext"; then
15435
found_so="$additional_libdir/lib$name.$shlibext"
15437
found_so="$additional_libdir/lib$name.dll.a"
15439
if test -f "$additional_libdir/lib$name.la"; then
15440
found_la="$additional_libdir/lib$name.la"
15443
if test -f "$additional_libdir/lib$name.$libext"; then
15444
found_dir="$additional_libdir"
15445
found_a="$additional_libdir/lib$name.$libext"
15446
if test -f "$additional_libdir/lib$name.la"; then
15447
found_la="$additional_libdir/lib$name.la"
15452
if test "X$found_dir" = "X"; then
15453
for x in $LDFLAGS $LTLIBINTL; do
15455
acl_save_prefix="$prefix"
15456
prefix="$acl_final_prefix"
15457
acl_save_exec_prefix="$exec_prefix"
15458
exec_prefix="$acl_final_exec_prefix"
15460
exec_prefix="$acl_save_exec_prefix"
15461
prefix="$acl_save_prefix"
15465
dir=`echo "X$x" | sed -e 's/^X-L//'`
15466
if test -n "$shlibext" \
15467
&& { test -f "$dir/lib$name.$shlibext" \
15468
|| { test "$shlibext" = dll \
15469
&& test -f "$dir/lib$name.dll.a"; }; }; then
15471
if test -f "$dir/lib$name.$shlibext"; then
15472
found_so="$dir/lib$name.$shlibext"
15474
found_so="$dir/lib$name.dll.a"
15476
if test -f "$dir/lib$name.la"; then
15477
found_la="$dir/lib$name.la"
15480
if test -f "$dir/lib$name.$libext"; then
15482
found_a="$dir/lib$name.$libext"
15483
if test -f "$dir/lib$name.la"; then
15484
found_la="$dir/lib$name.la"
15490
if test "X$found_dir" != "X"; then
15495
if test "X$found_dir" != "X"; then
15496
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15497
if test "X$found_so" != "X"; then
15498
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15499
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15502
for x in $ltrpathdirs; do
15503
if test "X$x" = "X$found_dir"; then
15508
if test -z "$haveit"; then
15509
ltrpathdirs="$ltrpathdirs $found_dir"
15511
if test "$hardcode_direct" = yes; then
15512
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15514
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15515
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15517
for x in $rpathdirs; do
15518
if test "X$x" = "X$found_dir"; then
15523
if test -z "$haveit"; then
15524
rpathdirs="$rpathdirs $found_dir"
15528
for x in $LDFLAGS $LIBINTL; do
15530
acl_save_prefix="$prefix"
15531
prefix="$acl_final_prefix"
15532
acl_save_exec_prefix="$exec_prefix"
15533
exec_prefix="$acl_final_exec_prefix"
15535
exec_prefix="$acl_save_exec_prefix"
15536
prefix="$acl_save_prefix"
15538
if test "X$x" = "X-L$found_dir"; then
15543
if test -z "$haveit"; then
15544
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15546
if test "$hardcode_minus_L" != no; then
15547
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15549
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15555
if test "X$found_a" != "X"; then
15556
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15558
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15561
additional_includedir=
15562
case "$found_dir" in
15563
*/$acl_libdirstem | */$acl_libdirstem/)
15564
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15565
additional_includedir="$basedir/include"
15568
if test "X$additional_includedir" != "X"; then
15569
if test "X$additional_includedir" != "X/usr/include"; then
15571
if test "X$additional_includedir" = "X/usr/local/include"; then
15572
if test -n "$GCC"; then
15574
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15578
if test -z "$haveit"; then
15579
for x in $CPPFLAGS $INCINTL; do
15581
acl_save_prefix="$prefix"
15582
prefix="$acl_final_prefix"
15583
acl_save_exec_prefix="$exec_prefix"
15584
exec_prefix="$acl_final_exec_prefix"
15586
exec_prefix="$acl_save_exec_prefix"
15587
prefix="$acl_save_prefix"
15589
if test "X$x" = "X-I$additional_includedir"; then
15594
if test -z "$haveit"; then
15595
if test -d "$additional_includedir"; then
15596
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15602
if test -n "$found_la"; then
15603
save_libdir="$libdir"
15604
case "$found_la" in
15605
*/* | *\\*) . "$found_la" ;;
15606
*) . "./$found_la" ;;
15608
libdir="$save_libdir"
15609
for dep in $dependency_libs; do
15612
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15613
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15615
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15616
if test -n "$GCC"; then
15618
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15622
if test -z "$haveit"; then
15624
for x in $LDFLAGS $LIBINTL; do
15626
acl_save_prefix="$prefix"
15627
prefix="$acl_final_prefix"
15628
acl_save_exec_prefix="$exec_prefix"
15629
exec_prefix="$acl_final_exec_prefix"
15631
exec_prefix="$acl_save_exec_prefix"
15632
prefix="$acl_save_prefix"
15634
if test "X$x" = "X-L$additional_libdir"; then
15639
if test -z "$haveit"; then
15640
if test -d "$additional_libdir"; then
15641
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15645
for x in $LDFLAGS $LTLIBINTL; do
15647
acl_save_prefix="$prefix"
15648
prefix="$acl_final_prefix"
15649
acl_save_exec_prefix="$exec_prefix"
15650
exec_prefix="$acl_final_exec_prefix"
15652
exec_prefix="$acl_save_exec_prefix"
15653
prefix="$acl_save_prefix"
15655
if test "X$x" = "X-L$additional_libdir"; then
15660
if test -z "$haveit"; then
15661
if test -d "$additional_libdir"; then
15662
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15669
dir=`echo "X$dep" | sed -e 's/^X-R//'`
15670
if test "$enable_rpath" != no; then
15672
for x in $rpathdirs; do
15673
if test "X$x" = "X$dir"; then
15678
if test -z "$haveit"; then
15679
rpathdirs="$rpathdirs $dir"
15682
for x in $ltrpathdirs; do
15683
if test "X$x" = "X$dir"; then
15688
if test -z "$haveit"; then
15689
ltrpathdirs="$ltrpathdirs $dir"
15694
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15697
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15700
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15701
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15707
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15708
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15714
if test "X$rpathdirs" != "X"; then
15715
if test -n "$hardcode_libdir_separator"; then
15717
for found_dir in $rpathdirs; do
15718
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15720
acl_save_libdir="$libdir"
15722
eval flag=\"$hardcode_libdir_flag_spec\"
15723
libdir="$acl_save_libdir"
15724
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15726
for found_dir in $rpathdirs; do
15727
acl_save_libdir="$libdir"
15728
libdir="$found_dir"
15729
eval flag=\"$hardcode_libdir_flag_spec\"
15730
libdir="$acl_save_libdir"
15731
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15735
if test "X$ltrpathdirs" != "X"; then
15736
for found_dir in $ltrpathdirs; do
15737
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15742
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15743
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
15744
$as_echo_n "(cached) " >&6
15746
gt_save_CPPFLAGS="$CPPFLAGS"
15747
CPPFLAGS="$CPPFLAGS $INCINTL"
15748
gt_save_LIBS="$LIBS"
15749
LIBS="$LIBS $LIBINTL"
15750
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751
/* end confdefs.h. */
15752
#include <libintl.h>
15753
$gt_revision_test_code
15754
extern int _nl_msg_cat_cntr;
15759
const char *_nl_expand_alias (const char *);
15763
bindtextdomain ("", "");
15764
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15769
if ac_fn_c_try_link "$LINENO"; then :
15770
eval "$gt_func_gnugettext_libintl=yes"
15772
eval "$gt_func_gnugettext_libintl=no"
15774
rm -f core conftest.err conftest.$ac_objext \
15775
conftest$ac_exeext conftest.$ac_ext
15776
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15777
LIBS="$LIBS $LIBICONV"
15778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779
/* end confdefs.h. */
15780
#include <libintl.h>
15781
$gt_revision_test_code
15782
extern int _nl_msg_cat_cntr;
15787
const char *_nl_expand_alias (const char *);
15791
bindtextdomain ("", "");
15792
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15797
if ac_fn_c_try_link "$LINENO"; then :
15798
LIBINTL="$LIBINTL $LIBICONV"
15799
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15800
eval "$gt_func_gnugettext_libintl=yes"
15803
rm -f core conftest.err conftest.$ac_objext \
15804
conftest$ac_exeext conftest.$ac_ext
15806
CPPFLAGS="$gt_save_CPPFLAGS"
15807
LIBS="$gt_save_LIBS"
15809
eval ac_res=\$$gt_func_gnugettext_libintl
15810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15811
$as_echo "$ac_res" >&6; }
15814
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15815
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15816
&& test "$PACKAGE" != gettext-runtime \
15817
&& test "$PACKAGE" != gettext-tools; }; then
15818
gt_use_preinstalled_gnugettext=yes
15827
if test -n "$INTL_MACOSX_LIBS"; then
15828
if test "$gt_use_preinstalled_gnugettext" = "yes" \
15829
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
15830
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15831
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15835
if test "$gt_use_preinstalled_gnugettext" = "yes" \
15836
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
15838
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15846
$as_echo_n "checking whether to use NLS... " >&6; }
15847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15848
$as_echo "$USE_NLS" >&6; }
15849
if test "$USE_NLS" = "yes"; then
15850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15851
$as_echo_n "checking where the gettext function comes from... " >&6; }
15852
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15853
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15854
gt_source="external libintl"
15859
gt_source="included intl directory"
15861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15862
$as_echo "$gt_source" >&6; }
15865
if test "$USE_NLS" = "yes"; then
15867
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15868
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15870
$as_echo_n "checking how to link with libintl... " >&6; }
15871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15872
$as_echo "$LIBINTL" >&6; }
15874
for element in $INCINTL; do
15876
for x in $CPPFLAGS; do
15878
acl_save_prefix="$prefix"
15879
prefix="$acl_final_prefix"
15880
acl_save_exec_prefix="$exec_prefix"
15881
exec_prefix="$acl_final_exec_prefix"
15883
exec_prefix="$acl_save_exec_prefix"
15884
prefix="$acl_save_prefix"
15886
if test "X$x" = "X$element"; then
15891
if test -z "$haveit"; then
15892
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15899
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15902
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15911
INTLLIBS="$LIBINTL"
15918
LIBS="$LIBS $LIBINTL"
15022
15922
GETTEXT_PACKAGE=linphone