home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / inetutils-1.2-src.tgz / tar.out / fsf / inetutils / glob / configure < prev    next >
Text File  |  1996-10-01  |  49KB  |  1,699 lines

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