home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ecc-1.2.1-src.tgz / tar.out / fsf / ecc / configure next >
Text File  |  1996-10-01  |  32KB  |  945 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_default_prefix=/ade
  15.  
  16. # Initialize some variables set by options.
  17. # The variables have the same names as the options, with
  18. # dashes changed to underlines.
  19. build=NONE
  20. cache_file=./config.cache
  21. exec_prefix=NONE
  22. host=NONE
  23. no_create=
  24. nonopt=NONE
  25. no_recursion=
  26. prefix=NONE
  27. program_prefix=NONE
  28. program_suffix=NONE
  29. program_transform_name=s,x,x,
  30. silent=
  31. site=
  32. srcdir=
  33. target=NONE
  34. verbose=
  35. x_includes=NONE
  36. x_libraries=NONE
  37. bindir='${exec_prefix}/bin'
  38. sbindir='${exec_prefix}/sbin'
  39. libexecdir='${exec_prefix}/libexec'
  40. datadir='${prefix}/share'
  41. sysconfdir='${prefix}/etc'
  42. sharedstatedir='${prefix}/com'
  43. localstatedir='${prefix}/var'
  44. libdir='${exec_prefix}/lib'
  45. includedir='${prefix}/include'
  46. oldincludedir='/usr/include'
  47. infodir='${prefix}/info'
  48. guidedir='${prefix}/guide'
  49. psdir='${prefix}/ps'
  50. dvidir='${prefix}/dvi'
  51. mandir='${prefix}/man'
  52.  
  53. # Initialize some other variables.
  54. subdirs=
  55. MFLAGS= MAKEFLAGS=
  56.  
  57. ac_prev=
  58. for ac_option
  59. do
  60.  
  61.   # If the previous option needs an argument, assign it.
  62.   if test -n "$ac_prev"; then
  63.     eval "$ac_prev=\$ac_option"
  64.     ac_prev=
  65.     continue
  66.   fi
  67.  
  68.   case "$ac_option" in
  69.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  70.   *) ac_optarg= ;;
  71.   esac
  72.  
  73.   # Accept the important Cygnus configure options, so we can diagnose typos.
  74.  
  75.   case "$ac_option" in
  76.  
  77.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  78.     ac_prev=bindir ;;
  79.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  80.     bindir="$ac_optarg" ;;
  81.  
  82.   -build | --build | --buil | --bui | --bu)
  83.     ac_prev=build ;;
  84.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  85.     build="$ac_optarg" ;;
  86.  
  87.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  88.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  89.     ac_prev=cache_file ;;
  90.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  91.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  92.     cache_file="$ac_optarg" ;;
  93.  
  94.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  95.     ac_prev=datadir ;;
  96.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  97.   | --da=*)
  98.     datadir="$ac_optarg" ;;
  99.  
  100.   -disable-* | --disable-*)
  101.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  102.     # Reject names that are not valid shell variable names.
  103.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  104.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105.     fi
  106.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107.     eval "enable_${ac_feature}=no" ;;
  108.  
  109.   -enable-* | --enable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     case "$ac_option" in
  117.       *=*) ;;
  118.       *) ac_optarg=yes ;;
  119.     esac
  120.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  121.  
  122.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  123.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  124.   | --exec | --exe | --ex)
  125.     ac_prev=exec_prefix ;;
  126.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  127.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  128.   | --exec=* | --exe=* | --ex=*)
  129.     exec_prefix="$ac_optarg" ;;
  130.  
  131.   -gas | --gas | --ga | --g)
  132.     # Obsolete; use --with-gas.
  133.     with_gas=yes ;;
  134.  
  135.   -help | --help | --hel | --he)
  136.     # Omit some internal or obsolete options to make the list less imposing.
  137.     # This message is too long to be a string in the A/UX 3.1 sh.
  138.     cat << EOF
  139. Usage: configure [options] [host]
  140. Options: [defaults in brackets after descriptions]
  141. Configuration:
  142.   --cache-file=FILE       cache test results in FILE
  143.   --help                  print this message
  144.   --no-create             do not create output files
  145.   --quiet, --silent       do not print \`checking...' messages
  146.   --version               print the version of autoconf that created configure
  147. Directory and file names:
  148.   --prefix=PREFIX         install architecture-independent files in PREFIX
  149.                           [$ac_default_prefix]
  150.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  151.                           [same as prefix]
  152.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  153.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  154.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  155.   --datadir=DIR           read-only architecture-independent data in DIR
  156.                           [PREFIX/share]
  157.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  158.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  159.                           [PREFIX/com]
  160.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  161.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  162.   --includedir=DIR        C header files in DIR [PREFIX/include]
  163.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  164.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  165.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  166.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  167.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  168.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  169.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  170.   --program-prefix=PREFIX prepend PREFIX to installed program names
  171.   --program-suffix=SUFFIX append SUFFIX to installed program names
  172.   --program-transform-name=PROGRAM
  173.                           run sed PROGRAM on installed program names
  174. EOF
  175.     cat << EOF
  176. Host type:
  177.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  178.   --host=HOST             configure for HOST [guessed]
  179.   --target=TARGET         configure for TARGET [TARGET=HOST]
  180. Features and packages:
  181.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  182.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  183.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  184.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  185.   --x-includes=DIR        X include files are in DIR
  186.   --x-libraries=DIR       X library files are in DIR
  187. EOF
  188.     if test -n "$ac_help"; then
  189.       echo "--enable and --with options recognized:$ac_help"
  190.     fi
  191.     exit 0 ;;
  192.  
  193.   -host | --host | --hos | --ho)
  194.     ac_prev=host ;;
  195.   -host=* | --host=* | --hos=* | --ho=*)
  196.     host="$ac_optarg" ;;
  197.  
  198.   -includedir | --includedir | --includedi | --included | --include \
  199.   | --includ | --inclu | --incl | --inc)
  200.     ac_prev=includedir ;;
  201.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  202.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  203.     includedir="$ac_optarg" ;;
  204.  
  205.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  206.     ac_prev=infodir ;;
  207.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  208.     infodir="$ac_optarg" ;;
  209.  
  210.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  211.    ac_prev=guidedir ;;
  212.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  213.  
  214.  -psdir | --psdir | --psdi | --psd | --ps)
  215.    ac_prev=psdir ;;
  216.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  217.  
  218.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  219.    ac_prev=dvidir ;;
  220.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  221.  
  222.   -libdir | --libdir | --libdi | --libd)
  223.     ac_prev=libdir ;;
  224.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  225.     libdir="$ac_optarg" ;;
  226.  
  227.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  228.   | --libexe | --libex | --libe)
  229.     ac_prev=libexecdir ;;
  230.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  231.   | --libexe=* | --libex=* | --libe=*)
  232.     libexecdir="$ac_optarg" ;;
  233.  
  234.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  235.   | --localstate | --localstat | --localsta | --localst \
  236.   | --locals | --local | --loca | --loc | --lo)
  237.     ac_prev=localstatedir ;;
  238.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  239.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  240.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  241.     localstatedir="$ac_optarg" ;;
  242.  
  243.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  244.     ac_prev=mandir ;;
  245.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  246.     mandir="$ac_optarg" ;;
  247.  
  248.   -nfp | --nfp | --nf)
  249.     # Obsolete; use --without-fp.
  250.     with_fp=no ;;
  251.  
  252.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  253.   | --no-cr | --no-c)
  254.     no_create=yes ;;
  255.  
  256.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  257.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  258.     no_recursion=yes ;;
  259.  
  260.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  261.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  262.   | --oldin | --oldi | --old | --ol | --o)
  263.     ac_prev=oldincludedir ;;
  264.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  265.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  266.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  267.     oldincludedir="$ac_optarg" ;;
  268.  
  269.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  270.     ac_prev=prefix ;;
  271.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  272.     prefix="$ac_optarg" ;;
  273.  
  274.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  275.   | --program-pre | --program-pr | --program-p)
  276.     ac_prev=program_prefix ;;
  277.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  278.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  279.     program_prefix="$ac_optarg" ;;
  280.  
  281.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  282.   | --program-suf | --program-su | --program-s)
  283.     ac_prev=program_suffix ;;
  284.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  285.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  286.     program_suffix="$ac_optarg" ;;
  287.  
  288.   -program-transform-name | --program-transform-name \
  289.   | --program-transform-nam | --program-transform-na \
  290.   | --program-transform-n | --program-transform- \
  291.   | --program-transform | --program-transfor \
  292.   | --program-transfo | --program-transf \
  293.   | --program-trans | --program-tran \
  294.   | --progr-tra | --program-tr | --program-t)
  295.     ac_prev=program_transform_name ;;
  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.     program_transform_name="$ac_optarg" ;;
  304.  
  305.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  306.   | -silent | --silent | --silen | --sile | --sil)
  307.     silent=yes ;;
  308.  
  309.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  310.     ac_prev=sbindir ;;
  311.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  312.   | --sbi=* | --sb=*)
  313.     sbindir="$ac_optarg" ;;
  314.  
  315.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  316.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  317.   | --sharedst | --shareds | --shared | --share | --shar \
  318.   | --sha | --sh)
  319.     ac_prev=sharedstatedir ;;
  320.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  321.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  322.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  323.   | --sha=* | --sh=*)
  324.     sharedstatedir="$ac_optarg" ;;
  325.  
  326.   -site | --site | --sit)
  327.     ac_prev=site ;;
  328.   -site=* | --site=* | --sit=*)
  329.     site="$ac_optarg" ;;
  330.  
  331.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  332.     ac_prev=srcdir ;;
  333.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  334.     srcdir="$ac_optarg" ;;
  335.  
  336.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  337.   | --syscon | --sysco | --sysc | --sys | --sy)
  338.     ac_prev=sysconfdir ;;
  339.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  340.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  341.     sysconfdir="$ac_optarg" ;;
  342.  
  343.   -target | --target | --targe | --targ | --tar | --ta | --t)
  344.     ac_prev=target ;;
  345.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  346.     target="$ac_optarg" ;;
  347.  
  348.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  349.     verbose=yes ;;
  350.  
  351.   -version | --version | --versio | --versi | --vers)
  352.     echo "configure generated by autoconf version 2.10"
  353.     exit 0 ;;
  354.  
  355.   -with-* | --with-*)
  356.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  357.     # Reject names that are not valid shell variable names.
  358.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  359.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  360.     fi
  361.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  362.     case "$ac_option" in
  363.       *=*) ;;
  364.       *) ac_optarg=yes ;;
  365.     esac
  366.     eval "with_${ac_package}='$ac_optarg'" ;;
  367.  
  368.   -without-* | --without-*)
  369.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  370.     # Reject names that are not valid shell variable names.
  371.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  372.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  373.     fi
  374.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  375.     eval "with_${ac_package}=no" ;;
  376.  
  377.   --x)
  378.     # Obsolete; use --with-x.
  379.     with_x=yes ;;
  380.  
  381.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  382.   | --x-incl | --x-inc | --x-in | --x-i)
  383.     ac_prev=x_includes ;;
  384.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  385.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  386.     x_includes="$ac_optarg" ;;
  387.  
  388.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  389.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  390.     ac_prev=x_libraries ;;
  391.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  392.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  393.     x_libraries="$ac_optarg" ;;
  394.  
  395.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  396.     ;;
  397.  
  398.   *)
  399.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  400.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  401.     fi
  402.     if test "x$nonopt" != xNONE; then
  403.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  404.     fi
  405.     nonopt="$ac_option"
  406.     ;;
  407.  
  408.   esac
  409. done
  410.  
  411. if test -n "$ac_prev"; then
  412.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  413. fi
  414.  
  415. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  416.  
  417. # File descriptor usage:
  418. # 0 standard input
  419. # 1 file creation
  420. # 2 errors and warnings
  421. # 3 some systems may open it to /dev/tty
  422. # 4 used on the Kubota Titan
  423. # 6 checking for... messages and results
  424. # 5 compiler messages saved in config.log
  425. if test "$silent" = yes; then
  426.   exec 6>/dev/null
  427. else
  428.   exec 6>&1
  429. fi
  430. exec 5>./config.log
  431.  
  432. echo "\
  433. This file contains any messages produced by compilers while
  434. running configure, to aid debugging if configure makes a mistake.
  435. " 1>&5
  436.  
  437. # Strip out --no-create and --no-recursion so they do not pile up.
  438. # Also quote any args containing shell metacharacters.
  439. ac_configure_args=
  440. for ac_arg
  441. do
  442.   case "$ac_arg" in
  443.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  444.   | --no-cr | --no-c) ;;
  445.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  446.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  447.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  448.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  449.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  450.   esac
  451. done
  452.  
  453. # NLS nuisances.
  454. # Only set LANG and LC_ALL to C if already set.
  455. # These must not be set unconditionally because not all systems understand
  456. # e.g. LANG=C (notably SCO).
  457. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  458. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  459.  
  460. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  461. rm -rf conftest* confdefs.h
  462. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  463. echo > confdefs.h
  464.  
  465. # A filename unique to this package, relative to the directory that
  466. # configure is in, which we can look for to find out if srcdir is correct.
  467. ac_unique_file=ecc.c
  468.  
  469. # Find the source files, if location was not specified.
  470. if test -z "$srcdir"; then
  471.   ac_srcdir_defaulted=yes
  472.   # Try the directory containing this script, then its parent.
  473.   ac_prog=$0
  474.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  475.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  476.   srcdir=$ac_confdir
  477.   if test ! -r $srcdir/$ac_unique_file; then
  478.     srcdir=..
  479.   fi
  480. else
  481.   ac_srcdir_defaulted=no
  482. fi
  483. if test ! -r $srcdir/$ac_unique_file; then
  484.   if test "$ac_srcdir_defaulted" = yes; then
  485.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  486.   else
  487.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  488.   fi
  489. fi
  490. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  491.  
  492. # Prefer explicitly selected file to automatically selected ones.
  493. if test -z "$CONFIG_SITE"; then
  494.   if test "x$prefix" != xNONE; then
  495.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  496.   else
  497.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  498.   fi
  499. fi
  500. for ac_site_file in $CONFIG_SITE; do
  501.   if test -r "$ac_site_file"; then
  502.     echo "loading site script $ac_site_file"
  503.     . "$ac_site_file"
  504.   fi
  505. done
  506.  
  507. if test -r "$cache_file"; then
  508.   echo "loading cache $cache_file"
  509.   . $cache_file
  510. else
  511.   echo "creating cache $cache_file"
  512.   > $cache_file
  513. fi
  514.  
  515. ac_ext=c
  516. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  517. ac_cpp='$CPP $CPPFLAGS'
  518. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  519. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  520.  
  521. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  522.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  523.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  524.     ac_n= ac_c='
  525. ' ac_t='    '
  526.   else
  527.     ac_n=-n ac_c= ac_t=
  528.   fi
  529. else
  530.   ac_n= ac_c='\c' ac_t=
  531. fi
  532.  
  533.  
  534.  
  535. # Extract the first word of "gcc", so it can be a program name with args.
  536. set dummy gcc; ac_word=$2
  537. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  538. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  539.   echo $ac_n "(cached) $ac_c" 1>&6
  540. else
  541.   if test -n "$CC"; then
  542.   ac_cv_prog_CC="$CC" # Let the user override the test.
  543. else
  544.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  545.   for ac_dir in $PATH; do
  546.     test -z "$ac_dir" && ac_dir=.
  547.     if test -f $ac_dir/$ac_word; then
  548.       ac_cv_prog_CC="gcc"
  549.       break
  550.     fi
  551.   done
  552.   IFS="$ac_save_ifs"
  553. fi
  554. fi
  555. CC="$ac_cv_prog_CC"
  556. if test -n "$CC"; then
  557.   echo "$ac_t""$CC" 1>&6
  558. else
  559.   echo "$ac_t""no" 1>&6
  560. fi
  561.  
  562. if test -z "$CC"; then
  563.   # Extract the first word of "cc", so it can be a program name with args.
  564. set dummy cc; ac_word=$2
  565. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  566. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  567.   echo $ac_n "(cached) $ac_c" 1>&6
  568. else
  569.   if test -n "$CC"; then
  570.   ac_cv_prog_CC="$CC" # Let the user override the test.
  571. else
  572.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  573.   ac_prog_rejected=no
  574.   for ac_dir in $PATH; do
  575.     test -z "$ac_dir" && ac_dir=.
  576.     if test -f $ac_dir/$ac_word; then
  577.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  578.         ac_prog_rejected=yes
  579.     continue
  580.       fi
  581.       ac_cv_prog_CC="cc"
  582.       break
  583.     fi
  584.   done
  585.   IFS="$ac_save_ifs"
  586. if test $ac_prog_rejected = yes; then
  587.   # We found a bogon in the path, so make sure we never use it.
  588.   set dummy $ac_cv_prog_CC
  589.   shift
  590.   if test $# -gt 0; then
  591.     # We chose a different compiler from the bogus one.
  592.     # However, it has the same basename, so the bogon will be chosen
  593.     # first if we set CC to just the basename; use the full file name.
  594.     shift
  595.     set dummy "$ac_dir/$ac_word" "$@"
  596.     shift
  597.     ac_cv_prog_CC="$@"
  598.   fi
  599. fi
  600. fi
  601. fi
  602. CC="$ac_cv_prog_CC"
  603. if test -n "$CC"; then
  604.   echo "$ac_t""$CC" 1>&6
  605. else
  606.   echo "$ac_t""no" 1>&6
  607. fi
  608.  
  609.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  610. fi
  611.  
  612. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  613. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  614.   echo $ac_n "(cached) $ac_c" 1>&6
  615. else
  616.   cat > conftest.c <<EOF
  617. #ifdef __GNUC__
  618.   yes;
  619. #endif
  620. EOF
  621. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  622.   ac_cv_prog_gcc=yes
  623. else
  624.   ac_cv_prog_gcc=no
  625. fi
  626. fi
  627.  
  628. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  629. if test $ac_cv_prog_gcc = yes; then
  630.   GCC=yes
  631.   if test "${CFLAGS+set}" != set; then
  632.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  633. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  634.   echo $ac_n "(cached) $ac_c" 1>&6
  635. else
  636.   echo 'void f(){}' > conftest.c
  637. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  638.   ac_cv_prog_gcc_g=yes
  639. else
  640.   ac_cv_prog_gcc_g=no
  641. fi
  642. rm -f conftest*
  643.  
  644. fi
  645.  
  646. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  647.     if test $ac_cv_prog_gcc_g = yes; then
  648.       CFLAGS="-g -O2"
  649.     else
  650.       CFLAGS="-O2"
  651.     fi
  652.   fi
  653. else
  654.   GCC=
  655.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  656. fi
  657.  
  658. ac_aux_dir=
  659. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  660.   if test -f $ac_dir/install-sh; then
  661.     ac_aux_dir=$ac_dir
  662.     ac_install_sh="$ac_aux_dir/install-sh -c"
  663.     break
  664.   elif test -f $ac_dir/install.sh; then
  665.     ac_aux_dir=$ac_dir
  666.     ac_install_sh="$ac_aux_dir/install.sh -c"
  667.     break
  668.   fi
  669. done
  670. if test -z "$ac_aux_dir"; then
  671.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  672. fi
  673. ac_config_guess=$ac_aux_dir/config.guess
  674. ac_config_sub=$ac_aux_dir/config.sub
  675. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  676.  
  677. # Find a good install program.  We prefer a C program (faster),
  678. # so one script is as good as another.  But avoid the broken or
  679. # incompatible versions:
  680. # SysV /etc/install, /usr/sbin/install
  681. # SunOS /usr/etc/install
  682. # IRIX /sbin/install
  683. # AIX /bin/install
  684. # AmigaOS /c/install
  685. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  686. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  687. # ./install, which can be erroneously created by make from ./install.sh.
  688. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  689. if test -z "$INSTALL"; then
  690. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  691.   echo $ac_n "(cached) $ac_c" 1>&6
  692. else
  693.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  694.   for ac_dir in $PATH; do
  695.     # Account for people who put trailing slashes in PATH elements.
  696.     case "$ac_dir/" in
  697.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  698.     *)
  699.       # OSF1 and SCO ODT 3.0 have their own names for install.
  700.       for ac_prog in ginstall installbsd scoinst install; do
  701.         if test -f $ac_dir/$ac_prog; then
  702.       if test $ac_prog = install &&
  703.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  704.         # AIX install.  It has an incompatible calling convention.
  705.         # OSF/1 installbsd also uses dspmsg, but is usable.
  706.         :
  707.       else
  708.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  709.         break 2
  710.       fi
  711.     fi
  712.       done
  713.       ;;
  714.     esac
  715.   done
  716.   IFS="$ac_save_ifs"
  717.  
  718. fi
  719.   if test "${ac_cv_path_install+set}" = set; then
  720.     INSTALL="$ac_cv_path_install"
  721.   else
  722.     # As a last resort, use the slow shell script.  We don't cache a
  723.     # path for INSTALL within a source directory, because that will
  724.     # break other packages using the cache if that directory is
  725.     # removed, or if the path is relative.
  726.     INSTALL="$ac_install_sh"
  727.   fi
  728. fi
  729. echo "$ac_t""$INSTALL" 1>&6
  730.  
  731. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  732. # It thinks the first close brace ends the variable substitution.
  733. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  734.  
  735. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  736.  
  737. trap '' 1 2 15
  738. cat > confcache <<\EOF
  739. # This file is a shell script that caches the results of configure
  740. # tests run on this system so they can be shared between configure
  741. # scripts and configure runs.  It is not useful on other systems.
  742. # If it contains results you don't want to keep, you may remove or edit it.
  743. #
  744. # By default, configure uses ./config.cache as the cache file,
  745. # creating it if it does not exist already.  You can give configure
  746. # the --cache-file=FILE option to use a different cache file; that is
  747. # what configure does when it calls configure scripts in
  748. # subdirectories, so they share the cache.
  749. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  750. # config.status only pays attention to the cache file if you give it the
  751. # --recheck option to rerun configure.
  752. #
  753. EOF
  754. # Ultrix sh set writes to stderr and can't be redirected directly,
  755. # and sets the high bit in the cache file unless we assign to the vars.
  756. (set) 2>&1 |
  757.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  758.   >> confcache
  759. if cmp -s $cache_file confcache; then
  760.   :
  761. else
  762.   if test -w $cache_file; then
  763.     echo "updating cache $cache_file"
  764.     cat confcache > $cache_file
  765.   else
  766.     echo "not updating unwritable cache $cache_file"
  767.   fi
  768. fi
  769. rm -f confcache
  770.  
  771. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  772.  
  773. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  774. # Let make expand exec_prefix.
  775. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  776.  
  777. # Any assignment to VPATH causes Sun make to only execute
  778. # the first set of double-colon rules, so remove it if not needed.
  779. # If there is a colon in the path, we need to keep it.
  780. if test "x$srcdir" = x.; then
  781.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  782. fi
  783.  
  784. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  785.  
  786. # Transform confdefs.h into DEFS.
  787. # Protect against shell expansion while executing Makefile rules.
  788. # Protect against Makefile macro expansion.
  789. cat > conftest.defs <<\EOF
  790. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  791. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  792. s%\[%\\&%g
  793. s%\]%\\&%g
  794. s%\$%$$%g
  795. EOF
  796. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  797. rm -f conftest.defs
  798.  
  799.  
  800. # Without the "./", some shells look in PATH for config.status.
  801. : ${CONFIG_STATUS=./config.status}
  802.  
  803. echo creating $CONFIG_STATUS
  804. # Some systems, like AmigaOS, won't allow you to remove a script that is
  805. # being executed, so just move it out of the way instead.
  806. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  807. cat > $CONFIG_STATUS <<EOF
  808. #! /bin/sh
  809. # Generated automatically by configure.
  810. # Run this file to recreate the current configuration.
  811. # This directory was configured as follows,
  812. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  813. #
  814. # $0 $ac_configure_args
  815. #
  816. # Compiler output produced by configure, useful for debugging
  817. # configure, is in ./config.log if it exists.
  818.  
  819. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  820. for ac_option
  821. do
  822.   case "\$ac_option" in
  823.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  824.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  825.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  826.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  827.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  828.     exit 0 ;;
  829.   -help | --help | --hel | --he | --h)
  830.     echo "\$ac_cs_usage"; exit 0 ;;
  831.   *) echo "\$ac_cs_usage"; exit 1 ;;
  832.   esac
  833. done
  834.  
  835. ac_given_srcdir=$srcdir
  836. ac_given_INSTALL="$INSTALL"
  837.  
  838. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  839. EOF
  840. cat >> $CONFIG_STATUS <<EOF
  841.  
  842. # Protect against being on the right side of a sed subst in config.status.
  843. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  844.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  845. $ac_vpsub
  846. $extrasub
  847. s%@CFLAGS@%$CFLAGS%g
  848. s%@CPPFLAGS@%$CPPFLAGS%g
  849. s%@CXXFLAGS@%$CXXFLAGS%g
  850. s%@DEFS@%$DEFS%g
  851. s%@LDFLAGS@%$LDFLAGS%g
  852. s%@LIBS@%$LIBS%g
  853. s%@exec_prefix@%$exec_prefix%g
  854. s%@prefix@%$prefix%g
  855. s%@program_transform_name@%$program_transform_name%g
  856. s%@bindir@%$bindir%g
  857. s%@sbindir@%$sbindir%g
  858. s%@libexecdir@%$libexecdir%g
  859. s%@datadir@%$datadir%g
  860. s%@sysconfdir@%$sysconfdir%g
  861. s%@sharedstatedir@%$sharedstatedir%g
  862. s%@localstatedir@%$localstatedir%g
  863. s%@libdir@%$libdir%g
  864. s%@includedir@%$includedir%g
  865. s%@oldincludedir@%$oldincludedir%g
  866. s%@infodir@%$infodir%g
  867. s%@guidedir@%$guidedir%g
  868. s%@psdir@%$psdir%g
  869. s%@dvidir@%$dvidir%g
  870. s%@mandir@%$mandir%g
  871. s%@CC@%$CC%g
  872. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  873. s%@INSTALL_DATA@%$INSTALL_DATA%g
  874.  
  875. CEOF
  876. EOF
  877. cat >> $CONFIG_STATUS <<EOF
  878.  
  879. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  880. EOF
  881. cat >> $CONFIG_STATUS <<\EOF
  882. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  883.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  884.   case "$ac_file" in
  885.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  886.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  887.   *) ac_file_in="${ac_file}.in" ;;
  888.   esac
  889.  
  890.   # Adjust relative srcdir, etc. for subdirectories.
  891.  
  892.   # Remove last slash and all that follows it.  Not all systems have dirname.
  893.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  894.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  895.     # The file is in a subdirectory.
  896.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  897.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  898.     # A "../" for each directory in $ac_dir_suffix.
  899.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  900.   else
  901.     ac_dir_suffix= ac_dots=
  902.   fi
  903.  
  904.   case "$ac_given_srcdir" in
  905.   .)  srcdir=.
  906.       if test -z "$ac_dots"; then top_srcdir=.
  907.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  908.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  909.   *) # Relative path.
  910.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  911.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  912.   esac
  913.  
  914.   case "$ac_given_INSTALL" in
  915.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  916.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  917.   esac
  918.   echo creating "$ac_file"
  919.   rm -f "$ac_file"
  920.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  921.   case "$ac_file" in
  922.   *Makefile*) ac_comsub="1i\\
  923. # $configure_input" ;;
  924.   *) ac_comsub= ;;
  925.   esac
  926.   sed -e "$ac_comsub
  927. s%@configure_input@%$configure_input%g
  928. s%@srcdir@%$srcdir%g
  929. s%@top_srcdir@%$top_srcdir%g
  930. s%@INSTALL@%$INSTALL%g
  931. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  932. fi; done
  933. rm -f conftest.subs
  934.  
  935.  
  936.  
  937. exit 0
  938. EOF
  939. chmod +x $CONFIG_STATUS
  940. rm -f CONFIG.STATUS.old
  941. rm -fr confdefs* $ac_clean_files
  942. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  943.  
  944.  
  945.