12521
GETTEXT_MACRO_VERSION=0.17
12526
# Prepare PATH_SEPARATOR.
12527
# The user is always right.
12528
if test "${PATH_SEPARATOR+set}" != set; then
12529
echo "#! /bin/sh" >conf$$.sh
12530
echo "exit 0" >>conf$$.sh
12532
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12540
# Find out how to test for executable files. Don't use a zero-byte file,
12541
# as systems may use methods other than mode bits to determine executability.
12542
cat >conf$$.file <<_ASEOF
12546
chmod +x conf$$.file
12547
if test -x conf$$.file >/dev/null 2>&1; then
12548
ac_executable_p="test -x"
12550
ac_executable_p="test -f"
12554
# Extract the first word of "msgfmt", so it can be a program name with args.
12555
set dummy msgfmt; ac_word=$2
12556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557
$as_echo_n "checking for $ac_word... " >&6; }
12558
if test "${ac_cv_path_MSGFMT+set}" = set; then :
12559
$as_echo_n "(cached) " >&6
12563
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12566
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12567
for ac_dir in $PATH; do
12569
test -z "$ac_dir" && ac_dir=.
12570
for ac_exec_ext in '' $ac_executable_extensions; do
12571
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12572
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12573
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12574
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12575
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12582
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12586
MSGFMT="$ac_cv_path_MSGFMT"
12587
if test "$MSGFMT" != ":"; then
12588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12589
$as_echo "$MSGFMT" >&6; }
12591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592
$as_echo "no" >&6; }
12595
# Extract the first word of "gmsgfmt", so it can be a program name with args.
12596
set dummy gmsgfmt; ac_word=$2
12597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598
$as_echo_n "checking for $ac_word... " >&6; }
12599
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12600
$as_echo_n "(cached) " >&6
12604
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608
for as_dir in $PATH
12611
test -z "$as_dir" && as_dir=.
12612
for ac_exec_ext in '' $ac_executable_extensions; do
12613
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12615
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12626
GMSGFMT=$ac_cv_path_GMSGFMT
12627
if test -n "$GMSGFMT"; then
12628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12629
$as_echo "$GMSGFMT" >&6; }
12631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632
$as_echo "no" >&6; }
12637
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12638
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12639
*) MSGFMT_015=$MSGFMT ;;
12642
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12643
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12644
*) GMSGFMT_015=$GMSGFMT ;;
12649
# Prepare PATH_SEPARATOR.
12650
# The user is always right.
12651
if test "${PATH_SEPARATOR+set}" != set; then
12652
echo "#! /bin/sh" >conf$$.sh
12653
echo "exit 0" >>conf$$.sh
12655
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12663
# Find out how to test for executable files. Don't use a zero-byte file,
12664
# as systems may use methods other than mode bits to determine executability.
12665
cat >conf$$.file <<_ASEOF
12669
chmod +x conf$$.file
12670
if test -x conf$$.file >/dev/null 2>&1; then
12671
ac_executable_p="test -x"
12673
ac_executable_p="test -f"
12677
# Extract the first word of "xgettext", so it can be a program name with args.
12678
set dummy xgettext; ac_word=$2
12679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12680
$as_echo_n "checking for $ac_word... " >&6; }
12681
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12682
$as_echo_n "(cached) " >&6
12684
case "$XGETTEXT" in
12686
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12689
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12690
for ac_dir in $PATH; do
12692
test -z "$ac_dir" && ac_dir=.
12693
for ac_exec_ext in '' $ac_executable_extensions; do
12694
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12695
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12696
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12697
(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
12698
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12705
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12709
XGETTEXT="$ac_cv_path_XGETTEXT"
12710
if test "$XGETTEXT" != ":"; then
12711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12712
$as_echo "$XGETTEXT" >&6; }
12714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715
$as_echo "no" >&6; }
12720
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12721
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12722
*) XGETTEXT_015=$XGETTEXT ;;
12727
# Prepare PATH_SEPARATOR.
12728
# The user is always right.
12729
if test "${PATH_SEPARATOR+set}" != set; then
12730
echo "#! /bin/sh" >conf$$.sh
12731
echo "exit 0" >>conf$$.sh
12733
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12741
# Find out how to test for executable files. Don't use a zero-byte file,
12742
# as systems may use methods other than mode bits to determine executability.
12743
cat >conf$$.file <<_ASEOF
12747
chmod +x conf$$.file
12748
if test -x conf$$.file >/dev/null 2>&1; then
12749
ac_executable_p="test -x"
12751
ac_executable_p="test -f"
12755
# Extract the first word of "msgmerge", so it can be a program name with args.
12756
set dummy msgmerge; ac_word=$2
12757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758
$as_echo_n "checking for $ac_word... " >&6; }
12759
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12760
$as_echo_n "(cached) " >&6
12762
case "$MSGMERGE" in
12764
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12767
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12768
for ac_dir in $PATH; do
12770
test -z "$ac_dir" && ac_dir=.
12771
for ac_exec_ext in '' $ac_executable_extensions; do
12772
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12773
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12774
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12775
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12782
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12786
MSGMERGE="$ac_cv_path_MSGMERGE"
12787
if test "$MSGMERGE" != ":"; then
12788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12789
$as_echo "$MSGMERGE" >&6; }
12791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792
$as_echo "no" >&6; }
12796
test -n "$localedir" || localedir='${datadir}/locale'
12799
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12802
ac_config_commands="$ac_config_commands po-directories"
12806
if test "X$prefix" = "XNONE"; then
12807
acl_final_prefix="$ac_default_prefix"
12809
acl_final_prefix="$prefix"
12811
if test "X$exec_prefix" = "XNONE"; then
12812
acl_final_exec_prefix='${prefix}'
12814
acl_final_exec_prefix="$exec_prefix"
12816
acl_save_prefix="$prefix"
12817
prefix="$acl_final_prefix"
12818
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12819
prefix="$acl_save_prefix"
12822
# Check whether --with-gnu-ld was given.
12823
if test "${with_gnu_ld+set}" = set; then :
12824
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12829
# Prepare PATH_SEPARATOR.
12830
# The user is always right.
12831
if test "${PATH_SEPARATOR+set}" != set; then
12832
echo "#! /bin/sh" >conf$$.sh
12833
echo "exit 0" >>conf$$.sh
12835
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12843
if test "$GCC" = yes; then
12844
# Check if gcc -print-prog-name=ld gives a path.
12845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12846
$as_echo_n "checking for ld used by GCC... " >&6; }
12849
# gcc leaves a trailing carriage return which upsets mingw
12850
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12852
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12855
# Accept absolute paths.
12856
[\\/]* | [A-Za-z]:[\\/]*)
12857
re_direlt='/[^/][^/]*/\.\./'
12858
# Canonicalize the path of ld
12859
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12860
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12861
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12863
test -z "$LD" && LD="$ac_prog"
12866
# If it fails, then pretend we aren't using GCC.
12870
# If it is relative, then search for the first ld in PATH.
12871
with_gnu_ld=unknown
12874
elif test "$with_gnu_ld" = yes; then
12875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12876
$as_echo_n "checking for GNU ld... " >&6; }
12878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12879
$as_echo_n "checking for non-GNU ld... " >&6; }
12881
if test "${acl_cv_path_LD+set}" = set; then :
12882
$as_echo_n "(cached) " >&6
12884
if test -z "$LD"; then
12885
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12886
for ac_dir in $PATH; do
12887
test -z "$ac_dir" && ac_dir=.
12888
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12889
acl_cv_path_LD="$ac_dir/$ac_prog"
12890
# Check to see if the program is GNU ld. I'd rather use --version,
12891
# but apparently some GNU ld's only accept -v.
12892
# Break only if it was the GNU/non-GNU ld that we prefer.
12893
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12894
*GNU* | *'with BFD'*)
12895
test "$with_gnu_ld" != no && break ;;
12897
test "$with_gnu_ld" != yes && break ;;
12903
acl_cv_path_LD="$LD" # Let the user override the test with a path.
12907
LD="$acl_cv_path_LD"
12908
if test -n "$LD"; then
12909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12910
$as_echo "$LD" >&6; }
12912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913
$as_echo "no" >&6; }
12915
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12917
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12918
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12919
$as_echo_n "(cached) " >&6
12921
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
12922
case `$LD -v 2>&1 </dev/null` in
12923
*GNU* | *'with BFD'*)
12924
acl_cv_prog_gnu_ld=yes ;;
12926
acl_cv_prog_gnu_ld=no ;;
12929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12930
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12931
with_gnu_ld=$acl_cv_prog_gnu_ld
12936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12937
$as_echo_n "checking for shared library run path origin... " >&6; }
12938
if test "${acl_cv_rpath+set}" = set; then :
12939
$as_echo_n "(cached) " >&6
12942
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12943
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12945
rm -f ./conftest.sh
12949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12950
$as_echo "$acl_cv_rpath" >&6; }
12952
acl_libext="$acl_cv_libext"
12953
acl_shlibext="$acl_cv_shlibext"
12954
acl_libname_spec="$acl_cv_libname_spec"
12955
acl_library_names_spec="$acl_cv_library_names_spec"
12956
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12957
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12958
acl_hardcode_direct="$acl_cv_hardcode_direct"
12959
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12960
# Check whether --enable-rpath was given.
12961
if test "${enable_rpath+set}" = set; then :
12962
enableval=$enable_rpath; :
12970
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12971
if test -n "$searchpath"; then
12972
acl_save_IFS="${IFS= }"; IFS=":"
12973
for searchdir in $searchpath; do
12974
if test -d "$searchdir"; then
12975
case "$searchdir" in
12976
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12977
*) searchdir=`cd "$searchdir" && pwd`
12978
case "$searchdir" in
12979
*/lib64 ) acl_libdirstem=lib64 ;;
12984
IFS="$acl_save_IFS"
12997
acl_save_prefix="$prefix"
12998
prefix="$acl_final_prefix"
12999
acl_save_exec_prefix="$exec_prefix"
13000
exec_prefix="$acl_final_exec_prefix"
13002
eval additional_includedir=\"$includedir\"
13003
eval additional_libdir=\"$libdir\"
13005
exec_prefix="$acl_save_exec_prefix"
13006
prefix="$acl_save_prefix"
13009
# Check whether --with-libiconv-prefix was given.
13010
if test "${with_libiconv_prefix+set}" = set; then :
13011
withval=$with_libiconv_prefix;
13012
if test "X$withval" = "Xno"; then
13015
if test "X$withval" = "X"; then
13017
acl_save_prefix="$prefix"
13018
prefix="$acl_final_prefix"
13019
acl_save_exec_prefix="$exec_prefix"
13020
exec_prefix="$acl_final_exec_prefix"
13022
eval additional_includedir=\"$includedir\"
13023
eval additional_libdir=\"$libdir\"
13025
exec_prefix="$acl_save_exec_prefix"
13026
prefix="$acl_save_prefix"
13029
additional_includedir="$withval/include"
13030
additional_libdir="$withval/$acl_libdirstem"
13042
names_already_handled=
13043
names_next_round='iconv '
13044
while test -n "$names_next_round"; do
13045
names_this_round="$names_next_round"
13047
for name in $names_this_round; do
13049
for n in $names_already_handled; do
13050
if test "$n" = "$name"; then
13051
already_handled=yes
13055
if test -z "$already_handled"; then
13056
names_already_handled="$names_already_handled $name"
13057
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13058
eval value=\"\$HAVE_LIB$uppername\"
13059
if test -n "$value"; then
13060
if test "$value" = yes; then
13061
eval value=\"\$LIB$uppername\"
13062
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13063
eval value=\"\$LTLIB$uppername\"
13064
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13073
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13074
if test -n "$acl_shlibext"; then
13075
shrext=".$acl_shlibext" # typically: shrext=.so
13079
if test $use_additional = yes; then
13080
dir="$additional_libdir"
13081
if test -n "$acl_shlibext"; then
13082
if test -f "$dir/$libname$shrext"; then
13084
found_so="$dir/$libname$shrext"
13086
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13087
ver=`(cd "$dir" && \
13088
for f in "$libname$shrext".*; do echo "$f"; done \
13089
| sed -e "s,^$libname$shrext\\\\.,," \
13090
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13091
| sed 1q ) 2>/dev/null`
13092
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13094
found_so="$dir/$libname$shrext.$ver"
13097
eval library_names=\"$acl_library_names_spec\"
13098
for f in $library_names; do
13099
if test -f "$dir/$f"; then
13108
if test "X$found_dir" = "X"; then
13109
if test -f "$dir/$libname.$acl_libext"; then
13111
found_a="$dir/$libname.$acl_libext"
13114
if test "X$found_dir" != "X"; then
13115
if test -f "$dir/$libname.la"; then
13116
found_la="$dir/$libname.la"
13120
if test "X$found_dir" = "X"; then
13121
for x in $LDFLAGS $LTLIBICONV; do
13123
acl_save_prefix="$prefix"
13124
prefix="$acl_final_prefix"
13125
acl_save_exec_prefix="$exec_prefix"
13126
exec_prefix="$acl_final_exec_prefix"
13128
exec_prefix="$acl_save_exec_prefix"
13129
prefix="$acl_save_prefix"
13133
dir=`echo "X$x" | sed -e 's/^X-L//'`
13134
if test -n "$acl_shlibext"; then
13135
if test -f "$dir/$libname$shrext"; then
13137
found_so="$dir/$libname$shrext"
13139
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13140
ver=`(cd "$dir" && \
13141
for f in "$libname$shrext".*; do echo "$f"; done \
13142
| sed -e "s,^$libname$shrext\\\\.,," \
13143
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13144
| sed 1q ) 2>/dev/null`
13145
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13147
found_so="$dir/$libname$shrext.$ver"
13150
eval library_names=\"$acl_library_names_spec\"
13151
for f in $library_names; do
13152
if test -f "$dir/$f"; then
13161
if test "X$found_dir" = "X"; then
13162
if test -f "$dir/$libname.$acl_libext"; then
13164
found_a="$dir/$libname.$acl_libext"
13167
if test "X$found_dir" != "X"; then
13168
if test -f "$dir/$libname.la"; then
13169
found_la="$dir/$libname.la"
13174
if test "X$found_dir" != "X"; then
13179
if test "X$found_dir" != "X"; then
13180
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13181
if test "X$found_so" != "X"; then
13182
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13183
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13186
for x in $ltrpathdirs; do
13187
if test "X$x" = "X$found_dir"; then
13192
if test -z "$haveit"; then
13193
ltrpathdirs="$ltrpathdirs $found_dir"
13195
if test "$acl_hardcode_direct" = yes; then
13196
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13198
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13199
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13201
for x in $rpathdirs; do
13202
if test "X$x" = "X$found_dir"; then
13207
if test -z "$haveit"; then
13208
rpathdirs="$rpathdirs $found_dir"
13212
for x in $LDFLAGS $LIBICONV; do
13214
acl_save_prefix="$prefix"
13215
prefix="$acl_final_prefix"
13216
acl_save_exec_prefix="$exec_prefix"
13217
exec_prefix="$acl_final_exec_prefix"
13219
exec_prefix="$acl_save_exec_prefix"
13220
prefix="$acl_save_prefix"
13222
if test "X$x" = "X-L$found_dir"; then
13227
if test -z "$haveit"; then
13228
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13230
if test "$acl_hardcode_minus_L" != no; then
13231
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13233
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13239
if test "X$found_a" != "X"; then
13240
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13242
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13245
additional_includedir=
13246
case "$found_dir" in
13247
*/$acl_libdirstem | */$acl_libdirstem/)
13248
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13249
LIBICONV_PREFIX="$basedir"
13250
additional_includedir="$basedir/include"
13253
if test "X$additional_includedir" != "X"; then
13254
if test "X$additional_includedir" != "X/usr/include"; then
13256
if test "X$additional_includedir" = "X/usr/local/include"; then
13257
if test -n "$GCC"; then
13259
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13263
if test -z "$haveit"; then
13264
for x in $CPPFLAGS $INCICONV; do
13266
acl_save_prefix="$prefix"
13267
prefix="$acl_final_prefix"
13268
acl_save_exec_prefix="$exec_prefix"
13269
exec_prefix="$acl_final_exec_prefix"
13271
exec_prefix="$acl_save_exec_prefix"
13272
prefix="$acl_save_prefix"
13274
if test "X$x" = "X-I$additional_includedir"; then
13279
if test -z "$haveit"; then
13280
if test -d "$additional_includedir"; then
13281
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13287
if test -n "$found_la"; then
13288
save_libdir="$libdir"
13289
case "$found_la" in
13290
*/* | *\\*) . "$found_la" ;;
13291
*) . "./$found_la" ;;
13293
libdir="$save_libdir"
13294
for dep in $dependency_libs; do
13297
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13298
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13300
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13301
if test -n "$GCC"; then
13303
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13307
if test -z "$haveit"; then
13309
for x in $LDFLAGS $LIBICONV; do
13311
acl_save_prefix="$prefix"
13312
prefix="$acl_final_prefix"
13313
acl_save_exec_prefix="$exec_prefix"
13314
exec_prefix="$acl_final_exec_prefix"
13316
exec_prefix="$acl_save_exec_prefix"
13317
prefix="$acl_save_prefix"
13319
if test "X$x" = "X-L$additional_libdir"; then
13324
if test -z "$haveit"; then
13325
if test -d "$additional_libdir"; then
13326
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13330
for x in $LDFLAGS $LTLIBICONV; do
13332
acl_save_prefix="$prefix"
13333
prefix="$acl_final_prefix"
13334
acl_save_exec_prefix="$exec_prefix"
13335
exec_prefix="$acl_final_exec_prefix"
13337
exec_prefix="$acl_save_exec_prefix"
13338
prefix="$acl_save_prefix"
13340
if test "X$x" = "X-L$additional_libdir"; then
13345
if test -z "$haveit"; then
13346
if test -d "$additional_libdir"; then
13347
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13354
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13355
if test "$enable_rpath" != no; then
13357
for x in $rpathdirs; do
13358
if test "X$x" = "X$dir"; then
13363
if test -z "$haveit"; then
13364
rpathdirs="$rpathdirs $dir"
13367
for x in $ltrpathdirs; do
13368
if test "X$x" = "X$dir"; then
13373
if test -z "$haveit"; then
13374
ltrpathdirs="$ltrpathdirs $dir"
13379
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13382
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13385
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13386
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13392
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13393
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13399
if test "X$rpathdirs" != "X"; then
13400
if test -n "$acl_hardcode_libdir_separator"; then
13402
for found_dir in $rpathdirs; do
13403
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13405
acl_save_libdir="$libdir"
13407
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13408
libdir="$acl_save_libdir"
13409
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13411
for found_dir in $rpathdirs; do
13412
acl_save_libdir="$libdir"
13413
libdir="$found_dir"
13414
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13415
libdir="$acl_save_libdir"
13416
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13420
if test "X$ltrpathdirs" != "X"; then
13421
for found_dir in $ltrpathdirs; do
13422
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13451
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13452
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
13453
$as_echo_n "(cached) " >&6
13455
gt_save_LIBS="$LIBS"
13456
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458
/* end confdefs.h. */
13459
#include <CoreFoundation/CFPreferences.h>
13463
CFPreferencesCopyAppValue(NULL, NULL)
13468
if ac_fn_c_try_link "$LINENO"; then :
13469
gt_cv_func_CFPreferencesCopyAppValue=yes
13471
gt_cv_func_CFPreferencesCopyAppValue=no
13473
rm -f core conftest.err conftest.$ac_objext \
13474
conftest$ac_exeext conftest.$ac_ext
13475
LIBS="$gt_save_LIBS"
13477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13478
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13479
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13481
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13485
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13486
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
13487
$as_echo_n "(cached) " >&6
13489
gt_save_LIBS="$LIBS"
13490
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492
/* end confdefs.h. */
13493
#include <CoreFoundation/CFLocale.h>
13497
CFLocaleCopyCurrent();
13502
if ac_fn_c_try_link "$LINENO"; then :
13503
gt_cv_func_CFLocaleCopyCurrent=yes
13505
gt_cv_func_CFLocaleCopyCurrent=no
13507
rm -f core conftest.err conftest.$ac_objext \
13508
conftest$ac_exeext conftest.$ac_ext
13509
LIBS="$gt_save_LIBS"
13511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13512
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13513
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13515
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13519
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13520
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13532
case " $gt_needs " in
13533
*" need-formatstring-macros "*) gt_api_version=3 ;;
13534
*" need-ngettext "*) gt_api_version=2 ;;
13535
*) gt_api_version=1 ;;
13537
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13538
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13540
if test "$USE_NLS" = "yes"; then
13541
gt_use_preinstalled_gnugettext=no
13544
if test $gt_api_version -ge 3; then
13545
gt_revision_test_code='
13546
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13547
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13549
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13552
gt_revision_test_code=
13554
if test $gt_api_version -ge 2; then
13555
gt_expression_test_code=' + * ngettext ("", "", 0)'
13557
gt_expression_test_code=
13560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13561
$as_echo_n "checking for GNU gettext in libc... " >&6; }
13562
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
13563
$as_echo_n "(cached) " >&6
13565
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566
/* end confdefs.h. */
13567
#include <libintl.h>
13568
$gt_revision_test_code
13569
extern int _nl_msg_cat_cntr;
13570
extern int *_nl_domain_bindings;
13574
bindtextdomain ("", "");
13575
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13580
if ac_fn_c_try_link "$LINENO"; then :
13581
eval "$gt_func_gnugettext_libc=yes"
13583
eval "$gt_func_gnugettext_libc=no"
13585
rm -f core conftest.err conftest.$ac_objext \
13586
conftest$ac_exeext conftest.$ac_ext
13588
eval ac_res=\$$gt_func_gnugettext_libc
13589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13590
$as_echo "$ac_res" >&6; }
13592
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13598
am_save_CPPFLAGS="$CPPFLAGS"
13600
for element in $INCICONV; do
13602
for x in $CPPFLAGS; do
13604
acl_save_prefix="$prefix"
13605
prefix="$acl_final_prefix"
13606
acl_save_exec_prefix="$exec_prefix"
13607
exec_prefix="$acl_final_exec_prefix"
13609
exec_prefix="$acl_save_exec_prefix"
13610
prefix="$acl_save_prefix"
13612
if test "X$x" = "X$element"; then
13617
if test -z "$haveit"; then
13618
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13624
$as_echo_n "checking for iconv... " >&6; }
13625
if test "${am_cv_func_iconv+set}" = set; then :
13626
$as_echo_n "(cached) " >&6
13629
am_cv_func_iconv="no, consider installing GNU libiconv"
13631
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632
/* end confdefs.h. */
13633
#include <stdlib.h>
13638
iconv_t cd = iconv_open("","");
13639
iconv(cd,NULL,NULL,NULL,NULL);
13645
if ac_fn_c_try_link "$LINENO"; then :
13646
am_cv_func_iconv=yes
13648
rm -f core conftest.err conftest.$ac_objext \
13649
conftest$ac_exeext conftest.$ac_ext
13650
if test "$am_cv_func_iconv" != yes; then
13651
am_save_LIBS="$LIBS"
13652
LIBS="$LIBS $LIBICONV"
13653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654
/* end confdefs.h. */
13655
#include <stdlib.h>
13660
iconv_t cd = iconv_open("","");
13661
iconv(cd,NULL,NULL,NULL,NULL);
13667
if ac_fn_c_try_link "$LINENO"; then :
13668
am_cv_lib_iconv=yes
13669
am_cv_func_iconv=yes
13671
rm -f core conftest.err conftest.$ac_objext \
13672
conftest$ac_exeext conftest.$ac_ext
13673
LIBS="$am_save_LIBS"
13677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13678
$as_echo "$am_cv_func_iconv" >&6; }
13679
if test "$am_cv_func_iconv" = yes; then
13680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13681
$as_echo_n "checking for working iconv... " >&6; }
13682
if test "${am_cv_func_iconv_works+set}" = set; then :
13683
$as_echo_n "(cached) " >&6
13686
am_save_LIBS="$LIBS"
13687
if test $am_cv_lib_iconv = yes; then
13688
LIBS="$LIBS $LIBICONV"
13690
if test "$cross_compiling" = yes; then :
13692
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13693
*) am_cv_func_iconv_works="guessing yes" ;;
13696
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697
/* end confdefs.h. */
13700
#include <string.h>
13703
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13706
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13707
if (cd_utf8_to_88591 != (iconv_t)(-1))
13709
static const char input[] = "\342\202\254"; /* EURO SIGN */
13711
const char *inptr = input;
13712
size_t inbytesleft = strlen (input);
13713
char *outptr = buf;
13714
size_t outbytesleft = sizeof (buf);
13715
size_t res = iconv (cd_utf8_to_88591,
13716
(char **) &inptr, &inbytesleft,
13717
&outptr, &outbytesleft);
13722
#if 0 /* This bug could be worked around by the caller. */
13723
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13725
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13726
if (cd_88591_to_utf8 != (iconv_t)(-1))
13728
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13730
const char *inptr = input;
13731
size_t inbytesleft = strlen (input);
13732
char *outptr = buf;
13733
size_t outbytesleft = sizeof (buf);
13734
size_t res = iconv (cd_88591_to_utf8,
13735
(char **) &inptr, &inbytesleft,
13736
&outptr, &outbytesleft);
13742
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13744
if (/* Try standardized names. */
13745
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13746
/* Try IRIX, OSF/1 names. */
13747
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13748
/* Try AIX names. */
13749
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13750
/* Try HP-UX names. */
13751
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13756
if ac_fn_c_try_run "$LINENO"; then :
13757
am_cv_func_iconv_works=yes
13759
am_cv_func_iconv_works=no
13761
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13762
conftest.$ac_objext conftest.beam conftest.$ac_ext
13765
LIBS="$am_save_LIBS"
13768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13769
$as_echo "$am_cv_func_iconv_works" >&6; }
13770
case "$am_cv_func_iconv_works" in
13771
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
13772
*) am_func_iconv=yes ;;
13775
am_func_iconv=no am_cv_lib_iconv=no
13777
if test "$am_func_iconv" = yes; then
13779
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13782
if test "$am_cv_lib_iconv" = yes; then
13783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13784
$as_echo_n "checking how to link with libiconv... " >&6; }
13785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13786
$as_echo "$LIBICONV" >&6; }
13788
CPPFLAGS="$am_save_CPPFLAGS"
13802
acl_save_prefix="$prefix"
13803
prefix="$acl_final_prefix"
13804
acl_save_exec_prefix="$exec_prefix"
13805
exec_prefix="$acl_final_exec_prefix"
13807
eval additional_includedir=\"$includedir\"
13808
eval additional_libdir=\"$libdir\"
13810
exec_prefix="$acl_save_exec_prefix"
13811
prefix="$acl_save_prefix"
13814
# Check whether --with-libintl-prefix was given.
13815
if test "${with_libintl_prefix+set}" = set; then :
13816
withval=$with_libintl_prefix;
13817
if test "X$withval" = "Xno"; then
13820
if test "X$withval" = "X"; then
13822
acl_save_prefix="$prefix"
13823
prefix="$acl_final_prefix"
13824
acl_save_exec_prefix="$exec_prefix"
13825
exec_prefix="$acl_final_exec_prefix"
13827
eval additional_includedir=\"$includedir\"
13828
eval additional_libdir=\"$libdir\"
13830
exec_prefix="$acl_save_exec_prefix"
13831
prefix="$acl_save_prefix"
13834
additional_includedir="$withval/include"
13835
additional_libdir="$withval/$acl_libdirstem"
13847
names_already_handled=
13848
names_next_round='intl '
13849
while test -n "$names_next_round"; do
13850
names_this_round="$names_next_round"
13852
for name in $names_this_round; do
13854
for n in $names_already_handled; do
13855
if test "$n" = "$name"; then
13856
already_handled=yes
13860
if test -z "$already_handled"; then
13861
names_already_handled="$names_already_handled $name"
13862
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13863
eval value=\"\$HAVE_LIB$uppername\"
13864
if test -n "$value"; then
13865
if test "$value" = yes; then
13866
eval value=\"\$LIB$uppername\"
13867
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13868
eval value=\"\$LTLIB$uppername\"
13869
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13878
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13879
if test -n "$acl_shlibext"; then
13880
shrext=".$acl_shlibext" # typically: shrext=.so
13884
if test $use_additional = yes; then
13885
dir="$additional_libdir"
13886
if test -n "$acl_shlibext"; then
13887
if test -f "$dir/$libname$shrext"; then
13889
found_so="$dir/$libname$shrext"
13891
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13892
ver=`(cd "$dir" && \
13893
for f in "$libname$shrext".*; do echo "$f"; done \
13894
| sed -e "s,^$libname$shrext\\\\.,," \
13895
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13896
| sed 1q ) 2>/dev/null`
13897
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13899
found_so="$dir/$libname$shrext.$ver"
13902
eval library_names=\"$acl_library_names_spec\"
13903
for f in $library_names; do
13904
if test -f "$dir/$f"; then
13913
if test "X$found_dir" = "X"; then
13914
if test -f "$dir/$libname.$acl_libext"; then
13916
found_a="$dir/$libname.$acl_libext"
13919
if test "X$found_dir" != "X"; then
13920
if test -f "$dir/$libname.la"; then
13921
found_la="$dir/$libname.la"
13925
if test "X$found_dir" = "X"; then
13926
for x in $LDFLAGS $LTLIBINTL; do
13928
acl_save_prefix="$prefix"
13929
prefix="$acl_final_prefix"
13930
acl_save_exec_prefix="$exec_prefix"
13931
exec_prefix="$acl_final_exec_prefix"
13933
exec_prefix="$acl_save_exec_prefix"
13934
prefix="$acl_save_prefix"
13938
dir=`echo "X$x" | sed -e 's/^X-L//'`
13939
if test -n "$acl_shlibext"; then
13940
if test -f "$dir/$libname$shrext"; then
13942
found_so="$dir/$libname$shrext"
13944
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13945
ver=`(cd "$dir" && \
13946
for f in "$libname$shrext".*; do echo "$f"; done \
13947
| sed -e "s,^$libname$shrext\\\\.,," \
13948
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13949
| sed 1q ) 2>/dev/null`
13950
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13952
found_so="$dir/$libname$shrext.$ver"
13955
eval library_names=\"$acl_library_names_spec\"
13956
for f in $library_names; do
13957
if test -f "$dir/$f"; then
13966
if test "X$found_dir" = "X"; then
13967
if test -f "$dir/$libname.$acl_libext"; then
13969
found_a="$dir/$libname.$acl_libext"
13972
if test "X$found_dir" != "X"; then
13973
if test -f "$dir/$libname.la"; then
13974
found_la="$dir/$libname.la"
13979
if test "X$found_dir" != "X"; then
13984
if test "X$found_dir" != "X"; then
13985
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13986
if test "X$found_so" != "X"; then
13987
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13988
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13991
for x in $ltrpathdirs; do
13992
if test "X$x" = "X$found_dir"; then
13997
if test -z "$haveit"; then
13998
ltrpathdirs="$ltrpathdirs $found_dir"
14000
if test "$acl_hardcode_direct" = yes; then
14001
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14003
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14004
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14006
for x in $rpathdirs; do
14007
if test "X$x" = "X$found_dir"; then
14012
if test -z "$haveit"; then
14013
rpathdirs="$rpathdirs $found_dir"
14017
for x in $LDFLAGS $LIBINTL; do
14019
acl_save_prefix="$prefix"
14020
prefix="$acl_final_prefix"
14021
acl_save_exec_prefix="$exec_prefix"
14022
exec_prefix="$acl_final_exec_prefix"
14024
exec_prefix="$acl_save_exec_prefix"
14025
prefix="$acl_save_prefix"
14027
if test "X$x" = "X-L$found_dir"; then
14032
if test -z "$haveit"; then
14033
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14035
if test "$acl_hardcode_minus_L" != no; then
14036
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14038
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14044
if test "X$found_a" != "X"; then
14045
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14047
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14050
additional_includedir=
14051
case "$found_dir" in
14052
*/$acl_libdirstem | */$acl_libdirstem/)
14053
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14054
LIBINTL_PREFIX="$basedir"
14055
additional_includedir="$basedir/include"
14058
if test "X$additional_includedir" != "X"; then
14059
if test "X$additional_includedir" != "X/usr/include"; then
14061
if test "X$additional_includedir" = "X/usr/local/include"; then
14062
if test -n "$GCC"; then
14064
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14068
if test -z "$haveit"; then
14069
for x in $CPPFLAGS $INCINTL; do
14071
acl_save_prefix="$prefix"
14072
prefix="$acl_final_prefix"
14073
acl_save_exec_prefix="$exec_prefix"
14074
exec_prefix="$acl_final_exec_prefix"
14076
exec_prefix="$acl_save_exec_prefix"
14077
prefix="$acl_save_prefix"
14079
if test "X$x" = "X-I$additional_includedir"; then
14084
if test -z "$haveit"; then
14085
if test -d "$additional_includedir"; then
14086
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14092
if test -n "$found_la"; then
14093
save_libdir="$libdir"
14094
case "$found_la" in
14095
*/* | *\\*) . "$found_la" ;;
14096
*) . "./$found_la" ;;
14098
libdir="$save_libdir"
14099
for dep in $dependency_libs; do
14102
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14103
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14105
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14106
if test -n "$GCC"; then
14108
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14112
if test -z "$haveit"; then
14114
for x in $LDFLAGS $LIBINTL; do
14116
acl_save_prefix="$prefix"
14117
prefix="$acl_final_prefix"
14118
acl_save_exec_prefix="$exec_prefix"
14119
exec_prefix="$acl_final_exec_prefix"
14121
exec_prefix="$acl_save_exec_prefix"
14122
prefix="$acl_save_prefix"
14124
if test "X$x" = "X-L$additional_libdir"; then
14129
if test -z "$haveit"; then
14130
if test -d "$additional_libdir"; then
14131
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14135
for x in $LDFLAGS $LTLIBINTL; do
14137
acl_save_prefix="$prefix"
14138
prefix="$acl_final_prefix"
14139
acl_save_exec_prefix="$exec_prefix"
14140
exec_prefix="$acl_final_exec_prefix"
14142
exec_prefix="$acl_save_exec_prefix"
14143
prefix="$acl_save_prefix"
14145
if test "X$x" = "X-L$additional_libdir"; then
14150
if test -z "$haveit"; then
14151
if test -d "$additional_libdir"; then
14152
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14159
dir=`echo "X$dep" | sed -e 's/^X-R//'`
14160
if test "$enable_rpath" != no; then
14162
for x in $rpathdirs; do
14163
if test "X$x" = "X$dir"; then
14168
if test -z "$haveit"; then
14169
rpathdirs="$rpathdirs $dir"
14172
for x in $ltrpathdirs; do
14173
if test "X$x" = "X$dir"; then
14178
if test -z "$haveit"; then
14179
ltrpathdirs="$ltrpathdirs $dir"
14184
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14187
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14190
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14191
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14197
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14198
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14204
if test "X$rpathdirs" != "X"; then
14205
if test -n "$acl_hardcode_libdir_separator"; then
14207
for found_dir in $rpathdirs; do
14208
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14210
acl_save_libdir="$libdir"
14212
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14213
libdir="$acl_save_libdir"
14214
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14216
for found_dir in $rpathdirs; do
14217
acl_save_libdir="$libdir"
14218
libdir="$found_dir"
14219
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14220
libdir="$acl_save_libdir"
14221
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14225
if test "X$ltrpathdirs" != "X"; then
14226
for found_dir in $ltrpathdirs; do
14227
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14232
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14233
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
14234
$as_echo_n "(cached) " >&6
14236
gt_save_CPPFLAGS="$CPPFLAGS"
14237
CPPFLAGS="$CPPFLAGS $INCINTL"
14238
gt_save_LIBS="$LIBS"
14239
LIBS="$LIBS $LIBINTL"
14240
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241
/* end confdefs.h. */
14242
#include <libintl.h>
14243
$gt_revision_test_code
14244
extern int _nl_msg_cat_cntr;
14249
const char *_nl_expand_alias (const char *);
14253
bindtextdomain ("", "");
14254
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14259
if ac_fn_c_try_link "$LINENO"; then :
14260
eval "$gt_func_gnugettext_libintl=yes"
14262
eval "$gt_func_gnugettext_libintl=no"
14264
rm -f core conftest.err conftest.$ac_objext \
14265
conftest$ac_exeext conftest.$ac_ext
14266
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14267
LIBS="$LIBS $LIBICONV"
14268
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269
/* end confdefs.h. */
14270
#include <libintl.h>
14271
$gt_revision_test_code
14272
extern int _nl_msg_cat_cntr;
14277
const char *_nl_expand_alias (const char *);
14281
bindtextdomain ("", "");
14282
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14287
if ac_fn_c_try_link "$LINENO"; then :
14288
LIBINTL="$LIBINTL $LIBICONV"
14289
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14290
eval "$gt_func_gnugettext_libintl=yes"
14293
rm -f core conftest.err conftest.$ac_objext \
14294
conftest$ac_exeext conftest.$ac_ext
14296
CPPFLAGS="$gt_save_CPPFLAGS"
14297
LIBS="$gt_save_LIBS"
14299
eval ac_res=\$$gt_func_gnugettext_libintl
14300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14301
$as_echo "$ac_res" >&6; }
14304
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14305
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14306
&& test "$PACKAGE" != gettext-runtime \
14307
&& test "$PACKAGE" != gettext-tools; }; then
14308
gt_use_preinstalled_gnugettext=yes
14317
if test -n "$INTL_MACOSX_LIBS"; then
14318
if test "$gt_use_preinstalled_gnugettext" = "yes" \
14319
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
14320
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14321
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14325
if test "$gt_use_preinstalled_gnugettext" = "yes" \
14326
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
14328
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14336
$as_echo_n "checking whether to use NLS... " >&6; }
14337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14338
$as_echo "$USE_NLS" >&6; }
14339
if test "$USE_NLS" = "yes"; then
14340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14341
$as_echo_n "checking where the gettext function comes from... " >&6; }
14342
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14343
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14344
gt_source="external libintl"
14349
gt_source="included intl directory"
14351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14352
$as_echo "$gt_source" >&6; }
14355
if test "$USE_NLS" = "yes"; then
14357
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14358
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14360
$as_echo_n "checking how to link with libintl... " >&6; }
14361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14362
$as_echo "$LIBINTL" >&6; }
14364
for element in $INCINTL; do
14366
for x in $CPPFLAGS; do
14368
acl_save_prefix="$prefix"
14369
prefix="$acl_final_prefix"
14370
acl_save_exec_prefix="$exec_prefix"
14371
exec_prefix="$acl_final_exec_prefix"
14373
exec_prefix="$acl_save_exec_prefix"
14374
prefix="$acl_save_prefix"
14376
if test "X$x" = "X$element"; then
14381
if test -z "$haveit"; then
14382
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14389
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14392
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14401
INTLLIBS="$LIBINTL"
14409
GETTEXT_PACKAGE=$PACKAGE_TARNAME
14412
cat >>confdefs.h <<_ACEOF
14413
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14418
12505
case "$am__api_version" in
14420
12507
as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5