home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / ahisrc / configure < prev    next >
Encoding:
Text File  |  1999-10-10  |  64.3 KB  |  2,164 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Revision: 1.17  
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 2.13 
  6. # Copyright (C) 1992, 93, 94, 95, 96 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. ac_default_prefix=/ 
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. guidedir='${prefix}/guide'
  50. htmldir='${prefix}/html'
  51. psdir='${prefix}/ps'
  52. dvidir='${prefix}/dvi'
  53. mandir='${prefix}/man'
  54.  
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58. SHELL=${CONFIG_SHELL-/bin/sh}
  59. # Maximum number of lines to put in a shell here document.
  60. ac_max_here_lines=12
  61.  
  62. ac_prev=
  63. for ac_option
  64. do
  65.  
  66.   # If the previous option needs an argument, assign it.
  67.   if test -n "$ac_prev"; then
  68.     eval "$ac_prev=\$ac_option"
  69.     ac_prev=
  70.     continue
  71.   fi
  72.  
  73.   case "$ac_option" in
  74.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  75.   *) ac_optarg= ;;
  76.   esac
  77.  
  78.   # Accept the important Cygnus configure options, so we can diagnose typos.
  79.  
  80.   case "$ac_option" in
  81.  
  82.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  83.     ac_prev=bindir ;;
  84.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  85.     bindir="$ac_optarg" ;;
  86.  
  87.   -build | --build | --buil | --bui | --bu)
  88.     ac_prev=build ;;
  89.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  90.     build="$ac_optarg" ;;
  91.  
  92.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  93.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  94.     ac_prev=cache_file ;;
  95.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  96.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  97.     cache_file="$ac_optarg" ;;
  98.  
  99.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  100.     ac_prev=datadir ;;
  101.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  102.   | --da=*)
  103.     datadir="$ac_optarg" ;;
  104.  
  105.   -disable-* | --disable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     eval "enable_${ac_feature}=no" ;;
  113.  
  114.   -enable-* | --enable-*)
  115.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  116.     # Reject names that are not valid shell variable names.
  117.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  118.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  119.     fi
  120.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  121.     case "$ac_option" in
  122.       *=*) ;;
  123.       *) ac_optarg=yes ;;
  124.     esac
  125.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  126.  
  127.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  128.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  129.   | --exec | --exe | --ex)
  130.     ac_prev=exec_prefix ;;
  131.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  132.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  133.   | --exec=* | --exe=* | --ex=*)
  134.     exec_prefix="$ac_optarg" ;;
  135.  
  136.   -gas | --gas | --ga | --g)
  137.     # Obsolete; use --with-gas.
  138.     with_gas=yes ;;
  139.  
  140.   -help | --help | --hel | --he)
  141.     # Omit some internal or obsolete options to make the list less imposing.
  142.     # This message is too long to be a string in the A/UX 3.1 sh.
  143.     cat << EOF
  144. Usage: configure [options] [host]
  145. Options: [defaults in brackets after descriptions]
  146. Configuration:
  147.   --cache-file=FILE       cache test results in FILE
  148.   --help                  print this message
  149.   --no-create             do not create output files
  150.   --quiet, --silent       do not print \`checking...' messages
  151.   --version               print the version of autoconf that created configure
  152. Directory and file names:
  153.   --prefix=PREFIX         install architecture-independent files in PREFIX
  154.                           [$ac_default_prefix]
  155.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  156.                           [same as prefix]
  157.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  158.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  159.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  160.   --datadir=DIR           read-only architecture-independent data in DIR
  161.                           [PREFIX/share]
  162.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  163.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  164.                           [PREFIX/com]
  165.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  166.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  167.   --includedir=DIR        C header files in DIR [PREFIX/include]
  168.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  169.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  170.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  171.   --htmldir=DIR           HTML documentation in DIR [PREFIX/html]
  172.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  173.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  174.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  175.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  176.   --program-prefix=PREFIX prepend PREFIX to installed program names
  177.   --program-suffix=SUFFIX append SUFFIX to installed program names
  178.   --program-transform-name=PROGRAM
  179.                           run sed PROGRAM on installed program names
  180. EOF
  181.     cat << EOF
  182. Host type:
  183.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  184.   --host=HOST             configure for HOST [guessed]
  185.   --target=TARGET         configure for TARGET [TARGET=HOST]
  186. Features and packages:
  187.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  188.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  189.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  190.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  191.   --x-includes=DIR        X include files are in DIR
  192.   --x-libraries=DIR       X library files are in DIR
  193. EOF
  194.     if test -n "$ac_help"; then
  195.       echo "--enable and --with options recognized:$ac_help"
  196.     fi
  197.     exit 0 ;;
  198.  
  199.   -host | --host | --hos | --ho)
  200.     ac_prev=host ;;
  201.   -host=* | --host=* | --hos=* | --ho=*)
  202.     host="$ac_optarg" ;;
  203.  
  204.   -includedir | --includedir | --includedi | --included | --include \
  205.   | --includ | --inclu | --incl | --inc)
  206.     ac_prev=includedir ;;
  207.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  208.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  209.     includedir="$ac_optarg" ;;
  210.  
  211.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  212.     ac_prev=infodir ;;
  213.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  214.     infodir="$ac_optarg" ;;
  215.  
  216.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  217.    ac_prev=guidedir ;;
  218.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  219.  
  220.  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
  221.    ac_prev=htmldir ;;
  222.  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)+    htmldir="$ac_optarg" ;;
  223.  
  224.  -psdir | --psdir | --psdi | --psd | --ps)
  225.    ac_prev=psdir ;;
  226.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  227.  
  228.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  229.    ac_prev=dvidir ;;
  230.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  231.  
  232.   -libdir | --libdir | --libdi | --libd)
  233.     ac_prev=libdir ;;
  234.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  235.     libdir="$ac_optarg" ;;
  236.  
  237.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  238.   | --libexe | --libex | --libe)
  239.     ac_prev=libexecdir ;;
  240.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  241.   | --libexe=* | --libex=* | --libe=*)
  242.     libexecdir="$ac_optarg" ;;
  243.  
  244.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  245.   | --localstate | --localstat | --localsta | --localst \
  246.   | --locals | --local | --loca | --loc | --lo)
  247.     ac_prev=localstatedir ;;
  248.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  249.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  250.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  251.     localstatedir="$ac_optarg" ;;
  252.  
  253.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  254.     ac_prev=mandir ;;
  255.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  256.     mandir="$ac_optarg" ;;
  257.  
  258.   -nfp | --nfp | --nf)
  259.     # Obsolete; use --without-fp.
  260.     with_fp=no ;;
  261.  
  262.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  263.   | --no-cr | --no-c)
  264.     no_create=yes ;;
  265.  
  266.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  267.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  268.     no_recursion=yes ;;
  269.  
  270.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  271.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  272.   | --oldin | --oldi | --old | --ol | --o)
  273.     ac_prev=oldincludedir ;;
  274.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  275.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  276.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  277.     oldincludedir="$ac_optarg" ;;
  278.  
  279.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  280.     ac_prev=prefix ;;
  281.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  282.     prefix="$ac_optarg" ;;
  283.  
  284.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  285.   | --program-pre | --program-pr | --program-p)
  286.     ac_prev=program_prefix ;;
  287.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  288.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  289.     program_prefix="$ac_optarg" ;;
  290.  
  291.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  292.   | --program-suf | --program-su | --program-s)
  293.     ac_prev=program_suffix ;;
  294.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  295.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  296.     program_suffix="$ac_optarg" ;;
  297.  
  298.   -program-transform-name | --program-transform-name \
  299.   | --program-transform-nam | --program-transform-na \
  300.   | --program-transform-n | --program-transform- \
  301.   | --program-transform | --program-transfor \
  302.   | --program-transfo | --program-transf \
  303.   | --program-trans | --program-tran \
  304.   | --progr-tra | --program-tr | --program-t)
  305.     ac_prev=program_transform_name ;;
  306.   -program-transform-name=* | --program-transform-name=* \
  307.   | --program-transform-nam=* | --program-transform-na=* \
  308.   | --program-transform-n=* | --program-transform-=* \
  309.   | --program-transform=* | --program-transfor=* \
  310.   | --program-transfo=* | --program-transf=* \
  311.   | --program-trans=* | --program-tran=* \
  312.   | --progr-tra=* | --program-tr=* | --program-t=*)
  313.     program_transform_name="$ac_optarg" ;;
  314.  
  315.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  316.   | -silent | --silent | --silen | --sile | --sil)
  317.     silent=yes ;;
  318.  
  319.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  320.     ac_prev=sbindir ;;
  321.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  322.   | --sbi=* | --sb=*)
  323.     sbindir="$ac_optarg" ;;
  324.  
  325.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  326.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  327.   | --sharedst | --shareds | --shared | --share | --shar \
  328.   | --sha | --sh)
  329.     ac_prev=sharedstatedir ;;
  330.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  331.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  332.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  333.   | --sha=* | --sh=*)
  334.     sharedstatedir="$ac_optarg" ;;
  335.  
  336.   -site | --site | --sit)
  337.     ac_prev=site ;;
  338.   -site=* | --site=* | --sit=*)
  339.     site="$ac_optarg" ;;
  340.  
  341.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  342.     ac_prev=srcdir ;;
  343.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  344.     srcdir="$ac_optarg" ;;
  345.  
  346.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  347.   | --syscon | --sysco | --sysc | --sys | --sy)
  348.     ac_prev=sysconfdir ;;
  349.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  350.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  351.     sysconfdir="$ac_optarg" ;;
  352.  
  353.   -target | --target | --targe | --targ | --tar | --ta | --t)
  354.     ac_prev=target ;;
  355.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  356.     target="$ac_optarg" ;;
  357.  
  358.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  359.     verbose=yes ;;
  360.  
  361.   -version | --version | --versio | --versi | --vers)
  362.     echo "configure generated by autoconf version 2.13"
  363.     exit 0 ;;
  364.  
  365.   -with-* | --with-*)
  366.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  367.     # Reject names that are not valid shell variable names.
  368.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  369.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  370.     fi
  371.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  372.     case "$ac_option" in
  373.       *=*) ;;
  374.       *) ac_optarg=yes ;;
  375.     esac
  376.     eval "with_${ac_package}='$ac_optarg'" ;;
  377.  
  378.   -without-* | --without-*)
  379.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  380.     # Reject names that are not valid shell variable names.
  381.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  382.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  383.     fi
  384.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  385.     eval "with_${ac_package}=no" ;;
  386.  
  387.   --x)
  388.     # Obsolete; use --with-x.
  389.     with_x=yes ;;
  390.  
  391.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  392.   | --x-incl | --x-inc | --x-in | --x-i)
  393.     ac_prev=x_includes ;;
  394.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  395.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  396.     x_includes="$ac_optarg" ;;
  397.  
  398.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  399.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  400.     ac_prev=x_libraries ;;
  401.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  402.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  403.     x_libraries="$ac_optarg" ;;
  404.  
  405.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  406.     ;;
  407.  
  408.   *)
  409.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  410.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  411.     fi
  412.     if test "x$nonopt" != xNONE; then
  413.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  414.     fi
  415.     nonopt="$ac_option"
  416.     ;;
  417.  
  418.   esac
  419. done
  420.  
  421. if test -n "$ac_prev"; then
  422.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  423. fi
  424.  
  425. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  426.  
  427. # File descriptor usage:
  428. # 0 standard input
  429. # 1 file creation
  430. # 2 errors and warnings
  431. # 3 some systems may open it to /dev/tty
  432. # 4 used on the Kubota Titan
  433. # 6 checking for... messages and results
  434. # 5 compiler messages saved in config.log
  435. if test "$silent" = yes; then
  436.   exec 6>/dev/null
  437. else
  438.   exec 6>&1
  439. fi
  440. exec 5>./config.log
  441.  
  442. echo "\
  443. This file contains any messages produced by compilers while
  444. running configure, to aid debugging if configure makes a mistake.
  445. " 1>&5
  446.  
  447. # Strip out --no-create and --no-recursion so they do not pile up.
  448. # Also quote any args containing shell metacharacters.
  449. ac_configure_args=
  450. for ac_arg
  451. do
  452.   case "$ac_arg" in
  453.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  454.   | --no-cr | --no-c) ;;
  455.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  456.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  457.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  458.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  459.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  460.   esac
  461. done
  462.  
  463. # NLS nuisances.
  464. # Only set these to C if already set.  These must not be set unconditionally
  465. # because not all systems understand e.g. LANG=C (notably SCO).
  466. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  467. # Non-C LC_CTYPE values break the ctype check.
  468. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  469. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  470. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  471. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  472.  
  473. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  474. rm -rf conftest* confdefs.h
  475. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  476. echo > confdefs.h
  477.  
  478. # A filename unique to this package, relative to the directory that
  479. # configure is in, which we can look for to find out if srcdir is correct.
  480. ac_unique_file=TODO 
  481.  
  482. # Find the source files, if location was not specified.
  483. if test -z "$srcdir"; then
  484.   ac_srcdir_defaulted=yes
  485.   # Try the directory containing this script, then its parent.
  486.   ac_prog=$0
  487.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  488.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  489.   srcdir=$ac_confdir
  490.   if test ! -r $srcdir/$ac_unique_file; then
  491.     srcdir=..
  492.   fi
  493. else
  494.   ac_srcdir_defaulted=no
  495. fi
  496. if test ! -r $srcdir/$ac_unique_file; then
  497.   if test "$ac_srcdir_defaulted" = yes; then
  498.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  499.   else
  500.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  501.   fi
  502. fi
  503. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  504.  
  505. # Prefer explicitly selected file to automatically selected ones.
  506. if test -z "$CONFIG_SITE"; then
  507.   if test "x$prefix" != xNONE; then
  508.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  509.   else
  510.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  511.   fi
  512. fi
  513. for ac_site_file in $CONFIG_SITE; do
  514.   if test -r "$ac_site_file"; then
  515.     echo "loading site script $ac_site_file"
  516.     . "$ac_site_file"
  517.   fi
  518. done
  519.  
  520. if test -r "$cache_file"; then
  521.   echo "loading cache $cache_file"
  522.   . $cache_file
  523. else
  524.   echo "creating cache $cache_file"
  525.   > $cache_file
  526. fi
  527.  
  528. ac_ext=c
  529. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  530. ac_cpp='$CPP $CPPFLAGS'
  531. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  532. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  533. cross_compiling=$ac_cv_prog_cc_cross
  534.  
  535. ac_exeext=
  536. ac_objext=o
  537. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  538.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  539.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  540.     ac_n= ac_c='
  541. ' ac_t='    '
  542.   else
  543.     ac_n=-n ac_c= ac_t=
  544.   fi
  545. else
  546.   ac_n= ac_c='\c' ac_t=
  547. fi
  548.  
  549.  
  550.  
  551.  
  552.  
  553. ac_aux_dir=
  554. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  555.   if test -f $ac_dir/install-sh; then
  556.     ac_aux_dir=$ac_dir
  557.     ac_install_sh="$ac_aux_dir/install-sh -c"
  558.     break
  559.   elif test -f $ac_dir/install.sh; then
  560.     ac_aux_dir=$ac_dir
  561.     ac_install_sh="$ac_aux_dir/install.sh -c"
  562.     break
  563.   fi
  564. done
  565. if test -z "$ac_aux_dir"; then
  566.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  567. fi
  568. ac_config_guess=$ac_aux_dir/config.guess
  569. ac_config_sub=$ac_aux_dir/config.sub
  570. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  571.  
  572.  
  573. # Do some error checking and defaulting for the host and target type.
  574. # The inputs are:
  575. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  576. #
  577. # The rules are:
  578. # 1. You are not allowed to specify --host, --target, and nonopt at the
  579. #    same time.
  580. # 2. Host defaults to nonopt.
  581. # 3. If nonopt is not specified, then host defaults to the current host,
  582. #    as determined by config.guess.
  583. # 4. Target and build default to nonopt.
  584. # 5. If nonopt is not specified, then target and build default to host.
  585.  
  586. # The aliases save the names the user supplied, while $host etc.
  587. # will get canonicalized.
  588. case $host---$target---$nonopt in
  589. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  590. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  591. esac
  592.  
  593.  
  594. # Make sure we can run config.sub.
  595. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  596. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  597. fi
  598.  
  599. echo $ac_n "checking host system type""... $ac_c" 1>&6
  600. echo "configure:601: checking host system type" >&5
  601.  
  602. host_alias=$host
  603. case "$host_alias" in
  604. NONE)
  605.   case $nonopt in
  606.   NONE)
  607.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  608.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  609.     fi ;;
  610.   *) host_alias=$nonopt ;;
  611.   esac ;;
  612. esac
  613.  
  614. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  615. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  616. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  617. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  618. echo "$ac_t""$host" 1>&6
  619.  
  620. echo $ac_n "checking target system type""... $ac_c" 1>&6
  621. echo "configure:622: checking target system type" >&5
  622.  
  623. target_alias=$target
  624. case "$target_alias" in
  625. NONE)
  626.   case $nonopt in
  627.   NONE) target_alias=$host_alias ;;
  628.   *) target_alias=$nonopt ;;
  629.   esac ;;
  630. esac
  631.  
  632. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  633. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  634. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  635. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  636. echo "$ac_t""$target" 1>&6
  637.  
  638. echo $ac_n "checking build system type""... $ac_c" 1>&6
  639. echo "configure:640: checking build system type" >&5
  640.  
  641. build_alias=$build
  642. case "$build_alias" in
  643. NONE)
  644.   case $nonopt in
  645.   NONE) build_alias=$host_alias ;;
  646.   *) build_alias=$nonopt ;;
  647.   esac ;;
  648. esac
  649.  
  650. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  651. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  652. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  653. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  654. echo "$ac_t""$build" 1>&6
  655.  
  656. test "$host_alias" != "$target_alias" &&
  657.   test "$program_prefix$program_suffix$program_transform_name" = \
  658.     NONENONEs,x,x, &&
  659.   program_prefix=${target_alias}-
  660.  
  661. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  662. echo "configure:663: checking whether ${MAKE-make} sets \${MAKE}" >&5
  663. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  664. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  665.   echo $ac_n "(cached) $ac_c" 1>&6
  666. else
  667.   cat > conftestmake <<\EOF
  668. all:
  669.     @echo 'ac_maketemp="${MAKE}"'
  670. EOF
  671. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  672. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  673. if test -n "$ac_maketemp"; then
  674.   eval ac_cv_prog_make_${ac_make}_set=yes
  675. else
  676.   eval ac_cv_prog_make_${ac_make}_set=no
  677. fi
  678. rm -f conftestmake
  679. fi
  680. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  681.   echo "$ac_t""yes" 1>&6
  682.   SET_MAKE=
  683. else
  684.   echo "$ac_t""no" 1>&6
  685.   SET_MAKE="MAKE=${MAKE-make}"
  686. fi
  687.  
  688.  
  689.  
  690. : ${CFLAGS='-g -I. -O2 -fomit-frame-pointer -ffast-math -W -Wall -Wstrict-prototypes -Wno-unused '}
  691. : ${CPPFLAGS='-I/gg/os-include -I/gg/include'}
  692. : ${LDFLAGS='-noixemul'}
  693. : ${ARFLAGS='-ru'}
  694.  
  695. : ${DISTDIR='/tmp/ahi'}
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703. if test $host != $build; then
  704.   ac_tool_prefix=${host_alias}-
  705. else
  706.   ac_tool_prefix=
  707. fi
  708.  
  709. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  710. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  711. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  712. echo "configure:713: checking for $ac_word" >&5
  713. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  714.   echo $ac_n "(cached) $ac_c" 1>&6
  715. else
  716.   if test -n "$CC"; then
  717.   ac_cv_prog_CC="$CC" # Let the user override the test.
  718. else
  719.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  720.   ac_dummy="$PATH"
  721.   for ac_dir in $ac_dummy; do
  722.     test -z "$ac_dir" && ac_dir=.
  723.     if test -f $ac_dir/$ac_word; then
  724.       ac_cv_prog_CC="${ac_tool_prefix}gcc"
  725.       break
  726.     fi
  727.   done
  728.   IFS="$ac_save_ifs"
  729. fi
  730. fi
  731. CC="$ac_cv_prog_CC"
  732. if test -n "$CC"; then
  733.   echo "$ac_t""$CC" 1>&6
  734. else
  735.   echo "$ac_t""no" 1>&6
  736. fi
  737.  
  738.  
  739. if test -z "$ac_cv_prog_CC"; then
  740. if test -n "$ac_tool_prefix"; then
  741.   # Extract the first word of "gcc", so it can be a program name with args.
  742. set dummy gcc; ac_word=$2
  743. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  744. echo "configure:745: checking for $ac_word" >&5
  745. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  746.   echo $ac_n "(cached) $ac_c" 1>&6
  747. else
  748.   if test -n "$CC"; then
  749.   ac_cv_prog_CC="$CC" # Let the user override the test.
  750. else
  751.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  752.   ac_dummy="$PATH"
  753.   for ac_dir in $ac_dummy; do
  754.     test -z "$ac_dir" && ac_dir=.
  755.     if test -f $ac_dir/$ac_word; then
  756.       ac_cv_prog_CC="gcc"
  757.       break
  758.     fi
  759.   done
  760.   IFS="$ac_save_ifs"
  761.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC=":"
  762. fi
  763. fi
  764. CC="$ac_cv_prog_CC"
  765. if test -n "$CC"; then
  766.   echo "$ac_t""$CC" 1>&6
  767. else
  768.   echo "$ac_t""no" 1>&6
  769. fi
  770.  
  771. else
  772.   CC=":"
  773. fi
  774. fi
  775.  
  776. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  777. set dummy ${ac_tool_prefix}as; ac_word=$2
  778. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  779. echo "configure:780: checking for $ac_word" >&5
  780. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  781.   echo $ac_n "(cached) $ac_c" 1>&6
  782. else
  783.   if test -n "$AS"; then
  784.   ac_cv_prog_AS="$AS" # Let the user override the test.
  785. else
  786.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  787.   ac_dummy="$PATH"
  788.   for ac_dir in $ac_dummy; do
  789.     test -z "$ac_dir" && ac_dir=.
  790.     if test -f $ac_dir/$ac_word; then
  791.       ac_cv_prog_AS="${ac_tool_prefix}as"
  792.       break
  793.     fi
  794.   done
  795.   IFS="$ac_save_ifs"
  796. fi
  797. fi
  798. AS="$ac_cv_prog_AS"
  799. if test -n "$AS"; then
  800.   echo "$ac_t""$AS" 1>&6
  801. else
  802.   echo "$ac_t""no" 1>&6
  803. fi
  804.  
  805.  
  806. if test -z "$ac_cv_prog_AS"; then
  807. if test -n "$ac_tool_prefix"; then
  808.   # Extract the first word of "as", so it can be a program name with args.
  809. set dummy as; ac_word=$2
  810. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  811. echo "configure:812: checking for $ac_word" >&5
  812. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  813.   echo $ac_n "(cached) $ac_c" 1>&6
  814. else
  815.   if test -n "$AS"; then
  816.   ac_cv_prog_AS="$AS" # Let the user override the test.
  817. else
  818.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  819.   ac_dummy="$PATH"
  820.   for ac_dir in $ac_dummy; do
  821.     test -z "$ac_dir" && ac_dir=.
  822.     if test -f $ac_dir/$ac_word; then
  823.       ac_cv_prog_AS="as"
  824.       break
  825.     fi
  826.   done
  827.   IFS="$ac_save_ifs"
  828.   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
  829. fi
  830. fi
  831. AS="$ac_cv_prog_AS"
  832. if test -n "$AS"; then
  833.   echo "$ac_t""$AS" 1>&6
  834. else
  835.   echo "$ac_t""no" 1>&6
  836. fi
  837.  
  838. else
  839.   AS=":"
  840. fi
  841. fi
  842.  
  843.  
  844. # Find a good install program.  We prefer a C program (faster),
  845. # so one script is as good as another.  But avoid the broken or
  846. # incompatible versions:
  847. # SysV /etc/install, /usr/sbin/install
  848. # SunOS /usr/etc/install
  849. # IRIX /sbin/install
  850. # AIX /bin/install
  851. # AmigaOS /c/install
  852. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  853. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  854. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  855. # ./install, which can be erroneously created by make from ./install.sh.
  856. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  857. echo "configure:858: checking for a BSD compatible install" >&5
  858. if test -z "$INSTALL"; then
  859. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  860.   echo $ac_n "(cached) $ac_c" 1>&6
  861. else
  862.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  863.   for ac_dir in $PATH; do
  864.     # Account for people who put trailing slashes in PATH elements.
  865.     case "$ac_dir/" in
  866.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  867.     *)
  868.       # OSF1 and SCO ODT 3.0 have their own names for install.
  869.       # Don't use installbsd from OSF since it installs stuff as root
  870.       # by default.
  871.       for ac_prog in ginstall scoinst install; do
  872.         if test -f $ac_dir/$ac_prog; then
  873.       if test $ac_prog = install &&
  874.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  875.         # AIX install.  It has an incompatible calling convention.
  876.         :
  877.       else
  878.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  879.         break 2
  880.       fi
  881.     fi
  882.       done
  883.       ;;
  884.     esac
  885.   done
  886.   IFS="$ac_save_IFS"
  887.  
  888. fi
  889.   if test "${ac_cv_path_install+set}" = set; then
  890.     INSTALL="$ac_cv_path_install"
  891.   else
  892.     # As a last resort, use the slow shell script.  We don't cache a
  893.     # path for INSTALL within a source directory, because that will
  894.     # break other packages using the cache if that directory is
  895.     # removed, or if the path is relative.
  896.     INSTALL="$ac_install_sh"
  897.   fi
  898. fi
  899. echo "$ac_t""$INSTALL" 1>&6
  900.  
  901. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  902. # It thinks the first close brace ends the variable substitution.
  903. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  904.  
  905. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  906.  
  907. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  908.  
  909. # Extract the first word of "gcc", so it can be a program name with args.
  910. set dummy gcc; ac_word=$2
  911. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  912. echo "configure:913: checking for $ac_word" >&5
  913. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  914.   echo $ac_n "(cached) $ac_c" 1>&6
  915. else
  916.   if test -n "$CC"; then
  917.   ac_cv_prog_CC="$CC" # Let the user override the test.
  918. else
  919.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  920.   ac_dummy="$PATH"
  921.   for ac_dir in $ac_dummy; do
  922.     test -z "$ac_dir" && ac_dir=.
  923.     if test -f $ac_dir/$ac_word; then
  924.       ac_cv_prog_CC="gcc"
  925.       break
  926.     fi
  927.   done
  928.   IFS="$ac_save_ifs"
  929. fi
  930. fi
  931. CC="$ac_cv_prog_CC"
  932. if test -n "$CC"; then
  933.   echo "$ac_t""$CC" 1>&6
  934. else
  935.   echo "$ac_t""no" 1>&6
  936. fi
  937.  
  938. if test -z "$CC"; then
  939.   # Extract the first word of "bcc", so it can be a program name with args.
  940. set dummy bcc; ac_word=$2
  941. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  942. echo "configure:943: checking for $ac_word" >&5
  943. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  944.   echo $ac_n "(cached) $ac_c" 1>&6
  945. else
  946.   if test -n "$CC"; then
  947.   ac_cv_prog_CC="$CC" # Let the user override the test.
  948. else
  949.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  950.   ac_dummy="$PATH"
  951.   for ac_dir in $ac_dummy; do
  952.     test -z "$ac_dir" && ac_dir=.
  953.     if test -f $ac_dir/$ac_word; then
  954.       ac_cv_prog_CC="bcc"
  955.       break
  956.     fi
  957.   done
  958.   IFS="$ac_save_ifs"
  959. fi
  960. fi
  961. CC="$ac_cv_prog_CC"
  962. if test -n "$CC"; then
  963.   echo "$ac_t""$CC" 1>&6
  964. else
  965.   echo "$ac_t""no" 1>&6
  966. fi
  967.  
  968. fi
  969. if test -z "$CC"; then
  970.   machine=`(uname -m 2>/dev/null)` || machine=unknown
  971.   case "$machine" in
  972.     BePC) # Extract the first word of "mwccx86", so it can be a program name with args.
  973. set dummy mwccx86; ac_word=$2
  974. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  975. echo "configure:976: checking for $ac_word" >&5
  976. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  977.   echo $ac_n "(cached) $ac_c" 1>&6
  978. else
  979.   if test -n "$CC"; then
  980.   ac_cv_prog_CC="$CC" # Let the user override the test.
  981. else
  982.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  983.   ac_dummy="$PATH"
  984.   for ac_dir in $ac_dummy; do
  985.     test -z "$ac_dir" && ac_dir=.
  986.     if test -f $ac_dir/$ac_word; then
  987.       ac_cv_prog_CC="mwccx86"
  988.       break
  989.     fi
  990.   done
  991.   IFS="$ac_save_ifs"
  992. fi
  993. fi
  994. CC="$ac_cv_prog_CC"
  995. if test -n "$CC"; then
  996.   echo "$ac_t""$CC" 1>&6
  997. else
  998.   echo "$ac_t""no" 1>&6
  999. fi
  1000.  ;;
  1001.     BeBox | BeMac ) # Extract the first word of "mwcc", so it can be a program name with args.
  1002. set dummy mwcc; ac_word=$2
  1003. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1004. echo "configure:1005: checking for $ac_word" >&5
  1005. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1006.   echo $ac_n "(cached) $ac_c" 1>&6
  1007. else
  1008.   if test -n "$CC"; then
  1009.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1010. else
  1011.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1012.   ac_dummy="$PATH"
  1013.   for ac_dir in $ac_dummy; do
  1014.     test -z "$ac_dir" && ac_dir=.
  1015.     if test -f $ac_dir/$ac_word; then
  1016.       ac_cv_prog_CC="mwcc"
  1017.       break
  1018.     fi
  1019.   done
  1020.   IFS="$ac_save_ifs"
  1021. fi
  1022. fi
  1023. CC="$ac_cv_prog_CC"
  1024. if test -n "$CC"; then
  1025.   echo "$ac_t""$CC" 1>&6
  1026. else
  1027.   echo "$ac_t""no" 1>&6
  1028. fi
  1029.  ;;
  1030.     *) ;;
  1031.   esac
  1032. fi
  1033. if test -z "$CC"; then
  1034.   # Extract the first word of "cc", so it can be a program name with args.
  1035. set dummy cc; ac_word=$2
  1036. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1037. echo "configure:1038: checking for $ac_word" >&5
  1038. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1039.   echo $ac_n "(cached) $ac_c" 1>&6
  1040. else
  1041.   if test -n "$CC"; then
  1042.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1043. else
  1044.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1045.   ac_prog_rejected=no
  1046.   ac_dummy="$PATH"
  1047.   for ac_dir in $ac_dummy; do
  1048.     test -z "$ac_dir" && ac_dir=.
  1049.     if test -f $ac_dir/$ac_word; then
  1050.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1051.         ac_prog_rejected=yes
  1052.     continue
  1053.       fi
  1054.       ac_cv_prog_CC="cc"
  1055.       break
  1056.     fi
  1057.   done
  1058.   IFS="$ac_save_ifs"
  1059. if test $ac_prog_rejected = yes; then
  1060.   # We found a bogon in the path, so make sure we never use it.
  1061.   set dummy $ac_cv_prog_CC
  1062.   shift
  1063.   if test $# -gt 0; then
  1064.     # We chose a different compiler from the bogus one.
  1065.     # However, it has the same basename, so the bogon will be chosen
  1066.     # first if we set CC to just the basename; use the full file name.
  1067.     shift
  1068.     set dummy "$ac_dir/$ac_word" "$@"
  1069.     shift
  1070.     ac_cv_prog_CC="$@"
  1071.   fi
  1072. fi
  1073. fi
  1074. fi
  1075. CC="$ac_cv_prog_CC"
  1076. if test -n "$CC"; then
  1077.   echo "$ac_t""$CC" 1>&6
  1078. else
  1079.   echo "$ac_t""no" 1>&6
  1080. fi
  1081.  
  1082. fi
  1083. if test -z "$CC"; then
  1084.   case "`uname -s`" in
  1085.   *win32* | *WIN32*)
  1086.     # Extract the first word of "cl", so it can be a program name with args.
  1087. set dummy cl; ac_word=$2
  1088. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1089. echo "configure:1090: checking for $ac_word" >&5
  1090. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1091.   echo $ac_n "(cached) $ac_c" 1>&6
  1092. else
  1093.   if test -n "$CC"; then
  1094.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1095. else
  1096.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1097.   ac_dummy="$PATH"
  1098.   for ac_dir in $ac_dummy; do
  1099.     test -z "$ac_dir" && ac_dir=.
  1100.     if test -f $ac_dir/$ac_word; then
  1101.       ac_cv_prog_CC="cl"
  1102.       break
  1103.     fi
  1104.   done
  1105.   IFS="$ac_save_ifs"
  1106. fi
  1107. fi
  1108. CC="$ac_cv_prog_CC"
  1109. if test -n "$CC"; then
  1110.   echo "$ac_t""$CC" 1>&6
  1111. else
  1112.   echo "$ac_t""no" 1>&6
  1113. fi
  1114.  ;;
  1115.   esac
  1116. fi
  1117. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1118.  
  1119. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1120. echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1121.  
  1122. ac_ext=c
  1123. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1126. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1127. cross_compiling=$ac_cv_prog_cc_cross
  1128.  
  1129. cat > conftest.$ac_ext << EOF
  1130.  
  1131. #line 1132 "configure"
  1132. #include "confdefs.h"
  1133.  
  1134. main(){return(0);}
  1135. EOF
  1136. if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1137.   ac_cv_prog_cc_works=yes
  1138.   # If we can't run a trivial program, we are probably using a cross compiler.
  1139.   if (./conftest; exit) 2>/dev/null; then
  1140.     ac_cv_prog_cc_cross=no
  1141.   else
  1142.     ac_cv_prog_cc_cross=yes
  1143.   fi
  1144. else
  1145.   echo "configure: failed program was:" >&5
  1146.   cat conftest.$ac_ext >&5
  1147.   ac_cv_prog_cc_works=no
  1148. fi
  1149. rm -fr conftest*
  1150. ac_ext=c
  1151. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1152. ac_cpp='$CPP $CPPFLAGS'
  1153. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1154. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1155. cross_compiling=$ac_cv_prog_cc_cross
  1156.  
  1157. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1158. if test $ac_cv_prog_cc_works = no; then
  1159.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1160. fi
  1161. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1162. echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1163. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1164. cross_compiling=$ac_cv_prog_cc_cross
  1165.  
  1166. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1167. echo "configure:1168: checking whether we are using GNU C" >&5
  1168. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1169.   echo $ac_n "(cached) $ac_c" 1>&6
  1170. else
  1171.   cat > conftest.c <<EOF
  1172. #ifdef __GNUC__
  1173.   yes;
  1174. #endif
  1175. EOF
  1176. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1177.   ac_cv_prog_gcc=yes
  1178. else
  1179.   ac_cv_prog_gcc=no
  1180. fi
  1181. fi
  1182.  
  1183. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1184.  
  1185. if test $ac_cv_prog_gcc = yes; then
  1186.   GCC=yes
  1187. else
  1188.   GCC=
  1189. fi
  1190.  
  1191. ac_test_CFLAGS="${CFLAGS+set}"
  1192. ac_save_CFLAGS="$CFLAGS"
  1193. CFLAGS=
  1194. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1195. echo "configure:1196: checking whether ${CC-cc} accepts -g" >&5
  1196. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1197.   echo $ac_n "(cached) $ac_c" 1>&6
  1198. else
  1199.   echo 'void f(){}' > conftest.c
  1200. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1201.   ac_cv_prog_cc_g=yes
  1202. else
  1203.   ac_cv_prog_cc_g=no
  1204. fi
  1205. rm -f conftest*
  1206.  
  1207. fi
  1208.  
  1209. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1210. if test "$ac_test_CFLAGS" = set; then
  1211.   CFLAGS="$ac_save_CFLAGS"
  1212. elif test $ac_cv_prog_cc_g = yes; then
  1213.   if test "$GCC" = yes; then
  1214.     CFLAGS="-g -O2"
  1215.   else
  1216.     CFLAGS="-g"
  1217.   fi
  1218. else
  1219.   if test "$GCC" = yes; then
  1220.     CFLAGS="-O2"
  1221.   else
  1222.     CFLAGS=
  1223.   fi
  1224. fi
  1225. case "$CC" in
  1226.   bcc )
  1227.     AR=${AR-mwld}
  1228.     LD=${LD-mwld}
  1229.     RANLIB=${RANLIB-true};;
  1230.   mwcc )
  1231.     CC="mwcc -I- -I. -I/boot/apps/GeekGadgets/include -L/boot/apps/GeekGadgets/lib -opt global -nodup"
  1232.     AR=${AR-mwld}
  1233.     LD=${LD-mwld}
  1234.     RANLIB=${RANLIB-true};;
  1235.   mwccx86 )
  1236.     CC="mwccx86 -I- -I. -I/boot/apps/GeekGadgets/include -L/boot/apps/GeekGadgets/lib"
  1237.     AR=${AR-mwldx86}
  1238.     LD=${LD-mwldx86}
  1239.     RANLIB=${RANLIB-true};;
  1240.   ${host_alias}-gcc)
  1241.     ;;
  1242.   *)
  1243.     AR=${AR-ar}
  1244.     LD=${LD-ld}
  1245.     RANLIB=${RANLIB-ranlib};;
  1246. esac
  1247.  
  1248.  
  1249. # Extract the first word of "ranlib", so it can be a program name with args.
  1250. set dummy ranlib; ac_word=$2
  1251. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1252. echo "configure:1253: checking for $ac_word" >&5
  1253. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1254.   echo $ac_n "(cached) $ac_c" 1>&6
  1255. else
  1256.   if test -n "$RANLIB"; then
  1257.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1258. else
  1259.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1260.   ac_dummy="$PATH"
  1261.   for ac_dir in $ac_dummy; do
  1262.     test -z "$ac_dir" && ac_dir=.
  1263.     if test -f $ac_dir/$ac_word; then
  1264.       ac_cv_prog_RANLIB="ranlib"
  1265.       break
  1266.     fi
  1267.   done
  1268.   IFS="$ac_save_ifs"
  1269.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1270. fi
  1271. fi
  1272. RANLIB="$ac_cv_prog_RANLIB"
  1273. if test -n "$RANLIB"; then
  1274.   echo "$ac_t""$RANLIB" 1>&6
  1275. else
  1276.   echo "$ac_t""no" 1>&6
  1277. fi
  1278.  
  1279. # Extract the first word of "ar", so it can be a program name with args.
  1280. set dummy ar; ac_word=$2
  1281. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1282. echo "configure:1283: checking for $ac_word" >&5
  1283. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1284.   echo $ac_n "(cached) $ac_c" 1>&6
  1285. else
  1286.   if test -n "$AR"; then
  1287.   ac_cv_prog_AR="$AR" # Let the user override the test.
  1288. else
  1289.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1290.   ac_dummy="$PATH"
  1291.   for ac_dir in $ac_dummy; do
  1292.     test -z "$ac_dir" && ac_dir=.
  1293.     if test -f $ac_dir/$ac_word; then
  1294.       ac_cv_prog_AR="ar "
  1295.       break
  1296.     fi
  1297.   done
  1298.   IFS="$ac_save_ifs"
  1299. fi
  1300. fi
  1301. AR="$ac_cv_prog_AR"
  1302. if test -n "$AR"; then
  1303.   echo "$ac_t""$AR" 1>&6
  1304. else
  1305.   echo "$ac_t""no" 1>&6
  1306. fi
  1307.  
  1308. # Extract the first word of "rm", so it can be a program name with args.
  1309. set dummy rm; ac_word=$2
  1310. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1311. echo "configure:1312: checking for $ac_word" >&5
  1312. if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then
  1313.   echo $ac_n "(cached) $ac_c" 1>&6
  1314. else
  1315.   if test -n "$RM"; then
  1316.   ac_cv_prog_RM="$RM" # Let the user override the test.
  1317. else
  1318.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1319.   ac_dummy="$PATH"
  1320.   for ac_dir in $ac_dummy; do
  1321.     test -z "$ac_dir" && ac_dir=.
  1322.     if test -f $ac_dir/$ac_word; then
  1323.       ac_cv_prog_RM="rm "
  1324.       break
  1325.     fi
  1326.   done
  1327.   IFS="$ac_save_ifs"
  1328. fi
  1329. fi
  1330. RM="$ac_cv_prog_RM"
  1331. if test -n "$RM"; then
  1332.   echo "$ac_t""$RM" 1>&6
  1333. else
  1334.   echo "$ac_t""no" 1>&6
  1335. fi
  1336.  
  1337. # Extract the first word of "flexcat", so it can be a program name with args.
  1338. set dummy flexcat; ac_word=$2
  1339. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1340. echo "configure:1341: checking for $ac_word" >&5
  1341. if eval "test \"`echo '$''{'ac_cv_prog_FLEXCAT'+set}'`\" = set"; then
  1342.   echo $ac_n "(cached) $ac_c" 1>&6
  1343. else
  1344.   if test -n "$FLEXCAT"; then
  1345.   ac_cv_prog_FLEXCAT="$FLEXCAT" # Let the user override the test.
  1346. else
  1347.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1348.   ac_dummy="$PATH"
  1349.   for ac_dir in $ac_dummy; do
  1350.     test -z "$ac_dir" && ac_dir=.
  1351.     if test -f $ac_dir/$ac_word; then
  1352.       ac_cv_prog_FLEXCAT="flexcat "
  1353.       break
  1354.     fi
  1355.   done
  1356.   IFS="$ac_save_ifs"
  1357. fi
  1358. fi
  1359. FLEXCAT="$ac_cv_prog_FLEXCAT"
  1360. if test -n "$FLEXCAT"; then
  1361.   echo "$ac_t""$FLEXCAT" 1>&6
  1362. else
  1363.   echo "$ac_t""no" 1>&6
  1364. fi
  1365.  
  1366. # Extract the first word of "PhxAss", so it can be a program name with args.
  1367. set dummy PhxAss; ac_word=$2
  1368. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1369. echo "configure:1370: checking for $ac_word" >&5
  1370. if eval "test \"`echo '$''{'ac_cv_prog_ASM'+set}'`\" = set"; then
  1371.   echo $ac_n "(cached) $ac_c" 1>&6
  1372. else
  1373.   if test -n "$ASM"; then
  1374.   ac_cv_prog_ASM="$ASM" # Let the user override the test.
  1375. else
  1376.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1377.   ac_dummy="$PATH"
  1378.   for ac_dir in $ac_dummy; do
  1379.     test -z "$ac_dir" && ac_dir=.
  1380.     if test -f $ac_dir/$ac_word; then
  1381.       ac_cv_prog_ASM="PhxAss "
  1382.       break
  1383.     fi
  1384.   done
  1385.   IFS="$ac_save_ifs"
  1386. fi
  1387. fi
  1388. ASM="$ac_cv_prog_ASM"
  1389. if test -n "$ASM"; then
  1390.   echo "$ac_t""$ASM" 1>&6
  1391. else
  1392.   echo "$ac_t""no" 1>&6
  1393. fi
  1394.  
  1395. # Extract the first word of "makedepend", so it can be a program name with args.
  1396. set dummy makedepend; ac_word=$2
  1397. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1398. echo "configure:1399: checking for $ac_word" >&5
  1399. if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEPEND'+set}'`\" = set"; then
  1400.   echo $ac_n "(cached) $ac_c" 1>&6
  1401. else
  1402.   if test -n "$MAKEDEPEND"; then
  1403.   ac_cv_prog_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test.
  1404. else
  1405.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1406.   ac_dummy="$PATH"
  1407.   for ac_dir in $ac_dummy; do
  1408.     test -z "$ac_dir" && ac_dir=.
  1409.     if test -f $ac_dir/$ac_word; then
  1410.       ac_cv_prog_MAKEDEPEND="makedepend "
  1411.       break
  1412.     fi
  1413.   done
  1414.   IFS="$ac_save_ifs"
  1415. fi
  1416. fi
  1417. MAKEDEPEND="$ac_cv_prog_MAKEDEPEND"
  1418. if test -n "$MAKEDEPEND"; then
  1419.   echo "$ac_t""$MAKEDEPEND" 1>&6
  1420. else
  1421.   echo "$ac_t""no" 1>&6
  1422. fi
  1423.  
  1424.  
  1425.  
  1426.  
  1427. echo $ac_n "checking for NewList in -lamiga""... $ac_c" 1>&6
  1428. echo "configure:1429: checking for NewList in -lamiga" >&5
  1429. ac_lib_var=`echo amiga'_'NewList | sed 'y%./+-%__p_%'`
  1430. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1431.   echo $ac_n "(cached) $ac_c" 1>&6
  1432. else
  1433.   ac_save_LIBS="$LIBS"
  1434. LIBS="-lamiga  $LIBS"
  1435. cat > conftest.$ac_ext <<EOF
  1436. #line 1437 "configure"
  1437. #include "confdefs.h"
  1438. /* Override any gcc2 internal prototype to avoid an error.  */
  1439. /* We use char because int might match the return type of a gcc2
  1440.     builtin and then its argument prototype would still apply.  */
  1441. char NewList();
  1442.  
  1443. int main() {
  1444. NewList()
  1445. ; return 0; }
  1446. EOF
  1447. if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1448.   rm -rf conftest*
  1449.   eval "ac_cv_lib_$ac_lib_var=yes"
  1450. else
  1451.   echo "configure: failed program was:" >&5
  1452.   cat conftest.$ac_ext >&5
  1453.   rm -rf conftest*
  1454.   eval "ac_cv_lib_$ac_lib_var=no"
  1455. fi
  1456. rm -f conftest*
  1457. LIBS="$ac_save_LIBS"
  1458.  
  1459. fi
  1460. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1461.   echo "$ac_t""yes" 1>&6
  1462.     ac_tr_lib=HAVE_LIB`echo amiga | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1463.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1464.   cat >> confdefs.h <<EOF
  1465. #define $ac_tr_lib 1
  1466. EOF
  1467.  
  1468.   LIBS="-lamiga $LIBS"
  1469.  
  1470. else
  1471.   echo "$ac_t""no" 1>&6
  1472. { echo "configure: error: "libamiga is missing." " 1>&2; exit 1; } 
  1473. fi
  1474.  
  1475. echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
  1476. echo "configure:1477: checking for floor in -lm" >&5
  1477. ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
  1478. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1479.   echo $ac_n "(cached) $ac_c" 1>&6
  1480. else
  1481.   ac_save_LIBS="$LIBS"
  1482. LIBS="-lm  $LIBS"
  1483. cat > conftest.$ac_ext <<EOF
  1484. #line 1485 "configure"
  1485. #include "confdefs.h"
  1486. /* Override any gcc2 internal prototype to avoid an error.  */
  1487. /* We use char because int might match the return type of a gcc2
  1488.     builtin and then its argument prototype would still apply.  */
  1489. char floor();
  1490.  
  1491. int main() {
  1492. floor()
  1493. ; return 0; }
  1494. EOF
  1495. if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1496.   rm -rf conftest*
  1497.   eval "ac_cv_lib_$ac_lib_var=yes"
  1498. else
  1499.   echo "configure: failed program was:" >&5
  1500.   cat conftest.$ac_ext >&5
  1501.   rm -rf conftest*
  1502.   eval "ac_cv_lib_$ac_lib_var=no"
  1503. fi
  1504. rm -f conftest*
  1505. LIBS="$ac_save_LIBS"
  1506.  
  1507. fi
  1508. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1509.   echo "$ac_t""yes" 1>&6
  1510.     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1511.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1512.   cat >> confdefs.h <<EOF
  1513. #define $ac_tr_lib 1
  1514. EOF
  1515.  
  1516.   LIBS="-lm $LIBS"
  1517.  
  1518. else
  1519.   echo "$ac_t""no" 1>&6
  1520. { echo "configure: error: "libm is missing." " 1>&2; exit 1; } 
  1521. fi
  1522.  
  1523.  
  1524.  
  1525.  
  1526. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1527. echo "configure:1528: checking how to run the C preprocessor" >&5
  1528. # On Suns, sometimes $CPP names a directory.
  1529. if test -n "$CPP" && test -d "$CPP"; then
  1530.   CPP=
  1531. fi
  1532. if test -z "$CPP"; then
  1533. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1534.   echo $ac_n "(cached) $ac_c" 1>&6
  1535. else
  1536.     # This must be in double quotes, not single quotes, because CPP may get
  1537.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1538.   CPP="${CC-cc} -E"
  1539.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1540.   # not just through cpp.
  1541.   cat > conftest.$ac_ext <<EOF
  1542. #line 1543 "configure"
  1543. #include "confdefs.h"
  1544. #include <assert.h>
  1545. Syntax Error
  1546. EOF
  1547. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1548. { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1549. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1550. if test -z "$ac_err"; then
  1551.   :
  1552. else
  1553.   echo "$ac_err" >&5
  1554.   echo "configure: failed program was:" >&5
  1555.   cat conftest.$ac_ext >&5
  1556.   rm -rf conftest*
  1557.   CPP="${CC-cc} -E -traditional-cpp"
  1558.   cat > conftest.$ac_ext <<EOF
  1559. #line 1560 "configure"
  1560. #include "confdefs.h"
  1561. #include <assert.h>
  1562. Syntax Error
  1563. EOF
  1564. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1565. { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1566. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1567. if test -z "$ac_err"; then
  1568.   :
  1569. else
  1570.   echo "$ac_err" >&5
  1571.   echo "configure: failed program was:" >&5
  1572.   cat conftest.$ac_ext >&5
  1573.   rm -rf conftest*
  1574.   CPP="${CC-cc} -nologo -E"
  1575.   cat > conftest.$ac_ext <<EOF
  1576. #line 1577 "configure"
  1577. #include "confdefs.h"
  1578. #include <assert.h>
  1579. Syntax Error
  1580. EOF
  1581. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1582. { (eval echo configure:1583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1583. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1584. if test -z "$ac_err"; then
  1585.   :
  1586. else
  1587.   echo "$ac_err" >&5
  1588.   echo "configure: failed program was:" >&5
  1589.   cat conftest.$ac_ext >&5
  1590.   rm -rf conftest*
  1591.   CPP=/lib/cpp
  1592. fi
  1593. rm -f conftest*
  1594. fi
  1595. rm -f conftest*
  1596. fi
  1597. rm -f conftest*
  1598.   ac_cv_prog_CPP="$CPP"
  1599. fi
  1600.   CPP="$ac_cv_prog_CPP"
  1601. else
  1602.   ac_cv_prog_CPP="$CPP"
  1603. fi
  1604. echo "$ac_t""$CPP" 1>&6
  1605.  
  1606. ac_safe=`echo "CompilerSpecific.h" | sed 'y%./+-%__p_%'`
  1607. echo $ac_n "checking for CompilerSpecific.h""... $ac_c" 1>&6
  1608. echo "configure:1609: checking for CompilerSpecific.h" >&5
  1609. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1610.   echo $ac_n "(cached) $ac_c" 1>&6
  1611. else
  1612.   cat > conftest.$ac_ext <<EOF
  1613. #line 1614 "configure"
  1614. #include "confdefs.h"
  1615. #include <CompilerSpecific.h>
  1616. EOF
  1617. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1618. { (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1619. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1620. if test -z "$ac_err"; then
  1621.   rm -rf conftest*
  1622.   eval "ac_cv_header_$ac_safe=yes"
  1623. else
  1624.   echo "$ac_err" >&5
  1625.   echo "configure: failed program was:" >&5
  1626.   cat conftest.$ac_ext >&5
  1627.   rm -rf conftest*
  1628.   eval "ac_cv_header_$ac_safe=no"
  1629. fi
  1630. rm -f conftest*
  1631. fi
  1632. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1633.   echo "$ac_t""yes" 1>&6
  1634.   :
  1635. else
  1636.   echo "$ac_t""no" 1>&6
  1637. { echo "configure: error: "CompilerSpecific.h is missing." " 1>&2; exit 1; }
  1638. fi
  1639.  
  1640.  
  1641.  
  1642.  
  1643. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1644. echo "configure:1645: checking for working const" >&5
  1645. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1646.   echo $ac_n "(cached) $ac_c" 1>&6
  1647. else
  1648.   cat > conftest.$ac_ext <<EOF
  1649. #line 1650 "configure"
  1650. #include "confdefs.h"
  1651.  
  1652. int main() {
  1653.  
  1654. /* Ultrix mips cc rejects this.  */
  1655. typedef int charset[2]; const charset x;
  1656. /* SunOS 4.1.1 cc rejects this.  */
  1657. char const *const *ccp;
  1658. char **p;
  1659. /* NEC SVR4.0.2 mips cc rejects this.  */
  1660. struct point {int x, y;};
  1661. static struct point const zero = {0,0};
  1662. /* AIX XL C 1.02.0.0 rejects this.
  1663.    It does not let you subtract one const X* pointer from another in an arm
  1664.    of an if-expression whose if-part is not a constant expression */
  1665. const char *g = "string";
  1666. ccp = &g + (g ? g-g : 0);
  1667. /* HPUX 7.0 cc rejects these. */
  1668. ++ccp;
  1669. p = (char**) ccp;
  1670. ccp = (char const *const *) p;
  1671. { /* SCO 3.2v4 cc rejects this.  */
  1672.   char *t;
  1673.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1674.  
  1675.   *t++ = 0;
  1676. }
  1677. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1678.   int x[] = {25, 17};
  1679.   const int *foo = &x[0];
  1680.   ++foo;
  1681. }
  1682. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1683.   typedef const int *iptr;
  1684.   iptr p = 0;
  1685.   ++p;
  1686. }
  1687. { /* AIX XL C 1.02.0.0 rejects this saying
  1688.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1689.   struct s { int j; const int *ap[3]; };
  1690.   struct s *b; b->j = 5;
  1691. }
  1692. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1693.   const int foo = 10;
  1694. }
  1695.  
  1696. ; return 0; }
  1697. EOF
  1698. if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1699.   rm -rf conftest*
  1700.   ac_cv_c_const=yes
  1701. else
  1702.   echo "configure: failed program was:" >&5
  1703.   cat conftest.$ac_ext >&5
  1704.   rm -rf conftest*
  1705.   ac_cv_c_const=no
  1706. fi
  1707. rm -f conftest*
  1708. fi
  1709.  
  1710. echo "$ac_t""$ac_cv_c_const" 1>&6
  1711. if test $ac_cv_c_const = no; then
  1712.   cat >> confdefs.h <<\EOF
  1713. #define const 
  1714. EOF
  1715.  
  1716. fi
  1717.  
  1718. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1719. echo "configure:1720: checking for inline" >&5
  1720. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1721.   echo $ac_n "(cached) $ac_c" 1>&6
  1722. else
  1723.   ac_cv_c_inline=no
  1724. for ac_kw in inline __inline__ __inline; do
  1725.   cat > conftest.$ac_ext <<EOF
  1726. #line 1727 "configure"
  1727. #include "confdefs.h"
  1728.  
  1729. int main() {
  1730. } $ac_kw foo() {
  1731. ; return 0; }
  1732. EOF
  1733. if { (eval echo configure:1734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1734.   rm -rf conftest*
  1735.   ac_cv_c_inline=$ac_kw; break
  1736. else
  1737.   echo "configure: failed program was:" >&5
  1738.   cat conftest.$ac_ext >&5
  1739. fi
  1740. rm -f conftest*
  1741. done
  1742.  
  1743. fi
  1744.  
  1745. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1746. case "$ac_cv_c_inline" in
  1747.   inline | yes) ;;
  1748.   no) cat >> confdefs.h <<\EOF
  1749. #define inline 
  1750. EOF
  1751.  ;;
  1752.   *)  cat >> confdefs.h <<EOF
  1753. #define inline $ac_cv_c_inline
  1754. EOF
  1755.  ;;
  1756. esac
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762. trap '' 1 2 15
  1763. cat > confcache <<\EOF
  1764. # This file is a shell script that caches the results of configure
  1765. # tests run on this system so they can be shared between configure
  1766. # scripts and configure runs.  It is not useful on other systems.
  1767. # If it contains results you don't want to keep, you may remove or edit it.
  1768. #
  1769. # By default, configure uses ./config.cache as the cache file,
  1770. # creating it if it does not exist already.  You can give configure
  1771. # the --cache-file=FILE option to use a different cache file; that is
  1772. # what configure does when it calls configure scripts in
  1773. # subdirectories, so they share the cache.
  1774. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1775. # config.status only pays attention to the cache file if you give it the
  1776. # --recheck option to rerun configure.
  1777. #
  1778. EOF
  1779. # The following way of writing the cache mishandles newlines in values,
  1780. # but we know of no workaround that is simple, portable, and efficient.
  1781. # So, don't put newlines in cache variables' values.
  1782. # Ultrix sh set writes to stderr and can't be redirected directly,
  1783. # and sets the high bit in the cache file unless we assign to the vars.
  1784. (set) 2>&1 |
  1785.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1786.   *ac_space=\ *)
  1787.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1788.     # turns \\\\ into \\, and sed turns \\ into \).
  1789.     sed -n \
  1790.       -e "s/'/'\\\\''/g" \
  1791.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1792.     ;;
  1793.   *)
  1794.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1795.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1796.     ;;
  1797.   esac >> confcache
  1798. if cmp -s $cache_file confcache; then
  1799.   :
  1800. else
  1801.   if test -w $cache_file; then
  1802.     echo "updating cache $cache_file"
  1803.     cat confcache > $cache_file
  1804.   else
  1805.     echo "not updating unwritable cache $cache_file"
  1806.   fi
  1807. fi
  1808. rm -f confcache
  1809.  
  1810. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1811.  
  1812. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1813. # Let make expand exec_prefix.
  1814. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1815.  
  1816. # Any assignment to VPATH causes Sun make to only execute
  1817. # the first set of double-colon rules, so remove it if not needed.
  1818. # If there is a colon in the path, we need to keep it.
  1819. if test "x$srcdir" = x.; then
  1820.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1821. fi
  1822.  
  1823. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1824.  
  1825. DEFS=-DHAVE_CONFIG_H
  1826.  
  1827. # Without the "./", some shells look in PATH for config.status.
  1828. : ${CONFIG_STATUS=./config.status}
  1829.  
  1830. echo creating $CONFIG_STATUS
  1831. # Some systems, like AmigaOS, won't allow you to remove a script that is
  1832. # being executed, so just move it out of the way instead.
  1833. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1834. cat > $CONFIG_STATUS <<EOF
  1835. #! /bin/sh
  1836. # Generated automatically by configure.
  1837. # Run this file to recreate the current configuration.
  1838. # This directory was configured as follows,
  1839. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1840. #
  1841. # $0 $ac_configure_args
  1842. #
  1843. # Compiler output produced by configure, useful for debugging
  1844. # configure, is in ./config.log if it exists.
  1845.  
  1846. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1847. for ac_option
  1848. do
  1849.   case "\$ac_option" in
  1850.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1851.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1852.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1853.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1854.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1855.     exit 0 ;;
  1856.   -help | --help | --hel | --he | --h)
  1857.     echo "\$ac_cs_usage"; exit 0 ;;
  1858.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1859.   esac
  1860. done
  1861.  
  1862. ac_given_srcdir=$srcdir
  1863. ac_given_INSTALL="$INSTALL"
  1864.  
  1865. trap 'rm -fr `echo "Makefile
  1866.           AHI/Makefile
  1867.           AddAudioModes/Makefile
  1868.           Device/Makefile
  1869.           Docs/Makefile
  1870.           Include/Makefile config.h " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1871. EOF
  1872. cat >> $CONFIG_STATUS <<EOF
  1873.  
  1874. # Protect against being on the right side of a sed subst in config.status.
  1875. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1876.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1877. $ac_vpsub
  1878. $extrasub
  1879. s%@SHELL@%$SHELL%g
  1880. s%@CFLAGS@%$CFLAGS%g
  1881. s%@CPPFLAGS@%$CPPFLAGS%g
  1882. s%@CXXFLAGS@%$CXXFLAGS%g
  1883. s%@FFLAGS@%$FFLAGS%g
  1884. s%@DEFS@%$DEFS%g
  1885. s%@LDFLAGS@%$LDFLAGS%g
  1886. s%@LIBS@%$LIBS%g
  1887. s%@exec_prefix@%$exec_prefix%g
  1888. s%@prefix@%$prefix%g
  1889. s%@program_transform_name@%$program_transform_name%g
  1890. s%@bindir@%$bindir%g
  1891. s%@sbindir@%$sbindir%g
  1892. s%@libexecdir@%$libexecdir%g
  1893. s%@datadir@%$datadir%g
  1894. s%@sysconfdir@%$sysconfdir%g
  1895. s%@sharedstatedir@%$sharedstatedir%g
  1896. s%@localstatedir@%$localstatedir%g
  1897. s%@libdir@%$libdir%g
  1898. s%@includedir@%$includedir%g
  1899. s%@oldincludedir@%$oldincludedir%g
  1900. s%@infodir@%$infodir%g
  1901. s%@guidedir@%$guidedir%g
  1902. s%@htmldir@%$htmldir%g
  1903. s%@psdir@%$psdir%g
  1904. s%@dvidir@%$dvidir%g
  1905. s%@mandir@%$mandir%g
  1906. s%@host@%$host%g
  1907. s%@host_alias@%$host_alias%g
  1908. s%@host_cpu@%$host_cpu%g
  1909. s%@host_vendor@%$host_vendor%g
  1910. s%@host_os@%$host_os%g
  1911. s%@target@%$target%g
  1912. s%@target_alias@%$target_alias%g
  1913. s%@target_cpu@%$target_cpu%g
  1914. s%@target_vendor@%$target_vendor%g
  1915. s%@target_os@%$target_os%g
  1916. s%@build@%$build%g
  1917. s%@build_alias@%$build_alias%g
  1918. s%@build_cpu@%$build_cpu%g
  1919. s%@build_vendor@%$build_vendor%g
  1920. s%@build_os@%$build_os%g
  1921. s%@SET_MAKE@%$SET_MAKE%g
  1922. s%@ASFLAGS@%$ASFLAGS%g
  1923. s%@ARFLAGS@%$ARFLAGS%g
  1924. s%@DISTDIR@%$DISTDIR%g
  1925. s%@CC@%$CC%g
  1926. s%@AS@%$AS%g
  1927. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1928. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1929. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1930. s%@AR@%$AR%g
  1931. s%@RANLIB@%$RANLIB%g
  1932. s%@RM@%$RM%g
  1933. s%@FLEXCAT@%$FLEXCAT%g
  1934. s%@ASM@%$ASM%g
  1935. s%@MAKEDEPEND@%$MAKEDEPEND%g
  1936. s%@CPP@%$CPP%g
  1937.  
  1938. CEOF
  1939. EOF
  1940.  
  1941. cat >> $CONFIG_STATUS <<\EOF
  1942.  
  1943. # Split the substitutions into bite-sized pieces for seds with
  1944. # small command number limits, like on Digital OSF/1 and HP-UX.
  1945. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1946. ac_file=1 # Number of current file.
  1947. ac_beg=1 # First line for current file.
  1948. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1949. ac_more_lines=:
  1950. ac_sed_cmds=""
  1951. while $ac_more_lines; do
  1952.   if test $ac_beg -gt 1; then
  1953.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1954.   else
  1955.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1956.   fi
  1957.   if test ! -s conftest.s$ac_file; then
  1958.     ac_more_lines=false
  1959.     rm -f conftest.s$ac_file
  1960.   else
  1961.     if test -z "$ac_sed_cmds"; then
  1962.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1963.     else
  1964.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1965.     fi
  1966.     ac_file=`expr $ac_file + 1`
  1967.     ac_beg=$ac_end
  1968.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1969.   fi
  1970. done
  1971. if test -z "$ac_sed_cmds"; then
  1972.   ac_sed_cmds=cat
  1973. fi
  1974. EOF
  1975.  
  1976. cat >> $CONFIG_STATUS <<EOF
  1977.  
  1978. CONFIG_FILES=\${CONFIG_FILES-"Makefile
  1979.           AHI/Makefile
  1980.           AddAudioModes/Makefile
  1981.           Device/Makefile
  1982.           Docs/Makefile
  1983.           Include/Makefile"}
  1984. EOF
  1985. cat >> $CONFIG_STATUS <<\EOF
  1986. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1987.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1988.   case "$ac_file" in
  1989.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1990.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1991.   *) ac_file_in="${ac_file}.in" ;;
  1992.   esac
  1993.  
  1994.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1995.  
  1996.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1997.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1998.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1999.     # The file is in a subdirectory.
  2000.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2001.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2002.     # A "../" for each directory in $ac_dir_suffix.
  2003.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2004.   else
  2005.     ac_dir_suffix= ac_dots=
  2006.   fi
  2007.  
  2008.   case "$ac_given_srcdir" in
  2009.   .)  srcdir=.
  2010.       if test -z "$ac_dots"; then top_srcdir=.
  2011.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2012.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2013.   *) # Relative path.
  2014.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2015.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2016.   esac
  2017.  
  2018.   case "$ac_given_INSTALL" in
  2019.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2020.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2021.   esac
  2022.  
  2023.   echo creating "$ac_file"
  2024.   rm -f "$ac_file"
  2025.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2026.   case "$ac_file" in
  2027.   *Makefile*) ac_comsub="1i\\
  2028. # $configure_input" ;;
  2029.   *) ac_comsub= ;;
  2030.   esac
  2031.  
  2032.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2033.   sed -e "$ac_comsub
  2034. s%@configure_input@%$configure_input%g
  2035. s%@srcdir@%$srcdir%g
  2036. s%@top_srcdir@%$top_srcdir%g
  2037. s%@INSTALL@%$INSTALL%g
  2038. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2039. fi; done
  2040. rm -f conftest.s*
  2041.  
  2042. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2043. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2044. #
  2045. # ac_d sets the value in "#define NAME VALUE" lines.
  2046. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2047. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2048. ac_dC='\3'
  2049. ac_dD='%g'
  2050. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2051. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2052. ac_uB='\([     ]\)%\1#\2define\3'
  2053. ac_uC=' '
  2054. ac_uD='\4%g'
  2055. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2056. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2057. ac_eB='$%\1#\2define\3'
  2058. ac_eC=' '
  2059. ac_eD='%g'
  2060.  
  2061. if test "${CONFIG_HEADERS+set}" != set; then
  2062. EOF
  2063. cat >> $CONFIG_STATUS <<EOF
  2064.   CONFIG_HEADERS="config.h "
  2065. EOF
  2066. cat >> $CONFIG_STATUS <<\EOF
  2067. fi
  2068. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2069.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2070.   case "$ac_file" in
  2071.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2072.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2073.   *) ac_file_in="${ac_file}.in" ;;
  2074.   esac
  2075.  
  2076.   echo creating $ac_file
  2077.  
  2078.   rm -f conftest.frag conftest.in conftest.out
  2079.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2080.   cat $ac_file_inputs > conftest.in
  2081.  
  2082. EOF
  2083.  
  2084.  
  2085. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2086. # the proper values into config.h.in to produce config.h.  And first:
  2087. # Protect against being on the right side of a sed subst in config.status.
  2088. # Protect against being in an unquoted here document in config.status.
  2089. rm -f conftest.vals
  2090. cat > conftest.hdr <<\EOF
  2091. s/[\\&%]/\\&/g
  2092. s%[\\$`]%\\&%g
  2093. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2094. s%ac_d%ac_u%gp
  2095. s%ac_u%ac_e%gp
  2096. EOF
  2097. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2098. rm -f conftest.hdr
  2099.  
  2100. # This sed command replaces #undef with comments.  This is necessary, for
  2101. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2102. # on some systems where configure will not decide to define it.
  2103. cat >> conftest.vals <<\EOF
  2104. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2105. EOF
  2106.  
  2107. # Break up conftest.vals because some shells have a limit on
  2108. # the size of here documents, and old seds have small limits too.
  2109.  
  2110. rm -f conftest.tail
  2111. while :
  2112. do
  2113.   ac_lines=`grep -c . conftest.vals`
  2114.   # grep -c gives empty output for an empty file on some AIX systems.
  2115.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2116.   # Write a limited-size here document to conftest.frag.
  2117.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2118.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2119.   echo 'CEOF
  2120.   sed -f conftest.frag conftest.in > conftest.out
  2121.   rm -f conftest.in
  2122.   mv conftest.out conftest.in
  2123. ' >> $CONFIG_STATUS
  2124.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2125.   rm -f conftest.vals
  2126.   mv conftest.tail conftest.vals
  2127. done
  2128. rm -f conftest.vals
  2129.  
  2130.  
  2131. cat >> $CONFIG_STATUS <<\EOF
  2132.   rm -f conftest.frag conftest.h
  2133.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2134.   cat conftest.in >> conftest.h
  2135.   rm -f conftest.in
  2136.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2137.     echo "$ac_file is unchanged"
  2138.     rm -f conftest.h
  2139.   else
  2140.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2141.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2142.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2143.       # The file is in a subdirectory.
  2144.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2145.     fi
  2146.     rm -f $ac_file
  2147.     mv conftest.h $ac_file
  2148.   fi
  2149. fi; done
  2150.  
  2151. EOF
  2152. cat >> $CONFIG_STATUS <<EOF
  2153.  
  2154. EOF
  2155. cat >> $CONFIG_STATUS <<\EOF
  2156. echo timestamp > stamp-h
  2157. exit 0
  2158. EOF
  2159. chmod +x $CONFIG_STATUS
  2160. rm -f CONFIG.STATUS.old
  2161. rm -fr confdefs* $ac_clean_files
  2162. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2163.  
  2164.