home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / patch-2.1-src.tgz / tar.out / fsf / patch / configure < prev    next >
Text File  |  1996-10-01  |  57KB  |  1,963 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=patch.c
  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. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  714. cat > conftest.$ac_ext <<EOF
  715. #line 716 "configure"
  716. #include "confdefs.h"
  717. #ifdef _AIX
  718.   yes
  719. #endif
  720.  
  721. EOF
  722. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  723.   egrep "yes" >/dev/null 2>&1; then
  724.   rm -rf conftest*
  725.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  726. #define _ALL_SOURCE 1
  727. EOF
  728.  
  729. else
  730.   rm -rf conftest*
  731.   echo "$ac_t""no" 1>&6
  732. fi
  733. rm -f conftest*
  734.  
  735.  
  736. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  737. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  738. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  739.   echo $ac_n "(cached) $ac_c" 1>&6
  740. else
  741.   cat > conftest.$ac_ext <<EOF
  742. #line 743 "configure"
  743. #include "confdefs.h"
  744. #include <minix/config.h>
  745. EOF
  746. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  747. { (eval echo configure:748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  748. ac_err=`grep -v '^ *+' conftest.out`
  749. if test -z "$ac_err"; then
  750.   rm -rf conftest*
  751.   eval "ac_cv_header_$ac_safe=yes"
  752. else
  753.   echo "$ac_err" >&5
  754.   rm -rf conftest*
  755.   eval "ac_cv_header_$ac_safe=no"
  756. fi
  757. rm -f conftest*
  758. fi
  759. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  760.   echo "$ac_t""yes" 1>&6
  761.   MINIX=yes
  762. else
  763.   echo "$ac_t""no" 1>&6
  764. MINIX=
  765. fi
  766.  
  767. if test "$MINIX" = yes; then
  768.   cat >> confdefs.h <<\EOF
  769. #define _POSIX_SOURCE 1
  770. EOF
  771.  
  772.   cat >> confdefs.h <<\EOF
  773. #define _POSIX_1_SOURCE 2
  774. EOF
  775.  
  776.   cat >> confdefs.h <<\EOF
  777. #define _MINIX 1
  778. EOF
  779.  
  780. fi
  781.  
  782. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  783. if test -d /etc/conf/kconfig.d &&
  784.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  785. then
  786.   echo "$ac_t""yes" 1>&6
  787.   ISC=yes # If later tests want to check for ISC.
  788.   cat >> confdefs.h <<\EOF
  789. #define _POSIX_SOURCE 1
  790. EOF
  791.  
  792.   if test "$GCC" = yes; then
  793.     CC="$CC -posix"
  794.   else
  795.     CC="$CC -Xp"
  796.   fi
  797. else
  798.   echo "$ac_t""no" 1>&6
  799.   ISC=
  800. fi
  801.  
  802. echo $ac_n "checking for working const""... $ac_c" 1>&6
  803. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  804.   echo $ac_n "(cached) $ac_c" 1>&6
  805. else
  806.   cat > conftest.$ac_ext <<EOF
  807. #line 808 "configure"
  808. #include "confdefs.h"
  809.  
  810. int main() { return 0; }
  811. int t() {
  812.  
  813. /* Ultrix mips cc rejects this.  */
  814. typedef int charset[2]; const charset x;
  815. /* SunOS 4.1.1 cc rejects this.  */
  816. char const *const *ccp;
  817. char **p;
  818. /* NEC SVR4.0.2 mips cc rejects this.  */
  819. struct point {int x, y;};
  820. static struct point const zero = {0,0};
  821. /* AIX XL C 1.02.0.0 rejects this.
  822.    It does not let you subtract one const X* pointer from another in an arm
  823.    of an if-expression whose if-part is not a constant expression */
  824. const char *g = "string";
  825. ccp = &g + (g ? g-g : 0);
  826. /* HPUX 7.0 cc rejects these. */
  827. ++ccp;
  828. p = (char**) ccp;
  829. ccp = (char const *const *) p;
  830. { /* SCO 3.2v4 cc rejects this.  */
  831.   char *t;
  832.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  833.  
  834.   *t++ = 0;
  835. }
  836. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  837.   int x[] = {25, 17};
  838.   const int *foo = &x[0];
  839.   ++foo;
  840. }
  841. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  842.   typedef const int *iptr;
  843.   iptr p = 0;
  844.   ++p;
  845. }
  846. { /* AIX XL C 1.02.0.0 rejects this saying
  847.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  848.   struct s { int j; const int *ap[3]; };
  849.   struct s *b; b->j = 5;
  850. }
  851. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  852.   const int foo = 10;
  853. }
  854.  
  855. ; return 0; }
  856. EOF
  857. if { (eval echo configure:858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  858.   rm -rf conftest*
  859.   ac_cv_c_const=yes
  860. else
  861.   rm -rf conftest*
  862.   ac_cv_c_const=no
  863. fi
  864. rm -f conftest*
  865.  
  866. fi
  867.  
  868. echo "$ac_t""$ac_cv_c_const" 1>&6
  869. if test $ac_cv_c_const = no; then
  870.   cat >> confdefs.h <<\EOF
  871. #define const 
  872. EOF
  873.  
  874. fi
  875.  
  876. ac_aux_dir=
  877. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  878.   if test -f $ac_dir/install-sh; then
  879.     ac_aux_dir=$ac_dir
  880.     ac_install_sh="$ac_aux_dir/install-sh -c"
  881.     break
  882.   elif test -f $ac_dir/install.sh; then
  883.     ac_aux_dir=$ac_dir
  884.     ac_install_sh="$ac_aux_dir/install.sh -c"
  885.     break
  886.   fi
  887. done
  888. if test -z "$ac_aux_dir"; then
  889.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  890. fi
  891. ac_config_guess=$ac_aux_dir/config.guess
  892. ac_config_sub=$ac_aux_dir/config.sub
  893. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  894.  
  895. # Find a good install program.  We prefer a C program (faster),
  896. # so one script is as good as another.  But avoid the broken or
  897. # incompatible versions:
  898. # SysV /etc/install, /usr/sbin/install
  899. # SunOS /usr/etc/install
  900. # IRIX /sbin/install
  901. # AIX /bin/install
  902. # AmigaOS /c/install
  903. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  904. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  905. # ./install, which can be erroneously created by make from ./install.sh.
  906. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  907. if test -z "$INSTALL"; then
  908. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  909.   echo $ac_n "(cached) $ac_c" 1>&6
  910. else
  911.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  912.   for ac_dir in $PATH; do
  913.     # Account for people who put trailing slashes in PATH elements.
  914.     case "$ac_dir/" in
  915.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  916.     *)
  917.       # OSF1 and SCO ODT 3.0 have their own names for install.
  918.       for ac_prog in ginstall installbsd scoinst install; do
  919.         if test -f $ac_dir/$ac_prog; then
  920.       if test $ac_prog = install &&
  921.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  922.         # AIX install.  It has an incompatible calling convention.
  923.         # OSF/1 installbsd also uses dspmsg, but is usable.
  924.         :
  925.       else
  926.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  927.         break 2
  928.       fi
  929.     fi
  930.       done
  931.       ;;
  932.     esac
  933.   done
  934.   IFS="$ac_save_ifs"
  935.  
  936. fi
  937.   if test "${ac_cv_path_install+set}" = set; then
  938.     INSTALL="$ac_cv_path_install"
  939.   else
  940.     # As a last resort, use the slow shell script.  We don't cache a
  941.     # path for INSTALL within a source directory, because that will
  942.     # break other packages using the cache if that directory is
  943.     # removed, or if the path is relative.
  944.     INSTALL="$ac_install_sh"
  945.   fi
  946. fi
  947. echo "$ac_t""$INSTALL" 1>&6
  948.  
  949. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  950. # It thinks the first close brace ends the variable substitution.
  951. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  952.  
  953. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  954.  
  955. # If we cannot run a trivial program, we must be cross compiling.
  956. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  957. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  958.   echo $ac_n "(cached) $ac_c" 1>&6
  959. else
  960.   if test "$cross_compiling" = yes; then
  961.   ac_cv_c_cross=yes
  962. else
  963. cat > conftest.$ac_ext <<EOF
  964. #line 965 "configure"
  965. #include "confdefs.h"
  966. main(){return(0);}
  967. EOF
  968. { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  969. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  970.   ac_cv_c_cross=no
  971. else
  972.   ac_cv_c_cross=yes
  973. fi
  974. fi
  975. rm -fr conftest*
  976. fi
  977.  
  978. echo "$ac_t""$ac_cv_c_cross" 1>&6
  979. cross_compiling=$ac_cv_c_cross
  980.  
  981. ac_header_dirent=no
  982. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  983.   ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  984. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  985. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  986.   echo $ac_n "(cached) $ac_c" 1>&6
  987. else
  988.   cat > conftest.$ac_ext <<EOF
  989. #line 990 "configure"
  990. #include "confdefs.h"
  991. #include <sys/types.h>
  992. #include <$ac_hdr>
  993. int main() { return 0; }
  994. int t() {
  995. DIR *dirp = 0;
  996. ; return 0; }
  997. EOF
  998. if { (eval echo configure:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  999.   rm -rf conftest*
  1000.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1001. else
  1002.   rm -rf conftest*
  1003.   eval "ac_cv_header_dirent_$ac_safe=no"
  1004. fi
  1005. rm -f conftest*
  1006.  
  1007. fi
  1008. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1009.   echo "$ac_t""yes" 1>&6
  1010.   ac_header_dirent=$ac_hdr; break
  1011. else
  1012.   echo "$ac_t""no" 1>&6
  1013. fi
  1014.  
  1015. done
  1016.  
  1017. case "$ac_header_dirent" in
  1018. dirent.h) cat >> confdefs.h <<\EOF
  1019. #define DIRENT 1
  1020. EOF
  1021.  ;;
  1022. sys/ndir.h) cat >> confdefs.h <<\EOF
  1023. #define SYSNDIR 1
  1024. EOF
  1025.  ;;
  1026. sys/dir.h) cat >> confdefs.h <<\EOF
  1027. #define SYSDIR 1
  1028. EOF
  1029.  ;;
  1030. ndir.h) cat >> confdefs.h <<\EOF
  1031. #define NDIR 1
  1032. EOF
  1033.  ;;
  1034. esac
  1035.  
  1036. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1037. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1038.   echo $ac_n "(cached) $ac_c" 1>&6
  1039. else
  1040.   if test "$cross_compiling" = yes; then
  1041.   ac_cv_func_closedir_void=yes
  1042. else
  1043. cat > conftest.$ac_ext <<EOF
  1044. #line 1045 "configure"
  1045. #include "confdefs.h"
  1046. #include <sys/types.h>
  1047. #include <$ac_header_dirent>
  1048. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1049. EOF
  1050. { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1051. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1052.   ac_cv_func_closedir_void=no
  1053. else
  1054.   ac_cv_func_closedir_void=yes
  1055. fi
  1056. fi
  1057. rm -fr conftest*
  1058. fi
  1059.  
  1060. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1061. if test $ac_cv_func_closedir_void = yes; then
  1062.   cat >> confdefs.h <<\EOF
  1063. #define VOID_CLOSEDIR 1
  1064. EOF
  1065.  
  1066. fi
  1067.  
  1068. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1069. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1070.   echo $ac_n "(cached) $ac_c" 1>&6
  1071. else
  1072.   cat > conftest.$ac_ext <<EOF
  1073. #line 1074 "configure"
  1074. #include "confdefs.h"
  1075. #include <sys/types.h>
  1076. #include <signal.h>
  1077. #ifdef signal
  1078. #undef signal
  1079. #endif
  1080. #ifdef __cplusplus
  1081. extern "C" void (*signal (int, void (*)(int)))(int);
  1082. #else
  1083. void (*signal ()) ();
  1084. #endif
  1085.  
  1086. int main() { return 0; }
  1087. int t() {
  1088. int i;
  1089. ; return 0; }
  1090. EOF
  1091. if { (eval echo configure:1092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1092.   rm -rf conftest*
  1093.   ac_cv_type_signal=void
  1094. else
  1095.   rm -rf conftest*
  1096.   ac_cv_type_signal=int
  1097. fi
  1098. rm -f conftest*
  1099.  
  1100. fi
  1101.  
  1102. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1103. cat >> confdefs.h <<EOF
  1104. #define RETSIGTYPE $ac_cv_type_signal
  1105. EOF
  1106.  
  1107.  
  1108. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1109. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1110.   echo $ac_n "(cached) $ac_c" 1>&6
  1111. else
  1112.   cat > conftest.$ac_ext <<EOF
  1113. #line 1114 "configure"
  1114. #include "confdefs.h"
  1115. #include <stdlib.h>
  1116. #include <stdarg.h>
  1117. #include <string.h>
  1118. #include <float.h>
  1119. EOF
  1120. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1121. { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1122. ac_err=`grep -v '^ *+' conftest.out`
  1123. if test -z "$ac_err"; then
  1124.   rm -rf conftest*
  1125.   ac_cv_header_stdc=yes
  1126. else
  1127.   echo "$ac_err" >&5
  1128.   rm -rf conftest*
  1129.   ac_cv_header_stdc=no
  1130. fi
  1131. rm -f conftest*
  1132.  
  1133. if test $ac_cv_header_stdc = yes; then
  1134.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1135. cat > conftest.$ac_ext <<EOF
  1136. #line 1137 "configure"
  1137. #include "confdefs.h"
  1138. #include <string.h>
  1139. EOF
  1140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1141.   egrep "memchr" >/dev/null 2>&1; then
  1142.   :
  1143. else
  1144.   rm -rf conftest*
  1145.   ac_cv_header_stdc=no
  1146. fi
  1147. rm -f conftest*
  1148.  
  1149. fi
  1150.  
  1151. if test $ac_cv_header_stdc = yes; then
  1152.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1153. cat > conftest.$ac_ext <<EOF
  1154. #line 1155 "configure"
  1155. #include "confdefs.h"
  1156. #include <stdlib.h>
  1157. EOF
  1158. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1159.   egrep "free" >/dev/null 2>&1; then
  1160.   :
  1161. else
  1162.   rm -rf conftest*
  1163.   ac_cv_header_stdc=no
  1164. fi
  1165. rm -f conftest*
  1166.  
  1167. fi
  1168.  
  1169. if test $ac_cv_header_stdc = yes; then
  1170.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1171. if test "$cross_compiling" = yes; then
  1172.   :
  1173. else
  1174. cat > conftest.$ac_ext <<EOF
  1175. #line 1176 "configure"
  1176. #include "confdefs.h"
  1177. #include <ctype.h>
  1178. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1179. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1180. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1181. int main () { int i; for (i = 0; i < 256; i++)
  1182. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1183. exit (0); }
  1184.  
  1185. EOF
  1186. { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1187. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1188.   :
  1189. else
  1190.   ac_cv_header_stdc=no
  1191. fi
  1192. fi
  1193. rm -fr conftest*
  1194. fi
  1195. fi
  1196.  
  1197. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1198. if test $ac_cv_header_stdc = yes; then
  1199.   cat >> confdefs.h <<\EOF
  1200. #define STDC_HEADERS 1
  1201. EOF
  1202.  
  1203. fi
  1204.  
  1205. for ac_hdr in unistd.h
  1206. do
  1207. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1208. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1209. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1210.   echo $ac_n "(cached) $ac_c" 1>&6
  1211. else
  1212.   cat > conftest.$ac_ext <<EOF
  1213. #line 1214 "configure"
  1214. #include "confdefs.h"
  1215. #include <$ac_hdr>
  1216. EOF
  1217. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1218. { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1219. ac_err=`grep -v '^ *+' conftest.out`
  1220. if test -z "$ac_err"; then
  1221.   rm -rf conftest*
  1222.   eval "ac_cv_header_$ac_safe=yes"
  1223. else
  1224.   echo "$ac_err" >&5
  1225.   rm -rf conftest*
  1226.   eval "ac_cv_header_$ac_safe=no"
  1227. fi
  1228. rm -f conftest*
  1229. fi
  1230. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1231.   echo "$ac_t""yes" 1>&6
  1232.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1233.   cat >> confdefs.h <<EOF
  1234. #define $ac_tr_hdr 1
  1235. EOF
  1236.  
  1237. else
  1238.   echo "$ac_t""no" 1>&6
  1239. fi
  1240. done
  1241.  
  1242. for ac_hdr in string.h fcntl.h
  1243. do
  1244. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1245. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1246. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1247.   echo $ac_n "(cached) $ac_c" 1>&6
  1248. else
  1249.   cat > conftest.$ac_ext <<EOF
  1250. #line 1251 "configure"
  1251. #include "confdefs.h"
  1252. #include <$ac_hdr>
  1253. EOF
  1254. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1255. { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1256. ac_err=`grep -v '^ *+' conftest.out`
  1257. if test -z "$ac_err"; then
  1258.   rm -rf conftest*
  1259.   eval "ac_cv_header_$ac_safe=yes"
  1260. else
  1261.   echo "$ac_err" >&5
  1262.   rm -rf conftest*
  1263.   eval "ac_cv_header_$ac_safe=no"
  1264. fi
  1265. rm -f conftest*
  1266. fi
  1267. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1268.   echo "$ac_t""yes" 1>&6
  1269.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1270.   cat >> confdefs.h <<EOF
  1271. #define $ac_tr_hdr 1
  1272. EOF
  1273.  
  1274. else
  1275.   echo "$ac_t""no" 1>&6
  1276. fi
  1277. done
  1278.  
  1279. for ac_func in rename
  1280. do
  1281. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1282. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1283.   echo $ac_n "(cached) $ac_c" 1>&6
  1284. else
  1285.   cat > conftest.$ac_ext <<EOF
  1286. #line 1287 "configure"
  1287. #include "confdefs.h"
  1288. /* System header to define __stub macros and hopefully few prototypes,
  1289.     which can conflict with char $ac_func(); below.  */
  1290. #include <assert.h>
  1291. /* Override any gcc2 internal prototype to avoid an error.  */
  1292. /* We use char because int might match the return type of a gcc2
  1293.     builtin and then its argument prototype would still apply.  */
  1294. char $ac_func();
  1295.  
  1296. int main() { t(); return 0; }
  1297. int t() {
  1298.  
  1299. /* The GNU C library defines this for functions which it implements
  1300.     to always fail with ENOSYS.  Some functions are actually named
  1301.     something starting with __ and the normal name is an alias.  */
  1302. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1303. choke me
  1304. #else
  1305. $ac_func();
  1306. #endif
  1307.  
  1308. ; return 0; }
  1309. EOF
  1310. if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1311.   rm -rf conftest*
  1312.   eval "ac_cv_func_$ac_func=yes"
  1313. else
  1314.   rm -rf conftest*
  1315.   eval "ac_cv_func_$ac_func=no"
  1316. fi
  1317. rm -f conftest*
  1318.  
  1319. fi
  1320. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1321.   echo "$ac_t""yes" 1>&6
  1322.   :
  1323. else
  1324.   echo "$ac_t""no" 1>&6
  1325. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1326. fi
  1327.  
  1328. done
  1329.  
  1330. for ac_func in pathconf strerror
  1331. do
  1332. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1333. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1334.   echo $ac_n "(cached) $ac_c" 1>&6
  1335. else
  1336.   cat > conftest.$ac_ext <<EOF
  1337. #line 1338 "configure"
  1338. #include "confdefs.h"
  1339. /* System header to define __stub macros and hopefully few prototypes,
  1340.     which can conflict with char $ac_func(); below.  */
  1341. #include <assert.h>
  1342. /* Override any gcc2 internal prototype to avoid an error.  */
  1343. /* We use char because int might match the return type of a gcc2
  1344.     builtin and then its argument prototype would still apply.  */
  1345. char $ac_func();
  1346.  
  1347. int main() { t(); return 0; }
  1348. int t() {
  1349.  
  1350. /* The GNU C library defines this for functions which it implements
  1351.     to always fail with ENOSYS.  Some functions are actually named
  1352.     something starting with __ and the normal name is an alias.  */
  1353. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1354. choke me
  1355. #else
  1356. $ac_func();
  1357. #endif
  1358.  
  1359. ; return 0; }
  1360. EOF
  1361. if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1362.   rm -rf conftest*
  1363.   eval "ac_cv_func_$ac_func=yes"
  1364. else
  1365.   rm -rf conftest*
  1366.   eval "ac_cv_func_$ac_func=no"
  1367. fi
  1368. rm -f conftest*
  1369.  
  1370. fi
  1371. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1372.   echo "$ac_t""yes" 1>&6
  1373.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1374.   cat >> confdefs.h <<EOF
  1375. #define $ac_tr_func 1
  1376. EOF
  1377.  
  1378. else
  1379.   echo "$ac_t""no" 1>&6
  1380. fi
  1381. done
  1382.  
  1383. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1384. # for constant arguments.  Useless!
  1385. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1386. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1387.   echo $ac_n "(cached) $ac_c" 1>&6
  1388. else
  1389.   cat > conftest.$ac_ext <<EOF
  1390. #line 1391 "configure"
  1391. #include "confdefs.h"
  1392. #include <alloca.h>
  1393. int main() { t(); return 0; }
  1394. int t() {
  1395. char *p = alloca(2 * sizeof(int));
  1396. ; return 0; }
  1397. EOF
  1398. if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1399.   rm -rf conftest*
  1400.   ac_cv_header_alloca_h=yes
  1401. else
  1402.   rm -rf conftest*
  1403.   ac_cv_header_alloca_h=no
  1404. fi
  1405. rm -f conftest*
  1406.  
  1407. fi
  1408.  
  1409. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1410. if test $ac_cv_header_alloca_h = yes; then
  1411.   cat >> confdefs.h <<\EOF
  1412. #define HAVE_ALLOCA_H 1
  1413. EOF
  1414.  
  1415. fi
  1416.  
  1417. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1418. if eval "test \"`echo '$''{'ac_cv_func_alloca'+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.  
  1425. #ifdef __GNUC__
  1426. # define alloca __builtin_alloca
  1427. #else
  1428. # if HAVE_ALLOCA_H
  1429. #  include <alloca.h>
  1430. # else
  1431. #  ifdef _AIX
  1432.  #pragma alloca
  1433. #  else
  1434. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1435. char *alloca ();
  1436. #   endif
  1437. #  endif
  1438. # endif
  1439. #endif
  1440.  
  1441. int main() { t(); return 0; }
  1442. int t() {
  1443. char *p = (char *) alloca(1);
  1444. ; return 0; }
  1445. EOF
  1446. if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1447.   rm -rf conftest*
  1448.   ac_cv_func_alloca=yes
  1449. else
  1450.   rm -rf conftest*
  1451.   ac_cv_func_alloca=no
  1452. fi
  1453. rm -f conftest*
  1454.  
  1455. fi
  1456.  
  1457. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1458. if test $ac_cv_func_alloca = yes; then
  1459.   cat >> confdefs.h <<\EOF
  1460. #define HAVE_ALLOCA 1
  1461. EOF
  1462.  
  1463. fi
  1464.  
  1465. if test $ac_cv_func_alloca = no; then
  1466.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1467.   # that cause trouble.  Some versions do not even contain alloca or
  1468.   # contain a buggy version.  If you still want to use their alloca,
  1469.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1470.   ALLOCA=alloca.o
  1471.   cat >> confdefs.h <<\EOF
  1472. #define C_ALLOCA 1
  1473. EOF
  1474.  
  1475.  
  1476. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1477. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1478.   echo $ac_n "(cached) $ac_c" 1>&6
  1479. else
  1480.   cat > conftest.$ac_ext <<EOF
  1481. #line 1482 "configure"
  1482. #include "confdefs.h"
  1483. #if defined(CRAY) && ! defined(CRAY2)
  1484. webecray
  1485. #else
  1486. wenotbecray
  1487. #endif
  1488.  
  1489. EOF
  1490. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1491.   egrep "webecray" >/dev/null 2>&1; then
  1492.   rm -rf conftest*
  1493.   ac_cv_os_cray=yes
  1494. else
  1495.   rm -rf conftest*
  1496.   ac_cv_os_cray=no
  1497. fi
  1498. rm -f conftest*
  1499.  
  1500. fi
  1501.  
  1502. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1503. if test $ac_cv_os_cray = yes; then
  1504. for ac_func in _getb67 GETB67 getb67; do
  1505.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1506. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1507.   echo $ac_n "(cached) $ac_c" 1>&6
  1508. else
  1509.   cat > conftest.$ac_ext <<EOF
  1510. #line 1511 "configure"
  1511. #include "confdefs.h"
  1512. /* System header to define __stub macros and hopefully few prototypes,
  1513.     which can conflict with char $ac_func(); below.  */
  1514. #include <assert.h>
  1515. /* Override any gcc2 internal prototype to avoid an error.  */
  1516. /* We use char because int might match the return type of a gcc2
  1517.     builtin and then its argument prototype would still apply.  */
  1518. char $ac_func();
  1519.  
  1520. int main() { t(); return 0; }
  1521. int t() {
  1522.  
  1523. /* The GNU C library defines this for functions which it implements
  1524.     to always fail with ENOSYS.  Some functions are actually named
  1525.     something starting with __ and the normal name is an alias.  */
  1526. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1527. choke me
  1528. #else
  1529. $ac_func();
  1530. #endif
  1531.  
  1532. ; return 0; }
  1533. EOF
  1534. if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1535.   rm -rf conftest*
  1536.   eval "ac_cv_func_$ac_func=yes"
  1537. else
  1538.   rm -rf conftest*
  1539.   eval "ac_cv_func_$ac_func=no"
  1540. fi
  1541. rm -f conftest*
  1542.  
  1543. fi
  1544. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1545.   echo "$ac_t""yes" 1>&6
  1546.   cat >> confdefs.h <<EOF
  1547. #define CRAY_STACKSEG_END $ac_func
  1548. EOF
  1549.  
  1550.   break
  1551. else
  1552.   echo "$ac_t""no" 1>&6
  1553. fi
  1554.  
  1555. done
  1556. fi
  1557.  
  1558. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1559. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1560.   echo $ac_n "(cached) $ac_c" 1>&6
  1561. else
  1562.   if test "$cross_compiling" = yes; then
  1563.   ac_cv_c_stack_direction=0
  1564. else
  1565. cat > conftest.$ac_ext <<EOF
  1566. #line 1567 "configure"
  1567. #include "confdefs.h"
  1568. find_stack_direction ()
  1569. {
  1570.   static char *addr = 0;
  1571.   auto char dummy;
  1572.   if (addr == 0)
  1573.     {
  1574.       addr = &dummy;
  1575.       return find_stack_direction ();
  1576.     }
  1577.   else
  1578.     return (&dummy > addr) ? 1 : -1;
  1579. }
  1580. main ()
  1581. {
  1582.   exit (find_stack_direction() < 0);
  1583. }
  1584. EOF
  1585. { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1586. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1587.   ac_cv_c_stack_direction=1
  1588. else
  1589.   ac_cv_c_stack_direction=-1
  1590. fi
  1591. fi
  1592. rm -fr conftest*
  1593. fi
  1594.  
  1595. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1596. cat >> confdefs.h <<EOF
  1597. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1598. EOF
  1599.  
  1600. fi
  1601.  
  1602. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  1603. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  1604.   echo $ac_n "(cached) $ac_c" 1>&6
  1605. else
  1606.   ac_cv_sys_long_file_names=yes
  1607. # Test for long file names in all the places we know might matter:
  1608. #      .        the current directory, where building will happen
  1609. #      /tmp        where it might want to write temporary files
  1610. #      /var/tmp        likewise
  1611. #      /usr/tmp        likewise
  1612. #      $prefix/lib    where we will be installing things
  1613. #      $exec_prefix/lib    likewise
  1614. # eval it to expand exec_prefix.
  1615. for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  1616.   test -d $ac_dir || continue
  1617.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  1618.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  1619.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  1620.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  1621.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  1622.     ac_cv_sys_long_file_names=no
  1623.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1624.     break
  1625.   fi
  1626.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1627. done
  1628. fi
  1629.  
  1630. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  1631. if test $ac_cv_sys_long_file_names = yes; then
  1632.   cat >> confdefs.h <<\EOF
  1633. #define HAVE_LONG_FILE_NAMES 1
  1634. EOF
  1635.  
  1636. fi
  1637.  
  1638. echo $ac_n "checking for Xenix""... $ac_c" 1>&6
  1639. cat > conftest.$ac_ext <<EOF
  1640. #line 1641 "configure"
  1641. #include "confdefs.h"
  1642. #if defined(M_XENIX) && !defined(M_UNIX)
  1643.   yes
  1644. #endif
  1645.  
  1646. EOF
  1647. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1648.   egrep "yes" >/dev/null 2>&1; then
  1649.   rm -rf conftest*
  1650.   echo "$ac_t""yes" 1>&6; XENIX=yes
  1651. else
  1652.   rm -rf conftest*
  1653.   echo "$ac_t""no" 1>&6; XENIX=
  1654. fi
  1655. rm -f conftest*
  1656.  
  1657. if test "$XENIX" = yes; then
  1658.   # Make sure -ldir precedes -lx.
  1659.   test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS"
  1660.   LIBS="$LIBS -lx"
  1661. fi
  1662.  
  1663. trap '' 1 2 15
  1664. cat > confcache <<\EOF
  1665. # This file is a shell script that caches the results of configure
  1666. # tests run on this system so they can be shared between configure
  1667. # scripts and configure runs.  It is not useful on other systems.
  1668. # If it contains results you don't want to keep, you may remove or edit it.
  1669. #
  1670. # By default, configure uses ./config.cache as the cache file,
  1671. # creating it if it does not exist already.  You can give configure
  1672. # the --cache-file=FILE option to use a different cache file; that is
  1673. # what configure does when it calls configure scripts in
  1674. # subdirectories, so they share the cache.
  1675. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1676. # config.status only pays attention to the cache file if you give it the
  1677. # --recheck option to rerun configure.
  1678. #
  1679. EOF
  1680. # Ultrix sh set writes to stderr and can't be redirected directly,
  1681. # and sets the high bit in the cache file unless we assign to the vars.
  1682. (set) 2>&1 |
  1683.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1684.   >> confcache
  1685. if cmp -s $cache_file confcache; then
  1686.   :
  1687. else
  1688.   if test -w $cache_file; then
  1689.     echo "updating cache $cache_file"
  1690.     cat confcache > $cache_file
  1691.   else
  1692.     echo "not updating unwritable cache $cache_file"
  1693.   fi
  1694. fi
  1695. rm -f confcache
  1696.  
  1697. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1698.  
  1699. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1700. # Let make expand exec_prefix.
  1701. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1702.  
  1703. # Any assignment to VPATH causes Sun make to only execute
  1704. # the first set of double-colon rules, so remove it if not needed.
  1705. # If there is a colon in the path, we need to keep it.
  1706. if test "x$srcdir" = x.; then
  1707.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1708. fi
  1709.  
  1710. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1711.  
  1712. DEFS=-DHAVE_CONFIG_H
  1713.  
  1714. # Without the "./", some shells look in PATH for config.status.
  1715. : ${CONFIG_STATUS=./config.status}
  1716.  
  1717. echo creating $CONFIG_STATUS
  1718. # Some systems, like AmigaOS, won't allow you to remove a script that is
  1719. # being executed, so just move it out of the way instead.
  1720. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1721. cat > $CONFIG_STATUS <<EOF
  1722. #! /bin/sh
  1723. # Generated automatically by configure.
  1724. # Run this file to recreate the current configuration.
  1725. # This directory was configured as follows,
  1726. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1727. #
  1728. # $0 $ac_configure_args
  1729. #
  1730. # Compiler output produced by configure, useful for debugging
  1731. # configure, is in ./config.log if it exists.
  1732.  
  1733. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1734. for ac_option
  1735. do
  1736.   case "\$ac_option" in
  1737.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1738.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1739.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1740.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1741.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1742.     exit 0 ;;
  1743.   -help | --help | --hel | --he | --h)
  1744.     echo "\$ac_cs_usage"; exit 0 ;;
  1745.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1746.   esac
  1747. done
  1748.  
  1749. ac_given_srcdir=$srcdir
  1750. ac_given_INSTALL="$INSTALL"
  1751.  
  1752. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1753. EOF
  1754. cat >> $CONFIG_STATUS <<EOF
  1755.  
  1756. # Protect against being on the right side of a sed subst in config.status.
  1757. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1758.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1759. $ac_vpsub
  1760. $extrasub
  1761. s%@CFLAGS@%$CFLAGS%g
  1762. s%@CPPFLAGS@%$CPPFLAGS%g
  1763. s%@CXXFLAGS@%$CXXFLAGS%g
  1764. s%@DEFS@%$DEFS%g
  1765. s%@LDFLAGS@%$LDFLAGS%g
  1766. s%@LIBS@%$LIBS%g
  1767. s%@exec_prefix@%$exec_prefix%g
  1768. s%@prefix@%$prefix%g
  1769. s%@program_transform_name@%$program_transform_name%g
  1770. s%@bindir@%$bindir%g
  1771. s%@sbindir@%$sbindir%g
  1772. s%@libexecdir@%$libexecdir%g
  1773. s%@datadir@%$datadir%g
  1774. s%@sysconfdir@%$sysconfdir%g
  1775. s%@sharedstatedir@%$sharedstatedir%g
  1776. s%@localstatedir@%$localstatedir%g
  1777. s%@libdir@%$libdir%g
  1778. s%@includedir@%$includedir%g
  1779. s%@oldincludedir@%$oldincludedir%g
  1780. s%@infodir@%$infodir%g
  1781. s%@guidedir@%$guidedir%g
  1782. s%@psdir@%$psdir%g
  1783. s%@dvidir@%$dvidir%g
  1784. s%@mandir@%$mandir%g
  1785. s%@CC@%$CC%g
  1786. s%@CPP@%$CPP%g
  1787. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1788. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1789. s%@LIBOBJS@%$LIBOBJS%g
  1790. s%@ALLOCA@%$ALLOCA%g
  1791.  
  1792. CEOF
  1793. EOF
  1794. cat >> $CONFIG_STATUS <<EOF
  1795.  
  1796. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1797. EOF
  1798. cat >> $CONFIG_STATUS <<\EOF
  1799. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1800.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1801.   case "$ac_file" in
  1802.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1803.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1804.   *) ac_file_in="${ac_file}.in" ;;
  1805.   esac
  1806.  
  1807.   # Adjust relative srcdir, etc. for subdirectories.
  1808.  
  1809.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1810.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1811.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1812.     # The file is in a subdirectory.
  1813.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1814.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1815.     # A "../" for each directory in $ac_dir_suffix.
  1816.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1817.   else
  1818.     ac_dir_suffix= ac_dots=
  1819.   fi
  1820.  
  1821.   case "$ac_given_srcdir" in
  1822.   .)  srcdir=.
  1823.       if test -z "$ac_dots"; then top_srcdir=.
  1824.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1825.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1826.   *) # Relative path.
  1827.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1828.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1829.   esac
  1830.  
  1831.   case "$ac_given_INSTALL" in
  1832.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1833.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1834.   esac
  1835.   echo creating "$ac_file"
  1836.   rm -f "$ac_file"
  1837.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1838.   case "$ac_file" in
  1839.   *Makefile*) ac_comsub="1i\\
  1840. # $configure_input" ;;
  1841.   *) ac_comsub= ;;
  1842.   esac
  1843.   sed -e "$ac_comsub
  1844. s%@configure_input@%$configure_input%g
  1845. s%@srcdir@%$srcdir%g
  1846. s%@top_srcdir@%$top_srcdir%g
  1847. s%@INSTALL@%$INSTALL%g
  1848. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1849. fi; done
  1850. rm -f conftest.subs
  1851.  
  1852. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1853. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1854. #
  1855. # ac_d sets the value in "#define NAME VALUE" lines.
  1856. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1857. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1858. ac_dC='\3'
  1859. ac_dD='%g'
  1860. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1861. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1862. ac_uB='\([     ]\)%\1#\2define\3'
  1863. ac_uC=' '
  1864. ac_uD='\4%g'
  1865. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1866. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1867. ac_eB='$%\1#\2define\3'
  1868. ac_eC=' '
  1869. ac_eD='%g'
  1870.  
  1871. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  1872. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1873.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1874.   case "$ac_file" in
  1875.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1876.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1877.   *) ac_file_in="${ac_file}.in" ;;
  1878.   esac
  1879.  
  1880.   echo creating $ac_file
  1881.  
  1882.   rm -f conftest.frag conftest.in conftest.out
  1883.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1884.  
  1885. EOF
  1886.  
  1887. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1888. # the proper values into config.h.in to produce config.h.  And first:
  1889. # Protect against being on the right side of a sed subst in config.status.
  1890. # Protect against being in an unquoted here document in config.status.
  1891. rm -f conftest.vals
  1892. cat > conftest.hdr <<\EOF
  1893. s/[\\&%]/\\&/g
  1894. s%[\\$`]%\\&%g
  1895. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1896. s%ac_d%ac_u%gp
  1897. s%ac_u%ac_e%gp
  1898. EOF
  1899. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1900. rm -f conftest.hdr
  1901.  
  1902. # This sed command replaces #undef with comments.  This is necessary, for
  1903. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1904. # on some systems where configure will not decide to define it.
  1905. cat >> conftest.vals <<\EOF
  1906. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1907. EOF
  1908.  
  1909. # Break up conftest.vals because some shells have a limit on
  1910. # the size of here documents, and old seds have small limits too.
  1911. # Maximum number of lines to put in a single here document.
  1912. ac_max_here_lines=12
  1913.  
  1914. rm -f conftest.tail
  1915. while :
  1916. do
  1917.   ac_lines=`grep -c . conftest.vals`
  1918.   # grep -c gives empty output for an empty file on some AIX systems.
  1919.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1920.   # Write a limited-size here document to conftest.frag.
  1921.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1922.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1923.   echo 'CEOF
  1924.   sed -f conftest.frag conftest.in > conftest.out
  1925.   rm -f conftest.in
  1926.   mv conftest.out conftest.in
  1927. ' >> $CONFIG_STATUS
  1928.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1929.   rm -f conftest.vals
  1930.   mv conftest.tail conftest.vals
  1931. done
  1932. rm -f conftest.vals
  1933.  
  1934. cat >> $CONFIG_STATUS <<\EOF
  1935.   rm -f conftest.frag conftest.h
  1936.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1937.   cat conftest.in >> conftest.h
  1938.   rm -f conftest.in
  1939.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1940.     echo "$ac_file is unchanged"
  1941.     rm -f conftest.h
  1942.   else
  1943.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1944.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1945.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1946.       # The file is in a subdirectory.
  1947.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1948.     fi
  1949.     rm -f $ac_file
  1950.     mv conftest.h $ac_file
  1951.   fi
  1952. fi; done
  1953.  
  1954.  
  1955.  
  1956. exit 0
  1957. EOF
  1958. chmod +x $CONFIG_STATUS
  1959. rm -f CONFIG.STATUS.old
  1960. rm -fr confdefs* $ac_clean_files
  1961. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1962.  
  1963.