18499
if test -n "$ac_aux_dir"; then
18500
case "$ac_aux_dir" in
18501
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
18502
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
18505
if test -z "$MKINSTALLDIRS"; then
18506
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
18511
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
18512
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
18513
# Check whether --enable-nls or --disable-nls was given.
18514
if test "${enable_nls+set}" = set; then
18515
enableval="$enable_nls"
18520
echo "$as_me:$LINENO: result: $USE_NLS" >&5
18521
echo "${ECHO_T}$USE_NLS" >&6
18528
# Prepare PATH_SEPARATOR.
18529
# The user is always right.
18530
if test "${PATH_SEPARATOR+set}" != set; then
18531
echo "#! /bin/sh" >conf$$.sh
18532
echo "exit 0" >>conf$$.sh
18534
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18542
# Find out how to test for executable files. Don't use a zero-byte file,
18543
# as systems may use methods other than mode bits to determine executability.
18544
cat >conf$$.file <<_ASEOF
18548
chmod +x conf$$.file
18549
if test -x conf$$.file >/dev/null 2>&1; then
18550
ac_executable_p="test -x"
18552
ac_executable_p="test -f"
18556
# Extract the first word of "msgfmt", so it can be a program name with args.
18557
set dummy msgfmt; ac_word=$2
18558
echo "$as_me:$LINENO: checking for $ac_word" >&5
18559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18560
if test "${ac_cv_path_MSGFMT+set}" = set; then
18561
echo $ECHO_N "(cached) $ECHO_C" >&6
18565
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18568
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18569
for ac_dir in $PATH; do
18571
test -z "$ac_dir" && ac_dir=.
18572
for ac_exec_ext in '' $ac_executable_extensions; do
18573
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18574
echo "$as_me: trying $ac_dir/$ac_word..." >&5
18575
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
18576
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18577
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18584
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18588
MSGFMT="$ac_cv_path_MSGFMT"
18589
if test "$MSGFMT" != ":"; then
18590
echo "$as_me:$LINENO: result: $MSGFMT" >&5
18591
echo "${ECHO_T}$MSGFMT" >&6
18593
echo "$as_me:$LINENO: result: no" >&5
18594
echo "${ECHO_T}no" >&6
18597
# Extract the first word of "gmsgfmt", so it can be a program name with args.
18598
set dummy gmsgfmt; ac_word=$2
18599
echo "$as_me:$LINENO: checking for $ac_word" >&5
18600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601
if test "${ac_cv_path_GMSGFMT+set}" = set; then
18602
echo $ECHO_N "(cached) $ECHO_C" >&6
18606
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610
for as_dir in $PATH
18613
test -z "$as_dir" && as_dir=.
18614
for ac_exec_ext in '' $ac_executable_extensions; do
18615
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18617
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18623
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18627
GMSGFMT=$ac_cv_path_GMSGFMT
18629
if test -n "$GMSGFMT"; then
18630
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
18631
echo "${ECHO_T}$GMSGFMT" >&6
18633
echo "$as_me:$LINENO: result: no" >&5
18634
echo "${ECHO_T}no" >&6
18639
# Prepare PATH_SEPARATOR.
18640
# The user is always right.
18641
if test "${PATH_SEPARATOR+set}" != set; then
18642
echo "#! /bin/sh" >conf$$.sh
18643
echo "exit 0" >>conf$$.sh
18645
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18653
# Find out how to test for executable files. Don't use a zero-byte file,
18654
# as systems may use methods other than mode bits to determine executability.
18655
cat >conf$$.file <<_ASEOF
18659
chmod +x conf$$.file
18660
if test -x conf$$.file >/dev/null 2>&1; then
18661
ac_executable_p="test -x"
18663
ac_executable_p="test -f"
18667
# Extract the first word of "xgettext", so it can be a program name with args.
18668
set dummy xgettext; ac_word=$2
18669
echo "$as_me:$LINENO: checking for $ac_word" >&5
18670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18671
if test "${ac_cv_path_XGETTEXT+set}" = set; then
18672
echo $ECHO_N "(cached) $ECHO_C" >&6
18674
case "$XGETTEXT" in
18676
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18679
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18680
for ac_dir in $PATH; do
18682
test -z "$ac_dir" && ac_dir=.
18683
for ac_exec_ext in '' $ac_executable_extensions; do
18684
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18685
echo "$as_me: trying $ac_dir/$ac_word..." >&5
18686
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
18687
(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
18688
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18695
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18699
XGETTEXT="$ac_cv_path_XGETTEXT"
18700
if test "$XGETTEXT" != ":"; then
18701
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
18702
echo "${ECHO_T}$XGETTEXT" >&6
18704
echo "$as_me:$LINENO: result: no" >&5
18705
echo "${ECHO_T}no" >&6
18711
# Prepare PATH_SEPARATOR.
18712
# The user is always right.
18713
if test "${PATH_SEPARATOR+set}" != set; then
18714
echo "#! /bin/sh" >conf$$.sh
18715
echo "exit 0" >>conf$$.sh
18717
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18725
# Find out how to test for executable files. Don't use a zero-byte file,
18726
# as systems may use methods other than mode bits to determine executability.
18727
cat >conf$$.file <<_ASEOF
18731
chmod +x conf$$.file
18732
if test -x conf$$.file >/dev/null 2>&1; then
18733
ac_executable_p="test -x"
18735
ac_executable_p="test -f"
18739
# Extract the first word of "msgmerge", so it can be a program name with args.
18740
set dummy msgmerge; ac_word=$2
18741
echo "$as_me:$LINENO: checking for $ac_word" >&5
18742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18743
if test "${ac_cv_path_MSGMERGE+set}" = set; then
18744
echo $ECHO_N "(cached) $ECHO_C" >&6
18746
case "$MSGMERGE" in
18748
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18751
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18752
for ac_dir in $PATH; do
18754
test -z "$ac_dir" && ac_dir=.
18755
for ac_exec_ext in '' $ac_executable_extensions; do
18756
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18757
echo "$as_me: trying $ac_dir/$ac_word..." >&5
18758
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18759
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18766
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18770
MSGMERGE="$ac_cv_path_MSGMERGE"
18771
if test "$MSGMERGE" != ":"; then
18772
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
18773
echo "${ECHO_T}$MSGMERGE" >&6
18775
echo "$as_me:$LINENO: result: no" >&5
18776
echo "${ECHO_T}no" >&6
18780
if test "$GMSGFMT" != ":"; then
18781
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18782
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18785
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18786
echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18787
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
18792
if test "$XGETTEXT" != ":"; then
18793
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18794
(if $XGETTEXT --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
18797
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
18798
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
18804
ac_config_commands="$ac_config_commands default-1"
18808
if test "X$prefix" = "XNONE"; then
18809
acl_final_prefix="$ac_default_prefix"
18811
acl_final_prefix="$prefix"
18813
if test "X$exec_prefix" = "XNONE"; then
18814
acl_final_exec_prefix='${prefix}'
18816
acl_final_exec_prefix="$exec_prefix"
18818
acl_save_prefix="$prefix"
18819
prefix="$acl_final_prefix"
18820
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18821
prefix="$acl_save_prefix"
18824
# Check whether --with-gnu-ld or --without-gnu-ld was given.
18825
if test "${with_gnu_ld+set}" = set; then
18826
withval="$with_gnu_ld"
18827
test "$withval" = no || with_gnu_ld=yes
18831
# Prepare PATH_SEPARATOR.
18832
# The user is always right.
18833
if test "${PATH_SEPARATOR+set}" != set; then
18834
echo "#! /bin/sh" >conf$$.sh
18835
echo "exit 0" >>conf$$.sh
18837
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18845
if test "$GCC" = yes; then
18846
# Check if gcc -print-prog-name=ld gives a path.
18847
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
18848
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
18851
# gcc leaves a trailing carriage return which upsets mingw
18852
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18854
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18857
# Accept absolute paths.
18858
[\\/]* | [A-Za-z]:[\\/]*)
18859
re_direlt='/[^/][^/]*/\.\./'
18860
# Canonicalize the path of ld
18861
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18862
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18863
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18865
test -z "$LD" && LD="$ac_prog"
18868
# If it fails, then pretend we aren't using GCC.
18872
# If it is relative, then search for the first ld in PATH.
18873
with_gnu_ld=unknown
18876
elif test "$with_gnu_ld" = yes; then
18877
echo "$as_me:$LINENO: checking for GNU ld" >&5
18878
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18880
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18881
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18883
if test "${acl_cv_path_LD+set}" = set; then
18884
echo $ECHO_N "(cached) $ECHO_C" >&6
18886
if test -z "$LD"; then
18887
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18888
for ac_dir in $PATH; do
18889
test -z "$ac_dir" && ac_dir=.
18890
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18891
acl_cv_path_LD="$ac_dir/$ac_prog"
18892
# Check to see if the program is GNU ld. I'd rather use --version,
18893
# but apparently some GNU ld's only accept -v.
18894
# Break only if it was the GNU/non-GNU ld that we prefer.
18895
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18896
*GNU* | *'with BFD'*)
18897
test "$with_gnu_ld" != no && break ;;
18899
test "$with_gnu_ld" != yes && break ;;
18905
acl_cv_path_LD="$LD" # Let the user override the test with a path.
18909
LD="$acl_cv_path_LD"
18910
if test -n "$LD"; then
18911
echo "$as_me:$LINENO: result: $LD" >&5
18912
echo "${ECHO_T}$LD" >&6
18914
echo "$as_me:$LINENO: result: no" >&5
18915
echo "${ECHO_T}no" >&6
18917
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18918
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18919
{ (exit 1); exit 1; }; }
18920
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18921
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18922
if test "${acl_cv_prog_gnu_ld+set}" = set; then
18923
echo $ECHO_N "(cached) $ECHO_C" >&6
18925
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
18926
case `$LD -v 2>&1 </dev/null` in
18927
*GNU* | *'with BFD'*)
18928
acl_cv_prog_gnu_ld=yes ;;
18930
acl_cv_prog_gnu_ld=no ;;
18933
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
18934
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
18935
with_gnu_ld=$acl_cv_prog_gnu_ld
18940
echo "$as_me:$LINENO: checking for shared library run path origin" >&5
18941
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
18942
if test "${acl_cv_rpath+set}" = set; then
18943
echo $ECHO_N "(cached) $ECHO_C" >&6
18946
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18947
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18949
rm -f ./conftest.sh
18953
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
18954
echo "${ECHO_T}$acl_cv_rpath" >&6
18956
libext="$acl_cv_libext"
18957
shlibext="$acl_cv_shlibext"
18958
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18959
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18960
hardcode_direct="$acl_cv_hardcode_direct"
18961
hardcode_minus_L="$acl_cv_hardcode_minus_L"
18962
# Check whether --enable-rpath or --disable-rpath was given.
18963
if test "${enable_rpath+set}" = set; then
18964
enableval="$enable_rpath"
18978
acl_save_prefix="$prefix"
18979
prefix="$acl_final_prefix"
18980
acl_save_exec_prefix="$exec_prefix"
18981
exec_prefix="$acl_final_exec_prefix"
18983
eval additional_includedir=\"$includedir\"
18984
eval additional_libdir=\"$libdir\"
18986
exec_prefix="$acl_save_exec_prefix"
18987
prefix="$acl_save_prefix"
18990
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
18991
if test "${with_libiconv_prefix+set}" = set; then
18992
withval="$with_libiconv_prefix"
18994
if test "X$withval" = "Xno"; then
18997
if test "X$withval" = "X"; then
18999
acl_save_prefix="$prefix"
19000
prefix="$acl_final_prefix"
19001
acl_save_exec_prefix="$exec_prefix"
19002
exec_prefix="$acl_final_exec_prefix"
19004
eval additional_includedir=\"$includedir\"
19005
eval additional_libdir=\"$libdir\"
19007
exec_prefix="$acl_save_exec_prefix"
19008
prefix="$acl_save_prefix"
19011
additional_includedir="$withval/include"
19012
additional_libdir="$withval/lib"
19022
names_already_handled=
19023
names_next_round='iconv '
19024
while test -n "$names_next_round"; do
19025
names_this_round="$names_next_round"
19027
for name in $names_this_round; do
19029
for n in $names_already_handled; do
19030
if test "$n" = "$name"; then
19031
already_handled=yes
19035
if test -z "$already_handled"; then
19036
names_already_handled="$names_already_handled $name"
19037
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19038
eval value=\"\$HAVE_LIB$uppername\"
19039
if test -n "$value"; then
19040
if test "$value" = yes; then
19041
eval value=\"\$LIB$uppername\"
19042
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19043
eval value=\"\$LTLIB$uppername\"
19044
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19053
if test $use_additional = yes; then
19054
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19055
found_dir="$additional_libdir"
19056
found_so="$additional_libdir/lib$name.$shlibext"
19057
if test -f "$additional_libdir/lib$name.la"; then
19058
found_la="$additional_libdir/lib$name.la"
19061
if test -f "$additional_libdir/lib$name.$libext"; then
19062
found_dir="$additional_libdir"
19063
found_a="$additional_libdir/lib$name.$libext"
19064
if test -f "$additional_libdir/lib$name.la"; then
19065
found_la="$additional_libdir/lib$name.la"
19070
if test "X$found_dir" = "X"; then
19071
for x in $LDFLAGS $LTLIBICONV; do
19073
acl_save_prefix="$prefix"
19074
prefix="$acl_final_prefix"
19075
acl_save_exec_prefix="$exec_prefix"
19076
exec_prefix="$acl_final_exec_prefix"
19078
exec_prefix="$acl_save_exec_prefix"
19079
prefix="$acl_save_prefix"
19083
dir=`echo "X$x" | sed -e 's/^X-L//'`
19084
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19086
found_so="$dir/lib$name.$shlibext"
19087
if test -f "$dir/lib$name.la"; then
19088
found_la="$dir/lib$name.la"
19091
if test -f "$dir/lib$name.$libext"; then
19093
found_a="$dir/lib$name.$libext"
19094
if test -f "$dir/lib$name.la"; then
19095
found_la="$dir/lib$name.la"
19101
if test "X$found_dir" != "X"; then
19106
if test "X$found_dir" != "X"; then
19107
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19108
if test "X$found_so" != "X"; then
19109
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19110
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19113
for x in $ltrpathdirs; do
19114
if test "X$x" = "X$found_dir"; then
19119
if test -z "$haveit"; then
19120
ltrpathdirs="$ltrpathdirs $found_dir"
19122
if test "$hardcode_direct" = yes; then
19123
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19125
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19126
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19128
for x in $rpathdirs; do
19129
if test "X$x" = "X$found_dir"; then
19134
if test -z "$haveit"; then
19135
rpathdirs="$rpathdirs $found_dir"
19139
for x in $LDFLAGS $LIBICONV; do
19141
acl_save_prefix="$prefix"
19142
prefix="$acl_final_prefix"
19143
acl_save_exec_prefix="$exec_prefix"
19144
exec_prefix="$acl_final_exec_prefix"
19146
exec_prefix="$acl_save_exec_prefix"
19147
prefix="$acl_save_prefix"
19149
if test "X$x" = "X-L$found_dir"; then
19154
if test -z "$haveit"; then
19155
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19157
if test "$hardcode_minus_L" != no; then
19158
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19160
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19166
if test "X$found_a" != "X"; then
19167
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19169
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19172
additional_includedir=
19173
case "$found_dir" in
19175
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19176
additional_includedir="$basedir/include"
19179
if test "X$additional_includedir" != "X"; then
19180
if test "X$additional_includedir" != "X/usr/include"; then
19182
if test "X$additional_includedir" = "X/usr/local/include"; then
19183
if test -n "$GCC"; then
19185
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19189
if test -z "$haveit"; then
19190
for x in $CPPFLAGS $INCICONV; do
19192
acl_save_prefix="$prefix"
19193
prefix="$acl_final_prefix"
19194
acl_save_exec_prefix="$exec_prefix"
19195
exec_prefix="$acl_final_exec_prefix"
19197
exec_prefix="$acl_save_exec_prefix"
19198
prefix="$acl_save_prefix"
19200
if test "X$x" = "X-I$additional_includedir"; then
19205
if test -z "$haveit"; then
19206
if test -d "$additional_includedir"; then
19207
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19213
if test -n "$found_la"; then
19214
save_libdir="$libdir"
19215
case "$found_la" in
19216
*/* | *\\*) . "$found_la" ;;
19217
*) . "./$found_la" ;;
19219
libdir="$save_libdir"
19220
for dep in $dependency_libs; do
19223
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19224
if test "X$additional_libdir" != "X/usr/lib"; then
19226
if test "X$additional_libdir" = "X/usr/local/lib"; then
19227
if test -n "$GCC"; then
19229
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19233
if test -z "$haveit"; then
19235
for x in $LDFLAGS $LIBICONV; do
19237
acl_save_prefix="$prefix"
19238
prefix="$acl_final_prefix"
19239
acl_save_exec_prefix="$exec_prefix"
19240
exec_prefix="$acl_final_exec_prefix"
19242
exec_prefix="$acl_save_exec_prefix"
19243
prefix="$acl_save_prefix"
19245
if test "X$x" = "X-L$additional_libdir"; then
19250
if test -z "$haveit"; then
19251
if test -d "$additional_libdir"; then
19252
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19256
for x in $LDFLAGS $LTLIBICONV; do
19258
acl_save_prefix="$prefix"
19259
prefix="$acl_final_prefix"
19260
acl_save_exec_prefix="$exec_prefix"
19261
exec_prefix="$acl_final_exec_prefix"
19263
exec_prefix="$acl_save_exec_prefix"
19264
prefix="$acl_save_prefix"
19266
if test "X$x" = "X-L$additional_libdir"; then
19271
if test -z "$haveit"; then
19272
if test -d "$additional_libdir"; then
19273
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19280
dir=`echo "X$dep" | sed -e 's/^X-R//'`
19281
if test "$enable_rpath" != no; then
19283
for x in $rpathdirs; do
19284
if test "X$x" = "X$dir"; then
19289
if test -z "$haveit"; then
19290
rpathdirs="$rpathdirs $dir"
19293
for x in $ltrpathdirs; do
19294
if test "X$x" = "X$dir"; then
19299
if test -z "$haveit"; then
19300
ltrpathdirs="$ltrpathdirs $dir"
19305
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19308
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19311
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19312
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19318
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19319
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19325
if test "X$rpathdirs" != "X"; then
19326
if test -n "$hardcode_libdir_separator"; then
19328
for found_dir in $rpathdirs; do
19329
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19331
acl_save_libdir="$libdir"
19333
eval flag=\"$hardcode_libdir_flag_spec\"
19334
libdir="$acl_save_libdir"
19335
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19337
for found_dir in $rpathdirs; do
19338
acl_save_libdir="$libdir"
19339
libdir="$found_dir"
19340
eval flag=\"$hardcode_libdir_flag_spec\"
19341
libdir="$acl_save_libdir"
19342
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19346
if test "X$ltrpathdirs" != "X"; then
19347
for found_dir in $ltrpathdirs; do
19348
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19369
echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
19370
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
19371
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
19372
echo $ECHO_N "(cached) $ECHO_C" >&6
19374
gt_save_CPPFLAGS="$CPPFLAGS"
19375
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19376
gt_save_LIBS="$LIBS"
19377
LIBS="$LIBS -framework CoreFoundation"
19378
cat >conftest.$ac_ext <<_ACEOF
19381
cat confdefs.h >>conftest.$ac_ext
19382
cat >>conftest.$ac_ext <<_ACEOF
19383
/* end confdefs.h. */
19384
#include <CFPreferences.h>
19388
CFPreferencesCopyAppValue(NULL, NULL)
19393
rm -f conftest.$ac_objext conftest$ac_exeext
19394
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19395
(eval $ac_link) 2>conftest.er1
19397
grep -v '^ *+' conftest.er1 >conftest.err
19399
cat conftest.err >&5
19400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401
(exit $ac_status); } &&
19402
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404
(eval $ac_try) 2>&5
19406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407
(exit $ac_status); }; } &&
19408
{ ac_try='test -s conftest$ac_exeext'
19409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410
(eval $ac_try) 2>&5
19412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413
(exit $ac_status); }; }; then
19414
gt_cv_func_CFPreferencesCopyAppValue=yes
19416
echo "$as_me: failed program was:" >&5
19417
sed 's/^/| /' conftest.$ac_ext >&5
19419
gt_cv_func_CFPreferencesCopyAppValue=no
19421
rm -f conftest.err conftest.$ac_objext \
19422
conftest$ac_exeext conftest.$ac_ext
19423
CPPFLAGS="$gt_save_CPPFLAGS"
19424
LIBS="$gt_save_LIBS"
19426
echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19427
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
19428
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19430
cat >>confdefs.h <<\_ACEOF
19431
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
19435
echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
19436
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
19437
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
19438
echo $ECHO_N "(cached) $ECHO_C" >&6
19440
gt_save_CPPFLAGS="$CPPFLAGS"
19441
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19442
gt_save_LIBS="$LIBS"
19443
LIBS="$LIBS -framework CoreFoundation"
19444
cat >conftest.$ac_ext <<_ACEOF
19447
cat confdefs.h >>conftest.$ac_ext
19448
cat >>conftest.$ac_ext <<_ACEOF
19449
/* end confdefs.h. */
19450
#include <CFLocale.h>
19454
CFLocaleCopyCurrent();
19459
rm -f conftest.$ac_objext conftest$ac_exeext
19460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461
(eval $ac_link) 2>conftest.er1
19463
grep -v '^ *+' conftest.er1 >conftest.err
19465
cat conftest.err >&5
19466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467
(exit $ac_status); } &&
19468
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19469
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470
(eval $ac_try) 2>&5
19472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473
(exit $ac_status); }; } &&
19474
{ ac_try='test -s conftest$ac_exeext'
19475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476
(eval $ac_try) 2>&5
19478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479
(exit $ac_status); }; }; then
19480
gt_cv_func_CFLocaleCopyCurrent=yes
19482
echo "$as_me: failed program was:" >&5
19483
sed 's/^/| /' conftest.$ac_ext >&5
19485
gt_cv_func_CFLocaleCopyCurrent=no
19487
rm -f conftest.err conftest.$ac_objext \
19488
conftest$ac_exeext conftest.$ac_ext
19489
CPPFLAGS="$gt_save_CPPFLAGS"
19490
LIBS="$gt_save_LIBS"
19492
echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19493
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
19494
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19496
cat >>confdefs.h <<\_ACEOF
19497
#define HAVE_CFLOCALECOPYCURRENT 1
19502
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19503
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19515
if test "$USE_NLS" = "yes"; then
19516
gt_use_preinstalled_gnugettext=no
19523
echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
19524
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
19525
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
19526
echo $ECHO_N "(cached) $ECHO_C" >&6
19528
cat >conftest.$ac_ext <<_ACEOF
19531
cat confdefs.h >>conftest.$ac_ext
19532
cat >>conftest.$ac_ext <<_ACEOF
19533
/* end confdefs.h. */
19534
#include <libintl.h>
19535
extern int _nl_msg_cat_cntr;
19536
extern int *_nl_domain_bindings;
19540
bindtextdomain ("", "");
19541
return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19546
rm -f conftest.$ac_objext conftest$ac_exeext
19547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19548
(eval $ac_link) 2>conftest.er1
19550
grep -v '^ *+' conftest.er1 >conftest.err
19552
cat conftest.err >&5
19553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554
(exit $ac_status); } &&
19555
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557
(eval $ac_try) 2>&5
19559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560
(exit $ac_status); }; } &&
19561
{ ac_try='test -s conftest$ac_exeext'
19562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563
(eval $ac_try) 2>&5
19565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566
(exit $ac_status); }; }; then
19567
gt_cv_func_gnugettext1_libc=yes
19569
echo "$as_me: failed program was:" >&5
19570
sed 's/^/| /' conftest.$ac_ext >&5
19572
gt_cv_func_gnugettext1_libc=no
19574
rm -f conftest.err conftest.$ac_objext \
19575
conftest$ac_exeext conftest.$ac_ext
19577
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
19578
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
19580
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19586
am_save_CPPFLAGS="$CPPFLAGS"
19588
for element in $INCICONV; do
19590
for x in $CPPFLAGS; do
19592
acl_save_prefix="$prefix"
19593
prefix="$acl_final_prefix"
19594
acl_save_exec_prefix="$exec_prefix"
19595
exec_prefix="$acl_final_exec_prefix"
19597
exec_prefix="$acl_save_exec_prefix"
19598
prefix="$acl_save_prefix"
19600
if test "X$x" = "X$element"; then
19605
if test -z "$haveit"; then
19606
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19611
echo "$as_me:$LINENO: checking for iconv" >&5
19612
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
19613
if test "${am_cv_func_iconv+set}" = set; then
19614
echo $ECHO_N "(cached) $ECHO_C" >&6
19617
am_cv_func_iconv="no, consider installing GNU libiconv"
19619
cat >conftest.$ac_ext <<_ACEOF
19622
cat confdefs.h >>conftest.$ac_ext
19623
cat >>conftest.$ac_ext <<_ACEOF
19624
/* end confdefs.h. */
19625
#include <stdlib.h>
19630
iconv_t cd = iconv_open("","");
19631
iconv(cd,NULL,NULL,NULL,NULL);
19637
rm -f conftest.$ac_objext conftest$ac_exeext
19638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19639
(eval $ac_link) 2>conftest.er1
19641
grep -v '^ *+' conftest.er1 >conftest.err
19643
cat conftest.err >&5
19644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645
(exit $ac_status); } &&
19646
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648
(eval $ac_try) 2>&5
19650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651
(exit $ac_status); }; } &&
19652
{ ac_try='test -s conftest$ac_exeext'
19653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654
(eval $ac_try) 2>&5
19656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657
(exit $ac_status); }; }; then
19658
am_cv_func_iconv=yes
19660
echo "$as_me: failed program was:" >&5
19661
sed 's/^/| /' conftest.$ac_ext >&5
19664
rm -f conftest.err conftest.$ac_objext \
19665
conftest$ac_exeext conftest.$ac_ext
19666
if test "$am_cv_func_iconv" != yes; then
19667
am_save_LIBS="$LIBS"
19668
LIBS="$LIBS $LIBICONV"
19669
cat >conftest.$ac_ext <<_ACEOF
19672
cat confdefs.h >>conftest.$ac_ext
19673
cat >>conftest.$ac_ext <<_ACEOF
19674
/* end confdefs.h. */
19675
#include <stdlib.h>
19680
iconv_t cd = iconv_open("","");
19681
iconv(cd,NULL,NULL,NULL,NULL);
19687
rm -f conftest.$ac_objext conftest$ac_exeext
19688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19689
(eval $ac_link) 2>conftest.er1
19691
grep -v '^ *+' conftest.er1 >conftest.err
19693
cat conftest.err >&5
19694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695
(exit $ac_status); } &&
19696
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698
(eval $ac_try) 2>&5
19700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701
(exit $ac_status); }; } &&
19702
{ ac_try='test -s conftest$ac_exeext'
19703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704
(eval $ac_try) 2>&5
19706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707
(exit $ac_status); }; }; then
19708
am_cv_lib_iconv=yes
19709
am_cv_func_iconv=yes
19711
echo "$as_me: failed program was:" >&5
19712
sed 's/^/| /' conftest.$ac_ext >&5
19715
rm -f conftest.err conftest.$ac_objext \
19716
conftest$ac_exeext conftest.$ac_ext
19717
LIBS="$am_save_LIBS"
19721
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
19722
echo "${ECHO_T}$am_cv_func_iconv" >&6
19723
if test "$am_cv_func_iconv" = yes; then
19725
cat >>confdefs.h <<\_ACEOF
19726
#define HAVE_ICONV 1
19730
if test "$am_cv_lib_iconv" = yes; then
19731
echo "$as_me:$LINENO: checking how to link with libiconv" >&5
19732
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
19733
echo "$as_me:$LINENO: result: $LIBICONV" >&5
19734
echo "${ECHO_T}$LIBICONV" >&6
19736
CPPFLAGS="$am_save_CPPFLAGS"
19748
acl_save_prefix="$prefix"
19749
prefix="$acl_final_prefix"
19750
acl_save_exec_prefix="$exec_prefix"
19751
exec_prefix="$acl_final_exec_prefix"
19753
eval additional_includedir=\"$includedir\"
19754
eval additional_libdir=\"$libdir\"
19756
exec_prefix="$acl_save_exec_prefix"
19757
prefix="$acl_save_prefix"
19760
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
19761
if test "${with_libintl_prefix+set}" = set; then
19762
withval="$with_libintl_prefix"
19764
if test "X$withval" = "Xno"; then
19767
if test "X$withval" = "X"; then
19769
acl_save_prefix="$prefix"
19770
prefix="$acl_final_prefix"
19771
acl_save_exec_prefix="$exec_prefix"
19772
exec_prefix="$acl_final_exec_prefix"
19774
eval additional_includedir=\"$includedir\"
19775
eval additional_libdir=\"$libdir\"
19777
exec_prefix="$acl_save_exec_prefix"
19778
prefix="$acl_save_prefix"
19781
additional_includedir="$withval/include"
19782
additional_libdir="$withval/lib"
19792
names_already_handled=
19793
names_next_round='intl '
19794
while test -n "$names_next_round"; do
19795
names_this_round="$names_next_round"
19797
for name in $names_this_round; do
19799
for n in $names_already_handled; do
19800
if test "$n" = "$name"; then
19801
already_handled=yes
19805
if test -z "$already_handled"; then
19806
names_already_handled="$names_already_handled $name"
19807
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19808
eval value=\"\$HAVE_LIB$uppername\"
19809
if test -n "$value"; then
19810
if test "$value" = yes; then
19811
eval value=\"\$LIB$uppername\"
19812
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19813
eval value=\"\$LTLIB$uppername\"
19814
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19823
if test $use_additional = yes; then
19824
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19825
found_dir="$additional_libdir"
19826
found_so="$additional_libdir/lib$name.$shlibext"
19827
if test -f "$additional_libdir/lib$name.la"; then
19828
found_la="$additional_libdir/lib$name.la"
19831
if test -f "$additional_libdir/lib$name.$libext"; then
19832
found_dir="$additional_libdir"
19833
found_a="$additional_libdir/lib$name.$libext"
19834
if test -f "$additional_libdir/lib$name.la"; then
19835
found_la="$additional_libdir/lib$name.la"
19840
if test "X$found_dir" = "X"; then
19841
for x in $LDFLAGS $LTLIBINTL; do
19843
acl_save_prefix="$prefix"
19844
prefix="$acl_final_prefix"
19845
acl_save_exec_prefix="$exec_prefix"
19846
exec_prefix="$acl_final_exec_prefix"
19848
exec_prefix="$acl_save_exec_prefix"
19849
prefix="$acl_save_prefix"
19853
dir=`echo "X$x" | sed -e 's/^X-L//'`
19854
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19856
found_so="$dir/lib$name.$shlibext"
19857
if test -f "$dir/lib$name.la"; then
19858
found_la="$dir/lib$name.la"
19861
if test -f "$dir/lib$name.$libext"; then
19863
found_a="$dir/lib$name.$libext"
19864
if test -f "$dir/lib$name.la"; then
19865
found_la="$dir/lib$name.la"
19871
if test "X$found_dir" != "X"; then
19876
if test "X$found_dir" != "X"; then
19877
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19878
if test "X$found_so" != "X"; then
19879
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19880
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19883
for x in $ltrpathdirs; do
19884
if test "X$x" = "X$found_dir"; then
19889
if test -z "$haveit"; then
19890
ltrpathdirs="$ltrpathdirs $found_dir"
19892
if test "$hardcode_direct" = yes; then
19893
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19895
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19896
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19898
for x in $rpathdirs; do
19899
if test "X$x" = "X$found_dir"; then
19904
if test -z "$haveit"; then
19905
rpathdirs="$rpathdirs $found_dir"
19909
for x in $LDFLAGS $LIBINTL; do
19911
acl_save_prefix="$prefix"
19912
prefix="$acl_final_prefix"
19913
acl_save_exec_prefix="$exec_prefix"
19914
exec_prefix="$acl_final_exec_prefix"
19916
exec_prefix="$acl_save_exec_prefix"
19917
prefix="$acl_save_prefix"
19919
if test "X$x" = "X-L$found_dir"; then
19924
if test -z "$haveit"; then
19925
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19927
if test "$hardcode_minus_L" != no; then
19928
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19930
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19936
if test "X$found_a" != "X"; then
19937
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19939
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19942
additional_includedir=
19943
case "$found_dir" in
19945
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19946
additional_includedir="$basedir/include"
19949
if test "X$additional_includedir" != "X"; then
19950
if test "X$additional_includedir" != "X/usr/include"; then
19952
if test "X$additional_includedir" = "X/usr/local/include"; then
19953
if test -n "$GCC"; then
19955
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19959
if test -z "$haveit"; then
19960
for x in $CPPFLAGS $INCINTL; do
19962
acl_save_prefix="$prefix"
19963
prefix="$acl_final_prefix"
19964
acl_save_exec_prefix="$exec_prefix"
19965
exec_prefix="$acl_final_exec_prefix"
19967
exec_prefix="$acl_save_exec_prefix"
19968
prefix="$acl_save_prefix"
19970
if test "X$x" = "X-I$additional_includedir"; then
19975
if test -z "$haveit"; then
19976
if test -d "$additional_includedir"; then
19977
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19983
if test -n "$found_la"; then
19984
save_libdir="$libdir"
19985
case "$found_la" in
19986
*/* | *\\*) . "$found_la" ;;
19987
*) . "./$found_la" ;;
19989
libdir="$save_libdir"
19990
for dep in $dependency_libs; do
19993
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19994
if test "X$additional_libdir" != "X/usr/lib"; then
19996
if test "X$additional_libdir" = "X/usr/local/lib"; then
19997
if test -n "$GCC"; then
19999
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20003
if test -z "$haveit"; then
20005
for x in $LDFLAGS $LIBINTL; do
20007
acl_save_prefix="$prefix"
20008
prefix="$acl_final_prefix"
20009
acl_save_exec_prefix="$exec_prefix"
20010
exec_prefix="$acl_final_exec_prefix"
20012
exec_prefix="$acl_save_exec_prefix"
20013
prefix="$acl_save_prefix"
20015
if test "X$x" = "X-L$additional_libdir"; then
20020
if test -z "$haveit"; then
20021
if test -d "$additional_libdir"; then
20022
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20026
for x in $LDFLAGS $LTLIBINTL; do
20028
acl_save_prefix="$prefix"
20029
prefix="$acl_final_prefix"
20030
acl_save_exec_prefix="$exec_prefix"
20031
exec_prefix="$acl_final_exec_prefix"
20033
exec_prefix="$acl_save_exec_prefix"
20034
prefix="$acl_save_prefix"
20036
if test "X$x" = "X-L$additional_libdir"; then
20041
if test -z "$haveit"; then
20042
if test -d "$additional_libdir"; then
20043
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20050
dir=`echo "X$dep" | sed -e 's/^X-R//'`
20051
if test "$enable_rpath" != no; then
20053
for x in $rpathdirs; do
20054
if test "X$x" = "X$dir"; then
20059
if test -z "$haveit"; then
20060
rpathdirs="$rpathdirs $dir"
20063
for x in $ltrpathdirs; do
20064
if test "X$x" = "X$dir"; then
20069
if test -z "$haveit"; then
20070
ltrpathdirs="$ltrpathdirs $dir"
20075
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20078
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20081
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20082
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20088
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20089
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20095
if test "X$rpathdirs" != "X"; then
20096
if test -n "$hardcode_libdir_separator"; then
20098
for found_dir in $rpathdirs; do
20099
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20101
acl_save_libdir="$libdir"
20103
eval flag=\"$hardcode_libdir_flag_spec\"
20104
libdir="$acl_save_libdir"
20105
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20107
for found_dir in $rpathdirs; do
20108
acl_save_libdir="$libdir"
20109
libdir="$found_dir"
20110
eval flag=\"$hardcode_libdir_flag_spec\"
20111
libdir="$acl_save_libdir"
20112
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20116
if test "X$ltrpathdirs" != "X"; then
20117
for found_dir in $ltrpathdirs; do
20118
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20122
echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
20123
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
20124
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
20125
echo $ECHO_N "(cached) $ECHO_C" >&6
20127
gt_save_CPPFLAGS="$CPPFLAGS"
20128
CPPFLAGS="$CPPFLAGS $INCINTL"
20129
gt_save_LIBS="$LIBS"
20130
LIBS="$LIBS $LIBINTL"
20131
cat >conftest.$ac_ext <<_ACEOF
20134
cat confdefs.h >>conftest.$ac_ext
20135
cat >>conftest.$ac_ext <<_ACEOF
20136
/* end confdefs.h. */
20137
#include <libintl.h>
20138
extern int _nl_msg_cat_cntr;
20143
const char *_nl_expand_alias (const char *);
20147
bindtextdomain ("", "");
20148
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20153
rm -f conftest.$ac_objext conftest$ac_exeext
20154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155
(eval $ac_link) 2>conftest.er1
20157
grep -v '^ *+' conftest.er1 >conftest.err
20159
cat conftest.err >&5
20160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161
(exit $ac_status); } &&
20162
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164
(eval $ac_try) 2>&5
20166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167
(exit $ac_status); }; } &&
20168
{ ac_try='test -s conftest$ac_exeext'
20169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170
(eval $ac_try) 2>&5
20172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173
(exit $ac_status); }; }; then
20174
gt_cv_func_gnugettext1_libintl=yes
20176
echo "$as_me: failed program was:" >&5
20177
sed 's/^/| /' conftest.$ac_ext >&5
20179
gt_cv_func_gnugettext1_libintl=no
20181
rm -f conftest.err conftest.$ac_objext \
20182
conftest$ac_exeext conftest.$ac_ext
20183
if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20184
LIBS="$LIBS $LIBICONV"
20185
cat >conftest.$ac_ext <<_ACEOF
20188
cat confdefs.h >>conftest.$ac_ext
20189
cat >>conftest.$ac_ext <<_ACEOF
20190
/* end confdefs.h. */
20191
#include <libintl.h>
20192
extern int _nl_msg_cat_cntr;
20197
const char *_nl_expand_alias (const char *);
20201
bindtextdomain ("", "");
20202
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20207
rm -f conftest.$ac_objext conftest$ac_exeext
20208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20209
(eval $ac_link) 2>conftest.er1
20211
grep -v '^ *+' conftest.er1 >conftest.err
20213
cat conftest.err >&5
20214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215
(exit $ac_status); } &&
20216
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218
(eval $ac_try) 2>&5
20220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221
(exit $ac_status); }; } &&
20222
{ ac_try='test -s conftest$ac_exeext'
20223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224
(eval $ac_try) 2>&5
20226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227
(exit $ac_status); }; }; then
20228
LIBINTL="$LIBINTL $LIBICONV"
20229
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20230
gt_cv_func_gnugettext1_libintl=yes
20233
echo "$as_me: failed program was:" >&5
20234
sed 's/^/| /' conftest.$ac_ext >&5
20237
rm -f conftest.err conftest.$ac_objext \
20238
conftest$ac_exeext conftest.$ac_ext
20240
CPPFLAGS="$gt_save_CPPFLAGS"
20241
LIBS="$gt_save_LIBS"
20243
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
20244
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
20247
if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20248
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20249
&& test "$PACKAGE" != gettext-runtime \
20250
&& test "$PACKAGE" != gettext-tools; }; then
20251
gt_use_preinstalled_gnugettext=yes
20260
if test -n "$INTL_MACOSX_LIBS"; then
20261
if test "$gt_use_preinstalled_gnugettext" = "yes" \
20262
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
20263
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20264
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20268
if test "$gt_use_preinstalled_gnugettext" = "yes" \
20269
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
20271
cat >>confdefs.h <<\_ACEOF
20272
#define ENABLE_NLS 1
20280
echo "$as_me:$LINENO: checking whether to use NLS" >&5
20281
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
20282
echo "$as_me:$LINENO: result: $USE_NLS" >&5
20283
echo "${ECHO_T}$USE_NLS" >&6
20284
if test "$USE_NLS" = "yes"; then
20285
echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
20286
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
20287
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20288
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20289
gt_source="external libintl"
20294
gt_source="included intl directory"
20296
echo "$as_me:$LINENO: result: $gt_source" >&5
20297
echo "${ECHO_T}$gt_source" >&6
20300
if test "$USE_NLS" = "yes"; then
20302
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20303
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20304
echo "$as_me:$LINENO: checking how to link with libintl" >&5
20305
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
20306
echo "$as_me:$LINENO: result: $LIBINTL" >&5
20307
echo "${ECHO_T}$LIBINTL" >&6
20309
for element in $INCINTL; do
20311
for x in $CPPFLAGS; do
20313
acl_save_prefix="$prefix"
20314
prefix="$acl_final_prefix"
20315
acl_save_exec_prefix="$exec_prefix"
20316
exec_prefix="$acl_final_exec_prefix"
20318
exec_prefix="$acl_save_exec_prefix"
20319
prefix="$acl_save_prefix"
20321
if test "X$x" = "X$element"; then
20326
if test -z "$haveit"; then
20327
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20334
cat >>confdefs.h <<\_ACEOF
20335
#define HAVE_GETTEXT 1
20339
cat >>confdefs.h <<\_ACEOF
20340
#define HAVE_DCGETTEXT 1
20350
INTLLIBS="$LIBINTL"
18490
20360
case "$am__api_version" in
18492
20362
{ { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5