home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / CLISP-2.LHA / CLISP960530-ki.lha / ffcall / avcall / configure < prev    next >
Encoding:
Text File  |  1996-06-12  |  40.3 KB  |  1,319 lines

  1. #! /bin/sh
  2. unalias echo
  3.  
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 2.7 
  6. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  7. #
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10.  
  11. # Defaults:
  12. ac_help=
  13. ac_default_prefix=/usr/local
  14. # Any additions from configure.in:
  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. mandir='${prefix}/man'
  49.  
  50. # Initialize some other variables.
  51. subdirs=
  52. MFLAGS= MAKEFLAGS=
  53.  
  54. ac_prev=
  55. for ac_option
  56. do
  57.  
  58.   # If the previous option needs an argument, assign it.
  59.   if test -n "$ac_prev"; then
  60.     eval "$ac_prev=\$ac_option"
  61.     ac_prev=
  62.     continue
  63.   fi
  64.  
  65.   case "$ac_option" in
  66.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  67.   *) ac_optarg= ;;
  68.   esac
  69.  
  70.   # Accept the important Cygnus configure options, so we can diagnose typos.
  71.  
  72.   case "$ac_option" in
  73.  
  74.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  75.     ac_prev=bindir ;;
  76.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  77.     bindir="$ac_optarg" ;;
  78.  
  79.   -build | --build | --buil | --bui | --bu)
  80.     ac_prev=build ;;
  81.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  82.     build="$ac_optarg" ;;
  83.  
  84.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  85.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  86.     ac_prev=cache_file ;;
  87.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  88.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  89.     cache_file="$ac_optarg" ;;
  90.  
  91.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  92.     ac_prev=datadir ;;
  93.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  94.   | --da=*)
  95.     datadir="$ac_optarg" ;;
  96.  
  97.   -disable-* | --disable-*)
  98.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  99.     # Reject names that are not valid shell variable names.
  100.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  101.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  102.     fi
  103.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  104.     eval "enable_${ac_feature}=no" ;;
  105.  
  106.   -enable-* | --enable-*)
  107.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  108.     # Reject names that are not valid shell variable names.
  109.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  110.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  111.     fi
  112.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  113.     case "$ac_option" in
  114.       *=*) ;;
  115.       *) ac_optarg=yes ;;
  116.     esac
  117.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  118.  
  119.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  120.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  121.   | --exec | --exe | --ex)
  122.     ac_prev=exec_prefix ;;
  123.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  124.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  125.   | --exec=* | --exe=* | --ex=*)
  126.     exec_prefix="$ac_optarg" ;;
  127.  
  128.   -gas | --gas | --ga | --g)
  129.     # Obsolete; use --with-gas.
  130.     with_gas=yes ;;
  131.  
  132.   -help | --help | --hel | --he)
  133.     # Omit some internal or obsolete options to make the list less imposing.
  134.     # This message is too long to be a string in the A/UX 3.1 sh.
  135.     cat << EOF
  136. Usage: configure [options] [host]
  137. Options: [defaults in brackets after descriptions]
  138. Configuration:
  139.   --cache-file=FILE       cache test results in FILE
  140.   --help                  print this message
  141.   --no-create             do not create output files
  142.   --quiet, --silent       do not print \`checking...' messages
  143.   --version               print the version of autoconf that created configure
  144. Directory and file names:
  145.   --prefix=PREFIX         install architecture-independent files in PREFIX
  146.                           [$ac_default_prefix]
  147.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  148.                           [same as prefix]
  149.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  150.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  151.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  152.   --datadir=DIR           read-only architecture-independent data in DIR
  153.                           [PREFIX/share]
  154.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  155.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  156.                           [PREFIX/com]
  157.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  158.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  159.   --includedir=DIR        C header files in DIR [PREFIX/include]
  160.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  161.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  162.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  163.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  164.   --program-prefix=PREFIX prepend PREFIX to installed program names
  165.   --program-suffix=SUFFIX append SUFFIX to installed program names
  166.   --program-transform-name=PROGRAM
  167.                           run sed PROGRAM on installed program names
  168. EOF
  169.     cat << EOF
  170. Host type:
  171.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  172.   --host=HOST             configure for HOST [guessed]
  173.   --target=TARGET         configure for TARGET [TARGET=HOST]
  174. Features and packages:
  175.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  176.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  177.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  178.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  179.   --x-includes=DIR        X include files are in DIR
  180.   --x-libraries=DIR       X library files are in DIR
  181. EOF
  182.     if test -n "$ac_help"; then
  183.       echo "--enable and --with options recognized:$ac_help"
  184.     fi
  185.     exit 0 ;;
  186.  
  187.   -host | --host | --hos | --ho)
  188.     ac_prev=host ;;
  189.   -host=* | --host=* | --hos=* | --ho=*)
  190.     host="$ac_optarg" ;;
  191.  
  192.   -includedir | --includedir | --includedi | --included | --include \
  193.   | --includ | --inclu | --incl | --inc)
  194.     ac_prev=includedir ;;
  195.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  196.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  197.     includedir="$ac_optarg" ;;
  198.  
  199.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  200.     ac_prev=infodir ;;
  201.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  202.     infodir="$ac_optarg" ;;
  203.  
  204.   -libdir | --libdir | --libdi | --libd)
  205.     ac_prev=libdir ;;
  206.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  207.     libdir="$ac_optarg" ;;
  208.  
  209.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  210.   | --libexe | --libex | --libe)
  211.     ac_prev=libexecdir ;;
  212.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  213.   | --libexe=* | --libex=* | --libe=*)
  214.     libexecdir="$ac_optarg" ;;
  215.  
  216.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  217.   | --localstate | --localstat | --localsta | --localst \
  218.   | --locals | --local | --loca | --loc | --lo)
  219.     ac_prev=localstatedir ;;
  220.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  221.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  222.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  223.     localstatedir="$ac_optarg" ;;
  224.  
  225.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  226.     ac_prev=mandir ;;
  227.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  228.     mandir="$ac_optarg" ;;
  229.  
  230.   -nfp | --nfp | --nf)
  231.     # Obsolete; use --without-fp.
  232.     with_fp=no ;;
  233.  
  234.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  235.   | --no-cr | --no-c)
  236.     no_create=yes ;;
  237.  
  238.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  239.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  240.     no_recursion=yes ;;
  241.  
  242.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  243.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  244.   | --oldin | --oldi | --old | --ol | --o)
  245.     ac_prev=oldincludedir ;;
  246.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  247.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  248.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  249.     oldincludedir="$ac_optarg" ;;
  250.  
  251.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  252.     ac_prev=prefix ;;
  253.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  254.     prefix="$ac_optarg" ;;
  255.  
  256.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  257.   | --program-pre | --program-pr | --program-p)
  258.     ac_prev=program_prefix ;;
  259.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  260.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  261.     program_prefix="$ac_optarg" ;;
  262.  
  263.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  264.   | --program-suf | --program-su | --program-s)
  265.     ac_prev=program_suffix ;;
  266.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  267.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  268.     program_suffix="$ac_optarg" ;;
  269.  
  270.   -program-transform-name | --program-transform-name \
  271.   | --program-transform-nam | --program-transform-na \
  272.   | --program-transform-n | --program-transform- \
  273.   | --program-transform | --program-transfor \
  274.   | --program-transfo | --program-transf \
  275.   | --program-trans | --program-tran \
  276.   | --progr-tra | --program-tr | --program-t)
  277.     ac_prev=program_transform_name ;;
  278.   -program-transform-name=* | --program-transform-name=* \
  279.   | --program-transform-nam=* | --program-transform-na=* \
  280.   | --program-transform-n=* | --program-transform-=* \
  281.   | --program-transform=* | --program-transfor=* \
  282.   | --program-transfo=* | --program-transf=* \
  283.   | --program-trans=* | --program-tran=* \
  284.   | --progr-tra=* | --program-tr=* | --program-t=*)
  285.     program_transform_name="$ac_optarg" ;;
  286.  
  287.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  288.   | -silent | --silent | --silen | --sile | --sil)
  289.     silent=yes ;;
  290.  
  291.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  292.     ac_prev=sbindir ;;
  293.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  294.   | --sbi=* | --sb=*)
  295.     sbindir="$ac_optarg" ;;
  296.  
  297.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  298.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  299.   | --sharedst | --shareds | --shared | --share | --shar \
  300.   | --sha | --sh)
  301.     ac_prev=sharedstatedir ;;
  302.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  303.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  304.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  305.   | --sha=* | --sh=*)
  306.     sharedstatedir="$ac_optarg" ;;
  307.  
  308.   -site | --site | --sit)
  309.     ac_prev=site ;;
  310.   -site=* | --site=* | --sit=*)
  311.     site="$ac_optarg" ;;
  312.  
  313.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  314.     ac_prev=srcdir ;;
  315.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  316.     srcdir="$ac_optarg" ;;
  317.  
  318.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  319.   | --syscon | --sysco | --sysc | --sys | --sy)
  320.     ac_prev=sysconfdir ;;
  321.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  322.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  323.     sysconfdir="$ac_optarg" ;;
  324.  
  325.   -target | --target | --targe | --targ | --tar | --ta | --t)
  326.     ac_prev=target ;;
  327.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  328.     target="$ac_optarg" ;;
  329.  
  330.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  331.     verbose=yes ;;
  332.  
  333.   -version | --version | --versio | --versi | --vers)
  334.     echo "configure generated by autoconf version 2.7"
  335.     exit 0 ;;
  336.  
  337.   -with-* | --with-*)
  338.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  339.     # Reject names that are not valid shell variable names.
  340.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  341.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  342.     fi
  343.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  344.     case "$ac_option" in
  345.       *=*) ;;
  346.       *) ac_optarg=yes ;;
  347.     esac
  348.     eval "with_${ac_package}='$ac_optarg'" ;;
  349.  
  350.   -without-* | --without-*)
  351.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  352.     # Reject names that are not valid shell variable names.
  353.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  354.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  355.     fi
  356.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  357.     eval "with_${ac_package}=no" ;;
  358.  
  359.   --x)
  360.     # Obsolete; use --with-x.
  361.     with_x=yes ;;
  362.  
  363.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  364.   | --x-incl | --x-inc | --x-in | --x-i)
  365.     ac_prev=x_includes ;;
  366.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  367.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  368.     x_includes="$ac_optarg" ;;
  369.  
  370.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  371.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  372.     ac_prev=x_libraries ;;
  373.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  374.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  375.     x_libraries="$ac_optarg" ;;
  376.  
  377.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  378.     ;;
  379.  
  380.   *)
  381.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  382.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  383.     fi
  384.     if test "x$nonopt" != xNONE; then
  385.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  386.     fi
  387.     nonopt="$ac_option"
  388.     ;;
  389.  
  390.   esac
  391. done
  392.  
  393. if test -n "$ac_prev"; then
  394.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  395. fi
  396.  
  397. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  398.  
  399. # File descriptor usage:
  400. # 0 standard input
  401. # 1 file creation
  402. # 2 errors and warnings
  403. # 3 some systems may open it to /dev/tty
  404. # 4 used on the Kubota Titan
  405. # 6 checking for... messages and results
  406. # 5 compiler messages saved in config.log
  407. if test "$silent" = yes; then
  408.   exec 6>/dev/null
  409. else
  410.   exec 6>&1
  411. fi
  412. exec 5>./config.log
  413.  
  414. echo "\
  415. This file contains any messages produced by compilers while
  416. running configure, to aid debugging if configure makes a mistake.
  417. " 1>&5
  418.  
  419. # Strip out --no-create and --no-recursion so they do not pile up.
  420. # Also quote any args containing shell metacharacters.
  421. ac_configure_args=
  422. for ac_arg
  423. do
  424.   case "$ac_arg" in
  425.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426.   | --no-cr | --no-c) ;;
  427.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  428.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  429.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  430.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  431.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  432.   esac
  433. done
  434.  
  435. # NLS nuisances.
  436. # Only set LANG and LC_ALL to C if already set.
  437. # These must not be set unconditionally because not all systems understand
  438. # e.g. LANG=C (notably SCO).
  439. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  440. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  441.  
  442. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  443. rm -rf conftest* confdefs.h
  444. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  445. echo > confdefs.h
  446.  
  447. # A filename unique to this package, relative to the directory that
  448. # configure is in, which we can look for to find out if srcdir is correct.
  449. ac_unique_file=avcall.h.in
  450.  
  451. # Find the source files, if location was not specified.
  452. if test -z "$srcdir"; then
  453.   ac_srcdir_defaulted=yes
  454.   # Try the directory containing this script, then its parent.
  455.   ac_prog=$0
  456.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  457.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  458.   srcdir=$ac_confdir
  459.   if test ! -r $srcdir/$ac_unique_file; then
  460.     srcdir=..
  461.   fi
  462. else
  463.   ac_srcdir_defaulted=no
  464. fi
  465. if test ! -r $srcdir/$ac_unique_file; then
  466.   if test "$ac_srcdir_defaulted" = yes; then
  467.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  468.   else
  469.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  470.   fi
  471. fi
  472. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  473.  
  474. # Prefer explicitly selected file to automatically selected ones.
  475. if test -z "$CONFIG_SITE"; then
  476.   if test "x$prefix" != xNONE; then
  477.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  478.   else
  479.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  480.   fi
  481. fi
  482. for ac_site_file in $CONFIG_SITE; do
  483.   if test -r "$ac_site_file"; then
  484.     echo "loading site script $ac_site_file"
  485.     . "$ac_site_file"
  486.   fi
  487. done
  488.  
  489. if test -r "$cache_file"; then
  490.   echo "loading cache $cache_file"
  491.   . $cache_file
  492. else
  493.   echo "creating cache $cache_file"
  494.   > $cache_file
  495. fi
  496.  
  497. ac_ext=c
  498. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  499. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  500. $CPP $CPPFLAGS'
  501. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  502. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  503. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  504. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  505.  
  506. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  507.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  508.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  509.     ac_n= ac_c='
  510. ' ac_t='    '
  511.   else
  512.     ac_n=-n ac_c= ac_t=
  513.   fi
  514. else
  515.   ac_n= ac_c='\c' ac_t=
  516. fi
  517.  
  518.  
  519.  
  520. # Extract the first word of "gcc", so it can be a program name with args.
  521. set dummy gcc; ac_word=$2
  522. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  523. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  524.   echo $ac_n "(cached) $ac_c" 1>&6
  525. else
  526.   if test -n "$CC"; then
  527.   ac_cv_prog_CC="$CC" # Let the user override the test.
  528. else
  529.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  530.   for ac_dir in $PATH; do
  531.     test -z "$ac_dir" && ac_dir=.
  532.     if test -f $ac_dir/$ac_word; then
  533.       ac_cv_prog_CC="gcc"
  534.       break
  535.     fi
  536.   done
  537.   IFS="$ac_save_ifs"
  538.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  539. fi
  540. fi
  541. CC="$ac_cv_prog_CC"
  542. if test -n "$CC"; then
  543.   echo "$ac_t""$CC" 1>&6
  544. else
  545.   echo "$ac_t""no" 1>&6
  546. fi
  547.  
  548.  
  549. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  550. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  551.   echo $ac_n "(cached) $ac_c" 1>&6
  552. else
  553.   cat > conftest.c <<EOF
  554. #ifdef __GNUC__
  555.   yes;
  556. #endif
  557. EOF
  558. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  559.   ac_cv_prog_gcc=yes
  560. else
  561.   ac_cv_prog_gcc=no
  562. fi
  563. fi
  564.  
  565. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  566. if test $ac_cv_prog_gcc = yes; then
  567.   GCC=yes
  568.   if test "${CFLAGS+set}" != set; then
  569.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  570. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  571.   echo $ac_n "(cached) $ac_c" 1>&6
  572. else
  573.   echo 'void f(){}' > conftest.c
  574. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  575.   ac_cv_prog_gcc_g=yes
  576. else
  577.   ac_cv_prog_gcc_g=no
  578. fi
  579. rm -f conftest*
  580.  
  581. fi
  582.  
  583. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  584.     if test $ac_cv_prog_gcc_g = yes; then
  585.       CFLAGS="-g -O"
  586.     else
  587.       CFLAGS="-O"
  588.     fi
  589.   fi
  590. else
  591.   GCC=
  592.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  593. fi
  594.  
  595. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  596. # On Suns, sometimes $CPP names a directory.
  597. if test -n "$CPP" && test -d "$CPP"; then
  598.   CPP=
  599. fi
  600. if test -z "$CPP"; then
  601. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  602.   echo $ac_n "(cached) $ac_c" 1>&6
  603. else
  604.     # This must be in double quotes, not single quotes, because CPP may get
  605.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  606.   CPP="${CC-cc} -E"
  607.   # On the NeXT, cc -E runs the code through the compiler's parser,
  608.   # not just through cpp.
  609.   cat > conftest.$ac_ext <<EOF
  610. #line 610 "configure"
  611. #include "confdefs.h"
  612. #include <assert.h>
  613. Syntax Error
  614. EOF
  615. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  616. ac_err=`grep -v '^ *+' conftest.out`
  617. if test -z "$ac_err"; then
  618.   :
  619. else
  620.   echo "$ac_err" >&5
  621.   rm -rf conftest*
  622.   CPP="${CC-cc} -E -traditional-cpp"
  623.   cat > conftest.$ac_ext <<EOF
  624. #line 624 "configure"
  625. #include "confdefs.h"
  626. #include <assert.h>
  627. Syntax Error
  628. EOF
  629. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  630. ac_err=`grep -v '^ *+' conftest.out`
  631. if test -z "$ac_err"; then
  632.   :
  633. else
  634.   echo "$ac_err" >&5
  635.   rm -rf conftest*
  636.   CPP=/lib/cpp
  637. fi
  638. rm -f conftest*
  639. fi
  640. rm -f conftest*
  641.   ac_cv_prog_CPP="$CPP"
  642. fi
  643.   CPP="$ac_cv_prog_CPP"
  644. else
  645.   ac_cv_prog_CPP="$CPP"
  646. fi
  647. echo "$ac_t""$CPP" 1>&6
  648.  
  649. if test $ac_cv_prog_gcc = yes; then
  650.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  651. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  652.   echo $ac_n "(cached) $ac_c" 1>&6
  653. else
  654.     ac_pattern="Autoconf.*'x'"
  655.   cat > conftest.$ac_ext <<EOF
  656. #line 656 "configure"
  657. #include "confdefs.h"
  658. #include <sgtty.h>
  659. Autoconf TIOCGETP
  660. EOF
  661. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  662.   egrep "$ac_pattern" >/dev/null 2>&1; then
  663.   rm -rf conftest*
  664.   ac_cv_prog_gcc_traditional=yes
  665. else
  666.   rm -rf conftest*
  667.   ac_cv_prog_gcc_traditional=no
  668. fi
  669. rm -f conftest*
  670.  
  671.  
  672.   if test $ac_cv_prog_gcc_traditional = no; then
  673.     cat > conftest.$ac_ext <<EOF
  674. #line 674 "configure"
  675. #include "confdefs.h"
  676. #include <termio.h>
  677. Autoconf TCGETA
  678. EOF
  679. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  680.   egrep "$ac_pattern" >/dev/null 2>&1; then
  681.   rm -rf conftest*
  682.   ac_cv_prog_gcc_traditional=yes
  683. fi
  684. rm -f conftest*
  685.  
  686.   fi
  687. fi
  688.  
  689. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  690.   if test $ac_cv_prog_gcc_traditional = yes; then
  691.     CC="$CC -traditional"
  692.   fi
  693. fi
  694.  
  695. echo $ac_n "checking for underscore in external names""... $ac_c" 1>&6
  696. if eval "test \"`echo '$''{'cl_cv_prog_as_underscore'+set}'`\" = set"; then
  697.   echo $ac_n "(cached) $ac_c" 1>&6
  698. else
  699.   cat > conftest.c <<EOF
  700. int foo() { return 0; }
  701. EOF
  702. ${CC-cc} -c conftest.c >/dev/null 2>&1
  703. # check whether nm exists
  704. if (nm conftest.o) >/dev/null 2>&1 ; then
  705.   # use nm to see the assembly language name
  706.   if nm conftest.o | grep _foo >/dev/null 2>&1 ; then
  707.     cl_cv_prog_as_underscore=yes
  708.   else
  709.     cl_cv_prog_as_underscore=no
  710.   fi
  711. else
  712.   # look for the assembly language name in the .s file
  713.   ${CC-cc} -S conftest.c >/dev/null 2>&1
  714.   if grep _foo conftest.s >/dev/null ; then
  715.     cl_cv_prog_as_underscore=yes
  716.   else
  717.     cl_cv_prog_as_underscore=no
  718.   fi
  719. fi
  720. rm -f conftest*
  721.  
  722. fi
  723.  
  724. echo "$ac_t""$cl_cv_prog_as_underscore" 1>&6
  725. if test $cl_cv_prog_as_underscore = yes; then
  726.   AS_UNDERSCORE=true
  727. else
  728.   AS_UNDERSCORE=false
  729. fi
  730.  
  731. # Extract the first word of "ranlib", so it can be a program name with args.
  732. set dummy ranlib; ac_word=$2
  733. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  734. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  735.   echo $ac_n "(cached) $ac_c" 1>&6
  736. else
  737.   if test -n "$RANLIB"; then
  738.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  739. else
  740.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  741.   for ac_dir in $PATH; do
  742.     test -z "$ac_dir" && ac_dir=.
  743.     if test -f $ac_dir/$ac_word; then
  744.       ac_cv_prog_RANLIB="ranlib"
  745.       break
  746.     fi
  747.   done
  748.   IFS="$ac_save_ifs"
  749.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
  750. fi
  751. fi
  752. RANLIB="$ac_cv_prog_RANLIB"
  753. if test -n "$RANLIB"; then
  754.   echo "$ac_t""$RANLIB" 1>&6
  755. else
  756.   echo "$ac_t""no" 1>&6
  757. fi
  758.  
  759. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  760. set dummy ${MAKE-make}; ac_make=$2
  761. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  762.   echo $ac_n "(cached) $ac_c" 1>&6
  763. else
  764.   cat > conftestmake <<\EOF
  765. all:
  766.     @echo 'ac_maketemp="${MAKE}"'
  767. EOF
  768. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  769. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  770. if test -n "$ac_maketemp"; then
  771.   eval ac_cv_prog_make_${ac_make}_set=yes
  772. else
  773.   eval ac_cv_prog_make_${ac_make}_set=no
  774. fi
  775. rm -f conftestmake
  776. fi
  777. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  778.   echo "$ac_t""yes" 1>&6
  779.   SET_MAKE=
  780. else
  781.   echo "$ac_t""no" 1>&6
  782.   SET_MAKE="MAKE=${MAKE-make}"
  783. fi
  784.  
  785. # Find a good install program.  We prefer a C program (faster),
  786. # so one script is as good as another.  But avoid the broken or
  787. # incompatible versions:
  788. # SysV /etc/install, /usr/sbin/install
  789. # SunOS /usr/etc/install
  790. # IRIX /sbin/install
  791. # AIX /bin/install
  792. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  793. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  794. # ./install, which can be erroneously created by make from ./install.sh.
  795. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  796. if test -z "$INSTALL"; then
  797. if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
  798.   echo $ac_n "(cached) $ac_c" 1>&6
  799. else
  800.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  801.   for ac_dir in $PATH; do
  802.     case "$ac_dir" in
  803.     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  804.     *)
  805.       # OSF1 and SCO ODT 3.0 have their own names for install.
  806.       for ac_prog in ginstall installbsd scoinst install; do
  807.         if test -f $ac_dir/$ac_prog; then
  808.       if test $ac_prog = install &&
  809.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  810.         # AIX install.  It has an incompatible calling convention.
  811.         # OSF/1 installbsd also uses dspmsg, but is usable.
  812.         :
  813.       else
  814.         cl_cv_path_install="$ac_dir/$ac_prog -c"
  815.         break 2
  816.       fi
  817.     fi
  818.       done
  819.       ;;
  820.     esac
  821.   done
  822.   IFS="$ac_save_ifs"
  823.   # As a last resort, use cp.
  824.   test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
  825.  
  826. fi
  827.   INSTALL="$cl_cv_path_install"
  828. fi
  829. echo "$ac_t""$INSTALL" 1>&6
  830. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  831. # It thinks the first close brace ends the variable substitution.
  832. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
  833. if test -z "$INSTALL_DATA"; then
  834.   case "$INSTALL" in
  835.     cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
  836.     * )         INSTALL_DATA='$(INSTALL) -m 644' ;;
  837.   esac
  838. fi
  839.  
  840.  echo $ac_n "checking host system type""... $ac_c" 1>&6
  841. if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
  842.   echo $ac_n "(cached) $ac_c" 1>&6
  843. else
  844.   ac_aux_dir=${srcdir}/../autoconf
  845. ac_config_guess=$ac_aux_dir/config.guess
  846. ac_config_sub=$ac_aux_dir/config.sub
  847. # Make sure we can run config.sub.
  848. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  849. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  850. fi
  851. host_alias=$host
  852. case "$host_alias" in
  853. NONE)
  854.   case $nonopt in
  855.   NONE)         host_alias=`export CC; $ac_config_guess` ;;
  856.   *)    host_alias=$nonopt ;;
  857.   esac ;;
  858. esac
  859. # Don't fail just because the system is not listed in GNU's database.
  860. if test -n "$host_alias"; then
  861.   host=`$ac_config_sub $host_alias`
  862. else
  863.   host=unknown-unknown-unknown
  864. fi
  865. if test -z "$host" ; then
  866.   host="$host_alias"
  867. fi
  868. cl_cv_host="$host"
  869.  
  870. fi
  871.  
  872. echo "$ac_t""$cl_cv_host" 1>&6
  873. host="$cl_cv_host"
  874. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  875. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  876. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  877.  
  878.  
  879. if test "$host_cpu" = i486 -o "$host_cpu" = i586; then
  880.   host_cpu=i386
  881. fi
  882. if test "$host_cpu" = hppa1.0 -o "$host_cpu" = hppa1.1; then
  883.   host_cpu=hppa
  884. fi
  885. if test "$host_cpu" = c1 -o "$host_cpu" = c2 -o "$host_cpu" = c32 -o "$host_cpu" = c34 -o "$host_cpu" = c38 -o "$host_cpu" = c4; then
  886.   host_cpu=convex
  887. fi
  888.  
  889. cat >> confdefs.h <<EOF
  890. #define __${host_cpu}__ 1
  891. EOF
  892.  
  893. # If we cannot run a trivial program, we must be cross compiling.
  894. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  895. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  896.   echo $ac_n "(cached) $ac_c" 1>&6
  897. else
  898.   if test "$cross_compiling" = yes; then
  899.   ac_cv_c_cross=yes
  900. else
  901. cat > conftest.$ac_ext <<EOF
  902. #line 902 "configure"
  903. #include "confdefs.h"
  904. main(){return(0);}
  905. EOF
  906. eval $ac_link
  907. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  908.   ac_cv_c_cross=no
  909. else
  910.   ac_cv_c_cross=yes
  911. fi
  912. if test -f core; then
  913.   coredir=core`/bin/sh -c 'echo $$'`
  914.   mkdir $coredir
  915.   cp confdefs.h $coredir/confdefs.h
  916.   mv conftest.c $coredir/conftest.c
  917.   mv conftest $coredir/conftest
  918.   mv core $coredir/core
  919.   echo "warning: test program dumped core -- see subdirectory $coredir"
  920. fi
  921. fi
  922. rm -fr conftest*
  923. fi
  924.  
  925. echo "$ac_t""$ac_cv_c_cross" 1>&6
  926. cross_compiling=$ac_cv_c_cross
  927.  
  928. echo $ac_n "checking for pcc non-reentrant struct return convention""... $ac_c" 1>&6
  929. if eval "test \"`echo '$''{'cl_cv_c_struct_return_static'+set}'`\" = set"; then
  930.   echo $ac_n "(cached) $ac_c" 1>&6
  931. else
  932.   if test "$cross_compiling" = yes; then
  933.   cl_cv_c_struct_return_static="guessing no"
  934. else
  935. cat > conftest.$ac_ext <<EOF
  936. #line 936 "configure"
  937. #include "confdefs.h"
  938. typedef struct { int a; int b; int c; int d; int e; } foo;
  939. foo foofun () { static foo foopi = {3141,5926,5358,9793,2385}; return foopi; }
  940. foo* (*fun) () = (foo* (*) ()) foofun;
  941. main()
  942. { foo foo1;
  943.   foo* fooptr1;
  944.   foo foo2;
  945.   foo* fooptr2;
  946.   foo1 = foofun(); fooptr1 = (*fun)(&foo1);
  947.   foo2 = foofun(); fooptr2 = (*fun)(&foo2);
  948.   exit(!(fooptr1 == fooptr2 && fooptr1->c == 5358));
  949. }
  950. EOF
  951. eval $ac_link
  952. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  953.   cl_cv_c_struct_return_static=yes
  954. else
  955.   rm -f core
  956. cl_cv_c_struct_return_static=no
  957. fi
  958. if test -f core; then
  959.   coredir=core`/bin/sh -c 'echo $$'`
  960.   mkdir $coredir
  961.   cp confdefs.h $coredir/confdefs.h
  962.   mv conftest.c $coredir/conftest.c
  963.   mv conftest $coredir/conftest
  964.   mv core $coredir/core
  965.   echo "warning: test program dumped core -- see subdirectory $coredir"
  966. fi
  967. fi
  968. rm -fr conftest*
  969.  
  970. fi
  971.  
  972. echo "$ac_t""$cl_cv_c_struct_return_static" 1>&6
  973. case "$cl_cv_c_struct_return_static" in
  974.   *yes) cat >> confdefs.h <<\EOF
  975. #define __PCC_STRUCT_RETURN__ 1
  976. EOF
  977.  ;;
  978.   *no) ;;
  979. esac
  980.  
  981. echo $ac_n "checking whether small structs are returned in registers""... $ac_c" 1>&6
  982. if eval "test \"`echo '$''{'cl_cv_c_struct_return_small'+set}'`\" = set"; then
  983.   echo $ac_n "(cached) $ac_c" 1>&6
  984. else
  985.   if test "$cross_compiling" = yes; then
  986.   cl_cv_c_struct_return_small="guessing no"
  987. else
  988. cat > conftest.$ac_ext <<EOF
  989. #line 989 "configure"
  990. #include "confdefs.h"
  991. typedef struct { int x; } foo; int y;
  992. foo foofun () { foo f; f.x = y; return f; }
  993. int (*fun) () = (int (*) ()) foofun;
  994. main()
  995. { y = 37; if ((*fun)() != 37) exit(1);
  996.   y = 55; if ((*fun)() != 55) exit(1);
  997.   exit(0);
  998. }
  999. EOF
  1000. eval $ac_link
  1001. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1002.   cl_cv_c_struct_return_small=yes
  1003. else
  1004.   rm -f core
  1005. cl_cv_c_struct_return_small=no
  1006. fi
  1007. if test -f core; then
  1008.   coredir=core`/bin/sh -c 'echo $$'`
  1009.   mkdir $coredir
  1010.   cp confdefs.h $coredir/confdefs.h
  1011.   mv conftest.c $coredir/conftest.c
  1012.   mv conftest $coredir/conftest
  1013.   mv core $coredir/core
  1014.   echo "warning: test program dumped core -- see subdirectory $coredir"
  1015. fi
  1016. fi
  1017. rm -fr conftest*
  1018.  
  1019. fi
  1020.  
  1021. echo "$ac_t""$cl_cv_c_struct_return_small" 1>&6
  1022. case "$cl_cv_c_struct_return_small" in
  1023.   *yes) cat >> confdefs.h <<\EOF
  1024. #define __SMALL_STRUCT_RETURN__ 1
  1025. EOF
  1026.  ;;
  1027.   *no) ;;
  1028. esac
  1029.  
  1030. trap '' 1 2 15
  1031. cat > confcache <<\EOF
  1032. # This file is a shell script that caches the results of configure
  1033. # tests run on this system so they can be shared between configure
  1034. # scripts and configure runs.  It is not useful on other systems.
  1035. # If it contains results you don't want to keep, you may remove or edit it.
  1036. #
  1037. # By default, configure uses ./config.cache as the cache file,
  1038. # creating it if it does not exist already.  You can give configure
  1039. # the --cache-file=FILE option to use a different cache file; that is
  1040. # what configure does when it calls configure scripts in
  1041. # subdirectories, so they share the cache.
  1042. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1043. # config.status only pays attention to the cache file if you give it the
  1044. # --recheck option to rerun configure.
  1045. #
  1046. EOF
  1047. # Ultrix sh set writes to stderr and can't be redirected directly,
  1048. # and sets the high bit in the cache file unless we assign to the vars.
  1049. (set) 2>&1 |
  1050. sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)='*\([^']*\)'*/\1=\${\1='\2'}/p" \
  1051. >> confcache
  1052. if cmp -s $cache_file confcache; then
  1053.   :
  1054. else
  1055.   if test -w $cache_file; then
  1056.     echo "updating cache $cache_file"
  1057.     cat confcache > $cache_file
  1058.   else
  1059.     echo "not updating unwritable cache $cache_file"
  1060.   fi
  1061. fi
  1062. rm -f confcache
  1063.  
  1064. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1065.  
  1066. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1067. # Let make expand exec_prefix.
  1068. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1069.  
  1070. # Any assignment to VPATH causes Sun make to only execute
  1071. # the first set of double-colon rules, so remove it if not needed.
  1072. # If there is a colon in the path, we need to keep it.
  1073. if test "x$srcdir" = x.; then
  1074.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1075. fi
  1076.  
  1077. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1078.  
  1079. DEFS=-DHAVE_CONFIG_H
  1080.  
  1081. # Without the "./", some shells look in PATH for config.status.
  1082. : ${CONFIG_STATUS=./config.status}
  1083.  
  1084. echo creating $CONFIG_STATUS
  1085. rm -f $CONFIG_STATUS
  1086. cat > $CONFIG_STATUS <<EOF
  1087. #! /bin/sh
  1088. # Generated automatically by configure.
  1089. # Run this file to recreate the current configuration.
  1090. # This directory was configured as follows,
  1091. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1092. #
  1093. # $0 $ac_configure_args
  1094. #
  1095. # Compiler output produced by configure, useful for debugging
  1096. # configure, is in ./config.log if it exists.
  1097.  
  1098. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1099. for ac_option
  1100. do
  1101.   case "\$ac_option" in
  1102.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1103.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1104.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1105.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1106.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  1107.     exit 0 ;;
  1108.   -help | --help | --hel | --he | --h)
  1109.     echo "\$ac_cs_usage"; exit 0 ;;
  1110.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1111.   esac
  1112. done
  1113.  
  1114. ac_given_srcdir=$srcdir
  1115.  
  1116. trap 'rm -fr `echo "Makefile avcall.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1117. EOF
  1118. cat >> $CONFIG_STATUS <<EOF
  1119.  
  1120. # Protect against being on the right side of a sed subst in config.status.
  1121. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1122.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1123. $ac_vpsub
  1124. $extrasub
  1125. s%@CFLAGS@%$CFLAGS%g
  1126. s%@CPPFLAGS@%$CPPFLAGS%g
  1127. s%@CXXFLAGS@%$CXXFLAGS%g
  1128. s%@DEFS@%$DEFS%g
  1129. s%@LDFLAGS@%$LDFLAGS%g
  1130. s%@LIBS@%$LIBS%g
  1131. s%@exec_prefix@%$exec_prefix%g
  1132. s%@prefix@%$prefix%g
  1133. s%@program_transform_name@%$program_transform_name%g
  1134. s%@bindir@%$bindir%g
  1135. s%@sbindir@%$sbindir%g
  1136. s%@libexecdir@%$libexecdir%g
  1137. s%@datadir@%$datadir%g
  1138. s%@sysconfdir@%$sysconfdir%g
  1139. s%@sharedstatedir@%$sharedstatedir%g
  1140. s%@localstatedir@%$localstatedir%g
  1141. s%@libdir@%$libdir%g
  1142. s%@includedir@%$includedir%g
  1143. s%@oldincludedir@%$oldincludedir%g
  1144. s%@infodir@%$infodir%g
  1145. s%@mandir@%$mandir%g
  1146. s%@CC@%$CC%g
  1147. s%@CPP@%$CPP%g
  1148. s%@AS_UNDERSCORE@%$AS_UNDERSCORE%g
  1149. s%@RANLIB@%$RANLIB%g
  1150. s%@SET_MAKE@%$SET_MAKE%g
  1151. s%@INSTALL@%$INSTALL%g
  1152. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1153. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1154. s%@host@%$host%g
  1155. s%@host_cpu@%$host_cpu%g
  1156. s%@host_vendor@%$host_vendor%g
  1157. s%@host_os@%$host_os%g
  1158.  
  1159. CEOF
  1160. EOF
  1161. cat >> $CONFIG_STATUS <<EOF
  1162.  
  1163. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1164. EOF
  1165. cat >> $CONFIG_STATUS <<\EOF
  1166. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1167.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1168.   case "$ac_file" in
  1169.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1170.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1171.   *) ac_file_in="${ac_file}.in" ;;
  1172.   esac
  1173.  
  1174.   # Adjust relative srcdir, etc. for subdirectories.
  1175.  
  1176.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1177.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1178.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1179.     # The file is in a subdirectory.
  1180.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1181.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1182.     # A "../" for each directory in $ac_dir_suffix.
  1183.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1184.   else
  1185.     ac_dir_suffix= ac_dots=
  1186.   fi
  1187.  
  1188.   case "$ac_given_srcdir" in
  1189.   .)  srcdir=.
  1190.       if test -z "$ac_dots"; then top_srcdir=.
  1191.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1192.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1193.   *) # Relative path.
  1194.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1195.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1196.   esac
  1197.  
  1198.   echo creating "$ac_file"
  1199.   rm -f "$ac_file"
  1200.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1201.   case "$ac_file" in
  1202.   *Makefile*) ac_comsub="1i\\
  1203. # $configure_input" ;;
  1204.   *) ac_comsub= ;;
  1205.   esac
  1206.   sed -e "$ac_comsub
  1207. s%@configure_input@%$configure_input%g
  1208. s%@srcdir@%$srcdir%g
  1209. s%@top_srcdir@%$top_srcdir%g
  1210. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1211. fi; done
  1212. rm -f conftest.subs
  1213.  
  1214. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1215. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1216. #
  1217. # ac_d sets the value in "#define NAME VALUE" lines.
  1218. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1219. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1220. ac_dC='\3'
  1221. ac_dD='%g'
  1222. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1223. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1224. ac_uB='\([     ]\)%\1#\2define\3'
  1225. ac_uC=' '
  1226. ac_uD='\4%g'
  1227. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1228. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1229. ac_eB='$%\1#\2define\3'
  1230. ac_eC=' '
  1231. ac_eD='%g'
  1232.  
  1233. CONFIG_HEADERS=${CONFIG_HEADERS-"avcall.h"}
  1234. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1235.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1236.   case "$ac_file" in
  1237.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1238.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1239.   *) ac_file_in="${ac_file}.in" ;;
  1240.   esac
  1241.  
  1242.   echo creating $ac_file
  1243.  
  1244.   rm -f conftest.frag conftest.in conftest.out
  1245.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1246.  
  1247. EOF
  1248.  
  1249. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1250. # the proper values into config.h.in to produce config.h.  And first:
  1251. # Protect against being on the right side of a sed subst in config.status.
  1252. # Protect against being in an unquoted here document in config.status.
  1253. rm -f conftest.vals
  1254. cat > conftest.hdr <<\EOF
  1255. s/[\\&%]/\\&/g
  1256. s%[\\$`]%\\&%g
  1257. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1258. s%ac_d%ac_u%gp
  1259. s%ac_u%ac_e%gp
  1260. EOF
  1261. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1262. rm -f conftest.hdr
  1263.  
  1264. # This sed command replaces #undef with comments.  This is necessary, for
  1265. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1266. # on some systems where configure will not decide to define it.
  1267. cat >> conftest.vals <<\EOF
  1268. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1269. EOF
  1270.  
  1271. # Break up conftest.vals because some shells have a limit on
  1272. # the size of here documents, and old seds have small limits too.
  1273. # Maximum number of lines to put in a single here document.
  1274. ac_max_here_lines=12
  1275.  
  1276. rm -f conftest.tail
  1277. while :
  1278. do
  1279.   ac_lines=`grep -c . conftest.vals`
  1280.   # grep -c gives empty output for an empty file on some AIX systems.
  1281.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1282.   # Write a limited-size here document to conftest.frag.
  1283.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1284.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1285.   echo 'CEOF
  1286.   sed -f conftest.frag conftest.in > conftest.out
  1287.   chmod u+w conftest.in
  1288.   rm -f conftest.in
  1289.   mv conftest.out conftest.in
  1290. ' >> $CONFIG_STATUS
  1291.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1292.   rm -f conftest.vals
  1293.   mv conftest.tail conftest.vals
  1294. done
  1295. rm -f conftest.vals
  1296.  
  1297. cat >> $CONFIG_STATUS <<\EOF
  1298.   rm -f conftest.frag conftest.h
  1299.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1300.   cat conftest.in >> conftest.h
  1301.   rm -f conftest.in
  1302.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1303.     echo "$ac_file is unchanged"
  1304.     rm -f conftest.h
  1305.   else
  1306.     rm -f $ac_file
  1307.     mv conftest.h $ac_file
  1308.   fi
  1309. fi; done
  1310.  
  1311.  
  1312.  
  1313. exit 0
  1314. EOF
  1315. chmod +x $CONFIG_STATUS
  1316. rm -fr confdefs* $ac_clean_files
  1317. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1318.  
  1319.