39314
if test "$use_ICU" = yes ; then
39315
## FIXME: later, warn not error
39317
{ echo "$as_me:$LINENO: checking for ucol_open_3_8 in -licui18n" >&5
39318
echo $ECHO_N "checking for ucol_open_3_8 in -licui18n... $ECHO_C" >&6; }
39319
if test "${ac_cv_lib_icui18n_ucol_open_3_8+set}" = set; then
39320
echo $ECHO_N "(cached) $ECHO_C" >&6
39322
ac_check_lib_save_LIBS=$LIBS
39323
LIBS="-licui18n $LIBS"
39324
cat >conftest.$ac_ext <<_ACEOF
39327
cat confdefs.h >>conftest.$ac_ext
39328
cat >>conftest.$ac_ext <<_ACEOF
39329
/* end confdefs.h. */
39331
/* Override any GCC internal prototype to avoid an error.
39332
Use char because int might match the return type of a GCC
39333
builtin and then its argument prototype would still apply. */
39337
char ucol_open_3_8 ();
39338
#ifdef F77_DUMMY_MAIN
39340
# ifdef __cplusplus
39343
int F77_DUMMY_MAIN() { return 1; }
39349
return ucol_open_3_8 ();
39354
rm -f conftest.$ac_objext conftest$ac_exeext
39355
if { (ac_try="$ac_link"
39356
case "(($ac_try" in
39357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39358
*) ac_try_echo=$ac_try;;
39360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39361
(eval "$ac_link") 2>conftest.er1
39363
grep -v '^ *+' conftest.er1 >conftest.err
39365
cat conftest.err >&5
39366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39367
(exit $ac_status); } && {
39368
test -z "$ac_c_werror_flag" ||
39369
test ! -s conftest.err
39370
} && test -s conftest$ac_exeext &&
39371
$as_test_x conftest$ac_exeext; then
39372
ac_cv_lib_icui18n_ucol_open_3_8=yes
39374
echo "$as_me: failed program was:" >&5
39375
sed 's/^/| /' conftest.$ac_ext >&5
39377
ac_cv_lib_icui18n_ucol_open_3_8=no
39380
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39381
conftest$ac_exeext conftest.$ac_ext
39382
LIBS=$ac_check_lib_save_LIBS
39384
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icui18n_ucol_open_3_8" >&5
39385
echo "${ECHO_T}$ac_cv_lib_icui18n_ucol_open_3_8" >&6; }
39386
if test $ac_cv_lib_icui18n_ucol_open_3_8 = yes; then
39387
cat >>confdefs.h <<_ACEOF
39388
#define HAVE_LIBICUI18N 1
39391
LIBS="-licui18n $LIBS"
39396
{ echo "$as_me:$LINENO: checking for ucol_open_3_6 in -licui18n" >&5
39397
echo $ECHO_N "checking for ucol_open_3_6 in -licui18n... $ECHO_C" >&6; }
39398
if test "${ac_cv_lib_icui18n_ucol_open_3_6+set}" = set; then
39399
echo $ECHO_N "(cached) $ECHO_C" >&6
39401
ac_check_lib_save_LIBS=$LIBS
39402
LIBS="-licui18n $LIBS"
39403
cat >conftest.$ac_ext <<_ACEOF
39406
cat confdefs.h >>conftest.$ac_ext
39407
cat >>conftest.$ac_ext <<_ACEOF
39408
/* end confdefs.h. */
39410
/* Override any GCC internal prototype to avoid an error.
39411
Use char because int might match the return type of a GCC
39412
builtin and then its argument prototype would still apply. */
39416
char ucol_open_3_6 ();
39417
#ifdef F77_DUMMY_MAIN
39419
# ifdef __cplusplus
39422
int F77_DUMMY_MAIN() { return 1; }
39428
return ucol_open_3_6 ();
39433
rm -f conftest.$ac_objext conftest$ac_exeext
39434
if { (ac_try="$ac_link"
39435
case "(($ac_try" in
39436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39437
*) ac_try_echo=$ac_try;;
39439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39440
(eval "$ac_link") 2>conftest.er1
39442
grep -v '^ *+' conftest.er1 >conftest.err
39444
cat conftest.err >&5
39445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446
(exit $ac_status); } && {
39447
test -z "$ac_c_werror_flag" ||
39448
test ! -s conftest.err
39449
} && test -s conftest$ac_exeext &&
39450
$as_test_x conftest$ac_exeext; then
39451
ac_cv_lib_icui18n_ucol_open_3_6=yes
39453
echo "$as_me: failed program was:" >&5
39454
sed 's/^/| /' conftest.$ac_ext >&5
39456
ac_cv_lib_icui18n_ucol_open_3_6=no
39459
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39460
conftest$ac_exeext conftest.$ac_ext
39461
LIBS=$ac_check_lib_save_LIBS
39463
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icui18n_ucol_open_3_6" >&5
39464
echo "${ECHO_T}$ac_cv_lib_icui18n_ucol_open_3_6" >&6; }
39465
if test $ac_cv_lib_icui18n_ucol_open_3_6 = yes; then
39466
cat >>confdefs.h <<_ACEOF
39467
#define HAVE_LIBICUI18N 1
39470
LIBS="-licui18n $LIBS"
39475
{ echo "$as_me:$LINENO: checking for ucol_open_3_4 in -licui18n" >&5
39476
echo $ECHO_N "checking for ucol_open_3_4 in -licui18n... $ECHO_C" >&6; }
39477
if test "${ac_cv_lib_icui18n_ucol_open_3_4+set}" = set; then
39478
echo $ECHO_N "(cached) $ECHO_C" >&6
39480
ac_check_lib_save_LIBS=$LIBS
39481
LIBS="-licui18n $LIBS"
39482
cat >conftest.$ac_ext <<_ACEOF
39485
cat confdefs.h >>conftest.$ac_ext
39486
cat >>conftest.$ac_ext <<_ACEOF
39487
/* end confdefs.h. */
39489
/* Override any GCC internal prototype to avoid an error.
39490
Use char because int might match the return type of a GCC
39491
builtin and then its argument prototype would still apply. */
39495
char ucol_open_3_4 ();
39496
#ifdef F77_DUMMY_MAIN
39498
# ifdef __cplusplus
39501
int F77_DUMMY_MAIN() { return 1; }
39507
return ucol_open_3_4 ();
39512
rm -f conftest.$ac_objext conftest$ac_exeext
39513
if { (ac_try="$ac_link"
39514
case "(($ac_try" in
39515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39516
*) ac_try_echo=$ac_try;;
39518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39519
(eval "$ac_link") 2>conftest.er1
39521
grep -v '^ *+' conftest.er1 >conftest.err
39523
cat conftest.err >&5
39524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525
(exit $ac_status); } && {
39526
test -z "$ac_c_werror_flag" ||
39527
test ! -s conftest.err
39528
} && test -s conftest$ac_exeext &&
39529
$as_test_x conftest$ac_exeext; then
39530
ac_cv_lib_icui18n_ucol_open_3_4=yes
39532
echo "$as_me: failed program was:" >&5
39533
sed 's/^/| /' conftest.$ac_ext >&5
39535
ac_cv_lib_icui18n_ucol_open_3_4=no
39538
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39539
conftest$ac_exeext conftest.$ac_ext
39540
LIBS=$ac_check_lib_save_LIBS
39542
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icui18n_ucol_open_3_4" >&5
39543
echo "${ECHO_T}$ac_cv_lib_icui18n_ucol_open_3_4" >&6; }
39544
if test $ac_cv_lib_icui18n_ucol_open_3_4 = yes; then
39545
cat >>confdefs.h <<_ACEOF
39546
#define HAVE_LIBICUI18N 1
39549
LIBS="-licui18n $LIBS"
39552
{ { echo "$as_me:$LINENO: error: library 'icui18n' is required for ICU" >&5
39553
echo "$as_me: error: library 'icui18n' is required for ICU" >&2;}
39554
{ (exit 1); exit 1; }; }
39564
{ echo "$as_me:$LINENO: checking for ucnv_fromUChars_3_8 in -licuuc" >&5
39565
echo $ECHO_N "checking for ucnv_fromUChars_3_8 in -licuuc... $ECHO_C" >&6; }
39566
if test "${ac_cv_lib_icuuc_ucnv_fromUChars_3_8+set}" = set; then
39567
echo $ECHO_N "(cached) $ECHO_C" >&6
39569
ac_check_lib_save_LIBS=$LIBS
39570
LIBS="-licuuc $LIBS"
39571
cat >conftest.$ac_ext <<_ACEOF
39574
cat confdefs.h >>conftest.$ac_ext
39575
cat >>conftest.$ac_ext <<_ACEOF
39576
/* end confdefs.h. */
39578
/* Override any GCC internal prototype to avoid an error.
39579
Use char because int might match the return type of a GCC
39580
builtin and then its argument prototype would still apply. */
39584
char ucnv_fromUChars_3_8 ();
39585
#ifdef F77_DUMMY_MAIN
39587
# ifdef __cplusplus
39590
int F77_DUMMY_MAIN() { return 1; }
39596
return ucnv_fromUChars_3_8 ();
39601
rm -f conftest.$ac_objext conftest$ac_exeext
39602
if { (ac_try="$ac_link"
39603
case "(($ac_try" in
39604
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39605
*) ac_try_echo=$ac_try;;
39607
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39608
(eval "$ac_link") 2>conftest.er1
39610
grep -v '^ *+' conftest.er1 >conftest.err
39612
cat conftest.err >&5
39613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614
(exit $ac_status); } && {
39615
test -z "$ac_c_werror_flag" ||
39616
test ! -s conftest.err
39617
} && test -s conftest$ac_exeext &&
39618
$as_test_x conftest$ac_exeext; then
39619
ac_cv_lib_icuuc_ucnv_fromUChars_3_8=yes
39621
echo "$as_me: failed program was:" >&5
39622
sed 's/^/| /' conftest.$ac_ext >&5
39624
ac_cv_lib_icuuc_ucnv_fromUChars_3_8=no
39627
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39628
conftest$ac_exeext conftest.$ac_ext
39629
LIBS=$ac_check_lib_save_LIBS
39631
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icuuc_ucnv_fromUChars_3_8" >&5
39632
echo "${ECHO_T}$ac_cv_lib_icuuc_ucnv_fromUChars_3_8" >&6; }
39633
if test $ac_cv_lib_icuuc_ucnv_fromUChars_3_8 = yes; then
39634
cat >>confdefs.h <<_ACEOF
39635
#define HAVE_LIBICUUC 1
39638
LIBS="-licuuc $LIBS"
39643
{ echo "$as_me:$LINENO: checking for ucnv_fromUChars_3_6 in -licuuc" >&5
39644
echo $ECHO_N "checking for ucnv_fromUChars_3_6 in -licuuc... $ECHO_C" >&6; }
39645
if test "${ac_cv_lib_icuuc_ucnv_fromUChars_3_6+set}" = set; then
39646
echo $ECHO_N "(cached) $ECHO_C" >&6
39648
ac_check_lib_save_LIBS=$LIBS
39649
LIBS="-licuuc $LIBS"
39650
cat >conftest.$ac_ext <<_ACEOF
39653
cat confdefs.h >>conftest.$ac_ext
39654
cat >>conftest.$ac_ext <<_ACEOF
39655
/* end confdefs.h. */
39657
/* Override any GCC internal prototype to avoid an error.
39658
Use char because int might match the return type of a GCC
39659
builtin and then its argument prototype would still apply. */
39663
char ucnv_fromUChars_3_6 ();
39664
#ifdef F77_DUMMY_MAIN
39666
# ifdef __cplusplus
39669
int F77_DUMMY_MAIN() { return 1; }
39675
return ucnv_fromUChars_3_6 ();
39680
rm -f conftest.$ac_objext conftest$ac_exeext
39681
if { (ac_try="$ac_link"
39682
case "(($ac_try" in
39683
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39684
*) ac_try_echo=$ac_try;;
39686
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39687
(eval "$ac_link") 2>conftest.er1
39689
grep -v '^ *+' conftest.er1 >conftest.err
39691
cat conftest.err >&5
39692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693
(exit $ac_status); } && {
39694
test -z "$ac_c_werror_flag" ||
39695
test ! -s conftest.err
39696
} && test -s conftest$ac_exeext &&
39697
$as_test_x conftest$ac_exeext; then
39698
ac_cv_lib_icuuc_ucnv_fromUChars_3_6=yes
39700
echo "$as_me: failed program was:" >&5
39701
sed 's/^/| /' conftest.$ac_ext >&5
39703
ac_cv_lib_icuuc_ucnv_fromUChars_3_6=no
39706
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39707
conftest$ac_exeext conftest.$ac_ext
39708
LIBS=$ac_check_lib_save_LIBS
39710
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icuuc_ucnv_fromUChars_3_6" >&5
39711
echo "${ECHO_T}$ac_cv_lib_icuuc_ucnv_fromUChars_3_6" >&6; }
39712
if test $ac_cv_lib_icuuc_ucnv_fromUChars_3_6 = yes; then
39713
cat >>confdefs.h <<_ACEOF
39714
#define HAVE_LIBICUUC 1
39717
LIBS="-licuuc $LIBS"
39722
{ echo "$as_me:$LINENO: checking for ucnv_fromUChars_3_4 in -licuuc" >&5
39723
echo $ECHO_N "checking for ucnv_fromUChars_3_4 in -licuuc... $ECHO_C" >&6; }
39724
if test "${ac_cv_lib_icuuc_ucnv_fromUChars_3_4+set}" = set; then
39725
echo $ECHO_N "(cached) $ECHO_C" >&6
39727
ac_check_lib_save_LIBS=$LIBS
39728
LIBS="-licuuc $LIBS"
39729
cat >conftest.$ac_ext <<_ACEOF
39732
cat confdefs.h >>conftest.$ac_ext
39733
cat >>conftest.$ac_ext <<_ACEOF
39734
/* end confdefs.h. */
39736
/* Override any GCC internal prototype to avoid an error.
39737
Use char because int might match the return type of a GCC
39738
builtin and then its argument prototype would still apply. */
39742
char ucnv_fromUChars_3_4 ();
39743
#ifdef F77_DUMMY_MAIN
39745
# ifdef __cplusplus
39748
int F77_DUMMY_MAIN() { return 1; }
39754
return ucnv_fromUChars_3_4 ();
39759
rm -f conftest.$ac_objext conftest$ac_exeext
39760
if { (ac_try="$ac_link"
39761
case "(($ac_try" in
39762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39763
*) ac_try_echo=$ac_try;;
39765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39766
(eval "$ac_link") 2>conftest.er1
39768
grep -v '^ *+' conftest.er1 >conftest.err
39770
cat conftest.err >&5
39771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772
(exit $ac_status); } && {
39773
test -z "$ac_c_werror_flag" ||
39774
test ! -s conftest.err
39775
} && test -s conftest$ac_exeext &&
39776
$as_test_x conftest$ac_exeext; then
39777
ac_cv_lib_icuuc_ucnv_fromUChars_3_4=yes
39779
echo "$as_me: failed program was:" >&5
39780
sed 's/^/| /' conftest.$ac_ext >&5
39782
ac_cv_lib_icuuc_ucnv_fromUChars_3_4=no
39785
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39786
conftest$ac_exeext conftest.$ac_ext
39787
LIBS=$ac_check_lib_save_LIBS
39789
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icuuc_ucnv_fromUChars_3_4" >&5
39790
echo "${ECHO_T}$ac_cv_lib_icuuc_ucnv_fromUChars_3_4" >&6; }
39791
if test $ac_cv_lib_icuuc_ucnv_fromUChars_3_4 = yes; then
39792
cat >>confdefs.h <<_ACEOF
39793
#define HAVE_LIBICUUC 1
39796
LIBS="-licuuc $LIBS"
39799
{ { echo "$as_me:$LINENO: error: library 'icuuc' is required for ICU" >&5
39800
echo "$as_me: error: library 'icuuc' is required for ICU" >&2;}
39801
{ (exit 1); exit 1; }; }
39810
if test "$use_ICU" = yes ; then
39811
if test "${ac_cv_header_unicode_utypes_h+set}" = set; then
39812
{ echo "$as_me:$LINENO: checking for unicode/utypes.h" >&5
39813
echo $ECHO_N "checking for unicode/utypes.h... $ECHO_C" >&6; }
39814
if test "${ac_cv_header_unicode_utypes_h+set}" = set; then
39815
echo $ECHO_N "(cached) $ECHO_C" >&6
39817
{ echo "$as_me:$LINENO: result: $ac_cv_header_unicode_utypes_h" >&5
39818
echo "${ECHO_T}$ac_cv_header_unicode_utypes_h" >&6; }
39820
# Is the header compilable?
39821
{ echo "$as_me:$LINENO: checking unicode/utypes.h usability" >&5
39822
echo $ECHO_N "checking unicode/utypes.h usability... $ECHO_C" >&6; }
39823
cat >conftest.$ac_ext <<_ACEOF
39826
cat confdefs.h >>conftest.$ac_ext
39827
cat >>conftest.$ac_ext <<_ACEOF
39828
/* end confdefs.h. */
39829
$ac_includes_default
39830
#include <unicode/utypes.h>
39832
rm -f conftest.$ac_objext
39833
if { (ac_try="$ac_compile"
39834
case "(($ac_try" in
39835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39836
*) ac_try_echo=$ac_try;;
39838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39839
(eval "$ac_compile") 2>conftest.er1
39841
grep -v '^ *+' conftest.er1 >conftest.err
39843
cat conftest.err >&5
39844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845
(exit $ac_status); } && {
39846
test -z "$ac_c_werror_flag" ||
39847
test ! -s conftest.err
39848
} && test -s conftest.$ac_objext; then
39849
ac_header_compiler=yes
39851
echo "$as_me: failed program was:" >&5
39852
sed 's/^/| /' conftest.$ac_ext >&5
39854
ac_header_compiler=no
39857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39858
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39859
echo "${ECHO_T}$ac_header_compiler" >&6; }
39861
# Is the header present?
39862
{ echo "$as_me:$LINENO: checking unicode/utypes.h presence" >&5
39863
echo $ECHO_N "checking unicode/utypes.h presence... $ECHO_C" >&6; }
39864
cat >conftest.$ac_ext <<_ACEOF
39867
cat confdefs.h >>conftest.$ac_ext
39868
cat >>conftest.$ac_ext <<_ACEOF
39869
/* end confdefs.h. */
39870
#include <unicode/utypes.h>
39872
if { (ac_try="$ac_cpp conftest.$ac_ext"
39873
case "(($ac_try" in
39874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39875
*) ac_try_echo=$ac_try;;
39877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39878
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39880
grep -v '^ *+' conftest.er1 >conftest.err
39882
cat conftest.err >&5
39883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884
(exit $ac_status); } >/dev/null && {
39885
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39886
test ! -s conftest.err
39888
ac_header_preproc=yes
39890
echo "$as_me: failed program was:" >&5
39891
sed 's/^/| /' conftest.$ac_ext >&5
39893
ac_header_preproc=no
39896
rm -f conftest.err conftest.$ac_ext
39897
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39898
echo "${ECHO_T}$ac_header_preproc" >&6; }
39900
# So? What about this header?
39901
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39903
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
39904
echo "$as_me: WARNING: unicode/utypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39905
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: proceeding with the compiler's result" >&5
39906
echo "$as_me: WARNING: unicode/utypes.h: proceeding with the compiler's result" >&2;}
39907
ac_header_preproc=yes
39910
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: present but cannot be compiled" >&5
39911
echo "$as_me: WARNING: unicode/utypes.h: present but cannot be compiled" >&2;}
39912
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: check for missing prerequisite headers?" >&5
39913
echo "$as_me: WARNING: unicode/utypes.h: check for missing prerequisite headers?" >&2;}
39914
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: see the Autoconf documentation" >&5
39915
echo "$as_me: WARNING: unicode/utypes.h: see the Autoconf documentation" >&2;}
39916
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: section \"Present But Cannot Be Compiled\"" >&5
39917
echo "$as_me: WARNING: unicode/utypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
39918
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: proceeding with the preprocessor's result" >&5
39919
echo "$as_me: WARNING: unicode/utypes.h: proceeding with the preprocessor's result" >&2;}
39920
{ echo "$as_me:$LINENO: WARNING: unicode/utypes.h: in the future, the compiler will take precedence" >&5
39921
echo "$as_me: WARNING: unicode/utypes.h: in the future, the compiler will take precedence" >&2;}
39923
## ----------------------------------- ##
39924
## Report this to r-bugs@R-project.org ##
39925
## ----------------------------------- ##
39927
) | sed "s/^/$as_me: WARNING: /" >&2
39930
{ echo "$as_me:$LINENO: checking for unicode/utypes.h" >&5
39931
echo $ECHO_N "checking for unicode/utypes.h... $ECHO_C" >&6; }
39932
if test "${ac_cv_header_unicode_utypes_h+set}" = set; then
39933
echo $ECHO_N "(cached) $ECHO_C" >&6
39935
ac_cv_header_unicode_utypes_h=$ac_header_preproc
39937
{ echo "$as_me:$LINENO: result: $ac_cv_header_unicode_utypes_h" >&5
39938
echo "${ECHO_T}$ac_cv_header_unicode_utypes_h" >&6; }
39941
if test $ac_cv_header_unicode_utypes_h = yes; then
39944
{ { echo "$as_me:$LINENO: error: header file <unicode/utypes.h> is required for ICU" >&5
39945
echo "$as_me: error: header file <unicode/utypes.h> is required for ICU" >&2;}
39946
{ (exit 1); exit 1; }; }
39952
if test "$use_ICU" = yes ; then
39954
cat >>confdefs.h <<_ACEOF
39159
39963
{ echo "$as_me:$LINENO: checking for X" >&5
39160
39964
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
52927
acl_save_prefix="$prefix"
52928
prefix="$acl_final_prefix"
52929
acl_save_exec_prefix="$exec_prefix"
52930
exec_prefix="$acl_final_exec_prefix"
52932
eval additional_includedir=\"$includedir\"
52933
eval additional_libdir=\"$libdir\"
52935
exec_prefix="$acl_save_exec_prefix"
52936
prefix="$acl_save_prefix"
52939
# Check whether --with-libiconv-prefix was given.
52940
if test "${with_libiconv_prefix+set}" = set; then
52941
withval=$with_libiconv_prefix;
52942
if test "X$withval" = "Xno"; then
52945
if test "X$withval" = "X"; then
52947
acl_save_prefix="$prefix"
52948
prefix="$acl_final_prefix"
52949
acl_save_exec_prefix="$exec_prefix"
52950
exec_prefix="$acl_final_exec_prefix"
52952
eval additional_includedir=\"$includedir\"
52953
eval additional_libdir=\"$libdir\"
52955
exec_prefix="$acl_save_exec_prefix"
52956
prefix="$acl_save_prefix"
52959
additional_includedir="$withval/include"
52960
additional_libdir="$withval/lib"
52971
names_already_handled=
52972
names_next_round='iconv '
52973
while test -n "$names_next_round"; do
52974
names_this_round="$names_next_round"
52976
for name in $names_this_round; do
52978
for n in $names_already_handled; do
52979
if test "$n" = "$name"; then
52980
already_handled=yes
52984
if test -z "$already_handled"; then
52985
names_already_handled="$names_already_handled $name"
52986
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
52987
eval value=\"\$HAVE_LIB$uppername\"
52988
if test -n "$value"; then
52989
if test "$value" = yes; then
52990
eval value=\"\$LIB$uppername\"
52991
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
52992
eval value=\"\$LTLIB$uppername\"
52993
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
53002
if test $use_additional = yes; then
53003
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
53004
found_dir="$additional_libdir"
53005
found_so="$additional_libdir/lib$name.$shlibext"
53006
if test -f "$additional_libdir/lib$name.la"; then
53007
found_la="$additional_libdir/lib$name.la"
53010
if test -f "$additional_libdir/lib$name.$libext"; then
53011
found_dir="$additional_libdir"
53012
found_a="$additional_libdir/lib$name.$libext"
53013
if test -f "$additional_libdir/lib$name.la"; then
53014
found_la="$additional_libdir/lib$name.la"
53019
if test "X$found_dir" = "X"; then
53020
for x in $LDFLAGS $LTLIBICONV; do
53022
acl_save_prefix="$prefix"
53023
prefix="$acl_final_prefix"
53024
acl_save_exec_prefix="$exec_prefix"
53025
exec_prefix="$acl_final_exec_prefix"
53027
exec_prefix="$acl_save_exec_prefix"
53028
prefix="$acl_save_prefix"
53032
dir=`echo "X$x" | sed -e 's/^X-L//'`
53033
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
53035
found_so="$dir/lib$name.$shlibext"
53036
if test -f "$dir/lib$name.la"; then
53037
found_la="$dir/lib$name.la"
53040
if test -f "$dir/lib$name.$libext"; then
53042
found_a="$dir/lib$name.$libext"
53043
if test -f "$dir/lib$name.la"; then
53044
found_la="$dir/lib$name.la"
53050
if test "X$found_dir" != "X"; then
53055
if test "X$found_dir" != "X"; then
53056
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
53057
if test "X$found_so" != "X"; then
53058
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
53059
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53062
for x in $ltrpathdirs; do
53063
if test "X$x" = "X$found_dir"; then
53068
if test -z "$haveit"; then
53069
ltrpathdirs="$ltrpathdirs $found_dir"
53071
if test "$hardcode_direct" = yes; then
53072
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53074
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
53075
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53077
for x in $rpathdirs; do
53078
if test "X$x" = "X$found_dir"; then
53083
if test -z "$haveit"; then
53084
rpathdirs="$rpathdirs $found_dir"
53088
for x in $LDFLAGS $LIBICONV; do
53090
acl_save_prefix="$prefix"
53091
prefix="$acl_final_prefix"
53092
acl_save_exec_prefix="$exec_prefix"
53093
exec_prefix="$acl_final_exec_prefix"
53095
exec_prefix="$acl_save_exec_prefix"
53096
prefix="$acl_save_prefix"
53098
if test "X$x" = "X-L$found_dir"; then
53103
if test -z "$haveit"; then
53104
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
53106
if test "$hardcode_minus_L" != no; then
53107
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53109
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
53115
if test "X$found_a" != "X"; then
53116
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
53118
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
53121
additional_includedir=
53122
case "$found_dir" in
53124
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
53125
additional_includedir="$basedir/include"
53128
if test "X$additional_includedir" != "X"; then
53129
if test "X$additional_includedir" != "X/usr/include"; then
53131
if test "X$additional_includedir" = "X/usr/local/include"; then
53132
if test -n "$GCC"; then
53134
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53138
if test -z "$haveit"; then
53139
for x in $CPPFLAGS $INCICONV; do
53141
acl_save_prefix="$prefix"
53142
prefix="$acl_final_prefix"
53143
acl_save_exec_prefix="$exec_prefix"
53144
exec_prefix="$acl_final_exec_prefix"
53146
exec_prefix="$acl_save_exec_prefix"
53147
prefix="$acl_save_prefix"
53149
if test "X$x" = "X-I$additional_includedir"; then
53154
if test -z "$haveit"; then
53155
if test -d "$additional_includedir"; then
53156
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
53162
if test -n "$found_la"; then
53163
save_libdir="$libdir"
53164
case "$found_la" in
53165
*/* | *\\*) . "$found_la" ;;
53166
*) . "./$found_la" ;;
53168
libdir="$save_libdir"
53169
for dep in $dependency_libs; do
53172
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
53173
if test "X$additional_libdir" != "X/usr/lib"; then
53175
if test "X$additional_libdir" = "X/usr/local/lib"; then
53176
if test -n "$GCC"; then
53178
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53182
if test -z "$haveit"; then
53184
for x in $LDFLAGS $LIBICONV; do
53186
acl_save_prefix="$prefix"
53187
prefix="$acl_final_prefix"
53188
acl_save_exec_prefix="$exec_prefix"
53189
exec_prefix="$acl_final_exec_prefix"
53191
exec_prefix="$acl_save_exec_prefix"
53192
prefix="$acl_save_prefix"
53194
if test "X$x" = "X-L$additional_libdir"; then
53199
if test -z "$haveit"; then
53200
if test -d "$additional_libdir"; then
53201
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
53205
for x in $LDFLAGS $LTLIBICONV; do
53207
acl_save_prefix="$prefix"
53208
prefix="$acl_final_prefix"
53209
acl_save_exec_prefix="$exec_prefix"
53210
exec_prefix="$acl_final_exec_prefix"
53212
exec_prefix="$acl_save_exec_prefix"
53213
prefix="$acl_save_prefix"
53215
if test "X$x" = "X-L$additional_libdir"; then
53220
if test -z "$haveit"; then
53221
if test -d "$additional_libdir"; then
53222
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
53229
dir=`echo "X$dep" | sed -e 's/^X-R//'`
53230
if test "$enable_rpath" != no; then
53232
for x in $rpathdirs; do
53233
if test "X$x" = "X$dir"; then
53238
if test -z "$haveit"; then
53239
rpathdirs="$rpathdirs $dir"
53242
for x in $ltrpathdirs; do
53243
if test "X$x" = "X$dir"; then
53248
if test -z "$haveit"; then
53249
ltrpathdirs="$ltrpathdirs $dir"
53254
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
53257
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
53260
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
53261
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
53267
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
53268
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
53274
if test "X$rpathdirs" != "X"; then
53275
if test -n "$hardcode_libdir_separator"; then
53277
for found_dir in $rpathdirs; do
53278
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
53280
acl_save_libdir="$libdir"
53282
eval flag=\"$hardcode_libdir_flag_spec\"
53283
libdir="$acl_save_libdir"
53284
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
53286
for found_dir in $rpathdirs; do
53287
acl_save_libdir="$libdir"
53288
libdir="$found_dir"
53289
eval flag=\"$hardcode_libdir_flag_spec\"
53290
libdir="$acl_save_libdir"
53291
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
53295
if test "X$ltrpathdirs" != "X"; then
53296
for found_dir in $ltrpathdirs; do
53297
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
53305
53761
cat >conftest.$ac_ext <<_ACEOF
53306
53762
/* confdefs.h. */