| 311 |
# include <unistd.h> |
# include <unistd.h> |
| 312 |
#endif" |
#endif" |
| 313 |
|
|
| 314 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os IS_DARWIN_TRUE IS_DARWIN_FALSE IS_MINGW_TRUE IS_MINGW_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBICONV LTLIBICONV CPP EGREP LIBOBJS LTLIBOBJS' |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os IS_DARWIN_TRUE IS_DARWIN_FALSE IS_MINGW_TRUE IS_MINGW_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBICONV CPP EGREP LIBOBJS LTLIBOBJS' |
| 315 |
ac_subst_files='' |
ac_subst_files='' |
| 316 |
|
|
| 317 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
| 863 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 864 |
--disable-dependency-tracking speeds up one-time build |
--disable-dependency-tracking speeds up one-time build |
| 865 |
--enable-dependency-tracking do not reject slow dependency extractors |
--enable-dependency-tracking do not reject slow dependency extractors |
|
--disable-rpath do not hardcode runtime library paths |
|
| 866 |
|
|
| 867 |
Optional Packages: |
Optional Packages: |
| 868 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 869 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 870 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
--with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
|
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
|
|
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
|
| 871 |
|
|
| 872 |
Some influential environment variables: |
Some influential environment variables: |
| 873 |
CXX C++ compiler command |
CXX C++ compiler command |
| 3410 |
# FIXME: Replace `main' with a function in `-liconv': |
# FIXME: Replace `main' with a function in `-liconv': |
| 3411 |
|
|
| 3412 |
|
|
|
if test "X$prefix" = "XNONE"; then |
|
|
acl_final_prefix="$ac_default_prefix" |
|
|
else |
|
|
acl_final_prefix="$prefix" |
|
|
fi |
|
|
if test "X$exec_prefix" = "XNONE"; then |
|
|
acl_final_exec_prefix='${prefix}' |
|
|
else |
|
|
acl_final_exec_prefix="$exec_prefix" |
|
|
fi |
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
|
|
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
if test "${with_gnu_ld+set}" = set; then |
|
|
withval="$with_gnu_ld" |
|
|
test "$withval" = no || with_gnu_ld=yes |
|
|
else |
|
|
with_gnu_ld=no |
|
|
fi; |
|
|
# Prepare PATH_SEPARATOR. |
|
|
# The user is always right. |
|
|
if test "${PATH_SEPARATOR+set}" != set; then |
|
|
echo "#! /bin/sh" >conf$$.sh |
|
|
echo "exit 0" >>conf$$.sh |
|
|
chmod +x conf$$.sh |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
PATH_SEPARATOR=';' |
|
|
else |
|
|
PATH_SEPARATOR=: |
|
|
fi |
|
|
rm -f conf$$.sh |
|
|
fi |
|
|
ac_prog=ld |
|
|
if test "$GCC" = yes; then |
|
|
# Check if gcc -print-prog-name=ld gives a path. |
|
|
echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
|
|
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
|
|
case $host in |
|
|
*-*-mingw*) |
|
|
# gcc leaves a trailing carriage return which upsets mingw |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
*) |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
esac |
|
|
case $ac_prog in |
|
|
# Accept absolute paths. |
|
|
[\\/]* | [A-Za-z]:[\\/]*) |
|
|
re_direlt='/[^/][^/]*/\.\./' |
|
|
# Canonicalize the path of ld |
|
|
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
done |
|
|
test -z "$LD" && LD="$ac_prog" |
|
|
;; |
|
|
"") |
|
|
# If it fails, then pretend we aren't using GCC. |
|
|
ac_prog=ld |
|
|
;; |
|
|
*) |
|
|
# If it is relative, then search for the first ld in PATH. |
|
|
with_gnu_ld=unknown |
|
|
;; |
|
|
esac |
|
|
elif test "$with_gnu_ld" = yes; then |
|
|
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
fi |
|
|
if test "${acl_cv_path_LD+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -z "$LD"; then |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
for ac_dir in $PATH; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
acl_cv_path_LD="$ac_dir/$ac_prog" |
|
|
# Check to see if the program is GNU ld. I'd rather use --version, |
|
|
# but apparently some GNU ld's only accept -v. |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
test "$with_gnu_ld" != no && break |
|
|
else |
|
|
test "$with_gnu_ld" != yes && break |
|
|
fi |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
else |
|
|
acl_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
fi |
|
|
fi |
|
| 3413 |
|
|
|
LD="$acl_cv_path_LD" |
|
|
if test -n "$LD"; then |
|
|
echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
echo "${ECHO_T}$LD" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
if test "${acl_cv_prog_gnu_ld+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
acl_cv_prog_gnu_ld=yes |
|
|
else |
|
|
acl_cv_prog_gnu_ld=no |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
|
|
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
|
|
with_gnu_ld=$acl_cv_prog_gnu_ld |
|
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
|
|
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
|
|
if test "${acl_cv_rpath+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
|
|
|
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
|
|
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
|
|
. ./conftest.sh |
|
|
rm -f ./conftest.sh |
|
|
acl_cv_rpath=done |
|
|
|
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
|
|
echo "${ECHO_T}$acl_cv_rpath" >&6 |
|
|
wl="$acl_cv_wl" |
|
|
libext="$acl_cv_libext" |
|
|
shlibext="$acl_cv_shlibext" |
|
|
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
|
|
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
|
|
hardcode_direct="$acl_cv_hardcode_direct" |
|
|
hardcode_minus_L="$acl_cv_hardcode_minus_L" |
|
|
# Check whether --enable-rpath or --disable-rpath was given. |
|
|
if test "${enable_rpath+set}" = set; then |
|
|
enableval="$enable_rpath" |
|
|
: |
|
|
else |
|
|
enable_rpath=yes |
|
|
fi; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use_additional=yes |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
|
|
|
eval additional_includedir=\"$includedir\" |
|
|
eval additional_libdir=\"$libdir\" |
|
|
|
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
| 3414 |
|
|
| 3415 |
|
|
| 3416 |
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 3417 |
if test "${with_libiconv_prefix+set}" = set; then |
if test "${with_libiconv_prefix+set}" = set; then |
| 3418 |
withval="$with_libiconv_prefix" |
withval="$with_libiconv_prefix" |
| 3419 |
|
|
| 3420 |
if test "X$withval" = "Xno"; then |
for dir in `echo "$withval" | tr : ' '`; do |
| 3421 |
use_additional=no |
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi |
| 3422 |
else |
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi |
|
if test "X$withval" = "X"; then |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
|
|
|
eval additional_includedir=\"$includedir\" |
|
|
eval additional_libdir=\"$libdir\" |
|
|
|
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
else |
|
|
additional_includedir="$withval/include" |
|
|
additional_libdir="$withval/lib" |
|
|
fi |
|
|
fi |
|
|
|
|
|
fi; |
|
|
LIBICONV= |
|
|
LTLIBICONV= |
|
|
INCICONV= |
|
|
rpathdirs= |
|
|
ltrpathdirs= |
|
|
names_already_handled= |
|
|
names_next_round='iconv ' |
|
|
while test -n "$names_next_round"; do |
|
|
names_this_round="$names_next_round" |
|
|
names_next_round= |
|
|
for name in $names_this_round; do |
|
|
already_handled= |
|
|
for n in $names_already_handled; do |
|
|
if test "$n" = "$name"; then |
|
|
already_handled=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$already_handled"; then |
|
|
names_already_handled="$names_already_handled $name" |
|
|
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
|
|
eval value=\"\$HAVE_LIB$uppername\" |
|
|
if test -n "$value"; then |
|
|
if test "$value" = yes; then |
|
|
eval value=\"\$LIB$uppername\" |
|
|
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
|
|
eval value=\"\$LTLIB$uppername\" |
|
|
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
|
|
else |
|
|
: |
|
|
fi |
|
|
else |
|
|
found_dir= |
|
|
found_la= |
|
|
found_so= |
|
|
found_a= |
|
|
if test $use_additional = yes; then |
|
|
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
|
|
found_dir="$additional_libdir" |
|
|
found_so="$additional_libdir/lib$name.$shlibext" |
|
|
if test -f "$additional_libdir/lib$name.la"; then |
|
|
found_la="$additional_libdir/lib$name.la" |
|
|
fi |
|
|
else |
|
|
if test -f "$additional_libdir/lib$name.$libext"; then |
|
|
found_dir="$additional_libdir" |
|
|
found_a="$additional_libdir/lib$name.$libext" |
|
|
if test -f "$additional_libdir/lib$name.la"; then |
|
|
found_la="$additional_libdir/lib$name.la" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
if test "X$found_dir" = "X"; then |
|
|
for x in $LDFLAGS $LTLIBICONV; do |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
eval x=\"$x\" |
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
case "$x" in |
|
|
-L*) |
|
|
dir=`echo "X$x" | sed -e 's/^X-L//'` |
|
|
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
|
|
found_dir="$dir" |
|
|
found_so="$dir/lib$name.$shlibext" |
|
|
if test -f "$dir/lib$name.la"; then |
|
|
found_la="$dir/lib$name.la" |
|
|
fi |
|
|
else |
|
|
if test -f "$dir/lib$name.$libext"; then |
|
|
found_dir="$dir" |
|
|
found_a="$dir/lib$name.$libext" |
|
|
if test -f "$dir/lib$name.la"; then |
|
|
found_la="$dir/lib$name.la" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
;; |
|
|
esac |
|
|
if test "X$found_dir" != "X"; then |
|
|
break |
|
|
fi |
|
|
done |
|
|
fi |
|
|
if test "X$found_dir" != "X"; then |
|
|
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
|
|
if test "X$found_so" != "X"; then |
|
|
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
|
|
else |
|
|
haveit= |
|
|
for x in $ltrpathdirs; do |
|
|
if test "X$x" = "X$found_dir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
ltrpathdirs="$ltrpathdirs $found_dir" |
|
|
fi |
|
|
if test "$hardcode_direct" = yes; then |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
|
|
else |
|
|
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
|
|
haveit= |
|
|
for x in $rpathdirs; do |
|
|
if test "X$x" = "X$found_dir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
rpathdirs="$rpathdirs $found_dir" |
|
|
fi |
|
|
else |
|
|
haveit= |
|
|
for x in $LDFLAGS $LIBICONV; do |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
eval x=\"$x\" |
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
if test "X$x" = "X-L$found_dir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
|
|
fi |
|
|
if test "$hardcode_minus_L" != no; then |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
|
|
else |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
else |
|
|
if test "X$found_a" != "X"; then |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
|
|
else |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
|
|
fi |
|
|
fi |
|
|
additional_includedir= |
|
|
case "$found_dir" in |
|
|
*/lib | */lib/) |
|
|
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
|
|
additional_includedir="$basedir/include" |
|
|
;; |
|
|
esac |
|
|
if test "X$additional_includedir" != "X"; then |
|
|
if test "X$additional_includedir" != "X/usr/include"; then |
|
|
haveit= |
|
|
if test "X$additional_includedir" = "X/usr/local/include"; then |
|
|
if test -n "$GCC"; then |
|
|
case $host_os in |
|
|
linux*) haveit=yes;; |
|
|
esac |
|
|
fi |
|
|
fi |
|
|
if test -z "$haveit"; then |
|
|
for x in $CPPFLAGS $INCICONV; do |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
eval x=\"$x\" |
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
if test "X$x" = "X-I$additional_includedir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
if test -d "$additional_includedir"; then |
|
|
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
if test -n "$found_la"; then |
|
|
save_libdir="$libdir" |
|
|
case "$found_la" in |
|
|
*/* | *\\*) . "$found_la" ;; |
|
|
*) . "./$found_la" ;; |
|
|
esac |
|
|
libdir="$save_libdir" |
|
|
for dep in $dependency_libs; do |
|
|
case "$dep" in |
|
|
-L*) |
|
|
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
|
|
if test "X$additional_libdir" != "X/usr/lib"; then |
|
|
haveit= |
|
|
if test "X$additional_libdir" = "X/usr/local/lib"; then |
|
|
if test -n "$GCC"; then |
|
|
case $host_os in |
|
|
linux*) haveit=yes;; |
|
|
esac |
|
|
fi |
|
|
fi |
|
|
if test -z "$haveit"; then |
|
|
haveit= |
|
|
for x in $LDFLAGS $LIBICONV; do |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
eval x=\"$x\" |
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
if test "X$x" = "X-L$additional_libdir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
if test -d "$additional_libdir"; then |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
|
|
fi |
|
|
fi |
|
|
haveit= |
|
|
for x in $LDFLAGS $LTLIBICONV; do |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
eval x=\"$x\" |
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
if test "X$x" = "X-L$additional_libdir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
if test -d "$additional_libdir"; then |
|
|
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
;; |
|
|
-R*) |
|
|
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
|
|
if test "$enable_rpath" != no; then |
|
|
haveit= |
|
|
for x in $rpathdirs; do |
|
|
if test "X$x" = "X$dir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
rpathdirs="$rpathdirs $dir" |
|
|
fi |
|
|
haveit= |
|
|
for x in $ltrpathdirs; do |
|
|
if test "X$x" = "X$dir"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
ltrpathdirs="$ltrpathdirs $dir" |
|
|
fi |
|
|
fi |
|
|
;; |
|
|
-l*) |
|
|
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
|
|
;; |
|
|
*.la) |
|
|
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
|
|
;; |
|
|
*) |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
|
|
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
|
|
;; |
|
|
esac |
|
|
done |
|
|
fi |
|
|
else |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
|
|
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
done |
|
|
done |
|
|
if test "X$rpathdirs" != "X"; then |
|
|
if test -n "$hardcode_libdir_separator"; then |
|
|
alldirs= |
|
|
for found_dir in $rpathdirs; do |
|
|
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
|
|
done |
|
|
acl_save_libdir="$libdir" |
|
|
libdir="$alldirs" |
|
|
eval flag=\"$hardcode_libdir_flag_spec\" |
|
|
libdir="$acl_save_libdir" |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
|
|
else |
|
|
for found_dir in $rpathdirs; do |
|
|
acl_save_libdir="$libdir" |
|
|
libdir="$found_dir" |
|
|
eval flag=\"$hardcode_libdir_flag_spec\" |
|
|
libdir="$acl_save_libdir" |
|
|
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
|
|
done |
|
|
fi |
|
|
fi |
|
|
if test "X$ltrpathdirs" != "X"; then |
|
|
for found_dir in $ltrpathdirs; do |
|
|
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
|
| 3423 |
done |
done |
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
am_save_CPPFLAGS="$CPPFLAGS" |
|
|
|
|
|
for element in $INCICONV; do |
|
|
haveit= |
|
|
for x in $CPPFLAGS; do |
|
|
|
|
|
acl_save_prefix="$prefix" |
|
|
prefix="$acl_final_prefix" |
|
|
acl_save_exec_prefix="$exec_prefix" |
|
|
exec_prefix="$acl_final_exec_prefix" |
|
|
eval x=\"$x\" |
|
|
exec_prefix="$acl_save_exec_prefix" |
|
|
prefix="$acl_save_prefix" |
|
|
|
|
|
if test "X$x" = "X$element"; then |
|
|
haveit=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
if test -z "$haveit"; then |
|
|
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
|
|
fi |
|
|
done |
|
| 3424 |
|
|
| 3425 |
|
fi; |
| 3426 |
|
|
| 3427 |
echo "$as_me:$LINENO: checking for iconv" >&5 |
echo "$as_me:$LINENO: checking for iconv" >&5 |
| 3428 |
echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 3482 |
conftest$ac_exeext conftest.$ac_ext |
conftest$ac_exeext conftest.$ac_ext |
| 3483 |
if test "$am_cv_func_iconv" != yes; then |
if test "$am_cv_func_iconv" != yes; then |
| 3484 |
am_save_LIBS="$LIBS" |
am_save_LIBS="$LIBS" |
| 3485 |
LIBS="$LIBS $LIBICONV" |
LIBS="$LIBS -liconv" |
| 3486 |
cat >conftest.$ac_ext <<_ACEOF |
cat >conftest.$ac_ext <<_ACEOF |
| 3487 |
/* confdefs.h. */ |
/* confdefs.h. */ |
| 3488 |
_ACEOF |
_ACEOF |
| 3544 |
#define HAVE_ICONV 1 |
#define HAVE_ICONV 1 |
| 3545 |
_ACEOF |
_ACEOF |
| 3546 |
|
|
|
fi |
|
|
if test "$am_cv_lib_iconv" = yes; then |
|
|
echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
|
|
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 |
|
|
echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
|
|
echo "${ECHO_T}$LIBICONV" >&6 |
|
|
else |
|
|
CPPFLAGS="$am_save_CPPFLAGS" |
|
|
LIBICONV= |
|
|
LTLIBICONV= |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if test "$am_cv_func_iconv" = yes; then |
|
| 3547 |
echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 3548 |
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 3549 |
if test "${am_cv_proto_iconv+set}" = set; then |
if test "${am_cv_proto_iconv+set}" = set; then |
| 3621 |
_ACEOF |
_ACEOF |
| 3622 |
|
|
| 3623 |
fi |
fi |
| 3624 |
|
LIBICONV= |
| 3625 |
|
if test "$am_cv_lib_iconv" = yes; then |
| 3626 |
|
LIBICONV="-liconv" |
| 3627 |
|
fi |
| 3628 |
|
|
| 3629 |
|
|
| 3630 |
|
|
| 3631 |
# Checks for header files. |
# Checks for header files. |
| 5282 |
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 5283 |
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 5284 |
s,@LIBICONV@,$LIBICONV,;t t |
s,@LIBICONV@,$LIBICONV,;t t |
|
s,@LTLIBICONV@,$LTLIBICONV,;t t |
|
| 5285 |
s,@CPP@,$CPP,;t t |
s,@CPP@,$CPP,;t t |
| 5286 |
s,@EGREP@,$EGREP,;t t |
s,@EGREP@,$EGREP,;t t |
| 5287 |
s,@LIBOBJS@,$LIBOBJS,;t t |
s,@LIBOBJS@,$LIBOBJS,;t t |