configure
Upload User: yingmei828
Upload Date: 2007-01-01
Package Size: 1646k
Code Size: 60k
Development Platform:

Unix_Linux

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13 
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13.   --enable-static         build static libraries [default=no]
  14.   --enable-static=PKGS    only build shared libraries if the current package
  15.                           appears as an element in the PKGS list"
  16. ac_help="$ac_help
  17.   --enable-shared         build shared libraries [default=yes]
  18.   --enable-shared=PKGS    only build shared libraries if the current package
  19.                           appears as an element in the PKGS list"
  20. ac_help="$ac_help
  21.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  22. # Initialize some variables set by options.
  23. # The variables have the same names as the options, with
  24. # dashes changed to underlines.
  25. build=NONE
  26. cache_file=./config.cache
  27. exec_prefix=NONE
  28. host=NONE
  29. no_create=
  30. nonopt=NONE
  31. no_recursion=
  32. prefix=NONE
  33. program_prefix=NONE
  34. program_suffix=NONE
  35. program_transform_name=s,x,x,
  36. silent=
  37. site=
  38. srcdir=
  39. target=NONE
  40. verbose=
  41. x_includes=NONE
  42. x_libraries=NONE
  43. bindir='${exec_prefix}/bin'
  44. sbindir='${exec_prefix}/sbin'
  45. libexecdir='${exec_prefix}/libexec'
  46. datadir='${prefix}/share'
  47. sysconfdir='${prefix}/etc'
  48. sharedstatedir='${prefix}/com'
  49. localstatedir='${prefix}/var'
  50. libdir='${exec_prefix}/lib'
  51. includedir='${prefix}/include'
  52. oldincludedir='/usr/include'
  53. infodir='${prefix}/info'
  54. mandir='${prefix}/man'
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58. SHELL=${CONFIG_SHELL-/bin/sh}
  59. # Maximum number of lines to put in a shell here document.
  60. ac_max_here_lines=12
  61. ac_prev=
  62. for ac_option
  63. do
  64.   # If the previous option needs an argument, assign it.
  65.   if test -n "$ac_prev"; then
  66.     eval "$ac_prev=$ac_option"
  67.     ac_prev=
  68.     continue
  69.   fi
  70.   case "$ac_option" in
  71.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  72.   *) ac_optarg= ;;
  73.   esac
  74.   # Accept the important Cygnus configure options, so we can diagnose typos.
  75.   case "$ac_option" in
  76.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  77.     ac_prev=bindir ;;
  78.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  79.     bindir="$ac_optarg" ;;
  80.   -build | --build | --buil | --bui | --bu)
  81.     ac_prev=build ;;
  82.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  83.     build="$ac_optarg" ;;
  84.   -cache-file | --cache-file | --cache-fil | --cache-fi 
  85.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  86.     ac_prev=cache_file ;;
  87.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* 
  88.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  89.     cache_file="$ac_optarg" ;;
  90.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  91.     ac_prev=datadir ;;
  92.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* 
  93.   | --da=*)
  94.     datadir="$ac_optarg" ;;
  95.   -disable-* | --disable-*)
  96.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  97.     # Reject names that are not valid shell variable names.
  98.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  99.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  100.     fi
  101.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  102.     eval "enable_${ac_feature}=no" ;;
  103.   -enable-* | --enable-*)
  104.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  105.     # Reject names that are not valid shell variable names.
  106.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  107.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  108.     fi
  109.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  110.     case "$ac_option" in
  111.       *=*) ;;
  112.       *) ac_optarg=yes ;;
  113.     esac
  114.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  115.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi 
  116.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- 
  117.   | --exec | --exe | --ex)
  118.     ac_prev=exec_prefix ;;
  119.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* 
  120.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* 
  121.   | --exec=* | --exe=* | --ex=*)
  122.     exec_prefix="$ac_optarg" ;;
  123.   -gas | --gas | --ga | --g)
  124.     # Obsolete; use --with-gas.
  125.     with_gas=yes ;;
  126.   -help | --help | --hel | --he)
  127.     # Omit some internal or obsolete options to make the list less imposing.
  128.     # This message is too long to be a string in the A/UX 3.1 sh.
  129.     cat << EOF
  130. Usage: configure [options] [host]
  131. Options: [defaults in brackets after descriptions]
  132. Configuration:
  133.   --cache-file=FILE       cache test results in FILE
  134.   --help                  print this message
  135.   --no-create             do not create output files
  136.   --quiet, --silent       do not print `checking...' messages
  137.   --version               print the version of autoconf that created configure
  138. Directory and file names:
  139.   --prefix=PREFIX         install architecture-independent files in PREFIX
  140.                           [$ac_default_prefix]
  141.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  142.                           [same as prefix]
  143.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  144.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  145.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  146.   --datadir=DIR           read-only architecture-independent data in DIR
  147.                           [PREFIX/share]
  148.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  149.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  150.                           [PREFIX/com]
  151.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  152.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  153.   --includedir=DIR        C header files in DIR [PREFIX/include]
  154.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  155.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  156.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  157.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  158.   --program-prefix=PREFIX prepend PREFIX to installed program names
  159.   --program-suffix=SUFFIX append SUFFIX to installed program names
  160.   --program-transform-name=PROGRAM
  161.                           run sed PROGRAM on installed program names
  162. EOF
  163.     cat << EOF
  164. Host type:
  165.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  166.   --host=HOST             configure for HOST [guessed]
  167.   --target=TARGET         configure for TARGET [TARGET=HOST]
  168. Features and packages:
  169.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  170.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  171.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  172.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  173.   --x-includes=DIR        X include files are in DIR
  174.   --x-libraries=DIR       X library files are in DIR
  175. EOF
  176.     if test -n "$ac_help"; then
  177.       echo "--enable and --with options recognized:$ac_help"
  178.     fi
  179.     exit 0 ;;
  180.   -host | --host | --hos | --ho)
  181.     ac_prev=host ;;
  182.   -host=* | --host=* | --hos=* | --ho=*)
  183.     host="$ac_optarg" ;;
  184.   -includedir | --includedir | --includedi | --included | --include 
  185.   | --includ | --inclu | --incl | --inc)
  186.     ac_prev=includedir ;;
  187.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* 
  188.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  189.     includedir="$ac_optarg" ;;
  190.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  191.     ac_prev=infodir ;;
  192.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  193.     infodir="$ac_optarg" ;;
  194.   -libdir | --libdir | --libdi | --libd)
  195.     ac_prev=libdir ;;
  196.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  197.     libdir="$ac_optarg" ;;
  198.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec 
  199.   | --libexe | --libex | --libe)
  200.     ac_prev=libexecdir ;;
  201.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* 
  202.   | --libexe=* | --libex=* | --libe=*)
  203.     libexecdir="$ac_optarg" ;;
  204.   -localstatedir | --localstatedir | --localstatedi | --localstated 
  205.   | --localstate | --localstat | --localsta | --localst 
  206.   | --locals | --local | --loca | --loc | --lo)
  207.     ac_prev=localstatedir ;;
  208.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* 
  209.   | --localstate=* | --localstat=* | --localsta=* | --localst=* 
  210.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  211.     localstatedir="$ac_optarg" ;;
  212.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  213.     ac_prev=mandir ;;
  214.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  215.     mandir="$ac_optarg" ;;
  216.   -nfp | --nfp | --nf)
  217.     # Obsolete; use --without-fp.
  218.     with_fp=no ;;
  219.   -no-create | --no-create | --no-creat | --no-crea | --no-cre 
  220.   | --no-cr | --no-c)
  221.     no_create=yes ;;
  222.   -no-recursion | --no-recursion | --no-recursio | --no-recursi 
  223.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  224.     no_recursion=yes ;;
  225.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded 
  226.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc 
  227.   | --oldin | --oldi | --old | --ol | --o)
  228.     ac_prev=oldincludedir ;;
  229.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* 
  230.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* 
  231.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  232.     oldincludedir="$ac_optarg" ;;
  233.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  234.     ac_prev=prefix ;;
  235.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  236.     prefix="$ac_optarg" ;;
  237.   -program-prefix | --program-prefix | --program-prefi | --program-pref 
  238.   | --program-pre | --program-pr | --program-p)
  239.     ac_prev=program_prefix ;;
  240.   -program-prefix=* | --program-prefix=* | --program-prefi=* 
  241.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  242.     program_prefix="$ac_optarg" ;;
  243.   -program-suffix | --program-suffix | --program-suffi | --program-suff 
  244.   | --program-suf | --program-su | --program-s)
  245.     ac_prev=program_suffix ;;
  246.   -program-suffix=* | --program-suffix=* | --program-suffi=* 
  247.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  248.     program_suffix="$ac_optarg" ;;
  249.   -program-transform-name | --program-transform-name 
  250.   | --program-transform-nam | --program-transform-na 
  251.   | --program-transform-n | --program-transform- 
  252.   | --program-transform | --program-transfor 
  253.   | --program-transfo | --program-transf 
  254.   | --program-trans | --program-tran 
  255.   | --progr-tra | --program-tr | --program-t)
  256.     ac_prev=program_transform_name ;;
  257.   -program-transform-name=* | --program-transform-name=* 
  258.   | --program-transform-nam=* | --program-transform-na=* 
  259.   | --program-transform-n=* | --program-transform-=* 
  260.   | --program-transform=* | --program-transfor=* 
  261.   | --program-transfo=* | --program-transf=* 
  262.   | --program-trans=* | --program-tran=* 
  263.   | --progr-tra=* | --program-tr=* | --program-t=*)
  264.     program_transform_name="$ac_optarg" ;;
  265.   -q | -quiet | --quiet | --quie | --qui | --qu | --q 
  266.   | -silent | --silent | --silen | --sile | --sil)
  267.     silent=yes ;;
  268.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  269.     ac_prev=sbindir ;;
  270.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* 
  271.   | --sbi=* | --sb=*)
  272.     sbindir="$ac_optarg" ;;
  273.   -sharedstatedir | --sharedstatedir | --sharedstatedi 
  274.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta 
  275.   | --sharedst | --shareds | --shared | --share | --shar 
  276.   | --sha | --sh)
  277.     ac_prev=sharedstatedir ;;
  278.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* 
  279.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* 
  280.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* 
  281.   | --sha=* | --sh=*)
  282.     sharedstatedir="$ac_optarg" ;;
  283.   -site | --site | --sit)
  284.     ac_prev=site ;;
  285.   -site=* | --site=* | --sit=*)
  286.     site="$ac_optarg" ;;
  287.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  288.     ac_prev=srcdir ;;
  289.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  290.     srcdir="$ac_optarg" ;;
  291.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf 
  292.   | --syscon | --sysco | --sysc | --sys | --sy)
  293.     ac_prev=sysconfdir ;;
  294.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* 
  295.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  296.     sysconfdir="$ac_optarg" ;;
  297.   -target | --target | --targe | --targ | --tar | --ta | --t)
  298.     ac_prev=target ;;
  299.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  300.     target="$ac_optarg" ;;
  301.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  302.     verbose=yes ;;
  303.   -version | --version | --versio | --versi | --vers)
  304.     echo "configure generated by autoconf version 2.13"
  305.     exit 0 ;;
  306.   -with-* | --with-*)
  307.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  308.     # Reject names that are not valid shell variable names.
  309.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  310.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  311.     fi
  312.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  313.     case "$ac_option" in
  314.       *=*) ;;
  315.       *) ac_optarg=yes ;;
  316.     esac
  317.     eval "with_${ac_package}='$ac_optarg'" ;;
  318.   -without-* | --without-*)
  319.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  320.     # Reject names that are not valid shell variable names.
  321.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  322.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  323.     fi
  324.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  325.     eval "with_${ac_package}=no" ;;
  326.   --x)
  327.     # Obsolete; use --with-x.
  328.     with_x=yes ;;
  329.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu 
  330.   | --x-incl | --x-inc | --x-in | --x-i)
  331.     ac_prev=x_includes ;;
  332.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* 
  333.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  334.     x_includes="$ac_optarg" ;;
  335.   -x-libraries | --x-libraries | --x-librarie | --x-librari 
  336.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  337.     ac_prev=x_libraries ;;
  338.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* 
  339.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  340.     x_libraries="$ac_optarg" ;;
  341.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  342.     ;;
  343.   *)
  344.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  345.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  346.     fi
  347.     if test "x$nonopt" != xNONE; then
  348.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  349.     fi
  350.     nonopt="$ac_option"
  351.     ;;
  352.   esac
  353. done
  354. if test -n "$ac_prev"; then
  355.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  356. fi
  357. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  358. # File descriptor usage:
  359. # 0 standard input
  360. # 1 file creation
  361. # 2 errors and warnings
  362. # 3 some systems may open it to /dev/tty
  363. # 4 used on the Kubota Titan
  364. # 6 checking for... messages and results
  365. # 5 compiler messages saved in config.log
  366. if test "$silent" = yes; then
  367.   exec 6>/dev/null
  368. else
  369.   exec 6>&1
  370. fi
  371. exec 5>./config.log
  372. echo "
  373. This file contains any messages produced by compilers while
  374. running configure, to aid debugging if configure makes a mistake.
  375. " 1>&5
  376. # Strip out --no-create and --no-recursion so they do not pile up.
  377. # Also quote any args containing shell metacharacters.
  378. ac_configure_args=
  379. for ac_arg
  380. do
  381.   case "$ac_arg" in
  382.   -no-create | --no-create | --no-creat | --no-crea | --no-cre 
  383.   | --no-cr | --no-c) ;;
  384.   -no-recursion | --no-recursion | --no-recursio | --no-recursi 
  385.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  386.   *" "*|*" "*|*[[]~#$^&*(){}\|;<>?]*)
  387.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  388.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  389.   esac
  390. done
  391. # NLS nuisances.
  392. # Only set these to C if already set.  These must not be set unconditionally
  393. # because not all systems understand e.g. LANG=C (notably SCO).
  394. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  395. # Non-C LC_CTYPE values break the ctype check.
  396. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  397. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  398. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  399. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  400. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  401. rm -rf conftest* confdefs.h
  402. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  403. echo > confdefs.h
  404. # A filename unique to this package, relative to the directory that
  405. # configure is in, which we can look for to find out if srcdir is correct.
  406. ac_unique_file=src/iconv.c
  407. # Find the source files, if location was not specified.
  408. if test -z "$srcdir"; then
  409.   ac_srcdir_defaulted=yes
  410.   # Try the directory containing this script, then its parent.
  411.   ac_prog=$0
  412.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  413.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  414.   srcdir=$ac_confdir
  415.   if test ! -r $srcdir/$ac_unique_file; then
  416.     srcdir=..
  417.   fi
  418. else
  419.   ac_srcdir_defaulted=no
  420. fi
  421. if test ! -r $srcdir/$ac_unique_file; then
  422.   if test "$ac_srcdir_defaulted" = yes; then
  423.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  424.   else
  425.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  426.   fi
  427. fi
  428. srcdir=`echo "${srcdir}" | sed 's%([^/])/*$%1%'`
  429. # Prefer explicitly selected file to automatically selected ones.
  430. if test -z "$CONFIG_SITE"; then
  431.   if test "x$prefix" != xNONE; then
  432.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  433.   else
  434.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  435.   fi
  436. fi
  437. for ac_site_file in $CONFIG_SITE; do
  438.   if test -r "$ac_site_file"; then
  439.     echo "loading site script $ac_site_file"
  440.     . "$ac_site_file"
  441.   fi
  442. done
  443. if test -r "$cache_file"; then
  444.   echo "loading cache $cache_file"
  445.   . $cache_file
  446. else
  447.   echo "creating cache $cache_file"
  448.   > $cache_file
  449. fi
  450. ac_ext=c
  451. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  452. ac_cpp='$CPP $CPPFLAGS'
  453. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  454. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  455. cross_compiling=$ac_cv_prog_cc_cross
  456. ac_exeext=
  457. ac_objext=o
  458. if (echo "testingc"; echo 1,2,3) | grep c >/dev/null; then
  459.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  460.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  461.     ac_n= ac_c='
  462. ' ac_t=' ' ac_tt=
  463.   else
  464.     ac_n=-n ac_c= ac_t= ac_tt='
  465.          '
  466.   fi
  467. else
  468.   ac_n= ac_c='c' ac_t= ac_tt='
  469.          '
  470. fi
  471. echo $ac_n "checking whether ${MAKE-make} sets $(MAKE)""... $ac_c" 1>&6
  472. echo "configure:539: checking whether ${MAKE-make} sets $(MAKE)" >&5
  473. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  474. if eval "test "`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`" = set"; then
  475.   echo $ac_n "(cached) $ac_c" 1>&6
  476. else
  477.   cat > conftestmake <<EOF
  478. all:
  479. @echo 'ac_maketemp="${MAKE}"'
  480. EOF
  481. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  482. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  483. if test -n "$ac_maketemp"; then
  484.   eval ac_cv_prog_make_${ac_make}_set=yes
  485. else
  486.   eval ac_cv_prog_make_${ac_make}_set=no
  487. fi
  488. rm -f conftestmake
  489. fi
  490. if eval "test "`echo '$ac_cv_prog_make_'${ac_make}_set`" = yes"; then
  491.   echo "$ac_t""yes" 1>&6
  492.   SET_MAKE=
  493. else
  494.   echo "$ac_t""no" 1>&6
  495.   SET_MAKE="MAKE=${MAKE-make}"
  496. fi
  497. # Extract the first word of "gcc", so it can be a program name with args.
  498. set dummy gcc; ac_word=$2
  499. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  500. echo "configure:570: checking for $ac_word" >&5
  501. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  502.   echo $ac_n "(cached) $ac_c" 1>&6
  503. else
  504.   if test -n "$CC"; then
  505.   ac_cv_prog_CC="$CC" # Let the user override the test.
  506. else
  507.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  508.   ac_dummy="$PATH"
  509.   for ac_dir in $ac_dummy; do
  510.     test -z "$ac_dir" && ac_dir=.
  511.     if test -f $ac_dir/$ac_word; then
  512.       ac_cv_prog_CC="gcc"
  513.       break
  514.     fi
  515.   done
  516.   IFS="$ac_save_ifs"
  517. fi
  518. fi
  519. CC="$ac_cv_prog_CC"
  520. if test -n "$CC"; then
  521.   echo "$ac_t""$CC" 1>&6
  522. else
  523.   echo "$ac_t""no" 1>&6
  524. fi
  525. if test -z "$CC"; then
  526.   # Extract the first word of "cc", so it can be a program name with args.
  527. set dummy cc; ac_word=$2
  528. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  529. echo "configure:600: checking for $ac_word" >&5
  530. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  531.   echo $ac_n "(cached) $ac_c" 1>&6
  532. else
  533.   if test -n "$CC"; then
  534.   ac_cv_prog_CC="$CC" # Let the user override the test.
  535. else
  536.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  537.   ac_prog_rejected=no
  538.   ac_dummy="$PATH"
  539.   for ac_dir in $ac_dummy; do
  540.     test -z "$ac_dir" && ac_dir=.
  541.     if test -f $ac_dir/$ac_word; then
  542.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  543.         ac_prog_rejected=yes
  544.         continue
  545.       fi
  546.       ac_cv_prog_CC="cc"
  547.       break
  548.     fi
  549.   done
  550.   IFS="$ac_save_ifs"
  551. if test $ac_prog_rejected = yes; then
  552.   # We found a bogon in the path, so make sure we never use it.
  553.   set dummy $ac_cv_prog_CC
  554.   shift
  555.   if test $# -gt 0; then
  556.     # We chose a different compiler from the bogus one.
  557.     # However, it has the same basename, so the bogon will be chosen
  558.     # first if we set CC to just the basename; use the full file name.
  559.     shift
  560.     set dummy "$ac_dir/$ac_word" "$@"
  561.     shift
  562.     ac_cv_prog_CC="$@"
  563.   fi
  564. fi
  565. fi
  566. fi
  567. CC="$ac_cv_prog_CC"
  568. if test -n "$CC"; then
  569.   echo "$ac_t""$CC" 1>&6
  570. else
  571.   echo "$ac_t""no" 1>&6
  572. fi
  573.   if test -z "$CC"; then
  574.     case "`uname -s`" in
  575.     *win32* | *WIN32*)
  576.       # Extract the first word of "cl", so it can be a program name with args.
  577. set dummy cl; ac_word=$2
  578. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  579. echo "configure:651: checking for $ac_word" >&5
  580. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  581.   echo $ac_n "(cached) $ac_c" 1>&6
  582. else
  583.   if test -n "$CC"; then
  584.   ac_cv_prog_CC="$CC" # Let the user override the test.
  585. else
  586.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  587.   ac_dummy="$PATH"
  588.   for ac_dir in $ac_dummy; do
  589.     test -z "$ac_dir" && ac_dir=.
  590.     if test -f $ac_dir/$ac_word; then
  591.       ac_cv_prog_CC="cl"
  592.       break
  593.     fi
  594.   done
  595.   IFS="$ac_save_ifs"
  596. fi
  597. fi
  598. CC="$ac_cv_prog_CC"
  599. if test -n "$CC"; then
  600.   echo "$ac_t""$CC" 1>&6
  601. else
  602.   echo "$ac_t""no" 1>&6
  603. fi
  604.  ;;
  605.     esac
  606.   fi
  607.   test -z "$CC" && { echo "configure: error: no acceptable cc found in $PATH" 1>&2; exit 1; }
  608. fi
  609. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  610. echo "configure:683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  611. ac_ext=c
  612. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  613. ac_cpp='$CPP $CPPFLAGS'
  614. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  615. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  616. cross_compiling=$ac_cv_prog_cc_cross
  617. cat > conftest.$ac_ext << EOF
  618. #line 694 "configure"
  619. #include "confdefs.h"
  620. int main(){return(0);}
  621. EOF
  622. if { (eval echo configure:699: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  623.   ac_cv_prog_cc_works=yes
  624.   # If we can't run a trivial program, we are probably using a cross compiler.
  625.   if (./conftest; exit) 2>/dev/null; then
  626.     ac_cv_prog_cc_cross=no
  627.   else
  628.     ac_cv_prog_cc_cross=yes
  629.   fi
  630. else
  631.   echo "configure: failed program was:" >&5
  632.   cat conftest.$ac_ext >&5
  633.   ac_cv_prog_cc_works=no
  634. fi
  635. rm -fr conftest*
  636. ac_ext=c
  637. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  638. ac_cpp='$CPP $CPPFLAGS'
  639. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  640. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  641. cross_compiling=$ac_cv_prog_cc_cross
  642. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  643. if test $ac_cv_prog_cc_works = no; then
  644.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  645. fi
  646. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  647. echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  648. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  649. cross_compiling=$ac_cv_prog_cc_cross
  650. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  651. echo "configure:730: checking whether we are using GNU C" >&5
  652. if eval "test "`echo '$''{'ac_cv_prog_gcc'+set}'`" = set"; then
  653.   echo $ac_n "(cached) $ac_c" 1>&6
  654. else
  655.   cat > conftest.c <<EOF
  656. #ifdef __GNUC__
  657.   yes;
  658. #endif
  659. EOF
  660. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:739: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  661.   ac_cv_prog_gcc=yes
  662. else
  663.   ac_cv_prog_gcc=no
  664. fi
  665. fi
  666. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  667. if test $ac_cv_prog_gcc = yes; then
  668.   GCC=yes
  669. else
  670.   GCC=
  671. fi
  672. ac_test_CFLAGS="${CFLAGS+set}"
  673. ac_save_CFLAGS="$CFLAGS"
  674. CFLAGS=
  675. if test "$ac_test_CFLAGS" = set; then
  676.   CFLAGS="$ac_save_CFLAGS"
  677. else
  678.   if test "$GCC" = yes; then
  679.     # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
  680.     # that results from __OPTIMIZE__ being defined for CC but not CPP.
  681.     if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
  682.       : # already optimizing
  683.     else
  684.       CC="$CC -O"
  685.       ac_cv_prog_CC="$CC"
  686.     fi
  687.   else
  688.     CFLAGS=
  689.   fi
  690. fi
  691. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  692. echo "configure:774: checking how to run the C preprocessor" >&5
  693. # On Suns, sometimes $CPP names a directory.
  694. if test -n "$CPP" && test -d "$CPP"; then
  695.   CPP=
  696. fi
  697. if test -z "$CPP"; then
  698. if eval "test "`echo '$''{'ac_cv_prog_CPP'+set}'`" = set"; then
  699.   echo $ac_n "(cached) $ac_c" 1>&6
  700. else
  701.     # This must be in double quotes, not single quotes, because CPP may get
  702.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  703.   CPP="${CC-cc} -E"
  704.   if test -n "$GCC"; then
  705.     # Suppress warning messages.
  706.     CPP="$CPP -w"
  707.   fi
  708.   # On the NeXT, cc -E runs the code through the compiler's parser,
  709.   # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
  710.   # "cc -E -traditional-cpp" instead.
  711.   cat > conftest.$ac_ext <<EOF
  712. #line 794 "configure"
  713. #include "confdefs.h"
  714. #include <assert.h>
  715. Syntax Error
  716. EOF
  717. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  718. { (eval echo configure:800: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  719. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  720. if test -z "$ac_err"; then
  721.   rm -rf conftest*
  722.   ac_have_cpp=1
  723. else
  724.   echo "$ac_err" >&5
  725.   echo "configure: failed program was:" >&5
  726.   cat conftest.$ac_ext >&5
  727. fi
  728. rm -f conftest*
  729.   if test -z "$ac_have_cpp"; then
  730.     CPP="${CC-cc} -E -traditional-cpp"
  731.     cat > conftest.$ac_ext <<EOF
  732. #line 814 "configure"
  733. #include "confdefs.h"
  734. #include <assert.h>
  735. Syntax Error
  736. EOF
  737. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  738. { (eval echo configure:820: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  739. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  740. if test -z "$ac_err"; then
  741.   rm -rf conftest*
  742.   ac_have_cpp=1
  743. else
  744.   echo "$ac_err" >&5
  745.   echo "configure: failed program was:" >&5
  746.   cat conftest.$ac_ext >&5
  747. fi
  748. rm -f conftest*
  749.     if test -n "$ac_have_cpp"; then
  750.       CC="${CC-cc} -traditional-cpp"
  751.     else
  752.       CPP="${CC-cc} -nologo -E"
  753.       cat > conftest.$ac_ext <<EOF
  754. #line 836 "configure"
  755. #include "confdefs.h"
  756. #include <assert.h>
  757. Syntax Error
  758. EOF
  759. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  760. { (eval echo configure:842: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  761. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  762. if test -z "$ac_err"; then
  763.   rm -rf conftest*
  764.   ac_have_cpp=1
  765. else
  766.   echo "$ac_err" >&5
  767.   echo "configure: failed program was:" >&5
  768.   cat conftest.$ac_ext >&5
  769. fi
  770. rm -f conftest*
  771.       if test -n "$ac_have_cpp"; then
  772.         CC="${CC-cc} -nologo"
  773.       else
  774.         CPP=/lib/cpp
  775.       fi
  776.     fi
  777.   fi
  778.   ac_cv_prog_CC="$CC"
  779.   ac_cv_prog_CPP="$CPP"
  780. fi
  781.   CPP="$ac_cv_prog_CPP"
  782. else
  783.   ac_cv_prog_CPP="$CPP"
  784. fi
  785. echo "$ac_t""$CPP" 1>&6
  786. if test $ac_cv_prog_gcc = yes; then
  787.   echo $ac_n "checking whether -traditional is needed for ${CC-cc} on this system""... $ac_c" 1>&6
  788. echo "configure:871: checking whether -traditional is needed for ${CC-cc} on this system" >&5
  789. if eval "test "`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`" = set"; then
  790.   echo $ac_n "(cached) $ac_c" 1>&6
  791. else
  792.     ac_pattern="Autoconf.*'x'"
  793.   cat > conftest.$ac_ext <<EOF
  794. #line 877 "configure"
  795. #include "confdefs.h"
  796. #include <sgtty.h>
  797. Autoconf TIOCGETP
  798. EOF
  799. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  800.   egrep "$ac_pattern" >/dev/null 2>&1; then
  801.   rm -rf conftest*
  802.   ac_cv_prog_gcc_traditional=yes
  803. else
  804.   rm -rf conftest*
  805.   ac_cv_prog_gcc_traditional=no
  806. fi
  807. rm -f conftest*
  808.   if test $ac_cv_prog_gcc_traditional = no; then
  809.     cat > conftest.$ac_ext <<EOF
  810. #line 895 "configure"
  811. #include "confdefs.h"
  812. #include <termio.h>
  813. Autoconf TCGETA
  814. EOF
  815. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  816.   egrep "$ac_pattern" >/dev/null 2>&1; then
  817.   rm -rf conftest*
  818.   ac_cv_prog_gcc_traditional=yes
  819. fi
  820. rm -f conftest*
  821.   fi
  822.   if test $ac_cv_prog_gcc_traditional = no; then
  823.     # On some USL SVR4 systems, gcc's fixinc.svr4 modifies <signal.h> and
  824.     # <sys/signal.h> in such a way that "#include <signal.h>" results in a
  825.     # syntax error because of `sigset_t' if gcc is called with __STDC__=1
  826.     # but __STRICT_ANSI__ undefined. Remedy: use -traditional.
  827.     ac_prog='
  828. #include <sys/types.h>
  829. #include <signal.h>
  830. #ifdef __cplusplus
  831. extern "C" void exit(int);
  832. #endif
  833. int main() { exit(0); }'
  834.     echo "$ac_prog" > conftest.c
  835.     if eval $ac_link; then
  836.       :
  837.     else
  838.       ac_prog='
  839. #undef __STDC__
  840. #include <sys/types.h>
  841. #include <signal.h>
  842. #ifdef __cplusplus
  843. extern "C" void exit(int);
  844. #endif
  845. int main() { exit(0); }'
  846.       echo "$ac_prog" > conftest.c
  847.       if eval $ac_link; then
  848.         ac_cv_prog_gcc_traditional=yes
  849.       fi
  850.     fi
  851.     rm -f conftest*
  852.   fi
  853. fi
  854. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  855.   if test $ac_cv_prog_gcc_traditional = yes; then
  856.     CC="$CC -traditional"
  857.   fi
  858. fi
  859. # Extract the first word of "ranlib", so it can be a program name with args.
  860. set dummy ranlib; ac_word=$2
  861. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  862. echo "configure:949: checking for $ac_word" >&5
  863. if eval "test "`echo '$''{'ac_cv_prog_RANLIB'+set}'`" = set"; then
  864.   echo $ac_n "(cached) $ac_c" 1>&6
  865. else
  866.   if test -n "$RANLIB"; then
  867.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  868. else
  869.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  870.   ac_dummy="$PATH"
  871.   for ac_dir in $ac_dummy; do
  872.     test -z "$ac_dir" && ac_dir=.
  873.     if test -f $ac_dir/$ac_word; then
  874.       ac_cv_prog_RANLIB="ranlib"
  875.       break
  876.     fi
  877.   done
  878.   IFS="$ac_save_ifs"
  879.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
  880. fi
  881. fi
  882. RANLIB="$ac_cv_prog_RANLIB"
  883. if test -n "$RANLIB"; then
  884.   echo "$ac_t""$RANLIB" 1>&6
  885. else
  886.   echo "$ac_t""no" 1>&6
  887. fi
  888. # Find a good install program.  We prefer a C program (faster),
  889. # so one script is as good as another.  But avoid the broken or
  890. # incompatible versions:
  891. # SysV /etc/install, /usr/sbin/install
  892. # SunOS /usr/etc/install
  893. # IRIX /sbin/install
  894. # AIX /bin/install
  895. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  896. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  897. # ./install, which can be erroneously created by make from ./install.sh.
  898. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  899. echo "configure:987: checking for a BSD compatible install" >&5
  900. if test -z "$INSTALL"; then
  901. if eval "test "`echo '$''{'cl_cv_path_install'+set}'`" = set"; then
  902.   echo $ac_n "(cached) $ac_c" 1>&6
  903. else
  904.     IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  905.   for ac_dir in $PATH; do
  906.     # Account for people who put trailing slashes in PATH elements.
  907.     case "$ac_dir/" in
  908.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  909.     *)
  910.       # OSF1 and SCO ODT 3.0 have their own names for install.
  911.       for ac_prog in ginstall installbsd scoinst install; do
  912.         if test -f $ac_dir/$ac_prog; then
  913.   if test $ac_prog = install &&
  914.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  915.     # AIX install.  It has an incompatible calling convention.
  916.     # OSF/1 installbsd also uses dspmsg, but is usable.
  917.     :
  918.   else
  919.     if test $ac_prog = installbsd &&
  920.       grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
  921.       # AIX installbsd doesn't work without option "-g".
  922.       :
  923.     else
  924.       ac_cv_path_install="$ac_dir/$ac_prog -c"
  925.       break 2
  926.     fi
  927.   fi
  928. fi
  929.       done
  930.       ;;
  931.     esac
  932.   done
  933.   IFS="$ac_save_ifs"
  934.   # As a last resort, use cp.
  935.   test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
  936. fi
  937.   INSTALL="$cl_cv_path_install"
  938. fi
  939. echo "$ac_t""$INSTALL" 1>&6
  940. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  941. # It thinks the first close brace ends the variable substitution.
  942. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
  943. if test -z "$INSTALL_DATA"; then
  944.   case "$INSTALL" in
  945.     cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
  946.     * )         INSTALL_DATA='$(INSTALL) -m 644' ;;
  947.   esac
  948. fi
  949.  ac_aux_dir=${srcdir}/autoconf
  950. echo $ac_n "checking host system type""... $ac_c" 1>&6
  951. echo "configure:1043: checking host system type" >&5
  952. if eval "test "`echo '$''{'cl_cv_host'+set}'`" = set"; then
  953.   echo $ac_n "(cached) $ac_c" 1>&6
  954. else
  955.   
  956. ac_config_guess=$ac_aux_dir/config.guess
  957. ac_config_sub=$ac_aux_dir/config.sub
  958. # Make sure we can run config.sub.
  959. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  960. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  961. fi
  962. host_alias=$host
  963. case "$host_alias" in
  964. NONE)
  965.   case $nonopt in
  966.   NONE)         host_alias=`export CC; $ac_config_guess` ;;
  967.   *)    host_alias=$nonopt ;;
  968.   esac ;;
  969. esac
  970. # Don't fail just because the system is not listed in GNU's database.
  971. if test -n "$host_alias"; then
  972.   host=`$ac_config_sub $host_alias`
  973. else
  974.   host=unknown-unknown-unknown
  975. fi
  976. cl_cv_host="$host"
  977. fi
  978. echo "$ac_t""$cl_cv_host" 1>&6
  979. host="$cl_cv_host"
  980. host_cpu=`echo $host | sed 's/^(.*)-(.*)-(.*)$/1/'`
  981. host_vendor=`echo $host | sed 's/^(.*)-(.*)-(.*)$/2/'`
  982. host_os=`echo $host | sed 's/^(.*)-(.*)-(.*)$/3/'`
  983. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  984. echo "configure:1080: checking for AIX" >&5
  985. if eval "test "`echo '$''{'ac_cv_sys_aix'+set}'`" = set"; then
  986.   echo $ac_n "(cached) $ac_c" 1>&6
  987. else
  988.   
  989. cat > conftest.$ac_ext <<EOF
  990. #line 1086 "configure"
  991. #include "confdefs.h"
  992. #ifdef _AIX
  993.   yes
  994. #endif
  995. EOF
  996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  997.   egrep "yes" >/dev/null 2>&1; then
  998.   rm -rf conftest*
  999.   ac_cv_sys_aix=yes
  1000. else
  1001.   rm -rf conftest*
  1002.   ac_cv_sys_aix=no
  1003. fi
  1004. rm -f conftest*
  1005. fi
  1006. echo "$ac_t""$ac_cv_sys_aix" 1>&6
  1007. if test $ac_cv_sys_aix = yes; then
  1008.   cat >> confdefs.h <<EOF
  1009. #define _ALL_SOURCE 1
  1010. EOF
  1011. fi
  1012. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  1013. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1014. echo "configure:1115: checking for minix/config.h" >&5
  1015. if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
  1016.   echo $ac_n "(cached) $ac_c" 1>&6
  1017. else
  1018.   cat > conftest.$ac_ext <<EOF
  1019. #line 1120 "configure"
  1020. #include "confdefs.h"
  1021. #include <minix/config.h>
  1022. EOF
  1023. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1024. { (eval echo configure:1125: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  1025. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  1026. if test -z "$ac_err"; then
  1027.   rm -rf conftest*
  1028.   eval "ac_cv_header_$ac_safe=yes"
  1029. else
  1030.   echo "$ac_err" >&5
  1031.   echo "configure: failed program was:" >&5
  1032.   cat conftest.$ac_ext >&5
  1033.   rm -rf conftest*
  1034.   eval "ac_cv_header_$ac_safe=no"
  1035. fi
  1036. rm -f conftest*
  1037. fi
  1038. if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
  1039.   echo "$ac_t""yes" 1>&6
  1040.   MINIX=yes
  1041. else
  1042.   echo "$ac_t""no" 1>&6
  1043. MINIX=
  1044. fi
  1045. if test "$MINIX" = yes; then
  1046.   cat >> confdefs.h <<EOF
  1047. #define _POSIX_SOURCE 1
  1048. EOF
  1049.   cat >> confdefs.h <<EOF
  1050. #define _POSIX_1_SOURCE 2
  1051. EOF
  1052.   cat >> confdefs.h <<EOF
  1053. #define _MINIX 1
  1054. EOF
  1055. fi
  1056. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1057. echo "configure:1163: checking for POSIXized ISC" >&5
  1058. if eval "test "`echo '$''{'ac_cv_sys_isc_posix'+set}'`" = set"; then
  1059.   echo $ac_n "(cached) $ac_c" 1>&6
  1060. else
  1061.   
  1062. if test -d /etc/conf/kconfig.d &&
  1063.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1064. then
  1065.   ac_cv_sys_isc_posix=yes
  1066. else
  1067.   ac_cv_sys_isc_posix=no
  1068. fi
  1069. fi
  1070. echo "$ac_t""$ac_cv_sys_isc_posix" 1>&6
  1071. if test $ac_cv_sys_isc_posix = yes; then
  1072.   ISC=yes # If later tests want to check for ISC.
  1073.   cat >> confdefs.h <<EOF
  1074. #define _POSIX_SOURCE 1
  1075. EOF
  1076.   if test "$GCC" = yes; then
  1077.     CC="$CC -posix"
  1078.   else
  1079.     CC="$CC -Xp"
  1080.   fi
  1081. else
  1082.   ISC=
  1083. fi
  1084. PACKAGE=libiconv
  1085. # Check whether --enable-static or --disable-static was given.
  1086. if test "${enable_static+set}" = set; then
  1087.   enableval="$enable_static"
  1088.   p=${PACKAGE-default}
  1089. case "$enableval" in
  1090. yes) enable_static=yes ;;
  1091. no) enable_static=no ;;
  1092. *)
  1093.   enable_static=no
  1094.   # Look at the argument we got.  We use all the common list separators.
  1095.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1096.   for pkg in $enableval; do
  1097.     if test "X$pkg" = "X$p"; then
  1098.       enable_static=yes
  1099.     fi
  1100.   done
  1101.   IFS="$ac_save_ifs"
  1102.   ;;
  1103. esac
  1104. else
  1105.   enable_static=no
  1106. fi
  1107. # Check whether --enable-shared or --disable-shared was given.
  1108. if test "${enable_shared+set}" = set; then
  1109.   enableval="$enable_shared"
  1110.   p=${PACKAGE-default}
  1111. case "$enableval" in
  1112. yes) enable_shared=yes ;;
  1113. no) enable_shared=no ;;
  1114. *)
  1115.   enable_shared=no
  1116.   # Look at the argument we got.  We use all the common list separators.
  1117.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1118.   for pkg in $enableval; do
  1119.     if test "X$pkg" = "X$p"; then
  1120.       enable_shared=yes
  1121.     fi
  1122.   done
  1123.   IFS="$ac_save_ifs"
  1124.   ;;
  1125. esac
  1126. else
  1127.   enable_shared=yes
  1128. fi
  1129. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1130. if test "${with_gnu_ld+set}" = set; then
  1131.   withval="$with_gnu_ld"
  1132.   test "$withval" = no || with_gnu_ld=yes
  1133. else
  1134.   with_gnu_ld=no
  1135. fi
  1136. ac_prog=ld
  1137. if test "$ac_cv_prog_gcc" = yes; then
  1138.   # Check if gcc -print-prog-name=ld gives a path.
  1139.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1140. echo "configure:1256: checking for ld used by GCC" >&5
  1141.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1142.   case "$ac_prog" in
  1143.   # Accept absolute paths.
  1144.   /* | A-Za-z:\*)
  1145.     test -z "$LD" && LD="$ac_prog"
  1146.     ;;
  1147.   "")
  1148.     # If it fails, then pretend we aren't using GCC.
  1149.     ac_prog=ld
  1150.     ;;
  1151.   *)
  1152.     # If it is relative, then search for the first ld in PATH.
  1153.     with_gnu_ld=unknown
  1154.     ;;
  1155.   esac
  1156. elif test "$with_gnu_ld" = yes; then
  1157.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1158. echo "configure:1274: checking for GNU ld" >&5
  1159. else
  1160.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1161. echo "configure:1277: checking for non-GNU ld" >&5
  1162. fi
  1163. if eval "test "`echo '$''{'ac_cv_path_LD'+set}'`" = set"; then
  1164.   echo $ac_n "(cached) $ac_c" 1>&6
  1165. else
  1166.   if test -z "$LD"; then
  1167.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1168.   for ac_dir in $PATH; do
  1169.     test -z "$ac_dir" && ac_dir=.
  1170.     if test -f "$ac_dir/$ac_prog"; then
  1171.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1172.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1173.       # but apparently some GNU ld's only accept -v.
  1174.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1175.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1176. test "$with_gnu_ld" != no && break
  1177.       else
  1178.         test "$with_gnu_ld" != yes && break
  1179.       fi
  1180.     fi
  1181.   done
  1182.   IFS="$ac_save_ifs"
  1183. else
  1184.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1185. fi
  1186. fi
  1187. LD="$ac_cv_path_LD"
  1188. if test -n "$LD"; then
  1189.   echo "$ac_t""$LD" 1>&6
  1190. else
  1191.   echo "$ac_t""no" 1>&6
  1192. fi
  1193. test -z "$LD" && { echo "configure: error: no acceptable ld found in $PATH" 1>&2; exit 1; }
  1194. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1195. echo "configure:1313: checking if the linker ($LD) is GNU ld" >&5
  1196. if eval "test "`echo '$''{'ac_cv_prog_gnu_ld'+set}'`" = set"; then
  1197.   echo $ac_n "(cached) $ac_c" 1>&6
  1198. else
  1199.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1200. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1201.   ac_cv_prog_gnu_ld=yes
  1202. else
  1203.   ac_cv_prog_gnu_ld=no
  1204. fi
  1205. fi
  1206. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1207. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1208. echo "configure:1328: checking for BSD-compatible nm" >&5
  1209. if eval "test "`echo '$''{'ac_cv_path_NM'+set}'`" = set"; then
  1210.   echo $ac_n "(cached) $ac_c" 1>&6
  1211. else
  1212.   case "$NM" in
  1213. /* | A-Za-z:\*)
  1214.   ac_cv_path_NM="$NM" # Let the user override the test with a path.
  1215.   ;;
  1216. *)
  1217.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1218.   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
  1219.     test -z "$ac_dir" && ac_dir=.
  1220.     if test -f $ac_dir/nm; then
  1221.       # Check to see if the nm accepts a BSD-compat flag.
  1222.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1223.       #   nm: unknown option "B" ignored
  1224.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1225.         ac_cv_path_NM="$ac_dir/nm -B"
  1226.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1227.         ac_cv_path_NM="$ac_dir/nm -p"
  1228.       else
  1229.         ac_cv_path_NM="$ac_dir/nm"
  1230.       fi
  1231.       break
  1232.     fi
  1233.   done
  1234.   IFS="$ac_save_ifs"
  1235.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1236.   ;;
  1237. esac
  1238. fi
  1239. NM="$ac_cv_path_NM"
  1240. echo "$ac_t""$NM" 1>&6
  1241. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1242. echo "configure:1365: checking whether ln -s works" >&5
  1243. if eval "test "`echo '$''{'ac_cv_prog_LN_S'+set}'`" = set"; then
  1244.   echo $ac_n "(cached) $ac_c" 1>&6
  1245. else
  1246.   rm -f conftestdata
  1247. if ln -s X conftestdata 2>/dev/null
  1248. then
  1249.   rm -f conftestdata
  1250.   ac_cv_prog_LN_S="ln -s"
  1251. else
  1252.   ac_cv_prog_LN_S=ln
  1253. fi
  1254. fi
  1255. LN_S="$ac_cv_prog_LN_S"
  1256. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1257.   echo "$ac_t""yes" 1>&6
  1258. else
  1259.   echo "$ac_t""no" 1>&6
  1260. fi
  1261. # Always use our own libtool.
  1262. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1263. # Check for any special flags to pass to ltconfig.
  1264. libtool_flags=
  1265. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1266. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1267. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  1268. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1269. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1270. # Some flags need to be propagated to the compiler or linker for good
  1271. # libtool support.
  1272. case "$host" in
  1273. *-*-irix6*)
  1274.   # Find out which ABI we are using.
  1275.   echo '#line 1401 "configure"' > conftest.$ac_ext
  1276.   if { (eval echo configure:1402: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  1277.     case "`/usr/bin/file conftest.o`" in
  1278.     *32-bit*)
  1279.       LD="${LD-ld} -32"
  1280.       ;;
  1281.     *N32*)
  1282.       LD="${LD-ld} -n32"
  1283.       ;;
  1284.     *64-bit*)
  1285.       LD="${LD-ld} -64"
  1286.       ;;
  1287.     esac
  1288.   fi
  1289.   rm -rf conftest*
  1290.   ;;
  1291. *-*-sco3.2v5*)
  1292.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1293.   CFLAGS="$CFLAGS -belf"
  1294.   ;;
  1295. esac
  1296. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1297. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" 
  1298. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" 
  1299. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig 
  1300. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host 
  1301. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1302. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  1303. echo "configure:1435: checking for iconv" >&5
  1304. if eval "test "`echo '$''{'cl_cv_func_iconv'+set}'`" = set"; then
  1305.   echo $ac_n "(cached) $ac_c" 1>&6
  1306. else
  1307.   
  1308. cl_cv_func_iconv=no
  1309. cl_cv_lib_iconv=no
  1310. cat > conftest.$ac_ext <<EOF
  1311. #line 1443 "configure"
  1312. #include "confdefs.h"
  1313. #include <stdlib.h>
  1314. #include <iconv.h>
  1315. int main() {
  1316. iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
  1317. ; return 0; }
  1318. EOF
  1319. if { (eval echo configure:1451: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1320.   rm -rf conftest*
  1321.   cl_cv_func_iconv=yes
  1322. else
  1323.   echo "configure: failed program was:" >&5
  1324.   cat conftest.$ac_ext >&5
  1325. fi
  1326. rm -f conftest*
  1327. if test "$cl_cv_func_iconv" = no; then
  1328. cl_save_LIBS="$LIBS"
  1329. LIBS="$LIBS -liconv"
  1330. cat > conftest.$ac_ext <<EOF
  1331. #line 1463 "configure"
  1332. #include "confdefs.h"
  1333. #include <stdlib.h>
  1334. #include <iconv.h>
  1335. int main() {
  1336. iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
  1337. ; return 0; }
  1338. EOF
  1339. if { (eval echo configure:1471: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1340.   rm -rf conftest*
  1341.   cl_cv_lib_iconv=yes
  1342. cl_cv_func_iconv=yes
  1343. else
  1344.   echo "configure: failed program was:" >&5
  1345.   cat conftest.$ac_ext >&5
  1346. fi
  1347. rm -f conftest*
  1348. LIBS="$cl_save_LIBS"
  1349. fi
  1350. fi
  1351. echo "$ac_t""$cl_cv_func_iconv" 1>&6
  1352. if test "$cl_cv_func_iconv" = yes; then
  1353.   cat >> confdefs.h <<EOF
  1354. #define HAVE_ICONV 1
  1355. EOF
  1356. echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
  1357. echo "configure:1491: checking for iconv declaration" >&5
  1358. if eval "test "`echo '$''{'cl_cv_proto_iconv'+set}'`" = set"; then
  1359.   echo $ac_n "(cached) $ac_c" 1>&6
  1360. else
  1361.   
  1362. cat > conftest.$ac_ext <<EOF
  1363. #line 1497 "configure"
  1364. #include "confdefs.h"
  1365. #include <stdlib.h>
  1366. #ifdef HAVE_UNISTD_H
  1367. #include <unistd.h>
  1368. #endif
  1369. #include <sys/types.h>
  1370. #include <iconv.h>
  1371. extern
  1372. #ifdef __cplusplus
  1373. "C"
  1374. #endif
  1375. #if defined(__STDC__) || defined(__cplusplus)
  1376. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);
  1377. #else
  1378. size_t iconv();
  1379. #endif
  1380. int main() {
  1381. ; return 0; }
  1382. EOF
  1383. if { (eval echo configure:1522: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  1384.   rm -rf conftest*
  1385.   cl_cv_proto_iconv_arg1=""
  1386. else
  1387.   echo "configure: failed program was:" >&5
  1388.   cat conftest.$ac_ext >&5
  1389.   rm -rf conftest*
  1390.   cl_cv_proto_iconv_arg1="const"
  1391. fi
  1392. rm -f conftest*
  1393. cl_cv_proto_iconv="extern size_t iconv (iconv_t cd, $cl_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);"
  1394. fi
  1395. cl_cv_proto_iconv=`echo "$cl_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  1396. echo "$ac_t""${ac_tt}$cl_cv_proto_iconv" 1>&6
  1397. cat >> confdefs.h <<EOF
  1398. #define ICONV_CONST $cl_cv_proto_iconv_arg1
  1399. EOF
  1400. fi
  1401. LIBICONV=
  1402. if test "$cl_cv_lib_iconv" = yes; then
  1403.   LIBICONV="-liconv"
  1404. fi
  1405. if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
  1406.   ICONV_CONST=""
  1407. else
  1408.   ICONV_CONST="const"
  1409. fi
  1410. echo $ac_n "checking byte ordering""... $ac_c" 1>&6
  1411. echo "configure:1560: checking byte ordering" >&5
  1412. if eval "test "`echo '$''{'cl_cv_sys_endian'+set}'`" = set"; then
  1413.   echo $ac_n "(cached) $ac_c" 1>&6
  1414. else
  1415.   
  1416. if test "$cross_compiling" = yes; then
  1417.   : # must guess the endianness
  1418. else
  1419.   cat > conftest.$ac_ext <<EOF
  1420. #line 1570 "configure"
  1421. #include "confdefs.h"
  1422. #ifdef __cplusplus
  1423. extern "C" void exit(int);
  1424. #endif
  1425. int main () {
  1426.   /* Are we little or big endian?  From Harbison&Steele.  */
  1427.   union
  1428.   {
  1429.     long l;
  1430.     char c[sizeof (long)];
  1431.   } u;
  1432.   u.l = 1;
  1433.   exit (u.c[0] == 1);
  1434. }
  1435. EOF
  1436. if { (eval echo configure:1586: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1437. then
  1438.   cl_cv_sys_endian="big endian"
  1439. else
  1440.   echo "configure: failed program was:" >&5
  1441.   cat conftest.$ac_ext >&5
  1442.   rm -fr conftest*
  1443.   cl_cv_sys_endian="little endian"
  1444. fi
  1445. if test -f core; then
  1446.   coredir=core`/bin/sh -c 'echo $$'`
  1447.   mkdir $coredir
  1448.   cp confdefs.h $coredir/confdefs.h
  1449.   mv conftest.c $coredir/conftest.c
  1450.   mv conftest $coredir/conftest
  1451.   mv core $coredir/core
  1452.   echo "warning: test program dumped core -- see subdirectory $coredir"
  1453. fi
  1454. rm -fr conftest*
  1455. fi
  1456. if test -z "$cl_cv_sys_endian"; then
  1457. cat > conftest.$ac_ext <<EOF
  1458. #line 1609 "configure"
  1459. #include "confdefs.h"
  1460. #if defined(m68k) || defined(mc68000) || defined(mc68020) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(hppa) || defined(__hppa) || defined(m88000)
  1461.   yes
  1462. #endif
  1463. EOF
  1464. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1465.   egrep "yes" >/dev/null 2>&1; then
  1466.   rm -rf conftest*
  1467.   cl_cv_sys_endian="big endian"
  1468. fi
  1469. rm -f conftest*
  1470. fi
  1471. if test -z "$cl_cv_sys_endian"; then
  1472. cat > conftest.$ac_ext <<EOF
  1473. #line 1626 "configure"
  1474. #include "confdefs.h"
  1475. #if defined(i386) || defined(__i386) || defined(_I386) || defined(MIPSEL) || defined(__alpha)
  1476.   yes
  1477. #endif
  1478. EOF
  1479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1480.   egrep "yes" >/dev/null 2>&1; then
  1481.   rm -rf conftest*
  1482.   cl_cv_sys_endian="little endian"
  1483. fi
  1484. rm -f conftest*
  1485. fi
  1486. if test -z "$cl_cv_sys_endian"; then
  1487. cl_cv_sys_endian="guessing little endian"
  1488. fi
  1489. fi
  1490. echo "$ac_t""$cl_cv_sys_endian" 1>&6
  1491. case "$cl_cv_sys_endian" in
  1492.   *little*) cat >> confdefs.h <<EOF
  1493. #define WORDS_LITTLEENDIAN 1
  1494. EOF
  1495.  ;;
  1496.   *big*)    ;;
  1497. esac
  1498. OS=""
  1499. case "$host_os" in
  1500.   linux*)   OS="linux" ;;
  1501.   solaris*) OS="solaris" ;;
  1502.   osf*)     OS="osf" ;;
  1503. esac
  1504. if test -n "$OS"; then
  1505.   
  1506.   PLUGLIB="libiconv_plug.so"
  1507. else
  1508.   PLUGLIB=""
  1509. fi
  1510. if test -d "${srcdir}/tests"; then
  1511.   TESTS_MAKEFILE=tests/Makefile
  1512. else
  1513.   TESTS_MAKEFILE=""
  1514. fi
  1515. trap '' 1 2 15
  1516. cat > confcache <<EOF
  1517. # This file is a shell script that caches the results of configure
  1518. # tests run on this system so they can be shared between configure
  1519. # scripts and configure runs.  It is not useful on other systems.
  1520. # If it contains results you don't want to keep, you may remove or edit it.
  1521. #
  1522. # By default, configure uses ./config.cache as the cache file,
  1523. # creating it if it does not exist already.  You can give configure
  1524. # the --cache-file=FILE option to use a different cache file; that is
  1525. # what configure does when it calls configure scripts in
  1526. # subdirectories, so they share the cache.
  1527. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1528. # config.status only pays attention to the cache file if you give it the
  1529. # --recheck option to rerun configure.
  1530. #
  1531. EOF
  1532. # The following way of writing the cache mishandles newlines in values,
  1533. # but we know of no workaround that is simple, portable, and efficient.
  1534. # So, don't put newlines in cache variables' values.
  1535. # Ultrix sh set writes to stderr and can't be redirected directly,
  1536. # and sets the high bit in the cache file unless we assign to the vars.
  1537. (set) 2>&1 |
  1538.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1539.   *ac_space= *)
  1540.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1541.     # turns \\ into \, and sed turns \ into ).
  1542.     sed -n 
  1543.       -e "s/'/'\\''/g" 
  1544.       -e "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1='\2'}/p"
  1545.     ;;
  1546.   *)
  1547.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1548.     sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
  1549.     ;;
  1550.   esac >> confcache
  1551. if cmp -s $cache_file confcache; then
  1552.   :
  1553. else
  1554.   if test -w $cache_file; then
  1555.     echo "updating cache $cache_file"
  1556.     cat confcache > $cache_file
  1557.   else
  1558.     echo "not updating unwritable cache $cache_file"
  1559.   fi
  1560. fi
  1561. rm -f confcache
  1562. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1563. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1564. # Let make expand exec_prefix.
  1565. test "x$exec_prefix" = xNONE && exec_prefix='$(prefix)'
  1566. # Any assignment to VPATH causes Sun make to only execute
  1567. # the first set of double-colon rules, so remove it if not needed.
  1568. # If there is a colon in the path, we need to keep it.
  1569. if test "x$srcdir" = x.; then
  1570.   ac_vpsub='/^[  ]*VPATH[  ]*=[^:]*$/d'
  1571. fi
  1572. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1573. DEFS=-DHAVE_CONFIG_H
  1574. # Without the "./", some shells look in PATH for config.status.
  1575. : ${CONFIG_STATUS=./config.status}
  1576. echo creating $CONFIG_STATUS
  1577. rm -f $CONFIG_STATUS
  1578. cat > $CONFIG_STATUS <<EOF
  1579. #! /bin/sh
  1580. # Generated automatically by configure.
  1581. # Run this file to recreate the current configuration.
  1582. # This directory was configured as follows,
  1583. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1584. #
  1585. # $0 $ac_configure_args
  1586. #
  1587. # Compiler output produced by configure, useful for debugging
  1588. # configure, is in ./config.log if it exists.
  1589. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1590. for ac_option
  1591. do
  1592.   case "$ac_option" in
  1593.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1594.     echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1595.     exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1596.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1597.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1598.     exit 0 ;;
  1599.   -help | --help | --hel | --he | --h)
  1600.     echo "$ac_cs_usage"; exit 0 ;;
  1601.   *) echo "$ac_cs_usage"; exit 1 ;;
  1602.   esac
  1603. done
  1604. ac_given_srcdir=$srcdir
  1605. trap 'rm -fr `echo "Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1606. EOF
  1607. cat >> $CONFIG_STATUS <<EOF
  1608. # Protect against being on the right side of a sed subst in config.status.
  1609. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
  1610.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1611. $ac_vpsub
  1612. $extrasub
  1613. s%@SHELL@%$SHELL%g
  1614. s%@CFLAGS@%$CFLAGS%g
  1615. s%@CPPFLAGS@%$CPPFLAGS%g
  1616. s%@CXXFLAGS@%$CXXFLAGS%g
  1617. s%@FFLAGS@%$FFLAGS%g
  1618. s%@DEFS@%$DEFS%g
  1619. s%@LDFLAGS@%$LDFLAGS%g
  1620. s%@LIBS@%$LIBS%g
  1621. s%@exec_prefix@%$exec_prefix%g
  1622. s%@prefix@%$prefix%g
  1623. s%@program_transform_name@%$program_transform_name%g
  1624. s%@bindir@%$bindir%g
  1625. s%@sbindir@%$sbindir%g
  1626. s%@libexecdir@%$libexecdir%g
  1627. s%@datadir@%$datadir%g
  1628. s%@sysconfdir@%$sysconfdir%g
  1629. s%@sharedstatedir@%$sharedstatedir%g
  1630. s%@localstatedir@%$localstatedir%g
  1631. s%@libdir@%$libdir%g
  1632. s%@includedir@%$includedir%g
  1633. s%@oldincludedir@%$oldincludedir%g
  1634. s%@infodir@%$infodir%g
  1635. s%@mandir@%$mandir%g
  1636. s%@SET_MAKE@%$SET_MAKE%g
  1637. s%@CC@%$CC%g
  1638. s%@CPP@%$CPP%g
  1639. s%@RANLIB@%$RANLIB%g
  1640. s%@INSTALL@%$INSTALL%g
  1641. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1642. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1643. s%@host@%$host%g
  1644. s%@host_cpu@%$host_cpu%g
  1645. s%@host_vendor@%$host_vendor%g
  1646. s%@host_os@%$host_os%g
  1647. s%@LD@%$LD%g
  1648. s%@NM@%$NM%g
  1649. s%@LN_S@%$LN_S%g
  1650. s%@LIBTOOL@%$LIBTOOL%g
  1651. s%@LIBICONV@%$LIBICONV%g
  1652. s%@ICONV_CONST@%$ICONV_CONST%g
  1653. s%@OS@%$OS%g
  1654. s%@PLUGLIB@%$PLUGLIB%g
  1655. CEOF
  1656. EOF
  1657. cat >> $CONFIG_STATUS <<EOF
  1658. # Split the substitutions into bite-sized pieces for seds with
  1659. # small command number limits, like on Digital OSF/1 and HP-UX.
  1660. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1661. ac_file=1 # Number of current file.
  1662. ac_beg=1 # First line for current file.
  1663. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1664. ac_more_lines=:
  1665. ac_sed_cmds=""
  1666. while $ac_more_lines; do
  1667.   if test $ac_beg -gt 1; then
  1668.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1669.   else
  1670.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1671.   fi
  1672.   if test ! -s conftest.s$ac_file; then
  1673.     ac_more_lines=false
  1674.     rm -f conftest.s$ac_file
  1675.   else
  1676.     if test -z "$ac_sed_cmds"; then
  1677.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1678.     else
  1679.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1680.     fi
  1681.     ac_file=`expr $ac_file + 1`
  1682.     ac_beg=$ac_end
  1683.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1684.   fi
  1685. done
  1686. if test -z "$ac_sed_cmds"; then
  1687.   ac_sed_cmds=cat
  1688. fi
  1689. EOF
  1690. cat >> $CONFIG_STATUS <<EOF
  1691. CONFIG_FILES=${CONFIG_FILES-"Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h"}
  1692. EOF
  1693. cat >> $CONFIG_STATUS <<EOF
  1694. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1695.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1696.   case "$ac_file" in
  1697.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1698.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1699.   *) ac_file_in="${ac_file}.in" ;;
  1700.   esac
  1701.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1702.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1703.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1704.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1705.     # The file is in a subdirectory.
  1706.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1707.     ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
  1708.     # A "../" for each directory in $ac_dir_suffix.
  1709.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1710.   else
  1711.     ac_dir_suffix= ac_dots=
  1712.   fi
  1713.   case "$ac_given_srcdir" in
  1714.   .)  srcdir=.
  1715.       if test -z "$ac_dots"; then top_srcdir=.
  1716.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1717.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1718.   *) # Relative path.
  1719.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1720.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1721.   esac
  1722.   echo creating "$ac_file"
  1723.   rm -f "$ac_file"
  1724.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1725.   case "$ac_file" in
  1726.   *Makefile*) ac_comsub="1i\
  1727. # $configure_input" ;;
  1728.   *) ac_comsub= ;;
  1729.   esac
  1730.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1731.   sed -e "$ac_comsub
  1732. s%@configure_input@%$configure_input%g
  1733. s%@srcdir@%$srcdir%g
  1734. s%@top_srcdir@%$top_srcdir%g
  1735. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1736. fi; done
  1737. rm -f conftest.s*
  1738. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1739. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1740. #
  1741. # ac_d sets the value in "#define NAME VALUE" lines.
  1742. ac_dA='s%^([  ]*)#([  ]*define[  ][  ]*)'
  1743. ac_dB='([  ][  ]*)[^  ]*%1#2'
  1744. ac_dC='3'
  1745. ac_dD='%g'
  1746. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1747. ac_uA='s%^([  ]*)#([  ]*)undef([  ][  ]*)'
  1748. ac_uB='([  ])%1#2define3'
  1749. ac_uC=' '
  1750. ac_uD='4%g'
  1751. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1752. ac_eA='s%^([  ]*)#([  ]*)undef([  ][  ]*)'
  1753. ac_eB='$%1#2define3'
  1754. ac_eC=' '
  1755. ac_eD='%g'
  1756. # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
  1757. ac_fA='s%^([  ]*)#([  ]*)define([  ][  ]*)'
  1758. ac_fB='$%1#2define3'
  1759. ac_fC=' '
  1760. ac_fD='%g'
  1761. if test "${CONFIG_HEADERS+set}" != set; then
  1762. EOF
  1763. cat >> $CONFIG_STATUS <<EOF
  1764.   CONFIG_HEADERS="src/config.h"
  1765. EOF
  1766. cat >> $CONFIG_STATUS <<EOF
  1767. fi
  1768. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1769.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1770.   case "$ac_file" in
  1771.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1772.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1773.   *) ac_file_in="${ac_file}.in" ;;
  1774.   esac
  1775.   echo creating $ac_file
  1776.   rm -f conftest.frag conftest.in conftest.out
  1777.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1778.   cat $ac_file_inputs > conftest.in
  1779. EOF
  1780. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1781. # the proper values into config.h.in to produce config.h.  And first:
  1782. # Protect against being on the right side of a sed subst in config.status.
  1783. # Protect against being in an unquoted here document in config.status.
  1784. rm -f conftest.vals
  1785. cat > conftest.hdr <<EOF
  1786. s/[\&%]/\&/g
  1787. s%[\$`]%\&%g
  1788. s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
  1789. s%ac_d%ac_u%gp
  1790. s%ac_u%ac_e%gp
  1791. s%ac_e%ac_f%gp
  1792. EOF
  1793. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1794. rm -f conftest.hdr
  1795. # Break up conftest.vals because some shells have a limit on
  1796. # the size of here documents, and old seds have small limits too.
  1797. rm -f conftest.tail
  1798. while :
  1799. do
  1800.   ac_lines=`grep -c . conftest.vals`
  1801.   # grep -c gives empty output for an empty file on some AIX systems.
  1802.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1803.   # Write a limited-size here document to conftest.frag.
  1804.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1805.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1806.   echo 'CEOF
  1807.   sed -f conftest.frag conftest.in > conftest.out
  1808.   rm -f conftest.in
  1809.   mv conftest.out conftest.in
  1810. ' >> $CONFIG_STATUS
  1811.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1812.   rm -f conftest.vals
  1813.   mv conftest.tail conftest.vals
  1814. done
  1815. rm -f conftest.vals
  1816. cat >> $CONFIG_STATUS <<EOF
  1817.   rm -f conftest.frag conftest.h
  1818.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1819.   cat conftest.in >> conftest.h
  1820.   rm -f conftest.in
  1821.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1822.     echo "$ac_file is unchanged"
  1823.     rm -f conftest.h
  1824.   else
  1825.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1826.     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1827.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1828.       # The file is in a subdirectory.
  1829.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1830.     fi
  1831.     rm -f $ac_file
  1832.     mv conftest.h $ac_file
  1833.   fi
  1834. fi; done
  1835. EOF
  1836. cat >> $CONFIG_STATUS <<EOF
  1837. EOF
  1838. cat >> $CONFIG_STATUS <<EOF
  1839. exit 0
  1840. EOF
  1841. chmod +x $CONFIG_STATUS
  1842. rm -fr confdefs* $ac_clean_files
  1843. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1