diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 936 | 
1 files changed, 931 insertions, 5 deletions
| @@ -710,6 +710,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 @@ -1294,6 +1304,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 @@ -1308,6 +1322,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] @@ -1336,6 +1351,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 @@ -4427,7 +4445,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 4430 "configure" +#line 4448 "configure"  #include "confdefs.h"  #ifdef RENAMED_NCURSES  #include <curses.h> @@ -8901,7 +8919,905 @@ _ACEOF  fi  if test "$PLUGIN_ICONV" = "yes"; then -      if test "$am_cv_func_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 + + + +                  acl_libdirstem=lib +  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` +  if test -n "$searchpath"; then +    acl_save_IFS="${IFS= 	}"; IFS=":" +    for searchdir in $searchpath; do +      if test -d "$searchdir"; then +        case "$searchdir" in +          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; +          *) searchdir=`cd "$searchdir" && pwd` +             case "$searchdir" in +               */lib64 ) acl_libdirstem=lib64 ;; +             esac ;; +        esac +      fi +    done +    IFS="$acl_save_IFS" +  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/$acl_libdirstem" +      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" \ +                    || { test "$shlibext" = dll \ +                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then +              found_dir="$additional_libdir" +              if test -f "$additional_libdir/lib$name.$shlibext"; then +                found_so="$additional_libdir/lib$name.$shlibext" +              else +                found_so="$additional_libdir/lib$name.dll.a" +              fi +              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" \ +                          || { test "$shlibext" = dll \ +                               && test -f "$dir/lib$name.dll.a"; }; }; then +                    found_dir="$dir" +                    if test -f "$dir/lib$name.$shlibext"; then +                      found_so="$dir/lib$name.$shlibext" +                    else +                      found_so="$dir/lib$name.dll.a" +                    fi +                    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/$acl_libdirstem"; 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 +              */$acl_libdirstem | */$acl_libdirstem/) +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` +                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/$acl_libdirstem"; then +                      haveit= +                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; 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); } && { +	 test -z "$ac_c_werror_flag" || +	 test ! -s conftest.err +       } && test -s conftest$ac_exeext && +       $as_test_x conftest$ac_exeext; 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_ipa8_conftest.oo \ +      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); } && { +	 test -z "$ac_c_werror_flag" || +	 test ! -s conftest.err +       } && test -s conftest$ac_exeext && +       $as_test_x conftest$ac_exeext; 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_ipa8_conftest.oo \ +      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); } && { +	 test -z "$ac_c_werror_flag" || +	 test ! -s conftest.err +       } && test -s conftest.$ac_objext; 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" @@ -13433,8 +14349,8 @@ 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 +build!$build$ac_delim +build_cpu!$build_cpu$ac_delim  _ACEOF    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then @@ -13476,12 +14392,22 @@ _ACEOF  ac_delim='%!_!# '  for ac_last_try in false false false false false :; do    cat >conf$$subs.sed <<_ACEOF +build_vendor!$build_vendor$ac_delim +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` = 3; then +  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then      break    elif $ac_last_try; then      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
