home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 106 / EnigmaAmiga106CD.iso / software / sviluppo / ahisrc / configure < prev    next >
Encoding:
Text File  |  1999-09-11  |  61.2 KB  |  2,041 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Revision: 1.16  
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 2.12.1 
  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.12.1"
  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 $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  533. cross_compiling=$ac_cv_prog_cc_cross
  534.  
  535. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  536.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  537.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  538.     ac_n= ac_c='
  539. ' ac_t='    '
  540.   else
  541.     ac_n=-n ac_c= ac_t=
  542.   fi
  543. else
  544.   ac_n= ac_c='\c' ac_t=
  545. fi
  546.  
  547.  
  548.  
  549.  
  550.  
  551. ac_aux_dir=
  552. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  553.   if test -f $ac_dir/install-sh; then
  554.     ac_aux_dir=$ac_dir
  555.     ac_install_sh="$ac_aux_dir/install-sh -c"
  556.     break
  557.   elif test -f $ac_dir/install.sh; then
  558.     ac_aux_dir=$ac_dir
  559.     ac_install_sh="$ac_aux_dir/install.sh -c"
  560.     break
  561.   fi
  562. done
  563. if test -z "$ac_aux_dir"; then
  564.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  565. fi
  566. ac_config_guess=$ac_aux_dir/config.guess
  567. ac_config_sub=$ac_aux_dir/config.sub
  568. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  569.  
  570.  
  571. # Do some error checking and defaulting for the host and target type.
  572. # The inputs are:
  573. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  574. #
  575. # The rules are:
  576. # 1. You are not allowed to specify --host, --target, and nonopt at the
  577. #    same time.
  578. # 2. Host defaults to nonopt.
  579. # 3. If nonopt is not specified, then host defaults to the current host,
  580. #    as determined by config.guess.
  581. # 4. Target and build default to nonopt.
  582. # 5. If nonopt is not specified, then target and build default to host.
  583.  
  584. # The aliases save the names the user supplied, while $host etc.
  585. # will get canonicalized.
  586. case $host---$target---$nonopt in
  587. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  588. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  589. esac
  590.  
  591.  
  592. # Make sure we can run config.sub.
  593. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  594. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  595. fi
  596.  
  597. echo $ac_n "checking host system type""... $ac_c" 1>&6
  598. echo "configure:599: checking host system type" >&5
  599.  
  600. host_alias=$host
  601. case "$host_alias" in
  602. NONE)
  603.   case $nonopt in
  604.   NONE)
  605.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  606.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  607.     fi ;;
  608.   *) host_alias=$nonopt ;;
  609.   esac ;;
  610. esac
  611.  
  612. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  613. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  614. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  615. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  616. echo "$ac_t""$host" 1>&6
  617.  
  618. echo $ac_n "checking target system type""... $ac_c" 1>&6
  619. echo "configure:620: checking target system type" >&5
  620.  
  621. target_alias=$target
  622. case "$target_alias" in
  623. NONE)
  624.   case $nonopt in
  625.   NONE) target_alias=$host_alias ;;
  626.   *) target_alias=$nonopt ;;
  627.   esac ;;
  628. esac
  629.  
  630. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  631. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  632. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  633. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  634. echo "$ac_t""$target" 1>&6
  635.  
  636. echo $ac_n "checking build system type""... $ac_c" 1>&6
  637. echo "configure:638: checking build system type" >&5
  638.  
  639. build_alias=$build
  640. case "$build_alias" in
  641. NONE)
  642.   case $nonopt in
  643.   NONE) build_alias=$host_alias ;;
  644.   *) build_alias=$nonopt ;;
  645.   esac ;;
  646. esac
  647.  
  648. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  649. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  650. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  651. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  652. echo "$ac_t""$build" 1>&6
  653.  
  654. test "$host_alias" != "$target_alias" &&
  655.   test "$program_prefix$program_suffix$program_transform_name" = \
  656.     NONENONEs,x,x, &&
  657.   program_prefix=${target_alias}-
  658.  
  659. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  660. echo "configure:661: checking whether ${MAKE-make} sets \${MAKE}" >&5
  661. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  662. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  663.   echo $ac_n "(cached) $ac_c" 1>&6
  664. else
  665.   cat > conftestmake <<\EOF
  666. all:
  667.     @echo 'ac_maketemp="${MAKE}"'
  668. EOF
  669. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  670. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  671. if test -n "$ac_maketemp"; then
  672.   eval ac_cv_prog_make_${ac_make}_set=yes
  673. else
  674.   eval ac_cv_prog_make_${ac_make}_set=no
  675. fi
  676. rm -f conftestmake
  677. fi
  678. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  679.   echo "$ac_t""yes" 1>&6
  680.   SET_MAKE=
  681. else
  682.   echo "$ac_t""no" 1>&6
  683.   SET_MAKE="MAKE=${MAKE-make}"
  684. fi
  685.  
  686.  
  687.  
  688. : ${CFLAGS='-g -I. -O2 -fomit-frame-pointer -ffast-math -W -Wall -Wstrict-prototypes -Wno-unused '}
  689. : ${CPPFLAGS='-I/gg/os-include'}
  690. : ${LDFLAGS='-noixemul'}
  691. : ${ARFLAGS='-ru'}
  692.  
  693. : ${DISTDIR='/tmp/ahi'}
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701. if test $host != $build; then
  702.   ac_tool_prefix=${host_alias}-
  703. else
  704.   ac_tool_prefix=
  705. fi
  706.  
  707. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  708. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  709. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  710. echo "configure:711: checking for $ac_word" >&5
  711. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  712.   echo $ac_n "(cached) $ac_c" 1>&6
  713. else
  714.   if test -n "$CC"; then
  715.   ac_cv_prog_CC="$CC" # Let the user override the test.
  716. else
  717.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  718.   for ac_dir in $PATH; do
  719.     test -z "$ac_dir" && ac_dir=.
  720.     if test -f $ac_dir/$ac_word; then
  721.       ac_cv_prog_CC="${ac_tool_prefix}gcc"
  722.       break
  723.     fi
  724.   done
  725.   IFS="$ac_save_ifs"
  726. fi
  727. fi
  728. CC="$ac_cv_prog_CC"
  729. if test -n "$CC"; then
  730.   echo "$ac_t""$CC" 1>&6
  731. else
  732.   echo "$ac_t""no" 1>&6
  733. fi
  734.  
  735.  
  736. if test -z "$ac_cv_prog_CC"; then
  737. if test -n "$ac_tool_prefix"; then
  738.   # Extract the first word of "gcc", so it can be a program name with args.
  739. set dummy gcc; ac_word=$2
  740. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  741. echo "configure:742: checking for $ac_word" >&5
  742. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  743.   echo $ac_n "(cached) $ac_c" 1>&6
  744. else
  745.   if test -n "$CC"; then
  746.   ac_cv_prog_CC="$CC" # Let the user override the test.
  747. else
  748.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  749.   for ac_dir in $PATH; do
  750.     test -z "$ac_dir" && ac_dir=.
  751.     if test -f $ac_dir/$ac_word; then
  752.       ac_cv_prog_CC="gcc"
  753.       break
  754.     fi
  755.   done
  756.   IFS="$ac_save_ifs"
  757.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC=":"
  758. fi
  759. fi
  760. CC="$ac_cv_prog_CC"
  761. if test -n "$CC"; then
  762.   echo "$ac_t""$CC" 1>&6
  763. else
  764.   echo "$ac_t""no" 1>&6
  765. fi
  766.  
  767. else
  768.   CC=":"
  769. fi
  770. fi
  771.  
  772. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  773. set dummy ${ac_tool_prefix}as; ac_word=$2
  774. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  775. echo "configure:776: checking for $ac_word" >&5
  776. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  777.   echo $ac_n "(cached) $ac_c" 1>&6
  778. else
  779.   if test -n "$AS"; then
  780.   ac_cv_prog_AS="$AS" # Let the user override the test.
  781. else
  782.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  783.   for ac_dir in $PATH; do
  784.     test -z "$ac_dir" && ac_dir=.
  785.     if test -f $ac_dir/$ac_word; then
  786.       ac_cv_prog_AS="${ac_tool_prefix}as"
  787.       break
  788.     fi
  789.   done
  790.   IFS="$ac_save_ifs"
  791. fi
  792. fi
  793. AS="$ac_cv_prog_AS"
  794. if test -n "$AS"; then
  795.   echo "$ac_t""$AS" 1>&6
  796. else
  797.   echo "$ac_t""no" 1>&6
  798. fi
  799.  
  800.  
  801. if test -z "$ac_cv_prog_AS"; then
  802. if test -n "$ac_tool_prefix"; then
  803.   # Extract the first word of "as", so it can be a program name with args.
  804. set dummy as; ac_word=$2
  805. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  806. echo "configure:807: checking for $ac_word" >&5
  807. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  808.   echo $ac_n "(cached) $ac_c" 1>&6
  809. else
  810.   if test -n "$AS"; then
  811.   ac_cv_prog_AS="$AS" # Let the user override the test.
  812. else
  813.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  814.   for ac_dir in $PATH; do
  815.     test -z "$ac_dir" && ac_dir=.
  816.     if test -f $ac_dir/$ac_word; then
  817.       ac_cv_prog_AS="as"
  818.       break
  819.     fi
  820.   done
  821.   IFS="$ac_save_ifs"
  822.   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
  823. fi
  824. fi
  825. AS="$ac_cv_prog_AS"
  826. if test -n "$AS"; then
  827.   echo "$ac_t""$AS" 1>&6
  828. else
  829.   echo "$ac_t""no" 1>&6
  830. fi
  831.  
  832. else
  833.   AS=":"
  834. fi
  835. fi
  836.  
  837.  
  838. # Find a good install program.  We prefer a C program (faster),
  839. # so one script is as good as another.  But avoid the broken or
  840. # incompatible versions:
  841. # SysV /etc/install, /usr/sbin/install
  842. # SunOS /usr/etc/install
  843. # IRIX /sbin/install
  844. # AIX /bin/install
  845. # AmigaOS /c/install
  846. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  847. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  848. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  849. # ./install, which can be erroneously created by make from ./install.sh.
  850. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  851. echo "configure:852: checking for a BSD compatible install" >&5
  852. if test -z "$INSTALL"; then
  853. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  854.   echo $ac_n "(cached) $ac_c" 1>&6
  855. else
  856.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  857.   for ac_dir in $PATH; do
  858.     # Account for people who put trailing slashes in PATH elements.
  859.     case "$ac_dir/" in
  860.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  861.     *)
  862.       # OSF1 and SCO ODT 3.0 have their own names for install.
  863.       # Don't use installbsd from OSF since it installs stuff as root
  864.       # by default.
  865.       for ac_prog in ginstall scoinst install; do
  866.         if test -f $ac_dir/$ac_prog; then
  867.       if test $ac_prog = install &&
  868.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  869.         # AIX install.  It has an incompatible calling convention.
  870.         :
  871.       else
  872.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  873.         break 2
  874.       fi
  875.     fi
  876.       done
  877.       ;;
  878.     esac
  879.   done
  880.   IFS="$ac_save_IFS"
  881.  
  882. fi
  883.   if test "${ac_cv_path_install+set}" = set; then
  884.     INSTALL="$ac_cv_path_install"
  885.   else
  886.     # As a last resort, use the slow shell script.  We don't cache a
  887.     # path for INSTALL within a source directory, because that will
  888.     # break other packages using the cache if that directory is
  889.     # removed, or if the path is relative.
  890.     INSTALL="$ac_install_sh"
  891.   fi
  892. fi
  893. echo "$ac_t""$INSTALL" 1>&6
  894.  
  895. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  896. # It thinks the first close brace ends the variable substitution.
  897. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  898.  
  899. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  900.  
  901. # Extract the first word of "gcc", so it can be a program name with args.
  902. set dummy gcc; ac_word=$2
  903. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  904. echo "configure:905: checking for $ac_word" >&5
  905. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  906.   echo $ac_n "(cached) $ac_c" 1>&6
  907. else
  908.   if test -n "$CC"; then
  909.   ac_cv_prog_CC="$CC" # Let the user override the test.
  910. else
  911.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  912.   for ac_dir in $PATH; do
  913.     test -z "$ac_dir" && ac_dir=.
  914.     if test -f $ac_dir/$ac_word; then
  915.       ac_cv_prog_CC="gcc"
  916.       break
  917.     fi
  918.   done
  919.   IFS="$ac_save_ifs"
  920. fi
  921. fi
  922. CC="$ac_cv_prog_CC"
  923. if test -n "$CC"; then
  924.   echo "$ac_t""$CC" 1>&6
  925. else
  926.   echo "$ac_t""no" 1>&6
  927. fi
  928.  
  929. if test -z "$CC"; then
  930.   # Extract the first word of "bcc", so it can be a program name with args.
  931. set dummy bcc; ac_word=$2
  932. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  933. echo "configure:934: checking for $ac_word" >&5
  934. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  935.   echo $ac_n "(cached) $ac_c" 1>&6
  936. else
  937.   if test -n "$CC"; then
  938.   ac_cv_prog_CC="$CC" # Let the user override the test.
  939. else
  940.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  941.   for ac_dir in $PATH; do
  942.     test -z "$ac_dir" && ac_dir=.
  943.     if test -f $ac_dir/$ac_word; then
  944.       ac_cv_prog_CC="bcc"
  945.       break
  946.     fi
  947.   done
  948.   IFS="$ac_save_ifs"
  949. fi
  950. fi
  951. CC="$ac_cv_prog_CC"
  952. if test -n "$CC"; then
  953.   echo "$ac_t""$CC" 1>&6
  954. else
  955.   echo "$ac_t""no" 1>&6
  956. fi
  957.  
  958. fi
  959. if test -z "$CC"; then
  960.   machine=`(uname -m 2>/dev/null)` || machine=unknown
  961.   case "$machine" in
  962.     BePC) # Extract the first word of "mwccx86", so it can be a program name with args.
  963. set dummy mwccx86; ac_word=$2
  964. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  965. echo "configure:966: checking for $ac_word" >&5
  966. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  967.   echo $ac_n "(cached) $ac_c" 1>&6
  968. else
  969.   if test -n "$CC"; then
  970.   ac_cv_prog_CC="$CC" # Let the user override the test.
  971. else
  972.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  973.   for ac_dir in $PATH; do
  974.     test -z "$ac_dir" && ac_dir=.
  975.     if test -f $ac_dir/$ac_word; then
  976.       ac_cv_prog_CC="mwccx86"
  977.       break
  978.     fi
  979.   done
  980.   IFS="$ac_save_ifs"
  981. fi
  982. fi
  983. CC="$ac_cv_prog_CC"
  984. if test -n "$CC"; then
  985.   echo "$ac_t""$CC" 1>&6
  986. else
  987.   echo "$ac_t""no" 1>&6
  988. fi
  989.  ;;
  990.     BeBox | BeMac ) # Extract the first word of "mwcc", so it can be a program name with args.
  991. set dummy mwcc; ac_word=$2
  992. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  993. echo "configure:994: checking for $ac_word" >&5
  994. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  995.   echo $ac_n "(cached) $ac_c" 1>&6
  996. else
  997.   if test -n "$CC"; then
  998.   ac_cv_prog_CC="$CC" # Let the user override the test.
  999. else
  1000.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1001.   for ac_dir in $PATH; do
  1002.     test -z "$ac_dir" && ac_dir=.
  1003.     if test -f $ac_dir/$ac_word; then
  1004.       ac_cv_prog_CC="mwcc"
  1005.       break
  1006.     fi
  1007.   done
  1008.   IFS="$ac_save_ifs"
  1009. fi
  1010. fi
  1011. CC="$ac_cv_prog_CC"
  1012. if test -n "$CC"; then
  1013.   echo "$ac_t""$CC" 1>&6
  1014. else
  1015.   echo "$ac_t""no" 1>&6
  1016. fi
  1017.  ;;
  1018.     *) ;;
  1019.   esac
  1020. fi
  1021. if test -z "$CC"; then
  1022.   # Extract the first word of "cc", so it can be a program name with args.
  1023. set dummy cc; ac_word=$2
  1024. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1025. echo "configure:1026: checking for $ac_word" >&5
  1026. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1027.   echo $ac_n "(cached) $ac_c" 1>&6
  1028. else
  1029.   if test -n "$CC"; then
  1030.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1031. else
  1032.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1033.   ac_prog_rejected=no
  1034.   for ac_dir in $PATH; do
  1035.     test -z "$ac_dir" && ac_dir=.
  1036.     if test -f $ac_dir/$ac_word; then
  1037.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1038.         ac_prog_rejected=yes
  1039.     continue
  1040.       fi
  1041.       ac_cv_prog_CC="cc"
  1042.       break
  1043.     fi
  1044.   done
  1045.   IFS="$ac_save_ifs"
  1046. if test $ac_prog_rejected = yes; then
  1047.   # We found a bogon in the path, so make sure we never use it.
  1048.   set dummy $ac_cv_prog_CC
  1049.   shift
  1050.   if test $# -gt 0; then
  1051.     # We chose a different compiler from the bogus one.
  1052.     # However, it has the same basename, so the bogon will be chosen
  1053.     # first if we set CC to just the basename; use the full file name.
  1054.     shift
  1055.     set dummy "$ac_dir/$ac_word" "$@"
  1056.     shift
  1057.     ac_cv_prog_CC="$@"
  1058.   fi
  1059. fi
  1060. fi
  1061. fi
  1062. CC="$ac_cv_prog_CC"
  1063. if test -n "$CC"; then
  1064.   echo "$ac_t""$CC" 1>&6
  1065. else
  1066.   echo "$ac_t""no" 1>&6
  1067. fi
  1068.  
  1069. fi
  1070. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1071.  
  1072. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1073. echo "configure:1074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1074.  
  1075. ac_ext=c
  1076. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1077. ac_cpp='$CPP $CPPFLAGS'
  1078. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1079. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1080. cross_compiling=$ac_cv_prog_cc_cross
  1081.  
  1082. cat > conftest.$ac_ext <<EOF
  1083. #line 1084 "configure"
  1084. #include "confdefs.h"
  1085. main(){return(0);}
  1086. EOF
  1087. if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1088.   ac_cv_prog_cc_works=yes
  1089.   # If we can't run a trivial program, we are probably using a cross compiler.
  1090.   if (./conftest; exit) 2>/dev/null; then
  1091.     ac_cv_prog_cc_cross=no
  1092.   else
  1093.     ac_cv_prog_cc_cross=yes
  1094.   fi
  1095. else
  1096.   echo "configure: failed program was:" >&5
  1097.   cat conftest.$ac_ext >&5
  1098.   ac_cv_prog_cc_works=no
  1099. fi
  1100. rm -fr conftest*
  1101.  
  1102. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1103. if test $ac_cv_prog_cc_works = no; then
  1104.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1105. fi
  1106. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1107. echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1108. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1109. cross_compiling=$ac_cv_prog_cc_cross
  1110.  
  1111. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1112. echo "configure:1113: checking whether we are using GNU C" >&5
  1113. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1114.   echo $ac_n "(cached) $ac_c" 1>&6
  1115. else
  1116.   cat > conftest.c <<EOF
  1117. #ifdef __GNUC__
  1118.   yes;
  1119. #endif
  1120. EOF
  1121. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1122.   ac_cv_prog_gcc=yes
  1123. else
  1124.   ac_cv_prog_gcc=no
  1125. fi
  1126. fi
  1127.  
  1128. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1129.  
  1130. if test $ac_cv_prog_gcc = yes; then
  1131.   GCC=yes
  1132.   ac_test_CFLAGS="${CFLAGS+set}"
  1133.   ac_save_CFLAGS="$CFLAGS"
  1134.   CFLAGS=
  1135.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1136. echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5
  1137. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1138.   echo $ac_n "(cached) $ac_c" 1>&6
  1139. else
  1140.   echo 'void f(){}' > conftest.c
  1141. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1142.   ac_cv_prog_cc_g=yes
  1143. else
  1144.   ac_cv_prog_cc_g=no
  1145. fi
  1146. rm -f conftest*
  1147.  
  1148. fi
  1149.  
  1150. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1151.   if test "$ac_test_CFLAGS" = set; then
  1152.     CFLAGS="$ac_save_CFLAGS"
  1153.   elif test $ac_cv_prog_cc_g = yes; then
  1154.     CFLAGS="-g -O2"
  1155.   else
  1156.     CFLAGS="-O2"
  1157.   fi
  1158. else
  1159.   GCC=
  1160.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  1161. fi
  1162. case "$CC" in
  1163.   bcc )
  1164.     AR=${AR-mwld}
  1165.     LD=${LD-mwld}
  1166.     RANLIB=${RANLIB-true};;
  1167.   mwcc )
  1168.     CC="mwcc -I- -I. -I/boot/apps/GeekGadgets/include -L/boot/apps/GeekGadgets/lib -opt global -nodup"
  1169.     AR=${AR-mwld}
  1170.     LD=${LD-mwld}
  1171.     RANLIB=${RANLIB-true};;
  1172.   mwccx86 )
  1173.     CC="mwccx86 -I- -I. -I/boot/apps/GeekGadgets/include -L/boot/apps/GeekGadgets/lib"
  1174.     AR=${AR-mwldx86}
  1175.     LD=${LD-mwldx86}
  1176.     RANLIB=${RANLIB-true};;
  1177.   *)
  1178.     AR=${AR-ar}
  1179.     LD=${LD-ld}
  1180.     RANLIB=${RANLIB-ranlib};;
  1181. esac
  1182.  
  1183.  
  1184. # Extract the first word of "ranlib", so it can be a program name with args.
  1185. set dummy ranlib; ac_word=$2
  1186. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1187. echo "configure:1188: checking for $ac_word" >&5
  1188. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1189.   echo $ac_n "(cached) $ac_c" 1>&6
  1190. else
  1191.   if test -n "$RANLIB"; then
  1192.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1193. else
  1194.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1195.   for ac_dir in $PATH; do
  1196.     test -z "$ac_dir" && ac_dir=.
  1197.     if test -f $ac_dir/$ac_word; then
  1198.       ac_cv_prog_RANLIB="ranlib"
  1199.       break
  1200.     fi
  1201.   done
  1202.   IFS="$ac_save_ifs"
  1203.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1204. fi
  1205. fi
  1206. RANLIB="$ac_cv_prog_RANLIB"
  1207. if test -n "$RANLIB"; then
  1208.   echo "$ac_t""$RANLIB" 1>&6
  1209. else
  1210.   echo "$ac_t""no" 1>&6
  1211. fi
  1212.  
  1213. # Extract the first word of "ar", so it can be a program name with args.
  1214. set dummy ar; ac_word=$2
  1215. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1216. echo "configure:1217: checking for $ac_word" >&5
  1217. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1218.   echo $ac_n "(cached) $ac_c" 1>&6
  1219. else
  1220.   if test -n "$AR"; then
  1221.   ac_cv_prog_AR="$AR" # Let the user override the test.
  1222. else
  1223.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1224.   for ac_dir in $PATH; do
  1225.     test -z "$ac_dir" && ac_dir=.
  1226.     if test -f $ac_dir/$ac_word; then
  1227.       ac_cv_prog_AR="ar "
  1228.       break
  1229.     fi
  1230.   done
  1231.   IFS="$ac_save_ifs"
  1232. fi
  1233. fi
  1234. AR="$ac_cv_prog_AR"
  1235. if test -n "$AR"; then
  1236.   echo "$ac_t""$AR" 1>&6
  1237. else
  1238.   echo "$ac_t""no" 1>&6
  1239. fi
  1240.  
  1241. # Extract the first word of "rm", so it can be a program name with args.
  1242. set dummy rm; ac_word=$2
  1243. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1244. echo "configure:1245: checking for $ac_word" >&5
  1245. if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then
  1246.   echo $ac_n "(cached) $ac_c" 1>&6
  1247. else
  1248.   if test -n "$RM"; then
  1249.   ac_cv_prog_RM="$RM" # Let the user override the test.
  1250. else
  1251.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1252.   for ac_dir in $PATH; do
  1253.     test -z "$ac_dir" && ac_dir=.
  1254.     if test -f $ac_dir/$ac_word; then
  1255.       ac_cv_prog_RM="rm "
  1256.       break
  1257.     fi
  1258.   done
  1259.   IFS="$ac_save_ifs"
  1260. fi
  1261. fi
  1262. RM="$ac_cv_prog_RM"
  1263. if test -n "$RM"; then
  1264.   echo "$ac_t""$RM" 1>&6
  1265. else
  1266.   echo "$ac_t""no" 1>&6
  1267. fi
  1268.  
  1269. # Extract the first word of "flexcat", so it can be a program name with args.
  1270. set dummy flexcat; ac_word=$2
  1271. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1272. echo "configure:1273: checking for $ac_word" >&5
  1273. if eval "test \"`echo '$''{'ac_cv_prog_FLEXCAT'+set}'`\" = set"; then
  1274.   echo $ac_n "(cached) $ac_c" 1>&6
  1275. else
  1276.   if test -n "$FLEXCAT"; then
  1277.   ac_cv_prog_FLEXCAT="$FLEXCAT" # Let the user override the test.
  1278. else
  1279.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1280.   for ac_dir in $PATH; do
  1281.     test -z "$ac_dir" && ac_dir=.
  1282.     if test -f $ac_dir/$ac_word; then
  1283.       ac_cv_prog_FLEXCAT="flexcat "
  1284.       break
  1285.     fi
  1286.   done
  1287.   IFS="$ac_save_ifs"
  1288. fi
  1289. fi
  1290. FLEXCAT="$ac_cv_prog_FLEXCAT"
  1291. if test -n "$FLEXCAT"; then
  1292.   echo "$ac_t""$FLEXCAT" 1>&6
  1293. else
  1294.   echo "$ac_t""no" 1>&6
  1295. fi
  1296.  
  1297. # Extract the first word of "PhxAss", so it can be a program name with args.
  1298. set dummy PhxAss; ac_word=$2
  1299. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1300. echo "configure:1301: checking for $ac_word" >&5
  1301. if eval "test \"`echo '$''{'ac_cv_prog_ASM'+set}'`\" = set"; then
  1302.   echo $ac_n "(cached) $ac_c" 1>&6
  1303. else
  1304.   if test -n "$ASM"; then
  1305.   ac_cv_prog_ASM="$ASM" # Let the user override the test.
  1306. else
  1307.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1308.   for ac_dir in $PATH; do
  1309.     test -z "$ac_dir" && ac_dir=.
  1310.     if test -f $ac_dir/$ac_word; then
  1311.       ac_cv_prog_ASM="PhxAss "
  1312.       break
  1313.     fi
  1314.   done
  1315.   IFS="$ac_save_ifs"
  1316. fi
  1317. fi
  1318. ASM="$ac_cv_prog_ASM"
  1319. if test -n "$ASM"; then
  1320.   echo "$ac_t""$ASM" 1>&6
  1321. else
  1322.   echo "$ac_t""no" 1>&6
  1323. fi
  1324.  
  1325.  
  1326.  
  1327.  
  1328. echo $ac_n "checking for NewList in -lamiga""... $ac_c" 1>&6
  1329. echo "configure:1330: checking for NewList in -lamiga" >&5
  1330. ac_lib_var=`echo amiga'_'NewList | sed 'y%./+-%__p_%'`
  1331. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1332.   echo $ac_n "(cached) $ac_c" 1>&6
  1333. else
  1334.   ac_save_LIBS="$LIBS"
  1335. LIBS="-lamiga  $LIBS"
  1336. cat > conftest.$ac_ext <<EOF
  1337. #line 1338 "configure"
  1338. #include "confdefs.h"
  1339. /* Override any gcc2 internal prototype to avoid an error.  */
  1340. /* We use char because int might match the return type of a gcc2
  1341.     builtin and then its argument prototype would still apply.  */
  1342. char NewList();
  1343.  
  1344. int main() {
  1345. NewList()
  1346. ; return 0; }
  1347. EOF
  1348. if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1349.   rm -rf conftest*
  1350.   eval "ac_cv_lib_$ac_lib_var=yes"
  1351. else
  1352.   echo "configure: failed program was:" >&5
  1353.   cat conftest.$ac_ext >&5
  1354.   rm -rf conftest*
  1355.   eval "ac_cv_lib_$ac_lib_var=no"
  1356. fi
  1357. rm -f conftest*
  1358. LIBS="$ac_save_LIBS"
  1359.  
  1360. fi
  1361. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1362.   echo "$ac_t""yes" 1>&6
  1363.     ac_tr_lib=HAVE_LIB`echo amiga | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1364.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1365.   cat >> confdefs.h <<EOF
  1366. #define $ac_tr_lib 1
  1367. EOF
  1368.  
  1369.   LIBS="-lamiga $LIBS"
  1370.  
  1371. else
  1372.   echo "$ac_t""no" 1>&6
  1373. { echo "configure: error: "libamiga is missing." " 1>&2; exit 1; } 
  1374. fi
  1375.  
  1376. echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
  1377. echo "configure:1378: checking for floor in -lm" >&5
  1378. ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
  1379. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1380.   echo $ac_n "(cached) $ac_c" 1>&6
  1381. else
  1382.   ac_save_LIBS="$LIBS"
  1383. LIBS="-lm  $LIBS"
  1384. cat > conftest.$ac_ext <<EOF
  1385. #line 1386 "configure"
  1386. #include "confdefs.h"
  1387. /* Override any gcc2 internal prototype to avoid an error.  */
  1388. /* We use char because int might match the return type of a gcc2
  1389.     builtin and then its argument prototype would still apply.  */
  1390. char floor();
  1391.  
  1392. int main() {
  1393. floor()
  1394. ; return 0; }
  1395. EOF
  1396. if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1397.   rm -rf conftest*
  1398.   eval "ac_cv_lib_$ac_lib_var=yes"
  1399. else
  1400.   echo "configure: failed program was:" >&5
  1401.   cat conftest.$ac_ext >&5
  1402.   rm -rf conftest*
  1403.   eval "ac_cv_lib_$ac_lib_var=no"
  1404. fi
  1405. rm -f conftest*
  1406. LIBS="$ac_save_LIBS"
  1407.  
  1408. fi
  1409. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1410.   echo "$ac_t""yes" 1>&6
  1411.     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1412.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1413.   cat >> confdefs.h <<EOF
  1414. #define $ac_tr_lib 1
  1415. EOF
  1416.  
  1417.   LIBS="-lm $LIBS"
  1418.  
  1419. else
  1420.   echo "$ac_t""no" 1>&6
  1421. { echo "configure: error: "libm is missing." " 1>&2; exit 1; } 
  1422. fi
  1423.  
  1424.  
  1425.  
  1426.  
  1427. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1428. echo "configure:1429: checking how to run the C preprocessor" >&5
  1429. # On Suns, sometimes $CPP names a directory.
  1430. if test -n "$CPP" && test -d "$CPP"; then
  1431.   CPP=
  1432. fi
  1433. if test -z "$CPP"; then
  1434. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1435.   echo $ac_n "(cached) $ac_c" 1>&6
  1436. else
  1437.     # This must be in double quotes, not single quotes, because CPP may get
  1438.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1439.   CPP="${CC-cc} -E"
  1440.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1441.   # not just through cpp.
  1442.   cat > conftest.$ac_ext <<EOF
  1443. #line 1444 "configure"
  1444. #include "confdefs.h"
  1445. #include <assert.h>
  1446. Syntax Error
  1447. EOF
  1448. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1449. { (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1450. ac_err=`grep -v '^ *+' conftest.out`
  1451. if test -z "$ac_err"; then
  1452.   :
  1453. else
  1454.   echo "$ac_err" >&5
  1455.   echo "configure: failed program was:" >&5
  1456.   cat conftest.$ac_ext >&5
  1457.   rm -rf conftest*
  1458.   CPP="${CC-cc} -E -traditional-cpp"
  1459.   cat > conftest.$ac_ext <<EOF
  1460. #line 1461 "configure"
  1461. #include "confdefs.h"
  1462. #include <assert.h>
  1463. Syntax Error
  1464. EOF
  1465. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1466. { (eval echo configure:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1467. ac_err=`grep -v '^ *+' conftest.out`
  1468. if test -z "$ac_err"; then
  1469.   :
  1470. else
  1471.   echo "$ac_err" >&5
  1472.   echo "configure: failed program was:" >&5
  1473.   cat conftest.$ac_ext >&5
  1474.   rm -rf conftest*
  1475.   CPP=/lib/cpp
  1476. fi
  1477. rm -f conftest*
  1478. fi
  1479. rm -f conftest*
  1480.   ac_cv_prog_CPP="$CPP"
  1481. fi
  1482.   CPP="$ac_cv_prog_CPP"
  1483. else
  1484.   ac_cv_prog_CPP="$CPP"
  1485. fi
  1486. echo "$ac_t""$CPP" 1>&6
  1487.  
  1488. ac_safe=`echo "CompilerSpecific.h" | sed 'y%./+-%__p_%'`
  1489. echo $ac_n "checking for CompilerSpecific.h""... $ac_c" 1>&6
  1490. echo "configure:1491: checking for CompilerSpecific.h" >&5
  1491. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1492.   echo $ac_n "(cached) $ac_c" 1>&6
  1493. else
  1494.   cat > conftest.$ac_ext <<EOF
  1495. #line 1496 "configure"
  1496. #include "confdefs.h"
  1497. #include <CompilerSpecific.h>
  1498. EOF
  1499. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1500. { (eval echo configure:1501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1501. ac_err=`grep -v '^ *+' conftest.out`
  1502. if test -z "$ac_err"; then
  1503.   rm -rf conftest*
  1504.   eval "ac_cv_header_$ac_safe=yes"
  1505. else
  1506.   echo "$ac_err" >&5
  1507.   echo "configure: failed program was:" >&5
  1508.   cat conftest.$ac_ext >&5
  1509.   rm -rf conftest*
  1510.   eval "ac_cv_header_$ac_safe=no"
  1511. fi
  1512. rm -f conftest*
  1513. fi
  1514. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1515.   echo "$ac_t""yes" 1>&6
  1516.   :
  1517. else
  1518.   echo "$ac_t""no" 1>&6
  1519. { echo "configure: error: "CompilerSpecific.h is missing." " 1>&2; exit 1; }
  1520. fi
  1521.  
  1522.  
  1523.  
  1524.  
  1525. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1526. echo "configure:1527: checking for working const" >&5
  1527. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1528.   echo $ac_n "(cached) $ac_c" 1>&6
  1529. else
  1530.   cat > conftest.$ac_ext <<EOF
  1531. #line 1532 "configure"
  1532. #include "confdefs.h"
  1533.  
  1534. int main() {
  1535.  
  1536. /* Ultrix mips cc rejects this.  */
  1537. typedef int charset[2]; const charset x;
  1538. /* SunOS 4.1.1 cc rejects this.  */
  1539. char const *const *ccp;
  1540. char **p;
  1541. /* NEC SVR4.0.2 mips cc rejects this.  */
  1542. struct point {int x, y;};
  1543. static struct point const zero = {0,0};
  1544. /* AIX XL C 1.02.0.0 rejects this.
  1545.    It does not let you subtract one const X* pointer from another in an arm
  1546.    of an if-expression whose if-part is not a constant expression */
  1547. const char *g = "string";
  1548. ccp = &g + (g ? g-g : 0);
  1549. /* HPUX 7.0 cc rejects these. */
  1550. ++ccp;
  1551. p = (char**) ccp;
  1552. ccp = (char const *const *) p;
  1553. { /* SCO 3.2v4 cc rejects this.  */
  1554.   char *t;
  1555.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1556.  
  1557.   *t++ = 0;
  1558. }
  1559. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1560.   int x[] = {25, 17};
  1561.   const int *foo = &x[0];
  1562.   ++foo;
  1563. }
  1564. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1565.   typedef const int *iptr;
  1566.   iptr p = 0;
  1567.   ++p;
  1568. }
  1569. { /* AIX XL C 1.02.0.0 rejects this saying
  1570.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1571.   struct s { int j; const int *ap[3]; };
  1572.   struct s *b; b->j = 5;
  1573. }
  1574. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1575.   const int foo = 10;
  1576. }
  1577.  
  1578. ; return 0; }
  1579. EOF
  1580. if { (eval echo configure:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1581.   rm -rf conftest*
  1582.   ac_cv_c_const=yes
  1583. else
  1584.   echo "configure: failed program was:" >&5
  1585.   cat conftest.$ac_ext >&5
  1586.   rm -rf conftest*
  1587.   ac_cv_c_const=no
  1588. fi
  1589. rm -f conftest*
  1590. fi
  1591.  
  1592. echo "$ac_t""$ac_cv_c_const" 1>&6
  1593. if test $ac_cv_c_const = no; then
  1594.   cat >> confdefs.h <<\EOF
  1595. #define const 
  1596. EOF
  1597.  
  1598. fi
  1599.  
  1600. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1601. echo "configure:1602: checking for inline" >&5
  1602. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1603.   echo $ac_n "(cached) $ac_c" 1>&6
  1604. else
  1605.   ac_cv_c_inline=no
  1606. for ac_kw in inline __inline__ __inline; do
  1607.   cat > conftest.$ac_ext <<EOF
  1608. #line 1609 "configure"
  1609. #include "confdefs.h"
  1610.  
  1611. int main() {
  1612. } $ac_kw foo() {
  1613. ; return 0; }
  1614. EOF
  1615. if { (eval echo configure:1616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1616.   rm -rf conftest*
  1617.   ac_cv_c_inline=$ac_kw; break
  1618. else
  1619.   echo "configure: failed program was:" >&5
  1620.   cat conftest.$ac_ext >&5
  1621. fi
  1622. rm -f conftest*
  1623. done
  1624.  
  1625. fi
  1626.  
  1627. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1628. case "$ac_cv_c_inline" in
  1629.   inline | yes) ;;
  1630.   no) cat >> confdefs.h <<\EOF
  1631. #define inline 
  1632. EOF
  1633.  ;;
  1634.   *)  cat >> confdefs.h <<EOF
  1635. #define inline $ac_cv_c_inline
  1636. EOF
  1637.  ;;
  1638. esac
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644. trap '' 1 2 15
  1645. cat > confcache <<\EOF
  1646. # This file is a shell script that caches the results of configure
  1647. # tests run on this system so they can be shared between configure
  1648. # scripts and configure runs.  It is not useful on other systems.
  1649. # If it contains results you don't want to keep, you may remove or edit it.
  1650. #
  1651. # By default, configure uses ./config.cache as the cache file,
  1652. # creating it if it does not exist already.  You can give configure
  1653. # the --cache-file=FILE option to use a different cache file; that is
  1654. # what configure does when it calls configure scripts in
  1655. # subdirectories, so they share the cache.
  1656. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1657. # config.status only pays attention to the cache file if you give it the
  1658. # --recheck option to rerun configure.
  1659. #
  1660. EOF
  1661. # The following way of writing the cache mishandles newlines in values,
  1662. # but we know of no workaround that is simple, portable, and efficient.
  1663. # So, don't put newlines in cache variables' values.
  1664. # Ultrix sh set writes to stderr and can't be redirected directly,
  1665. # and sets the high bit in the cache file unless we assign to the vars.
  1666. (set) 2>&1 |
  1667.   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
  1668.   *ac_space=\ *)
  1669.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1670.     # turns \\\\ into \\, and sed turns \\ into \).
  1671.     sed -n \
  1672.       -e "s/'/'\\\\''/g" \
  1673.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1674.     ;;
  1675.   *)
  1676.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1677.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1678.     ;;
  1679.   esac >> confcache
  1680. if cmp -s $cache_file confcache; then
  1681.   :
  1682. else
  1683.   if test -w $cache_file; then
  1684.     echo "updating cache $cache_file"
  1685.     cat confcache > $cache_file
  1686.   else
  1687.     echo "not updating unwritable cache $cache_file"
  1688.   fi
  1689. fi
  1690. rm -f confcache
  1691.  
  1692. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1693.  
  1694. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1695. # Let make expand exec_prefix.
  1696. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1697.  
  1698. # Any assignment to VPATH causes Sun make to only execute
  1699. # the first set of double-colon rules, so remove it if not needed.
  1700. # If there is a colon in the path, we need to keep it.
  1701. if test "x$srcdir" = x.; then
  1702.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1703. fi
  1704.  
  1705. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1706.  
  1707. DEFS=-DHAVE_CONFIG_H
  1708.  
  1709. # Without the "./", some shells look in PATH for config.status.
  1710. : ${CONFIG_STATUS=./config.status}
  1711.  
  1712. echo creating $CONFIG_STATUS
  1713. # Some systems, like AmigaOS, won't allow you to remove a script that is
  1714. # being executed, so just move it out of the way instead.
  1715. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1716. cat > $CONFIG_STATUS <<EOF
  1717. #! /bin/sh
  1718. # Generated automatically by configure.
  1719. # Run this file to recreate the current configuration.
  1720. # This directory was configured as follows,
  1721. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1722. #
  1723. # $0 $ac_configure_args
  1724. #
  1725. # Compiler output produced by configure, useful for debugging
  1726. # configure, is in ./config.log if it exists.
  1727.  
  1728. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1729. for ac_option
  1730. do
  1731.   case "\$ac_option" in
  1732.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1733.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1734.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1735.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1736.     echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
  1737.     exit 0 ;;
  1738.   -help | --help | --hel | --he | --h)
  1739.     echo "\$ac_cs_usage"; exit 0 ;;
  1740.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1741.   esac
  1742. done
  1743.  
  1744. ac_given_srcdir=$srcdir
  1745. ac_given_INSTALL="$INSTALL"
  1746.  
  1747. trap 'rm -fr `echo "Makefile
  1748.           AHI/Makefile
  1749.           AddAudioModes/Makefile
  1750.           Device/Makefile
  1751.           Docs/Makefile config.h " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1752. EOF
  1753. cat >> $CONFIG_STATUS <<EOF
  1754.  
  1755. # Protect against being on the right side of a sed subst in config.status.
  1756. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1757.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1758. $ac_vpsub
  1759. $extrasub
  1760. s%@SHELL@%$SHELL%g
  1761. s%@CFLAGS@%$CFLAGS%g
  1762. s%@CPPFLAGS@%$CPPFLAGS%g
  1763. s%@CXXFLAGS@%$CXXFLAGS%g
  1764. s%@DEFS@%$DEFS%g
  1765. s%@LDFLAGS@%$LDFLAGS%g
  1766. s%@LIBS@%$LIBS%g
  1767. s%@exec_prefix@%$exec_prefix%g
  1768. s%@prefix@%$prefix%g
  1769. s%@program_transform_name@%$program_transform_name%g
  1770. s%@bindir@%$bindir%g
  1771. s%@sbindir@%$sbindir%g
  1772. s%@libexecdir@%$libexecdir%g
  1773. s%@datadir@%$datadir%g
  1774. s%@sysconfdir@%$sysconfdir%g
  1775. s%@sharedstatedir@%$sharedstatedir%g
  1776. s%@localstatedir@%$localstatedir%g
  1777. s%@libdir@%$libdir%g
  1778. s%@includedir@%$includedir%g
  1779. s%@oldincludedir@%$oldincludedir%g
  1780. s%@infodir@%$infodir%g
  1781. s%@guidedir@%$guidedir%g
  1782. s%@htmldir@%$htmldir%g
  1783. s%@psdir@%$psdir%g
  1784. s%@dvidir@%$dvidir%g
  1785. s%@mandir@%$mandir%g
  1786. s%@host@%$host%g
  1787. s%@host_alias@%$host_alias%g
  1788. s%@host_cpu@%$host_cpu%g
  1789. s%@host_vendor@%$host_vendor%g
  1790. s%@host_os@%$host_os%g
  1791. s%@target@%$target%g
  1792. s%@target_alias@%$target_alias%g
  1793. s%@target_cpu@%$target_cpu%g
  1794. s%@target_vendor@%$target_vendor%g
  1795. s%@target_os@%$target_os%g
  1796. s%@build@%$build%g
  1797. s%@build_alias@%$build_alias%g
  1798. s%@build_cpu@%$build_cpu%g
  1799. s%@build_vendor@%$build_vendor%g
  1800. s%@build_os@%$build_os%g
  1801. s%@SET_MAKE@%$SET_MAKE%g
  1802. s%@ASFLAGS@%$ASFLAGS%g
  1803. s%@ARFLAGS@%$ARFLAGS%g
  1804. s%@DISTDIR@%$DISTDIR%g
  1805. s%@CC@%$CC%g
  1806. s%@AS@%$AS%g
  1807. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1808. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1809. s%@AR@%$AR%g
  1810. s%@RANLIB@%$RANLIB%g
  1811. s%@RM@%$RM%g
  1812. s%@FLEXCAT@%$FLEXCAT%g
  1813. s%@ASM@%$ASM%g
  1814. s%@CPP@%$CPP%g
  1815.  
  1816. CEOF
  1817. EOF
  1818.  
  1819. cat >> $CONFIG_STATUS <<\EOF
  1820.  
  1821. # Split the substitutions into bite-sized pieces for seds with
  1822. # small command number limits, like on Digital OSF/1 and HP-UX.
  1823. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1824. ac_file=1 # Number of current file.
  1825. ac_beg=1 # First line for current file.
  1826. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1827. ac_more_lines=:
  1828. ac_sed_cmds=""
  1829. while $ac_more_lines; do
  1830.   if test $ac_beg -gt 1; then
  1831.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1832.   else
  1833.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1834.   fi
  1835.   if test ! -s conftest.s$ac_file; then
  1836.     ac_more_lines=false
  1837.     rm -f conftest.s$ac_file
  1838.   else
  1839.     if test -z "$ac_sed_cmds"; then
  1840.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1841.     else
  1842.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1843.     fi
  1844.     ac_file=`expr $ac_file + 1`
  1845.     ac_beg=$ac_end
  1846.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1847.   fi
  1848. done
  1849. if test -z "$ac_sed_cmds"; then
  1850.   ac_sed_cmds=cat
  1851. fi
  1852. EOF
  1853.  
  1854. cat >> $CONFIG_STATUS <<EOF
  1855.  
  1856. CONFIG_FILES=\${CONFIG_FILES-"Makefile
  1857.           AHI/Makefile
  1858.           AddAudioModes/Makefile
  1859.           Device/Makefile
  1860.           Docs/Makefile"}
  1861. EOF
  1862. cat >> $CONFIG_STATUS <<\EOF
  1863. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1864.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1865.   case "$ac_file" in
  1866.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1867.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1868.   *) ac_file_in="${ac_file}.in" ;;
  1869.   esac
  1870.  
  1871.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1872.  
  1873.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1874.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1875.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1876.     # The file is in a subdirectory.
  1877.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1878.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1879.     # A "../" for each directory in $ac_dir_suffix.
  1880.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1881.   else
  1882.     ac_dir_suffix= ac_dots=
  1883.   fi
  1884.  
  1885.   case "$ac_given_srcdir" in
  1886.   .)  srcdir=.
  1887.       if test -z "$ac_dots"; then top_srcdir=.
  1888.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1889.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1890.   *) # Relative path.
  1891.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1892.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1893.   esac
  1894.  
  1895.   case "$ac_given_INSTALL" in
  1896.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1897.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1898.   esac
  1899.  
  1900.   echo creating "$ac_file"
  1901.   rm -f "$ac_file"
  1902.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1903.   case "$ac_file" in
  1904.   *Makefile*) ac_comsub="1i\\
  1905. # $configure_input" ;;
  1906.   *) ac_comsub= ;;
  1907.   esac
  1908.  
  1909.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1910.   sed -e "$ac_comsub
  1911. s%@configure_input@%$configure_input%g
  1912. s%@srcdir@%$srcdir%g
  1913. s%@top_srcdir@%$top_srcdir%g
  1914. s%@INSTALL@%$INSTALL%g
  1915. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1916. fi; done
  1917. rm -f conftest.s*
  1918.  
  1919. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1920. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1921. #
  1922. # ac_d sets the value in "#define NAME VALUE" lines.
  1923. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1924. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1925. ac_dC='\3'
  1926. ac_dD='%g'
  1927. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1928. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1929. ac_uB='\([     ]\)%\1#\2define\3'
  1930. ac_uC=' '
  1931. ac_uD='\4%g'
  1932. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1933. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1934. ac_eB='$%\1#\2define\3'
  1935. ac_eC=' '
  1936. ac_eD='%g'
  1937.  
  1938. if test "${CONFIG_HEADERS+set}" != set; then
  1939. EOF
  1940. cat >> $CONFIG_STATUS <<EOF
  1941.   CONFIG_HEADERS="config.h "
  1942. EOF
  1943. cat >> $CONFIG_STATUS <<\EOF
  1944. fi
  1945. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1946.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1947.   case "$ac_file" in
  1948.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1949.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1950.   *) ac_file_in="${ac_file}.in" ;;
  1951.   esac
  1952.  
  1953.   echo creating $ac_file
  1954.  
  1955.   rm -f conftest.frag conftest.in conftest.out
  1956.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1957.   cat $ac_file_inputs > conftest.in
  1958.  
  1959. EOF
  1960.  
  1961.  
  1962. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1963. # the proper values into config.h.in to produce config.h.  And first:
  1964. # Protect against being on the right side of a sed subst in config.status.
  1965. # Protect against being in an unquoted here document in config.status.
  1966. rm -f conftest.vals
  1967. cat > conftest.hdr <<\EOF
  1968. s/[\\&%]/\\&/g
  1969. s%[\\$`]%\\&%g
  1970. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1971. s%ac_d%ac_u%gp
  1972. s%ac_u%ac_e%gp
  1973. EOF
  1974. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1975. rm -f conftest.hdr
  1976.  
  1977. # This sed command replaces #undef with comments.  This is necessary, for
  1978. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1979. # on some systems where configure will not decide to define it.
  1980. cat >> conftest.vals <<\EOF
  1981. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1982. EOF
  1983.  
  1984. # Break up conftest.vals because some shells have a limit on
  1985. # the size of here documents, and old seds have small limits too.
  1986.  
  1987. rm -f conftest.tail
  1988. while :
  1989. do
  1990.   ac_lines=`grep -c . conftest.vals`
  1991.   # grep -c gives empty output for an empty file on some AIX systems.
  1992.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1993.   # Write a limited-size here document to conftest.frag.
  1994.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1995.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1996.   echo 'CEOF
  1997.   sed -f conftest.frag conftest.in > conftest.out
  1998.   rm -f conftest.in
  1999.   mv conftest.out conftest.in
  2000. ' >> $CONFIG_STATUS
  2001.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2002.   rm -f conftest.vals
  2003.   mv conftest.tail conftest.vals
  2004. done
  2005. rm -f conftest.vals
  2006.  
  2007.  
  2008. cat >> $CONFIG_STATUS <<\EOF
  2009.   rm -f conftest.frag conftest.h
  2010.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2011.   cat conftest.in >> conftest.h
  2012.   rm -f conftest.in
  2013.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2014.     echo "$ac_file is unchanged"
  2015.     rm -f conftest.h
  2016.   else
  2017.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2018.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2019.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2020.       # The file is in a subdirectory.
  2021.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2022.     fi
  2023.     rm -f $ac_file
  2024.     mv conftest.h $ac_file
  2025.   fi
  2026. fi; done
  2027.  
  2028. EOF
  2029. cat >> $CONFIG_STATUS <<EOF
  2030.  
  2031. EOF
  2032. cat >> $CONFIG_STATUS <<\EOF
  2033. echo timestamp > stamp-h
  2034. exit 0
  2035. EOF
  2036. chmod +x $CONFIG_STATUS
  2037. rm -f CONFIG.STATUS.old
  2038. rm -fr confdefs* $ac_clean_files
  2039. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2040.  
  2041.