home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / tar-1.11.8-src.tgz / tar.out / fsf / tar / configure < prev    next >
Text File  |  1996-10-01  |  117KB  |  4,330 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.   --with-dmalloc          use dmalloc, as in
  16.                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
  17. ac_help="$ac_help
  18.   --with-regex            use older regex in lieu of GNU rx for matching"
  19. ac_help="$ac_help
  20.   --disable-nls           do not use Native Language Support"
  21. ac_help="$ac_help
  22.   --with-gnu-nls          use the GNU NLS library"
  23.  
  24. # Initialize some variables set by options.
  25. # The variables have the same names as the options, with
  26. # dashes changed to underlines.
  27. build=NONE
  28. cache_file=./config.cache
  29. exec_prefix=NONE
  30. host=NONE
  31. no_create=
  32. nonopt=NONE
  33. no_recursion=
  34. prefix=NONE
  35. program_prefix=NONE
  36. program_suffix=NONE
  37. program_transform_name=s,x,x,
  38. silent=
  39. site=
  40. srcdir=
  41. target=NONE
  42. verbose=
  43. x_includes=NONE
  44. x_libraries=NONE
  45. bindir='${exec_prefix}/bin'
  46. sbindir='${exec_prefix}/sbin'
  47. libexecdir='${exec_prefix}/libexec'
  48. datadir='${prefix}/share'
  49. sysconfdir='${prefix}/etc'
  50. sharedstatedir='${prefix}/com'
  51. localstatedir='${prefix}/var'
  52. libdir='${exec_prefix}/lib'
  53. includedir='${prefix}/include'
  54. oldincludedir='/usr/include'
  55. infodir='${prefix}/info'
  56. guidedir='${prefix}/guide'
  57. psdir='${prefix}/ps'
  58. dvidir='${prefix}/dvi'
  59. mandir='${prefix}/man'
  60.  
  61. # Initialize some other variables.
  62. subdirs=
  63. MFLAGS= MAKEFLAGS=
  64.  
  65. ac_prev=
  66. for ac_option
  67. do
  68.  
  69.   # If the previous option needs an argument, assign it.
  70.   if test -n "$ac_prev"; then
  71.     eval "$ac_prev=\$ac_option"
  72.     ac_prev=
  73.     continue
  74.   fi
  75.  
  76.   case "$ac_option" in
  77.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  78.   *) ac_optarg= ;;
  79.   esac
  80.  
  81.   # Accept the important Cygnus configure options, so we can diagnose typos.
  82.  
  83.   case "$ac_option" in
  84.  
  85.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  86.     ac_prev=bindir ;;
  87.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  88.     bindir="$ac_optarg" ;;
  89.  
  90.   -build | --build | --buil | --bui | --bu)
  91.     ac_prev=build ;;
  92.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  93.     build="$ac_optarg" ;;
  94.  
  95.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  96.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  97.     ac_prev=cache_file ;;
  98.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  99.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  100.     cache_file="$ac_optarg" ;;
  101.  
  102.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  103.     ac_prev=datadir ;;
  104.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  105.   | --da=*)
  106.     datadir="$ac_optarg" ;;
  107.  
  108.   -disable-* | --disable-*)
  109.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  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.     eval "enable_${ac_feature}=no" ;;
  116.  
  117.   -enable-* | --enable-*)
  118.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  119.     # Reject names that are not valid shell variable names.
  120.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  121.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  122.     fi
  123.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  124.     case "$ac_option" in
  125.       *=*) ;;
  126.       *) ac_optarg=yes ;;
  127.     esac
  128.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  129.  
  130.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  131.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  132.   | --exec | --exe | --ex)
  133.     ac_prev=exec_prefix ;;
  134.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  135.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  136.   | --exec=* | --exe=* | --ex=*)
  137.     exec_prefix="$ac_optarg" ;;
  138.  
  139.   -gas | --gas | --ga | --g)
  140.     # Obsolete; use --with-gas.
  141.     with_gas=yes ;;
  142.  
  143.   -help | --help | --hel | --he)
  144.     # Omit some internal or obsolete options to make the list less imposing.
  145.     # This message is too long to be a string in the A/UX 3.1 sh.
  146.     cat << EOF
  147. Usage: configure [options] [host]
  148. Options: [defaults in brackets after descriptions]
  149. Configuration:
  150.   --cache-file=FILE       cache test results in FILE
  151.   --help                  print this message
  152.   --no-create             do not create output files
  153.   --quiet, --silent       do not print \`checking...' messages
  154.   --version               print the version of autoconf that created configure
  155. Directory and file names:
  156.   --prefix=PREFIX         install architecture-independent files in PREFIX
  157.                           [$ac_default_prefix]
  158.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  159.                           [same as prefix]
  160.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  161.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  162.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  163.   --datadir=DIR           read-only architecture-independent data in DIR
  164.                           [PREFIX/share]
  165.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  166.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  167.                           [PREFIX/com]
  168.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  169.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  170.   --includedir=DIR        C header files in DIR [PREFIX/include]
  171.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  172.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  173.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  174.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  175.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  176.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  177.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  178.   --program-prefix=PREFIX prepend PREFIX to installed program names
  179.   --program-suffix=SUFFIX append SUFFIX to installed program names
  180.   --program-transform-name=PROGRAM
  181.                           run sed PROGRAM on installed program names
  182. EOF
  183.     cat << EOF
  184. Host type:
  185.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  186.   --host=HOST             configure for HOST [guessed]
  187.   --target=TARGET         configure for TARGET [TARGET=HOST]
  188. Features and packages:
  189.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  190.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  191.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  192.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  193.   --x-includes=DIR        X include files are in DIR
  194.   --x-libraries=DIR       X library files are in DIR
  195. EOF
  196.     if test -n "$ac_help"; then
  197.       echo "--enable and --with options recognized:$ac_help"
  198.     fi
  199.     exit 0 ;;
  200.  
  201.   -host | --host | --hos | --ho)
  202.     ac_prev=host ;;
  203.   -host=* | --host=* | --hos=* | --ho=*)
  204.     host="$ac_optarg" ;;
  205.  
  206.   -includedir | --includedir | --includedi | --included | --include \
  207.   | --includ | --inclu | --incl | --inc)
  208.     ac_prev=includedir ;;
  209.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  210.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  211.     includedir="$ac_optarg" ;;
  212.  
  213.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  214.     ac_prev=infodir ;;
  215.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  216.     infodir="$ac_optarg" ;;
  217.  
  218.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  219.    ac_prev=guidedir ;;
  220.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  221.  
  222.  -psdir | --psdir | --psdi | --psd | --ps)
  223.    ac_prev=psdir ;;
  224.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  225.  
  226.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  227.    ac_prev=dvidir ;;
  228.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  229.  
  230.   -libdir | --libdir | --libdi | --libd)
  231.     ac_prev=libdir ;;
  232.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  233.     libdir="$ac_optarg" ;;
  234.  
  235.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  236.   | --libexe | --libex | --libe)
  237.     ac_prev=libexecdir ;;
  238.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  239.   | --libexe=* | --libex=* | --libe=*)
  240.     libexecdir="$ac_optarg" ;;
  241.  
  242.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  243.   | --localstate | --localstat | --localsta | --localst \
  244.   | --locals | --local | --loca | --loc | --lo)
  245.     ac_prev=localstatedir ;;
  246.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  247.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  248.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  249.     localstatedir="$ac_optarg" ;;
  250.  
  251.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  252.     ac_prev=mandir ;;
  253.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  254.     mandir="$ac_optarg" ;;
  255.  
  256.   -nfp | --nfp | --nf)
  257.     # Obsolete; use --without-fp.
  258.     with_fp=no ;;
  259.  
  260.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  261.   | --no-cr | --no-c)
  262.     no_create=yes ;;
  263.  
  264.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  265.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  266.     no_recursion=yes ;;
  267.  
  268.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  269.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  270.   | --oldin | --oldi | --old | --ol | --o)
  271.     ac_prev=oldincludedir ;;
  272.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  273.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  274.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  275.     oldincludedir="$ac_optarg" ;;
  276.  
  277.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  278.     ac_prev=prefix ;;
  279.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  280.     prefix="$ac_optarg" ;;
  281.  
  282.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  283.   | --program-pre | --program-pr | --program-p)
  284.     ac_prev=program_prefix ;;
  285.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  286.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  287.     program_prefix="$ac_optarg" ;;
  288.  
  289.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  290.   | --program-suf | --program-su | --program-s)
  291.     ac_prev=program_suffix ;;
  292.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  293.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  294.     program_suffix="$ac_optarg" ;;
  295.  
  296.   -program-transform-name | --program-transform-name \
  297.   | --program-transform-nam | --program-transform-na \
  298.   | --program-transform-n | --program-transform- \
  299.   | --program-transform | --program-transfor \
  300.   | --program-transfo | --program-transf \
  301.   | --program-trans | --program-tran \
  302.   | --progr-tra | --program-tr | --program-t)
  303.     ac_prev=program_transform_name ;;
  304.   -program-transform-name=* | --program-transform-name=* \
  305.   | --program-transform-nam=* | --program-transform-na=* \
  306.   | --program-transform-n=* | --program-transform-=* \
  307.   | --program-transform=* | --program-transfor=* \
  308.   | --program-transfo=* | --program-transf=* \
  309.   | --program-trans=* | --program-tran=* \
  310.   | --progr-tra=* | --program-tr=* | --program-t=*)
  311.     program_transform_name="$ac_optarg" ;;
  312.  
  313.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  314.   | -silent | --silent | --silen | --sile | --sil)
  315.     silent=yes ;;
  316.  
  317.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  318.     ac_prev=sbindir ;;
  319.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  320.   | --sbi=* | --sb=*)
  321.     sbindir="$ac_optarg" ;;
  322.  
  323.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  324.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  325.   | --sharedst | --shareds | --shared | --share | --shar \
  326.   | --sha | --sh)
  327.     ac_prev=sharedstatedir ;;
  328.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  329.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  330.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  331.   | --sha=* | --sh=*)
  332.     sharedstatedir="$ac_optarg" ;;
  333.  
  334.   -site | --site | --sit)
  335.     ac_prev=site ;;
  336.   -site=* | --site=* | --sit=*)
  337.     site="$ac_optarg" ;;
  338.  
  339.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  340.     ac_prev=srcdir ;;
  341.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  342.     srcdir="$ac_optarg" ;;
  343.  
  344.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  345.   | --syscon | --sysco | --sysc | --sys | --sy)
  346.     ac_prev=sysconfdir ;;
  347.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  348.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  349.     sysconfdir="$ac_optarg" ;;
  350.  
  351.   -target | --target | --targe | --targ | --tar | --ta | --t)
  352.     ac_prev=target ;;
  353.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  354.     target="$ac_optarg" ;;
  355.  
  356.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  357.     verbose=yes ;;
  358.  
  359.   -version | --version | --versio | --versi | --vers)
  360.     echo "configure generated by autoconf version 2.10"
  361.     exit 0 ;;
  362.  
  363.   -with-* | --with-*)
  364.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  365.     # Reject names that are not valid shell variable names.
  366.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  367.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  368.     fi
  369.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  370.     case "$ac_option" in
  371.       *=*) ;;
  372.       *) ac_optarg=yes ;;
  373.     esac
  374.     eval "with_${ac_package}='$ac_optarg'" ;;
  375.  
  376.   -without-* | --without-*)
  377.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  378.     # Reject names that are not valid shell variable names.
  379.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  380.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  381.     fi
  382.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  383.     eval "with_${ac_package}=no" ;;
  384.  
  385.   --x)
  386.     # Obsolete; use --with-x.
  387.     with_x=yes ;;
  388.  
  389.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  390.   | --x-incl | --x-inc | --x-in | --x-i)
  391.     ac_prev=x_includes ;;
  392.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  393.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  394.     x_includes="$ac_optarg" ;;
  395.  
  396.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  397.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  398.     ac_prev=x_libraries ;;
  399.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  400.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  401.     x_libraries="$ac_optarg" ;;
  402.  
  403.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  404.     ;;
  405.  
  406.   *)
  407.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  408.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  409.     fi
  410.     if test "x$nonopt" != xNONE; then
  411.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  412.     fi
  413.     nonopt="$ac_option"
  414.     ;;
  415.  
  416.   esac
  417. done
  418.  
  419. if test -n "$ac_prev"; then
  420.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  421. fi
  422.  
  423. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  424.  
  425. # File descriptor usage:
  426. # 0 standard input
  427. # 1 file creation
  428. # 2 errors and warnings
  429. # 3 some systems may open it to /dev/tty
  430. # 4 used on the Kubota Titan
  431. # 6 checking for... messages and results
  432. # 5 compiler messages saved in config.log
  433. if test "$silent" = yes; then
  434.   exec 6>/dev/null
  435. else
  436.   exec 6>&1
  437. fi
  438. exec 5>./config.log
  439.  
  440. echo "\
  441. This file contains any messages produced by compilers while
  442. running configure, to aid debugging if configure makes a mistake.
  443. " 1>&5
  444.  
  445. # Strip out --no-create and --no-recursion so they do not pile up.
  446. # Also quote any args containing shell metacharacters.
  447. ac_configure_args=
  448. for ac_arg
  449. do
  450.   case "$ac_arg" in
  451.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  452.   | --no-cr | --no-c) ;;
  453.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  454.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  455.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  456.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  457.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  458.   esac
  459. done
  460.  
  461. # NLS nuisances.
  462. # Only set LANG and LC_ALL to C if already set.
  463. # These must not be set unconditionally because not all systems understand
  464. # e.g. LANG=C (notably SCO).
  465. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  466. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  467.  
  468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  469. rm -rf conftest* confdefs.h
  470. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  471. echo > confdefs.h
  472.  
  473. # A filename unique to this package, relative to the directory that
  474. # configure is in, which we can look for to find out if srcdir is correct.
  475. ac_unique_file=src/tar.c
  476.  
  477. # Find the source files, if location was not specified.
  478. if test -z "$srcdir"; then
  479.   ac_srcdir_defaulted=yes
  480.   # Try the directory containing this script, then its parent.
  481.   ac_prog=$0
  482.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  483.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  484.   srcdir=$ac_confdir
  485.   if test ! -r $srcdir/$ac_unique_file; then
  486.     srcdir=..
  487.   fi
  488. else
  489.   ac_srcdir_defaulted=no
  490. fi
  491. if test ! -r $srcdir/$ac_unique_file; then
  492.   if test "$ac_srcdir_defaulted" = yes; then
  493.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  494.   else
  495.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  496.   fi
  497. fi
  498. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  499.  
  500. # Prefer explicitly selected file to automatically selected ones.
  501. if test -z "$CONFIG_SITE"; then
  502.   if test "x$prefix" != xNONE; then
  503.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  504.   else
  505.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  506.   fi
  507. fi
  508. for ac_site_file in $CONFIG_SITE; do
  509.   if test -r "$ac_site_file"; then
  510.     echo "loading site script $ac_site_file"
  511.     . "$ac_site_file"
  512.   fi
  513. done
  514.  
  515. if test -r "$cache_file"; then
  516.   echo "loading cache $cache_file"
  517.   . $cache_file
  518. else
  519.   echo "creating cache $cache_file"
  520.   > $cache_file
  521. fi
  522.  
  523. ac_ext=c
  524. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  525. ac_cpp='$CPP $CPPFLAGS'
  526. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  527. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  528.  
  529. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  530.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  531.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  532.     ac_n= ac_c='
  533. ' ac_t='    '
  534.   else
  535.     ac_n=-n ac_c= ac_t=
  536.   fi
  537. else
  538.   ac_n= ac_c='\c' ac_t=
  539. fi
  540.  
  541.  
  542.  
  543. ac_aux_dir=
  544. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  545.   if test -f $ac_dir/install-sh; then
  546.     ac_aux_dir=$ac_dir
  547.     ac_install_sh="$ac_aux_dir/install-sh -c"
  548.     break
  549.   elif test -f $ac_dir/install.sh; then
  550.     ac_aux_dir=$ac_dir
  551.     ac_install_sh="$ac_aux_dir/install.sh -c"
  552.     break
  553.   fi
  554. done
  555. if test -z "$ac_aux_dir"; then
  556.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  557. fi
  558. ac_config_guess=$ac_aux_dir/config.guess
  559. ac_config_sub=$ac_aux_dir/config.sub
  560. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  561.  
  562.  
  563. # Do some error checking and defaulting for the host and target type.
  564. # The inputs are:
  565. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  566. #
  567. # The rules are:
  568. # 1. You are not allowed to specify --host, --target, and nonopt at the
  569. #    same time.
  570. # 2. Host defaults to nonopt.
  571. # 3. If nonopt is not specified, then host defaults to the current host,
  572. #    as determined by config.guess.
  573. # 4. Target and build default to nonopt.
  574. # 5. If nonopt is not specified, then target and build default to host.
  575.  
  576. # The aliases save the names the user supplied, while $host etc.
  577. # will get canonicalized.
  578. case $host---$target---$nonopt in
  579. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  580. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  581. esac
  582.  
  583.  
  584. # Make sure we can run config.sub.
  585. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  586. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  587. fi
  588.  
  589. echo $ac_n "checking host system type""... $ac_c" 1>&6
  590.  
  591. host_alias=$host
  592. case "$host_alias" in
  593. NONE)
  594.   case $nonopt in
  595.   NONE)
  596.     if host_alias=`$ac_config_guess`; then :
  597.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  598.     fi ;;
  599.   *) host_alias=$nonopt ;;
  600.   esac ;;
  601. esac
  602.  
  603. host=`$ac_config_sub $host_alias`
  604. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  605. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  606. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  607. echo "$ac_t""$host" 1>&6
  608.  
  609. echo $ac_n "checking target system type""... $ac_c" 1>&6
  610.  
  611. target_alias=$target
  612. case "$target_alias" in
  613. NONE)
  614.   case $nonopt in
  615.   NONE) target_alias=$host_alias ;;
  616.   *) target_alias=$nonopt ;;
  617.   esac ;;
  618. esac
  619.  
  620. target=`$ac_config_sub $target_alias`
  621. target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  622. target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  623. target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  624. echo "$ac_t""$target" 1>&6
  625.  
  626. echo $ac_n "checking build system type""... $ac_c" 1>&6
  627.  
  628. build_alias=$build
  629. case "$build_alias" in
  630. NONE)
  631.   case $nonopt in
  632.   NONE) build_alias=$host_alias ;;
  633.   *) build_alias=$nonopt ;;
  634.   esac ;;
  635. esac
  636.  
  637. build=`$ac_config_sub $build_alias`
  638. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  639. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  640. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  641. echo "$ac_t""$build" 1>&6
  642.  
  643. test "$host_alias" != "$target_alias" &&
  644.   test "$program_prefix$program_suffix$program_transform_name" = \
  645.     NONENONEs,x,x, &&
  646.   program_prefix=${target_alias}-
  647.  
  648. if test "$program_transform_name" = s,x,x,; then
  649.   program_transform_name=
  650. else
  651.   # Double any \ or $.  echo might interpret backslashes.
  652.   cat <<\EOF_SED > conftestsed
  653. s,\\,\\\\,g; s,\$,$$,g
  654. EOF_SED
  655.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  656.   rm -f conftestsed
  657. fi
  658. test "$program_prefix" != NONE &&
  659.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  660. # Use a double $ so make ignores it.
  661. test "$program_suffix" != NONE &&
  662.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  663.  
  664. # sed with no file args requires a program.
  665. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  666.  
  667.  
  668. PACKAGE=tar
  669. VERSION=1.11.8
  670. LINGUAS="de fr pt sv"
  671. PROGRAMS=tar
  672. cat >> confdefs.h <<EOF
  673. #define PACKAGE "$PACKAGE"
  674. EOF
  675.  
  676. cat >> confdefs.h <<EOF
  677. #define VERSION "$VERSION"
  678. EOF
  679.  
  680.  
  681.  
  682.  
  683.  
  684. # Extract the first word of "gcc", so it can be a program name with args.
  685. set dummy gcc; ac_word=$2
  686. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  687. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  688.   echo $ac_n "(cached) $ac_c" 1>&6
  689. else
  690.   if test -n "$CC"; then
  691.   ac_cv_prog_CC="$CC" # Let the user override the test.
  692. else
  693.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  694.   for ac_dir in $PATH; do
  695.     test -z "$ac_dir" && ac_dir=.
  696.     if test -f $ac_dir/$ac_word; then
  697.       ac_cv_prog_CC="gcc"
  698.       break
  699.     fi
  700.   done
  701.   IFS="$ac_save_ifs"
  702. fi
  703. fi
  704. CC="$ac_cv_prog_CC"
  705. if test -n "$CC"; then
  706.   echo "$ac_t""$CC" 1>&6
  707. else
  708.   echo "$ac_t""no" 1>&6
  709. fi
  710.  
  711. if test -z "$CC"; then
  712.   # Extract the first word of "cc", so it can be a program name with args.
  713. set dummy cc; ac_word=$2
  714. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  715. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  716.   echo $ac_n "(cached) $ac_c" 1>&6
  717. else
  718.   if test -n "$CC"; then
  719.   ac_cv_prog_CC="$CC" # Let the user override the test.
  720. else
  721.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  722.   ac_prog_rejected=no
  723.   for ac_dir in $PATH; do
  724.     test -z "$ac_dir" && ac_dir=.
  725.     if test -f $ac_dir/$ac_word; then
  726.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  727.         ac_prog_rejected=yes
  728.     continue
  729.       fi
  730.       ac_cv_prog_CC="cc"
  731.       break
  732.     fi
  733.   done
  734.   IFS="$ac_save_ifs"
  735. if test $ac_prog_rejected = yes; then
  736.   # We found a bogon in the path, so make sure we never use it.
  737.   set dummy $ac_cv_prog_CC
  738.   shift
  739.   if test $# -gt 0; then
  740.     # We chose a different compiler from the bogus one.
  741.     # However, it has the same basename, so the bogon will be chosen
  742.     # first if we set CC to just the basename; use the full file name.
  743.     shift
  744.     set dummy "$ac_dir/$ac_word" "$@"
  745.     shift
  746.     ac_cv_prog_CC="$@"
  747.   fi
  748. fi
  749. fi
  750. fi
  751. CC="$ac_cv_prog_CC"
  752. if test -n "$CC"; then
  753.   echo "$ac_t""$CC" 1>&6
  754. else
  755.   echo "$ac_t""no" 1>&6
  756. fi
  757.  
  758.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  759. fi
  760.  
  761. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  762. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  763.   echo $ac_n "(cached) $ac_c" 1>&6
  764. else
  765.   cat > conftest.c <<EOF
  766. #ifdef __GNUC__
  767.   yes;
  768. #endif
  769. EOF
  770. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  771.   ac_cv_prog_gcc=yes
  772. else
  773.   ac_cv_prog_gcc=no
  774. fi
  775. fi
  776.  
  777. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  778. if test $ac_cv_prog_gcc = yes; then
  779.   GCC=yes
  780.   if test "${CFLAGS+set}" != set; then
  781.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  782. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  783.   echo $ac_n "(cached) $ac_c" 1>&6
  784. else
  785.   echo 'void f(){}' > conftest.c
  786. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  787.   ac_cv_prog_gcc_g=yes
  788. else
  789.   ac_cv_prog_gcc_g=no
  790. fi
  791. rm -f conftest*
  792.  
  793. fi
  794.  
  795. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  796.     if test $ac_cv_prog_gcc_g = yes; then
  797.       CFLAGS="-g -O2"
  798.     else
  799.       CFLAGS="-O2"
  800.     fi
  801.   fi
  802. else
  803.   GCC=
  804.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  805. fi
  806.  
  807. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  808. # On Suns, sometimes $CPP names a directory.
  809. if test -n "$CPP" && test -d "$CPP"; then
  810.   CPP=
  811. fi
  812. if test -z "$CPP"; then
  813. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  814.   echo $ac_n "(cached) $ac_c" 1>&6
  815. else
  816.     # This must be in double quotes, not single quotes, because CPP may get
  817.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  818.   CPP="${CC-cc} -E"
  819.   # On the NeXT, cc -E runs the code through the compiler's parser,
  820.   # not just through cpp.
  821.   cat > conftest.$ac_ext <<EOF
  822. #line 823 "configure"
  823. #include "confdefs.h"
  824. #include <assert.h>
  825. Syntax Error
  826. EOF
  827. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  828. { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  829. ac_err=`grep -v '^ *+' conftest.out`
  830. if test -z "$ac_err"; then
  831.   :
  832. else
  833.   echo "$ac_err" >&5
  834.   rm -rf conftest*
  835.   CPP="${CC-cc} -E -traditional-cpp"
  836.   cat > conftest.$ac_ext <<EOF
  837. #line 838 "configure"
  838. #include "confdefs.h"
  839. #include <assert.h>
  840. Syntax Error
  841. EOF
  842. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  843. { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  844. ac_err=`grep -v '^ *+' conftest.out`
  845. if test -z "$ac_err"; then
  846.   :
  847. else
  848.   echo "$ac_err" >&5
  849.   rm -rf conftest*
  850.   CPP=/lib/cpp
  851. fi
  852. rm -f conftest*
  853. fi
  854. rm -f conftest*
  855.   ac_cv_prog_CPP="$CPP"
  856. fi
  857.   CPP="$ac_cv_prog_CPP"
  858. else
  859.   ac_cv_prog_CPP="$CPP"
  860. fi
  861. echo "$ac_t""$CPP" 1>&6
  862.  
  863. if test $ac_cv_prog_gcc = yes; then
  864.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  865. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  866.   echo $ac_n "(cached) $ac_c" 1>&6
  867. else
  868.     ac_pattern="Autoconf.*'x'"
  869.   cat > conftest.$ac_ext <<EOF
  870. #line 871 "configure"
  871. #include "confdefs.h"
  872. #include <sgtty.h>
  873. Autoconf TIOCGETP
  874. EOF
  875. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  876.   egrep "$ac_pattern" >/dev/null 2>&1; then
  877.   rm -rf conftest*
  878.   ac_cv_prog_gcc_traditional=yes
  879. else
  880.   rm -rf conftest*
  881.   ac_cv_prog_gcc_traditional=no
  882. fi
  883. rm -f conftest*
  884.  
  885.  
  886.   if test $ac_cv_prog_gcc_traditional = no; then
  887.     cat > conftest.$ac_ext <<EOF
  888. #line 889 "configure"
  889. #include "confdefs.h"
  890. #include <termio.h>
  891. Autoconf TCGETA
  892. EOF
  893. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  894.   egrep "$ac_pattern" >/dev/null 2>&1; then
  895.   rm -rf conftest*
  896.   ac_cv_prog_gcc_traditional=yes
  897. fi
  898. rm -f conftest*
  899.  
  900.   fi
  901. fi
  902.  
  903. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  904.   if test $ac_cv_prog_gcc_traditional = yes; then
  905.     CC="$CC -traditional"
  906.   fi
  907. fi
  908.  
  909. # Find a good install program.  We prefer a C program (faster),
  910. # so one script is as good as another.  But avoid the broken or
  911. # incompatible versions:
  912. # SysV /etc/install, /usr/sbin/install
  913. # SunOS /usr/etc/install
  914. # IRIX /sbin/install
  915. # AIX /bin/install
  916. # AmigaOS /c/install
  917. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  918. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  919. # ./install, which can be erroneously created by make from ./install.sh.
  920. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  921. if test -z "$INSTALL"; then
  922. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  923.   echo $ac_n "(cached) $ac_c" 1>&6
  924. else
  925.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  926.   for ac_dir in $PATH; do
  927.     # Account for people who put trailing slashes in PATH elements.
  928.     case "$ac_dir/" in
  929.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  930.     *)
  931.       # OSF1 and SCO ODT 3.0 have their own names for install.
  932.       for ac_prog in ginstall installbsd scoinst install; do
  933.         if test -f $ac_dir/$ac_prog; then
  934.       if test $ac_prog = install &&
  935.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  936.         # AIX install.  It has an incompatible calling convention.
  937.         # OSF/1 installbsd also uses dspmsg, but is usable.
  938.         :
  939.       else
  940.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  941.         break 2
  942.       fi
  943.     fi
  944.       done
  945.       ;;
  946.     esac
  947.   done
  948.   IFS="$ac_save_ifs"
  949.  
  950. fi
  951.   if test "${ac_cv_path_install+set}" = set; then
  952.     INSTALL="$ac_cv_path_install"
  953.   else
  954.     # As a last resort, use the slow shell script.  We don't cache a
  955.     # path for INSTALL within a source directory, because that will
  956.     # break other packages using the cache if that directory is
  957.     # removed, or if the path is relative.
  958.     INSTALL="$ac_install_sh"
  959.   fi
  960. fi
  961. echo "$ac_t""$INSTALL" 1>&6
  962.  
  963. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  964. # It thinks the first close brace ends the variable substitution.
  965. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  966.  
  967. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  968.  
  969. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  970. set dummy ${MAKE-make}; ac_make=$2
  971. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  972.   echo $ac_n "(cached) $ac_c" 1>&6
  973. else
  974.   cat > conftestmake <<\EOF
  975. all:
  976.     @echo 'ac_maketemp="${MAKE}"'
  977. EOF
  978. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  979. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  980. if test -n "$ac_maketemp"; then
  981.   eval ac_cv_prog_make_${ac_make}_set=yes
  982. else
  983.   eval ac_cv_prog_make_${ac_make}_set=no
  984. fi
  985. rm -f conftestmake
  986. fi
  987. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  988.   echo "$ac_t""yes" 1>&6
  989.   SET_MAKE=
  990. else
  991.   echo "$ac_t""no" 1>&6
  992.   SET_MAKE="MAKE=${MAKE-make}"
  993. fi
  994.  
  995. # Extract the first word of "ranlib", so it can be a program name with args.
  996. set dummy ranlib; ac_word=$2
  997. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  998. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  999.   echo $ac_n "(cached) $ac_c" 1>&6
  1000. else
  1001.   if test -n "$RANLIB"; then
  1002.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1003. else
  1004.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1005.   for ac_dir in $PATH; do
  1006.     test -z "$ac_dir" && ac_dir=.
  1007.     if test -f $ac_dir/$ac_word; then
  1008.       ac_cv_prog_RANLIB="ranlib"
  1009.       break
  1010.     fi
  1011.   done
  1012.   IFS="$ac_save_ifs"
  1013.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1014. fi
  1015. fi
  1016. RANLIB="$ac_cv_prog_RANLIB"
  1017. if test -n "$RANLIB"; then
  1018.   echo "$ac_t""$RANLIB" 1>&6
  1019. else
  1020.   echo "$ac_t""no" 1>&6
  1021. fi
  1022.  
  1023. for ac_prog in 'bison -y' byacc
  1024. do
  1025. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1026. set dummy $ac_prog; ac_word=$2
  1027. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1028. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  1029.   echo $ac_n "(cached) $ac_c" 1>&6
  1030. else
  1031.   if test -n "$YACC"; then
  1032.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1033. else
  1034.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1035.   for ac_dir in $PATH; do
  1036.     test -z "$ac_dir" && ac_dir=.
  1037.     if test -f $ac_dir/$ac_word; then
  1038.       ac_cv_prog_YACC="$ac_prog"
  1039.       break
  1040.     fi
  1041.   done
  1042.   IFS="$ac_save_ifs"
  1043. fi
  1044. fi
  1045. YACC="$ac_cv_prog_YACC"
  1046. if test -n "$YACC"; then
  1047.   echo "$ac_t""$YACC" 1>&6
  1048. else
  1049.   echo "$ac_t""no" 1>&6
  1050. fi
  1051.  
  1052. test -n "$YACC" && break
  1053. done
  1054. test -n "$YACC" || YACC="yacc"
  1055.  
  1056.  
  1057. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1058. cat > conftest.$ac_ext <<EOF
  1059. #line 1060 "configure"
  1060. #include "confdefs.h"
  1061. #ifdef _AIX
  1062.   yes
  1063. #endif
  1064.  
  1065. EOF
  1066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1067.   egrep "yes" >/dev/null 2>&1; then
  1068.   rm -rf conftest*
  1069.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1070. #define _ALL_SOURCE 1
  1071. EOF
  1072.  
  1073. else
  1074.   rm -rf conftest*
  1075.   echo "$ac_t""no" 1>&6
  1076. fi
  1077. rm -f conftest*
  1078.  
  1079.  
  1080. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1081. if test -d /etc/conf/kconfig.d &&
  1082.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1083. then
  1084.   echo "$ac_t""yes" 1>&6
  1085.   ISC=yes # If later tests want to check for ISC.
  1086.   cat >> confdefs.h <<\EOF
  1087. #define _POSIX_SOURCE 1
  1088. EOF
  1089.  
  1090.   if test "$GCC" = yes; then
  1091.     CC="$CC -posix"
  1092.   else
  1093.     CC="$CC -Xp"
  1094.   fi
  1095. else
  1096.   echo "$ac_t""no" 1>&6
  1097.   ISC=
  1098. fi
  1099.  
  1100. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1101. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1102. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1103.   echo $ac_n "(cached) $ac_c" 1>&6
  1104. else
  1105.   cat > conftest.$ac_ext <<EOF
  1106. #line 1107 "configure"
  1107. #include "confdefs.h"
  1108. #include <minix/config.h>
  1109. EOF
  1110. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1111. { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1112. ac_err=`grep -v '^ *+' conftest.out`
  1113. if test -z "$ac_err"; then
  1114.   rm -rf conftest*
  1115.   eval "ac_cv_header_$ac_safe=yes"
  1116. else
  1117.   echo "$ac_err" >&5
  1118.   rm -rf conftest*
  1119.   eval "ac_cv_header_$ac_safe=no"
  1120. fi
  1121. rm -f conftest*
  1122. fi
  1123. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1124.   echo "$ac_t""yes" 1>&6
  1125.   MINIX=yes
  1126. else
  1127.   echo "$ac_t""no" 1>&6
  1128. MINIX=
  1129. fi
  1130.  
  1131. if test "$MINIX" = yes; then
  1132.   cat >> confdefs.h <<\EOF
  1133. #define _POSIX_SOURCE 1
  1134. EOF
  1135.  
  1136.   cat >> confdefs.h <<\EOF
  1137. #define _POSIX_1_SOURCE 2
  1138. EOF
  1139.  
  1140.   cat >> confdefs.h <<\EOF
  1141. #define _MINIX 1
  1142. EOF
  1143.  
  1144. fi
  1145.  
  1146. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1147. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  1148.   echo $ac_n "(cached) $ac_c" 1>&6
  1149. else
  1150.   ac_cv_prog_cc_stdc=no
  1151. ac_save_CFLAGS="$CFLAGS"
  1152. # Don't try gcc -ansi; that turns off useful extensions and
  1153. # breaks some systems' header files.
  1154. # AIX            -qlanglvl=ansi
  1155. # Ultrix and OSF/1    -std1
  1156. # HP-UX            -Aa -D_HPUX_SOURCE
  1157. # SVR4            -Xc
  1158. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  1159. do
  1160.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  1161.   cat > conftest.$ac_ext <<EOF
  1162. #line 1163 "configure"
  1163. #include "confdefs.h"
  1164. #if !defined(__STDC__) || __STDC__ != 1
  1165. choke me
  1166. #endif    
  1167.  
  1168. int main() { return 0; }
  1169. int t() {
  1170. int test (int i, double x);
  1171. struct s1 {int (*f) (int a);};
  1172. struct s2 {int (*f) (double a);};
  1173. ; return 0; }
  1174. EOF
  1175. if { (eval echo configure:1176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1176.   rm -rf conftest*
  1177.   ac_cv_prog_cc_stdc="$ac_arg"; break
  1178. fi
  1179. rm -f conftest*
  1180.  
  1181. done
  1182. CFLAGS="$ac_save_CFLAGS"
  1183.  
  1184. fi
  1185.  
  1186. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  1187. case "x$ac_cv_prog_cc_stdc" in
  1188.   x|xno) ;;
  1189.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  1190. esac
  1191.  
  1192.  
  1193. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1194. if test "$ac_cv_prog_cc_stdc" != no; then
  1195.   echo "$ac_t""yes" 1>&6
  1196.   cat >> confdefs.h <<\EOF
  1197. #define PROTOTYPES 1
  1198. EOF
  1199.  
  1200.   U= ANSI2KNR=
  1201. else
  1202.   echo "$ac_t""no" 1>&6
  1203.   U=_ ANSI2KNR=ansi2knr
  1204. fi
  1205.  
  1206. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1207. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1208.   echo $ac_n "(cached) $ac_c" 1>&6
  1209. else
  1210.   cat > conftest.$ac_ext <<EOF
  1211. #line 1212 "configure"
  1212. #include "confdefs.h"
  1213.  
  1214. int main() { return 0; }
  1215. int t() {
  1216.  
  1217. /* Ultrix mips cc rejects this.  */
  1218. typedef int charset[2]; const charset x;
  1219. /* SunOS 4.1.1 cc rejects this.  */
  1220. char const *const *ccp;
  1221. char **p;
  1222. /* NEC SVR4.0.2 mips cc rejects this.  */
  1223. struct point {int x, y;};
  1224. static struct point const zero = {0,0};
  1225. /* AIX XL C 1.02.0.0 rejects this.
  1226.    It does not let you subtract one const X* pointer from another in an arm
  1227.    of an if-expression whose if-part is not a constant expression */
  1228. const char *g = "string";
  1229. ccp = &g + (g ? g-g : 0);
  1230. /* HPUX 7.0 cc rejects these. */
  1231. ++ccp;
  1232. p = (char**) ccp;
  1233. ccp = (char const *const *) p;
  1234. { /* SCO 3.2v4 cc rejects this.  */
  1235.   char *t;
  1236.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1237.  
  1238.   *t++ = 0;
  1239. }
  1240. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1241.   int x[] = {25, 17};
  1242.   const int *foo = &x[0];
  1243.   ++foo;
  1244. }
  1245. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1246.   typedef const int *iptr;
  1247.   iptr p = 0;
  1248.   ++p;
  1249. }
  1250. { /* AIX XL C 1.02.0.0 rejects this saying
  1251.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1252.   struct s { int j; const int *ap[3]; };
  1253.   struct s *b; b->j = 5;
  1254. }
  1255. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1256.   const int foo = 10;
  1257. }
  1258.  
  1259. ; return 0; }
  1260. EOF
  1261. if { (eval echo configure:1262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1262.   rm -rf conftest*
  1263.   ac_cv_c_const=yes
  1264. else
  1265.   rm -rf conftest*
  1266.   ac_cv_c_const=no
  1267. fi
  1268. rm -f conftest*
  1269.  
  1270. fi
  1271.  
  1272. echo "$ac_t""$ac_cv_c_const" 1>&6
  1273. if test $ac_cv_c_const = no; then
  1274.   cat >> confdefs.h <<\EOF
  1275. #define const 
  1276. EOF
  1277.  
  1278. fi
  1279.  
  1280.  
  1281. for ac_hdr in fcntl.h limits.h memory.h string.h \
  1282. sys/gentape.h sys/io/trioctl.h sys/ioccom.h sys/mtio.h sys/param.h \
  1283. sys/tape.h sys/time.h sys/timeb.h sys/wait.h unistd.h
  1284. do
  1285. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1286. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1287. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1288.   echo $ac_n "(cached) $ac_c" 1>&6
  1289. else
  1290.   cat > conftest.$ac_ext <<EOF
  1291. #line 1292 "configure"
  1292. #include "confdefs.h"
  1293. #include <$ac_hdr>
  1294. EOF
  1295. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1296. { (eval echo configure:1297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1297. ac_err=`grep -v '^ *+' conftest.out`
  1298. if test -z "$ac_err"; then
  1299.   rm -rf conftest*
  1300.   eval "ac_cv_header_$ac_safe=yes"
  1301. else
  1302.   echo "$ac_err" >&5
  1303.   rm -rf conftest*
  1304.   eval "ac_cv_header_$ac_safe=no"
  1305. fi
  1306. rm -f conftest*
  1307. fi
  1308. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1309.   echo "$ac_t""yes" 1>&6
  1310.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1311.   cat >> confdefs.h <<EOF
  1312. #define $ac_tr_hdr 1
  1313. EOF
  1314.  
  1315. else
  1316.   echo "$ac_t""no" 1>&6
  1317. fi
  1318. done
  1319.  
  1320.  
  1321. echo $ac_n "checking for utime.h""... $ac_c" 1>&6
  1322. cat > conftest.$ac_ext <<EOF
  1323. #line 1324 "configure"
  1324. #include "confdefs.h"
  1325. #include <sys/types.h>
  1326. #include <utime.h>
  1327. int main() { return 0; }
  1328. int t() {
  1329. struct utimbuf foo
  1330. ; return 0; }
  1331. EOF
  1332. if { (eval echo configure:1333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1333.   rm -rf conftest*
  1334.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1335. #define HAVE_UTIME_H 1
  1336. EOF
  1337.  
  1338. else
  1339.   rm -rf conftest*
  1340.   echo "$ac_t""no" 1>&6
  1341. fi
  1342. rm -f conftest*
  1343.  
  1344.  
  1345. if test "$ac_cv_header_sys_mtio_h" = yes; then
  1346.   echo $ac_n "checking for remote tape header files""... $ac_c" 1>&6
  1347.   if eval "test \"`echo '$''{'ac_cv_header_rmt'+set}'`\" = set"; then
  1348.   echo $ac_n "(cached) $ac_c" 1>&6
  1349. else
  1350.   cat > conftest.$ac_ext <<EOF
  1351. #line 1352 "configure"
  1352. #include "confdefs.h"
  1353. #include <sgtty.h>
  1354. #include <sys/socket.h>
  1355. EOF
  1356. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1357. { (eval echo configure:1358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1358. ac_err=`grep -v '^ *+' conftest.out`
  1359. if test -z "$ac_err"; then
  1360.   rm -rf conftest*
  1361.   ac_cv_header_rmt=yes
  1362. else
  1363.   echo "$ac_err" >&5
  1364.   rm -rf conftest*
  1365.   ac_cv_header_rmt=no
  1366. fi
  1367. rm -f conftest*
  1368. fi
  1369.  
  1370.   echo "$ac_t""$ac_cv_header_rmt" 1>&6
  1371.   test $ac_cv_header_rmt = yes && PROGRAMS="$PROGRAMS rmt"
  1372. fi
  1373.  
  1374. echo $ac_n "checking for getgrgid declaration""... $ac_c" 1>&6
  1375. cat > conftest.$ac_ext <<EOF
  1376. #line 1377 "configure"
  1377. #include "confdefs.h"
  1378. #include <grp.h>
  1379. EOF
  1380. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1381.   egrep "getgrgid" >/dev/null 2>&1; then
  1382.   rm -rf conftest*
  1383.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1384. #define HAVE_GETGRGID 1
  1385. EOF
  1386.  
  1387. else
  1388.   rm -rf conftest*
  1389.   echo "$ac_t""no" 1>&6
  1390. fi
  1391. rm -f conftest*
  1392.  
  1393.  
  1394. echo $ac_n "checking for getpwuid declaration""... $ac_c" 1>&6
  1395. cat > conftest.$ac_ext <<EOF
  1396. #line 1397 "configure"
  1397. #include "confdefs.h"
  1398. #include <pwd.h>
  1399. EOF
  1400. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1401.   egrep "getpwuid" >/dev/null 2>&1; then
  1402.   rm -rf conftest*
  1403.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1404. #define HAVE_GETPWUID 1
  1405. EOF
  1406.  
  1407. else
  1408.   rm -rf conftest*
  1409.   echo "$ac_t""no" 1>&6
  1410. fi
  1411. rm -f conftest*
  1412.  
  1413.  
  1414. echo $ac_n "checking which field to test for reversed bytes in remote ioctl""... $ac_c" 1>&6
  1415. cat > conftest.$ac_ext <<EOF
  1416. #line 1417 "configure"
  1417. #include "confdefs.h"
  1418. #include <sys/mtio.h>
  1419. EOF
  1420. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1421.   egrep "mt_model" >/dev/null 2>&1; then
  1422.   rm -rf conftest*
  1423.   field=mt_model
  1424. else
  1425.   rm -rf conftest*
  1426.   field=mt_type
  1427. fi
  1428. rm -f conftest*
  1429.  
  1430. echo "$ac_t""$field" 1>&6
  1431. cat >> confdefs.h <<EOF
  1432. #define MTIO_CHECK_FIELD $field
  1433. EOF
  1434.  
  1435.  
  1436. ac_header_dirent=no
  1437. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1438. do
  1439. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1440. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1441. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1442.   echo $ac_n "(cached) $ac_c" 1>&6
  1443. else
  1444.   cat > conftest.$ac_ext <<EOF
  1445. #line 1446 "configure"
  1446. #include "confdefs.h"
  1447. #include <sys/types.h>
  1448. #include <$ac_hdr>
  1449. int main() { return 0; }
  1450. int t() {
  1451. DIR *dirp = 0;
  1452. ; return 0; }
  1453. EOF
  1454. if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1455.   rm -rf conftest*
  1456.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1457. else
  1458.   rm -rf conftest*
  1459.   eval "ac_cv_header_dirent_$ac_safe=no"
  1460. fi
  1461. rm -f conftest*
  1462.  
  1463. fi
  1464. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1465.   echo "$ac_t""yes" 1>&6
  1466.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1467.   cat >> confdefs.h <<EOF
  1468. #define $ac_tr_hdr 1
  1469. EOF
  1470.  ac_header_dirent=$ac_hdr; break
  1471. else
  1472.   echo "$ac_t""no" 1>&6
  1473. fi
  1474. done
  1475. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1476. if test $ac_header_dirent = dirent.h; then
  1477. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1478. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1479. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1480.   echo $ac_n "(cached) $ac_c" 1>&6
  1481. else
  1482.   ac_save_LIBS="$LIBS"
  1483. LIBS="-ldir  $LIBS"
  1484. cat > conftest.$ac_ext <<EOF
  1485. #line 1486 "configure"
  1486. #include "confdefs.h"
  1487. /* Override any gcc2 internal prototype to avoid an error.  */
  1488. /* We use char because int might match the return type of a gcc2
  1489.     builtin and then its argument prototype would still apply.  */
  1490. char opendir();
  1491.  
  1492. int main() { t(); return 0; }
  1493. int t() {
  1494. opendir()
  1495. ; return 0; }
  1496. EOF
  1497. if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1498.   rm -rf conftest*
  1499.   eval "ac_cv_lib_$ac_lib_var=yes"
  1500. else
  1501.   rm -rf conftest*
  1502.   eval "ac_cv_lib_$ac_lib_var=no"
  1503. fi
  1504. rm -f conftest*
  1505. LIBS="$ac_save_LIBS"
  1506.  
  1507. fi
  1508. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1509.   echo "$ac_t""yes" 1>&6
  1510.   LIBS="$LIBS -ldir"
  1511. else
  1512.   echo "$ac_t""no" 1>&6
  1513. fi
  1514.  
  1515. else
  1516. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1517. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1518. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1519.   echo $ac_n "(cached) $ac_c" 1>&6
  1520. else
  1521.   ac_save_LIBS="$LIBS"
  1522. LIBS="-lx  $LIBS"
  1523. cat > conftest.$ac_ext <<EOF
  1524. #line 1525 "configure"
  1525. #include "confdefs.h"
  1526. /* Override any gcc2 internal prototype to avoid an error.  */
  1527. /* We use char because int might match the return type of a gcc2
  1528.     builtin and then its argument prototype would still apply.  */
  1529. char opendir();
  1530.  
  1531. int main() { t(); return 0; }
  1532. int t() {
  1533. opendir()
  1534. ; return 0; }
  1535. EOF
  1536. if { (eval echo configure:1537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1537.   rm -rf conftest*
  1538.   eval "ac_cv_lib_$ac_lib_var=yes"
  1539. else
  1540.   rm -rf conftest*
  1541.   eval "ac_cv_lib_$ac_lib_var=no"
  1542. fi
  1543. rm -f conftest*
  1544. LIBS="$ac_save_LIBS"
  1545.  
  1546. fi
  1547. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1548.   echo "$ac_t""yes" 1>&6
  1549.   LIBS="$LIBS -lx"
  1550. else
  1551.   echo "$ac_t""no" 1>&6
  1552. fi
  1553.  
  1554. fi
  1555.  
  1556. echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
  1557. if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  1558.   echo $ac_n "(cached) $ac_c" 1>&6
  1559. else
  1560.   cat > conftest.$ac_ext <<EOF
  1561. #line 1562 "configure"
  1562. #include "confdefs.h"
  1563. #include <sys/types.h>
  1564. int main() { t(); return 0; }
  1565. int t() {
  1566. return makedev(0, 0);
  1567. ; return 0; }
  1568. EOF
  1569. if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1570.   rm -rf conftest*
  1571.   ac_cv_header_sys_types_h_makedev=yes
  1572. else
  1573.   rm -rf conftest*
  1574.   ac_cv_header_sys_types_h_makedev=no
  1575. fi
  1576. rm -f conftest*
  1577.  
  1578.  
  1579. fi
  1580.  
  1581. echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
  1582.  
  1583. if test $ac_cv_header_sys_types_h_makedev = no; then
  1584. ac_safe=`echo "sys/mkdev.h" | tr './\055' '___'`
  1585. echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
  1586. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1587.   echo $ac_n "(cached) $ac_c" 1>&6
  1588. else
  1589.   cat > conftest.$ac_ext <<EOF
  1590. #line 1591 "configure"
  1591. #include "confdefs.h"
  1592. #include <sys/mkdev.h>
  1593. EOF
  1594. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1595. { (eval echo configure:1596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1596. ac_err=`grep -v '^ *+' conftest.out`
  1597. if test -z "$ac_err"; then
  1598.   rm -rf conftest*
  1599.   eval "ac_cv_header_$ac_safe=yes"
  1600. else
  1601.   echo "$ac_err" >&5
  1602.   rm -rf conftest*
  1603.   eval "ac_cv_header_$ac_safe=no"
  1604. fi
  1605. rm -f conftest*
  1606. fi
  1607. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1608.   echo "$ac_t""yes" 1>&6
  1609.   cat >> confdefs.h <<\EOF
  1610. #define MAJOR_IN_MKDEV 1
  1611. EOF
  1612.  
  1613. else
  1614.   echo "$ac_t""no" 1>&6
  1615. fi
  1616.  
  1617.  
  1618.   if test $ac_cv_header_sys_mkdev_h = no; then
  1619. ac_safe=`echo "sys/sysmacros.h" | tr './\055' '___'`
  1620. echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  1621. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1622.   echo $ac_n "(cached) $ac_c" 1>&6
  1623. else
  1624.   cat > conftest.$ac_ext <<EOF
  1625. #line 1626 "configure"
  1626. #include "confdefs.h"
  1627. #include <sys/sysmacros.h>
  1628. EOF
  1629. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1630. { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1631. ac_err=`grep -v '^ *+' conftest.out`
  1632. if test -z "$ac_err"; then
  1633.   rm -rf conftest*
  1634.   eval "ac_cv_header_$ac_safe=yes"
  1635. else
  1636.   echo "$ac_err" >&5
  1637.   rm -rf conftest*
  1638.   eval "ac_cv_header_$ac_safe=no"
  1639. fi
  1640. rm -f conftest*
  1641. fi
  1642. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1643.   echo "$ac_t""yes" 1>&6
  1644.   cat >> confdefs.h <<\EOF
  1645. #define MAJOR_IN_SYSMACROS 1
  1646. EOF
  1647.  
  1648. else
  1649.   echo "$ac_t""no" 1>&6
  1650. fi
  1651.  
  1652.   fi
  1653. fi
  1654.  
  1655. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1656. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1657.   echo $ac_n "(cached) $ac_c" 1>&6
  1658. else
  1659.   cat > conftest.$ac_ext <<EOF
  1660. #line 1661 "configure"
  1661. #include "confdefs.h"
  1662. #include <sys/types.h>
  1663. #include <sys/stat.h>
  1664.  
  1665. #if defined(S_ISBLK) && defined(S_IFDIR)
  1666. # if S_ISBLK (S_IFDIR)
  1667. You lose.
  1668. # endif
  1669. #endif
  1670.  
  1671. #if defined(S_ISBLK) && defined(S_IFCHR)
  1672. # if S_ISBLK (S_IFCHR)
  1673. You lose.
  1674. # endif
  1675. #endif
  1676.  
  1677. #if defined(S_ISLNK) && defined(S_IFREG)
  1678. # if S_ISLNK (S_IFREG)
  1679. You lose.
  1680. # endif
  1681. #endif
  1682.  
  1683. #if defined(S_ISSOCK) && defined(S_IFREG)
  1684. # if S_ISSOCK (S_IFREG)
  1685. You lose.
  1686. # endif
  1687. #endif
  1688.  
  1689. EOF
  1690. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1691.   egrep "You lose" >/dev/null 2>&1; then
  1692.   rm -rf conftest*
  1693.   ac_cv_header_stat_broken=yes
  1694. else
  1695.   rm -rf conftest*
  1696.   ac_cv_header_stat_broken=no
  1697. fi
  1698. rm -f conftest*
  1699.  
  1700. fi
  1701.  
  1702. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1703. if test $ac_cv_header_stat_broken = yes; then
  1704.   cat >> confdefs.h <<\EOF
  1705. #define STAT_MACROS_BROKEN 1
  1706. EOF
  1707.  
  1708. fi
  1709.  
  1710. # If we cannot run a trivial program, we must be cross compiling.
  1711. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1712. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1713.   echo $ac_n "(cached) $ac_c" 1>&6
  1714. else
  1715.   if test "$cross_compiling" = yes; then
  1716.   ac_cv_c_cross=yes
  1717. else
  1718. cat > conftest.$ac_ext <<EOF
  1719. #line 1720 "configure"
  1720. #include "confdefs.h"
  1721. main(){return(0);}
  1722. EOF
  1723. { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1724. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1725.   ac_cv_c_cross=no
  1726. else
  1727.   ac_cv_c_cross=yes
  1728. fi
  1729. fi
  1730. rm -fr conftest*
  1731. fi
  1732.  
  1733. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1734. cross_compiling=$ac_cv_c_cross
  1735.  
  1736. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1737. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1738.   echo $ac_n "(cached) $ac_c" 1>&6
  1739. else
  1740.   cat > conftest.$ac_ext <<EOF
  1741. #line 1742 "configure"
  1742. #include "confdefs.h"
  1743. #include <stdlib.h>
  1744. #include <stdarg.h>
  1745. #include <string.h>
  1746. #include <float.h>
  1747. EOF
  1748. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1749. { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1750. ac_err=`grep -v '^ *+' conftest.out`
  1751. if test -z "$ac_err"; then
  1752.   rm -rf conftest*
  1753.   ac_cv_header_stdc=yes
  1754. else
  1755.   echo "$ac_err" >&5
  1756.   rm -rf conftest*
  1757.   ac_cv_header_stdc=no
  1758. fi
  1759. rm -f conftest*
  1760.  
  1761. if test $ac_cv_header_stdc = yes; then
  1762.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1763. cat > conftest.$ac_ext <<EOF
  1764. #line 1765 "configure"
  1765. #include "confdefs.h"
  1766. #include <string.h>
  1767. EOF
  1768. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1769.   egrep "memchr" >/dev/null 2>&1; then
  1770.   :
  1771. else
  1772.   rm -rf conftest*
  1773.   ac_cv_header_stdc=no
  1774. fi
  1775. rm -f conftest*
  1776.  
  1777. fi
  1778.  
  1779. if test $ac_cv_header_stdc = yes; then
  1780.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1781. cat > conftest.$ac_ext <<EOF
  1782. #line 1783 "configure"
  1783. #include "confdefs.h"
  1784. #include <stdlib.h>
  1785. EOF
  1786. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1787.   egrep "free" >/dev/null 2>&1; then
  1788.   :
  1789. else
  1790.   rm -rf conftest*
  1791.   ac_cv_header_stdc=no
  1792. fi
  1793. rm -f conftest*
  1794.  
  1795. fi
  1796.  
  1797. if test $ac_cv_header_stdc = yes; then
  1798.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1799. if test "$cross_compiling" = yes; then
  1800.   :
  1801. else
  1802. cat > conftest.$ac_ext <<EOF
  1803. #line 1804 "configure"
  1804. #include "confdefs.h"
  1805. #include <ctype.h>
  1806. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1807. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1808. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1809. int main () { int i; for (i = 0; i < 256; i++)
  1810. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1811. exit (0); }
  1812.  
  1813. EOF
  1814. { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1815. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1816.   :
  1817. else
  1818.   ac_cv_header_stdc=no
  1819. fi
  1820. fi
  1821. rm -fr conftest*
  1822. fi
  1823. fi
  1824.  
  1825. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1826. if test $ac_cv_header_stdc = yes; then
  1827.   cat >> confdefs.h <<\EOF
  1828. #define STDC_HEADERS 1
  1829. EOF
  1830.  
  1831. fi
  1832.  
  1833. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1834. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1835.   echo $ac_n "(cached) $ac_c" 1>&6
  1836. else
  1837.   cat > conftest.$ac_ext <<EOF
  1838. #line 1839 "configure"
  1839. #include "confdefs.h"
  1840. #include <sys/types.h>
  1841. #include <sys/time.h>
  1842. #include <time.h>
  1843. int main() { return 0; }
  1844. int t() {
  1845. struct tm *tp;
  1846. ; return 0; }
  1847. EOF
  1848. if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1849.   rm -rf conftest*
  1850.   ac_cv_header_time=yes
  1851. else
  1852.   rm -rf conftest*
  1853.   ac_cv_header_time=no
  1854. fi
  1855. rm -f conftest*
  1856.  
  1857. fi
  1858.  
  1859. echo "$ac_t""$ac_cv_header_time" 1>&6
  1860. if test $ac_cv_header_time = yes; then
  1861.   cat >> confdefs.h <<\EOF
  1862. #define TIME_WITH_SYS_TIME 1
  1863. EOF
  1864.  
  1865. fi
  1866.  
  1867. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  1868. if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  1869.   echo $ac_n "(cached) $ac_c" 1>&6
  1870. else
  1871.   cat > conftest.$ac_ext <<EOF
  1872. #line 1873 "configure"
  1873. #include "confdefs.h"
  1874. #include <sys/types.h>
  1875. #include <sys/stat.h>
  1876. int main() { return 0; }
  1877. int t() {
  1878. struct stat s; s.st_blksize;
  1879. ; return 0; }
  1880. EOF
  1881. if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1882.   rm -rf conftest*
  1883.   ac_cv_struct_st_blksize=yes
  1884. else
  1885.   rm -rf conftest*
  1886.   ac_cv_struct_st_blksize=no
  1887. fi
  1888. rm -f conftest*
  1889.  
  1890. fi
  1891.  
  1892. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  1893. if test $ac_cv_struct_st_blksize = yes; then
  1894.   cat >> confdefs.h <<\EOF
  1895. #define HAVE_ST_BLKSIZE 1
  1896. EOF
  1897.  
  1898. fi
  1899.  
  1900. echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
  1901. if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
  1902.   echo $ac_n "(cached) $ac_c" 1>&6
  1903. else
  1904.   cat > conftest.$ac_ext <<EOF
  1905. #line 1906 "configure"
  1906. #include "confdefs.h"
  1907. #include <sys/types.h>
  1908. #include <sys/stat.h>
  1909. int main() { return 0; }
  1910. int t() {
  1911. struct stat s; s.st_blocks;
  1912. ; return 0; }
  1913. EOF
  1914. if { (eval echo configure:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1915.   rm -rf conftest*
  1916.   ac_cv_struct_st_blocks=yes
  1917. else
  1918.   rm -rf conftest*
  1919.   ac_cv_struct_st_blocks=no
  1920. fi
  1921. rm -f conftest*
  1922.  
  1923. fi
  1924.  
  1925. echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
  1926. if test $ac_cv_struct_st_blocks = yes; then
  1927.   cat >> confdefs.h <<\EOF
  1928. #define HAVE_ST_BLOCKS 1
  1929. EOF
  1930.  
  1931. else
  1932.   LIBOBJS="$LIBOBJS fileblocks.o"
  1933. fi
  1934.  
  1935. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1936. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1937.   echo $ac_n "(cached) $ac_c" 1>&6
  1938. else
  1939.   cat > conftest.$ac_ext <<EOF
  1940. #line 1941 "configure"
  1941. #include "confdefs.h"
  1942. #include <sys/types.h>
  1943. #include <signal.h>
  1944. #ifdef signal
  1945. #undef signal
  1946. #endif
  1947. #ifdef __cplusplus
  1948. extern "C" void (*signal (int, void (*)(int)))(int);
  1949. #else
  1950. void (*signal ()) ();
  1951. #endif
  1952.  
  1953. int main() { return 0; }
  1954. int t() {
  1955. int i;
  1956. ; return 0; }
  1957. EOF
  1958. if { (eval echo configure:1959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1959.   rm -rf conftest*
  1960.   ac_cv_type_signal=void
  1961. else
  1962.   rm -rf conftest*
  1963.   ac_cv_type_signal=int
  1964. fi
  1965. rm -f conftest*
  1966.  
  1967. fi
  1968.  
  1969. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1970. cat >> confdefs.h <<EOF
  1971. #define RETSIGTYPE $ac_cv_type_signal
  1972. EOF
  1973.  
  1974.  
  1975. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1976. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1977.   echo $ac_n "(cached) $ac_c" 1>&6
  1978. else
  1979.   cat > conftest.$ac_ext <<EOF
  1980. #line 1981 "configure"
  1981. #include "confdefs.h"
  1982. #include <sys/types.h>
  1983. #if STDC_HEADERS
  1984. #include <stdlib.h>
  1985. #endif
  1986. EOF
  1987. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1988.   egrep "size_t" >/dev/null 2>&1; then
  1989.   rm -rf conftest*
  1990.   ac_cv_type_size_t=yes
  1991. else
  1992.   rm -rf conftest*
  1993.   ac_cv_type_size_t=no
  1994. fi
  1995. rm -f conftest*
  1996.  
  1997. fi
  1998. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1999. if test $ac_cv_type_size_t = no; then
  2000.   cat >> confdefs.h <<\EOF
  2001. #define size_t unsigned
  2002. EOF
  2003.  
  2004. fi
  2005.  
  2006. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2007. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  2008.   echo $ac_n "(cached) $ac_c" 1>&6
  2009. else
  2010.   cat > conftest.$ac_ext <<EOF
  2011. #line 2012 "configure"
  2012. #include "confdefs.h"
  2013. #include <sys/types.h>
  2014. EOF
  2015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2016.   egrep "uid_t" >/dev/null 2>&1; then
  2017.   rm -rf conftest*
  2018.   ac_cv_type_uid_t=yes
  2019. else
  2020.   rm -rf conftest*
  2021.   ac_cv_type_uid_t=no
  2022. fi
  2023. rm -f conftest*
  2024.  
  2025. fi
  2026.  
  2027. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2028. if test $ac_cv_type_uid_t = no; then
  2029.   cat >> confdefs.h <<\EOF
  2030. #define uid_t int
  2031. EOF
  2032.  
  2033.   cat >> confdefs.h <<\EOF
  2034. #define gid_t int
  2035. EOF
  2036.  
  2037. fi
  2038.  
  2039.  
  2040. for ac_func in ftime getcwd isascii mkfifo strstr rexec vfork
  2041. do
  2042. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2043. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2044.   echo $ac_n "(cached) $ac_c" 1>&6
  2045. else
  2046.   cat > conftest.$ac_ext <<EOF
  2047. #line 2048 "configure"
  2048. #include "confdefs.h"
  2049. /* System header to define __stub macros and hopefully few prototypes,
  2050.     which can conflict with char $ac_func(); below.  */
  2051. #include <assert.h>
  2052. /* Override any gcc2 internal prototype to avoid an error.  */
  2053. /* We use char because int might match the return type of a gcc2
  2054.     builtin and then its argument prototype would still apply.  */
  2055. char $ac_func();
  2056.  
  2057. int main() { t(); return 0; }
  2058. int t() {
  2059.  
  2060. /* The GNU C library defines this for functions which it implements
  2061.     to always fail with ENOSYS.  Some functions are actually named
  2062.     something starting with __ and the normal name is an alias.  */
  2063. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2064. choke me
  2065. #else
  2066. $ac_func();
  2067. #endif
  2068.  
  2069. ; return 0; }
  2070. EOF
  2071. if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2072.   rm -rf conftest*
  2073.   eval "ac_cv_func_$ac_func=yes"
  2074. else
  2075.   rm -rf conftest*
  2076.   eval "ac_cv_func_$ac_func=no"
  2077. fi
  2078. rm -f conftest*
  2079.  
  2080. fi
  2081. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2082.   echo "$ac_t""yes" 1>&6
  2083.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2084.   cat >> confdefs.h <<EOF
  2085. #define $ac_tr_func 1
  2086. EOF
  2087.  
  2088. else
  2089.   echo "$ac_t""no" 1>&6
  2090. fi
  2091. done
  2092.  
  2093. echo $ac_n "checking for mknod""... $ac_c" 1>&6
  2094. if eval "test \"`echo '$''{'ac_cv_func_mknod'+set}'`\" = set"; then
  2095.   echo $ac_n "(cached) $ac_c" 1>&6
  2096. else
  2097.   cat > conftest.$ac_ext <<EOF
  2098. #line 2099 "configure"
  2099. #include "confdefs.h"
  2100. #include <sys/stat.h>
  2101. int main() { t(); return 0; }
  2102. int t() {
  2103. mknod (0, 0, 0)
  2104. ; return 0; }
  2105. EOF
  2106. if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2107.   rm -rf conftest*
  2108.   ac_cv_func_mknod=yes
  2109. else
  2110.   rm -rf conftest*
  2111.   ac_cv_func_mknod=no
  2112. fi
  2113. rm -f conftest*
  2114.  
  2115. fi
  2116.  
  2117. echo "$ac_t""$ac_cv_func_mknod" 1>&6
  2118. test $ac_cv_func_mknod = yes && cat >> confdefs.h <<\EOF
  2119. #define HAVE_MKNOD 1
  2120. EOF
  2121.  
  2122.  
  2123. #
  2124. # If -lnsl has gethostname() defined, and/or if -lsocket has an
  2125. # undefined reference to gethostname(), then we need both -lsocket
  2126. # and -lnsl.  Ideally, -lsocket and -lnsl should be tested both
  2127. # at once, we rather test -lsocket after -lnsl.  Other ideas for
  2128. # -lsocket: socket or ntohl.  For -lnsl: t_open or dial.
  2129. #
  2130. echo $ac_n "checking for -linet""... $ac_c" 1>&6
  2131. ac_lib_var=`echo inet'_'gettimeofday | tr './+\055' '__p_'`
  2132. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2133.   echo $ac_n "(cached) $ac_c" 1>&6
  2134. else
  2135.   ac_save_LIBS="$LIBS"
  2136. LIBS="-linet  $LIBS"
  2137. cat > conftest.$ac_ext <<EOF
  2138. #line 2139 "configure"
  2139. #include "confdefs.h"
  2140. /* Override any gcc2 internal prototype to avoid an error.  */
  2141. /* We use char because int might match the return type of a gcc2
  2142.     builtin and then its argument prototype would still apply.  */
  2143. char gettimeofday();
  2144.  
  2145. int main() { t(); return 0; }
  2146. int t() {
  2147. gettimeofday()
  2148. ; return 0; }
  2149. EOF
  2150. if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2151.   rm -rf conftest*
  2152.   eval "ac_cv_lib_$ac_lib_var=yes"
  2153. else
  2154.   rm -rf conftest*
  2155.   eval "ac_cv_lib_$ac_lib_var=no"
  2156. fi
  2157. rm -f conftest*
  2158. LIBS="$ac_save_LIBS"
  2159.  
  2160. fi
  2161. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2162.   echo "$ac_t""yes" 1>&6
  2163.   LIBS="$LIBS -linet"
  2164. else
  2165.   echo "$ac_t""no" 1>&6
  2166. fi
  2167.  
  2168. echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  2169. ac_lib_var=`echo nsl'_'gethostname | tr './+\055' '__p_'`
  2170. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2171.   echo $ac_n "(cached) $ac_c" 1>&6
  2172. else
  2173.   ac_save_LIBS="$LIBS"
  2174. LIBS="-lnsl  $LIBS"
  2175. cat > conftest.$ac_ext <<EOF
  2176. #line 2177 "configure"
  2177. #include "confdefs.h"
  2178. /* Override any gcc2 internal prototype to avoid an error.  */
  2179. /* We use char because int might match the return type of a gcc2
  2180.     builtin and then its argument prototype would still apply.  */
  2181. char gethostname();
  2182.  
  2183. int main() { t(); return 0; }
  2184. int t() {
  2185. gethostname()
  2186. ; return 0; }
  2187. EOF
  2188. if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2189.   rm -rf conftest*
  2190.   eval "ac_cv_lib_$ac_lib_var=yes"
  2191. else
  2192.   rm -rf conftest*
  2193.   eval "ac_cv_lib_$ac_lib_var=no"
  2194. fi
  2195. rm -f conftest*
  2196. LIBS="$ac_save_LIBS"
  2197.  
  2198. fi
  2199. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2200.   echo "$ac_t""yes" 1>&6
  2201.   LIBS="$LIBS -lnsl"
  2202. else
  2203.   echo "$ac_t""no" 1>&6
  2204. fi
  2205.  
  2206. echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  2207. ac_lib_var=`echo socket'_'setsockopt | tr './+\055' '__p_'`
  2208. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2209.   echo $ac_n "(cached) $ac_c" 1>&6
  2210. else
  2211.   ac_save_LIBS="$LIBS"
  2212. LIBS="-lsocket  $LIBS"
  2213. cat > conftest.$ac_ext <<EOF
  2214. #line 2215 "configure"
  2215. #include "confdefs.h"
  2216. /* Override any gcc2 internal prototype to avoid an error.  */
  2217. /* We use char because int might match the return type of a gcc2
  2218.     builtin and then its argument prototype would still apply.  */
  2219. char setsockopt();
  2220.  
  2221. int main() { t(); return 0; }
  2222. int t() {
  2223. setsockopt()
  2224. ; return 0; }
  2225. EOF
  2226. if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2227.   rm -rf conftest*
  2228.   eval "ac_cv_lib_$ac_lib_var=yes"
  2229. else
  2230.   rm -rf conftest*
  2231.   eval "ac_cv_lib_$ac_lib_var=no"
  2232. fi
  2233. rm -f conftest*
  2234. LIBS="$ac_save_LIBS"
  2235.  
  2236. fi
  2237. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2238.   echo "$ac_t""yes" 1>&6
  2239.   LIBS="$LIBS -lsocket"
  2240. else
  2241.   echo "$ac_t""no" 1>&6
  2242. fi
  2243.  
  2244. #
  2245. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2246. # for constant arguments.  Useless!
  2247. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2248. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2249.   echo $ac_n "(cached) $ac_c" 1>&6
  2250. else
  2251.   cat > conftest.$ac_ext <<EOF
  2252. #line 2253 "configure"
  2253. #include "confdefs.h"
  2254. #include <alloca.h>
  2255. int main() { t(); return 0; }
  2256. int t() {
  2257. char *p = alloca(2 * sizeof(int));
  2258. ; return 0; }
  2259. EOF
  2260. if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2261.   rm -rf conftest*
  2262.   ac_cv_header_alloca_h=yes
  2263. else
  2264.   rm -rf conftest*
  2265.   ac_cv_header_alloca_h=no
  2266. fi
  2267. rm -f conftest*
  2268.  
  2269. fi
  2270.  
  2271. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2272. if test $ac_cv_header_alloca_h = yes; then
  2273.   cat >> confdefs.h <<\EOF
  2274. #define HAVE_ALLOCA_H 1
  2275. EOF
  2276.  
  2277. fi
  2278.  
  2279. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2280. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  2281.   echo $ac_n "(cached) $ac_c" 1>&6
  2282. else
  2283.   cat > conftest.$ac_ext <<EOF
  2284. #line 2285 "configure"
  2285. #include "confdefs.h"
  2286.  
  2287. #ifdef __GNUC__
  2288. # define alloca __builtin_alloca
  2289. #else
  2290. # if HAVE_ALLOCA_H
  2291. #  include <alloca.h>
  2292. # else
  2293. #  ifdef _AIX
  2294.  #pragma alloca
  2295. #  else
  2296. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2297. char *alloca ();
  2298. #   endif
  2299. #  endif
  2300. # endif
  2301. #endif
  2302.  
  2303. int main() { t(); return 0; }
  2304. int t() {
  2305. char *p = (char *) alloca(1);
  2306. ; return 0; }
  2307. EOF
  2308. if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2309.   rm -rf conftest*
  2310.   ac_cv_func_alloca=yes
  2311. else
  2312.   rm -rf conftest*
  2313.   ac_cv_func_alloca=no
  2314. fi
  2315. rm -f conftest*
  2316.  
  2317. fi
  2318.  
  2319. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2320. if test $ac_cv_func_alloca = yes; then
  2321.   cat >> confdefs.h <<\EOF
  2322. #define HAVE_ALLOCA 1
  2323. EOF
  2324.  
  2325. fi
  2326.  
  2327. if test $ac_cv_func_alloca = no; then
  2328.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2329.   # that cause trouble.  Some versions do not even contain alloca or
  2330.   # contain a buggy version.  If you still want to use their alloca,
  2331.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2332.   ALLOCA=alloca.o
  2333.   cat >> confdefs.h <<\EOF
  2334. #define C_ALLOCA 1
  2335. EOF
  2336.  
  2337.  
  2338. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2339. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2340.   echo $ac_n "(cached) $ac_c" 1>&6
  2341. else
  2342.   cat > conftest.$ac_ext <<EOF
  2343. #line 2344 "configure"
  2344. #include "confdefs.h"
  2345. #if defined(CRAY) && ! defined(CRAY2)
  2346. webecray
  2347. #else
  2348. wenotbecray
  2349. #endif
  2350.  
  2351. EOF
  2352. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2353.   egrep "webecray" >/dev/null 2>&1; then
  2354.   rm -rf conftest*
  2355.   ac_cv_os_cray=yes
  2356. else
  2357.   rm -rf conftest*
  2358.   ac_cv_os_cray=no
  2359. fi
  2360. rm -f conftest*
  2361.  
  2362. fi
  2363.  
  2364. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2365. if test $ac_cv_os_cray = yes; then
  2366. for ac_func in _getb67 GETB67 getb67; do
  2367.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2368. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2369.   echo $ac_n "(cached) $ac_c" 1>&6
  2370. else
  2371.   cat > conftest.$ac_ext <<EOF
  2372. #line 2373 "configure"
  2373. #include "confdefs.h"
  2374. /* System header to define __stub macros and hopefully few prototypes,
  2375.     which can conflict with char $ac_func(); below.  */
  2376. #include <assert.h>
  2377. /* Override any gcc2 internal prototype to avoid an error.  */
  2378. /* We use char because int might match the return type of a gcc2
  2379.     builtin and then its argument prototype would still apply.  */
  2380. char $ac_func();
  2381.  
  2382. int main() { t(); return 0; }
  2383. int t() {
  2384.  
  2385. /* The GNU C library defines this for functions which it implements
  2386.     to always fail with ENOSYS.  Some functions are actually named
  2387.     something starting with __ and the normal name is an alias.  */
  2388. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2389. choke me
  2390. #else
  2391. $ac_func();
  2392. #endif
  2393.  
  2394. ; return 0; }
  2395. EOF
  2396. if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2397.   rm -rf conftest*
  2398.   eval "ac_cv_func_$ac_func=yes"
  2399. else
  2400.   rm -rf conftest*
  2401.   eval "ac_cv_func_$ac_func=no"
  2402. fi
  2403. rm -f conftest*
  2404.  
  2405. fi
  2406. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2407.   echo "$ac_t""yes" 1>&6
  2408.   cat >> confdefs.h <<EOF
  2409. #define CRAY_STACKSEG_END $ac_func
  2410. EOF
  2411.  
  2412.   break
  2413. else
  2414.   echo "$ac_t""no" 1>&6
  2415. fi
  2416.  
  2417. done
  2418. fi
  2419.  
  2420. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2421. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2422.   echo $ac_n "(cached) $ac_c" 1>&6
  2423. else
  2424.   if test "$cross_compiling" = yes; then
  2425.   ac_cv_c_stack_direction=0
  2426. else
  2427. cat > conftest.$ac_ext <<EOF
  2428. #line 2429 "configure"
  2429. #include "confdefs.h"
  2430. find_stack_direction ()
  2431. {
  2432.   static char *addr = 0;
  2433.   auto char dummy;
  2434.   if (addr == 0)
  2435.     {
  2436.       addr = &dummy;
  2437.       return find_stack_direction ();
  2438.     }
  2439.   else
  2440.     return (&dummy > addr) ? 1 : -1;
  2441. }
  2442. main ()
  2443. {
  2444.   exit (find_stack_direction() < 0);
  2445. }
  2446. EOF
  2447. { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2448. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2449.   ac_cv_c_stack_direction=1
  2450. else
  2451.   ac_cv_c_stack_direction=-1
  2452. fi
  2453. fi
  2454. rm -fr conftest*
  2455. fi
  2456.  
  2457. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2458. cat >> confdefs.h <<EOF
  2459. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2460. EOF
  2461.  
  2462. fi
  2463.  
  2464. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2465. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2466.   echo $ac_n "(cached) $ac_c" 1>&6
  2467. else
  2468.   cat > conftest.$ac_ext <<EOF
  2469. #line 2470 "configure"
  2470. #include "confdefs.h"
  2471. /* System header to define __stub macros and hopefully few prototypes,
  2472.     which can conflict with char vprintf(); below.  */
  2473. #include <assert.h>
  2474. /* Override any gcc2 internal prototype to avoid an error.  */
  2475. /* We use char because int might match the return type of a gcc2
  2476.     builtin and then its argument prototype would still apply.  */
  2477. char vprintf();
  2478.  
  2479. int main() { t(); return 0; }
  2480. int t() {
  2481.  
  2482. /* The GNU C library defines this for functions which it implements
  2483.     to always fail with ENOSYS.  Some functions are actually named
  2484.     something starting with __ and the normal name is an alias.  */
  2485. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2486. choke me
  2487. #else
  2488. vprintf();
  2489. #endif
  2490.  
  2491. ; return 0; }
  2492. EOF
  2493. if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2494.   rm -rf conftest*
  2495.   eval "ac_cv_func_vprintf=yes"
  2496. else
  2497.   rm -rf conftest*
  2498.   eval "ac_cv_func_vprintf=no"
  2499. fi
  2500. rm -f conftest*
  2501.  
  2502. fi
  2503. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2504.   echo "$ac_t""yes" 1>&6
  2505.   cat >> confdefs.h <<\EOF
  2506. #define HAVE_VPRINTF 1
  2507. EOF
  2508.  
  2509. else
  2510.   echo "$ac_t""no" 1>&6
  2511. fi
  2512.  
  2513. if test "$ac_cv_func_vprintf" != yes; then
  2514. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2515. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2516.   echo $ac_n "(cached) $ac_c" 1>&6
  2517. else
  2518.   cat > conftest.$ac_ext <<EOF
  2519. #line 2520 "configure"
  2520. #include "confdefs.h"
  2521. /* System header to define __stub macros and hopefully few prototypes,
  2522.     which can conflict with char _doprnt(); below.  */
  2523. #include <assert.h>
  2524. /* Override any gcc2 internal prototype to avoid an error.  */
  2525. /* We use char because int might match the return type of a gcc2
  2526.     builtin and then its argument prototype would still apply.  */
  2527. char _doprnt();
  2528.  
  2529. int main() { t(); return 0; }
  2530. int t() {
  2531.  
  2532. /* The GNU C library defines this for functions which it implements
  2533.     to always fail with ENOSYS.  Some functions are actually named
  2534.     something starting with __ and the normal name is an alias.  */
  2535. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2536. choke me
  2537. #else
  2538. _doprnt();
  2539. #endif
  2540.  
  2541. ; return 0; }
  2542. EOF
  2543. if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2544.   rm -rf conftest*
  2545.   eval "ac_cv_func__doprnt=yes"
  2546. else
  2547.   rm -rf conftest*
  2548.   eval "ac_cv_func__doprnt=no"
  2549. fi
  2550. rm -f conftest*
  2551.  
  2552. fi
  2553. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2554.   echo "$ac_t""yes" 1>&6
  2555.   cat >> confdefs.h <<\EOF
  2556. #define HAVE_DOPRNT 1
  2557. EOF
  2558.  
  2559. else
  2560.   echo "$ac_t""no" 1>&6
  2561. fi
  2562.  
  2563. fi
  2564.  
  2565. for ac_func in fnmatch ftruncate memset mkdir rename rmdir
  2566. do
  2567. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2568. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2569.   echo $ac_n "(cached) $ac_c" 1>&6
  2570. else
  2571.   cat > conftest.$ac_ext <<EOF
  2572. #line 2573 "configure"
  2573. #include "confdefs.h"
  2574. /* System header to define __stub macros and hopefully few prototypes,
  2575.     which can conflict with char $ac_func(); below.  */
  2576. #include <assert.h>
  2577. /* Override any gcc2 internal prototype to avoid an error.  */
  2578. /* We use char because int might match the return type of a gcc2
  2579.     builtin and then its argument prototype would still apply.  */
  2580. char $ac_func();
  2581.  
  2582. int main() { t(); return 0; }
  2583. int t() {
  2584.  
  2585. /* The GNU C library defines this for functions which it implements
  2586.     to always fail with ENOSYS.  Some functions are actually named
  2587.     something starting with __ and the normal name is an alias.  */
  2588. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2589. choke me
  2590. #else
  2591. $ac_func();
  2592. #endif
  2593.  
  2594. ; return 0; }
  2595. EOF
  2596. if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2597.   rm -rf conftest*
  2598.   eval "ac_cv_func_$ac_func=yes"
  2599. else
  2600.   rm -rf conftest*
  2601.   eval "ac_cv_func_$ac_func=no"
  2602. fi
  2603. rm -f conftest*
  2604.  
  2605. fi
  2606. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2607.   echo "$ac_t""yes" 1>&6
  2608.   :
  2609. else
  2610.   echo "$ac_t""no" 1>&6
  2611. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2612. fi
  2613.  
  2614. done
  2615.  
  2616. test "$ac_cv_func_strstr" = yes || LIBOBJS="$LIBOBJS strstr.o"
  2617.  
  2618. echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
  2619. if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
  2620.   echo "$ac_t""yes" 1>&6
  2621.   LIBOBJS="$LIBOBJS gmalloc.o"
  2622.   cat >> confdefs.h <<\EOF
  2623. #define HAVE_VALLOC 1
  2624. EOF
  2625.  
  2626. else
  2627.   echo "$ac_t""no" 1>&6
  2628.   for ac_func in valloc
  2629. do
  2630. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2631. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2632.   echo $ac_n "(cached) $ac_c" 1>&6
  2633. else
  2634.   cat > conftest.$ac_ext <<EOF
  2635. #line 2636 "configure"
  2636. #include "confdefs.h"
  2637. /* System header to define __stub macros and hopefully few prototypes,
  2638.     which can conflict with char $ac_func(); below.  */
  2639. #include <assert.h>
  2640. /* Override any gcc2 internal prototype to avoid an error.  */
  2641. /* We use char because int might match the return type of a gcc2
  2642.     builtin and then its argument prototype would still apply.  */
  2643. char $ac_func();
  2644.  
  2645. int main() { t(); return 0; }
  2646. int t() {
  2647.  
  2648. /* The GNU C library defines this for functions which it implements
  2649.     to always fail with ENOSYS.  Some functions are actually named
  2650.     something starting with __ and the normal name is an alias.  */
  2651. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2652. choke me
  2653. #else
  2654. $ac_func();
  2655. #endif
  2656.  
  2657. ; return 0; }
  2658. EOF
  2659. if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2660.   rm -rf conftest*
  2661.   eval "ac_cv_func_$ac_func=yes"
  2662. else
  2663.   rm -rf conftest*
  2664.   eval "ac_cv_func_$ac_func=no"
  2665. fi
  2666. rm -f conftest*
  2667.  
  2668. fi
  2669. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2670.   echo "$ac_t""yes" 1>&6
  2671.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2672.   cat >> confdefs.h <<EOF
  2673. #define $ac_tr_func 1
  2674. EOF
  2675.  
  2676. else
  2677.   echo "$ac_t""no" 1>&6
  2678. fi
  2679. done
  2680.  
  2681. fi
  2682.  
  2683. # The 3-argument open happens to go along with the O_* defines, which
  2684. # are easier to check for. 
  2685. echo $ac_n "checking for 3-argument open""... $ac_c" 1>&6
  2686. cat > conftest.$ac_ext <<EOF
  2687. #line 2688 "configure"
  2688. #include "confdefs.h"
  2689. #ifdef HAVE_FCNTL_H
  2690. #include <fcntl.h>
  2691. #else
  2692. #include <sys/file.h>
  2693. #endif
  2694. int main() { return 0; }
  2695. int t() {
  2696. int x = O_RDONLY
  2697. ; return 0; }
  2698. EOF
  2699. if { (eval echo configure:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2700.   rm -rf conftest*
  2701.   echo "$ac_t""yes" 1>&6
  2702. else
  2703.   rm -rf conftest*
  2704.   echo "$ac_t""no" 1>&6; cat >> confdefs.h <<\EOF
  2705. #define EMUL_OPEN3 1
  2706. EOF
  2707.  
  2708. fi
  2709. rm -f conftest*
  2710.  
  2711.  
  2712. echo $ac_n "checking for union wait""... $ac_c" 1>&6
  2713. cat > conftest.$ac_ext <<EOF
  2714. #line 2715 "configure"
  2715. #include "confdefs.h"
  2716. #include <sys/types.h>
  2717. #include <sys/wait.h>
  2718. int main() { return 0; }
  2719. int t() {
  2720. union wait status; int pid; pid = wait (&status);
  2721. #ifdef WEXITSTATUS
  2722. /* Some POSIXoid systems have both the new-style macros and the old
  2723.    union wait type, and they do not work together.  If union wait
  2724.    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
  2725. if (WEXITSTATUS (status) != 0) pid = -1;
  2726. #endif
  2727. ; return 0; }
  2728. EOF
  2729. if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2730.   rm -rf conftest*
  2731.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  2732. #define HAVE_UNION_WAIT 1
  2733. EOF
  2734.  
  2735. else
  2736.   rm -rf conftest*
  2737.   echo "$ac_t""no" 1>&6
  2738. fi
  2739. rm -f conftest*
  2740.  
  2741.  
  2742. echo $ac_n "checking for remote shell""... $ac_c" 1>&6
  2743. if eval "test \"`echo '$''{'ac_cv_path_RSH'+set}'`\" = set"; then
  2744.   echo $ac_n "(cached) $ac_c" 1>&6
  2745. else
  2746.   if test -n "$RSH"; then
  2747.   ac_cv_path_RSH=$RSH
  2748. else
  2749.   ac_cv_path_RSH=no
  2750.   for ac_file in \
  2751.     /ade/ucb/rsh /ade/bin/remsh /ade/bin/rsh /ade/bsd/rsh /ade/bin/nsh
  2752.   do
  2753.     if test -f $ac_file; then
  2754.       ac_cv_path_RSH=$ac_file
  2755.       break
  2756.     fi
  2757.   done
  2758. fi
  2759. fi
  2760.  
  2761. echo "$ac_t""$ac_cv_path_RSH" 1>&6
  2762. if test $ac_cv_path_RSH = no; then
  2763.   for ac_hdr in netdb.h
  2764. do
  2765. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2766. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2767. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2768.   echo $ac_n "(cached) $ac_c" 1>&6
  2769. else
  2770.   cat > conftest.$ac_ext <<EOF
  2771. #line 2772 "configure"
  2772. #include "confdefs.h"
  2773. #include <$ac_hdr>
  2774. EOF
  2775. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2776. { (eval echo configure:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2777. ac_err=`grep -v '^ *+' conftest.out`
  2778. if test -z "$ac_err"; then
  2779.   rm -rf conftest*
  2780.   eval "ac_cv_header_$ac_safe=yes"
  2781. else
  2782.   echo "$ac_err" >&5
  2783.   rm -rf conftest*
  2784.   eval "ac_cv_header_$ac_safe=no"
  2785. fi
  2786. rm -f conftest*
  2787. fi
  2788. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2789.   echo "$ac_t""yes" 1>&6
  2790.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2791.   cat >> confdefs.h <<EOF
  2792. #define $ac_tr_hdr 1
  2793. EOF
  2794.  
  2795. else
  2796.   echo "$ac_t""no" 1>&6
  2797. fi
  2798. done
  2799.  
  2800. else
  2801.   cat >> confdefs.h <<EOF
  2802. #define REMOTE_SHELL "$ac_cv_path_RSH"
  2803. EOF
  2804.  
  2805. fi
  2806.  
  2807. echo $ac_n "checking for default archive""... $ac_c" 1>&6
  2808.  
  2809. if test -z "$DEFAULT_ARCHIVE"; then
  2810.   DEFAULT_ARCHIVE=-
  2811. else
  2812.   if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
  2813.     echo "configure: warning: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" 1>&2
  2814.   fi
  2815.   # Look for DEFTAPE in <sys/mtio.h>.  Rearrange, here.  FIXME.
  2816.   case $DEFAULT_ARCHIVE in
  2817.     *[0-7][lmh])
  2818.       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7][lmh]$//'`
  2819.       cat >> confdefs.h <<EOF
  2820. #define DEVICE_PREFIX "$device_prefix"
  2821. EOF
  2822.  
  2823.       cat >> confdefs.h <<\EOF
  2824. #define DENSITY_LETTER 1
  2825. EOF
  2826.  
  2827.       ;;
  2828.     *[0-7])
  2829.       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7]$//'`
  2830.       cat >> confdefs.h <<EOF
  2831. #define DEVICE_PREFIX "$device_prefix"
  2832. EOF
  2833.  
  2834.       ;;
  2835.   esac
  2836. fi
  2837. cat >> confdefs.h <<EOF
  2838. #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
  2839. EOF
  2840.  
  2841. echo "$ac_t""$DEFAULT_ARCHIVE" 1>&6
  2842.  
  2843. echo $ac_n "checking for default blocking""... $ac_c" 1>&6
  2844. DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
  2845. cat >> confdefs.h <<EOF
  2846. #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
  2847. EOF
  2848.  
  2849. echo "$ac_t""$DEFAULT_BLOCKING" 1>&6
  2850.  
  2851. echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  2852. # Check whether --with-dmalloc or --without-dmalloc was given.
  2853. if test "${with_dmalloc+set}" = set; then
  2854.   withval="$with_dmalloc"
  2855.   if test "$withval" = yes; then
  2856.   echo "$ac_t""yes" 1>&6
  2857.   cat >> confdefs.h <<\EOF
  2858. #define WITH_DMALLOC 1
  2859. EOF
  2860.  
  2861.   LIBS="$LIBS -ldmalloc"
  2862.   LDFLAGS="$LDFLAGS -g"
  2863. else
  2864.   echo "$ac_t""no" 1>&6
  2865. fi
  2866. else
  2867.   echo "$ac_t""no" 1>&6
  2868. fi
  2869.  
  2870.  
  2871. echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
  2872. # Check whether --with-regex or --without-regex was given.
  2873. if test "${with_regex+set}" = set; then
  2874.   withval="$with_regex"
  2875.   if test "$withval" = yes; then
  2876.   ac_with_regex=1
  2877.   echo "$ac_t""regex" 1>&6
  2878.   cat >> confdefs.h <<\EOF
  2879. #define WITH_REGEX 1
  2880. EOF
  2881.  
  2882.   LIBOBJS="$LIBOBJS regex.o"
  2883. fi
  2884. fi
  2885.  
  2886. if test -z "$ac_with_regex"; then
  2887.   echo "$ac_t""rx" 1>&6
  2888.   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
  2889. if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
  2890.   echo $ac_n "(cached) $ac_c" 1>&6
  2891. else
  2892.   cat > conftest.$ac_ext <<EOF
  2893. #line 2894 "configure"
  2894. #include "confdefs.h"
  2895. /* System header to define __stub macros and hopefully few prototypes,
  2896.     which can conflict with char re_rx_search(); below.  */
  2897. #include <assert.h>
  2898. /* Override any gcc2 internal prototype to avoid an error.  */
  2899. /* We use char because int might match the return type of a gcc2
  2900.     builtin and then its argument prototype would still apply.  */
  2901. char re_rx_search();
  2902.  
  2903. int main() { t(); return 0; }
  2904. int t() {
  2905.  
  2906. /* The GNU C library defines this for functions which it implements
  2907.     to always fail with ENOSYS.  Some functions are actually named
  2908.     something starting with __ and the normal name is an alias.  */
  2909. #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
  2910. choke me
  2911. #else
  2912. re_rx_search();
  2913. #endif
  2914.  
  2915. ; return 0; }
  2916. EOF
  2917. if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2918.   rm -rf conftest*
  2919.   eval "ac_cv_func_re_rx_search=yes"
  2920. else
  2921.   rm -rf conftest*
  2922.   eval "ac_cv_func_re_rx_search=no"
  2923. fi
  2924. rm -f conftest*
  2925.  
  2926. fi
  2927. if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
  2928.   echo "$ac_t""yes" 1>&6
  2929.   :
  2930. else
  2931.   echo "$ac_t""no" 1>&6
  2932. LIBOBJS="$LIBOBJS rx.o"
  2933. fi
  2934.  
  2935. fi
  2936.  
  2937.  
  2938. # ----------------------
  2939. # Beginning of NLS block.
  2940. #
  2941. for ac_hdr in locale.h nl_types.h
  2942. do
  2943. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2944. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2945. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2946.   echo $ac_n "(cached) $ac_c" 1>&6
  2947. else
  2948.   cat > conftest.$ac_ext <<EOF
  2949. #line 2950 "configure"
  2950. #include "confdefs.h"
  2951. #include <$ac_hdr>
  2952. EOF
  2953. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2954. { (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2955. ac_err=`grep -v '^ *+' conftest.out`
  2956. if test -z "$ac_err"; then
  2957.   rm -rf conftest*
  2958.   eval "ac_cv_header_$ac_safe=yes"
  2959. else
  2960.   echo "$ac_err" >&5
  2961.   rm -rf conftest*
  2962.   eval "ac_cv_header_$ac_safe=no"
  2963. fi
  2964. rm -f conftest*
  2965. fi
  2966. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2967.   echo "$ac_t""yes" 1>&6
  2968.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2969.   cat >> confdefs.h <<EOF
  2970. #define $ac_tr_hdr 1
  2971. EOF
  2972.  
  2973. else
  2974.   echo "$ac_t""no" 1>&6
  2975. fi
  2976. done
  2977.  
  2978. for ac_func in setlocale
  2979. do
  2980. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2981. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2982.   echo $ac_n "(cached) $ac_c" 1>&6
  2983. else
  2984.   cat > conftest.$ac_ext <<EOF
  2985. #line 2986 "configure"
  2986. #include "confdefs.h"
  2987. /* System header to define __stub macros and hopefully few prototypes,
  2988.     which can conflict with char $ac_func(); below.  */
  2989. #include <assert.h>
  2990. /* Override any gcc2 internal prototype to avoid an error.  */
  2991. /* We use char because int might match the return type of a gcc2
  2992.     builtin and then its argument prototype would still apply.  */
  2993. char $ac_func();
  2994.  
  2995. int main() { t(); return 0; }
  2996. int t() {
  2997.  
  2998. /* The GNU C library defines this for functions which it implements
  2999.     to always fail with ENOSYS.  Some functions are actually named
  3000.     something starting with __ and the normal name is an alias.  */
  3001. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3002. choke me
  3003. #else
  3004. $ac_func();
  3005. #endif
  3006.  
  3007. ; return 0; }
  3008. EOF
  3009. if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3010.   rm -rf conftest*
  3011.   eval "ac_cv_func_$ac_func=yes"
  3012. else
  3013.   rm -rf conftest*
  3014.   eval "ac_cv_func_$ac_func=no"
  3015. fi
  3016. rm -f conftest*
  3017.  
  3018. fi
  3019. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3020.   echo "$ac_t""yes" 1>&6
  3021.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3022.   cat >> confdefs.h <<EOF
  3023. #define $ac_tr_func 1
  3024. EOF
  3025.  
  3026. else
  3027.   echo "$ac_t""no" 1>&6
  3028. fi
  3029. done
  3030.  
  3031.  
  3032. if test $ac_cv_header_locale_h = yes; then
  3033.   echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  3034.   if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  3035.   echo $ac_n "(cached) $ac_c" 1>&6
  3036. else
  3037.   cat > conftest.$ac_ext <<EOF
  3038. #line 3039 "configure"
  3039. #include "confdefs.h"
  3040. #include <locale.h>
  3041. int main() { t(); return 0; }
  3042. int t() {
  3043. return LC_MESSAGES
  3044. ; return 0; }
  3045. EOF
  3046. if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3047.   rm -rf conftest*
  3048.   ud_cv_val_LC_MESSAGES=yes
  3049. else
  3050.   rm -rf conftest*
  3051.   ud_cv_val_LC_MESSAGES=no
  3052. fi
  3053. rm -f conftest*
  3054.  
  3055. fi
  3056.  
  3057.   echo "$ac_t""$ud_cv_val_LC_MESSAGES" 1>&6
  3058.   if test $ud_cv_val_LC_MESSAGES = yes; then
  3059.     cat >> confdefs.h <<\EOF
  3060. #define HAVE_LC_MESSAGES 1
  3061. EOF
  3062.  
  3063.   fi
  3064. fi
  3065.  
  3066. echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  3067.     # Check whether --enable-nls or --disable-nls was given.
  3068. if test "${enable_nls+set}" = set; then
  3069.   enableval="$enable_nls"
  3070.   nls_cv_use_nls=$enableval
  3071. else
  3072.   nls_cv_use_nls=yes
  3073. fi
  3074.  
  3075.   echo "$ac_t""$nls_cv_use_nls" 1>&6
  3076.  
  3077.     if test "$nls_cv_use_nls" = "yes"; then
  3078.     cat >> confdefs.h <<\EOF
  3079. #define ENABLE_NLS 1
  3080. EOF
  3081.  
  3082.     echo $ac_n "checking for explicitly using GNU gettext""... $ac_c" 1>&6
  3083.     # Check whether --with-gnu-nls or --without-gnu-nls was given.
  3084. if test "${with_gnu_nls+set}" = set; then
  3085.   withval="$with_gnu_nls"
  3086.   nls_cv_force_use_gnu_nls=$withval
  3087. else
  3088.   nls_cv_force_use_gnu_nls=no
  3089. fi
  3090.  
  3091.     echo "$ac_t""$nls_cv_force_use_gnu_nls" 1>&6
  3092.  
  3093.     if test "$nls_cv_force_use_gnu_nls" = "yes"; then
  3094.       nls_cv_use_gnu_nls=yes
  3095.     else
  3096.                         echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  3097. ac_lib_var=`echo intl'_'main | tr './+\055' '__p_'`
  3098. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3099.   echo $ac_n "(cached) $ac_c" 1>&6
  3100. else
  3101.   ac_save_LIBS="$LIBS"
  3102. LIBS="-lintl  $LIBS"
  3103. cat > conftest.$ac_ext <<EOF
  3104. #line 3105 "configure"
  3105. #include "confdefs.h"
  3106.  
  3107. int main() { t(); return 0; }
  3108. int t() {
  3109. main()
  3110. ; return 0; }
  3111. EOF
  3112. if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3113.   rm -rf conftest*
  3114.   eval "ac_cv_lib_$ac_lib_var=yes"
  3115. else
  3116.   rm -rf conftest*
  3117.   eval "ac_cv_lib_$ac_lib_var=no"
  3118. fi
  3119. rm -f conftest*
  3120. LIBS="$ac_save_LIBS"
  3121.  
  3122. fi
  3123. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3124.   echo "$ac_t""yes" 1>&6
  3125.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  3126.   cat >> confdefs.h <<EOF
  3127. #define $ac_tr_lib 1
  3128. EOF
  3129.  
  3130.   LIBS="-lintl $LIBS"
  3131.  
  3132. else
  3133.   echo "$ac_t""no" 1>&6
  3134. fi
  3135.  
  3136.       echo $ac_n "checking for -li""... $ac_c" 1>&6
  3137. ac_lib_var=`echo i'_'main | tr './+\055' '__p_'`
  3138. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3139.   echo $ac_n "(cached) $ac_c" 1>&6
  3140. else
  3141.   ac_save_LIBS="$LIBS"
  3142. LIBS="-li  $LIBS"
  3143. cat > conftest.$ac_ext <<EOF
  3144. #line 3145 "configure"
  3145. #include "confdefs.h"
  3146.  
  3147. int main() { t(); return 0; }
  3148. int t() {
  3149. main()
  3150. ; return 0; }
  3151. EOF
  3152. if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3153.   rm -rf conftest*
  3154.   eval "ac_cv_lib_$ac_lib_var=yes"
  3155. else
  3156.   rm -rf conftest*
  3157.   eval "ac_cv_lib_$ac_lib_var=no"
  3158. fi
  3159. rm -f conftest*
  3160. LIBS="$ac_save_LIBS"
  3161.  
  3162. fi
  3163. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3164.   echo "$ac_t""yes" 1>&6
  3165.     ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  3166.   cat >> confdefs.h <<EOF
  3167. #define $ac_tr_lib 1
  3168. EOF
  3169.  
  3170.   LIBS="-li $LIBS"
  3171.  
  3172. else
  3173.   echo "$ac_t""no" 1>&6
  3174. fi
  3175.  
  3176.       echo $ac_n "checking for gettext""... $ac_c" 1>&6
  3177. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  3178.   echo $ac_n "(cached) $ac_c" 1>&6
  3179. else
  3180.   cat > conftest.$ac_ext <<EOF
  3181. #line 3182 "configure"
  3182. #include "confdefs.h"
  3183. /* System header to define __stub macros and hopefully few prototypes,
  3184.     which can conflict with char gettext(); below.  */
  3185. #include <assert.h>
  3186. /* Override any gcc2 internal prototype to avoid an error.  */
  3187. /* We use char because int might match the return type of a gcc2
  3188.     builtin and then its argument prototype would still apply.  */
  3189. char gettext();
  3190.  
  3191. int main() { t(); return 0; }
  3192. int t() {
  3193.  
  3194. /* The GNU C library defines this for functions which it implements
  3195.     to always fail with ENOSYS.  Some functions are actually named
  3196.     something starting with __ and the normal name is an alias.  */
  3197. #if defined (__stub_gettext) || defined (__stub___gettext)
  3198. choke me
  3199. #else
  3200. gettext();
  3201. #endif
  3202.  
  3203. ; return 0; }
  3204. EOF
  3205. if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3206.   rm -rf conftest*
  3207.   eval "ac_cv_func_gettext=yes"
  3208. else
  3209.   rm -rf conftest*
  3210.   eval "ac_cv_func_gettext=no"
  3211. fi
  3212. rm -f conftest*
  3213.  
  3214. fi
  3215. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  3216.   echo "$ac_t""yes" 1>&6
  3217.   cat >> confdefs.h <<\EOF
  3218. #define HAVE_GETTEXT 1
  3219. EOF
  3220.  
  3221.          # Extract the first word of "msgfmt", so it can be a program name with args.
  3222. set dummy msgfmt; ac_word=$2
  3223. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3224. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3225.   echo $ac_n "(cached) $ac_c" 1>&6
  3226. else
  3227.   case "$MSGFMT" in
  3228.   /*)
  3229.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3230.   ;;
  3231.   *)
  3232.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3233.   for ac_dir in $PATH; do
  3234.     test -z "$ac_dir" && ac_dir=.
  3235.     if test -f $ac_dir/$ac_word; then
  3236.       ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3237.       break
  3238.     fi
  3239.   done
  3240.   IFS="$ac_save_ifs"
  3241.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3242.   ;;
  3243. esac
  3244. fi
  3245. MSGFMT="$ac_cv_path_MSGFMT"
  3246. if test -n "$MSGFMT"; then
  3247.   echo "$ac_t""$MSGFMT" 1>&6
  3248. else
  3249.   echo "$ac_t""no" 1>&6
  3250. fi
  3251.      # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3252. set dummy gmsgfmt; ac_word=$2
  3253. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3254. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3255.   echo $ac_n "(cached) $ac_c" 1>&6
  3256. else
  3257.   case "$GMSGFMT" in
  3258.   /*)
  3259.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3260.   ;;
  3261.   *)
  3262.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3263.   for ac_dir in $PATH; do
  3264.     test -z "$ac_dir" && ac_dir=.
  3265.     if test -f $ac_dir/$ac_word; then
  3266.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3267.       break
  3268.     fi
  3269.   done
  3270.   IFS="$ac_save_ifs"
  3271.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3272.   ;;
  3273. esac
  3274. fi
  3275. GMSGFMT="$ac_cv_path_GMSGFMT"
  3276. if test -n "$GMSGFMT"; then
  3277.   echo "$ac_t""$GMSGFMT" 1>&6
  3278. else
  3279.   echo "$ac_t""no" 1>&6
  3280. fi
  3281.      # Extract the first word of "xgettext", so it can be a program name with args.
  3282. set dummy xgettext; ac_word=$2
  3283. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3284. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3285.   echo $ac_n "(cached) $ac_c" 1>&6
  3286. else
  3287.   case "$XGETTEXT" in
  3288.   /*)
  3289.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3290.   ;;
  3291.   *)
  3292.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3293.   for ac_dir in $PATH; do
  3294.     test -z "$ac_dir" && ac_dir=.
  3295.     if test -f $ac_dir/$ac_word; then
  3296.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3297.       break
  3298.     fi
  3299.   done
  3300.   IFS="$ac_save_ifs"
  3301.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  3302.   ;;
  3303. esac
  3304. fi
  3305. XGETTEXT="$ac_cv_path_XGETTEXT"
  3306. if test -n "$XGETTEXT"; then
  3307.   echo "$ac_t""$XGETTEXT" 1>&6
  3308. else
  3309.   echo "$ac_t""no" 1>&6
  3310. fi
  3311.          INTLOBJS="\$(GETTOBJS)"
  3312.          CATOBJEXT=.mo
  3313.      DATADIRNAME=lib
  3314. else
  3315.   echo "$ac_t""no" 1>&6
  3316.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  3317. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  3318.   echo $ac_n "(cached) $ac_c" 1>&6
  3319. else
  3320.   cat > conftest.$ac_ext <<EOF
  3321. #line 3322 "configure"
  3322. #include "confdefs.h"
  3323. /* System header to define __stub macros and hopefully few prototypes,
  3324.     which can conflict with char catgets(); below.  */
  3325. #include <assert.h>
  3326. /* Override any gcc2 internal prototype to avoid an error.  */
  3327. /* We use char because int might match the return type of a gcc2
  3328.     builtin and then its argument prototype would still apply.  */
  3329. char catgets();
  3330.  
  3331. int main() { t(); return 0; }
  3332. int t() {
  3333.  
  3334. /* The GNU C library defines this for functions which it implements
  3335.     to always fail with ENOSYS.  Some functions are actually named
  3336.     something starting with __ and the normal name is an alias.  */
  3337. #if defined (__stub_catgets) || defined (__stub___catgets)
  3338. choke me
  3339. #else
  3340. catgets();
  3341. #endif
  3342.  
  3343. ; return 0; }
  3344. EOF
  3345. if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3346.   rm -rf conftest*
  3347.   eval "ac_cv_func_catgets=yes"
  3348. else
  3349.   rm -rf conftest*
  3350.   eval "ac_cv_func_catgets=no"
  3351. fi
  3352. rm -f conftest*
  3353.  
  3354. fi
  3355. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  3356.   echo "$ac_t""yes" 1>&6
  3357.   cat >> confdefs.h <<\EOF
  3358. #define HAVE_CATGETS 1
  3359. EOF
  3360.  
  3361.            INTLOBJS="\$(CATOBJS)"
  3362.            # Extract the first word of "gencat", so it can be a program name with args.
  3363. set dummy gencat; ac_word=$2
  3364. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3365. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  3366.   echo $ac_n "(cached) $ac_c" 1>&6
  3367. else
  3368.   case "$GENCAT" in
  3369.   /*)
  3370.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3371.   ;;
  3372.   *)
  3373.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3374.   for ac_dir in $PATH; do
  3375.     test -z "$ac_dir" && ac_dir=.
  3376.     if test -f $ac_dir/$ac_word; then
  3377.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  3378.       break
  3379.     fi
  3380.   done
  3381.   IFS="$ac_save_ifs"
  3382.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="echo gencat"
  3383.   ;;
  3384. esac
  3385. fi
  3386. GENCAT="$ac_cv_path_GENCAT"
  3387. if test -n "$GENCAT"; then
  3388.   echo "$ac_t""$GENCAT" 1>&6
  3389. else
  3390.   echo "$ac_t""no" 1>&6
  3391. fi
  3392.        for ac_prog in gmsgfmt msgfmt
  3393. do
  3394. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3395. set dummy $ac_prog; ac_word=$2
  3396. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3397. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3398.   echo $ac_n "(cached) $ac_c" 1>&6
  3399. else
  3400.   case "$GMSGFMT" in
  3401.   /*)
  3402.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3403.   ;;
  3404.   *)
  3405.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3406.   for ac_dir in $PATH; do
  3407.     test -z "$ac_dir" && ac_dir=.
  3408.     if test -f $ac_dir/$ac_word; then
  3409.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3410.       break
  3411.     fi
  3412.   done
  3413.   IFS="$ac_save_ifs"
  3414.   ;;
  3415. esac
  3416. fi
  3417. GMSGFMT="$ac_cv_path_GMSGFMT"
  3418. if test -n "$GMSGFMT"; then
  3419.   echo "$ac_t""$GMSGFMT" 1>&6
  3420. else
  3421.   echo "$ac_t""no" 1>&6
  3422. fi
  3423.  
  3424. test -n "$GMSGFMT" && break
  3425. done
  3426. test -n "$GMSGFMT" || GMSGFMT="msgfmt"
  3427.        # Extract the first word of "xgettext", so it can be a program name with args.
  3428. set dummy xgettext; ac_word=$2
  3429. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3430. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3431.   echo $ac_n "(cached) $ac_c" 1>&6
  3432. else
  3433.   case "$XGETTEXT" in
  3434.   /*)
  3435.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3436.   ;;
  3437.   *)
  3438.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3439.   for ac_dir in $PATH; do
  3440.     test -z "$ac_dir" && ac_dir=.
  3441.     if test -f $ac_dir/$ac_word; then
  3442.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3443.       break
  3444.     fi
  3445.   done
  3446.   IFS="$ac_save_ifs"
  3447.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  3448.   ;;
  3449. esac
  3450. fi
  3451. XGETTEXT="$ac_cv_path_XGETTEXT"
  3452. if test -n "$XGETTEXT"; then
  3453.   echo "$ac_t""$XGETTEXT" 1>&6
  3454. else
  3455.   echo "$ac_t""no" 1>&6
  3456. fi
  3457.            CATOBJEXT=.cat
  3458.        DATADIRNAME=lib
  3459.        INTLDEPS="../intl/libintl.a"
  3460.        INTLLIBS=$INTLDEPS
  3461.        nls_cv_header_intl=intl/libintl.h
  3462.        nls_cv_header_libgt=intl/libgettext.h
  3463. else
  3464.   echo "$ac_t""no" 1>&6
  3465.           echo "$ac_t""using GNU gettext" 1>&6
  3466.        nls_cv_use_gnu_nls=yes
  3467. fi
  3468.  
  3469. fi
  3470.  
  3471.     fi
  3472.     if test "$nls_cv_use_gnu_nls" = "yes"; then
  3473.             INTLOBJS="\$(GETTOBJS)"
  3474.       # Extract the first word of "msgfmt", so it can be a program name with args.
  3475. set dummy msgfmt; ac_word=$2
  3476. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3477. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3478.   echo $ac_n "(cached) $ac_c" 1>&6
  3479. else
  3480.   case "$MSGFMT" in
  3481.   /*)
  3482.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3483.   ;;
  3484.   *)
  3485.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3486.   for ac_dir in $PATH; do
  3487.     test -z "$ac_dir" && ac_dir=.
  3488.     if test -f $ac_dir/$ac_word; then
  3489.       ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3490.       break
  3491.     fi
  3492.   done
  3493.   IFS="$ac_save_ifs"
  3494.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3495.   ;;
  3496. esac
  3497. fi
  3498. MSGFMT="$ac_cv_path_MSGFMT"
  3499. if test -n "$MSGFMT"; then
  3500.   echo "$ac_t""$MSGFMT" 1>&6
  3501. else
  3502.   echo "$ac_t""no" 1>&6
  3503. fi
  3504.       # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3505. set dummy gmsgfmt; ac_word=$2
  3506. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3507. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3508.   echo $ac_n "(cached) $ac_c" 1>&6
  3509. else
  3510.   case "$GMSGFMT" in
  3511.   /*)
  3512.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3513.   ;;
  3514.   *)
  3515.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3516.   for ac_dir in $PATH; do
  3517.     test -z "$ac_dir" && ac_dir=.
  3518.     if test -f $ac_dir/$ac_word; then
  3519.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3520.       break
  3521.     fi
  3522.   done
  3523.   IFS="$ac_save_ifs"
  3524.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3525.   ;;
  3526. esac
  3527. fi
  3528. GMSGFMT="$ac_cv_path_GMSGFMT"
  3529. if test -n "$GMSGFMT"; then
  3530.   echo "$ac_t""$GMSGFMT" 1>&6
  3531. else
  3532.   echo "$ac_t""no" 1>&6
  3533. fi
  3534.       # Extract the first word of "xgettext", so it can be a program name with args.
  3535. set dummy xgettext; ac_word=$2
  3536. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3537. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3538.   echo $ac_n "(cached) $ac_c" 1>&6
  3539. else
  3540.   case "$XGETTEXT" in
  3541.   /*)
  3542.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3543.   ;;
  3544.   *)
  3545.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3546.   for ac_dir in $PATH; do
  3547.     test -z "$ac_dir" && ac_dir=.
  3548.     if test -f $ac_dir/$ac_word; then
  3549.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3550.       break
  3551.     fi
  3552.   done
  3553.   IFS="$ac_save_ifs"
  3554.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  3555.   ;;
  3556. esac
  3557. fi
  3558. XGETTEXT="$ac_cv_path_XGETTEXT"
  3559. if test -n "$XGETTEXT"; then
  3560.   echo "$ac_t""$XGETTEXT" 1>&6
  3561. else
  3562.   echo "$ac_t""no" 1>&6
  3563. fi
  3564.       
  3565.       CATOBJEXT=.gmo
  3566.       DATADIRNAME=share
  3567.       INTLDEPS="../intl/libintl.a"
  3568.       INTLLIBS=$INTLDEPS
  3569.       nls_cv_header_intl=intl/libintl.h
  3570.       nls_cv_header_libgt=intl/libgettext.h
  3571.     fi
  3572.     # We need to process the intl/ directory
  3573.     INTLSUB=intl
  3574.   fi
  3575.   
  3576.   if test -n "$CATOBJEXT"; then
  3577.     for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3578.   fi
  3579.   
  3580.   
  3581.   
  3582.   
  3583.   
  3584.   
  3585.  
  3586.  
  3587. if test "x$prefix" = xNONE; then
  3588.   cat >> confdefs.h <<EOF
  3589. #define STD_INC_PATH "$ac_default_prefix/share/nls/src"
  3590. EOF
  3591.  
  3592. else
  3593.   cat >> confdefs.h <<EOF
  3594. #define STD_INC_PATH "$prefix/share/nls/src"
  3595. EOF
  3596.  
  3597. fi
  3598.  
  3599. for file in `cat $srcdir/po/POTFILES`; do
  3600.   POTFILES="$POTFILES ../$file"
  3601. done
  3602.  
  3603. for ac_hdr in values.h
  3604. do
  3605. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  3606. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3607. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3608.   echo $ac_n "(cached) $ac_c" 1>&6
  3609. else
  3610.   cat > conftest.$ac_ext <<EOF
  3611. #line 3612 "configure"
  3612. #include "confdefs.h"
  3613. #include <$ac_hdr>
  3614. EOF
  3615. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3616. { (eval echo configure:3617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3617. ac_err=`grep -v '^ *+' conftest.out`
  3618. if test -z "$ac_err"; then
  3619.   rm -rf conftest*
  3620.   eval "ac_cv_header_$ac_safe=yes"
  3621. else
  3622.   echo "$ac_err" >&5
  3623.   rm -rf conftest*
  3624.   eval "ac_cv_header_$ac_safe=no"
  3625. fi
  3626. rm -f conftest*
  3627. fi
  3628. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3629.   echo "$ac_t""yes" 1>&6
  3630.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  3631.   cat >> confdefs.h <<EOF
  3632. #define $ac_tr_hdr 1
  3633. EOF
  3634.  
  3635. else
  3636.   echo "$ac_t""no" 1>&6
  3637. fi
  3638. done
  3639.  
  3640. echo $ac_n "checking for inline""... $ac_c" 1>&6
  3641. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  3642.   echo $ac_n "(cached) $ac_c" 1>&6
  3643. else
  3644.   ac_cv_c_inline=no
  3645. for ac_kw in inline __inline__ __inline; do
  3646.   cat > conftest.$ac_ext <<EOF
  3647. #line 3648 "configure"
  3648. #include "confdefs.h"
  3649.  
  3650. int main() { return 0; }
  3651. int t() {
  3652. } $ac_kw foo() {
  3653. ; return 0; }
  3654. EOF
  3655. if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3656.   rm -rf conftest*
  3657.   ac_cv_c_inline=$ac_kw; break
  3658. fi
  3659. rm -f conftest*
  3660.  
  3661. done
  3662.  
  3663. fi
  3664.  
  3665. echo "$ac_t""$ac_cv_c_inline" 1>&6
  3666. case "$ac_cv_c_inline" in
  3667.   inline | yes) ;;
  3668.   no) cat >> confdefs.h <<\EOF
  3669. #define inline 
  3670. EOF
  3671.  ;;
  3672.   *)  cat >> confdefs.h <<EOF
  3673. #define inline $ac_cv_c_inline
  3674. EOF
  3675.  ;;
  3676. esac
  3677.  
  3678. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  3679. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  3680.   echo $ac_n "(cached) $ac_c" 1>&6
  3681. else
  3682.   cat > conftest.$ac_ext <<EOF
  3683. #line 3684 "configure"
  3684. #include "confdefs.h"
  3685. #include <sys/types.h>
  3686. #if STDC_HEADERS
  3687. #include <stdlib.h>
  3688. #endif
  3689. EOF
  3690. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3691.   egrep "off_t" >/dev/null 2>&1; then
  3692.   rm -rf conftest*
  3693.   ac_cv_type_off_t=yes
  3694. else
  3695.   rm -rf conftest*
  3696.   ac_cv_type_off_t=no
  3697. fi
  3698. rm -f conftest*
  3699.  
  3700. fi
  3701. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  3702. if test $ac_cv_type_off_t = no; then
  3703.   cat >> confdefs.h <<\EOF
  3704. #define off_t long
  3705. EOF
  3706.  
  3707. fi
  3708.  
  3709. echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
  3710. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
  3711.   echo $ac_n "(cached) $ac_c" 1>&6
  3712. else
  3713.   if test "$cross_compiling" = yes; then
  3714.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3715. else
  3716. cat > conftest.$ac_ext <<EOF
  3717. #line 3718 "configure"
  3718. #include "confdefs.h"
  3719. #include <stdio.h>
  3720. main()
  3721. {
  3722.   FILE *f=fopen("conftestval", "w");
  3723.   if (!f) exit(1);
  3724.   fprintf(f, "%d\n", sizeof(unsigned short));
  3725.   exit(0);
  3726. }
  3727. EOF
  3728. { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3729. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3730.   ac_cv_sizeof_unsigned_short=`cat conftestval`
  3731. else
  3732.   ac_cv_sizeof_unsigned_short=0
  3733. fi
  3734. fi
  3735. rm -fr conftest*
  3736. fi
  3737. echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
  3738. cat >> confdefs.h <<EOF
  3739. #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  3740. EOF
  3741.  
  3742.  
  3743. echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
  3744. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
  3745.   echo $ac_n "(cached) $ac_c" 1>&6
  3746. else
  3747.   if test "$cross_compiling" = yes; then
  3748.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3749. else
  3750. cat > conftest.$ac_ext <<EOF
  3751. #line 3752 "configure"
  3752. #include "confdefs.h"
  3753. #include <stdio.h>
  3754. main()
  3755. {
  3756.   FILE *f=fopen("conftestval", "w");
  3757.   if (!f) exit(1);
  3758.   fprintf(f, "%d\n", sizeof(unsigned int));
  3759.   exit(0);
  3760. }
  3761. EOF
  3762. { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3763. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3764.   ac_cv_sizeof_unsigned_int=`cat conftestval`
  3765. else
  3766.   ac_cv_sizeof_unsigned_int=0
  3767. fi
  3768. fi
  3769. rm -fr conftest*
  3770. fi
  3771. echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
  3772. cat >> confdefs.h <<EOF
  3773. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  3774. EOF
  3775.  
  3776.  
  3777. for ac_func in valloc getpagesize
  3778. do
  3779. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3780. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3781.   echo $ac_n "(cached) $ac_c" 1>&6
  3782. else
  3783.   cat > conftest.$ac_ext <<EOF
  3784. #line 3785 "configure"
  3785. #include "confdefs.h"
  3786. /* System header to define __stub macros and hopefully few prototypes,
  3787.     which can conflict with char $ac_func(); below.  */
  3788. #include <assert.h>
  3789. /* Override any gcc2 internal prototype to avoid an error.  */
  3790. /* We use char because int might match the return type of a gcc2
  3791.     builtin and then its argument prototype would still apply.  */
  3792. char $ac_func();
  3793.  
  3794. int main() { t(); return 0; }
  3795. int t() {
  3796.  
  3797. /* The GNU C library defines this for functions which it implements
  3798.     to always fail with ENOSYS.  Some functions are actually named
  3799.     something starting with __ and the normal name is an alias.  */
  3800. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3801. choke me
  3802. #else
  3803. $ac_func();
  3804. #endif
  3805.  
  3806. ; return 0; }
  3807. EOF
  3808. if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3809.   rm -rf conftest*
  3810.   eval "ac_cv_func_$ac_func=yes"
  3811. else
  3812.   rm -rf conftest*
  3813.   eval "ac_cv_func_$ac_func=no"
  3814. fi
  3815. rm -f conftest*
  3816.  
  3817. fi
  3818. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3819.   echo "$ac_t""yes" 1>&6
  3820.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3821.   cat >> confdefs.h <<EOF
  3822. #define $ac_tr_func 1
  3823. EOF
  3824.  
  3825. else
  3826.   echo "$ac_t""no" 1>&6
  3827. fi
  3828. done
  3829.  
  3830. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  3831. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  3832.   echo $ac_n "(cached) $ac_c" 1>&6
  3833. else
  3834.   if test "$cross_compiling" = yes; then
  3835.   ac_cv_func_mmap=no
  3836. else
  3837. cat > conftest.$ac_ext <<EOF
  3838. #line 3839 "configure"
  3839. #include "confdefs.h"
  3840.  
  3841. /* Thanks to Mike Haertel and Jim Avera for this test. */
  3842. #include <sys/types.h>
  3843. #include <fcntl.h>
  3844. #include <sys/mman.h>
  3845.  
  3846. #ifndef HAVE_GETPAGESIZE
  3847. # include <sys/param.h>
  3848. # ifdef EXEC_PAGESIZE
  3849. #  define getpagesize() EXEC_PAGESIZE
  3850. # else
  3851. #  ifdef NBPG
  3852. #   define getpagesize() NBPG * CLSIZE
  3853. #   ifndef CLSIZE
  3854. #    define CLSIZE 1
  3855. #   endif
  3856. #  else
  3857. #   ifdef NBPC
  3858. #    define getpagesize() NBPC
  3859. #   else
  3860. #    define getpagesize() PAGESIZE /* SVR4 */
  3861. #   endif
  3862. #  endif
  3863. # endif
  3864. #endif
  3865.  
  3866. #ifndef HAVE_VALLOC
  3867. # define valloc malloc
  3868. #endif
  3869.  
  3870. #ifdef __cplusplus
  3871. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  3872. #else
  3873. char *valloc(), *malloc();
  3874. #endif
  3875.  
  3876. int
  3877. main()
  3878. {
  3879.   char *buf1, *buf2, *buf3;
  3880.   int i = getpagesize(), j;
  3881.   int i2 = i * 2;
  3882.   int fd;
  3883.  
  3884.   buf1 = (char *)valloc(i2);
  3885.   buf2 = (char *)valloc(i);
  3886.   buf3 = (char *)malloc(i2);
  3887.   for (j = 0; j < i2; ++j)
  3888.     *(buf1 + j) = rand();
  3889.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  3890.   write(fd, buf1, i2);
  3891.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  3892.   for (j = 0; j < i; ++j)
  3893.     if (*(buf1 + j) != *(buf2 + j))
  3894.       exit(1);
  3895.   lseek(fd, (long)i, 0);
  3896.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  3897.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  3898.   lseek(fd, (long)0, 0);
  3899.   read(fd, buf3, i2);
  3900.   for (j = 0; j < i2; ++j)
  3901.     if (*(buf1 + j) != *(buf3 + j))
  3902.       exit(1);
  3903.   exit(0);
  3904. }
  3905.  
  3906. EOF
  3907. { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3908. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3909.   ac_cv_func_mmap=yes
  3910. else
  3911.   ac_cv_func_mmap=no
  3912. fi
  3913. fi
  3914. rm -fr conftest*
  3915. fi
  3916.  
  3917. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  3918. if test $ac_cv_func_mmap = yes; then
  3919.   cat >> confdefs.h <<\EOF
  3920. #define HAVE_MMAP 1
  3921. EOF
  3922.  
  3923. fi
  3924.  
  3925. for ac_func in putenv setenv
  3926. do
  3927. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3928. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3929.   echo $ac_n "(cached) $ac_c" 1>&6
  3930. else
  3931.   cat > conftest.$ac_ext <<EOF
  3932. #line 3933 "configure"
  3933. #include "confdefs.h"
  3934. /* System header to define __stub macros and hopefully few prototypes,
  3935.     which can conflict with char $ac_func(); below.  */
  3936. #include <assert.h>
  3937. /* Override any gcc2 internal prototype to avoid an error.  */
  3938. /* We use char because int might match the return type of a gcc2
  3939.     builtin and then its argument prototype would still apply.  */
  3940. char $ac_func();
  3941.  
  3942. int main() { t(); return 0; }
  3943. int t() {
  3944.  
  3945. /* The GNU C library defines this for functions which it implements
  3946.     to always fail with ENOSYS.  Some functions are actually named
  3947.     something starting with __ and the normal name is an alias.  */
  3948. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3949. choke me
  3950. #else
  3951. $ac_func();
  3952. #endif
  3953.  
  3954. ; return 0; }
  3955. EOF
  3956. if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3957.   rm -rf conftest*
  3958.   eval "ac_cv_func_$ac_func=yes"
  3959. else
  3960.   rm -rf conftest*
  3961.   eval "ac_cv_func_$ac_func=no"
  3962. fi
  3963. rm -f conftest*
  3964.  
  3965. fi
  3966. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3967.   echo "$ac_t""yes" 1>&6
  3968.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3969.   cat >> confdefs.h <<EOF
  3970. #define $ac_tr_func 1
  3971. EOF
  3972.  
  3973. else
  3974.   echo "$ac_t""no" 1>&6
  3975. fi
  3976. done
  3977.  
  3978.  
  3979. test -d intl || mkdir intl
  3980. case "$target" in
  3981.   *-linux*) cp $srcdir/intl/linux-msg.sed intl/po-to-msg.sed ;;
  3982.   *)        cp $srcdir/intl/xopen-msg.sed intl/po-to-msg.sed ;;
  3983. esac
  3984. chmod +w intl/po-to-msg.sed
  3985. if test -n "$nls_cv_header_libgt" && test -n "$nls_cv_header_intl"; then
  3986.   cp $srcdir/$nls_cv_header_libgt $nls_cv_header_intl
  3987.   chmod +w $nls_cv_header_intl
  3988. fi
  3989. #
  3990. # End of NLS block.
  3991. # -----------------
  3992.  
  3993. trap '' 1 2 15
  3994. cat > confcache <<\EOF
  3995. # This file is a shell script that caches the results of configure
  3996. # tests run on this system so they can be shared between configure
  3997. # scripts and configure runs.  It is not useful on other systems.
  3998. # If it contains results you don't want to keep, you may remove or edit it.
  3999. #
  4000. # By default, configure uses ./config.cache as the cache file,
  4001. # creating it if it does not exist already.  You can give configure
  4002. # the --cache-file=FILE option to use a different cache file; that is
  4003. # what configure does when it calls configure scripts in
  4004. # subdirectories, so they share the cache.
  4005. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  4006. # config.status only pays attention to the cache file if you give it the
  4007. # --recheck option to rerun configure.
  4008. #
  4009. EOF
  4010. # Ultrix sh set writes to stderr and can't be redirected directly,
  4011. # and sets the high bit in the cache file unless we assign to the vars.
  4012. (set) 2>&1 |
  4013.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  4014.   >> confcache
  4015. if cmp -s $cache_file confcache; then
  4016.   :
  4017. else
  4018.   if test -w $cache_file; then
  4019.     echo "updating cache $cache_file"
  4020.     cat confcache > $cache_file
  4021.   else
  4022.     echo "not updating unwritable cache $cache_file"
  4023.   fi
  4024. fi
  4025. rm -f confcache
  4026.  
  4027. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  4028.  
  4029. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4030. # Let make expand exec_prefix.
  4031. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4032.  
  4033. # Any assignment to VPATH causes Sun make to only execute
  4034. # the first set of double-colon rules, so remove it if not needed.
  4035. # If there is a colon in the path, we need to keep it.
  4036. if test "x$srcdir" = x.; then
  4037.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  4038. fi
  4039.  
  4040. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  4041.  
  4042. DEFS=-DHAVE_CONFIG_H
  4043.  
  4044. # Without the "./", some shells look in PATH for config.status.
  4045. : ${CONFIG_STATUS=./config.status}
  4046.  
  4047. echo creating $CONFIG_STATUS
  4048. # Some systems, like AmigaOS, won't allow you to remove a script that is
  4049. # being executed, so just move it out of the way instead.
  4050. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  4051. cat > $CONFIG_STATUS <<EOF
  4052. #! /bin/sh
  4053. # Generated automatically by configure.
  4054. # Run this file to recreate the current configuration.
  4055. # This directory was configured as follows,
  4056. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4057. #
  4058. # $0 $ac_configure_args
  4059. #
  4060. # Compiler output produced by configure, useful for debugging
  4061. # configure, is in ./config.log if it exists.
  4062.  
  4063. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  4064. for ac_option
  4065. do
  4066.   case "\$ac_option" in
  4067.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4068.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  4069.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  4070.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4071.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  4072.     exit 0 ;;
  4073.   -help | --help | --hel | --he | --h)
  4074.     echo "\$ac_cs_usage"; exit 0 ;;
  4075.   *) echo "\$ac_cs_usage"; exit 1 ;;
  4076.   esac
  4077. done
  4078.  
  4079. ac_given_srcdir=$srcdir
  4080. ac_given_INSTALL="$INSTALL"
  4081.  
  4082. trap 'rm -fr `echo "Makefile doc/Makefile intl/Makefile lib/Makefile po/Makefile \
  4083. src/Makefile scripts/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  4084. EOF
  4085. cat >> $CONFIG_STATUS <<EOF
  4086.  
  4087. # Protect against being on the right side of a sed subst in config.status.
  4088. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  4089.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  4090. $ac_vpsub
  4091. $extrasub
  4092. s%@CFLAGS@%$CFLAGS%g
  4093. s%@CPPFLAGS@%$CPPFLAGS%g
  4094. s%@CXXFLAGS@%$CXXFLAGS%g
  4095. s%@DEFS@%$DEFS%g
  4096. s%@LDFLAGS@%$LDFLAGS%g
  4097. s%@LIBS@%$LIBS%g
  4098. s%@exec_prefix@%$exec_prefix%g
  4099. s%@prefix@%$prefix%g
  4100. s%@program_transform_name@%$program_transform_name%g
  4101. s%@bindir@%$bindir%g
  4102. s%@sbindir@%$sbindir%g
  4103. s%@libexecdir@%$libexecdir%g
  4104. s%@datadir@%$datadir%g
  4105. s%@sysconfdir@%$sysconfdir%g
  4106. s%@sharedstatedir@%$sharedstatedir%g
  4107. s%@localstatedir@%$localstatedir%g
  4108. s%@libdir@%$libdir%g
  4109. s%@includedir@%$includedir%g
  4110. s%@oldincludedir@%$oldincludedir%g
  4111. s%@infodir@%$infodir%g
  4112. s%@guidedir@%$guidedir%g
  4113. s%@psdir@%$psdir%g
  4114. s%@dvidir@%$dvidir%g
  4115. s%@mandir@%$mandir%g
  4116. s%@host@%$host%g
  4117. s%@host_alias@%$host_alias%g
  4118. s%@host_cpu@%$host_cpu%g
  4119. s%@host_vendor@%$host_vendor%g
  4120. s%@host_os@%$host_os%g
  4121. s%@target@%$target%g
  4122. s%@target_alias@%$target_alias%g
  4123. s%@target_cpu@%$target_cpu%g
  4124. s%@target_vendor@%$target_vendor%g
  4125. s%@target_os@%$target_os%g
  4126. s%@build@%$build%g
  4127. s%@build_alias@%$build_alias%g
  4128. s%@build_cpu@%$build_cpu%g
  4129. s%@build_vendor@%$build_vendor%g
  4130. s%@build_os@%$build_os%g
  4131. s%@PACKAGE@%$PACKAGE%g
  4132. s%@VERSION@%$VERSION%g
  4133. s%@PROGRAMS@%$PROGRAMS%g
  4134. s%@CC@%$CC%g
  4135. s%@CPP@%$CPP%g
  4136. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  4137. s%@INSTALL_DATA@%$INSTALL_DATA%g
  4138. s%@SET_MAKE@%$SET_MAKE%g
  4139. s%@RANLIB@%$RANLIB%g
  4140. s%@YACC@%$YACC%g
  4141. s%@U@%$U%g
  4142. s%@ANSI2KNR@%$ANSI2KNR%g
  4143. s%@LIBOBJS@%$LIBOBJS%g
  4144. s%@ALLOCA@%$ALLOCA%g
  4145. s%@MSGFMT@%$MSGFMT%g
  4146. s%@GMSGFMT@%$GMSGFMT%g
  4147. s%@XGETTEXT@%$XGETTEXT%g
  4148. s%@GENCAT@%$GENCAT%g
  4149. s%@INTLOBJS@%$INTLOBJS%g
  4150. s%@CATALOGS@%$CATALOGS%g
  4151. s%@CATOBJEXT@%$CATOBJEXT%g
  4152. s%@DATADIRNAME@%$DATADIRNAME%g
  4153. s%@INTLDEPS@%$INTLDEPS%g
  4154. s%@INTLLIBS@%$INTLLIBS%g
  4155. s%@INTLSUB@%$INTLSUB%g
  4156. s%@POTFILES@%$POTFILES%g
  4157.  
  4158. CEOF
  4159. EOF
  4160. cat >> $CONFIG_STATUS <<EOF
  4161.  
  4162. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile intl/Makefile lib/Makefile po/Makefile \
  4163. src/Makefile scripts/Makefile"}
  4164. EOF
  4165. cat >> $CONFIG_STATUS <<\EOF
  4166. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4167.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  4168.   case "$ac_file" in
  4169.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4170.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4171.   *) ac_file_in="${ac_file}.in" ;;
  4172.   esac
  4173.  
  4174.   # Adjust relative srcdir, etc. for subdirectories.
  4175.  
  4176.   # Remove last slash and all that follows it.  Not all systems have dirname.
  4177.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4178.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4179.     # The file is in a subdirectory.
  4180.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  4181.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  4182.     # A "../" for each directory in $ac_dir_suffix.
  4183.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4184.   else
  4185.     ac_dir_suffix= ac_dots=
  4186.   fi
  4187.  
  4188.   case "$ac_given_srcdir" in
  4189.   .)  srcdir=.
  4190.       if test -z "$ac_dots"; then top_srcdir=.
  4191.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4192.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4193.   *) # Relative path.
  4194.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4195.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4196.   esac
  4197.  
  4198.   case "$ac_given_INSTALL" in
  4199.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  4200.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  4201.   esac
  4202.   echo creating "$ac_file"
  4203.   rm -f "$ac_file"
  4204.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4205.   case "$ac_file" in
  4206.   *Makefile*) ac_comsub="1i\\
  4207. # $configure_input" ;;
  4208.   *) ac_comsub= ;;
  4209.   esac
  4210.   sed -e "$ac_comsub
  4211. s%@configure_input@%$configure_input%g
  4212. s%@srcdir@%$srcdir%g
  4213. s%@top_srcdir@%$top_srcdir%g
  4214. s%@INSTALL@%$INSTALL%g
  4215. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  4216. fi; done
  4217. rm -f conftest.subs
  4218.  
  4219. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4220. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4221. #
  4222. # ac_d sets the value in "#define NAME VALUE" lines.
  4223. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  4224. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  4225. ac_dC='\3'
  4226. ac_dD='%g'
  4227. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4228. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4229. ac_uB='\([     ]\)%\1#\2define\3'
  4230. ac_uC=' '
  4231. ac_uD='\4%g'
  4232. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4233. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4234. ac_eB='$%\1#\2define\3'
  4235. ac_eC=' '
  4236. ac_eD='%g'
  4237.  
  4238. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  4239. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4240.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  4241.   case "$ac_file" in
  4242.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4243.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4244.   *) ac_file_in="${ac_file}.in" ;;
  4245.   esac
  4246.  
  4247.   echo creating $ac_file
  4248.  
  4249.   rm -f conftest.frag conftest.in conftest.out
  4250.   cp $ac_given_srcdir/$ac_file_in conftest.in
  4251.  
  4252. EOF
  4253.  
  4254. # Transform confdefs.h into a sed script conftest.vals that substitutes
  4255. # the proper values into config.h.in to produce config.h.  And first:
  4256. # Protect against being on the right side of a sed subst in config.status.
  4257. # Protect against being in an unquoted here document in config.status.
  4258. rm -f conftest.vals
  4259. cat > conftest.hdr <<\EOF
  4260. s/[\\&%]/\\&/g
  4261. s%[\\$`]%\\&%g
  4262. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  4263. s%ac_d%ac_u%gp
  4264. s%ac_u%ac_e%gp
  4265. EOF
  4266. sed -n -f conftest.hdr confdefs.h > conftest.vals
  4267. rm -f conftest.hdr
  4268.  
  4269. # This sed command replaces #undef with comments.  This is necessary, for
  4270. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4271. # on some systems where configure will not decide to define it.
  4272. cat >> conftest.vals <<\EOF
  4273. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4274. EOF
  4275.  
  4276. # Break up conftest.vals because some shells have a limit on
  4277. # the size of here documents, and old seds have small limits too.
  4278. # Maximum number of lines to put in a single here document.
  4279. ac_max_here_lines=12
  4280.  
  4281. rm -f conftest.tail
  4282. while :
  4283. do
  4284.   ac_lines=`grep -c . conftest.vals`
  4285.   # grep -c gives empty output for an empty file on some AIX systems.
  4286.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4287.   # Write a limited-size here document to conftest.frag.
  4288.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4289.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4290.   echo 'CEOF
  4291.   sed -f conftest.frag conftest.in > conftest.out
  4292.   rm -f conftest.in
  4293.   mv conftest.out conftest.in
  4294. ' >> $CONFIG_STATUS
  4295.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4296.   rm -f conftest.vals
  4297.   mv conftest.tail conftest.vals
  4298. done
  4299. rm -f conftest.vals
  4300.  
  4301. cat >> $CONFIG_STATUS <<\EOF
  4302.   rm -f conftest.frag conftest.h
  4303.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4304.   cat conftest.in >> conftest.h
  4305.   rm -f conftest.in
  4306.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4307.     echo "$ac_file is unchanged"
  4308.     rm -f conftest.h
  4309.   else
  4310.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4311.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4312.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4313.       # The file is in a subdirectory.
  4314.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4315.     fi
  4316.     rm -f $ac_file
  4317.     mv conftest.h $ac_file
  4318.   fi
  4319. fi; done
  4320.  
  4321.  
  4322. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  4323. exit 0
  4324. EOF
  4325. chmod +x $CONFIG_STATUS
  4326. rm -f CONFIG.STATUS.old
  4327. rm -fr confdefs* $ac_clean_files
  4328. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  4329.  
  4330.