home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / sharutils-4.1-src.tgz / tar.out / fsf / sharutils / configure < prev    next >
Text File  |  1996-10-01  |  71KB  |  2,514 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --disable-uucode        disable installation of uuencode and uudecode"
  16. ac_help="$ac_help
  17.   --with-dmalloc          use dmalloc, as in dmalloc.tar.gz from
  18.                           @/ftp.antaire.com:antaire/src/dmalloc."
  19.  
  20. # Initialize some variables set by options.
  21. # The variables have the same names as the options, with
  22. # dashes changed to underlines.
  23. build=NONE
  24. cache_file=./config.cache
  25. exec_prefix=NONE
  26. host=NONE
  27. no_create=
  28. nonopt=NONE
  29. no_recursion=
  30. prefix=NONE
  31. program_prefix=NONE
  32. program_suffix=NONE
  33. program_transform_name=s,x,x,
  34. silent=
  35. site=
  36. srcdir=
  37. target=NONE
  38. verbose=
  39. x_includes=NONE
  40. x_libraries=NONE
  41. bindir='${exec_prefix}/bin'
  42. sbindir='${exec_prefix}/sbin'
  43. libexecdir='${exec_prefix}/libexec'
  44. datadir='${prefix}/share'
  45. sysconfdir='${prefix}/etc'
  46. sharedstatedir='${prefix}/com'
  47. localstatedir='${prefix}/var'
  48. libdir='${exec_prefix}/lib'
  49. includedir='${prefix}/include'
  50. oldincludedir='/usr/include'
  51. infodir='${prefix}/info'
  52. guidedir='${prefix}/guide'
  53. psdir='${prefix}/ps'
  54. dvidir='${prefix}/dvi'
  55. mandir='${prefix}/man'
  56.  
  57. # Initialize some other variables.
  58. subdirs=
  59. MFLAGS= MAKEFLAGS=
  60.  
  61. ac_prev=
  62. for ac_option
  63. do
  64.  
  65.   # If the previous option needs an argument, assign it.
  66.   if test -n "$ac_prev"; then
  67.     eval "$ac_prev=\$ac_option"
  68.     ac_prev=
  69.     continue
  70.   fi
  71.  
  72.   case "$ac_option" in
  73.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  74.   *) ac_optarg= ;;
  75.   esac
  76.  
  77.   # Accept the important Cygnus configure options, so we can diagnose typos.
  78.  
  79.   case "$ac_option" in
  80.  
  81.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  82.     ac_prev=bindir ;;
  83.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  84.     bindir="$ac_optarg" ;;
  85.  
  86.   -build | --build | --buil | --bui | --bu)
  87.     ac_prev=build ;;
  88.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  89.     build="$ac_optarg" ;;
  90.  
  91.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  92.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  93.     ac_prev=cache_file ;;
  94.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  95.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  96.     cache_file="$ac_optarg" ;;
  97.  
  98.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  99.     ac_prev=datadir ;;
  100.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  101.   | --da=*)
  102.     datadir="$ac_optarg" ;;
  103.  
  104.   -disable-* | --disable-*)
  105.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  106.     # Reject names that are not valid shell variable names.
  107.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  108.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  109.     fi
  110.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  111.     eval "enable_${ac_feature}=no" ;;
  112.  
  113.   -enable-* | --enable-*)
  114.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  115.     # Reject names that are not valid shell variable names.
  116.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  117.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  118.     fi
  119.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  120.     case "$ac_option" in
  121.       *=*) ;;
  122.       *) ac_optarg=yes ;;
  123.     esac
  124.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  125.  
  126.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  127.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  128.   | --exec | --exe | --ex)
  129.     ac_prev=exec_prefix ;;
  130.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  131.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  132.   | --exec=* | --exe=* | --ex=*)
  133.     exec_prefix="$ac_optarg" ;;
  134.  
  135.   -gas | --gas | --ga | --g)
  136.     # Obsolete; use --with-gas.
  137.     with_gas=yes ;;
  138.  
  139.   -help | --help | --hel | --he)
  140.     # Omit some internal or obsolete options to make the list less imposing.
  141.     # This message is too long to be a string in the A/UX 3.1 sh.
  142.     cat << EOF
  143. Usage: configure [options] [host]
  144. Options: [defaults in brackets after descriptions]
  145. Configuration:
  146.   --cache-file=FILE       cache test results in FILE
  147.   --help                  print this message
  148.   --no-create             do not create output files
  149.   --quiet, --silent       do not print \`checking...' messages
  150.   --version               print the version of autoconf that created configure
  151. Directory and file names:
  152.   --prefix=PREFIX         install architecture-independent files in PREFIX
  153.                           [$ac_default_prefix]
  154.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  155.                           [same as prefix]
  156.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  157.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  158.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  159.   --datadir=DIR           read-only architecture-independent data in DIR
  160.                           [PREFIX/share]
  161.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  162.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  163.                           [PREFIX/com]
  164.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  165.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  166.   --includedir=DIR        C header files in DIR [PREFIX/include]
  167.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  168.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  169.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  170.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  171.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  172.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  173.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  174.   --program-prefix=PREFIX prepend PREFIX to installed program names
  175.   --program-suffix=SUFFIX append SUFFIX to installed program names
  176.   --program-transform-name=PROGRAM
  177.                           run sed PROGRAM on installed program names
  178. EOF
  179.     cat << EOF
  180. Host type:
  181.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  182.   --host=HOST             configure for HOST [guessed]
  183.   --target=TARGET         configure for TARGET [TARGET=HOST]
  184. Features and packages:
  185.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  186.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  187.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  188.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  189.   --x-includes=DIR        X include files are in DIR
  190.   --x-libraries=DIR       X library files are in DIR
  191. EOF
  192.     if test -n "$ac_help"; then
  193.       echo "--enable and --with options recognized:$ac_help"
  194.     fi
  195.     exit 0 ;;
  196.  
  197.   -host | --host | --hos | --ho)
  198.     ac_prev=host ;;
  199.   -host=* | --host=* | --hos=* | --ho=*)
  200.     host="$ac_optarg" ;;
  201.  
  202.   -includedir | --includedir | --includedi | --included | --include \
  203.   | --includ | --inclu | --incl | --inc)
  204.     ac_prev=includedir ;;
  205.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  206.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  207.     includedir="$ac_optarg" ;;
  208.  
  209.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  210.     ac_prev=infodir ;;
  211.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  212.     infodir="$ac_optarg" ;;
  213.  
  214.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  215.    ac_prev=guidedir ;;
  216.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  217.  
  218.  -psdir | --psdir | --psdi | --psd | --ps)
  219.    ac_prev=psdir ;;
  220.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  221.  
  222.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  223.    ac_prev=dvidir ;;
  224.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  225.  
  226.   -libdir | --libdir | --libdi | --libd)
  227.     ac_prev=libdir ;;
  228.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  229.     libdir="$ac_optarg" ;;
  230.  
  231.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  232.   | --libexe | --libex | --libe)
  233.     ac_prev=libexecdir ;;
  234.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  235.   | --libexe=* | --libex=* | --libe=*)
  236.     libexecdir="$ac_optarg" ;;
  237.  
  238.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  239.   | --localstate | --localstat | --localsta | --localst \
  240.   | --locals | --local | --loca | --loc | --lo)
  241.     ac_prev=localstatedir ;;
  242.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  243.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  244.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  245.     localstatedir="$ac_optarg" ;;
  246.  
  247.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  248.     ac_prev=mandir ;;
  249.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  250.     mandir="$ac_optarg" ;;
  251.  
  252.   -nfp | --nfp | --nf)
  253.     # Obsolete; use --without-fp.
  254.     with_fp=no ;;
  255.  
  256.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  257.   | --no-cr | --no-c)
  258.     no_create=yes ;;
  259.  
  260.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  261.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  262.     no_recursion=yes ;;
  263.  
  264.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  265.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  266.   | --oldin | --oldi | --old | --ol | --o)
  267.     ac_prev=oldincludedir ;;
  268.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  269.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  270.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  271.     oldincludedir="$ac_optarg" ;;
  272.  
  273.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  274.     ac_prev=prefix ;;
  275.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  276.     prefix="$ac_optarg" ;;
  277.  
  278.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  279.   | --program-pre | --program-pr | --program-p)
  280.     ac_prev=program_prefix ;;
  281.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  282.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  283.     program_prefix="$ac_optarg" ;;
  284.  
  285.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  286.   | --program-suf | --program-su | --program-s)
  287.     ac_prev=program_suffix ;;
  288.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  289.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  290.     program_suffix="$ac_optarg" ;;
  291.  
  292.   -program-transform-name | --program-transform-name \
  293.   | --program-transform-nam | --program-transform-na \
  294.   | --program-transform-n | --program-transform- \
  295.   | --program-transform | --program-transfor \
  296.   | --program-transfo | --program-transf \
  297.   | --program-trans | --program-tran \
  298.   | --progr-tra | --program-tr | --program-t)
  299.     ac_prev=program_transform_name ;;
  300.   -program-transform-name=* | --program-transform-name=* \
  301.   | --program-transform-nam=* | --program-transform-na=* \
  302.   | --program-transform-n=* | --program-transform-=* \
  303.   | --program-transform=* | --program-transfor=* \
  304.   | --program-transfo=* | --program-transf=* \
  305.   | --program-trans=* | --program-tran=* \
  306.   | --progr-tra=* | --program-tr=* | --program-t=*)
  307.     program_transform_name="$ac_optarg" ;;
  308.  
  309.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  310.   | -silent | --silent | --silen | --sile | --sil)
  311.     silent=yes ;;
  312.  
  313.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  314.     ac_prev=sbindir ;;
  315.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  316.   | --sbi=* | --sb=*)
  317.     sbindir="$ac_optarg" ;;
  318.  
  319.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  320.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  321.   | --sharedst | --shareds | --shared | --share | --shar \
  322.   | --sha | --sh)
  323.     ac_prev=sharedstatedir ;;
  324.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  325.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  326.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  327.   | --sha=* | --sh=*)
  328.     sharedstatedir="$ac_optarg" ;;
  329.  
  330.   -site | --site | --sit)
  331.     ac_prev=site ;;
  332.   -site=* | --site=* | --sit=*)
  333.     site="$ac_optarg" ;;
  334.  
  335.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  336.     ac_prev=srcdir ;;
  337.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  338.     srcdir="$ac_optarg" ;;
  339.  
  340.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  341.   | --syscon | --sysco | --sysc | --sys | --sy)
  342.     ac_prev=sysconfdir ;;
  343.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  344.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  345.     sysconfdir="$ac_optarg" ;;
  346.  
  347.   -target | --target | --targe | --targ | --tar | --ta | --t)
  348.     ac_prev=target ;;
  349.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  350.     target="$ac_optarg" ;;
  351.  
  352.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  353.     verbose=yes ;;
  354.  
  355.   -version | --version | --versio | --versi | --vers)
  356.     echo "configure generated by autoconf version 2.10"
  357.     exit 0 ;;
  358.  
  359.   -with-* | --with-*)
  360.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  361.     # Reject names that are not valid shell variable names.
  362.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  363.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  364.     fi
  365.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  366.     case "$ac_option" in
  367.       *=*) ;;
  368.       *) ac_optarg=yes ;;
  369.     esac
  370.     eval "with_${ac_package}='$ac_optarg'" ;;
  371.  
  372.   -without-* | --without-*)
  373.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  374.     # Reject names that are not valid shell variable names.
  375.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  376.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  377.     fi
  378.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  379.     eval "with_${ac_package}=no" ;;
  380.  
  381.   --x)
  382.     # Obsolete; use --with-x.
  383.     with_x=yes ;;
  384.  
  385.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  386.   | --x-incl | --x-inc | --x-in | --x-i)
  387.     ac_prev=x_includes ;;
  388.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  389.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  390.     x_includes="$ac_optarg" ;;
  391.  
  392.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  393.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  394.     ac_prev=x_libraries ;;
  395.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  396.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  397.     x_libraries="$ac_optarg" ;;
  398.  
  399.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  400.     ;;
  401.  
  402.   *)
  403.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  404.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  405.     fi
  406.     if test "x$nonopt" != xNONE; then
  407.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  408.     fi
  409.     nonopt="$ac_option"
  410.     ;;
  411.  
  412.   esac
  413. done
  414.  
  415. if test -n "$ac_prev"; then
  416.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  417. fi
  418.  
  419. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  420.  
  421. # File descriptor usage:
  422. # 0 standard input
  423. # 1 file creation
  424. # 2 errors and warnings
  425. # 3 some systems may open it to /dev/tty
  426. # 4 used on the Kubota Titan
  427. # 6 checking for... messages and results
  428. # 5 compiler messages saved in config.log
  429. if test "$silent" = yes; then
  430.   exec 6>/dev/null
  431. else
  432.   exec 6>&1
  433. fi
  434. exec 5>./config.log
  435.  
  436. echo "\
  437. This file contains any messages produced by compilers while
  438. running configure, to aid debugging if configure makes a mistake.
  439. " 1>&5
  440.  
  441. # Strip out --no-create and --no-recursion so they do not pile up.
  442. # Also quote any args containing shell metacharacters.
  443. ac_configure_args=
  444. for ac_arg
  445. do
  446.   case "$ac_arg" in
  447.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  448.   | --no-cr | --no-c) ;;
  449.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  450.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  451.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  452.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  453.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  454.   esac
  455. done
  456.  
  457. # NLS nuisances.
  458. # Only set LANG and LC_ALL to C if already set.
  459. # These must not be set unconditionally because not all systems understand
  460. # e.g. LANG=C (notably SCO).
  461. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  462. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  463.  
  464. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  465. rm -rf conftest* confdefs.h
  466. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  467. echo > confdefs.h
  468.  
  469. # A filename unique to this package, relative to the directory that
  470. # configure is in, which we can look for to find out if srcdir is correct.
  471. ac_unique_file=shar.c
  472.  
  473. # Find the source files, if location was not specified.
  474. if test -z "$srcdir"; then
  475.   ac_srcdir_defaulted=yes
  476.   # Try the directory containing this script, then its parent.
  477.   ac_prog=$0
  478.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  479.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  480.   srcdir=$ac_confdir
  481.   if test ! -r $srcdir/$ac_unique_file; then
  482.     srcdir=..
  483.   fi
  484. else
  485.   ac_srcdir_defaulted=no
  486. fi
  487. if test ! -r $srcdir/$ac_unique_file; then
  488.   if test "$ac_srcdir_defaulted" = yes; then
  489.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  490.   else
  491.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  492.   fi
  493. fi
  494. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  495.  
  496. # Prefer explicitly selected file to automatically selected ones.
  497. if test -z "$CONFIG_SITE"; then
  498.   if test "x$prefix" != xNONE; then
  499.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  500.   else
  501.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  502.   fi
  503. fi
  504. for ac_site_file in $CONFIG_SITE; do
  505.   if test -r "$ac_site_file"; then
  506.     echo "loading site script $ac_site_file"
  507.     . "$ac_site_file"
  508.   fi
  509. done
  510.  
  511. if test -r "$cache_file"; then
  512.   echo "loading cache $cache_file"
  513.   . $cache_file
  514. else
  515.   echo "creating cache $cache_file"
  516.   > $cache_file
  517. fi
  518.  
  519. ac_ext=c
  520. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  521. ac_cpp='$CPP $CPPFLAGS'
  522. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  523. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  524.  
  525. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  526.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  527.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  528.     ac_n= ac_c='
  529. ' ac_t='    '
  530.   else
  531.     ac_n=-n ac_c= ac_t=
  532.   fi
  533. else
  534.   ac_n= ac_c='\c' ac_t=
  535. fi
  536.  
  537.  
  538.  
  539. if test "$program_transform_name" = s,x,x,; then
  540.   program_transform_name=
  541. else
  542.   # Double any \ or $.  echo might interpret backslashes.
  543.   cat <<\EOF_SED > conftestsed
  544. s,\\,\\\\,g; s,\$,$$,g
  545. EOF_SED
  546.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  547.   rm -f conftestsed
  548. fi
  549. test "$program_prefix" != NONE &&
  550.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  551. # Use a double $ so make ignores it.
  552. test "$program_suffix" != NONE &&
  553.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  554.  
  555. # sed with no file args requires a program.
  556. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  557.  
  558.  
  559. PRODUCT=sharutils
  560. VERSION=4.1
  561. PROGRAMS="shar unshar"
  562. cat >> confdefs.h <<EOF
  563. #define PRODUCT "$PRODUCT"
  564. EOF
  565.  
  566. cat >> confdefs.h <<EOF
  567. #define VERSION "$VERSION"
  568. EOF
  569.  
  570.  
  571.  
  572.  
  573.  
  574. # Extract the first word of "gcc", so it can be a program name with args.
  575. set dummy gcc; ac_word=$2
  576. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  577. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  578.   echo $ac_n "(cached) $ac_c" 1>&6
  579. else
  580.   if test -n "$CC"; then
  581.   ac_cv_prog_CC="$CC" # Let the user override the test.
  582. else
  583.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  584.   for ac_dir in $PATH; do
  585.     test -z "$ac_dir" && ac_dir=.
  586.     if test -f $ac_dir/$ac_word; then
  587.       ac_cv_prog_CC="gcc"
  588.       break
  589.     fi
  590.   done
  591.   IFS="$ac_save_ifs"
  592. fi
  593. fi
  594. CC="$ac_cv_prog_CC"
  595. if test -n "$CC"; then
  596.   echo "$ac_t""$CC" 1>&6
  597. else
  598.   echo "$ac_t""no" 1>&6
  599. fi
  600.  
  601. if test -z "$CC"; then
  602.   # Extract the first word of "cc", so it can be a program name with args.
  603. set dummy cc; ac_word=$2
  604. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  605. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  606.   echo $ac_n "(cached) $ac_c" 1>&6
  607. else
  608.   if test -n "$CC"; then
  609.   ac_cv_prog_CC="$CC" # Let the user override the test.
  610. else
  611.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  612.   ac_prog_rejected=no
  613.   for ac_dir in $PATH; do
  614.     test -z "$ac_dir" && ac_dir=.
  615.     if test -f $ac_dir/$ac_word; then
  616.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  617.         ac_prog_rejected=yes
  618.     continue
  619.       fi
  620.       ac_cv_prog_CC="cc"
  621.       break
  622.     fi
  623.   done
  624.   IFS="$ac_save_ifs"
  625. if test $ac_prog_rejected = yes; then
  626.   # We found a bogon in the path, so make sure we never use it.
  627.   set dummy $ac_cv_prog_CC
  628.   shift
  629.   if test $# -gt 0; then
  630.     # We chose a different compiler from the bogus one.
  631.     # However, it has the same basename, so the bogon will be chosen
  632.     # first if we set CC to just the basename; use the full file name.
  633.     shift
  634.     set dummy "$ac_dir/$ac_word" "$@"
  635.     shift
  636.     ac_cv_prog_CC="$@"
  637.   fi
  638. fi
  639. fi
  640. fi
  641. CC="$ac_cv_prog_CC"
  642. if test -n "$CC"; then
  643.   echo "$ac_t""$CC" 1>&6
  644. else
  645.   echo "$ac_t""no" 1>&6
  646. fi
  647.  
  648.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  649. fi
  650.  
  651. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  652. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  653.   echo $ac_n "(cached) $ac_c" 1>&6
  654. else
  655.   cat > conftest.c <<EOF
  656. #ifdef __GNUC__
  657.   yes;
  658. #endif
  659. EOF
  660. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  661.   ac_cv_prog_gcc=yes
  662. else
  663.   ac_cv_prog_gcc=no
  664. fi
  665. fi
  666.  
  667. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  668. if test $ac_cv_prog_gcc = yes; then
  669.   GCC=yes
  670.   if test "${CFLAGS+set}" != set; then
  671.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  672. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  673.   echo $ac_n "(cached) $ac_c" 1>&6
  674. else
  675.   echo 'void f(){}' > conftest.c
  676. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  677.   ac_cv_prog_gcc_g=yes
  678. else
  679.   ac_cv_prog_gcc_g=no
  680. fi
  681. rm -f conftest*
  682.  
  683. fi
  684.  
  685. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  686.     if test $ac_cv_prog_gcc_g = yes; then
  687.       CFLAGS="-g -O2"
  688.     else
  689.       CFLAGS="-O2"
  690.     fi
  691.   fi
  692. else
  693.   GCC=
  694.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  695. fi
  696.  
  697. ac_aux_dir=
  698. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  699.   if test -f $ac_dir/install-sh; then
  700.     ac_aux_dir=$ac_dir
  701.     ac_install_sh="$ac_aux_dir/install-sh -c"
  702.     break
  703.   elif test -f $ac_dir/install.sh; then
  704.     ac_aux_dir=$ac_dir
  705.     ac_install_sh="$ac_aux_dir/install.sh -c"
  706.     break
  707.   fi
  708. done
  709. if test -z "$ac_aux_dir"; then
  710.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  711. fi
  712. ac_config_guess=$ac_aux_dir/config.guess
  713. ac_config_sub=$ac_aux_dir/config.sub
  714. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  715.  
  716. # Find a good install program.  We prefer a C program (faster),
  717. # so one script is as good as another.  But avoid the broken or
  718. # incompatible versions:
  719. # SysV /etc/install, /usr/sbin/install
  720. # SunOS /usr/etc/install
  721. # IRIX /sbin/install
  722. # AIX /bin/install
  723. # AmigaOS /c/install
  724. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  725. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  726. # ./install, which can be erroneously created by make from ./install.sh.
  727. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  728. if test -z "$INSTALL"; then
  729. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  730.   echo $ac_n "(cached) $ac_c" 1>&6
  731. else
  732.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  733.   for ac_dir in $PATH; do
  734.     # Account for people who put trailing slashes in PATH elements.
  735.     case "$ac_dir/" in
  736.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  737.     *)
  738.       # OSF1 and SCO ODT 3.0 have their own names for install.
  739.       for ac_prog in ginstall installbsd scoinst install; do
  740.         if test -f $ac_dir/$ac_prog; then
  741.       if test $ac_prog = install &&
  742.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  743.         # AIX install.  It has an incompatible calling convention.
  744.         # OSF/1 installbsd also uses dspmsg, but is usable.
  745.         :
  746.       else
  747.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  748.         break 2
  749.       fi
  750.     fi
  751.       done
  752.       ;;
  753.     esac
  754.   done
  755.   IFS="$ac_save_ifs"
  756.  
  757. fi
  758.   if test "${ac_cv_path_install+set}" = set; then
  759.     INSTALL="$ac_cv_path_install"
  760.   else
  761.     # As a last resort, use the slow shell script.  We don't cache a
  762.     # path for INSTALL within a source directory, because that will
  763.     # break other packages using the cache if that directory is
  764.     # removed, or if the path is relative.
  765.     INSTALL="$ac_install_sh"
  766.   fi
  767. fi
  768. echo "$ac_t""$INSTALL" 1>&6
  769.  
  770. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  771. # It thinks the first close brace ends the variable substitution.
  772. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  773.  
  774. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  775.  
  776. # Extract the first word of "ranlib", so it can be a program name with args.
  777. set dummy ranlib; ac_word=$2
  778. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  779. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  780.   echo $ac_n "(cached) $ac_c" 1>&6
  781. else
  782.   if test -n "$RANLIB"; then
  783.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  784. else
  785.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  786.   for ac_dir in $PATH; do
  787.     test -z "$ac_dir" && ac_dir=.
  788.     if test -f $ac_dir/$ac_word; then
  789.       ac_cv_prog_RANLIB="ranlib"
  790.       break
  791.     fi
  792.   done
  793.   IFS="$ac_save_ifs"
  794.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  795. fi
  796. fi
  797. RANLIB="$ac_cv_prog_RANLIB"
  798. if test -n "$RANLIB"; then
  799.   echo "$ac_t""$RANLIB" 1>&6
  800. else
  801.   echo "$ac_t""no" 1>&6
  802. fi
  803.  
  804.  
  805. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  806. # On Suns, sometimes $CPP names a directory.
  807. if test -n "$CPP" && test -d "$CPP"; then
  808.   CPP=
  809. fi
  810. if test -z "$CPP"; then
  811. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  812.   echo $ac_n "(cached) $ac_c" 1>&6
  813. else
  814.     # This must be in double quotes, not single quotes, because CPP may get
  815.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  816.   CPP="${CC-cc} -E"
  817.   # On the NeXT, cc -E runs the code through the compiler's parser,
  818.   # not just through cpp.
  819.   cat > conftest.$ac_ext <<EOF
  820. #line 821 "configure"
  821. #include "confdefs.h"
  822. #include <assert.h>
  823. Syntax Error
  824. EOF
  825. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  826. { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  827. ac_err=`grep -v '^ *+' conftest.out`
  828. if test -z "$ac_err"; then
  829.   :
  830. else
  831.   echo "$ac_err" >&5
  832.   rm -rf conftest*
  833.   CPP="${CC-cc} -E -traditional-cpp"
  834.   cat > conftest.$ac_ext <<EOF
  835. #line 836 "configure"
  836. #include "confdefs.h"
  837. #include <assert.h>
  838. Syntax Error
  839. EOF
  840. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  841. { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  842. ac_err=`grep -v '^ *+' conftest.out`
  843. if test -z "$ac_err"; then
  844.   :
  845. else
  846.   echo "$ac_err" >&5
  847.   rm -rf conftest*
  848.   CPP=/lib/cpp
  849. fi
  850. rm -f conftest*
  851. fi
  852. rm -f conftest*
  853.   ac_cv_prog_CPP="$CPP"
  854. fi
  855.   CPP="$ac_cv_prog_CPP"
  856. else
  857.   ac_cv_prog_CPP="$CPP"
  858. fi
  859. echo "$ac_t""$CPP" 1>&6
  860.  
  861. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  862. cat > conftest.$ac_ext <<EOF
  863. #line 864 "configure"
  864. #include "confdefs.h"
  865. #ifdef _AIX
  866.   yes
  867. #endif
  868.  
  869. EOF
  870. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  871.   egrep "yes" >/dev/null 2>&1; then
  872.   rm -rf conftest*
  873.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  874. #define _ALL_SOURCE 1
  875. EOF
  876.  
  877. else
  878.   rm -rf conftest*
  879.   echo "$ac_t""no" 1>&6
  880. fi
  881. rm -f conftest*
  882.  
  883.  
  884. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  885. if test -d /etc/conf/kconfig.d &&
  886.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  887. then
  888.   echo "$ac_t""yes" 1>&6
  889.   ISC=yes # If later tests want to check for ISC.
  890.   cat >> confdefs.h <<\EOF
  891. #define _POSIX_SOURCE 1
  892. EOF
  893.  
  894.   if test "$GCC" = yes; then
  895.     CC="$CC -posix"
  896.   else
  897.     CC="$CC -Xp"
  898.   fi
  899. else
  900.   echo "$ac_t""no" 1>&6
  901.   ISC=
  902. fi
  903.  
  904. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  905. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  906. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  907.   echo $ac_n "(cached) $ac_c" 1>&6
  908. else
  909.   cat > conftest.$ac_ext <<EOF
  910. #line 911 "configure"
  911. #include "confdefs.h"
  912. #include <minix/config.h>
  913. EOF
  914. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  915. { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  916. ac_err=`grep -v '^ *+' conftest.out`
  917. if test -z "$ac_err"; then
  918.   rm -rf conftest*
  919.   eval "ac_cv_header_$ac_safe=yes"
  920. else
  921.   echo "$ac_err" >&5
  922.   rm -rf conftest*
  923.   eval "ac_cv_header_$ac_safe=no"
  924. fi
  925. rm -f conftest*
  926. fi
  927. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  928.   echo "$ac_t""yes" 1>&6
  929.   MINIX=yes
  930. else
  931.   echo "$ac_t""no" 1>&6
  932. MINIX=
  933. fi
  934.  
  935. if test "$MINIX" = yes; then
  936.   cat >> confdefs.h <<\EOF
  937. #define _POSIX_SOURCE 1
  938. EOF
  939.  
  940.   cat >> confdefs.h <<\EOF
  941. #define _POSIX_1_SOURCE 2
  942. EOF
  943.  
  944.   cat >> confdefs.h <<\EOF
  945. #define _MINIX 1
  946. EOF
  947.  
  948. fi
  949.  
  950. # If we cannot run a trivial program, we must be cross compiling.
  951. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  952. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  953.   echo $ac_n "(cached) $ac_c" 1>&6
  954. else
  955.   if test "$cross_compiling" = yes; then
  956.   ac_cv_c_cross=yes
  957. else
  958. cat > conftest.$ac_ext <<EOF
  959. #line 960 "configure"
  960. #include "confdefs.h"
  961. main(){return(0);}
  962. EOF
  963. { (eval echo configure:964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  964. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  965.   ac_cv_c_cross=no
  966. else
  967.   ac_cv_c_cross=yes
  968. fi
  969. fi
  970. rm -fr conftest*
  971. fi
  972.  
  973. echo "$ac_t""$ac_cv_c_cross" 1>&6
  974. cross_compiling=$ac_cv_c_cross
  975.  
  976. if test $cross_compiling = no; then
  977.   echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
  978. if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  979.   echo $ac_n "(cached) $ac_c" 1>&6
  980. else
  981.   if test "$GCC" = yes; then
  982.   # GCC predefines this symbol on systems where it applies.
  983. cat > conftest.$ac_ext <<EOF
  984. #line 985 "configure"
  985. #include "confdefs.h"
  986. #ifdef __CHAR_UNSIGNED__
  987.   yes
  988. #endif
  989.  
  990. EOF
  991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  992.   egrep "yes" >/dev/null 2>&1; then
  993.   rm -rf conftest*
  994.   ac_cv_c_char_unsigned=yes
  995. else
  996.   rm -rf conftest*
  997.   ac_cv_c_char_unsigned=no
  998. fi
  999. rm -f conftest*
  1000.  
  1001. else
  1002. if test "$cross_compiling" = yes; then
  1003.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1004. else
  1005. cat > conftest.$ac_ext <<EOF
  1006. #line 1007 "configure"
  1007. #include "confdefs.h"
  1008. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1009. #if !defined(__STDC__) || __STDC__ != 1
  1010. #define volatile
  1011. #endif
  1012. main() {
  1013.   volatile char c = 255; exit(c < 0);
  1014. }
  1015. EOF
  1016. { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1017. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1018.   ac_cv_c_char_unsigned=yes
  1019. else
  1020.   ac_cv_c_char_unsigned=no
  1021. fi
  1022. fi
  1023. rm -fr conftest*
  1024. fi
  1025. fi
  1026.  
  1027. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  1028. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  1029.   cat >> confdefs.h <<\EOF
  1030. #define __CHAR_UNSIGNED__ 1
  1031. EOF
  1032.  
  1033. fi
  1034.  
  1035. fi
  1036. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1037. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  1038.   echo $ac_n "(cached) $ac_c" 1>&6
  1039. else
  1040.   ac_cv_prog_cc_stdc=no
  1041. ac_save_CFLAGS="$CFLAGS"
  1042. # Don't try gcc -ansi; that turns off useful extensions and
  1043. # breaks some systems' header files.
  1044. # AIX            -qlanglvl=ansi
  1045. # Ultrix and OSF/1    -std1
  1046. # HP-UX            -Aa -D_HPUX_SOURCE
  1047. # SVR4            -Xc
  1048. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  1049. do
  1050.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  1051.   cat > conftest.$ac_ext <<EOF
  1052. #line 1053 "configure"
  1053. #include "confdefs.h"
  1054. #if !defined(__STDC__) || __STDC__ != 1
  1055. choke me
  1056. #endif    
  1057.  
  1058. int main() { return 0; }
  1059. int t() {
  1060. int test (int i, double x);
  1061. struct s1 {int (*f) (int a);};
  1062. struct s2 {int (*f) (double a);};
  1063. ; return 0; }
  1064. EOF
  1065. if { (eval echo configure:1066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1066.   rm -rf conftest*
  1067.   ac_cv_prog_cc_stdc="$ac_arg"; break
  1068. fi
  1069. rm -f conftest*
  1070.  
  1071. done
  1072. CFLAGS="$ac_save_CFLAGS"
  1073.  
  1074. fi
  1075.  
  1076. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  1077. case "x$ac_cv_prog_cc_stdc" in
  1078.   x|xno) ;;
  1079.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  1080. esac
  1081.  
  1082.  
  1083. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1084. if test "$ac_cv_prog_cc_stdc" != no; then
  1085.   echo "$ac_t""yes" 1>&6
  1086.   cat >> confdefs.h <<\EOF
  1087. #define PROTOTYPES 1
  1088. EOF
  1089.  
  1090.   U= ANSI2KNR=
  1091. else
  1092.   echo "$ac_t""no" 1>&6
  1093.   U=_ ANSI2KNR=ansi2knr
  1094. fi
  1095.  
  1096. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1097. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1098.   echo $ac_n "(cached) $ac_c" 1>&6
  1099. else
  1100.   cat > conftest.$ac_ext <<EOF
  1101. #line 1102 "configure"
  1102. #include "confdefs.h"
  1103.  
  1104. int main() { return 0; }
  1105. int t() {
  1106.  
  1107. /* Ultrix mips cc rejects this.  */
  1108. typedef int charset[2]; const charset x;
  1109. /* SunOS 4.1.1 cc rejects this.  */
  1110. char const *const *ccp;
  1111. char **p;
  1112. /* NEC SVR4.0.2 mips cc rejects this.  */
  1113. struct point {int x, y;};
  1114. static struct point const zero = {0,0};
  1115. /* AIX XL C 1.02.0.0 rejects this.
  1116.    It does not let you subtract one const X* pointer from another in an arm
  1117.    of an if-expression whose if-part is not a constant expression */
  1118. const char *g = "string";
  1119. ccp = &g + (g ? g-g : 0);
  1120. /* HPUX 7.0 cc rejects these. */
  1121. ++ccp;
  1122. p = (char**) ccp;
  1123. ccp = (char const *const *) p;
  1124. { /* SCO 3.2v4 cc rejects this.  */
  1125.   char *t;
  1126.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1127.  
  1128.   *t++ = 0;
  1129. }
  1130. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1131.   int x[] = {25, 17};
  1132.   const int *foo = &x[0];
  1133.   ++foo;
  1134. }
  1135. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1136.   typedef const int *iptr;
  1137.   iptr p = 0;
  1138.   ++p;
  1139. }
  1140. { /* AIX XL C 1.02.0.0 rejects this saying
  1141.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1142.   struct s { int j; const int *ap[3]; };
  1143.   struct s *b; b->j = 5;
  1144. }
  1145. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1146.   const int foo = 10;
  1147. }
  1148.  
  1149. ; return 0; }
  1150. EOF
  1151. if { (eval echo configure:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1152.   rm -rf conftest*
  1153.   ac_cv_c_const=yes
  1154. else
  1155.   rm -rf conftest*
  1156.   ac_cv_c_const=no
  1157. fi
  1158. rm -f conftest*
  1159.  
  1160. fi
  1161.  
  1162. echo "$ac_t""$ac_cv_c_const" 1>&6
  1163. if test $ac_cv_c_const = no; then
  1164.   cat >> confdefs.h <<\EOF
  1165. #define const 
  1166. EOF
  1167.  
  1168. fi
  1169.  
  1170.  
  1171. for ac_hdr in limits.h memory.h string.h sys/wait.h unistd.h
  1172. do
  1173. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1174. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1175. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1176.   echo $ac_n "(cached) $ac_c" 1>&6
  1177. else
  1178.   cat > conftest.$ac_ext <<EOF
  1179. #line 1180 "configure"
  1180. #include "confdefs.h"
  1181. #include <$ac_hdr>
  1182. EOF
  1183. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1184. { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1185. ac_err=`grep -v '^ *+' conftest.out`
  1186. if test -z "$ac_err"; then
  1187.   rm -rf conftest*
  1188.   eval "ac_cv_header_$ac_safe=yes"
  1189. else
  1190.   echo "$ac_err" >&5
  1191.   rm -rf conftest*
  1192.   eval "ac_cv_header_$ac_safe=no"
  1193. fi
  1194. rm -f conftest*
  1195. fi
  1196. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1197.   echo "$ac_t""yes" 1>&6
  1198.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1199.   cat >> confdefs.h <<EOF
  1200. #define $ac_tr_hdr 1
  1201. EOF
  1202.  
  1203. else
  1204.   echo "$ac_t""no" 1>&6
  1205. fi
  1206. done
  1207.  
  1208. ac_header_dirent=no
  1209. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1210. do
  1211. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1212. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1213. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1214.   echo $ac_n "(cached) $ac_c" 1>&6
  1215. else
  1216.   cat > conftest.$ac_ext <<EOF
  1217. #line 1218 "configure"
  1218. #include "confdefs.h"
  1219. #include <sys/types.h>
  1220. #include <$ac_hdr>
  1221. int main() { return 0; }
  1222. int t() {
  1223. DIR *dirp = 0;
  1224. ; return 0; }
  1225. EOF
  1226. if { (eval echo configure:1227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1227.   rm -rf conftest*
  1228.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1229. else
  1230.   rm -rf conftest*
  1231.   eval "ac_cv_header_dirent_$ac_safe=no"
  1232. fi
  1233. rm -f conftest*
  1234.  
  1235. fi
  1236. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1237.   echo "$ac_t""yes" 1>&6
  1238.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1239.   cat >> confdefs.h <<EOF
  1240. #define $ac_tr_hdr 1
  1241. EOF
  1242.  ac_header_dirent=$ac_hdr; break
  1243. else
  1244.   echo "$ac_t""no" 1>&6
  1245. fi
  1246. done
  1247. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1248. if test $ac_header_dirent = dirent.h; then
  1249. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1250. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1251. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1252.   echo $ac_n "(cached) $ac_c" 1>&6
  1253. else
  1254.   ac_save_LIBS="$LIBS"
  1255. LIBS="-ldir  $LIBS"
  1256. cat > conftest.$ac_ext <<EOF
  1257. #line 1258 "configure"
  1258. #include "confdefs.h"
  1259. /* Override any gcc2 internal prototype to avoid an error.  */
  1260. /* We use char because int might match the return type of a gcc2
  1261.     builtin and then its argument prototype would still apply.  */
  1262. char opendir();
  1263.  
  1264. int main() { t(); return 0; }
  1265. int t() {
  1266. opendir()
  1267. ; return 0; }
  1268. EOF
  1269. if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1270.   rm -rf conftest*
  1271.   eval "ac_cv_lib_$ac_lib_var=yes"
  1272. else
  1273.   rm -rf conftest*
  1274.   eval "ac_cv_lib_$ac_lib_var=no"
  1275. fi
  1276. rm -f conftest*
  1277. LIBS="$ac_save_LIBS"
  1278.  
  1279. fi
  1280. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1281.   echo "$ac_t""yes" 1>&6
  1282.   LIBS="$LIBS -ldir"
  1283. else
  1284.   echo "$ac_t""no" 1>&6
  1285. fi
  1286.  
  1287. else
  1288. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1289. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1290. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1291.   echo $ac_n "(cached) $ac_c" 1>&6
  1292. else
  1293.   ac_save_LIBS="$LIBS"
  1294. LIBS="-lx  $LIBS"
  1295. cat > conftest.$ac_ext <<EOF
  1296. #line 1297 "configure"
  1297. #include "confdefs.h"
  1298. /* Override any gcc2 internal prototype to avoid an error.  */
  1299. /* We use char because int might match the return type of a gcc2
  1300.     builtin and then its argument prototype would still apply.  */
  1301. char opendir();
  1302.  
  1303. int main() { t(); return 0; }
  1304. int t() {
  1305. opendir()
  1306. ; return 0; }
  1307. EOF
  1308. if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1309.   rm -rf conftest*
  1310.   eval "ac_cv_lib_$ac_lib_var=yes"
  1311. else
  1312.   rm -rf conftest*
  1313.   eval "ac_cv_lib_$ac_lib_var=no"
  1314. fi
  1315. rm -f conftest*
  1316. LIBS="$ac_save_LIBS"
  1317.  
  1318. fi
  1319. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1320.   echo "$ac_t""yes" 1>&6
  1321.   LIBS="$LIBS -lx"
  1322. else
  1323.   echo "$ac_t""no" 1>&6
  1324. fi
  1325.  
  1326. fi
  1327.  
  1328. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1329. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1330.   echo $ac_n "(cached) $ac_c" 1>&6
  1331. else
  1332.   cat > conftest.$ac_ext <<EOF
  1333. #line 1334 "configure"
  1334. #include "confdefs.h"
  1335. #include <sys/types.h>
  1336. #include <sys/stat.h>
  1337.  
  1338. #if defined(S_ISBLK) && defined(S_IFDIR)
  1339. # if S_ISBLK (S_IFDIR)
  1340. You lose.
  1341. # endif
  1342. #endif
  1343.  
  1344. #if defined(S_ISBLK) && defined(S_IFCHR)
  1345. # if S_ISBLK (S_IFCHR)
  1346. You lose.
  1347. # endif
  1348. #endif
  1349.  
  1350. #if defined(S_ISLNK) && defined(S_IFREG)
  1351. # if S_ISLNK (S_IFREG)
  1352. You lose.
  1353. # endif
  1354. #endif
  1355.  
  1356. #if defined(S_ISSOCK) && defined(S_IFREG)
  1357. # if S_ISSOCK (S_IFREG)
  1358. You lose.
  1359. # endif
  1360. #endif
  1361.  
  1362. EOF
  1363. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1364.   egrep "You lose" >/dev/null 2>&1; then
  1365.   rm -rf conftest*
  1366.   ac_cv_header_stat_broken=yes
  1367. else
  1368.   rm -rf conftest*
  1369.   ac_cv_header_stat_broken=no
  1370. fi
  1371. rm -f conftest*
  1372.  
  1373. fi
  1374.  
  1375. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1376. if test $ac_cv_header_stat_broken = yes; then
  1377.   cat >> confdefs.h <<\EOF
  1378. #define STAT_MACROS_BROKEN 1
  1379. EOF
  1380.  
  1381. fi
  1382.  
  1383. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1384. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1385.   echo $ac_n "(cached) $ac_c" 1>&6
  1386. else
  1387.   cat > conftest.$ac_ext <<EOF
  1388. #line 1389 "configure"
  1389. #include "confdefs.h"
  1390. #include <stdlib.h>
  1391. #include <stdarg.h>
  1392. #include <string.h>
  1393. #include <float.h>
  1394. EOF
  1395. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1396. { (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1397. ac_err=`grep -v '^ *+' conftest.out`
  1398. if test -z "$ac_err"; then
  1399.   rm -rf conftest*
  1400.   ac_cv_header_stdc=yes
  1401. else
  1402.   echo "$ac_err" >&5
  1403.   rm -rf conftest*
  1404.   ac_cv_header_stdc=no
  1405. fi
  1406. rm -f conftest*
  1407.  
  1408. if test $ac_cv_header_stdc = yes; then
  1409.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1410. cat > conftest.$ac_ext <<EOF
  1411. #line 1412 "configure"
  1412. #include "confdefs.h"
  1413. #include <string.h>
  1414. EOF
  1415. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1416.   egrep "memchr" >/dev/null 2>&1; then
  1417.   :
  1418. else
  1419.   rm -rf conftest*
  1420.   ac_cv_header_stdc=no
  1421. fi
  1422. rm -f conftest*
  1423.  
  1424. fi
  1425.  
  1426. if test $ac_cv_header_stdc = yes; then
  1427.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1428. cat > conftest.$ac_ext <<EOF
  1429. #line 1430 "configure"
  1430. #include "confdefs.h"
  1431. #include <stdlib.h>
  1432. EOF
  1433. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1434.   egrep "free" >/dev/null 2>&1; then
  1435.   :
  1436. else
  1437.   rm -rf conftest*
  1438.   ac_cv_header_stdc=no
  1439. fi
  1440. rm -f conftest*
  1441.  
  1442. fi
  1443.  
  1444. if test $ac_cv_header_stdc = yes; then
  1445.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1446. if test "$cross_compiling" = yes; then
  1447.   :
  1448. else
  1449. cat > conftest.$ac_ext <<EOF
  1450. #line 1451 "configure"
  1451. #include "confdefs.h"
  1452. #include <ctype.h>
  1453. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1454. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1455. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1456. int main () { int i; for (i = 0; i < 256; i++)
  1457. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1458. exit (0); }
  1459.  
  1460. EOF
  1461. { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1462. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1463.   :
  1464. else
  1465.   ac_cv_header_stdc=no
  1466. fi
  1467. fi
  1468. rm -fr conftest*
  1469. fi
  1470. fi
  1471.  
  1472. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1473. if test $ac_cv_header_stdc = yes; then
  1474.   cat >> confdefs.h <<\EOF
  1475. #define STDC_HEADERS 1
  1476. EOF
  1477.  
  1478. fi
  1479.  
  1480. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1481. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1482.   echo $ac_n "(cached) $ac_c" 1>&6
  1483. else
  1484.   cat > conftest.$ac_ext <<EOF
  1485. #line 1486 "configure"
  1486. #include "confdefs.h"
  1487. #include <sys/types.h>
  1488. #include <time.h>
  1489. int main() { return 0; }
  1490. int t() {
  1491. struct tm *tp; tp->tm_sec;
  1492. ; return 0; }
  1493. EOF
  1494. if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1495.   rm -rf conftest*
  1496.   ac_cv_struct_tm=time.h
  1497. else
  1498.   rm -rf conftest*
  1499.   ac_cv_struct_tm=sys/time.h
  1500. fi
  1501. rm -f conftest*
  1502.  
  1503. fi
  1504.  
  1505. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1506. if test $ac_cv_struct_tm = sys/time.h; then
  1507.   cat >> confdefs.h <<\EOF
  1508. #define TM_IN_SYS_TIME 1
  1509. EOF
  1510.  
  1511. fi
  1512.  
  1513. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1514. if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1515.   echo $ac_n "(cached) $ac_c" 1>&6
  1516. else
  1517.   cat > conftest.$ac_ext <<EOF
  1518. #line 1519 "configure"
  1519. #include "confdefs.h"
  1520. #include <sys/types.h>
  1521. #include <$ac_cv_struct_tm>
  1522. int main() { return 0; }
  1523. int t() {
  1524. struct tm tm; tm.tm_zone;
  1525. ; return 0; }
  1526. EOF
  1527. if { (eval echo configure:1528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1528.   rm -rf conftest*
  1529.   ac_cv_struct_tm_zone=yes
  1530. else
  1531.   rm -rf conftest*
  1532.   ac_cv_struct_tm_zone=no
  1533. fi
  1534. rm -f conftest*
  1535.  
  1536. fi
  1537.  
  1538. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1539. if test "$ac_cv_struct_tm_zone" = yes; then
  1540.   cat >> confdefs.h <<\EOF
  1541. #define HAVE_TM_ZONE 1
  1542. EOF
  1543.  
  1544. else
  1545.   echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1546. if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1547.   echo $ac_n "(cached) $ac_c" 1>&6
  1548. else
  1549.   cat > conftest.$ac_ext <<EOF
  1550. #line 1551 "configure"
  1551. #include "confdefs.h"
  1552. #include <time.h>
  1553. #ifndef tzname /* For SGI.  */
  1554. extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1555. #endif
  1556. int main() { t(); return 0; }
  1557. int t() {
  1558. atoi(*tzname);
  1559. ; return 0; }
  1560. EOF
  1561. if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1562.   rm -rf conftest*
  1563.   ac_cv_var_tzname=yes
  1564. else
  1565.   rm -rf conftest*
  1566.   ac_cv_var_tzname=no
  1567. fi
  1568. rm -f conftest*
  1569.  
  1570. fi
  1571.  
  1572. echo "$ac_t""$ac_cv_var_tzname" 1>&6
  1573.   if test $ac_cv_var_tzname = yes; then
  1574.     cat >> confdefs.h <<\EOF
  1575. #define HAVE_TZNAME 1
  1576. EOF
  1577.  
  1578.   fi
  1579. fi
  1580.  
  1581. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1582. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1583.   echo $ac_n "(cached) $ac_c" 1>&6
  1584. else
  1585.   cat > conftest.$ac_ext <<EOF
  1586. #line 1587 "configure"
  1587. #include "confdefs.h"
  1588. #include <sys/types.h>
  1589. #if STDC_HEADERS
  1590. #include <stdlib.h>
  1591. #endif
  1592. EOF
  1593. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1594.   egrep "size_t" >/dev/null 2>&1; then
  1595.   rm -rf conftest*
  1596.   ac_cv_type_size_t=yes
  1597. else
  1598.   rm -rf conftest*
  1599.   ac_cv_type_size_t=no
  1600. fi
  1601. rm -f conftest*
  1602.  
  1603. fi
  1604. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1605. if test $ac_cv_type_size_t = no; then
  1606.   cat >> confdefs.h <<\EOF
  1607. #define size_t unsigned
  1608. EOF
  1609.  
  1610. fi
  1611.  
  1612.  
  1613. for ac_func in basename fchmod getcwd memcpy strchr strerror uname
  1614. do
  1615. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1616. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1617.   echo $ac_n "(cached) $ac_c" 1>&6
  1618. else
  1619.   cat > conftest.$ac_ext <<EOF
  1620. #line 1621 "configure"
  1621. #include "confdefs.h"
  1622. /* System header to define __stub macros and hopefully few prototypes,
  1623.     which can conflict with char $ac_func(); below.  */
  1624. #include <assert.h>
  1625. /* Override any gcc2 internal prototype to avoid an error.  */
  1626. /* We use char because int might match the return type of a gcc2
  1627.     builtin and then its argument prototype would still apply.  */
  1628. char $ac_func();
  1629.  
  1630. int main() { t(); return 0; }
  1631. int t() {
  1632.  
  1633. /* The GNU C library defines this for functions which it implements
  1634.     to always fail with ENOSYS.  Some functions are actually named
  1635.     something starting with __ and the normal name is an alias.  */
  1636. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1637. choke me
  1638. #else
  1639. $ac_func();
  1640. #endif
  1641.  
  1642. ; return 0; }
  1643. EOF
  1644. if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1645.   rm -rf conftest*
  1646.   eval "ac_cv_func_$ac_func=yes"
  1647. else
  1648.   rm -rf conftest*
  1649.   eval "ac_cv_func_$ac_func=no"
  1650. fi
  1651. rm -f conftest*
  1652.  
  1653. fi
  1654. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1655.   echo "$ac_t""yes" 1>&6
  1656.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1657.   cat >> confdefs.h <<EOF
  1658. #define $ac_tr_func 1
  1659. EOF
  1660.  
  1661. else
  1662.   echo "$ac_t""no" 1>&6
  1663. fi
  1664. done
  1665.  
  1666. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1667. # for constant arguments.  Useless!
  1668. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1669. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1670.   echo $ac_n "(cached) $ac_c" 1>&6
  1671. else
  1672.   cat > conftest.$ac_ext <<EOF
  1673. #line 1674 "configure"
  1674. #include "confdefs.h"
  1675. #include <alloca.h>
  1676. int main() { t(); return 0; }
  1677. int t() {
  1678. char *p = alloca(2 * sizeof(int));
  1679. ; return 0; }
  1680. EOF
  1681. if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1682.   rm -rf conftest*
  1683.   ac_cv_header_alloca_h=yes
  1684. else
  1685.   rm -rf conftest*
  1686.   ac_cv_header_alloca_h=no
  1687. fi
  1688. rm -f conftest*
  1689.  
  1690. fi
  1691.  
  1692. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1693. if test $ac_cv_header_alloca_h = yes; then
  1694.   cat >> confdefs.h <<\EOF
  1695. #define HAVE_ALLOCA_H 1
  1696. EOF
  1697.  
  1698. fi
  1699.  
  1700. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1701. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1702.   echo $ac_n "(cached) $ac_c" 1>&6
  1703. else
  1704.   cat > conftest.$ac_ext <<EOF
  1705. #line 1706 "configure"
  1706. #include "confdefs.h"
  1707.  
  1708. #ifdef __GNUC__
  1709. # define alloca __builtin_alloca
  1710. #else
  1711. # if HAVE_ALLOCA_H
  1712. #  include <alloca.h>
  1713. # else
  1714. #  ifdef _AIX
  1715.  #pragma alloca
  1716. #  else
  1717. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1718. char *alloca ();
  1719. #   endif
  1720. #  endif
  1721. # endif
  1722. #endif
  1723.  
  1724. int main() { t(); return 0; }
  1725. int t() {
  1726. char *p = (char *) alloca(1);
  1727. ; return 0; }
  1728. EOF
  1729. if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1730.   rm -rf conftest*
  1731.   ac_cv_func_alloca=yes
  1732. else
  1733.   rm -rf conftest*
  1734.   ac_cv_func_alloca=no
  1735. fi
  1736. rm -f conftest*
  1737.  
  1738. fi
  1739.  
  1740. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1741. if test $ac_cv_func_alloca = yes; then
  1742.   cat >> confdefs.h <<\EOF
  1743. #define HAVE_ALLOCA 1
  1744. EOF
  1745.  
  1746. fi
  1747.  
  1748. if test $ac_cv_func_alloca = no; then
  1749.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1750.   # that cause trouble.  Some versions do not even contain alloca or
  1751.   # contain a buggy version.  If you still want to use their alloca,
  1752.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1753.   ALLOCA=alloca.o
  1754.   cat >> confdefs.h <<\EOF
  1755. #define C_ALLOCA 1
  1756. EOF
  1757.  
  1758.  
  1759. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1760. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1761.   echo $ac_n "(cached) $ac_c" 1>&6
  1762. else
  1763.   cat > conftest.$ac_ext <<EOF
  1764. #line 1765 "configure"
  1765. #include "confdefs.h"
  1766. #if defined(CRAY) && ! defined(CRAY2)
  1767. webecray
  1768. #else
  1769. wenotbecray
  1770. #endif
  1771.  
  1772. EOF
  1773. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1774.   egrep "webecray" >/dev/null 2>&1; then
  1775.   rm -rf conftest*
  1776.   ac_cv_os_cray=yes
  1777. else
  1778.   rm -rf conftest*
  1779.   ac_cv_os_cray=no
  1780. fi
  1781. rm -f conftest*
  1782.  
  1783. fi
  1784.  
  1785. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1786. if test $ac_cv_os_cray = yes; then
  1787. for ac_func in _getb67 GETB67 getb67; do
  1788.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1789. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1790.   echo $ac_n "(cached) $ac_c" 1>&6
  1791. else
  1792.   cat > conftest.$ac_ext <<EOF
  1793. #line 1794 "configure"
  1794. #include "confdefs.h"
  1795. /* System header to define __stub macros and hopefully few prototypes,
  1796.     which can conflict with char $ac_func(); below.  */
  1797. #include <assert.h>
  1798. /* Override any gcc2 internal prototype to avoid an error.  */
  1799. /* We use char because int might match the return type of a gcc2
  1800.     builtin and then its argument prototype would still apply.  */
  1801. char $ac_func();
  1802.  
  1803. int main() { t(); return 0; }
  1804. int t() {
  1805.  
  1806. /* The GNU C library defines this for functions which it implements
  1807.     to always fail with ENOSYS.  Some functions are actually named
  1808.     something starting with __ and the normal name is an alias.  */
  1809. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1810. choke me
  1811. #else
  1812. $ac_func();
  1813. #endif
  1814.  
  1815. ; return 0; }
  1816. EOF
  1817. if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1818.   rm -rf conftest*
  1819.   eval "ac_cv_func_$ac_func=yes"
  1820. else
  1821.   rm -rf conftest*
  1822.   eval "ac_cv_func_$ac_func=no"
  1823. fi
  1824. rm -f conftest*
  1825.  
  1826. fi
  1827. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1828.   echo "$ac_t""yes" 1>&6
  1829.   cat >> confdefs.h <<EOF
  1830. #define CRAY_STACKSEG_END $ac_func
  1831. EOF
  1832.  
  1833.   break
  1834. else
  1835.   echo "$ac_t""no" 1>&6
  1836. fi
  1837.  
  1838. done
  1839. fi
  1840.  
  1841. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1842. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1843.   echo $ac_n "(cached) $ac_c" 1>&6
  1844. else
  1845.   if test "$cross_compiling" = yes; then
  1846.   ac_cv_c_stack_direction=0
  1847. else
  1848. cat > conftest.$ac_ext <<EOF
  1849. #line 1850 "configure"
  1850. #include "confdefs.h"
  1851. find_stack_direction ()
  1852. {
  1853.   static char *addr = 0;
  1854.   auto char dummy;
  1855.   if (addr == 0)
  1856.     {
  1857.       addr = &dummy;
  1858.       return find_stack_direction ();
  1859.     }
  1860.   else
  1861.     return (&dummy > addr) ? 1 : -1;
  1862. }
  1863. main ()
  1864. {
  1865.   exit (find_stack_direction() < 0);
  1866. }
  1867. EOF
  1868. { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1869. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1870.   ac_cv_c_stack_direction=1
  1871. else
  1872.   ac_cv_c_stack_direction=-1
  1873. fi
  1874. fi
  1875. rm -fr conftest*
  1876. fi
  1877.  
  1878. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1879. cat >> confdefs.h <<EOF
  1880. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1881. EOF
  1882.  
  1883. fi
  1884.  
  1885. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1886. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1887.   echo $ac_n "(cached) $ac_c" 1>&6
  1888. else
  1889.   if test "$cross_compiling" = yes; then
  1890.   ac_cv_func_closedir_void=yes
  1891. else
  1892. cat > conftest.$ac_ext <<EOF
  1893. #line 1894 "configure"
  1894. #include "confdefs.h"
  1895. #include <sys/types.h>
  1896. #include <$ac_header_dirent>
  1897. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1898. EOF
  1899. { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1900. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1901.   ac_cv_func_closedir_void=no
  1902. else
  1903.   ac_cv_func_closedir_void=yes
  1904. fi
  1905. fi
  1906. rm -fr conftest*
  1907. fi
  1908.  
  1909. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1910. if test $ac_cv_func_closedir_void = yes; then
  1911.   cat >> confdefs.h <<\EOF
  1912. #define CLOSEDIR_VOID 1
  1913. EOF
  1914.  
  1915. fi
  1916.  
  1917. # strftime is in -lintl on SCO UNIX.
  1918. echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  1919. ac_lib_var=`echo intl'_'strftime | tr './+\055' '__p_'`
  1920. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1921.   echo $ac_n "(cached) $ac_c" 1>&6
  1922. else
  1923.   ac_save_LIBS="$LIBS"
  1924. LIBS="-lintl  $LIBS"
  1925. cat > conftest.$ac_ext <<EOF
  1926. #line 1927 "configure"
  1927. #include "confdefs.h"
  1928. /* Override any gcc2 internal prototype to avoid an error.  */
  1929. /* We use char because int might match the return type of a gcc2
  1930.     builtin and then its argument prototype would still apply.  */
  1931. char strftime();
  1932.  
  1933. int main() { t(); return 0; }
  1934. int t() {
  1935. strftime()
  1936. ; return 0; }
  1937. EOF
  1938. if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1939.   rm -rf conftest*
  1940.   eval "ac_cv_lib_$ac_lib_var=yes"
  1941. else
  1942.   rm -rf conftest*
  1943.   eval "ac_cv_lib_$ac_lib_var=no"
  1944. fi
  1945. rm -f conftest*
  1946. LIBS="$ac_save_LIBS"
  1947.  
  1948. fi
  1949. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1950.   echo "$ac_t""yes" 1>&6
  1951.   LIBS="-lintl $LIBS"
  1952. else
  1953.   echo "$ac_t""no" 1>&6
  1954. fi
  1955.  
  1956. echo $ac_n "checking for strftime""... $ac_c" 1>&6
  1957. if eval "test \"`echo '$''{'ac_cv_func_strftime'+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 strftime(); 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 strftime();
  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_strftime) || defined (__stub___strftime)
  1978. choke me
  1979. #else
  1980. strftime();
  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_strftime=yes"
  1988. else
  1989.   rm -rf conftest*
  1990.   eval "ac_cv_func_strftime=no"
  1991. fi
  1992. rm -f conftest*
  1993.  
  1994. fi
  1995. if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
  1996.   echo "$ac_t""yes" 1>&6
  1997.   cat >> confdefs.h <<\EOF
  1998. #define HAVE_STRFTIME 1
  1999. EOF
  2000.  
  2001. else
  2002.   echo "$ac_t""no" 1>&6
  2003. fi
  2004.  
  2005. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2006. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2007.   echo $ac_n "(cached) $ac_c" 1>&6
  2008. else
  2009.   cat > conftest.$ac_ext <<EOF
  2010. #line 2011 "configure"
  2011. #include "confdefs.h"
  2012. /* System header to define __stub macros and hopefully few prototypes,
  2013.     which can conflict with char vprintf(); below.  */
  2014. #include <assert.h>
  2015. /* Override any gcc2 internal prototype to avoid an error.  */
  2016. /* We use char because int might match the return type of a gcc2
  2017.     builtin and then its argument prototype would still apply.  */
  2018. char vprintf();
  2019.  
  2020. int main() { t(); return 0; }
  2021. int t() {
  2022.  
  2023. /* The GNU C library defines this for functions which it implements
  2024.     to always fail with ENOSYS.  Some functions are actually named
  2025.     something starting with __ and the normal name is an alias.  */
  2026. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2027. choke me
  2028. #else
  2029. vprintf();
  2030. #endif
  2031.  
  2032. ; return 0; }
  2033. EOF
  2034. if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2035.   rm -rf conftest*
  2036.   eval "ac_cv_func_vprintf=yes"
  2037. else
  2038.   rm -rf conftest*
  2039.   eval "ac_cv_func_vprintf=no"
  2040. fi
  2041. rm -f conftest*
  2042.  
  2043. fi
  2044. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2045.   echo "$ac_t""yes" 1>&6
  2046.   cat >> confdefs.h <<\EOF
  2047. #define HAVE_VPRINTF 1
  2048. EOF
  2049.  
  2050. else
  2051.   echo "$ac_t""no" 1>&6
  2052. fi
  2053.  
  2054. if test "$ac_cv_func_vprintf" != yes; then
  2055. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2056. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2057.   echo $ac_n "(cached) $ac_c" 1>&6
  2058. else
  2059.   cat > conftest.$ac_ext <<EOF
  2060. #line 2061 "configure"
  2061. #include "confdefs.h"
  2062. /* System header to define __stub macros and hopefully few prototypes,
  2063.     which can conflict with char _doprnt(); below.  */
  2064. #include <assert.h>
  2065. /* Override any gcc2 internal prototype to avoid an error.  */
  2066. /* We use char because int might match the return type of a gcc2
  2067.     builtin and then its argument prototype would still apply.  */
  2068. char _doprnt();
  2069.  
  2070. int main() { t(); return 0; }
  2071. int t() {
  2072.  
  2073. /* The GNU C library defines this for functions which it implements
  2074.     to always fail with ENOSYS.  Some functions are actually named
  2075.     something starting with __ and the normal name is an alias.  */
  2076. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2077. choke me
  2078. #else
  2079. _doprnt();
  2080. #endif
  2081.  
  2082. ; return 0; }
  2083. EOF
  2084. if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2085.   rm -rf conftest*
  2086.   eval "ac_cv_func__doprnt=yes"
  2087. else
  2088.   rm -rf conftest*
  2089.   eval "ac_cv_func__doprnt=no"
  2090. fi
  2091. rm -f conftest*
  2092.  
  2093. fi
  2094. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2095.   echo "$ac_t""yes" 1>&6
  2096.   cat >> confdefs.h <<\EOF
  2097. #define HAVE_DOPRNT 1
  2098. EOF
  2099.  
  2100. else
  2101.   echo "$ac_t""no" 1>&6
  2102. fi
  2103.  
  2104. fi
  2105.  
  2106. for ac_func in memset mktime strftime
  2107. do
  2108. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2109. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2110.   echo $ac_n "(cached) $ac_c" 1>&6
  2111. else
  2112.   cat > conftest.$ac_ext <<EOF
  2113. #line 2114 "configure"
  2114. #include "confdefs.h"
  2115. /* System header to define __stub macros and hopefully few prototypes,
  2116.     which can conflict with char $ac_func(); below.  */
  2117. #include <assert.h>
  2118. /* Override any gcc2 internal prototype to avoid an error.  */
  2119. /* We use char because int might match the return type of a gcc2
  2120.     builtin and then its argument prototype would still apply.  */
  2121. char $ac_func();
  2122.  
  2123. int main() { t(); return 0; }
  2124. int t() {
  2125.  
  2126. /* The GNU C library defines this for functions which it implements
  2127.     to always fail with ENOSYS.  Some functions are actually named
  2128.     something starting with __ and the normal name is an alias.  */
  2129. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2130. choke me
  2131. #else
  2132. $ac_func();
  2133. #endif
  2134.  
  2135. ; return 0; }
  2136. EOF
  2137. if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2138.   rm -rf conftest*
  2139.   eval "ac_cv_func_$ac_func=yes"
  2140. else
  2141.   rm -rf conftest*
  2142.   eval "ac_cv_func_$ac_func=no"
  2143. fi
  2144. rm -f conftest*
  2145.  
  2146. fi
  2147. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2148.   echo "$ac_t""yes" 1>&6
  2149.   :
  2150. else
  2151.   echo "$ac_t""no" 1>&6
  2152. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2153. fi
  2154.  
  2155. done
  2156.  
  2157. test "$ac_cv_func_basename" = yes || LIBOBJS="$LIBOBJS basename.o"
  2158.  
  2159. echo $ac_n "checking for /etc/systemid""... $ac_c" 1>&6
  2160. if test -f /etc/systemid; then
  2161.   echo "$ac_t""yes" 1>&6
  2162.   cat >> confdefs.h <<\EOF
  2163. #define HAVE_ETC_SYSTEMID 1
  2164. EOF
  2165.  
  2166. else
  2167.   echo "$ac_t""no" 1>&6
  2168. fi
  2169.  
  2170. echo $ac_n "checking if uuencode and uudecode are wanted""... $ac_c" 1>&6
  2171. # Check whether --enable-uucode or --disable-uucode was given.
  2172. if test "${enable_uucode+set}" = set; then
  2173.   enableval="$enable_uucode"
  2174.   if test "$enableval" = yes; then
  2175.   echo "$ac_t""yes" 1>&6
  2176.   PROGRAMS="$PROGRAMS uudecode uuencode"
  2177. else
  2178.   echo "$ac_t""no" 1>&6
  2179. fi
  2180. else
  2181.   
  2182.   echo "$ac_t""yes" 1>&6
  2183.   PROGRAMS="$PROGRAMS uudecode uuencode"
  2184.  
  2185. fi
  2186.  
  2187.  
  2188. echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  2189. # Check whether --with-dmalloc or --without-dmalloc was given.
  2190. if test "${with_dmalloc+set}" = set; then
  2191.   withval="$with_dmalloc"
  2192.   if test "$withval" = yes; then
  2193.   echo "$ac_t""yes" 1>&6
  2194.   cat >> confdefs.h <<\EOF
  2195. #define WITH_DMALLOC 1
  2196. EOF
  2197.  
  2198.   LIBS="$LIBS -ldmalloc"
  2199.   LDFLAGS="$LDFLAGS -g"
  2200. else
  2201.   echo "$ac_t""no" 1>&6
  2202. fi
  2203. else
  2204.   echo "$ac_t""no" 1>&6
  2205. fi
  2206.  
  2207.  
  2208. trap '' 1 2 15
  2209. cat > confcache <<\EOF
  2210. # This file is a shell script that caches the results of configure
  2211. # tests run on this system so they can be shared between configure
  2212. # scripts and configure runs.  It is not useful on other systems.
  2213. # If it contains results you don't want to keep, you may remove or edit it.
  2214. #
  2215. # By default, configure uses ./config.cache as the cache file,
  2216. # creating it if it does not exist already.  You can give configure
  2217. # the --cache-file=FILE option to use a different cache file; that is
  2218. # what configure does when it calls configure scripts in
  2219. # subdirectories, so they share the cache.
  2220. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2221. # config.status only pays attention to the cache file if you give it the
  2222. # --recheck option to rerun configure.
  2223. #
  2224. EOF
  2225. # Ultrix sh set writes to stderr and can't be redirected directly,
  2226. # and sets the high bit in the cache file unless we assign to the vars.
  2227. (set) 2>&1 |
  2228.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2229.   >> confcache
  2230. if cmp -s $cache_file confcache; then
  2231.   :
  2232. else
  2233.   if test -w $cache_file; then
  2234.     echo "updating cache $cache_file"
  2235.     cat confcache > $cache_file
  2236.   else
  2237.     echo "not updating unwritable cache $cache_file"
  2238.   fi
  2239. fi
  2240. rm -f confcache
  2241.  
  2242. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2243.  
  2244. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2245. # Let make expand exec_prefix.
  2246. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2247.  
  2248. # Any assignment to VPATH causes Sun make to only execute
  2249. # the first set of double-colon rules, so remove it if not needed.
  2250. # If there is a colon in the path, we need to keep it.
  2251. if test "x$srcdir" = x.; then
  2252.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2253. fi
  2254.  
  2255. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2256.  
  2257. DEFS=-DHAVE_CONFIG_H
  2258.  
  2259. # Without the "./", some shells look in PATH for config.status.
  2260. : ${CONFIG_STATUS=./config.status}
  2261.  
  2262. echo creating $CONFIG_STATUS
  2263. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2264. # being executed, so just move it out of the way instead.
  2265. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2266. cat > $CONFIG_STATUS <<EOF
  2267. #! /bin/sh
  2268. # Generated automatically by configure.
  2269. # Run this file to recreate the current configuration.
  2270. # This directory was configured as follows,
  2271. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2272. #
  2273. # $0 $ac_configure_args
  2274. #
  2275. # Compiler output produced by configure, useful for debugging
  2276. # configure, is in ./config.log if it exists.
  2277.  
  2278. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2279. for ac_option
  2280. do
  2281.   case "\$ac_option" in
  2282.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2283.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2284.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2285.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2286.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2287.     exit 0 ;;
  2288.   -help | --help | --hel | --he | --h)
  2289.     echo "\$ac_cs_usage"; exit 0 ;;
  2290.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2291.   esac
  2292. done
  2293.  
  2294. ac_given_srcdir=$srcdir
  2295. ac_given_INSTALL="$INSTALL"
  2296.  
  2297. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2298. EOF
  2299. cat >> $CONFIG_STATUS <<EOF
  2300.  
  2301. # Protect against being on the right side of a sed subst in config.status.
  2302. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2303.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2304. $ac_vpsub
  2305. $extrasub
  2306. s%@CFLAGS@%$CFLAGS%g
  2307. s%@CPPFLAGS@%$CPPFLAGS%g
  2308. s%@CXXFLAGS@%$CXXFLAGS%g
  2309. s%@DEFS@%$DEFS%g
  2310. s%@LDFLAGS@%$LDFLAGS%g
  2311. s%@LIBS@%$LIBS%g
  2312. s%@exec_prefix@%$exec_prefix%g
  2313. s%@prefix@%$prefix%g
  2314. s%@program_transform_name@%$program_transform_name%g
  2315. s%@bindir@%$bindir%g
  2316. s%@sbindir@%$sbindir%g
  2317. s%@libexecdir@%$libexecdir%g
  2318. s%@datadir@%$datadir%g
  2319. s%@sysconfdir@%$sysconfdir%g
  2320. s%@sharedstatedir@%$sharedstatedir%g
  2321. s%@localstatedir@%$localstatedir%g
  2322. s%@libdir@%$libdir%g
  2323. s%@includedir@%$includedir%g
  2324. s%@oldincludedir@%$oldincludedir%g
  2325. s%@infodir@%$infodir%g
  2326. s%@guidedir@%$guidedir%g
  2327. s%@psdir@%$psdir%g
  2328. s%@dvidir@%$dvidir%g
  2329. s%@mandir@%$mandir%g
  2330. s%@PRODUCT@%$PRODUCT%g
  2331. s%@VERSION@%$VERSION%g
  2332. s%@PROGRAMS@%$PROGRAMS%g
  2333. s%@CC@%$CC%g
  2334. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2335. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2336. s%@RANLIB@%$RANLIB%g
  2337. s%@CPP@%$CPP%g
  2338. s%@U@%$U%g
  2339. s%@ANSI2KNR@%$ANSI2KNR%g
  2340. s%@ALLOCA@%$ALLOCA%g
  2341. s%@LIBOBJS@%$LIBOBJS%g
  2342.  
  2343. CEOF
  2344. EOF
  2345. cat >> $CONFIG_STATUS <<EOF
  2346.  
  2347. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2348. EOF
  2349. cat >> $CONFIG_STATUS <<\EOF
  2350. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2351.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2352.   case "$ac_file" in
  2353.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2354.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2355.   *) ac_file_in="${ac_file}.in" ;;
  2356.   esac
  2357.  
  2358.   # Adjust relative srcdir, etc. for subdirectories.
  2359.  
  2360.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2361.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2362.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2363.     # The file is in a subdirectory.
  2364.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2365.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2366.     # A "../" for each directory in $ac_dir_suffix.
  2367.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2368.   else
  2369.     ac_dir_suffix= ac_dots=
  2370.   fi
  2371.  
  2372.   case "$ac_given_srcdir" in
  2373.   .)  srcdir=.
  2374.       if test -z "$ac_dots"; then top_srcdir=.
  2375.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2376.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2377.   *) # Relative path.
  2378.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2379.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2380.   esac
  2381.  
  2382.   case "$ac_given_INSTALL" in
  2383.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2384.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2385.   esac
  2386.   echo creating "$ac_file"
  2387.   rm -f "$ac_file"
  2388.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2389.   case "$ac_file" in
  2390.   *Makefile*) ac_comsub="1i\\
  2391. # $configure_input" ;;
  2392.   *) ac_comsub= ;;
  2393.   esac
  2394.   sed -e "$ac_comsub
  2395. s%@configure_input@%$configure_input%g
  2396. s%@srcdir@%$srcdir%g
  2397. s%@top_srcdir@%$top_srcdir%g
  2398. s%@INSTALL@%$INSTALL%g
  2399. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2400. fi; done
  2401. rm -f conftest.subs
  2402.  
  2403. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2404. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2405. #
  2406. # ac_d sets the value in "#define NAME VALUE" lines.
  2407. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2408. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2409. ac_dC='\3'
  2410. ac_dD='%g'
  2411. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2412. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2413. ac_uB='\([     ]\)%\1#\2define\3'
  2414. ac_uC=' '
  2415. ac_uD='\4%g'
  2416. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2417. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2418. ac_eB='$%\1#\2define\3'
  2419. ac_eC=' '
  2420. ac_eD='%g'
  2421.  
  2422. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2423. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2424.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2425.   case "$ac_file" in
  2426.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2427.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2428.   *) ac_file_in="${ac_file}.in" ;;
  2429.   esac
  2430.  
  2431.   echo creating $ac_file
  2432.  
  2433.   rm -f conftest.frag conftest.in conftest.out
  2434.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2435.  
  2436. EOF
  2437.  
  2438. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2439. # the proper values into config.h.in to produce config.h.  And first:
  2440. # Protect against being on the right side of a sed subst in config.status.
  2441. # Protect against being in an unquoted here document in config.status.
  2442. rm -f conftest.vals
  2443. cat > conftest.hdr <<\EOF
  2444. s/[\\&%]/\\&/g
  2445. s%[\\$`]%\\&%g
  2446. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2447. s%ac_d%ac_u%gp
  2448. s%ac_u%ac_e%gp
  2449. EOF
  2450. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2451. rm -f conftest.hdr
  2452.  
  2453. # This sed command replaces #undef with comments.  This is necessary, for
  2454. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2455. # on some systems where configure will not decide to define it.
  2456. cat >> conftest.vals <<\EOF
  2457. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2458. EOF
  2459.  
  2460. # Break up conftest.vals because some shells have a limit on
  2461. # the size of here documents, and old seds have small limits too.
  2462. # Maximum number of lines to put in a single here document.
  2463. ac_max_here_lines=12
  2464.  
  2465. rm -f conftest.tail
  2466. while :
  2467. do
  2468.   ac_lines=`grep -c . conftest.vals`
  2469.   # grep -c gives empty output for an empty file on some AIX systems.
  2470.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2471.   # Write a limited-size here document to conftest.frag.
  2472.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2473.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2474.   echo 'CEOF
  2475.   sed -f conftest.frag conftest.in > conftest.out
  2476.   rm -f conftest.in
  2477.   mv conftest.out conftest.in
  2478. ' >> $CONFIG_STATUS
  2479.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2480.   rm -f conftest.vals
  2481.   mv conftest.tail conftest.vals
  2482. done
  2483. rm -f conftest.vals
  2484.  
  2485. cat >> $CONFIG_STATUS <<\EOF
  2486.   rm -f conftest.frag conftest.h
  2487.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2488.   cat conftest.in >> conftest.h
  2489.   rm -f conftest.in
  2490.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2491.     echo "$ac_file is unchanged"
  2492.     rm -f conftest.h
  2493.   else
  2494.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2495.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2496.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2497.       # The file is in a subdirectory.
  2498.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2499.     fi
  2500.     rm -f $ac_file
  2501.     mv conftest.h $ac_file
  2502.   fi
  2503. fi; done
  2504.  
  2505.  
  2506. test -z "$CONFIG_HEADERS" || date > stamp-h
  2507. exit 0
  2508. EOF
  2509. chmod +x $CONFIG_STATUS
  2510. rm -f CONFIG.STATUS.old
  2511. rm -fr confdefs* $ac_clean_files
  2512. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2513.  
  2514.