home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / tools / TIAsm / configure < prev    next >
Encoding:
Text File  |  2006-10-19  |  67.6 KB  |  2,375 lines

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