diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 1137 | 
1 files changed, 1051 insertions, 86 deletions
| @@ -1,6 +1,6 @@  #! /bin/sh  # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.60a for LCD4Linux 0.10.1-CVS. +# Generated by GNU Autoconf 2.60 for LCD4Linux 0.10.1-CVS.  #  # Report bugs to <lcd4linux-users@lists.sourceforge.net>.  # @@ -567,36 +567,36 @@ ac_unique_file="lcd4linux.c"  # Factoring default headers for most tests.  ac_includes_default="\  #include <stdio.h> -#ifdef HAVE_SYS_TYPES_H +#if HAVE_SYS_TYPES_H  # include <sys/types.h>  #endif -#ifdef HAVE_SYS_STAT_H +#if HAVE_SYS_STAT_H  # include <sys/stat.h>  #endif -#ifdef STDC_HEADERS +#if STDC_HEADERS  # include <stdlib.h>  # include <stddef.h>  #else -# ifdef HAVE_STDLIB_H +# if HAVE_STDLIB_H  #  include <stdlib.h>  # endif  #endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H  #  include <memory.h>  # endif  # include <string.h>  #endif -#ifdef HAVE_STRINGS_H +#if HAVE_STRINGS_H  # include <strings.h>  #endif -#ifdef HAVE_INTTYPES_H +#if HAVE_INTTYPES_H  # include <inttypes.h>  #endif -#ifdef HAVE_STDINT_H +#if HAVE_STDINT_H  # include <stdint.h>  #endif -#ifdef HAVE_UNISTD_H +#if HAVE_UNISTD_H  # include <unistd.h>  #endif" @@ -694,6 +694,16 @@ PYTHON_EXTRA_LIBS  PYTHON_EXTRA_LDFLAGS  DRIVERS  DRVLIBS +build +build_cpu +build_vendor +build_os +host +host_cpu +host_vendor +host_os +LIBICONV +LTLIBICONV  PLUGINS  PLUGINLIBS  LIBOBJS @@ -1277,6 +1287,10 @@ Program names:  X features:    --x-includes=DIR    X include files are in DIR    --x-libraries=DIR   X library files are in DIR + +System types: +  --build=BUILD     configure for building on BUILD [guessed] +  --host=HOST       cross-compile to build programs to run on HOST [BUILD]  _ACEOF  fi @@ -1291,6 +1305,7 @@ Optional Features:    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]    --disable-dependency-tracking  speeds up one-time build    --enable-dependency-tracking   do not reject slow dependency extractors +  --disable-rpath         do not hardcode runtime library paths  Optional Packages:    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] @@ -1319,6 +1334,9 @@ Optional Packages:    --with-plugins=<list>   choose which plugins to compile.                            type --with-plugins=list for a list                            of avaible plugins +  --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 +  --without-libiconv-prefix     don't search for libiconv in includedir and libdir  Some influential environment variables:    CC          C compiler command @@ -1399,7 +1417,7 @@ test -n "$ac_init_help" && exit $ac_status  if $ac_init_version; then    cat <<\_ACEOF  LCD4Linux configure 0.10.1-CVS -generated by GNU Autoconf 2.60a +generated by GNU Autoconf 2.60  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,  2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @@ -1413,7 +1431,7 @@ This file contains any messages produced by compilers while  running configure, to aid debugging if configure makes a mistake.  It was created by LCD4Linux $as_me 0.10.1-CVS, which was -generated by GNU Autoconf 2.60a.  Invocation command line was +generated by GNU Autoconf 2.60.  Invocation command line was    $ $0 $@ @@ -2636,7 +2654,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5  # in a Makefile.  We should not override ac_cv_exeext if it was cached,  # so that the user can short-circuit this test for compilers unknown to  # Autoconf. -for ac_file in $ac_files '' +for ac_file in $ac_files  do    test -f "$ac_file" || continue    case $ac_file in @@ -2664,12 +2682,6 @@ done  test "$ac_cv_exeext" = no && ac_cv_exeext=  else -  ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then    echo "$as_me: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5 @@ -2681,6 +2693,8 @@ See \`config.log' for more details." >&2;}  fi  ac_exeext=$ac_cv_exeext +{ echo "$as_me:$LINENO: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6; }  # Check that the compiler produces executables we can run.  If not, either  # the compiler is broken, or we cross compile. @@ -3892,7 +3906,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_m_log=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -4520,7 +4534,7 @@ echo "${ECHO_T}Please note that some screen refreshs may fail" >&6; }  echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6; }  	ncurses_version=unknown  cat > conftest.$ac_ext <<EOF -#line 4523 "configure" +#line 4537 "configure"  #include "confdefs.h"  #ifdef RENAMED_NCURSES  #include <curses.h> @@ -4723,7 +4737,7 @@ if test "$ac_x_libraries" = no; then    # See if we find them without any special options.    # Don't add to $LIBS permanently.    ac_save_LIBS=$LIBS -  LIBS="-lX11 $LIBS" +  LIBS="-lXt $LIBS"    cat >conftest.$ac_ext <<_ACEOF  /* confdefs.h.  */  _ACEOF @@ -4785,7 +4799,7 @@ for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`  do    # Don't even attempt the hair of trying to link an X program!    for ac_extension in a so sl; do -    if test -r "$ac_dir/libX11.$ac_extension"; then +    if test -r "$ac_dir/libXt.$ac_extension"; then        ac_x_libraries=$ac_dir        break 2      fi @@ -4793,7 +4807,7 @@ do  done  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi # $ac_x_libraries = no @@ -4848,12 +4862,12 @@ else      X_LIBS="$X_LIBS -L$x_libraries"      # For Solaris; some versions of Sun CC require a space after -R and      # others require no space.  Words are not sufficient . . . . -    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 +    case `(uname -sr) 2>/dev/null` in +    "SunOS 5"*) +      { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5  echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } -    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" -    ac_xsave_c_werror_flag=$ac_c_werror_flag -    ac_c_werror_flag=yes -    cat >conftest.$ac_ext <<_ACEOF +      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" +      cat >conftest.$ac_ext <<_ACEOF  /* confdefs.h.  */  _ACEOF  cat confdefs.h >>conftest.$ac_ext @@ -4902,15 +4916,23 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5    ac_status=$?    echo "$as_me:$LINENO: \$? = $ac_status" >&5    (exit $ac_status); }; }; then -  { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -       X_LIBS="$X_LIBS -R$x_libraries" +  ac_R_nospace=yes  else    echo "$as_me: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5 +	ac_R_nospace=no +fi + +rm -f core conftest.err conftest.$ac_objext \ +      conftest$ac_exeext conftest.$ac_ext +      if test $ac_R_nospace = yes; then +	{ echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +	X_LIBS="$X_LIBS -R$x_libraries" +      else  	LIBS="$ac_xsave_LIBS -R $x_libraries" -       cat >conftest.$ac_ext <<_ACEOF +	cat >conftest.$ac_ext <<_ACEOF  /* confdefs.h.  */  _ACEOF  cat confdefs.h >>conftest.$ac_ext @@ -4959,25 +4981,27 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5    ac_status=$?    echo "$as_me:$LINENO: \$? = $ac_status" >&5    (exit $ac_status); }; }; then -  { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -	  X_LIBS="$X_LIBS -R $x_libraries" +  ac_R_space=yes  else    echo "$as_me: failed program was:" >&5  sed 's/^/| /' conftest.$ac_ext >&5 -	{ echo "$as_me:$LINENO: result: neither works" >&5 -echo "${ECHO_T}neither works" >&6; } -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ -      conftest$ac_exeext conftest.$ac_ext +	ac_R_space=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext -    ac_c_werror_flag=$ac_xsave_c_werror_flag -    LIBS=$ac_xsave_LIBS +	if test $ac_R_space = yes; then +	  { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +	  X_LIBS="$X_LIBS -R $x_libraries" +	else +	  { echo "$as_me:$LINENO: result: neither works" >&5 +echo "${ECHO_T}neither works" >&6; } +	fi +      fi +      LIBS=$ac_xsave_LIBS +    esac    fi    # Check for system-dependent libraries X programs must link with. @@ -5123,7 +5147,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_dnet_dnet_ntoa=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -5205,7 +5229,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_dnet_stub_dnet_ntoa=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -5218,7 +5242,7 @@ fi      fi  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext      LIBS="$ac_xsave_LIBS" @@ -5322,7 +5346,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_func_gethostbyname=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 @@ -5400,7 +5424,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_nsl_gethostbyname=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -5482,7 +5506,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_bsd_gethostbyname=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -5594,7 +5618,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_func_connect=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 @@ -5672,7 +5696,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_socket_connect=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -5777,7 +5801,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_func_remove=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 @@ -5855,7 +5879,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_posix_remove=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -5960,7 +5984,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_func_shmat=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 @@ -6038,7 +6062,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_ipc_shmat=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -6131,7 +6155,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_ICE_IceConnectionNumber=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -8421,6 +8445,7 @@ echo "$as_me: error: run ./configure --with-plugins=..." >&2;}           PLUGIN_EXEC="yes"           PLUGIN_FILE="yes"           PLUGIN_I2C_SENSORS="yes" +         PLUGIN_ICONV="yes"           PLUGIN_IMON="yes"           PLUGIN_ISDN="yes"           PLUGIN_KVV="yes" @@ -8462,6 +8487,9 @@ echo "$as_me: error: run ./configure --with-plugins=..." >&2;}        i2c_sensors)           PLUGIN_I2C_SENSORS=$val  	 ;; +      iconv) +      	PLUGIN_ICONV=$val +      	;;        imon)           PLUGIN_IMON=$val           ;; @@ -8762,6 +8790,933 @@ cat >>confdefs.h <<\_ACEOF  _ACEOF  fi +if test "$PLUGIN_ICONV" = "yes"; then + +      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" + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || +  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} +   { (exit 1); exit 1; }; } + +{ echo "$as_me:$LINENO: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; } +if test "${ac_cv_build+set}" = set; then +  echo $ECHO_N "(cached) $ECHO_C" >&6 +else +  ac_build_alias=$build_alias +test "x$ac_build_alias" = x && +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && +  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} +   { (exit 1); exit 1; }; } +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || +  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} +   { (exit 1); exit 1; }; } + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 +echo "$as_me: error: invalid value of canonical build" >&2;} +   { (exit 1); exit 1; }; };; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ echo "$as_me:$LINENO: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; } +if test "${ac_cv_host+set}" = set; then +  echo $ECHO_N "(cached) $ECHO_C" >&6 +else +  if test "x$host_alias" = x; then +  ac_cv_host=$ac_cv_build +else +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || +    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} +   { (exit 1); exit 1; }; } +fi + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 +echo "$as_me: error: invalid value of canonical host" >&2;} +   { (exit 1); exit 1; }; };; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + + +# Check whether --with-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. +      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in +      *GNU* | *'with BFD'*) +	test "$with_gnu_ld" != no && break ;; +      *) +	test "$with_gnu_ld" != yes && break ;; +      esac +    fi +  done +  IFS="$ac_save_ifs" +else +  acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +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. +case `$LD -v 2>&1 </dev/null` in +*GNU* | *'with BFD'*) +  acl_cv_prog_gnu_ld=yes ;; +*) +  acl_cv_prog_gnu_ld=no ;; +esac +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 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" + + +# Check whether --with-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then +  withval=$with_libiconv_prefix; +    if test "X$withval" = "Xno"; then +      use_additional=no +    else +      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* | gnu* | k*bsd*-gnu) 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* | gnu* | k*bsd*-gnu) 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" +    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 + + +  { echo "$as_me:$LINENO: checking for iconv" >&5 +echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } +if test "${am_cv_func_iconv+set}" = set; then +  echo $ECHO_N "(cached) $ECHO_C" >&6 +else + +    am_cv_func_iconv="no, consider installing GNU libiconv" +    am_cv_lib_iconv=no +    cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h.  */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h.  */ +#include <stdlib.h> +#include <iconv.h> +int +main () +{ +iconv_t cd = iconv_open("",""); +       iconv(cd,NULL,NULL,NULL,NULL); +       iconv_close(cd); +  ; +  return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_link") 2>conftest.er1 +  ac_status=$? +  grep -v '^ *+' conftest.er1 >conftest.err +  rm -f conftest.er1 +  cat conftest.err >&5 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); } && +	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +  { (case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); }; } && +	 { ac_try='test -s conftest$ac_exeext' +  { (case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); }; }; then +  am_cv_func_iconv=yes +else +  echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext \ +      conftest$ac_exeext conftest.$ac_ext +    if test "$am_cv_func_iconv" != yes; then +      am_save_LIBS="$LIBS" +      LIBS="$LIBS $LIBICONV" +      cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h.  */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h.  */ +#include <stdlib.h> +#include <iconv.h> +int +main () +{ +iconv_t cd = iconv_open("",""); +         iconv(cd,NULL,NULL,NULL,NULL); +         iconv_close(cd); +  ; +  return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_link") 2>conftest.er1 +  ac_status=$? +  grep -v '^ *+' conftest.er1 >conftest.err +  rm -f conftest.er1 +  cat conftest.err >&5 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); } && +	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +  { (case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); }; } && +	 { ac_try='test -s conftest$ac_exeext' +  { (case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); }; }; then +  am_cv_lib_iconv=yes +        am_cv_func_iconv=yes +else +  echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext \ +      conftest$ac_exeext conftest.$ac_ext +      LIBS="$am_save_LIBS" +    fi + +fi +{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 +echo "${ECHO_T}$am_cv_func_iconv" >&6; } +  if test "$am_cv_func_iconv" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_ICONV 1 +_ACEOF + +  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 +    { echo "$as_me:$LINENO: checking for iconv declaration" >&5 +echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } +    if test "${am_cv_proto_iconv+set}" = set; then +  echo $ECHO_N "(cached) $ECHO_C" >&6 +else + +      cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h.  */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h.  */ + +#include <stdlib.h> +#include <iconv.h> +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_compile") 2>conftest.er1 +  ac_status=$? +  grep -v '^ *+' conftest.er1 >conftest.err +  rm -f conftest.er1 +  cat conftest.err >&5 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); } && +	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +  { (case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); }; } && +	 { ac_try='test -s conftest.$ac_objext' +  { (case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  echo "$as_me:$LINENO: \$? = $ac_status" >&5 +  (exit $ac_status); }; }; then +  am_cv_proto_iconv_arg1="" +else +  echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +	am_cv_proto_iconv_arg1="const" +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" +fi + +    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` +    { echo "$as_me:$LINENO: result: ${ac_t:- +         }$am_cv_proto_iconv" >&5 +echo "${ECHO_T}${ac_t:- +         }$am_cv_proto_iconv" >&6; } + +cat >>confdefs.h <<_ACEOF +#define ICONV_CONST $am_cv_proto_iconv_arg1 +_ACEOF + +  fi + +   if test "$am_cv_func_iconv" = "yes"; then +      PLUGINS="$PLUGINS plugin_iconv.o" +      PLUGINLIBS="$PLUGINLIBS $LIBICONV" + +cat >>confdefs.h <<\_ACEOF +#define PLUGIN_ICONV 1 +_ACEOF + +   else +      { echo "$as_me:$LINENO: WARNING: iconv not found: iconv plugin disabled" >&5 +echo "$as_me: WARNING: iconv not found: iconv plugin disabled" >&2;} +   fi +fi  if test "$PLUGIN_IMON" = "yes"; then     PLUGINS="$PLUGINS plugin_imon.o" @@ -9221,7 +10176,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_mpd_mpd_connect=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -9494,7 +10449,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_mysqlclient_mysql_init=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -9992,7 +10947,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext    if test "${ac_cv_search_opendir+set}" = set; then    break @@ -10092,7 +11047,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext    if test "${ac_cv_search_opendir+set}" = set; then    break @@ -11018,10 +11973,10 @@ main ()  #ifndef __cplusplus    /* Ultrix mips cc rejects this.  */    typedef int charset[2]; -  const charset cs; +  const charset x;    /* SunOS 4.1.1 cc rejects this.  */ -  char const *const *pcpcc; -  char **ppc; +  char const *const *ccp; +  char **p;    /* NEC SVR4.0.2 mips cc rejects this.  */    struct point {int x, y;};    static struct point const zero = {0,0}; @@ -11030,11 +11985,11 @@ main ()       an arm of an if-expression whose if-part is not a constant       expression */    const char *g = "string"; -  pcpcc = &g + (g ? g-g : 0); +  ccp = &g + (g ? g-g : 0);    /* HPUX 7.0 cc rejects these. */ -  ++pcpcc; -  ppc = (char**) pcpcc; -  pcpcc = (char const *const *) ppc; +  ++ccp; +  p = (char**) ccp; +  ccp = (char const *const *) p;    { /* SCO 3.2v4 cc rejects this.  */      char *t;      char const *s = 0 ? (char *) 0 : (char const *) 0; @@ -11061,7 +12016,7 @@ main ()      const int foo = 10;      if (!foo) return 0;    } -  return !cs[0] && !zero.x; +  return !x[0] && !zero.x;  #endif    ; @@ -11780,7 +12735,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_error_at_line=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 @@ -12060,7 +13015,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	eval "$as_ac_var=no"  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  ac_res=`eval echo '${'$as_ac_var'}'` @@ -12173,7 +13128,7 @@ cat >>conftest.$ac_ext <<_ACEOF  /* Thanks to Paul Eggert for this test.  */  $ac_includes_default  #include <sys/wait.h> -#ifdef HAVE_VFORK_H +#if HAVE_VFORK_H  # include <vfork.h>  #endif  /* On some sparc systems, changes by the child to local and incoming @@ -12718,7 +13673,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	eval "$as_ac_var=no"  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  ac_res=`eval echo '${'$as_ac_var'}'` @@ -12802,7 +13757,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_intl_strftime=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -12999,7 +13954,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_func_pow=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 @@ -13077,7 +14032,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	ac_cv_lib_m_pow=no  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  LIBS=$ac_check_lib_save_LIBS  fi @@ -13211,7 +14166,7 @@ sed 's/^/| /' conftest.$ac_ext >&5  	eval "$as_ac_var=no"  fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +rm -f core conftest.err conftest.$ac_objext \        conftest$ac_exeext conftest.$ac_ext  fi  ac_res=`eval echo '${'$as_ac_var'}'` @@ -13626,7 +14581,7 @@ exec 6>&1  # values after options handling.  ac_log="  This file was extended by LCD4Linux $as_me 0.10.1-CVS, which was -generated by GNU Autoconf 2.60a.  Invocation command line was +generated by GNU Autoconf 2.60.  Invocation command line was    CONFIG_FILES    = $CONFIG_FILES    CONFIG_HEADERS  = $CONFIG_HEADERS @@ -13655,7 +14610,7 @@ current configuration.  Usage: $0 [OPTIONS] [FILE]...    -h, --help       print this help, then exit -  -V, --version    print version number and configuration settings, then exit +  -V, --version    print version number, then exit    -q, --quiet      do not print progress messages    -d, --debug      don't remove temporary files        --recheck    update $as_me by reconfiguring in the same conditions @@ -13679,7 +14634,7 @@ _ACEOF  cat >>$CONFIG_STATUS <<_ACEOF  ac_cs_version="\\  LCD4Linux config.status 0.10.1-CVS -configured by $0, generated by GNU Autoconf 2.60a, +configured by $0, generated by GNU Autoconf 2.60,    with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"  Copyright (C) 2006 Free Software Foundation, Inc. @@ -13950,9 +14905,9 @@ PYTHON_EXTRA_LIBS!$PYTHON_EXTRA_LIBS$ac_delim  PYTHON_EXTRA_LDFLAGS!$PYTHON_EXTRA_LDFLAGS$ac_delim  DRIVERS!$DRIVERS$ac_delim  DRVLIBS!$DRVLIBS$ac_delim -PLUGINS!$PLUGINS$ac_delim -PLUGINLIBS!$PLUGINLIBS$ac_delim -LIBOBJS!$LIBOBJS$ac_delim +build!$build$ac_delim +build_cpu!$build_cpu$ac_delim +build_vendor!$build_vendor$ac_delim  _ACEOF    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then @@ -13994,11 +14949,21 @@ _ACEOF  ac_delim='%!_!# '  for ac_last_try in false false false false false :; do    cat >conf$$subs.sed <<_ACEOF +build_os!$build_os$ac_delim +host!$host$ac_delim +host_cpu!$host_cpu$ac_delim +host_vendor!$host_vendor$ac_delim +host_os!$host_os$ac_delim +LIBICONV!$LIBICONV$ac_delim +LTLIBICONV!$LTLIBICONV$ac_delim +PLUGINS!$PLUGINS$ac_delim +PLUGINLIBS!$PLUGINLIBS$ac_delim +LIBOBJS!$LIBOBJS$ac_delim  POW_LIB!$POW_LIB$ac_delim  LTLIBOBJS!$LTLIBOBJS$ac_delim  _ACEOF -  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then +  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then      break    elif $ac_last_try; then      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
