home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / diffutils-2.7-src.tgz / tar.out / fsf / diffutils / configure < prev    next >
Text File  |  1996-10-01  |  69KB  |  2,390 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=diff.h
  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. if test "$program_transform_name" = s,x,x,; then
  535.   program_transform_name=
  536. else
  537.   # Double any \ or $.  echo might interpret backslashes.
  538.   cat <<\EOF_SED > conftestsed
  539. s,\\,\\\\,g; s,\$,$$,g
  540. EOF_SED
  541.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  542.   rm -f conftestsed
  543. fi
  544. test "$program_prefix" != NONE &&
  545.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  546. # Use a double $ so make ignores it.
  547. test "$program_suffix" != NONE &&
  548.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  549.  
  550. # sed with no file args requires a program.
  551. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  552.  
  553. # Extract the first word of "gcc", so it can be a program name with args.
  554. set dummy gcc; ac_word=$2
  555. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  556. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  557.   echo $ac_n "(cached) $ac_c" 1>&6
  558. else
  559.   if test -n "$CC"; then
  560.   ac_cv_prog_CC="$CC" # Let the user override the test.
  561. else
  562.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  563.   for ac_dir in $PATH; do
  564.     test -z "$ac_dir" && ac_dir=.
  565.     if test -f $ac_dir/$ac_word; then
  566.       ac_cv_prog_CC="gcc"
  567.       break
  568.     fi
  569.   done
  570.   IFS="$ac_save_ifs"
  571. fi
  572. fi
  573. CC="$ac_cv_prog_CC"
  574. if test -n "$CC"; then
  575.   echo "$ac_t""$CC" 1>&6
  576. else
  577.   echo "$ac_t""no" 1>&6
  578. fi
  579.  
  580. if test -z "$CC"; then
  581.   # Extract the first word of "cc", so it can be a program name with args.
  582. set dummy cc; ac_word=$2
  583. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  584. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  585.   echo $ac_n "(cached) $ac_c" 1>&6
  586. else
  587.   if test -n "$CC"; then
  588.   ac_cv_prog_CC="$CC" # Let the user override the test.
  589. else
  590.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  591.   ac_prog_rejected=no
  592.   for ac_dir in $PATH; do
  593.     test -z "$ac_dir" && ac_dir=.
  594.     if test -f $ac_dir/$ac_word; then
  595.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  596.         ac_prog_rejected=yes
  597.     continue
  598.       fi
  599.       ac_cv_prog_CC="cc"
  600.       break
  601.     fi
  602.   done
  603.   IFS="$ac_save_ifs"
  604. if test $ac_prog_rejected = yes; then
  605.   # We found a bogon in the path, so make sure we never use it.
  606.   set dummy $ac_cv_prog_CC
  607.   shift
  608.   if test $# -gt 0; then
  609.     # We chose a different compiler from the bogus one.
  610.     # However, it has the same basename, so the bogon will be chosen
  611.     # first if we set CC to just the basename; use the full file name.
  612.     shift
  613.     set dummy "$ac_dir/$ac_word" "$@"
  614.     shift
  615.     ac_cv_prog_CC="$@"
  616.   fi
  617. fi
  618. fi
  619. fi
  620. CC="$ac_cv_prog_CC"
  621. if test -n "$CC"; then
  622.   echo "$ac_t""$CC" 1>&6
  623. else
  624.   echo "$ac_t""no" 1>&6
  625. fi
  626.  
  627.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  628. fi
  629.  
  630. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  631. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  632.   echo $ac_n "(cached) $ac_c" 1>&6
  633. else
  634.   cat > conftest.c <<EOF
  635. #ifdef __GNUC__
  636.   yes;
  637. #endif
  638. EOF
  639. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  640.   ac_cv_prog_gcc=yes
  641. else
  642.   ac_cv_prog_gcc=no
  643. fi
  644. fi
  645.  
  646. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  647. if test $ac_cv_prog_gcc = yes; then
  648.   GCC=yes
  649.   if test "${CFLAGS+set}" != set; then
  650.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  651. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  652.   echo $ac_n "(cached) $ac_c" 1>&6
  653. else
  654.   echo 'void f(){}' > conftest.c
  655. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  656.   ac_cv_prog_gcc_g=yes
  657. else
  658.   ac_cv_prog_gcc_g=no
  659. fi
  660. rm -f conftest*
  661.  
  662. fi
  663.  
  664. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  665.     if test $ac_cv_prog_gcc_g = yes; then
  666.       CFLAGS="-g -O2"
  667.     else
  668.       CFLAGS="-O2"
  669.     fi
  670.   fi
  671. else
  672.   GCC=
  673.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  674. fi
  675.  
  676. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  677. # On Suns, sometimes $CPP names a directory.
  678. if test -n "$CPP" && test -d "$CPP"; then
  679.   CPP=
  680. fi
  681. if test -z "$CPP"; then
  682. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  683.   echo $ac_n "(cached) $ac_c" 1>&6
  684. else
  685.     # This must be in double quotes, not single quotes, because CPP may get
  686.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  687.   CPP="${CC-cc} -E"
  688.   # On the NeXT, cc -E runs the code through the compiler's parser,
  689.   # not just through cpp.
  690.   cat > conftest.$ac_ext <<EOF
  691. #line 692 "configure"
  692. #include "confdefs.h"
  693. #include <assert.h>
  694. Syntax Error
  695. EOF
  696. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  697. { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  698. ac_err=`grep -v '^ *+' conftest.out`
  699. if test -z "$ac_err"; then
  700.   :
  701. else
  702.   echo "$ac_err" >&5
  703.   rm -rf conftest*
  704.   CPP="${CC-cc} -E -traditional-cpp"
  705.   cat > conftest.$ac_ext <<EOF
  706. #line 707 "configure"
  707. #include "confdefs.h"
  708. #include <assert.h>
  709. Syntax Error
  710. EOF
  711. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  712. { (eval echo configure:713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  713. ac_err=`grep -v '^ *+' conftest.out`
  714. if test -z "$ac_err"; then
  715.   :
  716. else
  717.   echo "$ac_err" >&5
  718.   rm -rf conftest*
  719.   CPP=/lib/cpp
  720. fi
  721. rm -f conftest*
  722. fi
  723. rm -f conftest*
  724.   ac_cv_prog_CPP="$CPP"
  725. fi
  726.   CPP="$ac_cv_prog_CPP"
  727. else
  728.   ac_cv_prog_CPP="$CPP"
  729. fi
  730. echo "$ac_t""$CPP" 1>&6
  731.  
  732. ac_aux_dir=
  733. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  734.   if test -f $ac_dir/install-sh; then
  735.     ac_aux_dir=$ac_dir
  736.     ac_install_sh="$ac_aux_dir/install-sh -c"
  737.     break
  738.   elif test -f $ac_dir/install.sh; then
  739.     ac_aux_dir=$ac_dir
  740.     ac_install_sh="$ac_aux_dir/install.sh -c"
  741.     break
  742.   fi
  743. done
  744. if test -z "$ac_aux_dir"; then
  745.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  746. fi
  747. ac_config_guess=$ac_aux_dir/config.guess
  748. ac_config_sub=$ac_aux_dir/config.sub
  749. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  750.  
  751. # Find a good install program.  We prefer a C program (faster),
  752. # so one script is as good as another.  But avoid the broken or
  753. # incompatible versions:
  754. # SysV /etc/install, /usr/sbin/install
  755. # SunOS /usr/etc/install
  756. # IRIX /sbin/install
  757. # AIX /bin/install
  758. # AmigaOS /c/install
  759. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  760. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  761. # ./install, which can be erroneously created by make from ./install.sh.
  762. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  763. if test -z "$INSTALL"; then
  764. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  765.   echo $ac_n "(cached) $ac_c" 1>&6
  766. else
  767.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  768.   for ac_dir in $PATH; do
  769.     # Account for people who put trailing slashes in PATH elements.
  770.     case "$ac_dir/" in
  771.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  772.     *)
  773.       # OSF1 and SCO ODT 3.0 have their own names for install.
  774.       for ac_prog in ginstall installbsd scoinst install; do
  775.         if test -f $ac_dir/$ac_prog; then
  776.       if test $ac_prog = install &&
  777.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  778.         # AIX install.  It has an incompatible calling convention.
  779.         # OSF/1 installbsd also uses dspmsg, but is usable.
  780.         :
  781.       else
  782.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  783.         break 2
  784.       fi
  785.     fi
  786.       done
  787.       ;;
  788.     esac
  789.   done
  790.   IFS="$ac_save_ifs"
  791.  
  792. fi
  793.   if test "${ac_cv_path_install+set}" = set; then
  794.     INSTALL="$ac_cv_path_install"
  795.   else
  796.     # As a last resort, use the slow shell script.  We don't cache a
  797.     # path for INSTALL within a source directory, because that will
  798.     # break other packages using the cache if that directory is
  799.     # removed, or if the path is relative.
  800.     INSTALL="$ac_install_sh"
  801.   fi
  802. fi
  803. echo "$ac_t""$INSTALL" 1>&6
  804.  
  805. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  806. # It thinks the first close brace ends the variable substitution.
  807. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  808.  
  809. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  810.  
  811. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  812. if test -d /etc/conf/kconfig.d &&
  813.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  814. then
  815.   echo "$ac_t""yes" 1>&6
  816.   ISC=yes # If later tests want to check for ISC.
  817.   cat >> confdefs.h <<\EOF
  818. #define _POSIX_SOURCE 1
  819. EOF
  820.  
  821.   if test "$GCC" = yes; then
  822.     CC="$CC -posix"
  823.   else
  824.     CC="$CC -Xp"
  825.   fi
  826. else
  827.   echo "$ac_t""no" 1>&6
  828.   ISC=
  829. fi
  830.  
  831. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  832. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  833. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  834.   echo $ac_n "(cached) $ac_c" 1>&6
  835. else
  836.   cat > conftest.$ac_ext <<EOF
  837. #line 838 "configure"
  838. #include "confdefs.h"
  839. #include <minix/config.h>
  840. EOF
  841. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  842. { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  843. ac_err=`grep -v '^ *+' conftest.out`
  844. if test -z "$ac_err"; then
  845.   rm -rf conftest*
  846.   eval "ac_cv_header_$ac_safe=yes"
  847. else
  848.   echo "$ac_err" >&5
  849.   rm -rf conftest*
  850.   eval "ac_cv_header_$ac_safe=no"
  851. fi
  852. rm -f conftest*
  853. fi
  854. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  855.   echo "$ac_t""yes" 1>&6
  856.   MINIX=yes
  857. else
  858.   echo "$ac_t""no" 1>&6
  859. MINIX=
  860. fi
  861.  
  862. if test "$MINIX" = yes; then
  863.   cat >> confdefs.h <<\EOF
  864. #define _POSIX_SOURCE 1
  865. EOF
  866.  
  867.   cat >> confdefs.h <<\EOF
  868. #define _POSIX_1_SOURCE 2
  869. EOF
  870.  
  871.   cat >> confdefs.h <<\EOF
  872. #define _MINIX 1
  873. EOF
  874.  
  875. fi
  876.  
  877. echo $ac_n "checking for working const""... $ac_c" 1>&6
  878. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  879.   echo $ac_n "(cached) $ac_c" 1>&6
  880. else
  881.   cat > conftest.$ac_ext <<EOF
  882. #line 883 "configure"
  883. #include "confdefs.h"
  884.  
  885. int main() { return 0; }
  886. int t() {
  887.  
  888. /* Ultrix mips cc rejects this.  */
  889. typedef int charset[2]; const charset x;
  890. /* SunOS 4.1.1 cc rejects this.  */
  891. char const *const *ccp;
  892. char **p;
  893. /* NEC SVR4.0.2 mips cc rejects this.  */
  894. struct point {int x, y;};
  895. static struct point const zero = {0,0};
  896. /* AIX XL C 1.02.0.0 rejects this.
  897.    It does not let you subtract one const X* pointer from another in an arm
  898.    of an if-expression whose if-part is not a constant expression */
  899. const char *g = "string";
  900. ccp = &g + (g ? g-g : 0);
  901. /* HPUX 7.0 cc rejects these. */
  902. ++ccp;
  903. p = (char**) ccp;
  904. ccp = (char const *const *) p;
  905. { /* SCO 3.2v4 cc rejects this.  */
  906.   char *t;
  907.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  908.  
  909.   *t++ = 0;
  910. }
  911. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  912.   int x[] = {25, 17};
  913.   const int *foo = &x[0];
  914.   ++foo;
  915. }
  916. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  917.   typedef const int *iptr;
  918.   iptr p = 0;
  919.   ++p;
  920. }
  921. { /* AIX XL C 1.02.0.0 rejects this saying
  922.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  923.   struct s { int j; const int *ap[3]; };
  924.   struct s *b; b->j = 5;
  925. }
  926. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  927.   const int foo = 10;
  928. }
  929.  
  930. ; return 0; }
  931. EOF
  932. if { (eval echo configure:933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  933.   rm -rf conftest*
  934.   ac_cv_c_const=yes
  935. else
  936.   rm -rf conftest*
  937.   ac_cv_c_const=no
  938. fi
  939. rm -f conftest*
  940.  
  941. fi
  942.  
  943. echo "$ac_t""$ac_cv_c_const" 1>&6
  944. if test $ac_cv_c_const = no; then
  945.   cat >> confdefs.h <<\EOF
  946. #define const 
  947. EOF
  948.  
  949. fi
  950.  
  951. # If we cannot run a trivial program, we must be cross compiling.
  952. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  953. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  954.   echo $ac_n "(cached) $ac_c" 1>&6
  955. else
  956.   if test "$cross_compiling" = yes; then
  957.   ac_cv_c_cross=yes
  958. else
  959. cat > conftest.$ac_ext <<EOF
  960. #line 961 "configure"
  961. #include "confdefs.h"
  962. main(){return(0);}
  963. EOF
  964. { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  965. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  966.   ac_cv_c_cross=no
  967. else
  968.   ac_cv_c_cross=yes
  969. fi
  970. fi
  971. rm -fr conftest*
  972. fi
  973.  
  974. echo "$ac_t""$ac_cv_c_cross" 1>&6
  975. cross_compiling=$ac_cv_c_cross
  976.  
  977. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  978. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  979.   echo $ac_n "(cached) $ac_c" 1>&6
  980. else
  981.   cat > conftest.$ac_ext <<EOF
  982. #line 983 "configure"
  983. #include "confdefs.h"
  984. #include <stdlib.h>
  985. #include <stdarg.h>
  986. #include <string.h>
  987. #include <float.h>
  988. EOF
  989. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  990. { (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  991. ac_err=`grep -v '^ *+' conftest.out`
  992. if test -z "$ac_err"; then
  993.   rm -rf conftest*
  994.   ac_cv_header_stdc=yes
  995. else
  996.   echo "$ac_err" >&5
  997.   rm -rf conftest*
  998.   ac_cv_header_stdc=no
  999. fi
  1000. rm -f conftest*
  1001.  
  1002. if test $ac_cv_header_stdc = yes; then
  1003.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1004. cat > conftest.$ac_ext <<EOF
  1005. #line 1006 "configure"
  1006. #include "confdefs.h"
  1007. #include <string.h>
  1008. EOF
  1009. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1010.   egrep "memchr" >/dev/null 2>&1; then
  1011.   :
  1012. else
  1013.   rm -rf conftest*
  1014.   ac_cv_header_stdc=no
  1015. fi
  1016. rm -f conftest*
  1017.  
  1018. fi
  1019.  
  1020. if test $ac_cv_header_stdc = yes; then
  1021.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1022. cat > conftest.$ac_ext <<EOF
  1023. #line 1024 "configure"
  1024. #include "confdefs.h"
  1025. #include <stdlib.h>
  1026. EOF
  1027. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1028.   egrep "free" >/dev/null 2>&1; then
  1029.   :
  1030. else
  1031.   rm -rf conftest*
  1032.   ac_cv_header_stdc=no
  1033. fi
  1034. rm -f conftest*
  1035.  
  1036. fi
  1037.  
  1038. if test $ac_cv_header_stdc = yes; then
  1039.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1040. if test "$cross_compiling" = yes; then
  1041.   :
  1042. else
  1043. cat > conftest.$ac_ext <<EOF
  1044. #line 1045 "configure"
  1045. #include "confdefs.h"
  1046. #include <ctype.h>
  1047. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1048. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1049. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1050. int main () { int i; for (i = 0; i < 256; i++)
  1051. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1052. exit (0); }
  1053.  
  1054. EOF
  1055. { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1056. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1057.   :
  1058. else
  1059.   ac_cv_header_stdc=no
  1060. fi
  1061. fi
  1062. rm -fr conftest*
  1063. fi
  1064. fi
  1065.  
  1066. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1067. if test $ac_cv_header_stdc = yes; then
  1068.   cat >> confdefs.h <<\EOF
  1069. #define STDC_HEADERS 1
  1070. EOF
  1071.  
  1072. fi
  1073.  
  1074. for ac_hdr in unistd.h fcntl.h limits.h stdlib.h string.h sys/file.h time.h
  1075. do
  1076. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1077. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1078. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1079.   echo $ac_n "(cached) $ac_c" 1>&6
  1080. else
  1081.   cat > conftest.$ac_ext <<EOF
  1082. #line 1083 "configure"
  1083. #include "confdefs.h"
  1084. #include <$ac_hdr>
  1085. EOF
  1086. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1087. { (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1088. ac_err=`grep -v '^ *+' conftest.out`
  1089. if test -z "$ac_err"; then
  1090.   rm -rf conftest*
  1091.   eval "ac_cv_header_$ac_safe=yes"
  1092. else
  1093.   echo "$ac_err" >&5
  1094.   rm -rf conftest*
  1095.   eval "ac_cv_header_$ac_safe=no"
  1096. fi
  1097. rm -f conftest*
  1098. fi
  1099. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1100.   echo "$ac_t""yes" 1>&6
  1101.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1102.   cat >> confdefs.h <<EOF
  1103. #define $ac_tr_hdr 1
  1104. EOF
  1105.  
  1106. else
  1107.   echo "$ac_t""no" 1>&6
  1108. fi
  1109. done
  1110.  
  1111. ac_header_dirent=no
  1112. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1113. do
  1114. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1115. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1116. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1117.   echo $ac_n "(cached) $ac_c" 1>&6
  1118. else
  1119.   cat > conftest.$ac_ext <<EOF
  1120. #line 1121 "configure"
  1121. #include "confdefs.h"
  1122. #include <sys/types.h>
  1123. #include <$ac_hdr>
  1124. int main() { return 0; }
  1125. int t() {
  1126. DIR *dirp = 0;
  1127. ; return 0; }
  1128. EOF
  1129. if { (eval echo configure:1130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1130.   rm -rf conftest*
  1131.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1132. else
  1133.   rm -rf conftest*
  1134.   eval "ac_cv_header_dirent_$ac_safe=no"
  1135. fi
  1136. rm -f conftest*
  1137.  
  1138. fi
  1139. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1140.   echo "$ac_t""yes" 1>&6
  1141.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1142.   cat >> confdefs.h <<EOF
  1143. #define $ac_tr_hdr 1
  1144. EOF
  1145.  ac_header_dirent=$ac_hdr; break
  1146. else
  1147.   echo "$ac_t""no" 1>&6
  1148. fi
  1149. done
  1150. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1151. if test $ac_header_dirent = dirent.h; then
  1152. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1153. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1154. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1155.   echo $ac_n "(cached) $ac_c" 1>&6
  1156. else
  1157.   ac_save_LIBS="$LIBS"
  1158. LIBS="-ldir  $LIBS"
  1159. cat > conftest.$ac_ext <<EOF
  1160. #line 1161 "configure"
  1161. #include "confdefs.h"
  1162. /* Override any gcc2 internal prototype to avoid an error.  */
  1163. /* We use char because int might match the return type of a gcc2
  1164.     builtin and then its argument prototype would still apply.  */
  1165. char opendir();
  1166.  
  1167. int main() { t(); return 0; }
  1168. int t() {
  1169. opendir()
  1170. ; return 0; }
  1171. EOF
  1172. if { (eval echo configure:1173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1173.   rm -rf conftest*
  1174.   eval "ac_cv_lib_$ac_lib_var=yes"
  1175. else
  1176.   rm -rf conftest*
  1177.   eval "ac_cv_lib_$ac_lib_var=no"
  1178. fi
  1179. rm -f conftest*
  1180. LIBS="$ac_save_LIBS"
  1181.  
  1182. fi
  1183. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1184.   echo "$ac_t""yes" 1>&6
  1185.   LIBS="$LIBS -ldir"
  1186. else
  1187.   echo "$ac_t""no" 1>&6
  1188. fi
  1189.  
  1190. else
  1191. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1192. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1193. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1194.   echo $ac_n "(cached) $ac_c" 1>&6
  1195. else
  1196.   ac_save_LIBS="$LIBS"
  1197. LIBS="-lx  $LIBS"
  1198. cat > conftest.$ac_ext <<EOF
  1199. #line 1200 "configure"
  1200. #include "confdefs.h"
  1201. /* Override any gcc2 internal prototype to avoid an error.  */
  1202. /* We use char because int might match the return type of a gcc2
  1203.     builtin and then its argument prototype would still apply.  */
  1204. char opendir();
  1205.  
  1206. int main() { t(); return 0; }
  1207. int t() {
  1208. opendir()
  1209. ; return 0; }
  1210. EOF
  1211. if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1212.   rm -rf conftest*
  1213.   eval "ac_cv_lib_$ac_lib_var=yes"
  1214. else
  1215.   rm -rf conftest*
  1216.   eval "ac_cv_lib_$ac_lib_var=no"
  1217. fi
  1218. rm -f conftest*
  1219. LIBS="$ac_save_LIBS"
  1220.  
  1221. fi
  1222. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1223.   echo "$ac_t""yes" 1>&6
  1224.   LIBS="$LIBS -lx"
  1225. else
  1226.   echo "$ac_t""no" 1>&6
  1227. fi
  1228.  
  1229. fi
  1230.  
  1231. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1232. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1233.   echo $ac_n "(cached) $ac_c" 1>&6
  1234. else
  1235.   cat > conftest.$ac_ext <<EOF
  1236. #line 1237 "configure"
  1237. #include "confdefs.h"
  1238. #include <sys/types.h>
  1239. #include <sys/stat.h>
  1240.  
  1241. #if defined(S_ISBLK) && defined(S_IFDIR)
  1242. # if S_ISBLK (S_IFDIR)
  1243. You lose.
  1244. # endif
  1245. #endif
  1246.  
  1247. #if defined(S_ISBLK) && defined(S_IFCHR)
  1248. # if S_ISBLK (S_IFCHR)
  1249. You lose.
  1250. # endif
  1251. #endif
  1252.  
  1253. #if defined(S_ISLNK) && defined(S_IFREG)
  1254. # if S_ISLNK (S_IFREG)
  1255. You lose.
  1256. # endif
  1257. #endif
  1258.  
  1259. #if defined(S_ISSOCK) && defined(S_IFREG)
  1260. # if S_ISSOCK (S_IFREG)
  1261. You lose.
  1262. # endif
  1263. #endif
  1264.  
  1265. EOF
  1266. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1267.   egrep "You lose" >/dev/null 2>&1; then
  1268.   rm -rf conftest*
  1269.   ac_cv_header_stat_broken=yes
  1270. else
  1271.   rm -rf conftest*
  1272.   ac_cv_header_stat_broken=no
  1273. fi
  1274. rm -f conftest*
  1275.  
  1276. fi
  1277.  
  1278. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1279. if test $ac_cv_header_stat_broken = yes; then
  1280.   cat >> confdefs.h <<\EOF
  1281. #define STAT_MACROS_BROKEN 1
  1282. EOF
  1283.  
  1284. fi
  1285.  
  1286. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1287. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1288.   echo $ac_n "(cached) $ac_c" 1>&6
  1289. else
  1290.   cat > conftest.$ac_ext <<EOF
  1291. #line 1292 "configure"
  1292. #include "confdefs.h"
  1293. #include <sys/types.h>
  1294. #include <sys/wait.h>
  1295. #ifndef WEXITSTATUS
  1296. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1297. #endif
  1298. #ifndef WIFEXITED
  1299. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1300. #endif
  1301. int main() { return 0; }
  1302. int t() {
  1303. int s;
  1304. wait (&s);
  1305. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1306. ; return 0; }
  1307. EOF
  1308. if { (eval echo configure:1309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1309.   rm -rf conftest*
  1310.   ac_cv_header_sys_wait_h=yes
  1311. else
  1312.   rm -rf conftest*
  1313.   ac_cv_header_sys_wait_h=no
  1314. fi
  1315. rm -f conftest*
  1316.  
  1317. fi
  1318.  
  1319. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1320. if test $ac_cv_header_sys_wait_h = yes; then
  1321.   cat >> confdefs.h <<\EOF
  1322. #define HAVE_SYS_WAIT_H 1
  1323. EOF
  1324.  
  1325. fi
  1326.  
  1327. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1328. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1329.   echo $ac_n "(cached) $ac_c" 1>&6
  1330. else
  1331.   cat > conftest.$ac_ext <<EOF
  1332. #line 1333 "configure"
  1333. #include "confdefs.h"
  1334. #include <sys/types.h>
  1335. #if STDC_HEADERS
  1336. #include <stdlib.h>
  1337. #endif
  1338. EOF
  1339. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1340.   egrep "pid_t" >/dev/null 2>&1; then
  1341.   rm -rf conftest*
  1342.   ac_cv_type_pid_t=yes
  1343. else
  1344.   rm -rf conftest*
  1345.   ac_cv_type_pid_t=no
  1346. fi
  1347. rm -f conftest*
  1348.  
  1349. fi
  1350. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1351. if test $ac_cv_type_pid_t = no; then
  1352.   cat >> confdefs.h <<\EOF
  1353. #define pid_t int
  1354. EOF
  1355.  
  1356. fi
  1357.  
  1358. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1359. if eval "test \"`echo '$''{'ac_cv_type_signal'+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. #include <sys/types.h>
  1366. #include <signal.h>
  1367. #ifdef signal
  1368. #undef signal
  1369. #endif
  1370. #ifdef __cplusplus
  1371. extern "C" void (*signal (int, void (*)(int)))(int);
  1372. #else
  1373. void (*signal ()) ();
  1374. #endif
  1375.  
  1376. int main() { return 0; }
  1377. int t() {
  1378. int i;
  1379. ; return 0; }
  1380. EOF
  1381. if { (eval echo configure:1382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1382.   rm -rf conftest*
  1383.   ac_cv_type_signal=void
  1384. else
  1385.   rm -rf conftest*
  1386.   ac_cv_type_signal=int
  1387. fi
  1388. rm -f conftest*
  1389.  
  1390. fi
  1391.  
  1392. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1393. cat >> confdefs.h <<EOF
  1394. #define RETSIGTYPE $ac_cv_type_signal
  1395. EOF
  1396.  
  1397.  
  1398. for ac_func in dup2 memchr sigaction strchr strerror tmpnam
  1399. do
  1400. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1401. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1402.   echo $ac_n "(cached) $ac_c" 1>&6
  1403. else
  1404.   cat > conftest.$ac_ext <<EOF
  1405. #line 1406 "configure"
  1406. #include "confdefs.h"
  1407. /* System header to define __stub macros and hopefully few prototypes,
  1408.     which can conflict with char $ac_func(); below.  */
  1409. #include <assert.h>
  1410. /* Override any gcc2 internal prototype to avoid an error.  */
  1411. /* We use char because int might match the return type of a gcc2
  1412.     builtin and then its argument prototype would still apply.  */
  1413. char $ac_func();
  1414.  
  1415. int main() { t(); return 0; }
  1416. int t() {
  1417.  
  1418. /* The GNU C library defines this for functions which it implements
  1419.     to always fail with ENOSYS.  Some functions are actually named
  1420.     something starting with __ and the normal name is an alias.  */
  1421. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1422. choke me
  1423. #else
  1424. $ac_func();
  1425. #endif
  1426.  
  1427. ; return 0; }
  1428. EOF
  1429. if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1430.   rm -rf conftest*
  1431.   eval "ac_cv_func_$ac_func=yes"
  1432. else
  1433.   rm -rf conftest*
  1434.   eval "ac_cv_func_$ac_func=no"
  1435. fi
  1436. rm -f conftest*
  1437.  
  1438. fi
  1439. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1440.   echo "$ac_t""yes" 1>&6
  1441.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1442.   cat >> confdefs.h <<EOF
  1443. #define $ac_tr_func 1
  1444. EOF
  1445.  
  1446. else
  1447.   echo "$ac_t""no" 1>&6
  1448. fi
  1449. done
  1450.  
  1451. for ac_func in memchr waitpid
  1452. do
  1453. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1454. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1455.   echo $ac_n "(cached) $ac_c" 1>&6
  1456. else
  1457.   cat > conftest.$ac_ext <<EOF
  1458. #line 1459 "configure"
  1459. #include "confdefs.h"
  1460. /* System header to define __stub macros and hopefully few prototypes,
  1461.     which can conflict with char $ac_func(); below.  */
  1462. #include <assert.h>
  1463. /* Override any gcc2 internal prototype to avoid an error.  */
  1464. /* We use char because int might match the return type of a gcc2
  1465.     builtin and then its argument prototype would still apply.  */
  1466. char $ac_func();
  1467.  
  1468. int main() { t(); return 0; }
  1469. int t() {
  1470.  
  1471. /* The GNU C library defines this for functions which it implements
  1472.     to always fail with ENOSYS.  Some functions are actually named
  1473.     something starting with __ and the normal name is an alias.  */
  1474. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1475. choke me
  1476. #else
  1477. $ac_func();
  1478. #endif
  1479.  
  1480. ; return 0; }
  1481. EOF
  1482. if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1483.   rm -rf conftest*
  1484.   eval "ac_cv_func_$ac_func=yes"
  1485. else
  1486.   rm -rf conftest*
  1487.   eval "ac_cv_func_$ac_func=no"
  1488. fi
  1489. rm -f conftest*
  1490.  
  1491. fi
  1492. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1493.   echo "$ac_t""yes" 1>&6
  1494.   :
  1495. else
  1496.   echo "$ac_t""no" 1>&6
  1497. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1498. fi
  1499.  
  1500. done
  1501.  
  1502. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1503. # for constant arguments.  Useless!
  1504. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1505. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1506.   echo $ac_n "(cached) $ac_c" 1>&6
  1507. else
  1508.   cat > conftest.$ac_ext <<EOF
  1509. #line 1510 "configure"
  1510. #include "confdefs.h"
  1511. #include <alloca.h>
  1512. int main() { t(); return 0; }
  1513. int t() {
  1514. char *p = alloca(2 * sizeof(int));
  1515. ; return 0; }
  1516. EOF
  1517. if { (eval echo configure:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1518.   rm -rf conftest*
  1519.   ac_cv_header_alloca_h=yes
  1520. else
  1521.   rm -rf conftest*
  1522.   ac_cv_header_alloca_h=no
  1523. fi
  1524. rm -f conftest*
  1525.  
  1526. fi
  1527.  
  1528. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1529. if test $ac_cv_header_alloca_h = yes; then
  1530.   cat >> confdefs.h <<\EOF
  1531. #define HAVE_ALLOCA_H 1
  1532. EOF
  1533.  
  1534. fi
  1535.  
  1536. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1537. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1538.   echo $ac_n "(cached) $ac_c" 1>&6
  1539. else
  1540.   cat > conftest.$ac_ext <<EOF
  1541. #line 1542 "configure"
  1542. #include "confdefs.h"
  1543.  
  1544. #ifdef __GNUC__
  1545. # define alloca __builtin_alloca
  1546. #else
  1547. # if HAVE_ALLOCA_H
  1548. #  include <alloca.h>
  1549. # else
  1550. #  ifdef _AIX
  1551.  #pragma alloca
  1552. #  else
  1553. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1554. char *alloca ();
  1555. #   endif
  1556. #  endif
  1557. # endif
  1558. #endif
  1559.  
  1560. int main() { t(); return 0; }
  1561. int t() {
  1562. char *p = (char *) alloca(1);
  1563. ; return 0; }
  1564. EOF
  1565. if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1566.   rm -rf conftest*
  1567.   ac_cv_func_alloca=yes
  1568. else
  1569.   rm -rf conftest*
  1570.   ac_cv_func_alloca=no
  1571. fi
  1572. rm -f conftest*
  1573.  
  1574. fi
  1575.  
  1576. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1577. if test $ac_cv_func_alloca = yes; then
  1578.   cat >> confdefs.h <<\EOF
  1579. #define HAVE_ALLOCA 1
  1580. EOF
  1581.  
  1582. fi
  1583.  
  1584. if test $ac_cv_func_alloca = no; then
  1585.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1586.   # that cause trouble.  Some versions do not even contain alloca or
  1587.   # contain a buggy version.  If you still want to use their alloca,
  1588.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1589.   ALLOCA=alloca.o
  1590.   cat >> confdefs.h <<\EOF
  1591. #define C_ALLOCA 1
  1592. EOF
  1593.  
  1594.  
  1595. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1596. if eval "test \"`echo '$''{'ac_cv_os_cray'+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. #if defined(CRAY) && ! defined(CRAY2)
  1603. webecray
  1604. #else
  1605. wenotbecray
  1606. #endif
  1607.  
  1608. EOF
  1609. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1610.   egrep "webecray" >/dev/null 2>&1; then
  1611.   rm -rf conftest*
  1612.   ac_cv_os_cray=yes
  1613. else
  1614.   rm -rf conftest*
  1615.   ac_cv_os_cray=no
  1616. fi
  1617. rm -f conftest*
  1618.  
  1619. fi
  1620.  
  1621. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1622. if test $ac_cv_os_cray = yes; then
  1623. for ac_func in _getb67 GETB67 getb67; do
  1624.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1625. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1626.   echo $ac_n "(cached) $ac_c" 1>&6
  1627. else
  1628.   cat > conftest.$ac_ext <<EOF
  1629. #line 1630 "configure"
  1630. #include "confdefs.h"
  1631. /* System header to define __stub macros and hopefully few prototypes,
  1632.     which can conflict with char $ac_func(); below.  */
  1633. #include <assert.h>
  1634. /* Override any gcc2 internal prototype to avoid an error.  */
  1635. /* We use char because int might match the return type of a gcc2
  1636.     builtin and then its argument prototype would still apply.  */
  1637. char $ac_func();
  1638.  
  1639. int main() { t(); return 0; }
  1640. int t() {
  1641.  
  1642. /* The GNU C library defines this for functions which it implements
  1643.     to always fail with ENOSYS.  Some functions are actually named
  1644.     something starting with __ and the normal name is an alias.  */
  1645. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1646. choke me
  1647. #else
  1648. $ac_func();
  1649. #endif
  1650.  
  1651. ; return 0; }
  1652. EOF
  1653. if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1654.   rm -rf conftest*
  1655.   eval "ac_cv_func_$ac_func=yes"
  1656. else
  1657.   rm -rf conftest*
  1658.   eval "ac_cv_func_$ac_func=no"
  1659. fi
  1660. rm -f conftest*
  1661.  
  1662. fi
  1663. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1664.   echo "$ac_t""yes" 1>&6
  1665.   cat >> confdefs.h <<EOF
  1666. #define CRAY_STACKSEG_END $ac_func
  1667. EOF
  1668.  
  1669.   break
  1670. else
  1671.   echo "$ac_t""no" 1>&6
  1672. fi
  1673.  
  1674. done
  1675. fi
  1676.  
  1677. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1678. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1679.   echo $ac_n "(cached) $ac_c" 1>&6
  1680. else
  1681.   if test "$cross_compiling" = yes; then
  1682.   ac_cv_c_stack_direction=0
  1683. else
  1684. cat > conftest.$ac_ext <<EOF
  1685. #line 1686 "configure"
  1686. #include "confdefs.h"
  1687. find_stack_direction ()
  1688. {
  1689.   static char *addr = 0;
  1690.   auto char dummy;
  1691.   if (addr == 0)
  1692.     {
  1693.       addr = &dummy;
  1694.       return find_stack_direction ();
  1695.     }
  1696.   else
  1697.     return (&dummy > addr) ? 1 : -1;
  1698. }
  1699. main ()
  1700. {
  1701.   exit (find_stack_direction() < 0);
  1702. }
  1703. EOF
  1704. { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1705. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1706.   ac_cv_c_stack_direction=1
  1707. else
  1708.   ac_cv_c_stack_direction=-1
  1709. fi
  1710. fi
  1711. rm -fr conftest*
  1712. fi
  1713.  
  1714. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1715. cat >> confdefs.h <<EOF
  1716. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1717. EOF
  1718.  
  1719. fi
  1720.  
  1721. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1722. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1723.   echo $ac_n "(cached) $ac_c" 1>&6
  1724. else
  1725.   if test "$cross_compiling" = yes; then
  1726.   ac_cv_func_closedir_void=yes
  1727. else
  1728. cat > conftest.$ac_ext <<EOF
  1729. #line 1730 "configure"
  1730. #include "confdefs.h"
  1731. #include <sys/types.h>
  1732. #include <$ac_header_dirent>
  1733. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1734. EOF
  1735. { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1736. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1737.   ac_cv_func_closedir_void=no
  1738. else
  1739.   ac_cv_func_closedir_void=yes
  1740. fi
  1741. fi
  1742. rm -fr conftest*
  1743. fi
  1744.  
  1745. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1746. if test $ac_cv_func_closedir_void = yes; then
  1747.   cat >> confdefs.h <<\EOF
  1748. #define CLOSEDIR_VOID 1
  1749. EOF
  1750.  
  1751. fi
  1752.  
  1753. ac_safe=`echo "vfork.h" | tr './\055' '___'`
  1754. echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
  1755. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1756.   echo $ac_n "(cached) $ac_c" 1>&6
  1757. else
  1758.   cat > conftest.$ac_ext <<EOF
  1759. #line 1760 "configure"
  1760. #include "confdefs.h"
  1761. #include <vfork.h>
  1762. EOF
  1763. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1764. { (eval echo configure:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1765. ac_err=`grep -v '^ *+' conftest.out`
  1766. if test -z "$ac_err"; then
  1767.   rm -rf conftest*
  1768.   eval "ac_cv_header_$ac_safe=yes"
  1769. else
  1770.   echo "$ac_err" >&5
  1771.   rm -rf conftest*
  1772.   eval "ac_cv_header_$ac_safe=no"
  1773. fi
  1774. rm -f conftest*
  1775. fi
  1776. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1777.   echo "$ac_t""yes" 1>&6
  1778.   cat >> confdefs.h <<\EOF
  1779. #define HAVE_VFORK_H 1
  1780. EOF
  1781.  
  1782. else
  1783.   echo "$ac_t""no" 1>&6
  1784. fi
  1785.  
  1786. echo $ac_n "checking for working vfork""... $ac_c" 1>&6
  1787. if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
  1788.   echo $ac_n "(cached) $ac_c" 1>&6
  1789. else
  1790.   if test "$cross_compiling" = yes; then
  1791.   echo $ac_n "checking for vfork""... $ac_c" 1>&6
  1792. if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
  1793.   echo $ac_n "(cached) $ac_c" 1>&6
  1794. else
  1795.   cat > conftest.$ac_ext <<EOF
  1796. #line 1797 "configure"
  1797. #include "confdefs.h"
  1798. /* System header to define __stub macros and hopefully few prototypes,
  1799.     which can conflict with char vfork(); below.  */
  1800. #include <assert.h>
  1801. /* Override any gcc2 internal prototype to avoid an error.  */
  1802. /* We use char because int might match the return type of a gcc2
  1803.     builtin and then its argument prototype would still apply.  */
  1804. char vfork();
  1805.  
  1806. int main() { t(); return 0; }
  1807. int t() {
  1808.  
  1809. /* The GNU C library defines this for functions which it implements
  1810.     to always fail with ENOSYS.  Some functions are actually named
  1811.     something starting with __ and the normal name is an alias.  */
  1812. #if defined (__stub_vfork) || defined (__stub___vfork)
  1813. choke me
  1814. #else
  1815. vfork();
  1816. #endif
  1817.  
  1818. ; return 0; }
  1819. EOF
  1820. if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1821.   rm -rf conftest*
  1822.   eval "ac_cv_func_vfork=yes"
  1823. else
  1824.   rm -rf conftest*
  1825.   eval "ac_cv_func_vfork=no"
  1826. fi
  1827. rm -f conftest*
  1828.  
  1829. fi
  1830. if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
  1831.   echo "$ac_t""yes" 1>&6
  1832.   :
  1833. else
  1834.   echo "$ac_t""no" 1>&6
  1835. fi
  1836.  
  1837. else
  1838. cat > conftest.$ac_ext <<EOF
  1839. #line 1840 "configure"
  1840. #include "confdefs.h"
  1841. /* Thanks to Paul Eggert for this test.  */
  1842. #include <stdio.h>
  1843. #include <sys/types.h>
  1844. #include <sys/stat.h>
  1845. #ifdef HAVE_UNISTD_H
  1846. #include <unistd.h>
  1847. #endif
  1848. #ifdef HAVE_VFORK_H
  1849. #include <vfork.h>
  1850. #endif
  1851. /* On some sparc systems, changes by the child to local and incoming
  1852.    argument registers are propagated back to the parent.
  1853.    The compiler is told about this with #include <vfork.h>,
  1854.    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  1855.    Test for this by using a static variable whose address
  1856.    is put into a register that is clobbered by the vfork.  */
  1857. static
  1858. #ifdef __cplusplus
  1859. sparc_address_test (int arg)
  1860. #else
  1861. sparc_address_test (arg) int arg;
  1862. #endif
  1863. {
  1864.   static pid_t child;
  1865.   if (!child) {
  1866.     child = vfork ();
  1867.     if (child < 0)
  1868.       perror ("vfork");
  1869.     if (!child) {
  1870.       arg = getpid();
  1871.       write(-1, "", 0);
  1872.       _exit (arg);
  1873.     }
  1874.   }
  1875. }
  1876. main() {
  1877.   pid_t parent = getpid ();
  1878.   pid_t child;
  1879.  
  1880.   sparc_address_test ();
  1881.  
  1882. #ifdef __amigaos__
  1883.   /* Force this test to succeed for AmigaOS, which has a fairly good
  1884.      vfork() emulation, but doesn't support fork() at all.  -fnf */
  1885.   exit (0);
  1886. #endif
  1887.  
  1888.   child = vfork ();
  1889.  
  1890.   if (child == 0) {
  1891.     /* Here is another test for sparc vfork register problems.
  1892.        This test uses lots of local variables, at least
  1893.        as many local variables as main has allocated so far
  1894.        including compiler temporaries.  4 locals are enough for
  1895.        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
  1896.        A buggy compiler should reuse the register of parent
  1897.        for one of the local variables, since it will think that
  1898.        parent can't possibly be used any more in this routine.
  1899.        Assigning to the local variable will thus munge parent
  1900.        in the parent process.  */
  1901.     pid_t
  1902.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  1903.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  1904.     /* Convince the compiler that p..p7 are live; otherwise, it might
  1905.        use the same hardware register for all 8 local variables.  */
  1906.     if (p != p1 || p != p2 || p != p3 || p != p4
  1907.     || p != p5 || p != p6 || p != p7)
  1908.       _exit(1);
  1909.  
  1910.     /* On some systems (e.g. IRIX 3.3),
  1911.        vfork doesn't separate parent from child file descriptors.
  1912.        If the child closes a descriptor before it execs or exits,
  1913.        this munges the parent's descriptor as well.
  1914.        Test for this by closing stdout in the child.  */
  1915.     _exit(close(fileno(stdout)) != 0);
  1916.   } else {
  1917.     int status;
  1918.     struct stat st;
  1919.  
  1920.     while (wait(&status) != child)
  1921.       ;
  1922.     exit(
  1923.      /* Was there some problem with vforking?  */
  1924.      child < 0
  1925.  
  1926.      /* Did the child fail?  (This shouldn't happen.)  */
  1927.      || status
  1928.  
  1929.      /* Did the vfork/compiler bug occur?  */
  1930.      || parent != getpid()
  1931.  
  1932.      /* Did the file descriptor bug occur?  */
  1933.      || fstat(fileno(stdout), &st) != 0
  1934.      );
  1935.   }
  1936. }
  1937. EOF
  1938. { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1939. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1940.   ac_cv_func_vfork=yes
  1941. else
  1942.   ac_cv_func_vfork=no
  1943. fi
  1944. fi
  1945. rm -fr conftest*
  1946. fi
  1947.  
  1948. echo "$ac_t""$ac_cv_func_vfork" 1>&6
  1949. if test $ac_cv_func_vfork = no; then
  1950.   cat >> confdefs.h <<\EOF
  1951. #define vfork fork
  1952. EOF
  1953.  
  1954. fi
  1955.  
  1956. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1957. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1958.   echo $ac_n "(cached) $ac_c" 1>&6
  1959. else
  1960.   cat > conftest.$ac_ext <<EOF
  1961. #line 1962 "configure"
  1962. #include "confdefs.h"
  1963. /* System header to define __stub macros and hopefully few prototypes,
  1964.     which can conflict with char vprintf(); below.  */
  1965. #include <assert.h>
  1966. /* Override any gcc2 internal prototype to avoid an error.  */
  1967. /* We use char because int might match the return type of a gcc2
  1968.     builtin and then its argument prototype would still apply.  */
  1969. char vprintf();
  1970.  
  1971. int main() { t(); return 0; }
  1972. int t() {
  1973.  
  1974. /* The GNU C library defines this for functions which it implements
  1975.     to always fail with ENOSYS.  Some functions are actually named
  1976.     something starting with __ and the normal name is an alias.  */
  1977. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1978. choke me
  1979. #else
  1980. vprintf();
  1981. #endif
  1982.  
  1983. ; return 0; }
  1984. EOF
  1985. if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1986.   rm -rf conftest*
  1987.   eval "ac_cv_func_vprintf=yes"
  1988. else
  1989.   rm -rf conftest*
  1990.   eval "ac_cv_func_vprintf=no"
  1991. fi
  1992. rm -f conftest*
  1993.  
  1994. fi
  1995. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1996.   echo "$ac_t""yes" 1>&6
  1997.   cat >> confdefs.h <<\EOF
  1998. #define HAVE_VPRINTF 1
  1999. EOF
  2000.  
  2001. else
  2002.   echo "$ac_t""no" 1>&6
  2003. fi
  2004.  
  2005. if test "$ac_cv_func_vprintf" != yes; then
  2006. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2007. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2008.   echo $ac_n "(cached) $ac_c" 1>&6
  2009. else
  2010.   cat > conftest.$ac_ext <<EOF
  2011. #line 2012 "configure"
  2012. #include "confdefs.h"
  2013. /* System header to define __stub macros and hopefully few prototypes,
  2014.     which can conflict with char _doprnt(); below.  */
  2015. #include <assert.h>
  2016. /* Override any gcc2 internal prototype to avoid an error.  */
  2017. /* We use char because int might match the return type of a gcc2
  2018.     builtin and then its argument prototype would still apply.  */
  2019. char _doprnt();
  2020.  
  2021. int main() { t(); return 0; }
  2022. int t() {
  2023.  
  2024. /* The GNU C library defines this for functions which it implements
  2025.     to always fail with ENOSYS.  Some functions are actually named
  2026.     something starting with __ and the normal name is an alias.  */
  2027. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2028. choke me
  2029. #else
  2030. _doprnt();
  2031. #endif
  2032.  
  2033. ; return 0; }
  2034. EOF
  2035. if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2036.   rm -rf conftest*
  2037.   eval "ac_cv_func__doprnt=yes"
  2038. else
  2039.   rm -rf conftest*
  2040.   eval "ac_cv_func__doprnt=no"
  2041. fi
  2042. rm -f conftest*
  2043.  
  2044. fi
  2045. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2046.   echo "$ac_t""yes" 1>&6
  2047.   cat >> confdefs.h <<\EOF
  2048. #define HAVE_DOPRNT 1
  2049. EOF
  2050.  
  2051. else
  2052.   echo "$ac_t""no" 1>&6
  2053. fi
  2054.  
  2055. fi
  2056.  
  2057. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  2058. if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  2059.   echo $ac_n "(cached) $ac_c" 1>&6
  2060. else
  2061.   cat > conftest.$ac_ext <<EOF
  2062. #line 2063 "configure"
  2063. #include "confdefs.h"
  2064. #include <sys/types.h>
  2065. #include <sys/stat.h>
  2066. int main() { return 0; }
  2067. int t() {
  2068. struct stat s; s.st_blksize;
  2069. ; return 0; }
  2070. EOF
  2071. if { (eval echo configure:2072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2072.   rm -rf conftest*
  2073.   ac_cv_struct_st_blksize=yes
  2074. else
  2075.   rm -rf conftest*
  2076.   ac_cv_struct_st_blksize=no
  2077. fi
  2078. rm -f conftest*
  2079.  
  2080. fi
  2081.  
  2082. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  2083. if test $ac_cv_struct_st_blksize = yes; then
  2084.   cat >> confdefs.h <<\EOF
  2085. #define HAVE_ST_BLKSIZE 1
  2086. EOF
  2087.  
  2088. fi
  2089.  
  2090. trap '' 1 2 15
  2091. cat > confcache <<\EOF
  2092. # This file is a shell script that caches the results of configure
  2093. # tests run on this system so they can be shared between configure
  2094. # scripts and configure runs.  It is not useful on other systems.
  2095. # If it contains results you don't want to keep, you may remove or edit it.
  2096. #
  2097. # By default, configure uses ./config.cache as the cache file,
  2098. # creating it if it does not exist already.  You can give configure
  2099. # the --cache-file=FILE option to use a different cache file; that is
  2100. # what configure does when it calls configure scripts in
  2101. # subdirectories, so they share the cache.
  2102. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2103. # config.status only pays attention to the cache file if you give it the
  2104. # --recheck option to rerun configure.
  2105. #
  2106. EOF
  2107. # Ultrix sh set writes to stderr and can't be redirected directly,
  2108. # and sets the high bit in the cache file unless we assign to the vars.
  2109. (set) 2>&1 |
  2110.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2111.   >> confcache
  2112. if cmp -s $cache_file confcache; then
  2113.   :
  2114. else
  2115.   if test -w $cache_file; then
  2116.     echo "updating cache $cache_file"
  2117.     cat confcache > $cache_file
  2118.   else
  2119.     echo "not updating unwritable cache $cache_file"
  2120.   fi
  2121. fi
  2122. rm -f confcache
  2123.  
  2124. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2125.  
  2126. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2127. # Let make expand exec_prefix.
  2128. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2129.  
  2130. # Any assignment to VPATH causes Sun make to only execute
  2131. # the first set of double-colon rules, so remove it if not needed.
  2132. # If there is a colon in the path, we need to keep it.
  2133. if test "x$srcdir" = x.; then
  2134.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2135. fi
  2136.  
  2137. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2138.  
  2139. DEFS=-DHAVE_CONFIG_H
  2140.  
  2141. # Without the "./", some shells look in PATH for config.status.
  2142. : ${CONFIG_STATUS=./config.status}
  2143.  
  2144. echo creating $CONFIG_STATUS
  2145. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2146. # being executed, so just move it out of the way instead.
  2147. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2148. cat > $CONFIG_STATUS <<EOF
  2149. #! /bin/sh
  2150. # Generated automatically by configure.
  2151. # Run this file to recreate the current configuration.
  2152. # This directory was configured as follows,
  2153. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2154. #
  2155. # $0 $ac_configure_args
  2156. #
  2157. # Compiler output produced by configure, useful for debugging
  2158. # configure, is in ./config.log if it exists.
  2159.  
  2160. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2161. for ac_option
  2162. do
  2163.   case "\$ac_option" in
  2164.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2165.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2166.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2167.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2168.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2169.     exit 0 ;;
  2170.   -help | --help | --hel | --he | --h)
  2171.     echo "\$ac_cs_usage"; exit 0 ;;
  2172.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2173.   esac
  2174. done
  2175.  
  2176. ac_given_srcdir=$srcdir
  2177. ac_given_INSTALL="$INSTALL"
  2178.  
  2179. trap 'rm -fr `echo "Makefile config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2180. EOF
  2181. cat >> $CONFIG_STATUS <<EOF
  2182.  
  2183. # Protect against being on the right side of a sed subst in config.status.
  2184. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2185.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2186. $ac_vpsub
  2187. $extrasub
  2188. s%@CFLAGS@%$CFLAGS%g
  2189. s%@CPPFLAGS@%$CPPFLAGS%g
  2190. s%@CXXFLAGS@%$CXXFLAGS%g
  2191. s%@DEFS@%$DEFS%g
  2192. s%@LDFLAGS@%$LDFLAGS%g
  2193. s%@LIBS@%$LIBS%g
  2194. s%@exec_prefix@%$exec_prefix%g
  2195. s%@prefix@%$prefix%g
  2196. s%@program_transform_name@%$program_transform_name%g
  2197. s%@bindir@%$bindir%g
  2198. s%@sbindir@%$sbindir%g
  2199. s%@libexecdir@%$libexecdir%g
  2200. s%@datadir@%$datadir%g
  2201. s%@sysconfdir@%$sysconfdir%g
  2202. s%@sharedstatedir@%$sharedstatedir%g
  2203. s%@localstatedir@%$localstatedir%g
  2204. s%@libdir@%$libdir%g
  2205. s%@includedir@%$includedir%g
  2206. s%@oldincludedir@%$oldincludedir%g
  2207. s%@infodir@%$infodir%g
  2208. s%@guidedir@%$guidedir%g
  2209. s%@psdir@%$psdir%g
  2210. s%@dvidir@%$dvidir%g
  2211. s%@mandir@%$mandir%g
  2212. s%@CC@%$CC%g
  2213. s%@CPP@%$CPP%g
  2214. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2215. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2216. s%@LIBOBJS@%$LIBOBJS%g
  2217. s%@ALLOCA@%$ALLOCA%g
  2218.  
  2219. CEOF
  2220. EOF
  2221. cat >> $CONFIG_STATUS <<EOF
  2222.  
  2223. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2224. EOF
  2225. cat >> $CONFIG_STATUS <<\EOF
  2226. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2227.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2228.   case "$ac_file" in
  2229.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2230.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2231.   *) ac_file_in="${ac_file}.in" ;;
  2232.   esac
  2233.  
  2234.   # Adjust relative srcdir, etc. for subdirectories.
  2235.  
  2236.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2237.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2238.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2239.     # The file is in a subdirectory.
  2240.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2241.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2242.     # A "../" for each directory in $ac_dir_suffix.
  2243.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2244.   else
  2245.     ac_dir_suffix= ac_dots=
  2246.   fi
  2247.  
  2248.   case "$ac_given_srcdir" in
  2249.   .)  srcdir=.
  2250.       if test -z "$ac_dots"; then top_srcdir=.
  2251.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2252.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2253.   *) # Relative path.
  2254.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2255.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2256.   esac
  2257.  
  2258.   case "$ac_given_INSTALL" in
  2259.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2260.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2261.   esac
  2262.   echo creating "$ac_file"
  2263.   rm -f "$ac_file"
  2264.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2265.   case "$ac_file" in
  2266.   *Makefile*) ac_comsub="1i\\
  2267. # $configure_input" ;;
  2268.   *) ac_comsub= ;;
  2269.   esac
  2270.   sed -e "$ac_comsub
  2271. s%@configure_input@%$configure_input%g
  2272. s%@srcdir@%$srcdir%g
  2273. s%@top_srcdir@%$top_srcdir%g
  2274. s%@INSTALL@%$INSTALL%g
  2275. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2276. fi; done
  2277. rm -f conftest.subs
  2278.  
  2279. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2280. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2281. #
  2282. # ac_d sets the value in "#define NAME VALUE" lines.
  2283. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2284. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2285. ac_dC='\3'
  2286. ac_dD='%g'
  2287. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2288. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2289. ac_uB='\([     ]\)%\1#\2define\3'
  2290. ac_uC=' '
  2291. ac_uD='\4%g'
  2292. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2293. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2294. ac_eB='$%\1#\2define\3'
  2295. ac_eC=' '
  2296. ac_eD='%g'
  2297.  
  2298. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.hin"}
  2299. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2300.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2301.   case "$ac_file" in
  2302.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2303.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2304.   *) ac_file_in="${ac_file}.in" ;;
  2305.   esac
  2306.  
  2307.   echo creating $ac_file
  2308.  
  2309.   rm -f conftest.frag conftest.in conftest.out
  2310.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2311.  
  2312. EOF
  2313.  
  2314. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2315. # the proper values into config.h.in to produce config.h.  And first:
  2316. # Protect against being on the right side of a sed subst in config.status.
  2317. # Protect against being in an unquoted here document in config.status.
  2318. rm -f conftest.vals
  2319. cat > conftest.hdr <<\EOF
  2320. s/[\\&%]/\\&/g
  2321. s%[\\$`]%\\&%g
  2322. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2323. s%ac_d%ac_u%gp
  2324. s%ac_u%ac_e%gp
  2325. EOF
  2326. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2327. rm -f conftest.hdr
  2328.  
  2329. # This sed command replaces #undef with comments.  This is necessary, for
  2330. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2331. # on some systems where configure will not decide to define it.
  2332. cat >> conftest.vals <<\EOF
  2333. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2334. EOF
  2335.  
  2336. # Break up conftest.vals because some shells have a limit on
  2337. # the size of here documents, and old seds have small limits too.
  2338. # Maximum number of lines to put in a single here document.
  2339. ac_max_here_lines=12
  2340.  
  2341. rm -f conftest.tail
  2342. while :
  2343. do
  2344.   ac_lines=`grep -c . conftest.vals`
  2345.   # grep -c gives empty output for an empty file on some AIX systems.
  2346.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2347.   # Write a limited-size here document to conftest.frag.
  2348.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2349.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2350.   echo 'CEOF
  2351.   sed -f conftest.frag conftest.in > conftest.out
  2352.   rm -f conftest.in
  2353.   mv conftest.out conftest.in
  2354. ' >> $CONFIG_STATUS
  2355.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2356.   rm -f conftest.vals
  2357.   mv conftest.tail conftest.vals
  2358. done
  2359. rm -f conftest.vals
  2360.  
  2361. cat >> $CONFIG_STATUS <<\EOF
  2362.   rm -f conftest.frag conftest.h
  2363.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2364.   cat conftest.in >> conftest.h
  2365.   rm -f conftest.in
  2366.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2367.     echo "$ac_file is unchanged"
  2368.     rm -f conftest.h
  2369.   else
  2370.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2371.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2372.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2373.       # The file is in a subdirectory.
  2374.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2375.     fi
  2376.     rm -f $ac_file
  2377.     mv conftest.h $ac_file
  2378.   fi
  2379. fi; done
  2380.  
  2381.  
  2382. date > stamp-h
  2383. exit 0
  2384. EOF
  2385. chmod +x $CONFIG_STATUS
  2386. rm -f CONFIG.STATUS.old
  2387. rm -fr confdefs* $ac_clean_files
  2388. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2389.  
  2390.