5207
for ac_header in locale.h
5209
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5211
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5212
$as_echo_n "checking for $ac_header... " >&6; }
5213
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5214
$as_echo_n "(cached) " >&6
5216
ac_res=`eval 'as_val=${'$as_ac_Header'}
5217
$as_echo "$as_val"'`
5218
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5219
$as_echo "$ac_res" >&6; }
5221
# Is the header compilable?
5222
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5223
$as_echo_n "checking $ac_header usability... " >&6; }
5224
cat >conftest.$ac_ext <<_ACEOF
5227
cat confdefs.h >>conftest.$ac_ext
5228
cat >>conftest.$ac_ext <<_ACEOF
5229
/* end confdefs.h. */
5230
$ac_includes_default
5231
#include <$ac_header>
5233
rm -f conftest.$ac_objext
5234
if { (ac_try="$ac_compile"
5236
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237
*) ac_try_echo=$ac_try;;
5239
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5240
$as_echo "$ac_try_echo") >&5
5241
(eval "$ac_compile") 2>conftest.er1
5243
grep -v '^ *+' conftest.er1 >conftest.err
5245
cat conftest.err >&5
5246
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
(exit $ac_status); } && {
5248
test -z "$ac_c_werror_flag" ||
5249
test ! -s conftest.err
5250
} && test -s conftest.$ac_objext; then
5251
ac_header_compiler=yes
5253
$as_echo "$as_me: failed program was:" >&5
5254
sed 's/^/| /' conftest.$ac_ext >&5
5256
ac_header_compiler=no
5259
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5261
$as_echo "$ac_header_compiler" >&6; }
5263
# Is the header present?
5264
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5265
$as_echo_n "checking $ac_header presence... " >&6; }
5266
cat >conftest.$ac_ext <<_ACEOF
5269
cat confdefs.h >>conftest.$ac_ext
5270
cat >>conftest.$ac_ext <<_ACEOF
5271
/* end confdefs.h. */
5272
#include <$ac_header>
5274
if { (ac_try="$ac_cpp conftest.$ac_ext"
5276
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277
*) ac_try_echo=$ac_try;;
5279
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5280
$as_echo "$ac_try_echo") >&5
5281
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283
grep -v '^ *+' conftest.er1 >conftest.err
5285
cat conftest.err >&5
5286
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287
(exit $ac_status); } >/dev/null && {
5288
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5289
test ! -s conftest.err
5291
ac_header_preproc=yes
5293
$as_echo "$as_me: failed program was:" >&5
5294
sed 's/^/| /' conftest.$ac_ext >&5
5296
ac_header_preproc=no
5299
rm -f conftest.err conftest.$ac_ext
5300
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5301
$as_echo "$ac_header_preproc" >&6; }
5303
# So? What about this header?
5304
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5306
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5307
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5308
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5309
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5310
ac_header_preproc=yes
5313
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5314
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5315
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5316
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5317
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5318
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5319
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5320
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5321
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5322
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5323
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5324
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5326
## ---------------------------------------------------------------------- ##
5327
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GtkHtml ##
5328
## ---------------------------------------------------------------------- ##
5330
) | sed "s/^/$as_me: WARNING: /" >&2
5333
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5334
$as_echo_n "checking for $ac_header... " >&6; }
5335
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5336
$as_echo_n "(cached) " >&6
5338
eval "$as_ac_Header=\$ac_header_preproc"
5340
ac_res=`eval 'as_val=${'$as_ac_Header'}
5341
$as_echo "$as_val"'`
5342
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5343
$as_echo "$ac_res" >&6; }
5346
as_val=`eval 'as_val=${'$as_ac_Header'}
5347
$as_echo "$as_val"'`
5348
if test "x$as_val" = x""yes; then
5349
cat >>confdefs.h <<_ACEOF
5350
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5357
if test $ac_cv_header_locale_h = yes; then
5358
{ $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5359
$as_echo_n "checking for LC_MESSAGES... " >&6; }
5360
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5361
$as_echo_n "(cached) " >&6
5363
cat >conftest.$ac_ext <<_ACEOF
5366
cat confdefs.h >>conftest.$ac_ext
5367
cat >>conftest.$ac_ext <<_ACEOF
5368
/* end confdefs.h. */
5378
rm -f conftest.$ac_objext conftest$ac_exeext
5379
if { (ac_try="$ac_link"
5381
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382
*) ac_try_echo=$ac_try;;
5384
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385
$as_echo "$ac_try_echo") >&5
5386
(eval "$ac_link") 2>conftest.er1
5388
grep -v '^ *+' conftest.er1 >conftest.err
5390
cat conftest.err >&5
5391
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392
(exit $ac_status); } && {
5393
test -z "$ac_c_werror_flag" ||
5394
test ! -s conftest.err
5395
} && test -s conftest$ac_exeext && {
5396
test "$cross_compiling" = yes ||
5397
$as_test_x conftest$ac_exeext
5399
am_cv_val_LC_MESSAGES=yes
5401
$as_echo "$as_me: failed program was:" >&5
5402
sed 's/^/| /' conftest.$ac_ext >&5
5404
am_cv_val_LC_MESSAGES=no
5407
rm -rf conftest.dSYM
5408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5409
conftest$ac_exeext conftest.$ac_ext
5411
{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5412
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5413
if test $am_cv_val_LC_MESSAGES = yes; then
5415
cat >>confdefs.h <<\_ACEOF
5416
#define HAVE_LC_MESSAGES 1
5424
gt_cv_have_gettext=no
5430
if test "${ac_cv_header_libintl_h+set}" = set; then
5431
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
5432
$as_echo_n "checking for libintl.h... " >&6; }
5433
if test "${ac_cv_header_libintl_h+set}" = set; then
5434
$as_echo_n "(cached) " >&6
5436
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5437
$as_echo "$ac_cv_header_libintl_h" >&6; }
5439
# Is the header compilable?
5440
{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
5441
$as_echo_n "checking libintl.h usability... " >&6; }
5442
cat >conftest.$ac_ext <<_ACEOF
5445
cat confdefs.h >>conftest.$ac_ext
5446
cat >>conftest.$ac_ext <<_ACEOF
5447
/* end confdefs.h. */
5448
$ac_includes_default
5449
#include <libintl.h>
5451
rm -f conftest.$ac_objext
5452
if { (ac_try="$ac_compile"
5454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455
*) ac_try_echo=$ac_try;;
5457
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5458
$as_echo "$ac_try_echo") >&5
5459
(eval "$ac_compile") 2>conftest.er1
5461
grep -v '^ *+' conftest.er1 >conftest.err
5463
cat conftest.err >&5
5464
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465
(exit $ac_status); } && {
5466
test -z "$ac_c_werror_flag" ||
5467
test ! -s conftest.err
5468
} && test -s conftest.$ac_objext; then
5469
ac_header_compiler=yes
5471
$as_echo "$as_me: failed program was:" >&5
5472
sed 's/^/| /' conftest.$ac_ext >&5
5474
ac_header_compiler=no
5477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5479
$as_echo "$ac_header_compiler" >&6; }
5481
# Is the header present?
5482
{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
5483
$as_echo_n "checking libintl.h presence... " >&6; }
5484
cat >conftest.$ac_ext <<_ACEOF
5487
cat confdefs.h >>conftest.$ac_ext
5488
cat >>conftest.$ac_ext <<_ACEOF
5489
/* end confdefs.h. */
5490
#include <libintl.h>
5492
if { (ac_try="$ac_cpp conftest.$ac_ext"
5494
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495
*) ac_try_echo=$ac_try;;
5497
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5498
$as_echo "$ac_try_echo") >&5
5499
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5501
grep -v '^ *+' conftest.er1 >conftest.err
5503
cat conftest.err >&5
5504
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505
(exit $ac_status); } >/dev/null && {
5506
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5507
test ! -s conftest.err
5509
ac_header_preproc=yes
5511
$as_echo "$as_me: failed program was:" >&5
5512
sed 's/^/| /' conftest.$ac_ext >&5
5514
ac_header_preproc=no
5517
rm -f conftest.err conftest.$ac_ext
5518
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5519
$as_echo "$ac_header_preproc" >&6; }
5521
# So? What about this header?
5522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5524
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5525
$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5526
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5527
$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5528
ac_header_preproc=yes
5531
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5532
$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5533
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5534
$as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5535
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5536
$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5537
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5538
$as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5539
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5540
$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5541
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5542
$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5544
## ---------------------------------------------------------------------- ##
5545
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GtkHtml ##
5546
## ---------------------------------------------------------------------- ##
5548
) | sed "s/^/$as_me: WARNING: /" >&2
5551
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
5552
$as_echo_n "checking for libintl.h... " >&6; }
5553
if test "${ac_cv_header_libintl_h+set}" = set; then
5554
$as_echo_n "(cached) " >&6
5556
ac_cv_header_libintl_h=$ac_header_preproc
5558
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5559
$as_echo "$ac_cv_header_libintl_h" >&6; }
5562
if test "x$ac_cv_header_libintl_h" = x""yes; then
5563
gt_cv_func_dgettext_libintl="no"
5564
libintl_extra_libs=""
5567
# First check in libc
5569
{ $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
5570
$as_echo_n "checking for ngettext in libc... " >&6; }
5571
if test "${gt_cv_func_ngettext_libc+set}" = set; then
5572
$as_echo_n "(cached) " >&6
5574
cat >conftest.$ac_ext <<_ACEOF
5577
cat confdefs.h >>conftest.$ac_ext
5578
cat >>conftest.$ac_ext <<_ACEOF
5579
/* end confdefs.h. */
5581
#include <libintl.h>
5586
return !ngettext ("","", 1)
5591
rm -f conftest.$ac_objext conftest$ac_exeext
5592
if { (ac_try="$ac_link"
5594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595
*) ac_try_echo=$ac_try;;
5597
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5598
$as_echo "$ac_try_echo") >&5
5599
(eval "$ac_link") 2>conftest.er1
5601
grep -v '^ *+' conftest.er1 >conftest.err
5603
cat conftest.err >&5
5604
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605
(exit $ac_status); } && {
5606
test -z "$ac_c_werror_flag" ||
5607
test ! -s conftest.err
5608
} && test -s conftest$ac_exeext && {
5609
test "$cross_compiling" = yes ||
5610
$as_test_x conftest$ac_exeext
5612
gt_cv_func_ngettext_libc=yes
5614
$as_echo "$as_me: failed program was:" >&5
5615
sed 's/^/| /' conftest.$ac_ext >&5
5617
gt_cv_func_ngettext_libc=no
5620
rm -rf conftest.dSYM
5621
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5622
conftest$ac_exeext conftest.$ac_ext
5625
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5626
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
5628
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5629
{ $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5630
$as_echo_n "checking for dgettext in libc... " >&6; }
5631
if test "${gt_cv_func_dgettext_libc+set}" = set; then
5632
$as_echo_n "(cached) " >&6
5634
cat >conftest.$ac_ext <<_ACEOF
5637
cat confdefs.h >>conftest.$ac_ext
5638
cat >>conftest.$ac_ext <<_ACEOF
5639
/* end confdefs.h. */
5641
#include <libintl.h>
5646
return !dgettext ("","")
5651
rm -f conftest.$ac_objext conftest$ac_exeext
5652
if { (ac_try="$ac_link"
5654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655
*) ac_try_echo=$ac_try;;
5657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5658
$as_echo "$ac_try_echo") >&5
5659
(eval "$ac_link") 2>conftest.er1
5661
grep -v '^ *+' conftest.er1 >conftest.err
5663
cat conftest.err >&5
5664
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665
(exit $ac_status); } && {
5666
test -z "$ac_c_werror_flag" ||
5667
test ! -s conftest.err
5668
} && test -s conftest$ac_exeext && {
5669
test "$cross_compiling" = yes ||
5670
$as_test_x conftest$ac_exeext
5672
gt_cv_func_dgettext_libc=yes
5674
$as_echo "$as_me: failed program was:" >&5
5675
sed 's/^/| /' conftest.$ac_ext >&5
5677
gt_cv_func_dgettext_libc=no
5680
rm -rf conftest.dSYM
5681
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682
conftest$ac_exeext conftest.$ac_ext
5685
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5686
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
5689
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5691
for ac_func in bind_textdomain_codeset
5693
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5694
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5695
$as_echo_n "checking for $ac_func... " >&6; }
5696
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5697
$as_echo_n "(cached) " >&6
5699
cat >conftest.$ac_ext <<_ACEOF
5702
cat confdefs.h >>conftest.$ac_ext
5703
cat >>conftest.$ac_ext <<_ACEOF
5704
/* end confdefs.h. */
5705
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5706
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5707
#define $ac_func innocuous_$ac_func
5709
/* System header to define __stub macros and hopefully few prototypes,
5710
which can conflict with char $ac_func (); below.
5711
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5712
<limits.h> exists even on freestanding compilers. */
5715
# include <limits.h>
5717
# include <assert.h>
5722
/* Override any GCC internal prototype to avoid an error.
5723
Use char because int might match the return type of a GCC
5724
builtin and then its argument prototype would still apply. */
5729
/* The GNU C library defines this for functions which it implements
5730
to always fail with ENOSYS. Some functions are actually named
5731
something starting with __ and the normal name is an alias. */
5732
#if defined __stub_$ac_func || defined __stub___$ac_func
5744
rm -f conftest.$ac_objext conftest$ac_exeext
5745
if { (ac_try="$ac_link"
5747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748
*) ac_try_echo=$ac_try;;
5750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751
$as_echo "$ac_try_echo") >&5
5752
(eval "$ac_link") 2>conftest.er1
5754
grep -v '^ *+' conftest.er1 >conftest.err
5756
cat conftest.err >&5
5757
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758
(exit $ac_status); } && {
5759
test -z "$ac_c_werror_flag" ||
5760
test ! -s conftest.err
5761
} && test -s conftest$ac_exeext && {
5762
test "$cross_compiling" = yes ||
5763
$as_test_x conftest$ac_exeext
5765
eval "$as_ac_var=yes"
5767
$as_echo "$as_me: failed program was:" >&5
5768
sed 's/^/| /' conftest.$ac_ext >&5
5770
eval "$as_ac_var=no"
5773
rm -rf conftest.dSYM
5774
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5775
conftest$ac_exeext conftest.$ac_ext
5777
ac_res=`eval 'as_val=${'$as_ac_var'}
5778
$as_echo "$as_val"'`
5779
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5780
$as_echo "$ac_res" >&6; }
5781
as_val=`eval 'as_val=${'$as_ac_var'}
5782
$as_echo "$as_val"'`
5783
if test "x$as_val" = x""yes; then
5784
cat >>confdefs.h <<_ACEOF
5785
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5794
# If we don't have everything we want, check in libintl
5796
if test "$gt_cv_func_dgettext_libc" != "yes" \
5797
|| test "$gt_cv_func_ngettext_libc" != "yes" \
5798
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5800
{ $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5801
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
5802
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5803
$as_echo_n "(cached) " >&6
5805
ac_check_lib_save_LIBS=$LIBS
5807
cat >conftest.$ac_ext <<_ACEOF
5810
cat confdefs.h >>conftest.$ac_ext
5811
cat >>conftest.$ac_ext <<_ACEOF
5812
/* end confdefs.h. */
5814
/* Override any GCC internal prototype to avoid an error.
5815
Use char because int might match the return type of a GCC
5816
builtin and then its argument prototype would still apply. */
5820
char bindtextdomain ();
5824
return bindtextdomain ();
5829
rm -f conftest.$ac_objext conftest$ac_exeext
5830
if { (ac_try="$ac_link"
5832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833
*) ac_try_echo=$ac_try;;
5835
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836
$as_echo "$ac_try_echo") >&5
5837
(eval "$ac_link") 2>conftest.er1
5839
grep -v '^ *+' conftest.er1 >conftest.err
5841
cat conftest.err >&5
5842
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843
(exit $ac_status); } && {
5844
test -z "$ac_c_werror_flag" ||
5845
test ! -s conftest.err
5846
} && test -s conftest$ac_exeext && {
5847
test "$cross_compiling" = yes ||
5848
$as_test_x conftest$ac_exeext
5850
ac_cv_lib_intl_bindtextdomain=yes
5852
$as_echo "$as_me: failed program was:" >&5
5853
sed 's/^/| /' conftest.$ac_ext >&5
5855
ac_cv_lib_intl_bindtextdomain=no
5858
rm -rf conftest.dSYM
5859
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5860
conftest$ac_exeext conftest.$ac_ext
5861
LIBS=$ac_check_lib_save_LIBS
5863
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5864
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
5865
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
5866
{ $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5867
$as_echo_n "checking for ngettext in -lintl... " >&6; }
5868
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5869
$as_echo_n "(cached) " >&6
5871
ac_check_lib_save_LIBS=$LIBS
5873
cat >conftest.$ac_ext <<_ACEOF
5876
cat confdefs.h >>conftest.$ac_ext
5877
cat >>conftest.$ac_ext <<_ACEOF
5878
/* end confdefs.h. */
5880
/* Override any GCC internal prototype to avoid an error.
5881
Use char because int might match the return type of a GCC
5882
builtin and then its argument prototype would still apply. */
5895
rm -f conftest.$ac_objext conftest$ac_exeext
5896
if { (ac_try="$ac_link"
5898
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899
*) ac_try_echo=$ac_try;;
5901
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5902
$as_echo "$ac_try_echo") >&5
5903
(eval "$ac_link") 2>conftest.er1
5905
grep -v '^ *+' conftest.er1 >conftest.err
5907
cat conftest.err >&5
5908
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909
(exit $ac_status); } && {
5910
test -z "$ac_c_werror_flag" ||
5911
test ! -s conftest.err
5912
} && test -s conftest$ac_exeext && {
5913
test "$cross_compiling" = yes ||
5914
$as_test_x conftest$ac_exeext
5916
ac_cv_lib_intl_ngettext=yes
5918
$as_echo "$as_me: failed program was:" >&5
5919
sed 's/^/| /' conftest.$ac_ext >&5
5921
ac_cv_lib_intl_ngettext=no
5924
rm -rf conftest.dSYM
5925
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5926
conftest$ac_exeext conftest.$ac_ext
5927
LIBS=$ac_check_lib_save_LIBS
5929
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5930
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5931
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
5932
{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5933
$as_echo_n "checking for dgettext in -lintl... " >&6; }
5934
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5935
$as_echo_n "(cached) " >&6
5937
ac_check_lib_save_LIBS=$LIBS
5939
cat >conftest.$ac_ext <<_ACEOF
5942
cat confdefs.h >>conftest.$ac_ext
5943
cat >>conftest.$ac_ext <<_ACEOF
5944
/* end confdefs.h. */
5946
/* Override any GCC internal prototype to avoid an error.
5947
Use char because int might match the return type of a GCC
5948
builtin and then its argument prototype would still apply. */
5961
rm -f conftest.$ac_objext conftest$ac_exeext
5962
if { (ac_try="$ac_link"
5964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965
*) ac_try_echo=$ac_try;;
5967
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5968
$as_echo "$ac_try_echo") >&5
5969
(eval "$ac_link") 2>conftest.er1
5971
grep -v '^ *+' conftest.er1 >conftest.err
5973
cat conftest.err >&5
5974
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975
(exit $ac_status); } && {
5976
test -z "$ac_c_werror_flag" ||
5977
test ! -s conftest.err
5978
} && test -s conftest$ac_exeext && {
5979
test "$cross_compiling" = yes ||
5980
$as_test_x conftest$ac_exeext
5982
ac_cv_lib_intl_dgettext=yes
5984
$as_echo "$as_me: failed program was:" >&5
5985
sed 's/^/| /' conftest.$ac_ext >&5
5987
ac_cv_lib_intl_dgettext=no
5990
rm -rf conftest.dSYM
5991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5992
conftest$ac_exeext conftest.$ac_ext
5993
LIBS=$ac_check_lib_save_LIBS
5995
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5996
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
5997
if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
5998
gt_cv_func_dgettext_libintl=yes
6006
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6007
{ $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6008
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
6009
{ $as_echo "$as_me:$LINENO: result: " >&5
6011
{ $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6012
$as_echo_n "checking for ngettext in -lintl... " >&6; }
6013
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6014
$as_echo_n "(cached) " >&6
6016
ac_check_lib_save_LIBS=$LIBS
6017
LIBS="-lintl -liconv $LIBS"
6018
cat >conftest.$ac_ext <<_ACEOF
6021
cat confdefs.h >>conftest.$ac_ext
6022
cat >>conftest.$ac_ext <<_ACEOF
6023
/* end confdefs.h. */
6025
/* Override any GCC internal prototype to avoid an error.
6026
Use char because int might match the return type of a GCC
6027
builtin and then its argument prototype would still apply. */
6040
rm -f conftest.$ac_objext conftest$ac_exeext
6041
if { (ac_try="$ac_link"
6043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044
*) ac_try_echo=$ac_try;;
6046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6047
$as_echo "$ac_try_echo") >&5
6048
(eval "$ac_link") 2>conftest.er1
6050
grep -v '^ *+' conftest.er1 >conftest.err
6052
cat conftest.err >&5
6053
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
(exit $ac_status); } && {
6055
test -z "$ac_c_werror_flag" ||
6056
test ! -s conftest.err
6057
} && test -s conftest$ac_exeext && {
6058
test "$cross_compiling" = yes ||
6059
$as_test_x conftest$ac_exeext
6061
ac_cv_lib_intl_ngettext=yes
6063
$as_echo "$as_me: failed program was:" >&5
6064
sed 's/^/| /' conftest.$ac_ext >&5
6066
ac_cv_lib_intl_ngettext=no
6069
rm -rf conftest.dSYM
6070
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6071
conftest$ac_exeext conftest.$ac_ext
6072
LIBS=$ac_check_lib_save_LIBS
6074
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6075
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
6076
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
6077
{ $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6078
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
6079
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6080
$as_echo_n "(cached) " >&6
6082
ac_check_lib_save_LIBS=$LIBS
6083
LIBS="-lintl -liconv $LIBS"
6084
cat >conftest.$ac_ext <<_ACEOF
6087
cat confdefs.h >>conftest.$ac_ext
6088
cat >>conftest.$ac_ext <<_ACEOF
6089
/* end confdefs.h. */
6091
/* Override any GCC internal prototype to avoid an error.
6092
Use char because int might match the return type of a GCC
6093
builtin and then its argument prototype would still apply. */
6101
return dcgettext ();
6106
rm -f conftest.$ac_objext conftest$ac_exeext
6107
if { (ac_try="$ac_link"
6109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110
*) ac_try_echo=$ac_try;;
6112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6113
$as_echo "$ac_try_echo") >&5
6114
(eval "$ac_link") 2>conftest.er1
6116
grep -v '^ *+' conftest.er1 >conftest.err
6118
cat conftest.err >&5
6119
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120
(exit $ac_status); } && {
6121
test -z "$ac_c_werror_flag" ||
6122
test ! -s conftest.err
6123
} && test -s conftest$ac_exeext && {
6124
test "$cross_compiling" = yes ||
6125
$as_test_x conftest$ac_exeext
6127
ac_cv_lib_intl_dcgettext=yes
6129
$as_echo "$as_me: failed program was:" >&5
6130
sed 's/^/| /' conftest.$ac_ext >&5
6132
ac_cv_lib_intl_dcgettext=no
6135
rm -rf conftest.dSYM
6136
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6137
conftest$ac_exeext conftest.$ac_ext
6138
LIBS=$ac_check_lib_save_LIBS
6140
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6141
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
6142
if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
6143
gt_cv_func_dgettext_libintl=yes
6144
libintl_extra_libs=-liconv
6156
# If we found libintl, then check in it for bind_textdomain_codeset();
6157
# we'll prefer libc if neither have bind_textdomain_codeset(),
6158
# and both have dgettext and ngettext
6160
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6161
glib_save_LIBS="$LIBS"
6162
LIBS="$LIBS -lintl $libintl_extra_libs"
6163
unset ac_cv_func_bind_textdomain_codeset
6165
for ac_func in bind_textdomain_codeset
6167
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6168
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6169
$as_echo_n "checking for $ac_func... " >&6; }
6170
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6171
$as_echo_n "(cached) " >&6
6173
cat >conftest.$ac_ext <<_ACEOF
6176
cat confdefs.h >>conftest.$ac_ext
6177
cat >>conftest.$ac_ext <<_ACEOF
6178
/* end confdefs.h. */
6179
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6180
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6181
#define $ac_func innocuous_$ac_func
6183
/* System header to define __stub macros and hopefully few prototypes,
6184
which can conflict with char $ac_func (); below.
6185
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6186
<limits.h> exists even on freestanding compilers. */
6189
# include <limits.h>
6191
# include <assert.h>
6196
/* Override any GCC internal prototype to avoid an error.
6197
Use char because int might match the return type of a GCC
6198
builtin and then its argument prototype would still apply. */
6203
/* The GNU C library defines this for functions which it implements
6204
to always fail with ENOSYS. Some functions are actually named
6205
something starting with __ and the normal name is an alias. */
6206
#if defined __stub_$ac_func || defined __stub___$ac_func
6218
rm -f conftest.$ac_objext conftest$ac_exeext
6219
if { (ac_try="$ac_link"
6221
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222
*) ac_try_echo=$ac_try;;
6224
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6225
$as_echo "$ac_try_echo") >&5
6226
(eval "$ac_link") 2>conftest.er1
6228
grep -v '^ *+' conftest.er1 >conftest.err
6230
cat conftest.err >&5
6231
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232
(exit $ac_status); } && {
6233
test -z "$ac_c_werror_flag" ||
6234
test ! -s conftest.err
6235
} && test -s conftest$ac_exeext && {
6236
test "$cross_compiling" = yes ||
6237
$as_test_x conftest$ac_exeext
6239
eval "$as_ac_var=yes"
6241
$as_echo "$as_me: failed program was:" >&5
6242
sed 's/^/| /' conftest.$ac_ext >&5
6244
eval "$as_ac_var=no"
6247
rm -rf conftest.dSYM
6248
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6249
conftest$ac_exeext conftest.$ac_ext
6251
ac_res=`eval 'as_val=${'$as_ac_var'}
6252
$as_echo "$as_val"'`
6253
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6254
$as_echo "$ac_res" >&6; }
6255
as_val=`eval 'as_val=${'$as_ac_var'}
6256
$as_echo "$as_val"'`
6257
if test "x$as_val" = x""yes; then
6258
cat >>confdefs.h <<_ACEOF
6259
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6265
LIBS="$glib_save_LIBS"
6267
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6268
gt_cv_func_dgettext_libc=no
6270
if test "$gt_cv_func_dgettext_libc" = "yes" \
6271
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
6272
gt_cv_func_dgettext_libintl=no
6278
if test "$gt_cv_func_dgettext_libc" = "yes" \
6279
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
6280
gt_cv_have_gettext=yes
6283
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6284
INTLLIBS="-lintl $libintl_extra_libs"
6287
if test "$gt_cv_have_gettext" = "yes"; then
6289
cat >>confdefs.h <<\_ACEOF
6290
#define HAVE_GETTEXT 1
6293
# Extract the first word of "msgfmt", so it can be a program name with args.
6294
set dummy msgfmt; ac_word=$2
6295
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6296
$as_echo_n "checking for $ac_word... " >&6; }
6297
if test "${ac_cv_path_MSGFMT+set}" = set; then
6298
$as_echo_n "(cached) " >&6
6302
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6305
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6306
for ac_dir in $PATH; do
6307
test -z "$ac_dir" && ac_dir=.
6308
if test -f $ac_dir/$ac_word; then
6309
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6310
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6316
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6320
MSGFMT="$ac_cv_path_MSGFMT"
6321
if test "$MSGFMT" != "no"; then
6322
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
6323
$as_echo "$MSGFMT" >&6; }
6325
{ $as_echo "$as_me:$LINENO: result: no" >&5
6326
$as_echo "no" >&6; }
6328
if test "$MSGFMT" != "no"; then
6329
glib_save_LIBS="$LIBS"
6330
LIBS="$LIBS $INTLLIBS"
6332
for ac_func in dcgettext
6334
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6335
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6336
$as_echo_n "checking for $ac_func... " >&6; }
6337
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6338
$as_echo_n "(cached) " >&6
6340
cat >conftest.$ac_ext <<_ACEOF
6343
cat confdefs.h >>conftest.$ac_ext
6344
cat >>conftest.$ac_ext <<_ACEOF
6345
/* end confdefs.h. */
6346
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6347
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6348
#define $ac_func innocuous_$ac_func
6350
/* System header to define __stub macros and hopefully few prototypes,
6351
which can conflict with char $ac_func (); below.
6352
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6353
<limits.h> exists even on freestanding compilers. */
6356
# include <limits.h>
6358
# include <assert.h>
6363
/* Override any GCC internal prototype to avoid an error.
6364
Use char because int might match the return type of a GCC
6365
builtin and then its argument prototype would still apply. */
6370
/* The GNU C library defines this for functions which it implements
6371
to always fail with ENOSYS. Some functions are actually named
6372
something starting with __ and the normal name is an alias. */
6373
#if defined __stub_$ac_func || defined __stub___$ac_func
6385
rm -f conftest.$ac_objext conftest$ac_exeext
6386
if { (ac_try="$ac_link"
6388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389
*) ac_try_echo=$ac_try;;
6391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6392
$as_echo "$ac_try_echo") >&5
6393
(eval "$ac_link") 2>conftest.er1
6395
grep -v '^ *+' conftest.er1 >conftest.err
6397
cat conftest.err >&5
6398
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399
(exit $ac_status); } && {
6400
test -z "$ac_c_werror_flag" ||
6401
test ! -s conftest.err
6402
} && test -s conftest$ac_exeext && {
6403
test "$cross_compiling" = yes ||
6404
$as_test_x conftest$ac_exeext
6406
eval "$as_ac_var=yes"
6408
$as_echo "$as_me: failed program was:" >&5
6409
sed 's/^/| /' conftest.$ac_ext >&5
6411
eval "$as_ac_var=no"
6414
rm -rf conftest.dSYM
6415
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6416
conftest$ac_exeext conftest.$ac_ext
6418
ac_res=`eval 'as_val=${'$as_ac_var'}
6419
$as_echo "$as_val"'`
6420
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6421
$as_echo "$ac_res" >&6; }
6422
as_val=`eval 'as_val=${'$as_ac_var'}
6423
$as_echo "$as_val"'`
6424
if test "x$as_val" = x""yes; then
6425
cat >>confdefs.h <<_ACEOF
6426
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6433
{ $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
6434
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
6435
cat >conftest.foo <<_ACEOF
6439
"Content-Type: text/plain; charset=UTF-8\n"
6440
"Project-Id-Version: test 1.0\n"
6441
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
6442
"Last-Translator: test <foo@bar.xx>\n"
6443
"Language-Team: C <LL@li.org>\n"
6444
"MIME-Version: 1.0\n"
6445
"Content-Transfer-Encoding: 8bit\n"
6448
if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
6449
($MSGFMT -c -o /dev/null conftest.foo) 2>&5
6451
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452
(exit $ac_status); }; then
6453
MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
6454
$as_echo "yes" >&6; }
6455
else { $as_echo "$as_me:$LINENO: result: no" >&5
6456
$as_echo "no" >&6; }
6457
echo "$as_me: failed input was:" >&5
6458
sed 's/^/| /' conftest.foo >&5
6461
# Extract the first word of "gmsgfmt", so it can be a program name with args.
6462
set dummy gmsgfmt; ac_word=$2
6463
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6464
$as_echo_n "checking for $ac_word... " >&6; }
6465
if test "${ac_cv_path_GMSGFMT+set}" = set; then
6466
$as_echo_n "(cached) " >&6
6470
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477
test -z "$as_dir" && as_dir=.
6478
for ac_exec_ext in '' $ac_executable_extensions; do
6479
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6481
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6492
GMSGFMT=$ac_cv_path_GMSGFMT
6493
if test -n "$GMSGFMT"; then
6494
{ $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6495
$as_echo "$GMSGFMT" >&6; }
6497
{ $as_echo "$as_me:$LINENO: result: no" >&5
6498
$as_echo "no" >&6; }
6502
# Extract the first word of "xgettext", so it can be a program name with args.
6503
set dummy xgettext; ac_word=$2
6504
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6505
$as_echo_n "checking for $ac_word... " >&6; }
6506
if test "${ac_cv_path_XGETTEXT+set}" = set; then
6507
$as_echo_n "(cached) " >&6
6511
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6514
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6515
for ac_dir in $PATH; do
6516
test -z "$ac_dir" && ac_dir=.
6517
if test -f $ac_dir/$ac_word; then
6518
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6519
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6525
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6529
XGETTEXT="$ac_cv_path_XGETTEXT"
6530
if test "$XGETTEXT" != ":"; then
6531
{ $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6532
$as_echo "$XGETTEXT" >&6; }
6534
{ $as_echo "$as_me:$LINENO: result: no" >&5
6535
$as_echo "no" >&6; }
6538
cat >conftest.$ac_ext <<_ACEOF
6541
cat confdefs.h >>conftest.$ac_ext
6542
cat >>conftest.$ac_ext <<_ACEOF
6543
/* end confdefs.h. */
6548
extern int _nl_msg_cat_cntr;
6549
return _nl_msg_cat_cntr
6554
rm -f conftest.$ac_objext conftest$ac_exeext
6555
if { (ac_try="$ac_link"
6557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558
*) ac_try_echo=$ac_try;;
6560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6561
$as_echo "$ac_try_echo") >&5
6562
(eval "$ac_link") 2>conftest.er1
6564
grep -v '^ *+' conftest.er1 >conftest.err
6566
cat conftest.err >&5
6567
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568
(exit $ac_status); } && {
6569
test -z "$ac_c_werror_flag" ||
6570
test ! -s conftest.err
6571
} && test -s conftest$ac_exeext && {
6572
test "$cross_compiling" = yes ||
6573
$as_test_x conftest$ac_exeext
6578
$as_echo "$as_me: failed program was:" >&5
6579
sed 's/^/| /' conftest.$ac_ext >&5
6583
{ $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6584
$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
6585
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6586
$as_echo_n "(cached) " >&6
6588
cat >conftest.$ac_ext <<_ACEOF
6591
cat confdefs.h >>conftest.$ac_ext
6592
cat >>conftest.$ac_ext <<_ACEOF
6593
/* end confdefs.h. */
6594
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6595
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6596
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6598
/* System header to define __stub macros and hopefully few prototypes,
6599
which can conflict with char bind_textdomain_codeset (); below.
6600
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6601
<limits.h> exists even on freestanding compilers. */
6604
# include <limits.h>
6606
# include <assert.h>
6609
#undef bind_textdomain_codeset
6611
/* Override any GCC internal prototype to avoid an error.
6612
Use char because int might match the return type of a GCC
6613
builtin and then its argument prototype would still apply. */
6617
char bind_textdomain_codeset ();
6618
/* The GNU C library defines this for functions which it implements
6619
to always fail with ENOSYS. Some functions are actually named
6620
something starting with __ and the normal name is an alias. */
6621
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6628
return bind_textdomain_codeset ();
6633
rm -f conftest.$ac_objext conftest$ac_exeext
6634
if { (ac_try="$ac_link"
6636
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637
*) ac_try_echo=$ac_try;;
6639
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6640
$as_echo "$ac_try_echo") >&5
6641
(eval "$ac_link") 2>conftest.er1
6643
grep -v '^ *+' conftest.er1 >conftest.err
6645
cat conftest.err >&5
6646
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647
(exit $ac_status); } && {
6648
test -z "$ac_c_werror_flag" ||
6649
test ! -s conftest.err
6650
} && test -s conftest$ac_exeext && {
6651
test "$cross_compiling" = yes ||
6652
$as_test_x conftest$ac_exeext
6654
ac_cv_func_bind_textdomain_codeset=yes
6656
$as_echo "$as_me: failed program was:" >&5
6657
sed 's/^/| /' conftest.$ac_ext >&5
6659
ac_cv_func_bind_textdomain_codeset=no
6662
rm -rf conftest.dSYM
6663
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6664
conftest$ac_exeext conftest.$ac_ext
6666
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6667
$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
6668
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
6684
rm -rf conftest.dSYM
6685
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6686
conftest$ac_exeext conftest.$ac_ext
6687
LIBS="$glib_save_LIBS"
6690
gt_cv_have_gettext=no
6698
if test "$gt_cv_have_gettext" = "yes" ; then
6700
cat >>confdefs.h <<\_ACEOF
6701
#define ENABLE_NLS 1
6706
if test "$XGETTEXT" != ":"; then
6707
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6710
{ $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6711
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6716
# We need to process the po/ directory.
6719
ac_config_commands="$ac_config_commands default-1"
6722
for lang in $ALL_LINGUAS; do
6723
GMOFILES="$GMOFILES $lang.gmo"
6724
POFILES="$POFILES $lang.po"
6739
if test "$gt_cv_have_gettext" = "yes"; then
6740
if test "x$ALL_LINGUAS" = "x"; then
6743
{ $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6744
$as_echo_n "checking for catalogs to be installed... " >&6; }
6746
for presentlang in $ALL_LINGUAS; do
6748
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
6749
desiredlanguages="$LINGUAS"
6751
desiredlanguages="$ALL_LINGUAS"
6753
for desiredlang in $desiredlanguages; do
6754
# Use the presentlang catalog if desiredlang is
6755
# a. equal to presentlang, or
6756
# b. a variant of presentlang (because in this case,
6757
# presentlang can be used as a fallback for messages
6758
# which are not translated in the desiredlang catalog).
6759
case "$desiredlang" in
6760
"$presentlang"*) useit=yes;;
6763
if test $useit = yes; then
6764
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6767
LINGUAS=$NEW_LINGUAS
6768
{ $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
6769
$as_echo "$LINGUAS" >&6; }
6772
if test -n "$LINGUAS"; then
6773
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6778
if test -n "$ac_aux_dir"; then
6779
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6781
if test -z "$MKINSTALLDIRS"; then
6782
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6786
test -d po || mkdir po
6787
if test "x$srcdir" != "x."; then
6788
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6789
posrcprefix="$srcdir/"
6791
posrcprefix="../$srcdir/"
6797
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6798
< $srcdir/po/POTFILES.in > po/POTFILES
6802
list="-DG_DISABLE_DEPRECATED
6803
-DPANGO_DISABLE_DEPRECATED
6804
-DGDK_DISABLE_DEPRECATED
6805
-DGDK_PIXBUF_DISABLE_DEPRECATED
6806
-DGTK_DISABLE_DEPRECATED
6807
-DGNOME_DISABLE_DEPRECATED
6808
-DG_DISABLE_SINGLE_INCLUDES
6809
-DGTK_DISABLE_SINGLE_INCLUDES
6811
-Wno-missing-field-initializers
6813
-Wno-unused-parameter
6814
-Wdeclaration-after-statement
6815
-Werror-implicit-function-declaration
6816
-Wformat-nonliteral -Wformat-security -Winit-self
6817
-Wmissing-declarations -Wmissing-include-dirs
6818
-Wmissing-noreturn -Wnested-externs -Wpointer-arith
6819
-Wredundant-decls -Wundef -Wwrite-strings"
6821
flags_unsupported=""
6822
{ $as_echo "$as_me:$LINENO: checking for supported compiler flags" >&5
6823
$as_echo_n "checking for supported compiler flags... " >&6; }
6826
save_CFLAGS="$CFLAGS"
6827
CFLAGS="$CFLAGS $each"
6828
cat >conftest.$ac_ext <<_ACEOF
6831
cat confdefs.h >>conftest.$ac_ext
6832
cat >>conftest.$ac_ext <<_ACEOF
6833
/* end confdefs.h. */
6843
rm -f conftest.$ac_objext
6844
if { (ac_try="$ac_compile"
6846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847
*) ac_try_echo=$ac_try;;
6849
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850
$as_echo "$ac_try_echo") >&5
6851
(eval "$ac_compile") 2>conftest.er1
6853
grep -v '^ *+' conftest.er1 >conftest.err
6855
cat conftest.err >&5
6856
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
(exit $ac_status); } && {
6858
test -z "$ac_c_werror_flag" ||
6859
test ! -s conftest.err
6860
} && test -s conftest.$ac_objext; then
6863
$as_echo "$as_me: failed program was:" >&5
6864
sed 's/^/| /' conftest.$ac_ext >&5
6869
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870
CFLAGS="$save_CFLAGS"
6872
if test "X$flag_ok" = Xyes ; then
6873
flags_supported="$flags_supported $each"
6875
flags_unsupported="$flags_unsupported $each"
6878
{ $as_echo "$as_me:$LINENO: result: $flags_supported" >&5
6879
$as_echo "$flags_supported" >&6; }
6880
if test "X$flags_unsupported" != X ; then
6881
{ $as_echo "$as_me:$LINENO: WARNING: unsupported compiler flags: $flags_unsupported" >&5
6882
$as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
6884
WARNING_FLAGS="$WARNING_FLAGS $flags_supported"
6889
CFLAGS="$CFLAGS $WARNING_FLAGS"
6892
ac_cpp='$CPP $CPPFLAGS'
6893
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
if test -n "$ac_tool_prefix"; then
6897
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6898
set dummy ${ac_tool_prefix}gcc; ac_word=$2
6899
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6900
$as_echo_n "checking for $ac_word... " >&6; }
6901
if test "${ac_cv_prog_CC+set}" = set; then
6902
$as_echo_n "(cached) " >&6
6904
if test -n "$CC"; then
6905
ac_cv_prog_CC="$CC" # Let the user override the test.
6907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911
test -z "$as_dir" && as_dir=.
6912
for ac_exec_ext in '' $ac_executable_extensions; do
6913
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914
ac_cv_prog_CC="${ac_tool_prefix}gcc"
6915
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925
if test -n "$CC"; then
6926
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
6927
$as_echo "$CC" >&6; }
6929
{ $as_echo "$as_me:$LINENO: result: no" >&5
6930
$as_echo "no" >&6; }
6935
if test -z "$ac_cv_prog_CC"; then
6937
# Extract the first word of "gcc", so it can be a program name with args.
6938
set dummy gcc; ac_word=$2
6939
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6940
$as_echo_n "checking for $ac_word... " >&6; }
6941
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6942
$as_echo_n "(cached) " >&6
6944
if test -n "$ac_ct_CC"; then
6945
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951
test -z "$as_dir" && as_dir=.
6952
for ac_exec_ext in '' $ac_executable_extensions; do
6953
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954
ac_cv_prog_ac_ct_CC="gcc"
6955
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964
ac_ct_CC=$ac_cv_prog_ac_ct_CC
6965
if test -n "$ac_ct_CC"; then
6966
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6967
$as_echo "$ac_ct_CC" >&6; }
6969
{ $as_echo "$as_me:$LINENO: result: no" >&5
6970
$as_echo "no" >&6; }
6973
if test "x$ac_ct_CC" = x; then
6976
case $cross_compiling:$ac_tool_warned in
6978
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6979
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980
ac_tool_warned=yes ;;
6988
if test -z "$CC"; then
6989
if test -n "$ac_tool_prefix"; then
6990
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6991
set dummy ${ac_tool_prefix}cc; ac_word=$2
6992
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6993
$as_echo_n "checking for $ac_word... " >&6; }
6994
if test "${ac_cv_prog_CC+set}" = set; then
6995
$as_echo_n "(cached) " >&6
6997
if test -n "$CC"; then
6998
ac_cv_prog_CC="$CC" # Let the user override the test.
7000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004
test -z "$as_dir" && as_dir=.
7005
for ac_exec_ext in '' $ac_executable_extensions; do
7006
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007
ac_cv_prog_CC="${ac_tool_prefix}cc"
7008
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018
if test -n "$CC"; then
7019
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
7020
$as_echo "$CC" >&6; }
7022
{ $as_echo "$as_me:$LINENO: result: no" >&5
7023
$as_echo "no" >&6; }
7029
if test -z "$CC"; then
7030
# Extract the first word of "cc", so it can be a program name with args.
7031
set dummy cc; ac_word=$2
7032
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7033
$as_echo_n "checking for $ac_word... " >&6; }
7034
if test "${ac_cv_prog_CC+set}" = set; then
7035
$as_echo_n "(cached) " >&6
7037
if test -n "$CC"; then
7038
ac_cv_prog_CC="$CC" # Let the user override the test.
7041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045
test -z "$as_dir" && as_dir=.
7046
for ac_exec_ext in '' $ac_executable_extensions; do
7047
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7049
ac_prog_rejected=yes
7053
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060
if test $ac_prog_rejected = yes; then
7061
# We found a bogon in the path, so make sure we never use it.
7062
set dummy $ac_cv_prog_CC
7064
if test $# != 0; then
7065
# We chose a different compiler from the bogus one.
7066
# However, it has the same basename, so the bogon will be chosen
7067
# first if we set CC to just the basename; use the full file name.
7069
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7075
if test -n "$CC"; then
7076
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
7077
$as_echo "$CC" >&6; }
7079
{ $as_echo "$as_me:$LINENO: result: no" >&5
7080
$as_echo "no" >&6; }
7085
if test -z "$CC"; then
7086
if test -n "$ac_tool_prefix"; then
7087
for ac_prog in cl.exe
7089
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7090
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7091
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7092
$as_echo_n "checking for $ac_word... " >&6; }
7093
if test "${ac_cv_prog_CC+set}" = set; then
7094
$as_echo_n "(cached) " >&6
7096
if test -n "$CC"; then
7097
ac_cv_prog_CC="$CC" # Let the user override the test.
7099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103
test -z "$as_dir" && as_dir=.
7104
for ac_exec_ext in '' $ac_executable_extensions; do
7105
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7107
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117
if test -n "$CC"; then
7118
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
7119
$as_echo "$CC" >&6; }
7121
{ $as_echo "$as_me:$LINENO: result: no" >&5
7122
$as_echo "no" >&6; }
7126
test -n "$CC" && break
7129
if test -z "$CC"; then
7131
for ac_prog in cl.exe
7133
# Extract the first word of "$ac_prog", so it can be a program name with args.
7134
set dummy $ac_prog; ac_word=$2
7135
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7136
$as_echo_n "checking for $ac_word... " >&6; }
7137
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7138
$as_echo_n "(cached) " >&6
7140
if test -n "$ac_ct_CC"; then
7141
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147
test -z "$as_dir" && as_dir=.
7148
for ac_exec_ext in '' $ac_executable_extensions; do
7149
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150
ac_cv_prog_ac_ct_CC="$ac_prog"
7151
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160
ac_ct_CC=$ac_cv_prog_ac_ct_CC
7161
if test -n "$ac_ct_CC"; then
7162
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7163
$as_echo "$ac_ct_CC" >&6; }
7165
{ $as_echo "$as_me:$LINENO: result: no" >&5
7166
$as_echo "no" >&6; }
7170
test -n "$ac_ct_CC" && break
7173
if test "x$ac_ct_CC" = x; then
7176
case $cross_compiling:$ac_tool_warned in
7178
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7179
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180
ac_tool_warned=yes ;;
7189
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7190
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7191
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7192
See \`config.log' for more details." >&5
7193
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
7194
See \`config.log' for more details." >&2;}
7195
{ (exit 1); exit 1; }; }; }
7197
# Provide some information about the compiler.
7198
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
7201
{ (ac_try="$ac_compiler --version >&5"
7203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204
*) ac_try_echo=$ac_try;;
7206
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7207
$as_echo "$ac_try_echo") >&5
7208
(eval "$ac_compiler --version >&5") 2>&5
7210
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211
(exit $ac_status); }
7212
{ (ac_try="$ac_compiler -v >&5"
7214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215
*) ac_try_echo=$ac_try;;
7217
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7218
$as_echo "$ac_try_echo") >&5
7219
(eval "$ac_compiler -v >&5") 2>&5
7221
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222
(exit $ac_status); }
7223
{ (ac_try="$ac_compiler -V >&5"
7225
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226
*) ac_try_echo=$ac_try;;
7228
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229
$as_echo "$ac_try_echo") >&5
7230
(eval "$ac_compiler -V >&5") 2>&5
7232
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233
(exit $ac_status); }
7235
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7236
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7237
if test "${ac_cv_c_compiler_gnu+set}" = set; then
7238
$as_echo_n "(cached) " >&6
7240
cat >conftest.$ac_ext <<_ACEOF
7243
cat confdefs.h >>conftest.$ac_ext
7244
cat >>conftest.$ac_ext <<_ACEOF
7245
/* end confdefs.h. */
7258
rm -f conftest.$ac_objext
7259
if { (ac_try="$ac_compile"
7261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262
*) ac_try_echo=$ac_try;;
7264
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265
$as_echo "$ac_try_echo") >&5
7266
(eval "$ac_compile") 2>conftest.er1
7268
grep -v '^ *+' conftest.er1 >conftest.err
7270
cat conftest.err >&5
7271
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272
(exit $ac_status); } && {
7273
test -z "$ac_c_werror_flag" ||
7274
test ! -s conftest.err
7275
} && test -s conftest.$ac_objext; then
7278
$as_echo "$as_me: failed program was:" >&5
7279
sed 's/^/| /' conftest.$ac_ext >&5
7284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285
ac_cv_c_compiler_gnu=$ac_compiler_gnu
7288
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7289
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
7290
if test $ac_compiler_gnu = yes; then
7295
ac_test_CFLAGS=${CFLAGS+set}
7296
ac_save_CFLAGS=$CFLAGS
7297
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7298
$as_echo_n "checking whether $CC accepts -g... " >&6; }
7299
if test "${ac_cv_prog_cc_g+set}" = set; then
7300
$as_echo_n "(cached) " >&6
7302
ac_save_c_werror_flag=$ac_c_werror_flag
7303
ac_c_werror_flag=yes
7306
cat >conftest.$ac_ext <<_ACEOF
7309
cat confdefs.h >>conftest.$ac_ext
7310
cat >>conftest.$ac_ext <<_ACEOF
7311
/* end confdefs.h. */
7321
rm -f conftest.$ac_objext
7322
if { (ac_try="$ac_compile"
7324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325
*) ac_try_echo=$ac_try;;
7327
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7328
$as_echo "$ac_try_echo") >&5
7329
(eval "$ac_compile") 2>conftest.er1
7331
grep -v '^ *+' conftest.er1 >conftest.err
7333
cat conftest.err >&5
7334
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335
(exit $ac_status); } && {
7336
test -z "$ac_c_werror_flag" ||
7337
test ! -s conftest.err
7338
} && test -s conftest.$ac_objext; then
7341
$as_echo "$as_me: failed program was:" >&5
7342
sed 's/^/| /' conftest.$ac_ext >&5
7345
cat >conftest.$ac_ext <<_ACEOF
7348
cat confdefs.h >>conftest.$ac_ext
7349
cat >>conftest.$ac_ext <<_ACEOF
7350
/* end confdefs.h. */
7360
rm -f conftest.$ac_objext
7361
if { (ac_try="$ac_compile"
7363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364
*) ac_try_echo=$ac_try;;
7366
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367
$as_echo "$ac_try_echo") >&5
7368
(eval "$ac_compile") 2>conftest.er1
7370
grep -v '^ *+' conftest.er1 >conftest.err
7372
cat conftest.err >&5
7373
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374
(exit $ac_status); } && {
7375
test -z "$ac_c_werror_flag" ||
7376
test ! -s conftest.err
7377
} && test -s conftest.$ac_objext; then
7380
$as_echo "$as_me: failed program was:" >&5
7381
sed 's/^/| /' conftest.$ac_ext >&5
7383
ac_c_werror_flag=$ac_save_c_werror_flag
7385
cat >conftest.$ac_ext <<_ACEOF
7388
cat confdefs.h >>conftest.$ac_ext
7389
cat >>conftest.$ac_ext <<_ACEOF
7390
/* end confdefs.h. */
7400
rm -f conftest.$ac_objext
7401
if { (ac_try="$ac_compile"
7403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404
*) ac_try_echo=$ac_try;;
7406
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7407
$as_echo "$ac_try_echo") >&5
7408
(eval "$ac_compile") 2>conftest.er1
7410
grep -v '^ *+' conftest.er1 >conftest.err
7412
cat conftest.err >&5
7413
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414
(exit $ac_status); } && {
7415
test -z "$ac_c_werror_flag" ||
7416
test ! -s conftest.err
7417
} && test -s conftest.$ac_objext; then
7420
$as_echo "$as_me: failed program was:" >&5
7421
sed 's/^/| /' conftest.$ac_ext >&5
7426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433
ac_c_werror_flag=$ac_save_c_werror_flag
7435
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7436
$as_echo "$ac_cv_prog_cc_g" >&6; }
7437
if test "$ac_test_CFLAGS" = set; then
7438
CFLAGS=$ac_save_CFLAGS
7439
elif test $ac_cv_prog_cc_g = yes; then
7440
if test "$GCC" = yes; then
7446
if test "$GCC" = yes; then
7452
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
7453
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7454
if test "${ac_cv_prog_cc_c89+set}" = set; then
7455
$as_echo_n "(cached) " >&6
7457
ac_cv_prog_cc_c89=no
7459
cat >conftest.$ac_ext <<_ACEOF
7462
cat confdefs.h >>conftest.$ac_ext
7463
cat >>conftest.$ac_ext <<_ACEOF
7464
/* end confdefs.h. */
7467
#include <sys/types.h>
7468
#include <sys/stat.h>
7469
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7470
struct buf { int x; };
7471
FILE * (*rcsopen) (struct buf *, struct stat *, int);
7472
static char *e (p, i)
7478
static char *f (char * (*g) (char **, int), char **p, ...)
7483
s = g (p, va_arg (v,int));
7488
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7489
function prototypes and stuff, but not '\xHH' hex character constants.
7490
These don't provoke an error unfortunately, instead are silently treated
7491
as 'x'. The following induces an error, until -std is added to get
7492
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7493
array size at least. It's necessary to write '\x00'==0 to get something
7494
that's true only with -std. */
7495
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7497
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7498
inside strings and character constants. */
7500
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7502
int test (int i, double x);
7503
struct s1 {int (*f) (int a);};
7504
struct s2 {int (*f) (double a);};
7505
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7511
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7516
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7517
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7519
CC="$ac_save_CC $ac_arg"
7520
rm -f conftest.$ac_objext
7521
if { (ac_try="$ac_compile"
7523
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524
*) ac_try_echo=$ac_try;;
7526
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7527
$as_echo "$ac_try_echo") >&5
7528
(eval "$ac_compile") 2>conftest.er1
7530
grep -v '^ *+' conftest.er1 >conftest.err
7532
cat conftest.err >&5
7533
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534
(exit $ac_status); } && {
7535
test -z "$ac_c_werror_flag" ||
7536
test ! -s conftest.err
7537
} && test -s conftest.$ac_objext; then
7538
ac_cv_prog_cc_c89=$ac_arg
7540
$as_echo "$as_me: failed program was:" >&5
7541
sed 's/^/| /' conftest.$ac_ext >&5
7546
rm -f core conftest.err conftest.$ac_objext
7547
test "x$ac_cv_prog_cc_c89" != "xno" && break
7549
rm -f conftest.$ac_ext
7554
case "x$ac_cv_prog_cc_c89" in
7556
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
7557
$as_echo "none needed" >&6; } ;;
7559
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
7560
$as_echo "unsupported" >&6; } ;;
7562
CC="$CC $ac_cv_prog_cc_c89"
7563
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
7564
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7569
ac_cpp='$CPP $CPPFLAGS'
7570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7574
depcc="$CC" am_compiler_list=
7576
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7577
$as_echo_n "checking dependency style of $depcc... " >&6; }
7578
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7579
$as_echo_n "(cached) " >&6
7581
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7582
# We make a subdir and do the tests there. Otherwise we can end up
7583
# making bogus files that we don't know about and never remove. For
7584
# instance it was reported that on HP-UX the gcc test will end up
7585
# making a dummy file named `D' -- because `-MD' means `put the output
7588
# Copy depcomp to subdir because otherwise we won't find it if we're
7589
# using a relative directory.
7590
cp "$am_depcomp" conftest.dir
7592
# We will build objects and dependencies in a subdirectory because
7593
# it helps to detect inapplicable dependency modes. For instance
7594
# both Tru64's cc and ICC support -MD to output dependencies as a
7595
# side effect of compilation, but ICC will put the dependencies in
7596
# the current directory while Tru64 will put them in the object
7600
am_cv_CC_dependencies_compiler_type=none
7601
if test "$am_compiler_list" = ""; then
7602
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7605
case " $depcc " in #(
7606
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7609
for depmode in $am_compiler_list; do
7610
# Setup a source with many dependencies, because some compilers
7611
# like to wrap large dependency lists on column 80 (with \), and
7612
# we should not choose a depcomp mode which is confused by this.
7614
# We need to recreate these files for each test, as the compiler may
7615
# overwrite some of them when testing with obscure command lines.
7616
# This happens at least with the AIX C compiler.
7618
for i in 1 2 3 4 5 6; do
7619
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7620
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7621
# Solaris 8's {/usr,}/bin/sh.
7622
touch sub/conftst$i.h
7624
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7626
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7627
# mode. It turns out that the SunPro C++ compiler does not properly
7628
# handle `-M -o', and we need to detect this. Also, some Intel
7629
# versions had trouble with output in subdirs
7630
am__obj=sub/conftest.${OBJEXT-o}
7631
am__minus_obj="-o $am__obj"
7634
# This depmode causes a compiler race in universal mode.
7635
test "$am__universal" = false || continue
7638
# after this tag, mechanisms are not by side-effect, so they'll
7639
# only be used when explicitly requested
7640
if test "x$enable_dependency_tracking" = xyes; then
7646
msvisualcpp | msvcmsys)
7647
# This compiler won't grok `-c -o', but also, the minuso test has
7648
# not run yet. These depmodes are late enough in the game, and
7649
# so weak that their functioning should not be impacted.
7650
am__obj=conftest.${OBJEXT-o}
7655
if depmode=$depmode \
7656
source=sub/conftest.c object=$am__obj \
7657
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7658
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7659
>/dev/null 2>conftest.err &&
7660
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7661
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7662
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7663
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7664
# icc doesn't choke on unknown options, it will just issue warnings
7665
# or remarks (even with -Werror). So we grep stderr for any message
7666
# that says an option was ignored or not supported.
7667
# When given -MP, icc 7.0 and 7.1 complain thusly:
7668
# icc: Command line warning: ignoring option '-M'; no argument required
7669
# The diagnosis changed in icc 8.0:
7670
# icc: Command line remark: option '-MP' not supported
7671
if (grep 'ignoring option' conftest.err ||
7672
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7673
am_cv_CC_dependencies_compiler_type=$depmode
7682
am_cv_CC_dependencies_compiler_type=none
7686
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7687
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7688
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7691
test "x$enable_dependency_tracking" != xno \
7692
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7694
am__fastdepCC_FALSE='#'
7696
am__fastdepCC_TRUE='#'
7697
am__fastdepCC_FALSE=
7702
ac_cpp='$CXXCPP $CPPFLAGS'
7703
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7706
if test -z "$CXX"; then
7707
if test -n "$CCC"; then
7710
if test -n "$ac_tool_prefix"; then
7711
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7713
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7714
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7715
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7716
$as_echo_n "checking for $ac_word... " >&6; }
7717
if test "${ac_cv_prog_CXX+set}" = set; then
7718
$as_echo_n "(cached) " >&6
7720
if test -n "$CXX"; then
7721
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727
test -z "$as_dir" && as_dir=.
7728
for ac_exec_ext in '' $ac_executable_extensions; do
7729
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7731
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741
if test -n "$CXX"; then
7742
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
7743
$as_echo "$CXX" >&6; }
7745
{ $as_echo "$as_me:$LINENO: result: no" >&5
7746
$as_echo "no" >&6; }
7750
test -n "$CXX" && break
7753
if test -z "$CXX"; then
7755
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7757
# Extract the first word of "$ac_prog", so it can be a program name with args.
7758
set dummy $ac_prog; ac_word=$2
7759
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7760
$as_echo_n "checking for $ac_word... " >&6; }
7761
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7762
$as_echo_n "(cached) " >&6
7764
if test -n "$ac_ct_CXX"; then
7765
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771
test -z "$as_dir" && as_dir=.
7772
for ac_exec_ext in '' $ac_executable_extensions; do
7773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774
ac_cv_prog_ac_ct_CXX="$ac_prog"
7775
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7785
if test -n "$ac_ct_CXX"; then
7786
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7787
$as_echo "$ac_ct_CXX" >&6; }
7789
{ $as_echo "$as_me:$LINENO: result: no" >&5
7790
$as_echo "no" >&6; }
7794
test -n "$ac_ct_CXX" && break
7797
if test "x$ac_ct_CXX" = x; then
7800
case $cross_compiling:$ac_tool_warned in
7802
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7803
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804
ac_tool_warned=yes ;;
7812
# Provide some information about the compiler.
7813
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7816
{ (ac_try="$ac_compiler --version >&5"
7818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819
*) ac_try_echo=$ac_try;;
7821
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7822
$as_echo "$ac_try_echo") >&5
7823
(eval "$ac_compiler --version >&5") 2>&5
7825
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826
(exit $ac_status); }
7827
{ (ac_try="$ac_compiler -v >&5"
7829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830
*) ac_try_echo=$ac_try;;
7832
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7833
$as_echo "$ac_try_echo") >&5
7834
(eval "$ac_compiler -v >&5") 2>&5
7836
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837
(exit $ac_status); }
7838
{ (ac_try="$ac_compiler -V >&5"
7840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841
*) ac_try_echo=$ac_try;;
7843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844
$as_echo "$ac_try_echo") >&5
7845
(eval "$ac_compiler -V >&5") 2>&5
7847
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848
(exit $ac_status); }
7850
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7851
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7852
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7853
$as_echo_n "(cached) " >&6
7855
cat >conftest.$ac_ext <<_ACEOF
7858
cat confdefs.h >>conftest.$ac_ext
7859
cat >>conftest.$ac_ext <<_ACEOF
7860
/* end confdefs.h. */
7873
rm -f conftest.$ac_objext
7874
if { (ac_try="$ac_compile"
7876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877
*) ac_try_echo=$ac_try;;
7879
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880
$as_echo "$ac_try_echo") >&5
7881
(eval "$ac_compile") 2>conftest.er1
7883
grep -v '^ *+' conftest.er1 >conftest.err
7885
cat conftest.err >&5
7886
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887
(exit $ac_status); } && {
7888
test -z "$ac_cxx_werror_flag" ||
7889
test ! -s conftest.err
7890
} && test -s conftest.$ac_objext; then
7893
$as_echo "$as_me: failed program was:" >&5
7894
sed 's/^/| /' conftest.$ac_ext >&5
7899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7903
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7904
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7905
if test $ac_compiler_gnu = yes; then
7910
ac_test_CXXFLAGS=${CXXFLAGS+set}
7911
ac_save_CXXFLAGS=$CXXFLAGS
7912
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7913
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7914
if test "${ac_cv_prog_cxx_g+set}" = set; then
7915
$as_echo_n "(cached) " >&6
7917
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7918
ac_cxx_werror_flag=yes
7921
cat >conftest.$ac_ext <<_ACEOF
7924
cat confdefs.h >>conftest.$ac_ext
7925
cat >>conftest.$ac_ext <<_ACEOF
7926
/* end confdefs.h. */
7936
rm -f conftest.$ac_objext
7937
if { (ac_try="$ac_compile"
7939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940
*) ac_try_echo=$ac_try;;
7942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943
$as_echo "$ac_try_echo") >&5
7944
(eval "$ac_compile") 2>conftest.er1
7946
grep -v '^ *+' conftest.er1 >conftest.err
7948
cat conftest.err >&5
7949
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
(exit $ac_status); } && {
7951
test -z "$ac_cxx_werror_flag" ||
7952
test ! -s conftest.err
7953
} && test -s conftest.$ac_objext; then
7954
ac_cv_prog_cxx_g=yes
7956
$as_echo "$as_me: failed program was:" >&5
7957
sed 's/^/| /' conftest.$ac_ext >&5
7960
cat >conftest.$ac_ext <<_ACEOF
7963
cat confdefs.h >>conftest.$ac_ext
7964
cat >>conftest.$ac_ext <<_ACEOF
7965
/* end confdefs.h. */
7975
rm -f conftest.$ac_objext
7976
if { (ac_try="$ac_compile"
7978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979
*) ac_try_echo=$ac_try;;
7981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7982
$as_echo "$ac_try_echo") >&5
7983
(eval "$ac_compile") 2>conftest.er1
7985
grep -v '^ *+' conftest.er1 >conftest.err
7987
cat conftest.err >&5
7988
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989
(exit $ac_status); } && {
7990
test -z "$ac_cxx_werror_flag" ||
7991
test ! -s conftest.err
7992
} && test -s conftest.$ac_objext; then
7995
$as_echo "$as_me: failed program was:" >&5
7996
sed 's/^/| /' conftest.$ac_ext >&5
7998
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8000
cat >conftest.$ac_ext <<_ACEOF
8003
cat confdefs.h >>conftest.$ac_ext
8004
cat >>conftest.$ac_ext <<_ACEOF
8005
/* end confdefs.h. */
8015
rm -f conftest.$ac_objext
8016
if { (ac_try="$ac_compile"
8018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019
*) ac_try_echo=$ac_try;;
8021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022
$as_echo "$ac_try_echo") >&5
8023
(eval "$ac_compile") 2>conftest.er1
8025
grep -v '^ *+' conftest.er1 >conftest.err
8027
cat conftest.err >&5
8028
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029
(exit $ac_status); } && {
8030
test -z "$ac_cxx_werror_flag" ||
8031
test ! -s conftest.err
8032
} && test -s conftest.$ac_objext; then
8033
ac_cv_prog_cxx_g=yes
8035
$as_echo "$as_me: failed program was:" >&5
8036
sed 's/^/| /' conftest.$ac_ext >&5
8041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8050
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8051
$as_echo "$ac_cv_prog_cxx_g" >&6; }
8052
if test "$ac_test_CXXFLAGS" = set; then
8053
CXXFLAGS=$ac_save_CXXFLAGS
8054
elif test $ac_cv_prog_cxx_g = yes; then
8055
if test "$GXX" = yes; then
8061
if test "$GXX" = yes; then
8068
ac_cpp='$CPP $CPPFLAGS'
8069
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8073
depcc="$CXX" am_compiler_list=
8075
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8076
$as_echo_n "checking dependency style of $depcc... " >&6; }
8077
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8078
$as_echo_n "(cached) " >&6
8080
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8081
# We make a subdir and do the tests there. Otherwise we can end up
8082
# making bogus files that we don't know about and never remove. For
8083
# instance it was reported that on HP-UX the gcc test will end up
8084
# making a dummy file named `D' -- because `-MD' means `put the output
8087
# Copy depcomp to subdir because otherwise we won't find it if we're
8088
# using a relative directory.
8089
cp "$am_depcomp" conftest.dir
8091
# We will build objects and dependencies in a subdirectory because
8092
# it helps to detect inapplicable dependency modes. For instance
8093
# both Tru64's cc and ICC support -MD to output dependencies as a
8094
# side effect of compilation, but ICC will put the dependencies in
8095
# the current directory while Tru64 will put them in the object
8099
am_cv_CXX_dependencies_compiler_type=none
8100
if test "$am_compiler_list" = ""; then
8101
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8104
case " $depcc " in #(
8105
*\ -arch\ *\ -arch\ *) am__universal=true ;;
8108
for depmode in $am_compiler_list; do
8109
# Setup a source with many dependencies, because some compilers
8110
# like to wrap large dependency lists on column 80 (with \), and
8111
# we should not choose a depcomp mode which is confused by this.
8113
# We need to recreate these files for each test, as the compiler may
8114
# overwrite some of them when testing with obscure command lines.
8115
# This happens at least with the AIX C compiler.
8117
for i in 1 2 3 4 5 6; do
8118
echo '#include "conftst'$i'.h"' >> sub/conftest.c
8119
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8120
# Solaris 8's {/usr,}/bin/sh.
8121
touch sub/conftst$i.h
8123
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8125
# We check with `-c' and `-o' for the sake of the "dashmstdout"
8126
# mode. It turns out that the SunPro C++ compiler does not properly
8127
# handle `-M -o', and we need to detect this. Also, some Intel
8128
# versions had trouble with output in subdirs
8129
am__obj=sub/conftest.${OBJEXT-o}
8130
am__minus_obj="-o $am__obj"
8133
# This depmode causes a compiler race in universal mode.
8134
test "$am__universal" = false || continue
8137
# after this tag, mechanisms are not by side-effect, so they'll
8138
# only be used when explicitly requested
8139
if test "x$enable_dependency_tracking" = xyes; then
8145
msvisualcpp | msvcmsys)
8146
# This compiler won't grok `-c -o', but also, the minuso test has
8147
# not run yet. These depmodes are late enough in the game, and
8148
# so weak that their functioning should not be impacted.
8149
am__obj=conftest.${OBJEXT-o}
8154
if depmode=$depmode \
8155
source=sub/conftest.c object=$am__obj \
8156
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8157
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8158
>/dev/null 2>conftest.err &&
8159
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8160
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8161
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8162
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8163
# icc doesn't choke on unknown options, it will just issue warnings
8164
# or remarks (even with -Werror). So we grep stderr for any message
8165
# that says an option was ignored or not supported.
8166
# When given -MP, icc 7.0 and 7.1 complain thusly:
8167
# icc: Command line warning: ignoring option '-M'; no argument required
8168
# The diagnosis changed in icc 8.0:
8169
# icc: Command line remark: option '-MP' not supported
8170
if (grep 'ignoring option' conftest.err ||
8171
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8172
am_cv_CXX_dependencies_compiler_type=$depmode
8181
am_cv_CXX_dependencies_compiler_type=none
8185
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8186
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8187
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8190
test "x$enable_dependency_tracking" != xno \
8191
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8192
am__fastdepCXX_TRUE=
8193
am__fastdepCXX_FALSE='#'
8195
am__fastdepCXX_TRUE='#'
8196
am__fastdepCXX_FALSE=
8200
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
8201
$as_echo_n "checking for inline... " >&6; }
8202
if test "${ac_cv_c_inline+set}" = set; then
8203
$as_echo_n "(cached) " >&6
8206
for ac_kw in inline __inline__ __inline; do
8207
cat >conftest.$ac_ext <<_ACEOF
8210
cat confdefs.h >>conftest.$ac_ext
8211
cat >>conftest.$ac_ext <<_ACEOF
8212
/* end confdefs.h. */
8215
static $ac_kw foo_t static_foo () {return 0; }
8216
$ac_kw foo_t foo () {return 0; }
8220
rm -f conftest.$ac_objext
8221
if { (ac_try="$ac_compile"
8223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224
*) ac_try_echo=$ac_try;;
8226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8227
$as_echo "$ac_try_echo") >&5
8228
(eval "$ac_compile") 2>conftest.er1
8230
grep -v '^ *+' conftest.er1 >conftest.err
8232
cat conftest.err >&5
8233
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234
(exit $ac_status); } && {
8235
test -z "$ac_c_werror_flag" ||
8236
test ! -s conftest.err
8237
} && test -s conftest.$ac_objext; then
8238
ac_cv_c_inline=$ac_kw
8240
$as_echo "$as_me: failed program was:" >&5
8241
sed 's/^/| /' conftest.$ac_ext >&5
8246
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247
test "$ac_cv_c_inline" != no && break
8251
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8252
$as_echo "$ac_cv_c_inline" >&6; }
8255
case $ac_cv_c_inline in
8258
case $ac_cv_c_inline in
8260
*) ac_val=$ac_cv_c_inline;;
8262
cat >>confdefs.h <<_ACEOF
8264
#define inline $ac_val
8270
5376
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8271
5377
# for constant arguments. Useless!
8272
5378
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
9007
for ac_func in memchr memmove memset regcomp setlocale strchr strcspn strrchr strstr strtol strtoull
9009
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9010
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9011
$as_echo_n "checking for $ac_func... " >&6; }
9012
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9013
$as_echo_n "(cached) " >&6
9015
cat >conftest.$ac_ext <<_ACEOF
9018
cat confdefs.h >>conftest.$ac_ext
9019
cat >>conftest.$ac_ext <<_ACEOF
9020
/* end confdefs.h. */
9021
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9022
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9023
#define $ac_func innocuous_$ac_func
9025
/* System header to define __stub macros and hopefully few prototypes,
9026
which can conflict with char $ac_func (); below.
9027
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028
<limits.h> exists even on freestanding compilers. */
9031
# include <limits.h>
9033
# include <assert.h>
9038
/* Override any GCC internal prototype to avoid an error.
9039
Use char because int might match the return type of a GCC
9040
builtin and then its argument prototype would still apply. */
9045
/* The GNU C library defines this for functions which it implements
9046
to always fail with ENOSYS. Some functions are actually named
9047
something starting with __ and the normal name is an alias. */
9048
#if defined __stub_$ac_func || defined __stub___$ac_func
9060
rm -f conftest.$ac_objext conftest$ac_exeext
9061
if { (ac_try="$ac_link"
9063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064
*) ac_try_echo=$ac_try;;
9066
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9067
$as_echo "$ac_try_echo") >&5
9068
(eval "$ac_link") 2>conftest.er1
9070
grep -v '^ *+' conftest.er1 >conftest.err
9072
cat conftest.err >&5
9073
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074
(exit $ac_status); } && {
9075
test -z "$ac_c_werror_flag" ||
9076
test ! -s conftest.err
9077
} && test -s conftest$ac_exeext && {
9078
test "$cross_compiling" = yes ||
9079
$as_test_x conftest$ac_exeext
9081
eval "$as_ac_var=yes"
9083
$as_echo "$as_me: failed program was:" >&5
9084
sed 's/^/| /' conftest.$ac_ext >&5
9086
eval "$as_ac_var=no"
9089
rm -rf conftest.dSYM
9090
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091
conftest$ac_exeext conftest.$ac_ext
9093
ac_res=`eval 'as_val=${'$as_ac_var'}
9094
$as_echo "$as_val"'`
9095
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9096
$as_echo "$ac_res" >&6; }
9097
as_val=`eval 'as_val=${'$as_ac_var'}
9098
$as_echo "$as_val"'`
9099
if test "x$as_val" = x""yes; then
9100
cat >>confdefs.h <<_ACEOF
9101
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9109
for ac_header in fcntl.h libintl.h
9111
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9112
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9113
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9114
$as_echo_n "checking for $ac_header... " >&6; }
9115
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9116
$as_echo_n "(cached) " >&6
9118
ac_res=`eval 'as_val=${'$as_ac_Header'}
9119
$as_echo "$as_val"'`
9120
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9121
$as_echo "$ac_res" >&6; }
9123
# Is the header compilable?
9124
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125
$as_echo_n "checking $ac_header usability... " >&6; }
9126
cat >conftest.$ac_ext <<_ACEOF
9129
cat confdefs.h >>conftest.$ac_ext
9130
cat >>conftest.$ac_ext <<_ACEOF
9131
/* end confdefs.h. */
9132
$ac_includes_default
9133
#include <$ac_header>
9135
rm -f conftest.$ac_objext
9136
if { (ac_try="$ac_compile"
9138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139
*) ac_try_echo=$ac_try;;
9141
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9142
$as_echo "$ac_try_echo") >&5
9143
(eval "$ac_compile") 2>conftest.er1
9145
grep -v '^ *+' conftest.er1 >conftest.err
9147
cat conftest.err >&5
9148
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149
(exit $ac_status); } && {
9150
test -z "$ac_c_werror_flag" ||
9151
test ! -s conftest.err
9152
} && test -s conftest.$ac_objext; then
9153
ac_header_compiler=yes
9155
$as_echo "$as_me: failed program was:" >&5
9156
sed 's/^/| /' conftest.$ac_ext >&5
9158
ac_header_compiler=no
9161
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9163
$as_echo "$ac_header_compiler" >&6; }
9165
# Is the header present?
9166
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9167
$as_echo_n "checking $ac_header presence... " >&6; }
9168
cat >conftest.$ac_ext <<_ACEOF
9171
cat confdefs.h >>conftest.$ac_ext
9172
cat >>conftest.$ac_ext <<_ACEOF
9173
/* end confdefs.h. */
9174
#include <$ac_header>
9176
if { (ac_try="$ac_cpp conftest.$ac_ext"
9178
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179
*) ac_try_echo=$ac_try;;
9181
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9182
$as_echo "$ac_try_echo") >&5
9183
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9185
grep -v '^ *+' conftest.er1 >conftest.err
9187
cat conftest.err >&5
9188
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189
(exit $ac_status); } >/dev/null && {
9190
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9191
test ! -s conftest.err
9193
ac_header_preproc=yes
9195
$as_echo "$as_me: failed program was:" >&5
9196
sed 's/^/| /' conftest.$ac_ext >&5
9198
ac_header_preproc=no
9201
rm -f conftest.err conftest.$ac_ext
9202
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9203
$as_echo "$ac_header_preproc" >&6; }
9205
# So? What about this header?
9206
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9208
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9209
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9210
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9211
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9212
ac_header_preproc=yes
9215
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9216
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9217
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9218
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9219
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9220
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9221
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9222
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9223
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9224
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9225
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9226
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9228
## ---------------------------------------------------------------------- ##
9229
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GtkHtml ##
9230
## ---------------------------------------------------------------------- ##
9232
) | sed "s/^/$as_me: WARNING: /" >&2
9235
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9236
$as_echo_n "checking for $ac_header... " >&6; }
9237
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9238
$as_echo_n "(cached) " >&6
9240
eval "$as_ac_Header=\$ac_header_preproc"
9242
ac_res=`eval 'as_val=${'$as_ac_Header'}
9243
$as_echo "$as_val"'`
9244
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9245
$as_echo "$ac_res" >&6; }
9248
as_val=`eval 'as_val=${'$as_ac_Header'}
9249
$as_echo "$as_val"'`
9250
if test "x$as_val" = x""yes; then
9251
cat >>confdefs.h <<_ACEOF
9252
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9263
{ $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9264
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9269
macro_version='2.2.6'
9270
macro_revision='1.3012'
9284
ltmain="$ac_aux_dir/ltmain.sh"
6694
for ac_func in memchr
6696
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6697
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6698
$as_echo_n "checking for $ac_func... " >&6; }
6699
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6700
$as_echo_n "(cached) " >&6
6702
cat >conftest.$ac_ext <<_ACEOF
6705
cat confdefs.h >>conftest.$ac_ext
6706
cat >>conftest.$ac_ext <<_ACEOF
6707
/* end confdefs.h. */
6708
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6709
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6710
#define $ac_func innocuous_$ac_func
6712
/* System header to define __stub macros and hopefully few prototypes,
6713
which can conflict with char $ac_func (); below.
6714
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6715
<limits.h> exists even on freestanding compilers. */
6718
# include <limits.h>
6720
# include <assert.h>
6725
/* Override any GCC internal prototype to avoid an error.
6726
Use char because int might match the return type of a GCC
6727
builtin and then its argument prototype would still apply. */
6732
/* The GNU C library defines this for functions which it implements
6733
to always fail with ENOSYS. Some functions are actually named
6734
something starting with __ and the normal name is an alias. */
6735
#if defined __stub_$ac_func || defined __stub___$ac_func
6747
rm -f conftest.$ac_objext conftest$ac_exeext
6748
if { (ac_try="$ac_link"
6750
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751
*) ac_try_echo=$ac_try;;
6753
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6754
$as_echo "$ac_try_echo") >&5
6755
(eval "$ac_link") 2>conftest.er1
6757
grep -v '^ *+' conftest.er1 >conftest.err
6759
cat conftest.err >&5
6760
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761
(exit $ac_status); } && {
6762
test -z "$ac_c_werror_flag" ||
6763
test ! -s conftest.err
6764
} && test -s conftest$ac_exeext && {
6765
test "$cross_compiling" = yes ||
6766
$as_test_x conftest$ac_exeext
6768
eval "$as_ac_var=yes"
6770
$as_echo "$as_me: failed program was:" >&5
6771
sed 's/^/| /' conftest.$ac_ext >&5
6773
eval "$as_ac_var=no"
6776
rm -rf conftest.dSYM
6777
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6778
conftest$ac_exeext conftest.$ac_ext
6780
ac_res=`eval 'as_val=${'$as_ac_var'}
6781
$as_echo "$as_val"'`
6782
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6783
$as_echo "$ac_res" >&6; }
6784
as_val=`eval 'as_val=${'$as_ac_var'}
6785
$as_echo "$as_val"'`
6786
if test "x$as_val" = x""yes; then
6787
cat >>confdefs.h <<_ACEOF
6788
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6795
for ac_func in memmove
6797
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6798
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6799
$as_echo_n "checking for $ac_func... " >&6; }
6800
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6801
$as_echo_n "(cached) " >&6
6803
cat >conftest.$ac_ext <<_ACEOF
6806
cat confdefs.h >>conftest.$ac_ext
6807
cat >>conftest.$ac_ext <<_ACEOF
6808
/* end confdefs.h. */
6809
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6810
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6811
#define $ac_func innocuous_$ac_func
6813
/* System header to define __stub macros and hopefully few prototypes,
6814
which can conflict with char $ac_func (); below.
6815
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6816
<limits.h> exists even on freestanding compilers. */
6819
# include <limits.h>
6821
# include <assert.h>
6826
/* Override any GCC internal prototype to avoid an error.
6827
Use char because int might match the return type of a GCC
6828
builtin and then its argument prototype would still apply. */
6833
/* The GNU C library defines this for functions which it implements
6834
to always fail with ENOSYS. Some functions are actually named
6835
something starting with __ and the normal name is an alias. */
6836
#if defined __stub_$ac_func || defined __stub___$ac_func
6848
rm -f conftest.$ac_objext conftest$ac_exeext
6849
if { (ac_try="$ac_link"
6851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852
*) ac_try_echo=$ac_try;;
6854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6855
$as_echo "$ac_try_echo") >&5
6856
(eval "$ac_link") 2>conftest.er1
6858
grep -v '^ *+' conftest.er1 >conftest.err
6860
cat conftest.err >&5
6861
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862
(exit $ac_status); } && {
6863
test -z "$ac_c_werror_flag" ||
6864
test ! -s conftest.err
6865
} && test -s conftest$ac_exeext && {
6866
test "$cross_compiling" = yes ||
6867
$as_test_x conftest$ac_exeext
6869
eval "$as_ac_var=yes"
6871
$as_echo "$as_me: failed program was:" >&5
6872
sed 's/^/| /' conftest.$ac_ext >&5
6874
eval "$as_ac_var=no"
6877
rm -rf conftest.dSYM
6878
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6879
conftest$ac_exeext conftest.$ac_ext
6881
ac_res=`eval 'as_val=${'$as_ac_var'}
6882
$as_echo "$as_val"'`
6883
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6884
$as_echo "$ac_res" >&6; }
6885
as_val=`eval 'as_val=${'$as_ac_var'}
6886
$as_echo "$as_val"'`
6887
if test "x$as_val" = x""yes; then
6888
cat >>confdefs.h <<_ACEOF
6889
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6896
for ac_func in memset
6898
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6899
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6900
$as_echo_n "checking for $ac_func... " >&6; }
6901
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6902
$as_echo_n "(cached) " >&6
6904
cat >conftest.$ac_ext <<_ACEOF
6907
cat confdefs.h >>conftest.$ac_ext
6908
cat >>conftest.$ac_ext <<_ACEOF
6909
/* end confdefs.h. */
6910
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6911
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6912
#define $ac_func innocuous_$ac_func
6914
/* System header to define __stub macros and hopefully few prototypes,
6915
which can conflict with char $ac_func (); below.
6916
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6917
<limits.h> exists even on freestanding compilers. */
6920
# include <limits.h>
6922
# include <assert.h>
6927
/* Override any GCC internal prototype to avoid an error.
6928
Use char because int might match the return type of a GCC
6929
builtin and then its argument prototype would still apply. */
6934
/* The GNU C library defines this for functions which it implements
6935
to always fail with ENOSYS. Some functions are actually named
6936
something starting with __ and the normal name is an alias. */
6937
#if defined __stub_$ac_func || defined __stub___$ac_func
6949
rm -f conftest.$ac_objext conftest$ac_exeext
6950
if { (ac_try="$ac_link"
6952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953
*) ac_try_echo=$ac_try;;
6955
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956
$as_echo "$ac_try_echo") >&5
6957
(eval "$ac_link") 2>conftest.er1
6959
grep -v '^ *+' conftest.er1 >conftest.err
6961
cat conftest.err >&5
6962
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963
(exit $ac_status); } && {
6964
test -z "$ac_c_werror_flag" ||
6965
test ! -s conftest.err
6966
} && test -s conftest$ac_exeext && {
6967
test "$cross_compiling" = yes ||
6968
$as_test_x conftest$ac_exeext
6970
eval "$as_ac_var=yes"
6972
$as_echo "$as_me: failed program was:" >&5
6973
sed 's/^/| /' conftest.$ac_ext >&5
6975
eval "$as_ac_var=no"
6978
rm -rf conftest.dSYM
6979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6980
conftest$ac_exeext conftest.$ac_ext
6982
ac_res=`eval 'as_val=${'$as_ac_var'}
6983
$as_echo "$as_val"'`
6984
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6985
$as_echo "$ac_res" >&6; }
6986
as_val=`eval 'as_val=${'$as_ac_var'}
6987
$as_echo "$as_val"'`
6988
if test "x$as_val" = x""yes; then
6989
cat >>confdefs.h <<_ACEOF
6990
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6997
for ac_func in regcomp
6999
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7000
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7001
$as_echo_n "checking for $ac_func... " >&6; }
7002
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7003
$as_echo_n "(cached) " >&6
7005
cat >conftest.$ac_ext <<_ACEOF
7008
cat confdefs.h >>conftest.$ac_ext
7009
cat >>conftest.$ac_ext <<_ACEOF
7010
/* end confdefs.h. */
7011
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7012
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7013
#define $ac_func innocuous_$ac_func
7015
/* System header to define __stub macros and hopefully few prototypes,
7016
which can conflict with char $ac_func (); below.
7017
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7018
<limits.h> exists even on freestanding compilers. */
7021
# include <limits.h>
7023
# include <assert.h>
7028
/* Override any GCC internal prototype to avoid an error.
7029
Use char because int might match the return type of a GCC
7030
builtin and then its argument prototype would still apply. */
7035
/* The GNU C library defines this for functions which it implements
7036
to always fail with ENOSYS. Some functions are actually named
7037
something starting with __ and the normal name is an alias. */
7038
#if defined __stub_$ac_func || defined __stub___$ac_func
7050
rm -f conftest.$ac_objext conftest$ac_exeext
7051
if { (ac_try="$ac_link"
7053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054
*) ac_try_echo=$ac_try;;
7056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7057
$as_echo "$ac_try_echo") >&5
7058
(eval "$ac_link") 2>conftest.er1
7060
grep -v '^ *+' conftest.er1 >conftest.err
7062
cat conftest.err >&5
7063
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064
(exit $ac_status); } && {
7065
test -z "$ac_c_werror_flag" ||
7066
test ! -s conftest.err
7067
} && test -s conftest$ac_exeext && {
7068
test "$cross_compiling" = yes ||
7069
$as_test_x conftest$ac_exeext
7071
eval "$as_ac_var=yes"
7073
$as_echo "$as_me: failed program was:" >&5
7074
sed 's/^/| /' conftest.$ac_ext >&5
7076
eval "$as_ac_var=no"
7079
rm -rf conftest.dSYM
7080
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7081
conftest$ac_exeext conftest.$ac_ext
7083
ac_res=`eval 'as_val=${'$as_ac_var'}
7084
$as_echo "$as_val"'`
7085
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7086
$as_echo "$ac_res" >&6; }
7087
as_val=`eval 'as_val=${'$as_ac_var'}
7088
$as_echo "$as_val"'`
7089
if test "x$as_val" = x""yes; then
7090
cat >>confdefs.h <<_ACEOF
7091
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7098
for ac_func in setlocale
7100
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7101
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7102
$as_echo_n "checking for $ac_func... " >&6; }
7103
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7104
$as_echo_n "(cached) " >&6
7106
cat >conftest.$ac_ext <<_ACEOF
7109
cat confdefs.h >>conftest.$ac_ext
7110
cat >>conftest.$ac_ext <<_ACEOF
7111
/* end confdefs.h. */
7112
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7113
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7114
#define $ac_func innocuous_$ac_func
7116
/* System header to define __stub macros and hopefully few prototypes,
7117
which can conflict with char $ac_func (); below.
7118
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7119
<limits.h> exists even on freestanding compilers. */
7122
# include <limits.h>
7124
# include <assert.h>
7129
/* Override any GCC internal prototype to avoid an error.
7130
Use char because int might match the return type of a GCC
7131
builtin and then its argument prototype would still apply. */
7136
/* The GNU C library defines this for functions which it implements
7137
to always fail with ENOSYS. Some functions are actually named
7138
something starting with __ and the normal name is an alias. */
7139
#if defined __stub_$ac_func || defined __stub___$ac_func
7151
rm -f conftest.$ac_objext conftest$ac_exeext
7152
if { (ac_try="$ac_link"
7154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155
*) ac_try_echo=$ac_try;;
7157
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7158
$as_echo "$ac_try_echo") >&5
7159
(eval "$ac_link") 2>conftest.er1
7161
grep -v '^ *+' conftest.er1 >conftest.err
7163
cat conftest.err >&5
7164
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165
(exit $ac_status); } && {
7166
test -z "$ac_c_werror_flag" ||
7167
test ! -s conftest.err
7168
} && test -s conftest$ac_exeext && {
7169
test "$cross_compiling" = yes ||
7170
$as_test_x conftest$ac_exeext
7172
eval "$as_ac_var=yes"
7174
$as_echo "$as_me: failed program was:" >&5
7175
sed 's/^/| /' conftest.$ac_ext >&5
7177
eval "$as_ac_var=no"
7180
rm -rf conftest.dSYM
7181
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7182
conftest$ac_exeext conftest.$ac_ext
7184
ac_res=`eval 'as_val=${'$as_ac_var'}
7185
$as_echo "$as_val"'`
7186
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7187
$as_echo "$ac_res" >&6; }
7188
as_val=`eval 'as_val=${'$as_ac_var'}
7189
$as_echo "$as_val"'`
7190
if test "x$as_val" = x""yes; then
7191
cat >>confdefs.h <<_ACEOF
7192
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7199
for ac_func in strchr
7201
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7202
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7203
$as_echo_n "checking for $ac_func... " >&6; }
7204
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7205
$as_echo_n "(cached) " >&6
7207
cat >conftest.$ac_ext <<_ACEOF
7210
cat confdefs.h >>conftest.$ac_ext
7211
cat >>conftest.$ac_ext <<_ACEOF
7212
/* end confdefs.h. */
7213
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7214
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7215
#define $ac_func innocuous_$ac_func
7217
/* System header to define __stub macros and hopefully few prototypes,
7218
which can conflict with char $ac_func (); below.
7219
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7220
<limits.h> exists even on freestanding compilers. */
7223
# include <limits.h>
7225
# include <assert.h>
7230
/* Override any GCC internal prototype to avoid an error.
7231
Use char because int might match the return type of a GCC
7232
builtin and then its argument prototype would still apply. */
7237
/* The GNU C library defines this for functions which it implements
7238
to always fail with ENOSYS. Some functions are actually named
7239
something starting with __ and the normal name is an alias. */
7240
#if defined __stub_$ac_func || defined __stub___$ac_func
7252
rm -f conftest.$ac_objext conftest$ac_exeext
7253
if { (ac_try="$ac_link"
7255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256
*) ac_try_echo=$ac_try;;
7258
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7259
$as_echo "$ac_try_echo") >&5
7260
(eval "$ac_link") 2>conftest.er1
7262
grep -v '^ *+' conftest.er1 >conftest.err
7264
cat conftest.err >&5
7265
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266
(exit $ac_status); } && {
7267
test -z "$ac_c_werror_flag" ||
7268
test ! -s conftest.err
7269
} && test -s conftest$ac_exeext && {
7270
test "$cross_compiling" = yes ||
7271
$as_test_x conftest$ac_exeext
7273
eval "$as_ac_var=yes"
7275
$as_echo "$as_me: failed program was:" >&5
7276
sed 's/^/| /' conftest.$ac_ext >&5
7278
eval "$as_ac_var=no"
7281
rm -rf conftest.dSYM
7282
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7283
conftest$ac_exeext conftest.$ac_ext
7285
ac_res=`eval 'as_val=${'$as_ac_var'}
7286
$as_echo "$as_val"'`
7287
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7288
$as_echo "$ac_res" >&6; }
7289
as_val=`eval 'as_val=${'$as_ac_var'}
7290
$as_echo "$as_val"'`
7291
if test "x$as_val" = x""yes; then
7292
cat >>confdefs.h <<_ACEOF
7293
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7300
for ac_func in strcspn
7302
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7303
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7304
$as_echo_n "checking for $ac_func... " >&6; }
7305
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7306
$as_echo_n "(cached) " >&6
7308
cat >conftest.$ac_ext <<_ACEOF
7311
cat confdefs.h >>conftest.$ac_ext
7312
cat >>conftest.$ac_ext <<_ACEOF
7313
/* end confdefs.h. */
7314
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7315
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7316
#define $ac_func innocuous_$ac_func
7318
/* System header to define __stub macros and hopefully few prototypes,
7319
which can conflict with char $ac_func (); below.
7320
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7321
<limits.h> exists even on freestanding compilers. */
7324
# include <limits.h>
7326
# include <assert.h>
7331
/* Override any GCC internal prototype to avoid an error.
7332
Use char because int might match the return type of a GCC
7333
builtin and then its argument prototype would still apply. */
7338
/* The GNU C library defines this for functions which it implements
7339
to always fail with ENOSYS. Some functions are actually named
7340
something starting with __ and the normal name is an alias. */
7341
#if defined __stub_$ac_func || defined __stub___$ac_func
7353
rm -f conftest.$ac_objext conftest$ac_exeext
7354
if { (ac_try="$ac_link"
7356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357
*) ac_try_echo=$ac_try;;
7359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360
$as_echo "$ac_try_echo") >&5
7361
(eval "$ac_link") 2>conftest.er1
7363
grep -v '^ *+' conftest.er1 >conftest.err
7365
cat conftest.err >&5
7366
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367
(exit $ac_status); } && {
7368
test -z "$ac_c_werror_flag" ||
7369
test ! -s conftest.err
7370
} && test -s conftest$ac_exeext && {
7371
test "$cross_compiling" = yes ||
7372
$as_test_x conftest$ac_exeext
7374
eval "$as_ac_var=yes"
7376
$as_echo "$as_me: failed program was:" >&5
7377
sed 's/^/| /' conftest.$ac_ext >&5
7379
eval "$as_ac_var=no"
7382
rm -rf conftest.dSYM
7383
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7384
conftest$ac_exeext conftest.$ac_ext
7386
ac_res=`eval 'as_val=${'$as_ac_var'}
7387
$as_echo "$as_val"'`
7388
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7389
$as_echo "$ac_res" >&6; }
7390
as_val=`eval 'as_val=${'$as_ac_var'}
7391
$as_echo "$as_val"'`
7392
if test "x$as_val" = x""yes; then
7393
cat >>confdefs.h <<_ACEOF
7394
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7401
for ac_func in strrchr
7403
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7404
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7405
$as_echo_n "checking for $ac_func... " >&6; }
7406
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7407
$as_echo_n "(cached) " >&6
7409
cat >conftest.$ac_ext <<_ACEOF
7412
cat confdefs.h >>conftest.$ac_ext
7413
cat >>conftest.$ac_ext <<_ACEOF
7414
/* end confdefs.h. */
7415
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7416
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7417
#define $ac_func innocuous_$ac_func
7419
/* System header to define __stub macros and hopefully few prototypes,
7420
which can conflict with char $ac_func (); below.
7421
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422
<limits.h> exists even on freestanding compilers. */
7425
# include <limits.h>
7427
# include <assert.h>
7432
/* Override any GCC internal prototype to avoid an error.
7433
Use char because int might match the return type of a GCC
7434
builtin and then its argument prototype would still apply. */
7439
/* The GNU C library defines this for functions which it implements
7440
to always fail with ENOSYS. Some functions are actually named
7441
something starting with __ and the normal name is an alias. */
7442
#if defined __stub_$ac_func || defined __stub___$ac_func
7454
rm -f conftest.$ac_objext conftest$ac_exeext
7455
if { (ac_try="$ac_link"
7457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458
*) ac_try_echo=$ac_try;;
7460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461
$as_echo "$ac_try_echo") >&5
7462
(eval "$ac_link") 2>conftest.er1
7464
grep -v '^ *+' conftest.er1 >conftest.err
7466
cat conftest.err >&5
7467
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468
(exit $ac_status); } && {
7469
test -z "$ac_c_werror_flag" ||
7470
test ! -s conftest.err
7471
} && test -s conftest$ac_exeext && {
7472
test "$cross_compiling" = yes ||
7473
$as_test_x conftest$ac_exeext
7475
eval "$as_ac_var=yes"
7477
$as_echo "$as_me: failed program was:" >&5
7478
sed 's/^/| /' conftest.$ac_ext >&5
7480
eval "$as_ac_var=no"
7483
rm -rf conftest.dSYM
7484
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485
conftest$ac_exeext conftest.$ac_ext
7487
ac_res=`eval 'as_val=${'$as_ac_var'}
7488
$as_echo "$as_val"'`
7489
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7490
$as_echo "$ac_res" >&6; }
7491
as_val=`eval 'as_val=${'$as_ac_var'}
7492
$as_echo "$as_val"'`
7493
if test "x$as_val" = x""yes; then
7494
cat >>confdefs.h <<_ACEOF
7495
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7502
for ac_func in strstr
7504
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7505
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7506
$as_echo_n "checking for $ac_func... " >&6; }
7507
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7508
$as_echo_n "(cached) " >&6
7510
cat >conftest.$ac_ext <<_ACEOF
7513
cat confdefs.h >>conftest.$ac_ext
7514
cat >>conftest.$ac_ext <<_ACEOF
7515
/* end confdefs.h. */
7516
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7517
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7518
#define $ac_func innocuous_$ac_func
7520
/* System header to define __stub macros and hopefully few prototypes,
7521
which can conflict with char $ac_func (); below.
7522
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7523
<limits.h> exists even on freestanding compilers. */
7526
# include <limits.h>
7528
# include <assert.h>
7533
/* Override any GCC internal prototype to avoid an error.
7534
Use char because int might match the return type of a GCC
7535
builtin and then its argument prototype would still apply. */
7540
/* The GNU C library defines this for functions which it implements
7541
to always fail with ENOSYS. Some functions are actually named
7542
something starting with __ and the normal name is an alias. */
7543
#if defined __stub_$ac_func || defined __stub___$ac_func
7555
rm -f conftest.$ac_objext conftest$ac_exeext
7556
if { (ac_try="$ac_link"
7558
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559
*) ac_try_echo=$ac_try;;
7561
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7562
$as_echo "$ac_try_echo") >&5
7563
(eval "$ac_link") 2>conftest.er1
7565
grep -v '^ *+' conftest.er1 >conftest.err
7567
cat conftest.err >&5
7568
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569
(exit $ac_status); } && {
7570
test -z "$ac_c_werror_flag" ||
7571
test ! -s conftest.err
7572
} && test -s conftest$ac_exeext && {
7573
test "$cross_compiling" = yes ||
7574
$as_test_x conftest$ac_exeext
7576
eval "$as_ac_var=yes"
7578
$as_echo "$as_me: failed program was:" >&5
7579
sed 's/^/| /' conftest.$ac_ext >&5
7581
eval "$as_ac_var=no"
7584
rm -rf conftest.dSYM
7585
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7586
conftest$ac_exeext conftest.$ac_ext
7588
ac_res=`eval 'as_val=${'$as_ac_var'}
7589
$as_echo "$as_val"'`
7590
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7591
$as_echo "$ac_res" >&6; }
7592
as_val=`eval 'as_val=${'$as_ac_var'}
7593
$as_echo "$as_val"'`
7594
if test "x$as_val" = x""yes; then
7595
cat >>confdefs.h <<_ACEOF
7596
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7603
for ac_func in strtol
7605
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7606
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7607
$as_echo_n "checking for $ac_func... " >&6; }
7608
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7609
$as_echo_n "(cached) " >&6
7611
cat >conftest.$ac_ext <<_ACEOF
7614
cat confdefs.h >>conftest.$ac_ext
7615
cat >>conftest.$ac_ext <<_ACEOF
7616
/* end confdefs.h. */
7617
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7618
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7619
#define $ac_func innocuous_$ac_func
7621
/* System header to define __stub macros and hopefully few prototypes,
7622
which can conflict with char $ac_func (); below.
7623
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7624
<limits.h> exists even on freestanding compilers. */
7627
# include <limits.h>
7629
# include <assert.h>
7634
/* Override any GCC internal prototype to avoid an error.
7635
Use char because int might match the return type of a GCC
7636
builtin and then its argument prototype would still apply. */
7641
/* The GNU C library defines this for functions which it implements
7642
to always fail with ENOSYS. Some functions are actually named
7643
something starting with __ and the normal name is an alias. */
7644
#if defined __stub_$ac_func || defined __stub___$ac_func
7656
rm -f conftest.$ac_objext conftest$ac_exeext
7657
if { (ac_try="$ac_link"
7659
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660
*) ac_try_echo=$ac_try;;
7662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7663
$as_echo "$ac_try_echo") >&5
7664
(eval "$ac_link") 2>conftest.er1
7666
grep -v '^ *+' conftest.er1 >conftest.err
7668
cat conftest.err >&5
7669
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670
(exit $ac_status); } && {
7671
test -z "$ac_c_werror_flag" ||
7672
test ! -s conftest.err
7673
} && test -s conftest$ac_exeext && {
7674
test "$cross_compiling" = yes ||
7675
$as_test_x conftest$ac_exeext
7677
eval "$as_ac_var=yes"
7679
$as_echo "$as_me: failed program was:" >&5
7680
sed 's/^/| /' conftest.$ac_ext >&5
7682
eval "$as_ac_var=no"
7685
rm -rf conftest.dSYM
7686
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7687
conftest$ac_exeext conftest.$ac_ext
7689
ac_res=`eval 'as_val=${'$as_ac_var'}
7690
$as_echo "$as_val"'`
7691
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7692
$as_echo "$ac_res" >&6; }
7693
as_val=`eval 'as_val=${'$as_ac_var'}
7694
$as_echo "$as_val"'`
7695
if test "x$as_val" = x""yes; then
7696
cat >>confdefs.h <<_ACEOF
7697
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7704
for ac_func in strtoull
7706
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7707
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7708
$as_echo_n "checking for $ac_func... " >&6; }
7709
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7710
$as_echo_n "(cached) " >&6
7712
cat >conftest.$ac_ext <<_ACEOF
7715
cat confdefs.h >>conftest.$ac_ext
7716
cat >>conftest.$ac_ext <<_ACEOF
7717
/* end confdefs.h. */
7718
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7719
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7720
#define $ac_func innocuous_$ac_func
7722
/* System header to define __stub macros and hopefully few prototypes,
7723
which can conflict with char $ac_func (); below.
7724
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7725
<limits.h> exists even on freestanding compilers. */
7728
# include <limits.h>
7730
# include <assert.h>
7735
/* Override any GCC internal prototype to avoid an error.
7736
Use char because int might match the return type of a GCC
7737
builtin and then its argument prototype would still apply. */
7742
/* The GNU C library defines this for functions which it implements
7743
to always fail with ENOSYS. Some functions are actually named
7744
something starting with __ and the normal name is an alias. */
7745
#if defined __stub_$ac_func || defined __stub___$ac_func
7757
rm -f conftest.$ac_objext conftest$ac_exeext
7758
if { (ac_try="$ac_link"
7760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761
*) ac_try_echo=$ac_try;;
7763
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7764
$as_echo "$ac_try_echo") >&5
7765
(eval "$ac_link") 2>conftest.er1
7767
grep -v '^ *+' conftest.er1 >conftest.err
7769
cat conftest.err >&5
7770
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771
(exit $ac_status); } && {
7772
test -z "$ac_c_werror_flag" ||
7773
test ! -s conftest.err
7774
} && test -s conftest$ac_exeext && {
7775
test "$cross_compiling" = yes ||
7776
$as_test_x conftest$ac_exeext
7778
eval "$as_ac_var=yes"
7780
$as_echo "$as_me: failed program was:" >&5
7781
sed 's/^/| /' conftest.$ac_ext >&5
7783
eval "$as_ac_var=no"
7786
rm -rf conftest.dSYM
7787
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7788
conftest$ac_exeext conftest.$ac_ext
7790
ac_res=`eval 'as_val=${'$as_ac_var'}
7791
$as_echo "$as_val"'`
7792
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7793
$as_echo "$ac_res" >&6; }
7794
as_val=`eval 'as_val=${'$as_ac_var'}
7795
$as_echo "$as_val"'`
7796
if test "x$as_val" = x""yes; then
7797
cat >>confdefs.h <<_ACEOF
7798
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7805
for ac_header in fcntl.h
7807
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7808
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7809
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7810
$as_echo_n "checking for $ac_header... " >&6; }
7811
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7812
$as_echo_n "(cached) " >&6
7814
ac_res=`eval 'as_val=${'$as_ac_Header'}
7815
$as_echo "$as_val"'`
7816
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7817
$as_echo "$ac_res" >&6; }
7819
# Is the header compilable?
7820
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7821
$as_echo_n "checking $ac_header usability... " >&6; }
7822
cat >conftest.$ac_ext <<_ACEOF
7825
cat confdefs.h >>conftest.$ac_ext
7826
cat >>conftest.$ac_ext <<_ACEOF
7827
/* end confdefs.h. */
7828
$ac_includes_default
7829
#include <$ac_header>
7831
rm -f conftest.$ac_objext
7832
if { (ac_try="$ac_compile"
7834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835
*) ac_try_echo=$ac_try;;
7837
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7838
$as_echo "$ac_try_echo") >&5
7839
(eval "$ac_compile") 2>conftest.er1
7841
grep -v '^ *+' conftest.er1 >conftest.err
7843
cat conftest.err >&5
7844
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845
(exit $ac_status); } && {
7846
test -z "$ac_c_werror_flag" ||
7847
test ! -s conftest.err
7848
} && test -s conftest.$ac_objext; then
7849
ac_header_compiler=yes
7851
$as_echo "$as_me: failed program was:" >&5
7852
sed 's/^/| /' conftest.$ac_ext >&5
7854
ac_header_compiler=no
7857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7859
$as_echo "$ac_header_compiler" >&6; }
7861
# Is the header present?
7862
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7863
$as_echo_n "checking $ac_header presence... " >&6; }
7864
cat >conftest.$ac_ext <<_ACEOF
7867
cat confdefs.h >>conftest.$ac_ext
7868
cat >>conftest.$ac_ext <<_ACEOF
7869
/* end confdefs.h. */
7870
#include <$ac_header>
7872
if { (ac_try="$ac_cpp conftest.$ac_ext"
7874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875
*) ac_try_echo=$ac_try;;
7877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7878
$as_echo "$ac_try_echo") >&5
7879
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7881
grep -v '^ *+' conftest.er1 >conftest.err
7883
cat conftest.err >&5
7884
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885
(exit $ac_status); } >/dev/null && {
7886
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7887
test ! -s conftest.err
7889
ac_header_preproc=yes
7891
$as_echo "$as_me: failed program was:" >&5
7892
sed 's/^/| /' conftest.$ac_ext >&5
7894
ac_header_preproc=no
7897
rm -f conftest.err conftest.$ac_ext
7898
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7899
$as_echo "$ac_header_preproc" >&6; }
7901
# So? What about this header?
7902
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7904
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7905
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7906
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7907
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7908
ac_header_preproc=yes
7911
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7912
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7913
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7914
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7915
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7916
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7917
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7918
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7919
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7920
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7921
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7922
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7924
## ---------------------------------------------------------------------- ##
7925
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GtkHtml ##
7926
## ---------------------------------------------------------------------- ##
7928
) | sed "s/^/$as_me: WARNING: /" >&2
7931
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7932
$as_echo_n "checking for $ac_header... " >&6; }
7933
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7934
$as_echo_n "(cached) " >&6
7936
eval "$as_ac_Header=\$ac_header_preproc"
7938
ac_res=`eval 'as_val=${'$as_ac_Header'}
7939
$as_echo "$as_val"'`
7940
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7941
$as_echo "$ac_res" >&6; }
7944
as_val=`eval 'as_val=${'$as_ac_Header'}
7945
$as_echo "$as_val"'`
7946
if test "x$as_val" = x""yes; then
7947
cat >>confdefs.h <<_ACEOF
7948
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7956
for ac_header in libintl.h
7958
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7959
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7960
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7961
$as_echo_n "checking for $ac_header... " >&6; }
7962
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7963
$as_echo_n "(cached) " >&6
7965
ac_res=`eval 'as_val=${'$as_ac_Header'}
7966
$as_echo "$as_val"'`
7967
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7968
$as_echo "$ac_res" >&6; }
7970
# Is the header compilable?
7971
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7972
$as_echo_n "checking $ac_header usability... " >&6; }
7973
cat >conftest.$ac_ext <<_ACEOF
7976
cat confdefs.h >>conftest.$ac_ext
7977
cat >>conftest.$ac_ext <<_ACEOF
7978
/* end confdefs.h. */
7979
$ac_includes_default
7980
#include <$ac_header>
7982
rm -f conftest.$ac_objext
7983
if { (ac_try="$ac_compile"
7985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986
*) ac_try_echo=$ac_try;;
7988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7989
$as_echo "$ac_try_echo") >&5
7990
(eval "$ac_compile") 2>conftest.er1
7992
grep -v '^ *+' conftest.er1 >conftest.err
7994
cat conftest.err >&5
7995
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996
(exit $ac_status); } && {
7997
test -z "$ac_c_werror_flag" ||
7998
test ! -s conftest.err
7999
} && test -s conftest.$ac_objext; then
8000
ac_header_compiler=yes
8002
$as_echo "$as_me: failed program was:" >&5
8003
sed 's/^/| /' conftest.$ac_ext >&5
8005
ac_header_compiler=no
8008
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010
$as_echo "$ac_header_compiler" >&6; }
8012
# Is the header present?
8013
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014
$as_echo_n "checking $ac_header presence... " >&6; }
8015
cat >conftest.$ac_ext <<_ACEOF
8018
cat confdefs.h >>conftest.$ac_ext
8019
cat >>conftest.$ac_ext <<_ACEOF
8020
/* end confdefs.h. */
8021
#include <$ac_header>
8023
if { (ac_try="$ac_cpp conftest.$ac_ext"
8025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026
*) ac_try_echo=$ac_try;;
8028
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8029
$as_echo "$ac_try_echo") >&5
8030
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8032
grep -v '^ *+' conftest.er1 >conftest.err
8034
cat conftest.err >&5
8035
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036
(exit $ac_status); } >/dev/null && {
8037
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8038
test ! -s conftest.err
8040
ac_header_preproc=yes
8042
$as_echo "$as_me: failed program was:" >&5
8043
sed 's/^/| /' conftest.$ac_ext >&5
8045
ac_header_preproc=no
8048
rm -f conftest.err conftest.$ac_ext
8049
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8050
$as_echo "$ac_header_preproc" >&6; }
8052
# So? What about this header?
8053
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8055
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8056
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8057
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8058
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8059
ac_header_preproc=yes
8062
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8063
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8064
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8065
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8066
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8067
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8068
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8069
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8070
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8071
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8072
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8073
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8075
## ---------------------------------------------------------------------- ##
8076
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GtkHtml ##
8077
## ---------------------------------------------------------------------- ##
8079
) | sed "s/^/$as_me: WARNING: /" >&2
8082
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8083
$as_echo_n "checking for $ac_header... " >&6; }
8084
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8085
$as_echo_n "(cached) " >&6
8087
eval "$as_ac_Header=\$ac_header_preproc"
8089
ac_res=`eval 'as_val=${'$as_ac_Header'}
8090
$as_echo "$as_val"'`
8091
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8092
$as_echo "$ac_res" >&6; }
8095
as_val=`eval 'as_val=${'$as_ac_Header'}
8096
$as_echo "$as_val"'`
8097
if test "x$as_val" = x""yes; then
8098
cat >>confdefs.h <<_ACEOF
8099
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8107
{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
8108
$as_echo_n "checking for library containing strerror... " >&6; }
8109
if test "${ac_cv_search_strerror+set}" = set; then
8110
$as_echo_n "(cached) " >&6
8112
ac_func_search_save_LIBS=$LIBS
8113
cat >conftest.$ac_ext <<_ACEOF
8116
cat confdefs.h >>conftest.$ac_ext
8117
cat >>conftest.$ac_ext <<_ACEOF
8118
/* end confdefs.h. */
8120
/* Override any GCC internal prototype to avoid an error.
8121
Use char because int might match the return type of a GCC
8122
builtin and then its argument prototype would still apply. */
8135
for ac_lib in '' cposix; do
8136
if test -z "$ac_lib"; then
8137
ac_res="none required"
8140
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8142
rm -f conftest.$ac_objext conftest$ac_exeext
8143
if { (ac_try="$ac_link"
8145
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146
*) ac_try_echo=$ac_try;;
8148
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8149
$as_echo "$ac_try_echo") >&5
8150
(eval "$ac_link") 2>conftest.er1
8152
grep -v '^ *+' conftest.er1 >conftest.err
8154
cat conftest.err >&5
8155
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156
(exit $ac_status); } && {
8157
test -z "$ac_c_werror_flag" ||
8158
test ! -s conftest.err
8159
} && test -s conftest$ac_exeext && {
8160
test "$cross_compiling" = yes ||
8161
$as_test_x conftest$ac_exeext
8163
ac_cv_search_strerror=$ac_res
8165
$as_echo "$as_me: failed program was:" >&5
8166
sed 's/^/| /' conftest.$ac_ext >&5
8171
rm -rf conftest.dSYM
8172
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8174
if test "${ac_cv_search_strerror+set}" = set; then
8178
if test "${ac_cv_search_strerror+set}" = set; then
8181
ac_cv_search_strerror=no
8184
LIBS=$ac_func_search_save_LIBS
8186
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
8187
$as_echo "$ac_cv_search_strerror" >&6; }
8188
ac_res=$ac_cv_search_strerror
8189
if test "$ac_res" != no; then
8190
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8195
ac_cpp='$CPP $CPPFLAGS'
8196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
if test -n "$ac_tool_prefix"; then
8200
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8201
set dummy ${ac_tool_prefix}gcc; ac_word=$2
8202
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8203
$as_echo_n "checking for $ac_word... " >&6; }
8204
if test "${ac_cv_prog_CC+set}" = set; then
8205
$as_echo_n "(cached) " >&6
8207
if test -n "$CC"; then
8208
ac_cv_prog_CC="$CC" # Let the user override the test.
8210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214
test -z "$as_dir" && as_dir=.
8215
for ac_exec_ext in '' $ac_executable_extensions; do
8216
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217
ac_cv_prog_CC="${ac_tool_prefix}gcc"
8218
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228
if test -n "$CC"; then
8229
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
8230
$as_echo "$CC" >&6; }
8232
{ $as_echo "$as_me:$LINENO: result: no" >&5
8233
$as_echo "no" >&6; }
8238
if test -z "$ac_cv_prog_CC"; then
8240
# Extract the first word of "gcc", so it can be a program name with args.
8241
set dummy gcc; ac_word=$2
8242
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8243
$as_echo_n "checking for $ac_word... " >&6; }
8244
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8245
$as_echo_n "(cached) " >&6
8247
if test -n "$ac_ct_CC"; then
8248
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254
test -z "$as_dir" && as_dir=.
8255
for ac_exec_ext in '' $ac_executable_extensions; do
8256
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257
ac_cv_prog_ac_ct_CC="gcc"
8258
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267
ac_ct_CC=$ac_cv_prog_ac_ct_CC
8268
if test -n "$ac_ct_CC"; then
8269
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8270
$as_echo "$ac_ct_CC" >&6; }
8272
{ $as_echo "$as_me:$LINENO: result: no" >&5
8273
$as_echo "no" >&6; }
8276
if test "x$ac_ct_CC" = x; then
8279
case $cross_compiling:$ac_tool_warned in
8281
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8282
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283
ac_tool_warned=yes ;;
8291
if test -z "$CC"; then
8292
if test -n "$ac_tool_prefix"; then
8293
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8294
set dummy ${ac_tool_prefix}cc; ac_word=$2
8295
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8296
$as_echo_n "checking for $ac_word... " >&6; }
8297
if test "${ac_cv_prog_CC+set}" = set; then
8298
$as_echo_n "(cached) " >&6
8300
if test -n "$CC"; then
8301
ac_cv_prog_CC="$CC" # Let the user override the test.
8303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307
test -z "$as_dir" && as_dir=.
8308
for ac_exec_ext in '' $ac_executable_extensions; do
8309
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310
ac_cv_prog_CC="${ac_tool_prefix}cc"
8311
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321
if test -n "$CC"; then
8322
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
8323
$as_echo "$CC" >&6; }
8325
{ $as_echo "$as_me:$LINENO: result: no" >&5
8326
$as_echo "no" >&6; }
8332
if test -z "$CC"; then
8333
# Extract the first word of "cc", so it can be a program name with args.
8334
set dummy cc; ac_word=$2
8335
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8336
$as_echo_n "checking for $ac_word... " >&6; }
8337
if test "${ac_cv_prog_CC+set}" = set; then
8338
$as_echo_n "(cached) " >&6
8340
if test -n "$CC"; then
8341
ac_cv_prog_CC="$CC" # Let the user override the test.
8344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348
test -z "$as_dir" && as_dir=.
8349
for ac_exec_ext in '' $ac_executable_extensions; do
8350
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8352
ac_prog_rejected=yes
8356
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363
if test $ac_prog_rejected = yes; then
8364
# We found a bogon in the path, so make sure we never use it.
8365
set dummy $ac_cv_prog_CC
8367
if test $# != 0; then
8368
# We chose a different compiler from the bogus one.
8369
# However, it has the same basename, so the bogon will be chosen
8370
# first if we set CC to just the basename; use the full file name.
8372
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8378
if test -n "$CC"; then
8379
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
8380
$as_echo "$CC" >&6; }
8382
{ $as_echo "$as_me:$LINENO: result: no" >&5
8383
$as_echo "no" >&6; }
8388
if test -z "$CC"; then
8389
if test -n "$ac_tool_prefix"; then
8390
for ac_prog in cl.exe
8392
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8393
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8394
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8395
$as_echo_n "checking for $ac_word... " >&6; }
8396
if test "${ac_cv_prog_CC+set}" = set; then
8397
$as_echo_n "(cached) " >&6
8399
if test -n "$CC"; then
8400
ac_cv_prog_CC="$CC" # Let the user override the test.
8402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406
test -z "$as_dir" && as_dir=.
8407
for ac_exec_ext in '' $ac_executable_extensions; do
8408
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8410
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420
if test -n "$CC"; then
8421
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
8422
$as_echo "$CC" >&6; }
8424
{ $as_echo "$as_me:$LINENO: result: no" >&5
8425
$as_echo "no" >&6; }
8429
test -n "$CC" && break
8432
if test -z "$CC"; then
8434
for ac_prog in cl.exe
8436
# Extract the first word of "$ac_prog", so it can be a program name with args.
8437
set dummy $ac_prog; ac_word=$2
8438
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8439
$as_echo_n "checking for $ac_word... " >&6; }
8440
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8441
$as_echo_n "(cached) " >&6
8443
if test -n "$ac_ct_CC"; then
8444
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450
test -z "$as_dir" && as_dir=.
8451
for ac_exec_ext in '' $ac_executable_extensions; do
8452
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8453
ac_cv_prog_ac_ct_CC="$ac_prog"
8454
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8463
ac_ct_CC=$ac_cv_prog_ac_ct_CC
8464
if test -n "$ac_ct_CC"; then
8465
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8466
$as_echo "$ac_ct_CC" >&6; }
8468
{ $as_echo "$as_me:$LINENO: result: no" >&5
8469
$as_echo "no" >&6; }
8473
test -n "$ac_ct_CC" && break
8476
if test "x$ac_ct_CC" = x; then
8479
case $cross_compiling:$ac_tool_warned in
8481
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8482
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8483
ac_tool_warned=yes ;;
8492
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8493
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8494
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
8495
See \`config.log' for more details." >&5
8496
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
8497
See \`config.log' for more details." >&2;}
8498
{ (exit 1); exit 1; }; }; }
8500
# Provide some information about the compiler.
8501
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
8504
{ (ac_try="$ac_compiler --version >&5"
8506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507
*) ac_try_echo=$ac_try;;
8509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8510
$as_echo "$ac_try_echo") >&5
8511
(eval "$ac_compiler --version >&5") 2>&5
8513
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514
(exit $ac_status); }
8515
{ (ac_try="$ac_compiler -v >&5"
8517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518
*) ac_try_echo=$ac_try;;
8520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521
$as_echo "$ac_try_echo") >&5
8522
(eval "$ac_compiler -v >&5") 2>&5
8524
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
(exit $ac_status); }
8526
{ (ac_try="$ac_compiler -V >&5"
8528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529
*) ac_try_echo=$ac_try;;
8531
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8532
$as_echo "$ac_try_echo") >&5
8533
(eval "$ac_compiler -V >&5") 2>&5
8535
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536
(exit $ac_status); }
8538
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8539
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8540
if test "${ac_cv_c_compiler_gnu+set}" = set; then
8541
$as_echo_n "(cached) " >&6
8543
cat >conftest.$ac_ext <<_ACEOF
8546
cat confdefs.h >>conftest.$ac_ext
8547
cat >>conftest.$ac_ext <<_ACEOF
8548
/* end confdefs.h. */
8561
rm -f conftest.$ac_objext
8562
if { (ac_try="$ac_compile"
8564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565
*) ac_try_echo=$ac_try;;
8567
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568
$as_echo "$ac_try_echo") >&5
8569
(eval "$ac_compile") 2>conftest.er1
8571
grep -v '^ *+' conftest.er1 >conftest.err
8573
cat conftest.err >&5
8574
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575
(exit $ac_status); } && {
8576
test -z "$ac_c_werror_flag" ||
8577
test ! -s conftest.err
8578
} && test -s conftest.$ac_objext; then
8581
$as_echo "$as_me: failed program was:" >&5
8582
sed 's/^/| /' conftest.$ac_ext >&5
8587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588
ac_cv_c_compiler_gnu=$ac_compiler_gnu
8591
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8592
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
8593
if test $ac_compiler_gnu = yes; then
8598
ac_test_CFLAGS=${CFLAGS+set}
8599
ac_save_CFLAGS=$CFLAGS
8600
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8601
$as_echo_n "checking whether $CC accepts -g... " >&6; }
8602
if test "${ac_cv_prog_cc_g+set}" = set; then
8603
$as_echo_n "(cached) " >&6
8605
ac_save_c_werror_flag=$ac_c_werror_flag
8606
ac_c_werror_flag=yes
8609
cat >conftest.$ac_ext <<_ACEOF
8612
cat confdefs.h >>conftest.$ac_ext
8613
cat >>conftest.$ac_ext <<_ACEOF
8614
/* end confdefs.h. */
8624
rm -f conftest.$ac_objext
8625
if { (ac_try="$ac_compile"
8627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628
*) ac_try_echo=$ac_try;;
8630
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631
$as_echo "$ac_try_echo") >&5
8632
(eval "$ac_compile") 2>conftest.er1
8634
grep -v '^ *+' conftest.er1 >conftest.err
8636
cat conftest.err >&5
8637
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638
(exit $ac_status); } && {
8639
test -z "$ac_c_werror_flag" ||
8640
test ! -s conftest.err
8641
} && test -s conftest.$ac_objext; then
8644
$as_echo "$as_me: failed program was:" >&5
8645
sed 's/^/| /' conftest.$ac_ext >&5
8648
cat >conftest.$ac_ext <<_ACEOF
8651
cat confdefs.h >>conftest.$ac_ext
8652
cat >>conftest.$ac_ext <<_ACEOF
8653
/* end confdefs.h. */
8663
rm -f conftest.$ac_objext
8664
if { (ac_try="$ac_compile"
8666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667
*) ac_try_echo=$ac_try;;
8669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8670
$as_echo "$ac_try_echo") >&5
8671
(eval "$ac_compile") 2>conftest.er1
8673
grep -v '^ *+' conftest.er1 >conftest.err
8675
cat conftest.err >&5
8676
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677
(exit $ac_status); } && {
8678
test -z "$ac_c_werror_flag" ||
8679
test ! -s conftest.err
8680
} && test -s conftest.$ac_objext; then
8683
$as_echo "$as_me: failed program was:" >&5
8684
sed 's/^/| /' conftest.$ac_ext >&5
8686
ac_c_werror_flag=$ac_save_c_werror_flag
8688
cat >conftest.$ac_ext <<_ACEOF
8691
cat confdefs.h >>conftest.$ac_ext
8692
cat >>conftest.$ac_ext <<_ACEOF
8693
/* end confdefs.h. */
8703
rm -f conftest.$ac_objext
8704
if { (ac_try="$ac_compile"
8706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707
*) ac_try_echo=$ac_try;;
8709
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8710
$as_echo "$ac_try_echo") >&5
8711
(eval "$ac_compile") 2>conftest.er1
8713
grep -v '^ *+' conftest.er1 >conftest.err
8715
cat conftest.err >&5
8716
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717
(exit $ac_status); } && {
8718
test -z "$ac_c_werror_flag" ||
8719
test ! -s conftest.err
8720
} && test -s conftest.$ac_objext; then
8723
$as_echo "$as_me: failed program was:" >&5
8724
sed 's/^/| /' conftest.$ac_ext >&5
8729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736
ac_c_werror_flag=$ac_save_c_werror_flag
8738
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8739
$as_echo "$ac_cv_prog_cc_g" >&6; }
8740
if test "$ac_test_CFLAGS" = set; then
8741
CFLAGS=$ac_save_CFLAGS
8742
elif test $ac_cv_prog_cc_g = yes; then
8743
if test "$GCC" = yes; then
8749
if test "$GCC" = yes; then
8755
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
8756
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8757
if test "${ac_cv_prog_cc_c89+set}" = set; then
8758
$as_echo_n "(cached) " >&6
8760
ac_cv_prog_cc_c89=no
8762
cat >conftest.$ac_ext <<_ACEOF
8765
cat confdefs.h >>conftest.$ac_ext
8766
cat >>conftest.$ac_ext <<_ACEOF
8767
/* end confdefs.h. */
8770
#include <sys/types.h>
8771
#include <sys/stat.h>
8772
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8773
struct buf { int x; };
8774
FILE * (*rcsopen) (struct buf *, struct stat *, int);
8775
static char *e (p, i)
8781
static char *f (char * (*g) (char **, int), char **p, ...)
8786
s = g (p, va_arg (v,int));
8791
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8792
function prototypes and stuff, but not '\xHH' hex character constants.
8793
These don't provoke an error unfortunately, instead are silently treated
8794
as 'x'. The following induces an error, until -std is added to get
8795
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8796
array size at least. It's necessary to write '\x00'==0 to get something
8797
that's true only with -std. */
8798
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8800
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8801
inside strings and character constants. */
8803
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8805
int test (int i, double x);
8806
struct s1 {int (*f) (int a);};
8807
struct s2 {int (*f) (double a);};
8808
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8814
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8819
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8820
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8822
CC="$ac_save_CC $ac_arg"
8823
rm -f conftest.$ac_objext
8824
if { (ac_try="$ac_compile"
8826
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827
*) ac_try_echo=$ac_try;;
8829
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8830
$as_echo "$ac_try_echo") >&5
8831
(eval "$ac_compile") 2>conftest.er1
8833
grep -v '^ *+' conftest.er1 >conftest.err
8835
cat conftest.err >&5
8836
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837
(exit $ac_status); } && {
8838
test -z "$ac_c_werror_flag" ||
8839
test ! -s conftest.err
8840
} && test -s conftest.$ac_objext; then
8841
ac_cv_prog_cc_c89=$ac_arg
8843
$as_echo "$as_me: failed program was:" >&5
8844
sed 's/^/| /' conftest.$ac_ext >&5
8849
rm -f core conftest.err conftest.$ac_objext
8850
test "x$ac_cv_prog_cc_c89" != "xno" && break
8852
rm -f conftest.$ac_ext
8857
case "x$ac_cv_prog_cc_c89" in
8859
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
8860
$as_echo "none needed" >&6; } ;;
8862
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
8863
$as_echo "unsupported" >&6; } ;;
8865
CC="$CC $ac_cv_prog_cc_c89"
8866
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
8867
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8872
ac_cpp='$CPP $CPPFLAGS'
8873
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8877
depcc="$CC" am_compiler_list=
8879
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8880
$as_echo_n "checking dependency style of $depcc... " >&6; }
8881
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8882
$as_echo_n "(cached) " >&6
8884
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8885
# We make a subdir and do the tests there. Otherwise we can end up
8886
# making bogus files that we don't know about and never remove. For
8887
# instance it was reported that on HP-UX the gcc test will end up
8888
# making a dummy file named `D' -- because `-MD' means `put the output
8891
# Copy depcomp to subdir because otherwise we won't find it if we're
8892
# using a relative directory.
8893
cp "$am_depcomp" conftest.dir
8895
# We will build objects and dependencies in a subdirectory because
8896
# it helps to detect inapplicable dependency modes. For instance
8897
# both Tru64's cc and ICC support -MD to output dependencies as a
8898
# side effect of compilation, but ICC will put the dependencies in
8899
# the current directory while Tru64 will put them in the object
8903
am_cv_CC_dependencies_compiler_type=none
8904
if test "$am_compiler_list" = ""; then
8905
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8908
case " $depcc " in #(
8909
*\ -arch\ *\ -arch\ *) am__universal=true ;;
8912
for depmode in $am_compiler_list; do
8913
# Setup a source with many dependencies, because some compilers
8914
# like to wrap large dependency lists on column 80 (with \), and
8915
# we should not choose a depcomp mode which is confused by this.
8917
# We need to recreate these files for each test, as the compiler may
8918
# overwrite some of them when testing with obscure command lines.
8919
# This happens at least with the AIX C compiler.
8921
for i in 1 2 3 4 5 6; do
8922
echo '#include "conftst'$i'.h"' >> sub/conftest.c
8923
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8924
# Solaris 8's {/usr,}/bin/sh.
8925
touch sub/conftst$i.h
8927
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8929
# We check with `-c' and `-o' for the sake of the "dashmstdout"
8930
# mode. It turns out that the SunPro C++ compiler does not properly
8931
# handle `-M -o', and we need to detect this. Also, some Intel
8932
# versions had trouble with output in subdirs
8933
am__obj=sub/conftest.${OBJEXT-o}
8934
am__minus_obj="-o $am__obj"
8937
# This depmode causes a compiler race in universal mode.
8938
test "$am__universal" = false || continue
8941
# after this tag, mechanisms are not by side-effect, so they'll
8942
# only be used when explicitly requested
8943
if test "x$enable_dependency_tracking" = xyes; then
8949
msvisualcpp | msvcmsys)
8950
# This compiler won't grok `-c -o', but also, the minuso test has
8951
# not run yet. These depmodes are late enough in the game, and
8952
# so weak that their functioning should not be impacted.
8953
am__obj=conftest.${OBJEXT-o}
8958
if depmode=$depmode \
8959
source=sub/conftest.c object=$am__obj \
8960
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8961
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8962
>/dev/null 2>conftest.err &&
8963
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8964
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8965
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8966
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8967
# icc doesn't choke on unknown options, it will just issue warnings
8968
# or remarks (even with -Werror). So we grep stderr for any message
8969
# that says an option was ignored or not supported.
8970
# When given -MP, icc 7.0 and 7.1 complain thusly:
8971
# icc: Command line warning: ignoring option '-M'; no argument required
8972
# The diagnosis changed in icc 8.0:
8973
# icc: Command line remark: option '-MP' not supported
8974
if (grep 'ignoring option' conftest.err ||
8975
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8976
am_cv_CC_dependencies_compiler_type=$depmode
8985
am_cv_CC_dependencies_compiler_type=none
8989
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8990
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8991
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8994
test "x$enable_dependency_tracking" != xno \
8995
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8997
am__fastdepCC_FALSE='#'
8999
am__fastdepCC_TRUE='#'
9000
am__fastdepCC_FALSE=
9004
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9005
$as_echo_n "checking for ANSI C header files... " >&6; }
9006
if test "${ac_cv_header_stdc+set}" = set; then
9007
$as_echo_n "(cached) " >&6
9009
cat >conftest.$ac_ext <<_ACEOF
9012
cat confdefs.h >>conftest.$ac_ext
9013
cat >>conftest.$ac_ext <<_ACEOF
9014
/* end confdefs.h. */
9028
rm -f conftest.$ac_objext
9029
if { (ac_try="$ac_compile"
9031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032
*) ac_try_echo=$ac_try;;
9034
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035
$as_echo "$ac_try_echo") >&5
9036
(eval "$ac_compile") 2>conftest.er1
9038
grep -v '^ *+' conftest.er1 >conftest.err
9040
cat conftest.err >&5
9041
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042
(exit $ac_status); } && {
9043
test -z "$ac_c_werror_flag" ||
9044
test ! -s conftest.err
9045
} && test -s conftest.$ac_objext; then
9046
ac_cv_header_stdc=yes
9048
$as_echo "$as_me: failed program was:" >&5
9049
sed 's/^/| /' conftest.$ac_ext >&5
9051
ac_cv_header_stdc=no
9054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056
if test $ac_cv_header_stdc = yes; then
9057
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9058
cat >conftest.$ac_ext <<_ACEOF
9061
cat confdefs.h >>conftest.$ac_ext
9062
cat >>conftest.$ac_ext <<_ACEOF
9063
/* end confdefs.h. */
9067
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9068
$EGREP "memchr" >/dev/null 2>&1; then
9071
ac_cv_header_stdc=no
9077
if test $ac_cv_header_stdc = yes; then
9078
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9079
cat >conftest.$ac_ext <<_ACEOF
9082
cat confdefs.h >>conftest.$ac_ext
9083
cat >>conftest.$ac_ext <<_ACEOF
9084
/* end confdefs.h. */
9088
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9089
$EGREP "free" >/dev/null 2>&1; then
9092
ac_cv_header_stdc=no
9098
if test $ac_cv_header_stdc = yes; then
9099
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9100
if test "$cross_compiling" = yes; then
9103
cat >conftest.$ac_ext <<_ACEOF
9106
cat confdefs.h >>conftest.$ac_ext
9107
cat >>conftest.$ac_ext <<_ACEOF
9108
/* end confdefs.h. */
9111
#if ((' ' & 0x0FF) == 0x020)
9112
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9113
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9115
# define ISLOWER(c) \
9116
(('a' <= (c) && (c) <= 'i') \
9117
|| ('j' <= (c) && (c) <= 'r') \
9118
|| ('s' <= (c) && (c) <= 'z'))
9119
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9122
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9127
for (i = 0; i < 256; i++)
9128
if (XOR (islower (i), ISLOWER (i))
9129
|| toupper (i) != TOUPPER (i))
9134
rm -f conftest$ac_exeext
9135
if { (ac_try="$ac_link"
9137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138
*) ac_try_echo=$ac_try;;
9140
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9141
$as_echo "$ac_try_echo") >&5
9142
(eval "$ac_link") 2>&5
9144
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9146
{ (case "(($ac_try" in
9147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148
*) ac_try_echo=$ac_try;;
9150
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9151
$as_echo "$ac_try_echo") >&5
9152
(eval "$ac_try") 2>&5
9154
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155
(exit $ac_status); }; }; then
9158
$as_echo "$as_me: program exited with status $ac_status" >&5
9159
$as_echo "$as_me: failed program was:" >&5
9160
sed 's/^/| /' conftest.$ac_ext >&5
9163
ac_cv_header_stdc=no
9165
rm -rf conftest.dSYM
9166
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9172
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9173
$as_echo "$ac_cv_header_stdc" >&6; }
9174
if test $ac_cv_header_stdc = yes; then
9176
cat >>confdefs.h <<\_ACEOF
9177
#define STDC_HEADERS 1
9286
9182
# Make sure we can run config.sub.
9287
9183
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
20186
for ac_header in locale.h
20188
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20189
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20190
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20191
$as_echo_n "checking for $ac_header... " >&6; }
20192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20193
$as_echo_n "(cached) " >&6
20195
ac_res=`eval 'as_val=${'$as_ac_Header'}
20196
$as_echo "$as_val"'`
20197
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20198
$as_echo "$ac_res" >&6; }
20200
# Is the header compilable?
20201
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20202
$as_echo_n "checking $ac_header usability... " >&6; }
20203
cat >conftest.$ac_ext <<_ACEOF
20206
cat confdefs.h >>conftest.$ac_ext
20207
cat >>conftest.$ac_ext <<_ACEOF
20208
/* end confdefs.h. */
20209
$ac_includes_default
20210
#include <$ac_header>
20212
rm -f conftest.$ac_objext
20213
if { (ac_try="$ac_compile"
20214
case "(($ac_try" in
20215
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216
*) ac_try_echo=$ac_try;;
20218
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20219
$as_echo "$ac_try_echo") >&5
20220
(eval "$ac_compile") 2>conftest.er1
20222
grep -v '^ *+' conftest.er1 >conftest.err
20224
cat conftest.err >&5
20225
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226
(exit $ac_status); } && {
20227
test -z "$ac_c_werror_flag" ||
20228
test ! -s conftest.err
20229
} && test -s conftest.$ac_objext; then
20230
ac_header_compiler=yes
20232
$as_echo "$as_me: failed program was:" >&5
20233
sed 's/^/| /' conftest.$ac_ext >&5
20235
ac_header_compiler=no
20238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20239
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20240
$as_echo "$ac_header_compiler" >&6; }
20242
# Is the header present?
20243
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20244
$as_echo_n "checking $ac_header presence... " >&6; }
20245
cat >conftest.$ac_ext <<_ACEOF
20248
cat confdefs.h >>conftest.$ac_ext
20249
cat >>conftest.$ac_ext <<_ACEOF
20250
/* end confdefs.h. */
20251
#include <$ac_header>
20253
if { (ac_try="$ac_cpp conftest.$ac_ext"
20254
case "(($ac_try" in
20255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256
*) ac_try_echo=$ac_try;;
20258
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20259
$as_echo "$ac_try_echo") >&5
20260
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20262
grep -v '^ *+' conftest.er1 >conftest.err
20264
cat conftest.err >&5
20265
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266
(exit $ac_status); } >/dev/null && {
20267
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20268
test ! -s conftest.err
20270
ac_header_preproc=yes
20272
$as_echo "$as_me: failed program was:" >&5
20273
sed 's/^/| /' conftest.$ac_ext >&5
20275
ac_header_preproc=no
20278
rm -f conftest.err conftest.$ac_ext
20279
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20280
$as_echo "$ac_header_preproc" >&6; }
20282
# So? What about this header?
20283
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20285
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20286
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20287
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20288
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20289
ac_header_preproc=yes
20292
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20293
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20294
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20295
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20296
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20297
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20298
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20299
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20300
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20301
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20302
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20303
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20305
## ---------------------------------------------------------------------- ##
20306
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GtkHtml ##
20307
## ---------------------------------------------------------------------- ##
20309
) | sed "s/^/$as_me: WARNING: /" >&2
20312
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20313
$as_echo_n "checking for $ac_header... " >&6; }
20314
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20315
$as_echo_n "(cached) " >&6
20317
eval "$as_ac_Header=\$ac_header_preproc"
20319
ac_res=`eval 'as_val=${'$as_ac_Header'}
20320
$as_echo "$as_val"'`
20321
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20322
$as_echo "$ac_res" >&6; }
20325
as_val=`eval 'as_val=${'$as_ac_Header'}
20326
$as_echo "$as_val"'`
20327
if test "x$as_val" = x""yes; then
20328
cat >>confdefs.h <<_ACEOF
20329
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20336
if test $ac_cv_header_locale_h = yes; then
20337
{ $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20338
$as_echo_n "checking for LC_MESSAGES... " >&6; }
20339
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20340
$as_echo_n "(cached) " >&6
20342
cat >conftest.$ac_ext <<_ACEOF
20345
cat confdefs.h >>conftest.$ac_ext
20346
cat >>conftest.$ac_ext <<_ACEOF
20347
/* end confdefs.h. */
20348
#include <locale.h>
20357
rm -f conftest.$ac_objext conftest$ac_exeext
20358
if { (ac_try="$ac_link"
20359
case "(($ac_try" in
20360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361
*) ac_try_echo=$ac_try;;
20363
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20364
$as_echo "$ac_try_echo") >&5
20365
(eval "$ac_link") 2>conftest.er1
20367
grep -v '^ *+' conftest.er1 >conftest.err
20369
cat conftest.err >&5
20370
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371
(exit $ac_status); } && {
20372
test -z "$ac_c_werror_flag" ||
20373
test ! -s conftest.err
20374
} && test -s conftest$ac_exeext && {
20375
test "$cross_compiling" = yes ||
20376
$as_test_x conftest$ac_exeext
20378
am_cv_val_LC_MESSAGES=yes
20380
$as_echo "$as_me: failed program was:" >&5
20381
sed 's/^/| /' conftest.$ac_ext >&5
20383
am_cv_val_LC_MESSAGES=no
20386
rm -rf conftest.dSYM
20387
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20388
conftest$ac_exeext conftest.$ac_ext
20390
{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20391
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
20392
if test $am_cv_val_LC_MESSAGES = yes; then
20394
cat >>confdefs.h <<\_ACEOF
20395
#define HAVE_LC_MESSAGES 1
20403
gt_cv_have_gettext=no
20409
if test "${ac_cv_header_libintl_h+set}" = set; then
20410
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
20411
$as_echo_n "checking for libintl.h... " >&6; }
20412
if test "${ac_cv_header_libintl_h+set}" = set; then
20413
$as_echo_n "(cached) " >&6
20415
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20416
$as_echo "$ac_cv_header_libintl_h" >&6; }
20418
# Is the header compilable?
20419
{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
20420
$as_echo_n "checking libintl.h usability... " >&6; }
20421
cat >conftest.$ac_ext <<_ACEOF
20424
cat confdefs.h >>conftest.$ac_ext
20425
cat >>conftest.$ac_ext <<_ACEOF
20426
/* end confdefs.h. */
20427
$ac_includes_default
20428
#include <libintl.h>
20430
rm -f conftest.$ac_objext
20431
if { (ac_try="$ac_compile"
20432
case "(($ac_try" in
20433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434
*) ac_try_echo=$ac_try;;
20436
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20437
$as_echo "$ac_try_echo") >&5
20438
(eval "$ac_compile") 2>conftest.er1
20440
grep -v '^ *+' conftest.er1 >conftest.err
20442
cat conftest.err >&5
20443
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444
(exit $ac_status); } && {
20445
test -z "$ac_c_werror_flag" ||
20446
test ! -s conftest.err
20447
} && test -s conftest.$ac_objext; then
20448
ac_header_compiler=yes
20450
$as_echo "$as_me: failed program was:" >&5
20451
sed 's/^/| /' conftest.$ac_ext >&5
20453
ac_header_compiler=no
20456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20458
$as_echo "$ac_header_compiler" >&6; }
20460
# Is the header present?
20461
{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
20462
$as_echo_n "checking libintl.h presence... " >&6; }
20463
cat >conftest.$ac_ext <<_ACEOF
20466
cat confdefs.h >>conftest.$ac_ext
20467
cat >>conftest.$ac_ext <<_ACEOF
20468
/* end confdefs.h. */
20469
#include <libintl.h>
20471
if { (ac_try="$ac_cpp conftest.$ac_ext"
20472
case "(($ac_try" in
20473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474
*) ac_try_echo=$ac_try;;
20476
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20477
$as_echo "$ac_try_echo") >&5
20478
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20480
grep -v '^ *+' conftest.er1 >conftest.err
20482
cat conftest.err >&5
20483
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484
(exit $ac_status); } >/dev/null && {
20485
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20486
test ! -s conftest.err
20488
ac_header_preproc=yes
20490
$as_echo "$as_me: failed program was:" >&5
20491
sed 's/^/| /' conftest.$ac_ext >&5
20493
ac_header_preproc=no
20496
rm -f conftest.err conftest.$ac_ext
20497
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20498
$as_echo "$ac_header_preproc" >&6; }
20500
# So? What about this header?
20501
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20503
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20504
$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20505
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20506
$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20507
ac_header_preproc=yes
20510
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20511
$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20512
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
20513
$as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
20514
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20515
$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20516
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
20517
$as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20518
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20519
$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20520
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20521
$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20523
## ---------------------------------------------------------------------- ##
20524
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GtkHtml ##
20525
## ---------------------------------------------------------------------- ##
20527
) | sed "s/^/$as_me: WARNING: /" >&2
20530
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
20531
$as_echo_n "checking for libintl.h... " >&6; }
20532
if test "${ac_cv_header_libintl_h+set}" = set; then
20533
$as_echo_n "(cached) " >&6
20535
ac_cv_header_libintl_h=$ac_header_preproc
20537
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20538
$as_echo "$ac_cv_header_libintl_h" >&6; }
20541
if test "x$ac_cv_header_libintl_h" = x""yes; then
20542
gt_cv_func_dgettext_libintl="no"
20543
libintl_extra_libs=""
20546
# First check in libc
20548
{ $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20549
$as_echo_n "checking for ngettext in libc... " >&6; }
20550
if test "${gt_cv_func_ngettext_libc+set}" = set; then
20551
$as_echo_n "(cached) " >&6
20553
cat >conftest.$ac_ext <<_ACEOF
20556
cat confdefs.h >>conftest.$ac_ext
20557
cat >>conftest.$ac_ext <<_ACEOF
20558
/* end confdefs.h. */
20560
#include <libintl.h>
20565
return !ngettext ("","", 1)
20570
rm -f conftest.$ac_objext conftest$ac_exeext
20571
if { (ac_try="$ac_link"
20572
case "(($ac_try" in
20573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574
*) ac_try_echo=$ac_try;;
20576
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20577
$as_echo "$ac_try_echo") >&5
20578
(eval "$ac_link") 2>conftest.er1
20580
grep -v '^ *+' conftest.er1 >conftest.err
20582
cat conftest.err >&5
20583
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584
(exit $ac_status); } && {
20585
test -z "$ac_c_werror_flag" ||
20586
test ! -s conftest.err
20587
} && test -s conftest$ac_exeext && {
20588
test "$cross_compiling" = yes ||
20589
$as_test_x conftest$ac_exeext
20591
gt_cv_func_ngettext_libc=yes
20593
$as_echo "$as_me: failed program was:" >&5
20594
sed 's/^/| /' conftest.$ac_ext >&5
20596
gt_cv_func_ngettext_libc=no
20599
rm -rf conftest.dSYM
20600
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20601
conftest$ac_exeext conftest.$ac_ext
20604
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20605
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
20607
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20608
{ $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20609
$as_echo_n "checking for dgettext in libc... " >&6; }
20610
if test "${gt_cv_func_dgettext_libc+set}" = set; then
20611
$as_echo_n "(cached) " >&6
20613
cat >conftest.$ac_ext <<_ACEOF
20616
cat confdefs.h >>conftest.$ac_ext
20617
cat >>conftest.$ac_ext <<_ACEOF
20618
/* end confdefs.h. */
20620
#include <libintl.h>
20625
return !dgettext ("","")
20630
rm -f conftest.$ac_objext conftest$ac_exeext
20631
if { (ac_try="$ac_link"
20632
case "(($ac_try" in
20633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634
*) ac_try_echo=$ac_try;;
20636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20637
$as_echo "$ac_try_echo") >&5
20638
(eval "$ac_link") 2>conftest.er1
20640
grep -v '^ *+' conftest.er1 >conftest.err
20642
cat conftest.err >&5
20643
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644
(exit $ac_status); } && {
20645
test -z "$ac_c_werror_flag" ||
20646
test ! -s conftest.err
20647
} && test -s conftest$ac_exeext && {
20648
test "$cross_compiling" = yes ||
20649
$as_test_x conftest$ac_exeext
20651
gt_cv_func_dgettext_libc=yes
20653
$as_echo "$as_me: failed program was:" >&5
20654
sed 's/^/| /' conftest.$ac_ext >&5
20656
gt_cv_func_dgettext_libc=no
20659
rm -rf conftest.dSYM
20660
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20661
conftest$ac_exeext conftest.$ac_ext
20664
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20665
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
20668
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20670
for ac_func in bind_textdomain_codeset
20672
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20673
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20674
$as_echo_n "checking for $ac_func... " >&6; }
20675
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20676
$as_echo_n "(cached) " >&6
20678
cat >conftest.$ac_ext <<_ACEOF
20681
cat confdefs.h >>conftest.$ac_ext
20682
cat >>conftest.$ac_ext <<_ACEOF
20683
/* end confdefs.h. */
20684
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20685
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20686
#define $ac_func innocuous_$ac_func
20688
/* System header to define __stub macros and hopefully few prototypes,
20689
which can conflict with char $ac_func (); below.
20690
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20691
<limits.h> exists even on freestanding compilers. */
20694
# include <limits.h>
20696
# include <assert.h>
20701
/* Override any GCC internal prototype to avoid an error.
20702
Use char because int might match the return type of a GCC
20703
builtin and then its argument prototype would still apply. */
20708
/* The GNU C library defines this for functions which it implements
20709
to always fail with ENOSYS. Some functions are actually named
20710
something starting with __ and the normal name is an alias. */
20711
#if defined __stub_$ac_func || defined __stub___$ac_func
20718
return $ac_func ();
20723
rm -f conftest.$ac_objext conftest$ac_exeext
20724
if { (ac_try="$ac_link"
20725
case "(($ac_try" in
20726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727
*) ac_try_echo=$ac_try;;
20729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20730
$as_echo "$ac_try_echo") >&5
20731
(eval "$ac_link") 2>conftest.er1
20733
grep -v '^ *+' conftest.er1 >conftest.err
20735
cat conftest.err >&5
20736
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737
(exit $ac_status); } && {
20738
test -z "$ac_c_werror_flag" ||
20739
test ! -s conftest.err
20740
} && test -s conftest$ac_exeext && {
20741
test "$cross_compiling" = yes ||
20742
$as_test_x conftest$ac_exeext
20744
eval "$as_ac_var=yes"
20746
$as_echo "$as_me: failed program was:" >&5
20747
sed 's/^/| /' conftest.$ac_ext >&5
20749
eval "$as_ac_var=no"
20752
rm -rf conftest.dSYM
20753
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20754
conftest$ac_exeext conftest.$ac_ext
20756
ac_res=`eval 'as_val=${'$as_ac_var'}
20757
$as_echo "$as_val"'`
20758
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20759
$as_echo "$ac_res" >&6; }
20760
as_val=`eval 'as_val=${'$as_ac_var'}
20761
$as_echo "$as_val"'`
20762
if test "x$as_val" = x""yes; then
20763
cat >>confdefs.h <<_ACEOF
20764
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20773
# If we don't have everything we want, check in libintl
20775
if test "$gt_cv_func_dgettext_libc" != "yes" \
20776
|| test "$gt_cv_func_ngettext_libc" != "yes" \
20777
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20779
{ $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20780
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
20781
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20782
$as_echo_n "(cached) " >&6
20784
ac_check_lib_save_LIBS=$LIBS
20785
LIBS="-lintl $LIBS"
20786
cat >conftest.$ac_ext <<_ACEOF
20789
cat confdefs.h >>conftest.$ac_ext
20790
cat >>conftest.$ac_ext <<_ACEOF
20791
/* end confdefs.h. */
20793
/* Override any GCC internal prototype to avoid an error.
20794
Use char because int might match the return type of a GCC
20795
builtin and then its argument prototype would still apply. */
20799
char bindtextdomain ();
20803
return bindtextdomain ();
20808
rm -f conftest.$ac_objext conftest$ac_exeext
20809
if { (ac_try="$ac_link"
20810
case "(($ac_try" in
20811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812
*) ac_try_echo=$ac_try;;
20814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20815
$as_echo "$ac_try_echo") >&5
20816
(eval "$ac_link") 2>conftest.er1
20818
grep -v '^ *+' conftest.er1 >conftest.err
20820
cat conftest.err >&5
20821
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822
(exit $ac_status); } && {
20823
test -z "$ac_c_werror_flag" ||
20824
test ! -s conftest.err
20825
} && test -s conftest$ac_exeext && {
20826
test "$cross_compiling" = yes ||
20827
$as_test_x conftest$ac_exeext
20829
ac_cv_lib_intl_bindtextdomain=yes
20831
$as_echo "$as_me: failed program was:" >&5
20832
sed 's/^/| /' conftest.$ac_ext >&5
20834
ac_cv_lib_intl_bindtextdomain=no
20837
rm -rf conftest.dSYM
20838
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20839
conftest$ac_exeext conftest.$ac_ext
20840
LIBS=$ac_check_lib_save_LIBS
20842
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20843
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
20844
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
20845
{ $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20846
$as_echo_n "checking for ngettext in -lintl... " >&6; }
20847
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20848
$as_echo_n "(cached) " >&6
20850
ac_check_lib_save_LIBS=$LIBS
20851
LIBS="-lintl $LIBS"
20852
cat >conftest.$ac_ext <<_ACEOF
20855
cat confdefs.h >>conftest.$ac_ext
20856
cat >>conftest.$ac_ext <<_ACEOF
20857
/* end confdefs.h. */
20859
/* Override any GCC internal prototype to avoid an error.
20860
Use char because int might match the return type of a GCC
20861
builtin and then its argument prototype would still apply. */
20869
return ngettext ();
20874
rm -f conftest.$ac_objext conftest$ac_exeext
20875
if { (ac_try="$ac_link"
20876
case "(($ac_try" in
20877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878
*) ac_try_echo=$ac_try;;
20880
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20881
$as_echo "$ac_try_echo") >&5
20882
(eval "$ac_link") 2>conftest.er1
20884
grep -v '^ *+' conftest.er1 >conftest.err
20886
cat conftest.err >&5
20887
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888
(exit $ac_status); } && {
20889
test -z "$ac_c_werror_flag" ||
20890
test ! -s conftest.err
20891
} && test -s conftest$ac_exeext && {
20892
test "$cross_compiling" = yes ||
20893
$as_test_x conftest$ac_exeext
20895
ac_cv_lib_intl_ngettext=yes
20897
$as_echo "$as_me: failed program was:" >&5
20898
sed 's/^/| /' conftest.$ac_ext >&5
20900
ac_cv_lib_intl_ngettext=no
20903
rm -rf conftest.dSYM
20904
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20905
conftest$ac_exeext conftest.$ac_ext
20906
LIBS=$ac_check_lib_save_LIBS
20908
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20909
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
20910
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
20911
{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20912
$as_echo_n "checking for dgettext in -lintl... " >&6; }
20913
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20914
$as_echo_n "(cached) " >&6
20916
ac_check_lib_save_LIBS=$LIBS
20917
LIBS="-lintl $LIBS"
20918
cat >conftest.$ac_ext <<_ACEOF
20921
cat confdefs.h >>conftest.$ac_ext
20922
cat >>conftest.$ac_ext <<_ACEOF
20923
/* end confdefs.h. */
20925
/* Override any GCC internal prototype to avoid an error.
20926
Use char because int might match the return type of a GCC
20927
builtin and then its argument prototype would still apply. */
20935
return dgettext ();
20940
rm -f conftest.$ac_objext conftest$ac_exeext
20941
if { (ac_try="$ac_link"
20942
case "(($ac_try" in
20943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944
*) ac_try_echo=$ac_try;;
20946
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20947
$as_echo "$ac_try_echo") >&5
20948
(eval "$ac_link") 2>conftest.er1
20950
grep -v '^ *+' conftest.er1 >conftest.err
20952
cat conftest.err >&5
20953
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954
(exit $ac_status); } && {
20955
test -z "$ac_c_werror_flag" ||
20956
test ! -s conftest.err
20957
} && test -s conftest$ac_exeext && {
20958
test "$cross_compiling" = yes ||
20959
$as_test_x conftest$ac_exeext
20961
ac_cv_lib_intl_dgettext=yes
20963
$as_echo "$as_me: failed program was:" >&5
20964
sed 's/^/| /' conftest.$ac_ext >&5
20966
ac_cv_lib_intl_dgettext=no
20969
rm -rf conftest.dSYM
20970
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20971
conftest$ac_exeext conftest.$ac_ext
20972
LIBS=$ac_check_lib_save_LIBS
20974
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20975
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
20976
if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
20977
gt_cv_func_dgettext_libintl=yes
20985
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
20986
{ $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
20987
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
20988
{ $as_echo "$as_me:$LINENO: result: " >&5
20990
{ $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20991
$as_echo_n "checking for ngettext in -lintl... " >&6; }
20992
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20993
$as_echo_n "(cached) " >&6
20995
ac_check_lib_save_LIBS=$LIBS
20996
LIBS="-lintl -liconv $LIBS"
20997
cat >conftest.$ac_ext <<_ACEOF
21000
cat confdefs.h >>conftest.$ac_ext
21001
cat >>conftest.$ac_ext <<_ACEOF
21002
/* end confdefs.h. */
21004
/* Override any GCC internal prototype to avoid an error.
21005
Use char because int might match the return type of a GCC
21006
builtin and then its argument prototype would still apply. */
21014
return ngettext ();
21019
rm -f conftest.$ac_objext conftest$ac_exeext
21020
if { (ac_try="$ac_link"
21021
case "(($ac_try" in
21022
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023
*) ac_try_echo=$ac_try;;
21025
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21026
$as_echo "$ac_try_echo") >&5
21027
(eval "$ac_link") 2>conftest.er1
21029
grep -v '^ *+' conftest.er1 >conftest.err
21031
cat conftest.err >&5
21032
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033
(exit $ac_status); } && {
21034
test -z "$ac_c_werror_flag" ||
21035
test ! -s conftest.err
21036
} && test -s conftest$ac_exeext && {
21037
test "$cross_compiling" = yes ||
21038
$as_test_x conftest$ac_exeext
21040
ac_cv_lib_intl_ngettext=yes
21042
$as_echo "$as_me: failed program was:" >&5
21043
sed 's/^/| /' conftest.$ac_ext >&5
21045
ac_cv_lib_intl_ngettext=no
21048
rm -rf conftest.dSYM
21049
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21050
conftest$ac_exeext conftest.$ac_ext
21051
LIBS=$ac_check_lib_save_LIBS
21053
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21054
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
21055
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
21056
{ $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21057
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
21058
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21059
$as_echo_n "(cached) " >&6
21061
ac_check_lib_save_LIBS=$LIBS
21062
LIBS="-lintl -liconv $LIBS"
21063
cat >conftest.$ac_ext <<_ACEOF
21066
cat confdefs.h >>conftest.$ac_ext
21067
cat >>conftest.$ac_ext <<_ACEOF
21068
/* end confdefs.h. */
21070
/* Override any GCC internal prototype to avoid an error.
21071
Use char because int might match the return type of a GCC
21072
builtin and then its argument prototype would still apply. */
21080
return dcgettext ();
21085
rm -f conftest.$ac_objext conftest$ac_exeext
21086
if { (ac_try="$ac_link"
21087
case "(($ac_try" in
21088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089
*) ac_try_echo=$ac_try;;
21091
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21092
$as_echo "$ac_try_echo") >&5
21093
(eval "$ac_link") 2>conftest.er1
21095
grep -v '^ *+' conftest.er1 >conftest.err
21097
cat conftest.err >&5
21098
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099
(exit $ac_status); } && {
21100
test -z "$ac_c_werror_flag" ||
21101
test ! -s conftest.err
21102
} && test -s conftest$ac_exeext && {
21103
test "$cross_compiling" = yes ||
21104
$as_test_x conftest$ac_exeext
21106
ac_cv_lib_intl_dcgettext=yes
21108
$as_echo "$as_me: failed program was:" >&5
21109
sed 's/^/| /' conftest.$ac_ext >&5
21111
ac_cv_lib_intl_dcgettext=no
21114
rm -rf conftest.dSYM
21115
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21116
conftest$ac_exeext conftest.$ac_ext
21117
LIBS=$ac_check_lib_save_LIBS
21119
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21120
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
21121
if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
21122
gt_cv_func_dgettext_libintl=yes
21123
libintl_extra_libs=-liconv
21135
# If we found libintl, then check in it for bind_textdomain_codeset();
21136
# we'll prefer libc if neither have bind_textdomain_codeset(),
21137
# and both have dgettext and ngettext
21139
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21140
glib_save_LIBS="$LIBS"
21141
LIBS="$LIBS -lintl $libintl_extra_libs"
21142
unset ac_cv_func_bind_textdomain_codeset
21144
for ac_func in bind_textdomain_codeset
21146
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21147
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21148
$as_echo_n "checking for $ac_func... " >&6; }
21149
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21150
$as_echo_n "(cached) " >&6
21152
cat >conftest.$ac_ext <<_ACEOF
21155
cat confdefs.h >>conftest.$ac_ext
21156
cat >>conftest.$ac_ext <<_ACEOF
21157
/* end confdefs.h. */
21158
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21159
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21160
#define $ac_func innocuous_$ac_func
21162
/* System header to define __stub macros and hopefully few prototypes,
21163
which can conflict with char $ac_func (); below.
21164
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21165
<limits.h> exists even on freestanding compilers. */
21168
# include <limits.h>
21170
# include <assert.h>
21175
/* Override any GCC internal prototype to avoid an error.
21176
Use char because int might match the return type of a GCC
21177
builtin and then its argument prototype would still apply. */
21182
/* The GNU C library defines this for functions which it implements
21183
to always fail with ENOSYS. Some functions are actually named
21184
something starting with __ and the normal name is an alias. */
21185
#if defined __stub_$ac_func || defined __stub___$ac_func
21192
return $ac_func ();
21197
rm -f conftest.$ac_objext conftest$ac_exeext
21198
if { (ac_try="$ac_link"
21199
case "(($ac_try" in
21200
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201
*) ac_try_echo=$ac_try;;
21203
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21204
$as_echo "$ac_try_echo") >&5
21205
(eval "$ac_link") 2>conftest.er1
21207
grep -v '^ *+' conftest.er1 >conftest.err
21209
cat conftest.err >&5
21210
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211
(exit $ac_status); } && {
21212
test -z "$ac_c_werror_flag" ||
21213
test ! -s conftest.err
21214
} && test -s conftest$ac_exeext && {
21215
test "$cross_compiling" = yes ||
21216
$as_test_x conftest$ac_exeext
21218
eval "$as_ac_var=yes"
21220
$as_echo "$as_me: failed program was:" >&5
21221
sed 's/^/| /' conftest.$ac_ext >&5
21223
eval "$as_ac_var=no"
21226
rm -rf conftest.dSYM
21227
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228
conftest$ac_exeext conftest.$ac_ext
21230
ac_res=`eval 'as_val=${'$as_ac_var'}
21231
$as_echo "$as_val"'`
21232
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21233
$as_echo "$ac_res" >&6; }
21234
as_val=`eval 'as_val=${'$as_ac_var'}
21235
$as_echo "$as_val"'`
21236
if test "x$as_val" = x""yes; then
21237
cat >>confdefs.h <<_ACEOF
21238
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21244
LIBS="$glib_save_LIBS"
21246
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21247
gt_cv_func_dgettext_libc=no
21249
if test "$gt_cv_func_dgettext_libc" = "yes" \
21250
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
21251
gt_cv_func_dgettext_libintl=no
21257
if test "$gt_cv_func_dgettext_libc" = "yes" \
21258
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
21259
gt_cv_have_gettext=yes
21262
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21263
INTLLIBS="-lintl $libintl_extra_libs"
21266
if test "$gt_cv_have_gettext" = "yes"; then
21268
cat >>confdefs.h <<\_ACEOF
21269
#define HAVE_GETTEXT 1
21272
# Extract the first word of "msgfmt", so it can be a program name with args.
21273
set dummy msgfmt; ac_word=$2
21274
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21275
$as_echo_n "checking for $ac_word... " >&6; }
21276
if test "${ac_cv_path_MSGFMT+set}" = set; then
21277
$as_echo_n "(cached) " >&6
21281
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21284
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21285
for ac_dir in $PATH; do
21286
test -z "$ac_dir" && ac_dir=.
21287
if test -f $ac_dir/$ac_word; then
21288
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
21289
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21295
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
21299
MSGFMT="$ac_cv_path_MSGFMT"
21300
if test "$MSGFMT" != "no"; then
21301
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
21302
$as_echo "$MSGFMT" >&6; }
21304
{ $as_echo "$as_me:$LINENO: result: no" >&5
21305
$as_echo "no" >&6; }
21307
if test "$MSGFMT" != "no"; then
21308
glib_save_LIBS="$LIBS"
21309
LIBS="$LIBS $INTLLIBS"
21311
for ac_func in dcgettext
21313
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21314
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21315
$as_echo_n "checking for $ac_func... " >&6; }
21316
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21317
$as_echo_n "(cached) " >&6
21319
cat >conftest.$ac_ext <<_ACEOF
21322
cat confdefs.h >>conftest.$ac_ext
21323
cat >>conftest.$ac_ext <<_ACEOF
21324
/* end confdefs.h. */
21325
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21326
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21327
#define $ac_func innocuous_$ac_func
21329
/* System header to define __stub macros and hopefully few prototypes,
21330
which can conflict with char $ac_func (); below.
21331
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21332
<limits.h> exists even on freestanding compilers. */
21335
# include <limits.h>
21337
# include <assert.h>
21342
/* Override any GCC internal prototype to avoid an error.
21343
Use char because int might match the return type of a GCC
21344
builtin and then its argument prototype would still apply. */
21349
/* The GNU C library defines this for functions which it implements
21350
to always fail with ENOSYS. Some functions are actually named
21351
something starting with __ and the normal name is an alias. */
21352
#if defined __stub_$ac_func || defined __stub___$ac_func
21359
return $ac_func ();
21364
rm -f conftest.$ac_objext conftest$ac_exeext
21365
if { (ac_try="$ac_link"
21366
case "(($ac_try" in
21367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368
*) ac_try_echo=$ac_try;;
21370
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21371
$as_echo "$ac_try_echo") >&5
21372
(eval "$ac_link") 2>conftest.er1
21374
grep -v '^ *+' conftest.er1 >conftest.err
21376
cat conftest.err >&5
21377
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378
(exit $ac_status); } && {
21379
test -z "$ac_c_werror_flag" ||
21380
test ! -s conftest.err
21381
} && test -s conftest$ac_exeext && {
21382
test "$cross_compiling" = yes ||
21383
$as_test_x conftest$ac_exeext
21385
eval "$as_ac_var=yes"
21387
$as_echo "$as_me: failed program was:" >&5
21388
sed 's/^/| /' conftest.$ac_ext >&5
21390
eval "$as_ac_var=no"
21393
rm -rf conftest.dSYM
21394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21395
conftest$ac_exeext conftest.$ac_ext
21397
ac_res=`eval 'as_val=${'$as_ac_var'}
21398
$as_echo "$as_val"'`
21399
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21400
$as_echo "$ac_res" >&6; }
21401
as_val=`eval 'as_val=${'$as_ac_var'}
21402
$as_echo "$as_val"'`
21403
if test "x$as_val" = x""yes; then
21404
cat >>confdefs.h <<_ACEOF
21405
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21412
{ $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
21413
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
21414
cat >conftest.foo <<_ACEOF
21418
"Content-Type: text/plain; charset=UTF-8\n"
21419
"Project-Id-Version: test 1.0\n"
21420
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
21421
"Last-Translator: test <foo@bar.xx>\n"
21422
"Language-Team: C <LL@li.org>\n"
21423
"MIME-Version: 1.0\n"
21424
"Content-Transfer-Encoding: 8bit\n"
21427
if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
21428
($MSGFMT -c -o /dev/null conftest.foo) 2>&5
21430
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431
(exit $ac_status); }; then
21432
MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
21433
$as_echo "yes" >&6; }
21434
else { $as_echo "$as_me:$LINENO: result: no" >&5
21435
$as_echo "no" >&6; }
21436
echo "$as_me: failed input was:" >&5
21437
sed 's/^/| /' conftest.foo >&5
21440
# Extract the first word of "gmsgfmt", so it can be a program name with args.
21441
set dummy gmsgfmt; ac_word=$2
21442
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21443
$as_echo_n "checking for $ac_word... " >&6; }
21444
if test "${ac_cv_path_GMSGFMT+set}" = set; then
21445
$as_echo_n "(cached) " >&6
21449
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21453
for as_dir in $PATH
21456
test -z "$as_dir" && as_dir=.
21457
for ac_exec_ext in '' $ac_executable_extensions; do
21458
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21459
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21460
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21467
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21471
GMSGFMT=$ac_cv_path_GMSGFMT
21472
if test -n "$GMSGFMT"; then
21473
{ $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21474
$as_echo "$GMSGFMT" >&6; }
21476
{ $as_echo "$as_me:$LINENO: result: no" >&5
21477
$as_echo "no" >&6; }
21481
# Extract the first word of "xgettext", so it can be a program name with args.
21482
set dummy xgettext; ac_word=$2
21483
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21484
$as_echo_n "checking for $ac_word... " >&6; }
21485
if test "${ac_cv_path_XGETTEXT+set}" = set; then
21486
$as_echo_n "(cached) " >&6
21488
case "$XGETTEXT" in
21490
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21493
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21494
for ac_dir in $PATH; do
21495
test -z "$ac_dir" && ac_dir=.
21496
if test -f $ac_dir/$ac_word; then
21497
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21498
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21504
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21508
XGETTEXT="$ac_cv_path_XGETTEXT"
21509
if test "$XGETTEXT" != ":"; then
21510
{ $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21511
$as_echo "$XGETTEXT" >&6; }
21513
{ $as_echo "$as_me:$LINENO: result: no" >&5
21514
$as_echo "no" >&6; }
21517
cat >conftest.$ac_ext <<_ACEOF
21520
cat confdefs.h >>conftest.$ac_ext
21521
cat >>conftest.$ac_ext <<_ACEOF
21522
/* end confdefs.h. */
21527
extern int _nl_msg_cat_cntr;
21528
return _nl_msg_cat_cntr
21533
rm -f conftest.$ac_objext conftest$ac_exeext
21534
if { (ac_try="$ac_link"
21535
case "(($ac_try" in
21536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537
*) ac_try_echo=$ac_try;;
21539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21540
$as_echo "$ac_try_echo") >&5
21541
(eval "$ac_link") 2>conftest.er1
21543
grep -v '^ *+' conftest.er1 >conftest.err
21545
cat conftest.err >&5
21546
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547
(exit $ac_status); } && {
21548
test -z "$ac_c_werror_flag" ||
21549
test ! -s conftest.err
21550
} && test -s conftest$ac_exeext && {
21551
test "$cross_compiling" = yes ||
21552
$as_test_x conftest$ac_exeext
21557
$as_echo "$as_me: failed program was:" >&5
21558
sed 's/^/| /' conftest.$ac_ext >&5
21562
{ $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21563
$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
21564
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21565
$as_echo_n "(cached) " >&6
21567
cat >conftest.$ac_ext <<_ACEOF
21570
cat confdefs.h >>conftest.$ac_ext
21571
cat >>conftest.$ac_ext <<_ACEOF
21572
/* end confdefs.h. */
21573
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21574
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21575
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21577
/* System header to define __stub macros and hopefully few prototypes,
21578
which can conflict with char bind_textdomain_codeset (); below.
21579
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21580
<limits.h> exists even on freestanding compilers. */
21583
# include <limits.h>
21585
# include <assert.h>
21588
#undef bind_textdomain_codeset
21590
/* Override any GCC internal prototype to avoid an error.
21591
Use char because int might match the return type of a GCC
21592
builtin and then its argument prototype would still apply. */
21596
char bind_textdomain_codeset ();
21597
/* The GNU C library defines this for functions which it implements
21598
to always fail with ENOSYS. Some functions are actually named
21599
something starting with __ and the normal name is an alias. */
21600
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
21607
return bind_textdomain_codeset ();
21612
rm -f conftest.$ac_objext conftest$ac_exeext
21613
if { (ac_try="$ac_link"
21614
case "(($ac_try" in
21615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616
*) ac_try_echo=$ac_try;;
21618
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21619
$as_echo "$ac_try_echo") >&5
21620
(eval "$ac_link") 2>conftest.er1
21622
grep -v '^ *+' conftest.er1 >conftest.err
21624
cat conftest.err >&5
21625
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626
(exit $ac_status); } && {
21627
test -z "$ac_c_werror_flag" ||
21628
test ! -s conftest.err
21629
} && test -s conftest$ac_exeext && {
21630
test "$cross_compiling" = yes ||
21631
$as_test_x conftest$ac_exeext
21633
ac_cv_func_bind_textdomain_codeset=yes
21635
$as_echo "$as_me: failed program was:" >&5
21636
sed 's/^/| /' conftest.$ac_ext >&5
21638
ac_cv_func_bind_textdomain_codeset=no
21641
rm -rf conftest.dSYM
21642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21643
conftest$ac_exeext conftest.$ac_ext
21645
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21646
$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
21647
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
21663
rm -rf conftest.dSYM
21664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21665
conftest$ac_exeext conftest.$ac_ext
21666
LIBS="$glib_save_LIBS"
21669
gt_cv_have_gettext=no
21677
if test "$gt_cv_have_gettext" = "yes" ; then
21679
cat >>confdefs.h <<\_ACEOF
21680
#define ENABLE_NLS 1
21685
if test "$XGETTEXT" != ":"; then
21686
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21689
{ $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21690
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
21695
# We need to process the po/ directory.
21698
ac_config_commands="$ac_config_commands default-1"
21701
for lang in $ALL_LINGUAS; do
21702
GMOFILES="$GMOFILES $lang.gmo"
21703
POFILES="$POFILES $lang.po"
21718
if test "$gt_cv_have_gettext" = "yes"; then
21719
if test "x$ALL_LINGUAS" = "x"; then
21722
{ $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21723
$as_echo_n "checking for catalogs to be installed... " >&6; }
21725
for presentlang in $ALL_LINGUAS; do
21727
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21728
desiredlanguages="$LINGUAS"
21730
desiredlanguages="$ALL_LINGUAS"
21732
for desiredlang in $desiredlanguages; do
21733
# Use the presentlang catalog if desiredlang is
21734
# a. equal to presentlang, or
21735
# b. a variant of presentlang (because in this case,
21736
# presentlang can be used as a fallback for messages
21737
# which are not translated in the desiredlang catalog).
21738
case "$desiredlang" in
21739
"$presentlang"*) useit=yes;;
21742
if test $useit = yes; then
21743
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21746
LINGUAS=$NEW_LINGUAS
21747
{ $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
21748
$as_echo "$LINGUAS" >&6; }
21751
if test -n "$LINGUAS"; then
21752
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21757
if test -n "$ac_aux_dir"; then
21758
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21760
if test -z "$MKINSTALLDIRS"; then
21761
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21765
test -d po || mkdir po
21766
if test "x$srcdir" != "x."; then
21767
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21768
posrcprefix="$srcdir/"
21770
posrcprefix="../$srcdir/"
21776
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21777
< $srcdir/po/POTFILES.in > po/POTFILES
20060
21780
GAIL_MODULES="gail >= 1.1.0"