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