home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / termcap-1.3-src.tgz / termcap-1.3-src.tar / fsf / termcap / configure < prev    next >
Text File  |  1996-10-01  |  42KB  |  1,342 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-install-termcap install the termcap data file"
  16. ac_help="$ac_help
  17.   --with-termcap=FILE     use data file FILE instead of /etc/termcap"
  18.  
  19. # Initialize some variables set by options.
  20. # The variables have the same names as the options, with
  21. # dashes changed to underlines.
  22. build=NONE
  23. cache_file=./config.cache
  24. exec_prefix=NONE
  25. host=NONE
  26. no_create=
  27. nonopt=NONE
  28. no_recursion=
  29. prefix=NONE
  30. program_prefix=NONE
  31. program_suffix=NONE
  32. program_transform_name=s,x,x,
  33. silent=
  34. site=
  35. srcdir=
  36. target=NONE
  37. verbose=
  38. x_includes=NONE
  39. x_libraries=NONE
  40. bindir='${exec_prefix}/bin'
  41. sbindir='${exec_prefix}/sbin'
  42. libexecdir='${exec_prefix}/libexec'
  43. datadir='${prefix}/share'
  44. sysconfdir='${prefix}/etc'
  45. sharedstatedir='${prefix}/com'
  46. localstatedir='${prefix}/var'
  47. libdir='${exec_prefix}/lib'
  48. includedir='${prefix}/include'
  49. oldincludedir='/usr/include'
  50. infodir='${prefix}/info'
  51. guidedir='${prefix}/guide'
  52. psdir='${prefix}/ps'
  53. dvidir='${prefix}/dvi'
  54. mandir='${prefix}/man'
  55.  
  56. # Initialize some other variables.
  57. subdirs=
  58. MFLAGS= MAKEFLAGS=
  59.  
  60. ac_prev=
  61. for ac_option
  62. do
  63.  
  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.  
  71.   case "$ac_option" in
  72.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  73.   *) ac_optarg= ;;
  74.   esac
  75.  
  76.   # Accept the important Cygnus configure options, so we can diagnose typos.
  77.  
  78.   case "$ac_option" in
  79.  
  80.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  81.     ac_prev=bindir ;;
  82.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  83.     bindir="$ac_optarg" ;;
  84.  
  85.   -build | --build | --buil | --bui | --bu)
  86.     ac_prev=build ;;
  87.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  88.     build="$ac_optarg" ;;
  89.  
  90.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  91.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  92.     ac_prev=cache_file ;;
  93.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  94.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  95.     cache_file="$ac_optarg" ;;
  96.  
  97.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  98.     ac_prev=datadir ;;
  99.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  100.   | --da=*)
  101.     datadir="$ac_optarg" ;;
  102.  
  103.   -disable-* | --disable-*)
  104.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  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.     eval "enable_${ac_feature}=no" ;;
  111.  
  112.   -enable-* | --enable-*)
  113.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  114.     # Reject names that are not valid shell variable names.
  115.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  116.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  117.     fi
  118.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  119.     case "$ac_option" in
  120.       *=*) ;;
  121.       *) ac_optarg=yes ;;
  122.     esac
  123.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  124.  
  125.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  126.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  127.   | --exec | --exe | --ex)
  128.     ac_prev=exec_prefix ;;
  129.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  130.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  131.   | --exec=* | --exe=* | --ex=*)
  132.     exec_prefix="$ac_optarg" ;;
  133.  
  134.   -gas | --gas | --ga | --g)
  135.     # Obsolete; use --with-gas.
  136.     with_gas=yes ;;
  137.  
  138.   -help | --help | --hel | --he)
  139.     # Omit some internal or obsolete options to make the list less imposing.
  140.     # This message is too long to be a string in the A/UX 3.1 sh.
  141.     cat << EOF
  142. Usage: configure [options] [host]
  143. Options: [defaults in brackets after descriptions]
  144. Configuration:
  145.   --cache-file=FILE       cache test results in FILE
  146.   --help                  print this message
  147.   --no-create             do not create output files
  148.   --quiet, --silent       do not print \`checking...' messages
  149.   --version               print the version of autoconf that created configure
  150. Directory and file names:
  151.   --prefix=PREFIX         install architecture-independent files in PREFIX
  152.                           [$ac_default_prefix]
  153.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  154.                           [same as prefix]
  155.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  156.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  157.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  158.   --datadir=DIR           read-only architecture-independent data in DIR
  159.                           [PREFIX/share]
  160.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  161.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  162.                           [PREFIX/com]
  163.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  164.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  165.   --includedir=DIR        C header files in DIR [PREFIX/include]
  166.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  167.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  168.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  169.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  170.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  171.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  172.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  173.   --program-prefix=PREFIX prepend PREFIX to installed program names
  174.   --program-suffix=SUFFIX append SUFFIX to installed program names
  175.   --program-transform-name=PROGRAM
  176.                           run sed PROGRAM on installed program names
  177. EOF
  178.     cat << EOF
  179. Host type:
  180.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  181.   --host=HOST             configure for HOST [guessed]
  182.   --target=TARGET         configure for TARGET [TARGET=HOST]
  183. Features and packages:
  184.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  185.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  186.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  187.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  188.   --x-includes=DIR        X include files are in DIR
  189.   --x-libraries=DIR       X library files are in DIR
  190. EOF
  191.     if test -n "$ac_help"; then
  192.       echo "--enable and --with options recognized:$ac_help"
  193.     fi
  194.     exit 0 ;;
  195.  
  196.   -host | --host | --hos | --ho)
  197.     ac_prev=host ;;
  198.   -host=* | --host=* | --hos=* | --ho=*)
  199.     host="$ac_optarg" ;;
  200.  
  201.   -includedir | --includedir | --includedi | --included | --include \
  202.   | --includ | --inclu | --incl | --inc)
  203.     ac_prev=includedir ;;
  204.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  205.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  206.     includedir="$ac_optarg" ;;
  207.  
  208.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  209.     ac_prev=infodir ;;
  210.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  211.     infodir="$ac_optarg" ;;
  212.  
  213.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  214.    ac_prev=guidedir ;;
  215.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  216.  
  217.  -psdir | --psdir | --psdi | --psd | --ps)
  218.    ac_prev=psdir ;;
  219.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  220.  
  221.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  222.    ac_prev=dvidir ;;
  223.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  224.  
  225.   -libdir | --libdir | --libdi | --libd)
  226.     ac_prev=libdir ;;
  227.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  228.     libdir="$ac_optarg" ;;
  229.  
  230.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  231.   | --libexe | --libex | --libe)
  232.     ac_prev=libexecdir ;;
  233.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  234.   | --libexe=* | --libex=* | --libe=*)
  235.     libexecdir="$ac_optarg" ;;
  236.  
  237.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  238.   | --localstate | --localstat | --localsta | --localst \
  239.   | --locals | --local | --loca | --loc | --lo)
  240.     ac_prev=localstatedir ;;
  241.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  242.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  243.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  244.     localstatedir="$ac_optarg" ;;
  245.  
  246.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  247.     ac_prev=mandir ;;
  248.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  249.     mandir="$ac_optarg" ;;
  250.  
  251.   -nfp | --nfp | --nf)
  252.     # Obsolete; use --without-fp.
  253.     with_fp=no ;;
  254.  
  255.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  256.   | --no-cr | --no-c)
  257.     no_create=yes ;;
  258.  
  259.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  260.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  261.     no_recursion=yes ;;
  262.  
  263.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  264.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  265.   | --oldin | --oldi | --old | --ol | --o)
  266.     ac_prev=oldincludedir ;;
  267.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  268.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  269.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  270.     oldincludedir="$ac_optarg" ;;
  271.  
  272.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  273.     ac_prev=prefix ;;
  274.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  275.     prefix="$ac_optarg" ;;
  276.  
  277.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  278.   | --program-pre | --program-pr | --program-p)
  279.     ac_prev=program_prefix ;;
  280.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  281.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  282.     program_prefix="$ac_optarg" ;;
  283.  
  284.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  285.   | --program-suf | --program-su | --program-s)
  286.     ac_prev=program_suffix ;;
  287.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  288.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  289.     program_suffix="$ac_optarg" ;;
  290.  
  291.   -program-transform-name | --program-transform-name \
  292.   | --program-transform-nam | --program-transform-na \
  293.   | --program-transform-n | --program-transform- \
  294.   | --program-transform | --program-transfor \
  295.   | --program-transfo | --program-transf \
  296.   | --program-trans | --program-tran \
  297.   | --progr-tra | --program-tr | --program-t)
  298.     ac_prev=program_transform_name ;;
  299.   -program-transform-name=* | --program-transform-name=* \
  300.   | --program-transform-nam=* | --program-transform-na=* \
  301.   | --program-transform-n=* | --program-transform-=* \
  302.   | --program-transform=* | --program-transfor=* \
  303.   | --program-transfo=* | --program-transf=* \
  304.   | --program-trans=* | --program-tran=* \
  305.   | --progr-tra=* | --program-tr=* | --program-t=*)
  306.     program_transform_name="$ac_optarg" ;;
  307.  
  308.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  309.   | -silent | --silent | --silen | --sile | --sil)
  310.     silent=yes ;;
  311.  
  312.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  313.     ac_prev=sbindir ;;
  314.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  315.   | --sbi=* | --sb=*)
  316.     sbindir="$ac_optarg" ;;
  317.  
  318.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  319.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  320.   | --sharedst | --shareds | --shared | --share | --shar \
  321.   | --sha | --sh)
  322.     ac_prev=sharedstatedir ;;
  323.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  324.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  325.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  326.   | --sha=* | --sh=*)
  327.     sharedstatedir="$ac_optarg" ;;
  328.  
  329.   -site | --site | --sit)
  330.     ac_prev=site ;;
  331.   -site=* | --site=* | --sit=*)
  332.     site="$ac_optarg" ;;
  333.  
  334.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  335.     ac_prev=srcdir ;;
  336.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  337.     srcdir="$ac_optarg" ;;
  338.  
  339.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  340.   | --syscon | --sysco | --sysc | --sys | --sy)
  341.     ac_prev=sysconfdir ;;
  342.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  343.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  344.     sysconfdir="$ac_optarg" ;;
  345.  
  346.   -target | --target | --targe | --targ | --tar | --ta | --t)
  347.     ac_prev=target ;;
  348.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  349.     target="$ac_optarg" ;;
  350.  
  351.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  352.     verbose=yes ;;
  353.  
  354.   -version | --version | --versio | --versi | --vers)
  355.     echo "configure generated by autoconf version 2.10"
  356.     exit 0 ;;
  357.  
  358.   -with-* | --with-*)
  359.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  360.     # Reject names that are not valid shell variable names.
  361.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  362.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  363.     fi
  364.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  365.     case "$ac_option" in
  366.       *=*) ;;
  367.       *) ac_optarg=yes ;;
  368.     esac
  369.     eval "with_${ac_package}='$ac_optarg'" ;;
  370.  
  371.   -without-* | --without-*)
  372.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  373.     # Reject names that are not valid shell variable names.
  374.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  375.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  376.     fi
  377.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  378.     eval "with_${ac_package}=no" ;;
  379.  
  380.   --x)
  381.     # Obsolete; use --with-x.
  382.     with_x=yes ;;
  383.  
  384.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  385.   | --x-incl | --x-inc | --x-in | --x-i)
  386.     ac_prev=x_includes ;;
  387.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  388.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  389.     x_includes="$ac_optarg" ;;
  390.  
  391.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  392.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  393.     ac_prev=x_libraries ;;
  394.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  395.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  396.     x_libraries="$ac_optarg" ;;
  397.  
  398.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  399.     ;;
  400.  
  401.   *)
  402.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  403.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  404.     fi
  405.     if test "x$nonopt" != xNONE; then
  406.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  407.     fi
  408.     nonopt="$ac_option"
  409.     ;;
  410.  
  411.   esac
  412. done
  413.  
  414. if test -n "$ac_prev"; then
  415.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  416. fi
  417.  
  418. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  419.  
  420. # File descriptor usage:
  421. # 0 standard input
  422. # 1 file creation
  423. # 2 errors and warnings
  424. # 3 some systems may open it to /dev/tty
  425. # 4 used on the Kubota Titan
  426. # 6 checking for... messages and results
  427. # 5 compiler messages saved in config.log
  428. if test "$silent" = yes; then
  429.   exec 6>/dev/null
  430. else
  431.   exec 6>&1
  432. fi
  433. exec 5>./config.log
  434.  
  435. echo "\
  436. This file contains any messages produced by compilers while
  437. running configure, to aid debugging if configure makes a mistake.
  438. " 1>&5
  439.  
  440. # Strip out --no-create and --no-recursion so they do not pile up.
  441. # Also quote any args containing shell metacharacters.
  442. ac_configure_args=
  443. for ac_arg
  444. do
  445.   case "$ac_arg" in
  446.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  447.   | --no-cr | --no-c) ;;
  448.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  449.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  450.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  451.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  452.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  453.   esac
  454. done
  455.  
  456. # NLS nuisances.
  457. # Only set LANG and LC_ALL to C if already set.
  458. # These must not be set unconditionally because not all systems understand
  459. # e.g. LANG=C (notably SCO).
  460. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  461. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  462.  
  463. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  464. rm -rf conftest* confdefs.h
  465. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  466. echo > confdefs.h
  467.  
  468. # A filename unique to this package, relative to the directory that
  469. # configure is in, which we can look for to find out if srcdir is correct.
  470. ac_unique_file=termcap.h
  471.  
  472. # Find the source files, if location was not specified.
  473. if test -z "$srcdir"; then
  474.   ac_srcdir_defaulted=yes
  475.   # Try the directory containing this script, then its parent.
  476.   ac_prog=$0
  477.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  478.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  479.   srcdir=$ac_confdir
  480.   if test ! -r $srcdir/$ac_unique_file; then
  481.     srcdir=..
  482.   fi
  483. else
  484.   ac_srcdir_defaulted=no
  485. fi
  486. if test ! -r $srcdir/$ac_unique_file; then
  487.   if test "$ac_srcdir_defaulted" = yes; then
  488.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  489.   else
  490.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  491.   fi
  492. fi
  493. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  494.  
  495. # Prefer explicitly selected file to automatically selected ones.
  496. if test -z "$CONFIG_SITE"; then
  497.   if test "x$prefix" != xNONE; then
  498.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  499.   else
  500.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  501.   fi
  502. fi
  503. for ac_site_file in $CONFIG_SITE; do
  504.   if test -r "$ac_site_file"; then
  505.     echo "loading site script $ac_site_file"
  506.     . "$ac_site_file"
  507.   fi
  508. done
  509.  
  510. if test -r "$cache_file"; then
  511.   echo "loading cache $cache_file"
  512.   . $cache_file
  513. else
  514.   echo "creating cache $cache_file"
  515.   > $cache_file
  516. fi
  517.  
  518. ac_ext=c
  519. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  520. ac_cpp='$CPP $CPPFLAGS'
  521. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  522. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  523.  
  524. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  525.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  526.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  527.     ac_n= ac_c='
  528. ' ac_t='    '
  529.   else
  530.     ac_n=-n ac_c= ac_t=
  531.   fi
  532. else
  533.   ac_n= ac_c='\c' ac_t=
  534. fi
  535.  
  536.  
  537.  
  538. # Check whether --enable-install-termcap or --disable-install-termcap was given.
  539. if test "${enable_install_termcap+set}" = set; then
  540.   enableval="$enable_install_termcap"
  541.   if test $enableval = yes; then
  542.    installdata=install-data uninstalldata=uninstall-data
  543.  fi
  544. fi
  545.  
  546. # ADE hack - always install the data
  547. installdata=install-data uninstalldata=uninstall-data
  548.  
  549. # Check whether --with-termcap or --without-termcap was given.
  550. if test "${with_termcap+set}" = set; then
  551.   withval="$with_termcap"
  552.   termcapfile=$withval
  553. else
  554.   termcapfile='$(prefix)/etc/termcap'
  555. fi
  556.  
  557.  
  558. # Extract the first word of "gcc", so it can be a program name with args.
  559. set dummy gcc; ac_word=$2
  560. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  561. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  562.   echo $ac_n "(cached) $ac_c" 1>&6
  563. else
  564.   if test -n "$CC"; then
  565.   ac_cv_prog_CC="$CC" # Let the user override the test.
  566. else
  567.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  568.   for ac_dir in $PATH; do
  569.     test -z "$ac_dir" && ac_dir=.
  570.     if test -f $ac_dir/$ac_word; then
  571.       ac_cv_prog_CC="gcc"
  572.       break
  573.     fi
  574.   done
  575.   IFS="$ac_save_ifs"
  576. fi
  577. fi
  578. CC="$ac_cv_prog_CC"
  579. if test -n "$CC"; then
  580.   echo "$ac_t""$CC" 1>&6
  581. else
  582.   echo "$ac_t""no" 1>&6
  583. fi
  584.  
  585. if test -z "$CC"; then
  586.   # Extract the first word of "cc", so it can be a program name with args.
  587. set dummy cc; ac_word=$2
  588. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  589. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  590.   echo $ac_n "(cached) $ac_c" 1>&6
  591. else
  592.   if test -n "$CC"; then
  593.   ac_cv_prog_CC="$CC" # Let the user override the test.
  594. else
  595.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  596.   ac_prog_rejected=no
  597.   for ac_dir in $PATH; do
  598.     test -z "$ac_dir" && ac_dir=.
  599.     if test -f $ac_dir/$ac_word; then
  600.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  601.         ac_prog_rejected=yes
  602.     continue
  603.       fi
  604.       ac_cv_prog_CC="cc"
  605.       break
  606.     fi
  607.   done
  608.   IFS="$ac_save_ifs"
  609. if test $ac_prog_rejected = yes; then
  610.   # We found a bogon in the path, so make sure we never use it.
  611.   set dummy $ac_cv_prog_CC
  612.   shift
  613.   if test $# -gt 0; then
  614.     # We chose a different compiler from the bogus one.
  615.     # However, it has the same basename, so the bogon will be chosen
  616.     # first if we set CC to just the basename; use the full file name.
  617.     shift
  618.     set dummy "$ac_dir/$ac_word" "$@"
  619.     shift
  620.     ac_cv_prog_CC="$@"
  621.   fi
  622. fi
  623. fi
  624. fi
  625. CC="$ac_cv_prog_CC"
  626. if test -n "$CC"; then
  627.   echo "$ac_t""$CC" 1>&6
  628. else
  629.   echo "$ac_t""no" 1>&6
  630. fi
  631.  
  632.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  633. fi
  634.  
  635. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  636. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  637.   echo $ac_n "(cached) $ac_c" 1>&6
  638. else
  639.   cat > conftest.c <<EOF
  640. #ifdef __GNUC__
  641.   yes;
  642. #endif
  643. EOF
  644. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  645.   ac_cv_prog_gcc=yes
  646. else
  647.   ac_cv_prog_gcc=no
  648. fi
  649. fi
  650.  
  651. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  652. if test $ac_cv_prog_gcc = yes; then
  653.   GCC=yes
  654.   if test "${CFLAGS+set}" != set; then
  655.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  656. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  657.   echo $ac_n "(cached) $ac_c" 1>&6
  658. else
  659.   echo 'void f(){}' > conftest.c
  660. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  661.   ac_cv_prog_gcc_g=yes
  662. else
  663.   ac_cv_prog_gcc_g=no
  664. fi
  665. rm -f conftest*
  666.  
  667. fi
  668.  
  669. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  670.     if test $ac_cv_prog_gcc_g = yes; then
  671.       CFLAGS="-g -O2"
  672.     else
  673.       CFLAGS="-O2"
  674.     fi
  675.   fi
  676. else
  677.   GCC=
  678.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  679. fi
  680.  
  681. ac_aux_dir=
  682. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  683.   if test -f $ac_dir/install-sh; then
  684.     ac_aux_dir=$ac_dir
  685.     ac_install_sh="$ac_aux_dir/install-sh -c"
  686.     break
  687.   elif test -f $ac_dir/install.sh; then
  688.     ac_aux_dir=$ac_dir
  689.     ac_install_sh="$ac_aux_dir/install.sh -c"
  690.     break
  691.   fi
  692. done
  693. if test -z "$ac_aux_dir"; then
  694.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  695. fi
  696. ac_config_guess=$ac_aux_dir/config.guess
  697. ac_config_sub=$ac_aux_dir/config.sub
  698. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  699.  
  700.  
  701. # Make sure we can run config.sub.
  702. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  703. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  704. fi
  705.  
  706. echo $ac_n "checking host system type""... $ac_c" 1>&6
  707.  
  708. host_alias=$host
  709. case "$host_alias" in
  710. NONE)
  711.   case $nonopt in
  712.   NONE)
  713.     if host_alias=`$ac_config_guess`; then :
  714.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  715.     fi ;;
  716.   *) host_alias=$nonopt ;;
  717.   esac ;;
  718. esac
  719.  
  720. host=`$ac_config_sub $host_alias`
  721. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  722. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  723. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  724. echo "$ac_t""$host" 1>&6
  725.  
  726. echo $ac_n "checking build system type""... $ac_c" 1>&6
  727.  
  728. build_alias=$build
  729. case "$build_alias" in
  730. NONE)
  731.   case $nonopt in
  732.   NONE) build_alias=$host_alias ;;
  733.   *) build_alias=$nonopt ;;
  734.   esac ;;
  735. esac
  736.  
  737. build=`$ac_config_sub $build_alias`
  738. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  739. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  740. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  741. echo "$ac_t""$build" 1>&6
  742.  
  743. if test $host != $build; then
  744.   ac_tool_prefix=${host_alias}-
  745. else
  746.   ac_tool_prefix=
  747. fi
  748.  
  749. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  750. set dummy ${ac_tool_prefix}ar; ac_word=$2
  751. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  752. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  753.   echo $ac_n "(cached) $ac_c" 1>&6
  754. else
  755.   if test -n "$AR"; then
  756.   ac_cv_prog_AR="$AR" # Let the user override the test.
  757. else
  758.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  759.   for ac_dir in $PATH; do
  760.     test -z "$ac_dir" && ac_dir=.
  761.     if test -f $ac_dir/$ac_word; then
  762.       ac_cv_prog_AR="${ac_tool_prefix}ar"
  763.       break
  764.     fi
  765.   done
  766.   IFS="$ac_save_ifs"
  767.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  768. fi
  769. fi
  770. AR="$ac_cv_prog_AR"
  771. if test -n "$AR"; then
  772.   echo "$ac_t""$AR" 1>&6
  773. else
  774.   echo "$ac_t""no" 1>&6
  775. fi
  776.  
  777.  
  778.  
  779. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  780. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  781. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  782. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  783.   echo $ac_n "(cached) $ac_c" 1>&6
  784. else
  785.   if test -n "$RANLIB"; then
  786.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  787. else
  788.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  789.   for ac_dir in $PATH; do
  790.     test -z "$ac_dir" && ac_dir=.
  791.     if test -f $ac_dir/$ac_word; then
  792.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  793.       break
  794.     fi
  795.   done
  796.   IFS="$ac_save_ifs"
  797. fi
  798. fi
  799. RANLIB="$ac_cv_prog_RANLIB"
  800. if test -n "$RANLIB"; then
  801.   echo "$ac_t""$RANLIB" 1>&6
  802. else
  803.   echo "$ac_t""no" 1>&6
  804. fi
  805.  
  806.  
  807. if test -z "$ac_cv_prog_RANLIB"; then
  808. if test -n "$ac_tool_prefix"; then
  809.   # Extract the first word of "ranlib", so it can be a program name with args.
  810. set dummy ranlib; ac_word=$2
  811. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  812. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  813.   echo $ac_n "(cached) $ac_c" 1>&6
  814. else
  815.   if test -n "$RANLIB"; then
  816.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  817. else
  818.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  819.   for ac_dir in $PATH; do
  820.     test -z "$ac_dir" && ac_dir=.
  821.     if test -f $ac_dir/$ac_word; then
  822.       ac_cv_prog_RANLIB="ranlib"
  823.       break
  824.     fi
  825.   done
  826.   IFS="$ac_save_ifs"
  827.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  828. fi
  829. fi
  830. RANLIB="$ac_cv_prog_RANLIB"
  831. if test -n "$RANLIB"; then
  832.   echo "$ac_t""$RANLIB" 1>&6
  833. else
  834.   echo "$ac_t""no" 1>&6
  835. fi
  836.  
  837. else
  838.   RANLIB=":"
  839. fi
  840. fi
  841.  
  842. # Find a good install program.  We prefer a C program (faster),
  843. # so one script is as good as another.  But avoid the broken or
  844. # incompatible versions:
  845. # SysV /etc/install, /usr/sbin/install
  846. # SunOS /usr/etc/install
  847. # IRIX /sbin/install
  848. # AIX /bin/install
  849. # AmigaOS /c/install
  850. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  851. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  852. # ./install, which can be erroneously created by make from ./install.sh.
  853. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  854. if test -z "$INSTALL"; then
  855. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  856.   echo $ac_n "(cached) $ac_c" 1>&6
  857. else
  858.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  859.   for ac_dir in $PATH; do
  860.     # Account for people who put trailing slashes in PATH elements.
  861.     case "$ac_dir/" in
  862.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  863.     *)
  864.       # OSF1 and SCO ODT 3.0 have their own names for install.
  865.       for ac_prog in ginstall installbsd scoinst install; do
  866.         if test -f $ac_dir/$ac_prog; then
  867.       if test $ac_prog = install &&
  868.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  869.         # AIX install.  It has an incompatible calling convention.
  870.         # OSF/1 installbsd also uses dspmsg, but is usable.
  871.         :
  872.       else
  873.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  874.         break 2
  875.       fi
  876.     fi
  877.       done
  878.       ;;
  879.     esac
  880.   done
  881.   IFS="$ac_save_ifs"
  882.  
  883. fi
  884.   if test "${ac_cv_path_install+set}" = set; then
  885.     INSTALL="$ac_cv_path_install"
  886.   else
  887.     # As a last resort, use the slow shell script.  We don't cache a
  888.     # path for INSTALL within a source directory, because that will
  889.     # break other packages using the cache if that directory is
  890.     # removed, or if the path is relative.
  891.     INSTALL="$ac_install_sh"
  892.   fi
  893. fi
  894. echo "$ac_t""$INSTALL" 1>&6
  895.  
  896. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  897. # It thinks the first close brace ends the variable substitution.
  898. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  899.  
  900. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  901.  
  902. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  903. # On Suns, sometimes $CPP names a directory.
  904. if test -n "$CPP" && test -d "$CPP"; then
  905.   CPP=
  906. fi
  907. if test -z "$CPP"; then
  908. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  909.   echo $ac_n "(cached) $ac_c" 1>&6
  910. else
  911.     # This must be in double quotes, not single quotes, because CPP may get
  912.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  913.   CPP="${CC-cc} -E"
  914.   # On the NeXT, cc -E runs the code through the compiler's parser,
  915.   # not just through cpp.
  916.   cat > conftest.$ac_ext <<EOF
  917. #line 918 "configure"
  918. #include "confdefs.h"
  919. #include <assert.h>
  920. Syntax Error
  921. EOF
  922. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  923. { (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  924. ac_err=`grep -v '^ *+' conftest.out`
  925. if test -z "$ac_err"; then
  926.   :
  927. else
  928.   echo "$ac_err" >&5
  929.   rm -rf conftest*
  930.   CPP="${CC-cc} -E -traditional-cpp"
  931.   cat > conftest.$ac_ext <<EOF
  932. #line 933 "configure"
  933. #include "confdefs.h"
  934. #include <assert.h>
  935. Syntax Error
  936. EOF
  937. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  938. { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  939. ac_err=`grep -v '^ *+' conftest.out`
  940. if test -z "$ac_err"; then
  941.   :
  942. else
  943.   echo "$ac_err" >&5
  944.   rm -rf conftest*
  945.   CPP=/lib/cpp
  946. fi
  947. rm -f conftest*
  948. fi
  949. rm -f conftest*
  950.   ac_cv_prog_CPP="$CPP"
  951. fi
  952.   CPP="$ac_cv_prog_CPP"
  953. else
  954.   ac_cv_prog_CPP="$CPP"
  955. fi
  956. echo "$ac_t""$CPP" 1>&6
  957.  
  958. for ac_hdr in string.h unistd.h
  959. do
  960. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  961. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  962. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  963.   echo $ac_n "(cached) $ac_c" 1>&6
  964. else
  965.   cat > conftest.$ac_ext <<EOF
  966. #line 967 "configure"
  967. #include "confdefs.h"
  968. #include <$ac_hdr>
  969. EOF
  970. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  971. { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  972. ac_err=`grep -v '^ *+' conftest.out`
  973. if test -z "$ac_err"; then
  974.   rm -rf conftest*
  975.   eval "ac_cv_header_$ac_safe=yes"
  976. else
  977.   echo "$ac_err" >&5
  978.   rm -rf conftest*
  979.   eval "ac_cv_header_$ac_safe=no"
  980. fi
  981. rm -f conftest*
  982. fi
  983. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  984.   echo "$ac_t""yes" 1>&6
  985.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  986.   cat >> confdefs.h <<EOF
  987. #define $ac_tr_hdr 1
  988. EOF
  989.  
  990. else
  991.   echo "$ac_t""no" 1>&6
  992. fi
  993. done
  994.  
  995. # If we cannot run a trivial program, we must be cross compiling.
  996. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  997. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  998.   echo $ac_n "(cached) $ac_c" 1>&6
  999. else
  1000.   if test "$cross_compiling" = yes; then
  1001.   ac_cv_c_cross=yes
  1002. else
  1003. cat > conftest.$ac_ext <<EOF
  1004. #line 1005 "configure"
  1005. #include "confdefs.h"
  1006. main(){return(0);}
  1007. EOF
  1008. { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1009. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1010.   ac_cv_c_cross=no
  1011. else
  1012.   ac_cv_c_cross=yes
  1013. fi
  1014. fi
  1015. rm -fr conftest*
  1016. fi
  1017.  
  1018. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1019. cross_compiling=$ac_cv_c_cross
  1020.  
  1021. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1022. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1023.   echo $ac_n "(cached) $ac_c" 1>&6
  1024. else
  1025.   cat > conftest.$ac_ext <<EOF
  1026. #line 1027 "configure"
  1027. #include "confdefs.h"
  1028. #include <stdlib.h>
  1029. #include <stdarg.h>
  1030. #include <string.h>
  1031. #include <float.h>
  1032. EOF
  1033. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1034. { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1035. ac_err=`grep -v '^ *+' conftest.out`
  1036. if test -z "$ac_err"; then
  1037.   rm -rf conftest*
  1038.   ac_cv_header_stdc=yes
  1039. else
  1040.   echo "$ac_err" >&5
  1041.   rm -rf conftest*
  1042.   ac_cv_header_stdc=no
  1043. fi
  1044. rm -f conftest*
  1045.  
  1046. if test $ac_cv_header_stdc = yes; then
  1047.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1048. cat > conftest.$ac_ext <<EOF
  1049. #line 1050 "configure"
  1050. #include "confdefs.h"
  1051. #include <string.h>
  1052. EOF
  1053. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1054.   egrep "memchr" >/dev/null 2>&1; then
  1055.   :
  1056. else
  1057.   rm -rf conftest*
  1058.   ac_cv_header_stdc=no
  1059. fi
  1060. rm -f conftest*
  1061.  
  1062. fi
  1063.  
  1064. if test $ac_cv_header_stdc = yes; then
  1065.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1066. cat > conftest.$ac_ext <<EOF
  1067. #line 1068 "configure"
  1068. #include "confdefs.h"
  1069. #include <stdlib.h>
  1070. EOF
  1071. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1072.   egrep "free" >/dev/null 2>&1; then
  1073.   :
  1074. else
  1075.   rm -rf conftest*
  1076.   ac_cv_header_stdc=no
  1077. fi
  1078. rm -f conftest*
  1079.  
  1080. fi
  1081.  
  1082. if test $ac_cv_header_stdc = yes; then
  1083.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1084. if test "$cross_compiling" = yes; then
  1085.   :
  1086. else
  1087. cat > conftest.$ac_ext <<EOF
  1088. #line 1089 "configure"
  1089. #include "confdefs.h"
  1090. #include <ctype.h>
  1091. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1092. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1093. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1094. int main () { int i; for (i = 0; i < 256; i++)
  1095. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1096. exit (0); }
  1097.  
  1098. EOF
  1099. { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1100. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1101.   :
  1102. else
  1103.   ac_cv_header_stdc=no
  1104. fi
  1105. fi
  1106. rm -fr conftest*
  1107. fi
  1108. fi
  1109.  
  1110. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1111. if test $ac_cv_header_stdc = yes; then
  1112.   cat >> confdefs.h <<\EOF
  1113. #define STDC_HEADERS 1
  1114. EOF
  1115.  
  1116. fi
  1117.  
  1118.  
  1119. trap '' 1 2 15
  1120. cat > confcache <<\EOF
  1121. # This file is a shell script that caches the results of configure
  1122. # tests run on this system so they can be shared between configure
  1123. # scripts and configure runs.  It is not useful on other systems.
  1124. # If it contains results you don't want to keep, you may remove or edit it.
  1125. #
  1126. # By default, configure uses ./config.cache as the cache file,
  1127. # creating it if it does not exist already.  You can give configure
  1128. # the --cache-file=FILE option to use a different cache file; that is
  1129. # what configure does when it calls configure scripts in
  1130. # subdirectories, so they share the cache.
  1131. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1132. # config.status only pays attention to the cache file if you give it the
  1133. # --recheck option to rerun configure.
  1134. #
  1135. EOF
  1136. # Ultrix sh set writes to stderr and can't be redirected directly,
  1137. # and sets the high bit in the cache file unless we assign to the vars.
  1138. (set) 2>&1 |
  1139.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1140.   >> confcache
  1141. if cmp -s $cache_file confcache; then
  1142.   :
  1143. else
  1144.   if test -w $cache_file; then
  1145.     echo "updating cache $cache_file"
  1146.     cat confcache > $cache_file
  1147.   else
  1148.     echo "not updating unwritable cache $cache_file"
  1149.   fi
  1150. fi
  1151. rm -f confcache
  1152.  
  1153. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1154.  
  1155. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1156. # Let make expand exec_prefix.
  1157. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1158.  
  1159. # Any assignment to VPATH causes Sun make to only execute
  1160. # the first set of double-colon rules, so remove it if not needed.
  1161. # If there is a colon in the path, we need to keep it.
  1162. if test "x$srcdir" = x.; then
  1163.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1164. fi
  1165.  
  1166. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1167.  
  1168. # Transform confdefs.h into DEFS.
  1169. # Protect against shell expansion while executing Makefile rules.
  1170. # Protect against Makefile macro expansion.
  1171. cat > conftest.defs <<\EOF
  1172. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1173. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1174. s%\[%\\&%g
  1175. s%\]%\\&%g
  1176. s%\$%$$%g
  1177. EOF
  1178. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1179. rm -f conftest.defs
  1180.  
  1181.  
  1182. # Without the "./", some shells look in PATH for config.status.
  1183. : ${CONFIG_STATUS=./config.status}
  1184.  
  1185. echo creating $CONFIG_STATUS
  1186. # Some systems, like AmigaOS, won't allow you to remove a script that is
  1187. # being executed, so just move it out of the way instead.
  1188. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1189. cat > $CONFIG_STATUS <<EOF
  1190. #! /bin/sh
  1191. # Generated automatically by configure.
  1192. # Run this file to recreate the current configuration.
  1193. # This directory was configured as follows,
  1194. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1195. #
  1196. # $0 $ac_configure_args
  1197. #
  1198. # Compiler output produced by configure, useful for debugging
  1199. # configure, is in ./config.log if it exists.
  1200.  
  1201. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1202. for ac_option
  1203. do
  1204.   case "\$ac_option" in
  1205.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1206.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1207.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1208.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1209.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1210.     exit 0 ;;
  1211.   -help | --help | --hel | --he | --h)
  1212.     echo "\$ac_cs_usage"; exit 0 ;;
  1213.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1214.   esac
  1215. done
  1216.  
  1217. ac_given_srcdir=$srcdir
  1218. ac_given_INSTALL="$INSTALL"
  1219.  
  1220. trap 'rm -fr `echo "Makefile tests/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1221. EOF
  1222. cat >> $CONFIG_STATUS <<EOF
  1223.  
  1224. # Protect against being on the right side of a sed subst in config.status.
  1225. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1226.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1227. $ac_vpsub
  1228. $extrasub
  1229. s%@CFLAGS@%$CFLAGS%g
  1230. s%@CPPFLAGS@%$CPPFLAGS%g
  1231. s%@CXXFLAGS@%$CXXFLAGS%g
  1232. s%@DEFS@%$DEFS%g
  1233. s%@LDFLAGS@%$LDFLAGS%g
  1234. s%@LIBS@%$LIBS%g
  1235. s%@exec_prefix@%$exec_prefix%g
  1236. s%@prefix@%$prefix%g
  1237. s%@program_transform_name@%$program_transform_name%g
  1238. s%@bindir@%$bindir%g
  1239. s%@sbindir@%$sbindir%g
  1240. s%@libexecdir@%$libexecdir%g
  1241. s%@datadir@%$datadir%g
  1242. s%@sysconfdir@%$sysconfdir%g
  1243. s%@sharedstatedir@%$sharedstatedir%g
  1244. s%@localstatedir@%$localstatedir%g
  1245. s%@libdir@%$libdir%g
  1246. s%@includedir@%$includedir%g
  1247. s%@oldincludedir@%$oldincludedir%g
  1248. s%@infodir@%$infodir%g
  1249. s%@guidedir@%$guidedir%g
  1250. s%@psdir@%$psdir%g
  1251. s%@dvidir@%$dvidir%g
  1252. s%@mandir@%$mandir%g
  1253. s%@installdata@%$installdata%g
  1254. s%@uninstalldata@%$uninstalldata%g
  1255. s%@termcapfile@%$termcapfile%g
  1256. s%@CC@%$CC%g
  1257. s%@host@%$host%g
  1258. s%@host_alias@%$host_alias%g
  1259. s%@host_cpu@%$host_cpu%g
  1260. s%@host_vendor@%$host_vendor%g
  1261. s%@host_os@%$host_os%g
  1262. s%@build@%$build%g
  1263. s%@build_alias@%$build_alias%g
  1264. s%@build_cpu@%$build_cpu%g
  1265. s%@build_vendor@%$build_vendor%g
  1266. s%@build_os@%$build_os%g
  1267. s%@AR@%$AR%g
  1268. s%@RANLIB@%$RANLIB%g
  1269. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1270. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1271. s%@CPP@%$CPP%g
  1272.  
  1273. CEOF
  1274. EOF
  1275. cat >> $CONFIG_STATUS <<EOF
  1276.  
  1277. CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/Makefile"}
  1278. EOF
  1279. cat >> $CONFIG_STATUS <<\EOF
  1280. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1281.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1282.   case "$ac_file" in
  1283.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1284.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1285.   *) ac_file_in="${ac_file}.in" ;;
  1286.   esac
  1287.  
  1288.   # Adjust relative srcdir, etc. for subdirectories.
  1289.  
  1290.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1291.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1292.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1293.     # The file is in a subdirectory.
  1294.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1295.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1296.     # A "../" for each directory in $ac_dir_suffix.
  1297.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1298.   else
  1299.     ac_dir_suffix= ac_dots=
  1300.   fi
  1301.  
  1302.   case "$ac_given_srcdir" in
  1303.   .)  srcdir=.
  1304.       if test -z "$ac_dots"; then top_srcdir=.
  1305.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1306.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1307.   *) # Relative path.
  1308.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1309.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1310.   esac
  1311.  
  1312.   case "$ac_given_INSTALL" in
  1313.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1314.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1315.   esac
  1316.   echo creating "$ac_file"
  1317.   rm -f "$ac_file"
  1318.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1319.   case "$ac_file" in
  1320.   *Makefile*) ac_comsub="1i\\
  1321. # $configure_input" ;;
  1322.   *) ac_comsub= ;;
  1323.   esac
  1324.   sed -e "$ac_comsub
  1325. s%@configure_input@%$configure_input%g
  1326. s%@srcdir@%$srcdir%g
  1327. s%@top_srcdir@%$top_srcdir%g
  1328. s%@INSTALL@%$INSTALL%g
  1329. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1330. fi; done
  1331. rm -f conftest.subs
  1332.  
  1333.  
  1334.  
  1335. exit 0
  1336. EOF
  1337. chmod +x $CONFIG_STATUS
  1338. rm -f CONFIG.STATUS.old
  1339. rm -fr confdefs* $ac_clean_files
  1340. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1341.  
  1342.