12570
GETTEXT_MACRO_VERSION=0.17
12575
# Prepare PATH_SEPARATOR.
12576
# The user is always right.
12577
if test "${PATH_SEPARATOR+set}" != set; then
12578
echo "#! /bin/sh" >conf$$.sh
12579
echo "exit 0" >>conf$$.sh
12581
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12589
# Find out how to test for executable files. Don't use a zero-byte file,
12590
# as systems may use methods other than mode bits to determine executability.
12591
cat >conf$$.file <<_ASEOF
12595
chmod +x conf$$.file
12596
if test -x conf$$.file >/dev/null 2>&1; then
12597
ac_executable_p="test -x"
12599
ac_executable_p="test -f"
12603
# Extract the first word of "msgfmt", so it can be a program name with args.
12604
set dummy msgfmt; ac_word=$2
12605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606
$as_echo_n "checking for $ac_word... " >&6; }
12607
if ${ac_cv_path_MSGFMT+:} false; then :
12608
$as_echo_n "(cached) " >&6
12612
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12615
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12616
for ac_dir in $PATH; do
12618
test -z "$ac_dir" && ac_dir=.
12619
for ac_exec_ext in '' $ac_executable_extensions; do
12620
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12621
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12622
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12623
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12624
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12631
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12635
MSGFMT="$ac_cv_path_MSGFMT"
12636
if test "$MSGFMT" != ":"; then
12637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12638
$as_echo "$MSGFMT" >&6; }
12640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641
$as_echo "no" >&6; }
12644
# Extract the first word of "gmsgfmt", so it can be a program name with args.
12645
set dummy gmsgfmt; ac_word=$2
12646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647
$as_echo_n "checking for $ac_word... " >&6; }
12648
if ${ac_cv_path_GMSGFMT+:} false; then :
12649
$as_echo_n "(cached) " >&6
12653
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657
for as_dir in $PATH
12660
test -z "$as_dir" && as_dir=.
12661
for ac_exec_ext in '' $ac_executable_extensions; do
12662
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12664
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12675
GMSGFMT=$ac_cv_path_GMSGFMT
12676
if test -n "$GMSGFMT"; then
12677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12678
$as_echo "$GMSGFMT" >&6; }
12680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681
$as_echo "no" >&6; }
12686
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12687
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12688
*) MSGFMT_015=$MSGFMT ;;
12691
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12692
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12693
*) GMSGFMT_015=$GMSGFMT ;;
12698
# Prepare PATH_SEPARATOR.
12699
# The user is always right.
12700
if test "${PATH_SEPARATOR+set}" != set; then
12701
echo "#! /bin/sh" >conf$$.sh
12702
echo "exit 0" >>conf$$.sh
12704
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12712
# Find out how to test for executable files. Don't use a zero-byte file,
12713
# as systems may use methods other than mode bits to determine executability.
12714
cat >conf$$.file <<_ASEOF
12718
chmod +x conf$$.file
12719
if test -x conf$$.file >/dev/null 2>&1; then
12720
ac_executable_p="test -x"
12722
ac_executable_p="test -f"
12726
# Extract the first word of "xgettext", so it can be a program name with args.
12727
set dummy xgettext; ac_word=$2
12728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729
$as_echo_n "checking for $ac_word... " >&6; }
12730
if ${ac_cv_path_XGETTEXT+:} false; then :
12731
$as_echo_n "(cached) " >&6
12733
case "$XGETTEXT" in
12735
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12738
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12739
for ac_dir in $PATH; do
12741
test -z "$ac_dir" && ac_dir=.
12742
for ac_exec_ext in '' $ac_executable_extensions; do
12743
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12744
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12745
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12746
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12747
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12754
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12758
XGETTEXT="$ac_cv_path_XGETTEXT"
12759
if test "$XGETTEXT" != ":"; then
12760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12761
$as_echo "$XGETTEXT" >&6; }
12763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764
$as_echo "no" >&6; }
12769
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12770
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12771
*) XGETTEXT_015=$XGETTEXT ;;
12776
# Prepare PATH_SEPARATOR.
12777
# The user is always right.
12778
if test "${PATH_SEPARATOR+set}" != set; then
12779
echo "#! /bin/sh" >conf$$.sh
12780
echo "exit 0" >>conf$$.sh
12782
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12790
# Find out how to test for executable files. Don't use a zero-byte file,
12791
# as systems may use methods other than mode bits to determine executability.
12792
cat >conf$$.file <<_ASEOF
12796
chmod +x conf$$.file
12797
if test -x conf$$.file >/dev/null 2>&1; then
12798
ac_executable_p="test -x"
12800
ac_executable_p="test -f"
12804
# Extract the first word of "msgmerge", so it can be a program name with args.
12805
set dummy msgmerge; ac_word=$2
12806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807
$as_echo_n "checking for $ac_word... " >&6; }
12808
if ${ac_cv_path_MSGMERGE+:} false; then :
12809
$as_echo_n "(cached) " >&6
12811
case "$MSGMERGE" in
12813
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12816
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12817
for ac_dir in $PATH; do
12819
test -z "$ac_dir" && ac_dir=.
12820
for ac_exec_ext in '' $ac_executable_extensions; do
12821
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12822
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12823
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12824
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12831
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12835
MSGMERGE="$ac_cv_path_MSGMERGE"
12836
if test "$MSGMERGE" != ":"; then
12837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12838
$as_echo "$MSGMERGE" >&6; }
12840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841
$as_echo "no" >&6; }
12845
test -n "$localedir" || localedir='${datadir}/locale'
12848
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12851
ac_config_commands="$ac_config_commands po-directories"
12855
if test "X$prefix" = "XNONE"; then
12856
acl_final_prefix="$ac_default_prefix"
12858
acl_final_prefix="$prefix"
12860
if test "X$exec_prefix" = "XNONE"; then
12861
acl_final_exec_prefix='${prefix}'
12863
acl_final_exec_prefix="$exec_prefix"
12865
acl_save_prefix="$prefix"
12866
prefix="$acl_final_prefix"
12867
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12868
prefix="$acl_save_prefix"
12871
# Check whether --with-gnu-ld was given.
12872
if test "${with_gnu_ld+set}" = set; then :
12873
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12878
# Prepare PATH_SEPARATOR.
12879
# The user is always right.
12880
if test "${PATH_SEPARATOR+set}" != set; then
12881
echo "#! /bin/sh" >conf$$.sh
12882
echo "exit 0" >>conf$$.sh
12884
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12892
if test "$GCC" = yes; then
12893
# Check if gcc -print-prog-name=ld gives a path.
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12895
$as_echo_n "checking for ld used by GCC... " >&6; }
12898
# gcc leaves a trailing carriage return which upsets mingw
12899
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12901
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12904
# Accept absolute paths.
12905
[\\/]* | [A-Za-z]:[\\/]*)
12906
re_direlt='/[^/][^/]*/\.\./'
12907
# Canonicalize the path of ld
12908
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12909
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12910
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12912
test -z "$LD" && LD="$ac_prog"
12915
# If it fails, then pretend we aren't using GCC.
12919
# If it is relative, then search for the first ld in PATH.
12920
with_gnu_ld=unknown
12923
elif test "$with_gnu_ld" = yes; then
12924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12925
$as_echo_n "checking for GNU ld... " >&6; }
12927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12928
$as_echo_n "checking for non-GNU ld... " >&6; }
12930
if ${acl_cv_path_LD+:} false; then :
12931
$as_echo_n "(cached) " >&6
12933
if test -z "$LD"; then
12934
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12935
for ac_dir in $PATH; do
12936
test -z "$ac_dir" && ac_dir=.
12937
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12938
acl_cv_path_LD="$ac_dir/$ac_prog"
12939
# Check to see if the program is GNU ld. I'd rather use --version,
12940
# but apparently some GNU ld's only accept -v.
12941
# Break only if it was the GNU/non-GNU ld that we prefer.
12942
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12943
*GNU* | *'with BFD'*)
12944
test "$with_gnu_ld" != no && break ;;
12946
test "$with_gnu_ld" != yes && break ;;
12952
acl_cv_path_LD="$LD" # Let the user override the test with a path.
12956
LD="$acl_cv_path_LD"
12957
if test -n "$LD"; then
12958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12959
$as_echo "$LD" >&6; }
12961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962
$as_echo "no" >&6; }
12964
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12966
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12967
if ${acl_cv_prog_gnu_ld+:} false; then :
12968
$as_echo_n "(cached) " >&6
12970
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
12971
case `$LD -v 2>&1 </dev/null` in
12972
*GNU* | *'with BFD'*)
12973
acl_cv_prog_gnu_ld=yes ;;
12975
acl_cv_prog_gnu_ld=no ;;
12978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12979
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12980
with_gnu_ld=$acl_cv_prog_gnu_ld
12985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12986
$as_echo_n "checking for shared library run path origin... " >&6; }
12987
if ${acl_cv_rpath+:} false; then :
12988
$as_echo_n "(cached) " >&6
12991
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12992
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12994
rm -f ./conftest.sh
12998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12999
$as_echo "$acl_cv_rpath" >&6; }
13001
acl_libext="$acl_cv_libext"
13002
acl_shlibext="$acl_cv_shlibext"
13003
acl_libname_spec="$acl_cv_libname_spec"
13004
acl_library_names_spec="$acl_cv_library_names_spec"
13005
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13006
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13007
acl_hardcode_direct="$acl_cv_hardcode_direct"
13008
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13009
# Check whether --enable-rpath was given.
13010
if test "${enable_rpath+set}" = set; then :
13011
enableval=$enable_rpath; :
13019
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13020
if test -n "$searchpath"; then
13021
acl_save_IFS="${IFS= }"; IFS=":"
13022
for searchdir in $searchpath; do
13023
if test -d "$searchdir"; then
13024
case "$searchdir" in
13025
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13026
*) searchdir=`cd "$searchdir" && pwd`
13027
case "$searchdir" in
13028
*/lib64 ) acl_libdirstem=lib64 ;;
13033
IFS="$acl_save_IFS"
13046
acl_save_prefix="$prefix"
13047
prefix="$acl_final_prefix"
13048
acl_save_exec_prefix="$exec_prefix"
13049
exec_prefix="$acl_final_exec_prefix"
13051
eval additional_includedir=\"$includedir\"
13052
eval additional_libdir=\"$libdir\"
13054
exec_prefix="$acl_save_exec_prefix"
13055
prefix="$acl_save_prefix"
13058
# Check whether --with-libiconv-prefix was given.
13059
if test "${with_libiconv_prefix+set}" = set; then :
13060
withval=$with_libiconv_prefix;
13061
if test "X$withval" = "Xno"; then
13064
if test "X$withval" = "X"; then
13066
acl_save_prefix="$prefix"
13067
prefix="$acl_final_prefix"
13068
acl_save_exec_prefix="$exec_prefix"
13069
exec_prefix="$acl_final_exec_prefix"
13071
eval additional_includedir=\"$includedir\"
13072
eval additional_libdir=\"$libdir\"
13074
exec_prefix="$acl_save_exec_prefix"
13075
prefix="$acl_save_prefix"
13078
additional_includedir="$withval/include"
13079
additional_libdir="$withval/$acl_libdirstem"
13091
names_already_handled=
13092
names_next_round='iconv '
13093
while test -n "$names_next_round"; do
13094
names_this_round="$names_next_round"
13096
for name in $names_this_round; do
13098
for n in $names_already_handled; do
13099
if test "$n" = "$name"; then
13100
already_handled=yes
13104
if test -z "$already_handled"; then
13105
names_already_handled="$names_already_handled $name"
13106
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13107
eval value=\"\$HAVE_LIB$uppername\"
13108
if test -n "$value"; then
13109
if test "$value" = yes; then
13110
eval value=\"\$LIB$uppername\"
13111
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13112
eval value=\"\$LTLIB$uppername\"
13113
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13122
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13123
if test -n "$acl_shlibext"; then
13124
shrext=".$acl_shlibext" # typically: shrext=.so
13128
if test $use_additional = yes; then
13129
dir="$additional_libdir"
13130
if test -n "$acl_shlibext"; then
13131
if test -f "$dir/$libname$shrext"; then
13133
found_so="$dir/$libname$shrext"
13135
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13136
ver=`(cd "$dir" && \
13137
for f in "$libname$shrext".*; do echo "$f"; done \
13138
| sed -e "s,^$libname$shrext\\\\.,," \
13139
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13140
| sed 1q ) 2>/dev/null`
13141
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13143
found_so="$dir/$libname$shrext.$ver"
13146
eval library_names=\"$acl_library_names_spec\"
13147
for f in $library_names; do
13148
if test -f "$dir/$f"; then
13157
if test "X$found_dir" = "X"; then
13158
if test -f "$dir/$libname.$acl_libext"; then
13160
found_a="$dir/$libname.$acl_libext"
13163
if test "X$found_dir" != "X"; then
13164
if test -f "$dir/$libname.la"; then
13165
found_la="$dir/$libname.la"
13169
if test "X$found_dir" = "X"; then
13170
for x in $LDFLAGS $LTLIBICONV; do
13172
acl_save_prefix="$prefix"
13173
prefix="$acl_final_prefix"
13174
acl_save_exec_prefix="$exec_prefix"
13175
exec_prefix="$acl_final_exec_prefix"
13177
exec_prefix="$acl_save_exec_prefix"
13178
prefix="$acl_save_prefix"
13182
dir=`echo "X$x" | sed -e 's/^X-L//'`
13183
if test -n "$acl_shlibext"; then
13184
if test -f "$dir/$libname$shrext"; then
13186
found_so="$dir/$libname$shrext"
13188
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13189
ver=`(cd "$dir" && \
13190
for f in "$libname$shrext".*; do echo "$f"; done \
13191
| sed -e "s,^$libname$shrext\\\\.,," \
13192
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13193
| sed 1q ) 2>/dev/null`
13194
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13196
found_so="$dir/$libname$shrext.$ver"
13199
eval library_names=\"$acl_library_names_spec\"
13200
for f in $library_names; do
13201
if test -f "$dir/$f"; then
13210
if test "X$found_dir" = "X"; then
13211
if test -f "$dir/$libname.$acl_libext"; then
13213
found_a="$dir/$libname.$acl_libext"
13216
if test "X$found_dir" != "X"; then
13217
if test -f "$dir/$libname.la"; then
13218
found_la="$dir/$libname.la"
13223
if test "X$found_dir" != "X"; then
13228
if test "X$found_dir" != "X"; then
13229
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13230
if test "X$found_so" != "X"; then
13231
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13232
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13235
for x in $ltrpathdirs; do
13236
if test "X$x" = "X$found_dir"; then
13241
if test -z "$haveit"; then
13242
ltrpathdirs="$ltrpathdirs $found_dir"
13244
if test "$acl_hardcode_direct" = yes; then
13245
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13247
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13248
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13250
for x in $rpathdirs; do
13251
if test "X$x" = "X$found_dir"; then
13256
if test -z "$haveit"; then
13257
rpathdirs="$rpathdirs $found_dir"
13261
for x in $LDFLAGS $LIBICONV; do
13263
acl_save_prefix="$prefix"
13264
prefix="$acl_final_prefix"
13265
acl_save_exec_prefix="$exec_prefix"
13266
exec_prefix="$acl_final_exec_prefix"
13268
exec_prefix="$acl_save_exec_prefix"
13269
prefix="$acl_save_prefix"
13271
if test "X$x" = "X-L$found_dir"; then
13276
if test -z "$haveit"; then
13277
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13279
if test "$acl_hardcode_minus_L" != no; then
13280
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13282
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13288
if test "X$found_a" != "X"; then
13289
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13291
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13294
additional_includedir=
13295
case "$found_dir" in
13296
*/$acl_libdirstem | */$acl_libdirstem/)
13297
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13298
LIBICONV_PREFIX="$basedir"
13299
additional_includedir="$basedir/include"
13302
if test "X$additional_includedir" != "X"; then
13303
if test "X$additional_includedir" != "X/usr/include"; then
13305
if test "X$additional_includedir" = "X/usr/local/include"; then
13306
if test -n "$GCC"; then
13308
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13312
if test -z "$haveit"; then
13313
for x in $CPPFLAGS $INCICONV; do
13315
acl_save_prefix="$prefix"
13316
prefix="$acl_final_prefix"
13317
acl_save_exec_prefix="$exec_prefix"
13318
exec_prefix="$acl_final_exec_prefix"
13320
exec_prefix="$acl_save_exec_prefix"
13321
prefix="$acl_save_prefix"
13323
if test "X$x" = "X-I$additional_includedir"; then
13328
if test -z "$haveit"; then
13329
if test -d "$additional_includedir"; then
13330
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13336
if test -n "$found_la"; then
13337
save_libdir="$libdir"
13338
case "$found_la" in
13339
*/* | *\\*) . "$found_la" ;;
13340
*) . "./$found_la" ;;
13342
libdir="$save_libdir"
13343
for dep in $dependency_libs; do
13346
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13347
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13349
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13350
if test -n "$GCC"; then
13352
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13356
if test -z "$haveit"; then
13358
for x in $LDFLAGS $LIBICONV; do
13360
acl_save_prefix="$prefix"
13361
prefix="$acl_final_prefix"
13362
acl_save_exec_prefix="$exec_prefix"
13363
exec_prefix="$acl_final_exec_prefix"
13365
exec_prefix="$acl_save_exec_prefix"
13366
prefix="$acl_save_prefix"
13368
if test "X$x" = "X-L$additional_libdir"; then
13373
if test -z "$haveit"; then
13374
if test -d "$additional_libdir"; then
13375
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13379
for x in $LDFLAGS $LTLIBICONV; do
13381
acl_save_prefix="$prefix"
13382
prefix="$acl_final_prefix"
13383
acl_save_exec_prefix="$exec_prefix"
13384
exec_prefix="$acl_final_exec_prefix"
13386
exec_prefix="$acl_save_exec_prefix"
13387
prefix="$acl_save_prefix"
13389
if test "X$x" = "X-L$additional_libdir"; then
13394
if test -z "$haveit"; then
13395
if test -d "$additional_libdir"; then
13396
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13403
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13404
if test "$enable_rpath" != no; then
13406
for x in $rpathdirs; do
13407
if test "X$x" = "X$dir"; then
13412
if test -z "$haveit"; then
13413
rpathdirs="$rpathdirs $dir"
13416
for x in $ltrpathdirs; do
13417
if test "X$x" = "X$dir"; then
13422
if test -z "$haveit"; then
13423
ltrpathdirs="$ltrpathdirs $dir"
13428
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13431
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13434
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13435
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13441
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13442
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13448
if test "X$rpathdirs" != "X"; then
13449
if test -n "$acl_hardcode_libdir_separator"; then
13451
for found_dir in $rpathdirs; do
13452
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13454
acl_save_libdir="$libdir"
13456
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13457
libdir="$acl_save_libdir"
13458
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13460
for found_dir in $rpathdirs; do
13461
acl_save_libdir="$libdir"
13462
libdir="$found_dir"
13463
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13464
libdir="$acl_save_libdir"
13465
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13469
if test "X$ltrpathdirs" != "X"; then
13470
for found_dir in $ltrpathdirs; do
13471
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13500
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13501
if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13502
$as_echo_n "(cached) " >&6
13504
gt_save_LIBS="$LIBS"
13505
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13506
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507
/* end confdefs.h. */
13508
#include <CoreFoundation/CFPreferences.h>
13512
CFPreferencesCopyAppValue(NULL, NULL)
13517
if ac_fn_c_try_link "$LINENO"; then :
13518
gt_cv_func_CFPreferencesCopyAppValue=yes
13520
gt_cv_func_CFPreferencesCopyAppValue=no
13522
rm -f core conftest.err conftest.$ac_objext \
13523
conftest$ac_exeext conftest.$ac_ext
13524
LIBS="$gt_save_LIBS"
13526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13527
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13528
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13530
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13534
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13535
if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13536
$as_echo_n "(cached) " >&6
13538
gt_save_LIBS="$LIBS"
13539
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541
/* end confdefs.h. */
13542
#include <CoreFoundation/CFLocale.h>
13546
CFLocaleCopyCurrent();
13551
if ac_fn_c_try_link "$LINENO"; then :
13552
gt_cv_func_CFLocaleCopyCurrent=yes
13554
gt_cv_func_CFLocaleCopyCurrent=no
13556
rm -f core conftest.err conftest.$ac_objext \
13557
conftest$ac_exeext conftest.$ac_ext
13558
LIBS="$gt_save_LIBS"
13560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13561
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13562
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13564
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13568
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13569
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13581
case " $gt_needs " in
13582
*" need-formatstring-macros "*) gt_api_version=3 ;;
13583
*" need-ngettext "*) gt_api_version=2 ;;
13584
*) gt_api_version=1 ;;
13586
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13587
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13589
if test "$USE_NLS" = "yes"; then
13590
gt_use_preinstalled_gnugettext=no
13593
if test $gt_api_version -ge 3; then
13594
gt_revision_test_code='
13595
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13596
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13598
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13601
gt_revision_test_code=
13603
if test $gt_api_version -ge 2; then
13604
gt_expression_test_code=' + * ngettext ("", "", 0)'
13606
gt_expression_test_code=
13609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13610
$as_echo_n "checking for GNU gettext in libc... " >&6; }
13611
if eval \${$gt_func_gnugettext_libc+:} false; then :
13612
$as_echo_n "(cached) " >&6
13614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615
/* end confdefs.h. */
13616
#include <libintl.h>
13617
$gt_revision_test_code
13618
extern int _nl_msg_cat_cntr;
13619
extern int *_nl_domain_bindings;
13623
bindtextdomain ("", "");
13624
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13629
if ac_fn_c_try_link "$LINENO"; then :
13630
eval "$gt_func_gnugettext_libc=yes"
13632
eval "$gt_func_gnugettext_libc=no"
13634
rm -f core conftest.err conftest.$ac_objext \
13635
conftest$ac_exeext conftest.$ac_ext
13637
eval ac_res=\$$gt_func_gnugettext_libc
13638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13639
$as_echo "$ac_res" >&6; }
13641
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13647
am_save_CPPFLAGS="$CPPFLAGS"
13649
for element in $INCICONV; do
13651
for x in $CPPFLAGS; do
13653
acl_save_prefix="$prefix"
13654
prefix="$acl_final_prefix"
13655
acl_save_exec_prefix="$exec_prefix"
13656
exec_prefix="$acl_final_exec_prefix"
13658
exec_prefix="$acl_save_exec_prefix"
13659
prefix="$acl_save_prefix"
13661
if test "X$x" = "X$element"; then
13666
if test -z "$haveit"; then
13667
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13673
$as_echo_n "checking for iconv... " >&6; }
13674
if ${am_cv_func_iconv+:} false; then :
13675
$as_echo_n "(cached) " >&6
13678
am_cv_func_iconv="no, consider installing GNU libiconv"
13680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681
/* end confdefs.h. */
13682
#include <stdlib.h>
13687
iconv_t cd = iconv_open("","");
13688
iconv(cd,NULL,NULL,NULL,NULL);
13694
if ac_fn_c_try_link "$LINENO"; then :
13695
am_cv_func_iconv=yes
13697
rm -f core conftest.err conftest.$ac_objext \
13698
conftest$ac_exeext conftest.$ac_ext
13699
if test "$am_cv_func_iconv" != yes; then
13700
am_save_LIBS="$LIBS"
13701
LIBS="$LIBS $LIBICONV"
13702
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703
/* end confdefs.h. */
13704
#include <stdlib.h>
13709
iconv_t cd = iconv_open("","");
13710
iconv(cd,NULL,NULL,NULL,NULL);
13716
if ac_fn_c_try_link "$LINENO"; then :
13717
am_cv_lib_iconv=yes
13718
am_cv_func_iconv=yes
13720
rm -f core conftest.err conftest.$ac_objext \
13721
conftest$ac_exeext conftest.$ac_ext
13722
LIBS="$am_save_LIBS"
13726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13727
$as_echo "$am_cv_func_iconv" >&6; }
13728
if test "$am_cv_func_iconv" = yes; then
13729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13730
$as_echo_n "checking for working iconv... " >&6; }
13731
if ${am_cv_func_iconv_works+:} false; then :
13732
$as_echo_n "(cached) " >&6
13735
am_save_LIBS="$LIBS"
13736
if test $am_cv_lib_iconv = yes; then
13737
LIBS="$LIBS $LIBICONV"
13739
if test "$cross_compiling" = yes; then :
13741
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13742
*) am_cv_func_iconv_works="guessing yes" ;;
13745
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746
/* end confdefs.h. */
13749
#include <string.h>
13752
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13755
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13756
if (cd_utf8_to_88591 != (iconv_t)(-1))
13758
static const char input[] = "\342\202\254"; /* EURO SIGN */
13760
const char *inptr = input;
13761
size_t inbytesleft = strlen (input);
13762
char *outptr = buf;
13763
size_t outbytesleft = sizeof (buf);
13764
size_t res = iconv (cd_utf8_to_88591,
13765
(char **) &inptr, &inbytesleft,
13766
&outptr, &outbytesleft);
13771
#if 0 /* This bug could be worked around by the caller. */
13772
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13774
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13775
if (cd_88591_to_utf8 != (iconv_t)(-1))
13777
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13779
const char *inptr = input;
13780
size_t inbytesleft = strlen (input);
13781
char *outptr = buf;
13782
size_t outbytesleft = sizeof (buf);
13783
size_t res = iconv (cd_88591_to_utf8,
13784
(char **) &inptr, &inbytesleft,
13785
&outptr, &outbytesleft);
13791
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13793
if (/* Try standardized names. */
13794
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13795
/* Try IRIX, OSF/1 names. */
13796
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13797
/* Try AIX names. */
13798
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13799
/* Try HP-UX names. */
13800
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13805
if ac_fn_c_try_run "$LINENO"; then :
13806
am_cv_func_iconv_works=yes
13808
am_cv_func_iconv_works=no
13810
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13811
conftest.$ac_objext conftest.beam conftest.$ac_ext
13814
LIBS="$am_save_LIBS"
13817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13818
$as_echo "$am_cv_func_iconv_works" >&6; }
13819
case "$am_cv_func_iconv_works" in
13820
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
13821
*) am_func_iconv=yes ;;
13824
am_func_iconv=no am_cv_lib_iconv=no
13826
if test "$am_func_iconv" = yes; then
13828
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13831
if test "$am_cv_lib_iconv" = yes; then
13832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13833
$as_echo_n "checking how to link with libiconv... " >&6; }
13834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13835
$as_echo "$LIBICONV" >&6; }
13837
CPPFLAGS="$am_save_CPPFLAGS"
13851
acl_save_prefix="$prefix"
13852
prefix="$acl_final_prefix"
13853
acl_save_exec_prefix="$exec_prefix"
13854
exec_prefix="$acl_final_exec_prefix"
13856
eval additional_includedir=\"$includedir\"
13857
eval additional_libdir=\"$libdir\"
13859
exec_prefix="$acl_save_exec_prefix"
13860
prefix="$acl_save_prefix"
13863
# Check whether --with-libintl-prefix was given.
13864
if test "${with_libintl_prefix+set}" = set; then :
13865
withval=$with_libintl_prefix;
13866
if test "X$withval" = "Xno"; then
13869
if test "X$withval" = "X"; then
13871
acl_save_prefix="$prefix"
13872
prefix="$acl_final_prefix"
13873
acl_save_exec_prefix="$exec_prefix"
13874
exec_prefix="$acl_final_exec_prefix"
13876
eval additional_includedir=\"$includedir\"
13877
eval additional_libdir=\"$libdir\"
13879
exec_prefix="$acl_save_exec_prefix"
13880
prefix="$acl_save_prefix"
13883
additional_includedir="$withval/include"
13884
additional_libdir="$withval/$acl_libdirstem"
13896
names_already_handled=
13897
names_next_round='intl '
13898
while test -n "$names_next_round"; do
13899
names_this_round="$names_next_round"
13901
for name in $names_this_round; do
13903
for n in $names_already_handled; do
13904
if test "$n" = "$name"; then
13905
already_handled=yes
13909
if test -z "$already_handled"; then
13910
names_already_handled="$names_already_handled $name"
13911
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13912
eval value=\"\$HAVE_LIB$uppername\"
13913
if test -n "$value"; then
13914
if test "$value" = yes; then
13915
eval value=\"\$LIB$uppername\"
13916
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13917
eval value=\"\$LTLIB$uppername\"
13918
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13927
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13928
if test -n "$acl_shlibext"; then
13929
shrext=".$acl_shlibext" # typically: shrext=.so
13933
if test $use_additional = yes; then
13934
dir="$additional_libdir"
13935
if test -n "$acl_shlibext"; then
13936
if test -f "$dir/$libname$shrext"; then
13938
found_so="$dir/$libname$shrext"
13940
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13941
ver=`(cd "$dir" && \
13942
for f in "$libname$shrext".*; do echo "$f"; done \
13943
| sed -e "s,^$libname$shrext\\\\.,," \
13944
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13945
| sed 1q ) 2>/dev/null`
13946
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13948
found_so="$dir/$libname$shrext.$ver"
13951
eval library_names=\"$acl_library_names_spec\"
13952
for f in $library_names; do
13953
if test -f "$dir/$f"; then
13962
if test "X$found_dir" = "X"; then
13963
if test -f "$dir/$libname.$acl_libext"; then
13965
found_a="$dir/$libname.$acl_libext"
13968
if test "X$found_dir" != "X"; then
13969
if test -f "$dir/$libname.la"; then
13970
found_la="$dir/$libname.la"
13974
if test "X$found_dir" = "X"; then
13975
for x in $LDFLAGS $LTLIBINTL; do
13977
acl_save_prefix="$prefix"
13978
prefix="$acl_final_prefix"
13979
acl_save_exec_prefix="$exec_prefix"
13980
exec_prefix="$acl_final_exec_prefix"
13982
exec_prefix="$acl_save_exec_prefix"
13983
prefix="$acl_save_prefix"
13987
dir=`echo "X$x" | sed -e 's/^X-L//'`
13988
if test -n "$acl_shlibext"; then
13989
if test -f "$dir/$libname$shrext"; then
13991
found_so="$dir/$libname$shrext"
13993
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13994
ver=`(cd "$dir" && \
13995
for f in "$libname$shrext".*; do echo "$f"; done \
13996
| sed -e "s,^$libname$shrext\\\\.,," \
13997
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13998
| sed 1q ) 2>/dev/null`
13999
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14001
found_so="$dir/$libname$shrext.$ver"
14004
eval library_names=\"$acl_library_names_spec\"
14005
for f in $library_names; do
14006
if test -f "$dir/$f"; then
14015
if test "X$found_dir" = "X"; then
14016
if test -f "$dir/$libname.$acl_libext"; then
14018
found_a="$dir/$libname.$acl_libext"
14021
if test "X$found_dir" != "X"; then
14022
if test -f "$dir/$libname.la"; then
14023
found_la="$dir/$libname.la"
14028
if test "X$found_dir" != "X"; then
14033
if test "X$found_dir" != "X"; then
14034
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14035
if test "X$found_so" != "X"; then
14036
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14037
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14040
for x in $ltrpathdirs; do
14041
if test "X$x" = "X$found_dir"; then
14046
if test -z "$haveit"; then
14047
ltrpathdirs="$ltrpathdirs $found_dir"
14049
if test "$acl_hardcode_direct" = yes; then
14050
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14052
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14053
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14055
for x in $rpathdirs; do
14056
if test "X$x" = "X$found_dir"; then
14061
if test -z "$haveit"; then
14062
rpathdirs="$rpathdirs $found_dir"
14066
for x in $LDFLAGS $LIBINTL; do
14068
acl_save_prefix="$prefix"
14069
prefix="$acl_final_prefix"
14070
acl_save_exec_prefix="$exec_prefix"
14071
exec_prefix="$acl_final_exec_prefix"
14073
exec_prefix="$acl_save_exec_prefix"
14074
prefix="$acl_save_prefix"
14076
if test "X$x" = "X-L$found_dir"; then
14081
if test -z "$haveit"; then
14082
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14084
if test "$acl_hardcode_minus_L" != no; then
14085
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14087
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14093
if test "X$found_a" != "X"; then
14094
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14096
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14099
additional_includedir=
14100
case "$found_dir" in
14101
*/$acl_libdirstem | */$acl_libdirstem/)
14102
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14103
LIBINTL_PREFIX="$basedir"
14104
additional_includedir="$basedir/include"
14107
if test "X$additional_includedir" != "X"; then
14108
if test "X$additional_includedir" != "X/usr/include"; then
14110
if test "X$additional_includedir" = "X/usr/local/include"; then
14111
if test -n "$GCC"; then
14113
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14117
if test -z "$haveit"; then
14118
for x in $CPPFLAGS $INCINTL; do
14120
acl_save_prefix="$prefix"
14121
prefix="$acl_final_prefix"
14122
acl_save_exec_prefix="$exec_prefix"
14123
exec_prefix="$acl_final_exec_prefix"
14125
exec_prefix="$acl_save_exec_prefix"
14126
prefix="$acl_save_prefix"
14128
if test "X$x" = "X-I$additional_includedir"; then
14133
if test -z "$haveit"; then
14134
if test -d "$additional_includedir"; then
14135
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14141
if test -n "$found_la"; then
14142
save_libdir="$libdir"
14143
case "$found_la" in
14144
*/* | *\\*) . "$found_la" ;;
14145
*) . "./$found_la" ;;
14147
libdir="$save_libdir"
14148
for dep in $dependency_libs; do
14151
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14152
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14154
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14155
if test -n "$GCC"; then
14157
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14161
if test -z "$haveit"; then
14163
for x in $LDFLAGS $LIBINTL; do
14165
acl_save_prefix="$prefix"
14166
prefix="$acl_final_prefix"
14167
acl_save_exec_prefix="$exec_prefix"
14168
exec_prefix="$acl_final_exec_prefix"
14170
exec_prefix="$acl_save_exec_prefix"
14171
prefix="$acl_save_prefix"
14173
if test "X$x" = "X-L$additional_libdir"; then
14178
if test -z "$haveit"; then
14179
if test -d "$additional_libdir"; then
14180
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14184
for x in $LDFLAGS $LTLIBINTL; do
14186
acl_save_prefix="$prefix"
14187
prefix="$acl_final_prefix"
14188
acl_save_exec_prefix="$exec_prefix"
14189
exec_prefix="$acl_final_exec_prefix"
14191
exec_prefix="$acl_save_exec_prefix"
14192
prefix="$acl_save_prefix"
14194
if test "X$x" = "X-L$additional_libdir"; then
14199
if test -z "$haveit"; then
14200
if test -d "$additional_libdir"; then
14201
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14208
dir=`echo "X$dep" | sed -e 's/^X-R//'`
14209
if test "$enable_rpath" != no; then
14211
for x in $rpathdirs; do
14212
if test "X$x" = "X$dir"; then
14217
if test -z "$haveit"; then
14218
rpathdirs="$rpathdirs $dir"
14221
for x in $ltrpathdirs; do
14222
if test "X$x" = "X$dir"; then
14227
if test -z "$haveit"; then
14228
ltrpathdirs="$ltrpathdirs $dir"
14233
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14236
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14239
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14240
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14246
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14247
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14253
if test "X$rpathdirs" != "X"; then
14254
if test -n "$acl_hardcode_libdir_separator"; then
14256
for found_dir in $rpathdirs; do
14257
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14259
acl_save_libdir="$libdir"
14261
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14262
libdir="$acl_save_libdir"
14263
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14265
for found_dir in $rpathdirs; do
14266
acl_save_libdir="$libdir"
14267
libdir="$found_dir"
14268
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14269
libdir="$acl_save_libdir"
14270
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14274
if test "X$ltrpathdirs" != "X"; then
14275
for found_dir in $ltrpathdirs; do
14276
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14281
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14282
if eval \${$gt_func_gnugettext_libintl+:} false; then :
14283
$as_echo_n "(cached) " >&6
14285
gt_save_CPPFLAGS="$CPPFLAGS"
14286
CPPFLAGS="$CPPFLAGS $INCINTL"
14287
gt_save_LIBS="$LIBS"
14288
LIBS="$LIBS $LIBINTL"
14289
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290
/* end confdefs.h. */
14291
#include <libintl.h>
14292
$gt_revision_test_code
14293
extern int _nl_msg_cat_cntr;
14298
const char *_nl_expand_alias (const char *);
14302
bindtextdomain ("", "");
14303
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14308
if ac_fn_c_try_link "$LINENO"; then :
14309
eval "$gt_func_gnugettext_libintl=yes"
14311
eval "$gt_func_gnugettext_libintl=no"
14313
rm -f core conftest.err conftest.$ac_objext \
14314
conftest$ac_exeext conftest.$ac_ext
14315
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14316
LIBS="$LIBS $LIBICONV"
14317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318
/* end confdefs.h. */
14319
#include <libintl.h>
14320
$gt_revision_test_code
14321
extern int _nl_msg_cat_cntr;
14326
const char *_nl_expand_alias (const char *);
14330
bindtextdomain ("", "");
14331
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14336
if ac_fn_c_try_link "$LINENO"; then :
14337
LIBINTL="$LIBINTL $LIBICONV"
14338
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14339
eval "$gt_func_gnugettext_libintl=yes"
14342
rm -f core conftest.err conftest.$ac_objext \
14343
conftest$ac_exeext conftest.$ac_ext
14345
CPPFLAGS="$gt_save_CPPFLAGS"
14346
LIBS="$gt_save_LIBS"
14348
eval ac_res=\$$gt_func_gnugettext_libintl
14349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14350
$as_echo "$ac_res" >&6; }
14353
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14354
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14355
&& test "$PACKAGE" != gettext-runtime \
14356
&& test "$PACKAGE" != gettext-tools; }; then
14357
gt_use_preinstalled_gnugettext=yes
14366
if test -n "$INTL_MACOSX_LIBS"; then
14367
if test "$gt_use_preinstalled_gnugettext" = "yes" \
14368
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
14369
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14370
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14374
if test "$gt_use_preinstalled_gnugettext" = "yes" \
14375
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
14377
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14385
$as_echo_n "checking whether to use NLS... " >&6; }
14386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14387
$as_echo "$USE_NLS" >&6; }
14388
if test "$USE_NLS" = "yes"; then
14389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14390
$as_echo_n "checking where the gettext function comes from... " >&6; }
14391
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14392
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14393
gt_source="external libintl"
14398
gt_source="included intl directory"
14400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14401
$as_echo "$gt_source" >&6; }
14404
if test "$USE_NLS" = "yes"; then
14406
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14407
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14409
$as_echo_n "checking how to link with libintl... " >&6; }
14410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14411
$as_echo "$LIBINTL" >&6; }
14413
for element in $INCINTL; do
14415
for x in $CPPFLAGS; do
14417
acl_save_prefix="$prefix"
14418
prefix="$acl_final_prefix"
14419
acl_save_exec_prefix="$exec_prefix"
14420
exec_prefix="$acl_final_exec_prefix"
14422
exec_prefix="$acl_save_exec_prefix"
14423
prefix="$acl_save_prefix"
14425
if test "X$x" = "X$element"; then
14430
if test -z "$haveit"; then
14431
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14438
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14441
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14450
INTLLIBS="$LIBINTL"
14458
12557
GETTEXT_PACKAGE=gnome-control-center-2.0