home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / configure < prev    next >
Encoding:
Text File  |  2006-10-19  |  40.0 KB  |  1,277 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. build with mwcc"
  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=Makefile.in
  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. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  528. echo "configure:529: checking whether ${MAKE-make} sets \${MAKE}" >&5
  529. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  530. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  531.   echo $ac_n "(cached) $ac_c" 1>&6
  532. else
  533.   cat > conftestmake <<\EOF
  534. all:
  535.     @echo 'ac_maketemp="${MAKE}"'
  536. EOF
  537. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  538. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  539. if test -n "$ac_maketemp"; then
  540.   eval ac_cv_prog_make_${ac_make}_set=yes
  541. else
  542.   eval ac_cv_prog_make_${ac_make}_set=no
  543. fi
  544. rm -f conftestmake
  545. fi
  546. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  547.   echo "$ac_t""yes" 1>&6
  548.   SET_MAKE=
  549. else
  550.   echo "$ac_t""no" 1>&6
  551.   SET_MAKE="MAKE=${MAKE-make}"
  552. fi
  553.  
  554. # Extract the first word of "gcc", so it can be a program name with args.
  555. set dummy gcc; ac_word=$2
  556. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  557. echo "configure:558: checking for $ac_word" >&5
  558. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  559.   echo $ac_n "(cached) $ac_c" 1>&6
  560. else
  561.   if test -n "$CC"; then
  562.   ac_cv_prog_CC="$CC" # Let the user override the test.
  563. else
  564.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  565.   ac_dummy="$PATH"
  566.   for ac_dir in $ac_dummy; do
  567.     test -z "$ac_dir" && ac_dir=.
  568.     if test -f $ac_dir/$ac_word; then
  569.       ac_cv_prog_CC="gcc"
  570.       break
  571.     fi
  572.   done
  573.   IFS="$ac_save_ifs"
  574. fi
  575. fi
  576. CC="$ac_cv_prog_CC"
  577. if test -n "$CC"; then
  578.   echo "$ac_t""$CC" 1>&6
  579. else
  580.   echo "$ac_t""no" 1>&6
  581. fi
  582.  
  583. if test -z "$CC"; then
  584.   # Extract the first word of "cc", so it can be a program name with args.
  585. set dummy cc; ac_word=$2
  586. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  587. echo "configure:588: checking for $ac_word" >&5
  588. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  589.   echo $ac_n "(cached) $ac_c" 1>&6
  590. else
  591.   if test -n "$CC"; then
  592.   ac_cv_prog_CC="$CC" # Let the user override the test.
  593. else
  594.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  595.   ac_prog_rejected=no
  596.   ac_dummy="$PATH"
  597.   for ac_dir in $ac_dummy; do
  598.     test -z "$ac_dir" && ac_dir=.
  599.     if test -f $ac_dir/$ac_word; then
  600.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  601.         ac_prog_rejected=yes
  602.     continue
  603.       fi
  604.       ac_cv_prog_CC="cc"
  605.       break
  606.     fi
  607.   done
  608.   IFS="$ac_save_ifs"
  609. if test $ac_prog_rejected = yes; then
  610.   # We found a bogon in the path, so make sure we never use it.
  611.   set dummy $ac_cv_prog_CC
  612.   shift
  613.   if test $# -gt 0; then
  614.     # We chose a different compiler from the bogus one.
  615.     # However, it has the same basename, so the bogon will be chosen
  616.     # first if we set CC to just the basename; use the full file name.
  617.     shift
  618.     set dummy "$ac_dir/$ac_word" "$@"
  619.     shift
  620.     ac_cv_prog_CC="$@"
  621.   fi
  622. fi
  623. fi
  624. fi
  625. CC="$ac_cv_prog_CC"
  626. if test -n "$CC"; then
  627.   echo "$ac_t""$CC" 1>&6
  628. else
  629.   echo "$ac_t""no" 1>&6
  630. fi
  631.  
  632.   if test -z "$CC"; then
  633.     case "`uname -s`" in
  634.     *win32* | *WIN32*)
  635.       # Extract the first word of "cl", so it can be a program name with args.
  636. set dummy cl; ac_word=$2
  637. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  638. echo "configure:639: checking for $ac_word" >&5
  639. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  640.   echo $ac_n "(cached) $ac_c" 1>&6
  641. else
  642.   if test -n "$CC"; then
  643.   ac_cv_prog_CC="$CC" # Let the user override the test.
  644. else
  645.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  646.   ac_dummy="$PATH"
  647.   for ac_dir in $ac_dummy; do
  648.     test -z "$ac_dir" && ac_dir=.
  649.     if test -f $ac_dir/$ac_word; then
  650.       ac_cv_prog_CC="cl"
  651.       break
  652.     fi
  653.   done
  654.   IFS="$ac_save_ifs"
  655. fi
  656. fi
  657. CC="$ac_cv_prog_CC"
  658. if test -n "$CC"; then
  659.   echo "$ac_t""$CC" 1>&6
  660. else
  661.   echo "$ac_t""no" 1>&6
  662. fi
  663.  ;;
  664.     esac
  665.   fi
  666.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  667. fi
  668.  
  669. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  670. echo "configure:671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  671.  
  672. ac_ext=c
  673. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  674. ac_cpp='$CPP $CPPFLAGS'
  675. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  676. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  677. cross_compiling=$ac_cv_prog_cc_cross
  678.  
  679. cat > conftest.$ac_ext << EOF
  680.  
  681. #line 682 "configure"
  682. #include "confdefs.h"
  683.  
  684. main(){return(0);}
  685. EOF
  686. if { (eval echo configure:687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  687.   ac_cv_prog_cc_works=yes
  688.   # If we can't run a trivial program, we are probably using a cross compiler.
  689.   if (./conftest; exit) 2>/dev/null; then
  690.     ac_cv_prog_cc_cross=no
  691.   else
  692.     ac_cv_prog_cc_cross=yes
  693.   fi
  694. else
  695.   echo "configure: failed program was:" >&5
  696.   cat conftest.$ac_ext >&5
  697.   ac_cv_prog_cc_works=no
  698. fi
  699. rm -fr conftest*
  700. ac_ext=c
  701. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  702. ac_cpp='$CPP $CPPFLAGS'
  703. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  704. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  705. cross_compiling=$ac_cv_prog_cc_cross
  706.  
  707. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  708. if test $ac_cv_prog_cc_works = no; then
  709.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  710. fi
  711. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  712. echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  713. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  714. cross_compiling=$ac_cv_prog_cc_cross
  715.  
  716. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  717. echo "configure:718: checking whether we are using GNU C" >&5
  718. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  719.   echo $ac_n "(cached) $ac_c" 1>&6
  720. else
  721.   cat > conftest.c <<EOF
  722. #ifdef __GNUC__
  723.   yes;
  724. #endif
  725. EOF
  726. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  727.   ac_cv_prog_gcc=yes
  728. else
  729.   ac_cv_prog_gcc=no
  730. fi
  731. fi
  732.  
  733. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  734.  
  735. if test $ac_cv_prog_gcc = yes; then
  736.   GCC=yes
  737. else
  738.   GCC=
  739. fi
  740.  
  741. ac_test_CFLAGS="${CFLAGS+set}"
  742. ac_save_CFLAGS="$CFLAGS"
  743. CFLAGS=
  744. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  745. echo "configure:746: checking whether ${CC-cc} accepts -g" >&5
  746. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  747.   echo $ac_n "(cached) $ac_c" 1>&6
  748. else
  749.   echo 'void f(){}' > conftest.c
  750. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  751.   ac_cv_prog_cc_g=yes
  752. else
  753.   ac_cv_prog_cc_g=no
  754. fi
  755. rm -f conftest*
  756.  
  757. fi
  758.  
  759. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  760. if test "$ac_test_CFLAGS" = set; then
  761.   CFLAGS="$ac_save_CFLAGS"
  762. elif test $ac_cv_prog_cc_g = yes; then
  763.   if test "$GCC" = yes; then
  764.     CFLAGS="-g -O2"
  765.   else
  766.     CFLAGS="-g"
  767.   fi
  768. else
  769.   if test "$GCC" = yes; then
  770.     CFLAGS="-O2"
  771.   else
  772.     CFLAGS=
  773.   fi
  774. fi
  775.  
  776.  
  777. TOP=`pwd`
  778.  
  779.  
  780.  
  781. ################
  782.  
  783. if test "$CC" = ""; then
  784. if test "$GCC" = "yes"; then
  785. CC=gcc
  786. else
  787. CC=cc
  788. fi
  789. fi
  790. if test "$LD" = ""; then
  791. LD=$CC
  792. fi
  793.  
  794.  
  795.  
  796. DEPFLAGS="-MD"
  797. MAPFLAGS="-Wl,-cref -Wl,-Map -Wl,@OUTFILE@.map"
  798. ARFLAGS="rcsu"
  799.  
  800. # Check whether --enable-mwcc or --disable-mwcc was given.
  801. if test "${enable_mwcc+set}" = set; then
  802.   enableval="$enable_mwcc"
  803.   if test "$CC" = ""; then
  804. CC="mwcc";
  805. fi
  806. CFLAGS="-inline all $CFLAGS"
  807. DEPFLAGS="-MD"
  808. if test "$LD" = ""; then
  809. LD="gcc";
  810. MAPFLAGS="-Wl,-cref -Wl,-Map -Wl,@OUTFILE@.map"
  811. ARFLAGS="rcsu"
  812. fi
  813.  
  814. fi
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824. ##########
  825.  
  826. ac_aux_dir=
  827. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  828.   if test -f $ac_dir/install-sh; then
  829.     ac_aux_dir=$ac_dir
  830.     ac_install_sh="$ac_aux_dir/install-sh -c"
  831.     break
  832.   elif test -f $ac_dir/install.sh; then
  833.     ac_aux_dir=$ac_dir
  834.     ac_install_sh="$ac_aux_dir/install.sh -c"
  835.     break
  836.   fi
  837. done
  838. if test -z "$ac_aux_dir"; then
  839.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  840. fi
  841. ac_config_guess=$ac_aux_dir/config.guess
  842. ac_config_sub=$ac_aux_dir/config.sub
  843. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  844.  
  845. # Find a good install program.  We prefer a C program (faster),
  846. # so one script is as good as another.  But avoid the broken or
  847. # incompatible versions:
  848. # SysV /etc/install, /usr/sbin/install
  849. # SunOS /usr/etc/install
  850. # IRIX /sbin/install
  851. # AIX /bin/install
  852. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  853. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  854. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  855. # ./install, which can be erroneously created by make from ./install.sh.
  856. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  857. echo "configure:858: checking for a BSD compatible install" >&5
  858. if test -z "$INSTALL"; then
  859. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  860.   echo $ac_n "(cached) $ac_c" 1>&6
  861. else
  862.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  863.   for ac_dir in $PATH; do
  864.     # Account for people who put trailing slashes in PATH elements.
  865.     case "$ac_dir/" in
  866.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  867.     *)
  868.       # OSF1 and SCO ODT 3.0 have their own names for install.
  869.       # Don't use installbsd from OSF since it installs stuff as root
  870.       # by default.
  871.       for ac_prog in ginstall scoinst install; do
  872.         if test -f $ac_dir/$ac_prog; then
  873.       if test $ac_prog = install &&
  874.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  875.         # AIX install.  It has an incompatible calling convention.
  876.         :
  877.       else
  878.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  879.         break 2
  880.       fi
  881.     fi
  882.       done
  883.       ;;
  884.     esac
  885.   done
  886.   IFS="$ac_save_IFS"
  887.  
  888. fi
  889.   if test "${ac_cv_path_install+set}" = set; then
  890.     INSTALL="$ac_cv_path_install"
  891.   else
  892.     # As a last resort, use the slow shell script.  We don't cache a
  893.     # path for INSTALL within a source directory, because that will
  894.     # break other packages using the cache if that directory is
  895.     # removed, or if the path is relative.
  896.     INSTALL="$ac_install_sh"
  897.   fi
  898. fi
  899. echo "$ac_t""$INSTALL" 1>&6
  900.  
  901. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  902. # It thinks the first close brace ends the variable substitution.
  903. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  904.  
  905. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  906.  
  907. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  908.  
  909. subdirs="source"
  910.  
  911.  
  912. trap '' 1 2 15
  913. cat > confcache <<\EOF
  914. # This file is a shell script that caches the results of configure
  915. # tests run on this system so they can be shared between configure
  916. # scripts and configure runs.  It is not useful on other systems.
  917. # If it contains results you don't want to keep, you may remove or edit it.
  918. #
  919. # By default, configure uses ./config.cache as the cache file,
  920. # creating it if it does not exist already.  You can give configure
  921. # the --cache-file=FILE option to use a different cache file; that is
  922. # what configure does when it calls configure scripts in
  923. # subdirectories, so they share the cache.
  924. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  925. # config.status only pays attention to the cache file if you give it the
  926. # --recheck option to rerun configure.
  927. #
  928. EOF
  929. # The following way of writing the cache mishandles newlines in values,
  930. # but we know of no workaround that is simple, portable, and efficient.
  931. # So, don't put newlines in cache variables' values.
  932. # Ultrix sh set writes to stderr and can't be redirected directly,
  933. # and sets the high bit in the cache file unless we assign to the vars.
  934. (set) 2>&1 |
  935.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  936.   *ac_space=\ *)
  937.     # `set' does not quote correctly, so add quotes (double-quote substitution
  938.     # turns \\\\ into \\, and sed turns \\ into \).
  939.     sed -n \
  940.       -e "s/'/'\\\\''/g" \
  941.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  942.     ;;
  943.   *)
  944.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  945.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  946.     ;;
  947.   esac >> confcache
  948. if cmp -s $cache_file confcache; then
  949.   :
  950. else
  951.   if test -w $cache_file; then
  952.     echo "updating cache $cache_file"
  953.     cat confcache > $cache_file
  954.   else
  955.     echo "not updating unwritable cache $cache_file"
  956.   fi
  957. fi
  958. rm -f confcache
  959.  
  960. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  961.  
  962. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  963. # Let make expand exec_prefix.
  964. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  965.  
  966. # Any assignment to VPATH causes Sun make to only execute
  967. # the first set of double-colon rules, so remove it if not needed.
  968. # If there is a colon in the path, we need to keep it.
  969. if test "x$srcdir" = x.; then
  970.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  971. fi
  972.  
  973. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  974.  
  975. # Transform confdefs.h into DEFS.
  976. # Protect against shell expansion while executing Makefile rules.
  977. # Protect against Makefile macro expansion.
  978. cat > conftest.defs <<\EOF
  979. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  980. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  981. s%\[%\\&%g
  982. s%\]%\\&%g
  983. s%\$%$$%g
  984. EOF
  985. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  986. rm -f conftest.defs
  987.  
  988.  
  989. # Without the "./", some shells look in PATH for config.status.
  990. : ${CONFIG_STATUS=./config.status}
  991.  
  992. echo creating $CONFIG_STATUS
  993. rm -f $CONFIG_STATUS
  994. cat > $CONFIG_STATUS <<EOF
  995. #! /bin/sh
  996. # Generated automatically by configure.
  997. # Run this file to recreate the current configuration.
  998. # This directory was configured as follows,
  999. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1000. #
  1001. # $0 $ac_configure_args
  1002. #
  1003. # Compiler output produced by configure, useful for debugging
  1004. # configure, is in ./config.log if it exists.
  1005.  
  1006. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1007. for ac_option
  1008. do
  1009.   case "\$ac_option" in
  1010.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1011.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1012.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1013.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1014.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1015.     exit 0 ;;
  1016.   -help | --help | --hel | --he | --h)
  1017.     echo "\$ac_cs_usage"; exit 0 ;;
  1018.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1019.   esac
  1020. done
  1021.  
  1022. ac_given_srcdir=$srcdir
  1023. ac_given_INSTALL="$INSTALL"
  1024.  
  1025. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1026. EOF
  1027. cat >> $CONFIG_STATUS <<EOF
  1028.  
  1029. # Protect against being on the right side of a sed subst in config.status.
  1030. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1031.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1032. $ac_vpsub
  1033. $extrasub
  1034. s%@SHELL@%$SHELL%g
  1035. s%@CFLAGS@%$CFLAGS%g
  1036. s%@CPPFLAGS@%$CPPFLAGS%g
  1037. s%@CXXFLAGS@%$CXXFLAGS%g
  1038. s%@FFLAGS@%$FFLAGS%g
  1039. s%@DEFS@%$DEFS%g
  1040. s%@LDFLAGS@%$LDFLAGS%g
  1041. s%@LIBS@%$LIBS%g
  1042. s%@exec_prefix@%$exec_prefix%g
  1043. s%@prefix@%$prefix%g
  1044. s%@program_transform_name@%$program_transform_name%g
  1045. s%@bindir@%$bindir%g
  1046. s%@sbindir@%$sbindir%g
  1047. s%@libexecdir@%$libexecdir%g
  1048. s%@datadir@%$datadir%g
  1049. s%@sysconfdir@%$sysconfdir%g
  1050. s%@sharedstatedir@%$sharedstatedir%g
  1051. s%@localstatedir@%$localstatedir%g
  1052. s%@libdir@%$libdir%g
  1053. s%@includedir@%$includedir%g
  1054. s%@oldincludedir@%$oldincludedir%g
  1055. s%@infodir@%$infodir%g
  1056. s%@mandir@%$mandir%g
  1057. s%@SET_MAKE@%$SET_MAKE%g
  1058. s%@CC@%$CC%g
  1059. s%@TOP@%$TOP%g
  1060. s%@LD@%$LD%g
  1061. s%@DEPFLAGS@%$DEPFLAGS%g
  1062. s%@MAPFLAGS@%$MAPFLAGS%g
  1063. s%@ARFLAGS@%$ARFLAGS%g
  1064. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1065. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1066. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1067. s%@subdirs@%$subdirs%g
  1068.  
  1069. CEOF
  1070. EOF
  1071.  
  1072. cat >> $CONFIG_STATUS <<\EOF
  1073.  
  1074. # Split the substitutions into bite-sized pieces for seds with
  1075. # small command number limits, like on Digital OSF/1 and HP-UX.
  1076. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1077. ac_file=1 # Number of current file.
  1078. ac_beg=1 # First line for current file.
  1079. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1080. ac_more_lines=:
  1081. ac_sed_cmds=""
  1082. while $ac_more_lines; do
  1083.   if test $ac_beg -gt 1; then
  1084.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1085.   else
  1086.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1087.   fi
  1088.   if test ! -s conftest.s$ac_file; then
  1089.     ac_more_lines=false
  1090.     rm -f conftest.s$ac_file
  1091.   else
  1092.     if test -z "$ac_sed_cmds"; then
  1093.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1094.     else
  1095.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1096.     fi
  1097.     ac_file=`expr $ac_file + 1`
  1098.     ac_beg=$ac_end
  1099.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1100.   fi
  1101. done
  1102. if test -z "$ac_sed_cmds"; then
  1103.   ac_sed_cmds=cat
  1104. fi
  1105. EOF
  1106.  
  1107. cat >> $CONFIG_STATUS <<EOF
  1108.  
  1109. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1110. EOF
  1111. cat >> $CONFIG_STATUS <<\EOF
  1112. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1113.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1114.   case "$ac_file" in
  1115.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1116.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1117.   *) ac_file_in="${ac_file}.in" ;;
  1118.   esac
  1119.  
  1120.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1121.  
  1122.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1123.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1124.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1125.     # The file is in a subdirectory.
  1126.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1127.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1128.     # A "../" for each directory in $ac_dir_suffix.
  1129.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1130.   else
  1131.     ac_dir_suffix= ac_dots=
  1132.   fi
  1133.  
  1134.   case "$ac_given_srcdir" in
  1135.   .)  srcdir=.
  1136.       if test -z "$ac_dots"; then top_srcdir=.
  1137.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1138.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1139.   *) # Relative path.
  1140.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1141.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1142.   esac
  1143.  
  1144.   case "$ac_given_INSTALL" in
  1145.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1146.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1147.   esac
  1148.  
  1149.   echo creating "$ac_file"
  1150.   rm -f "$ac_file"
  1151.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1152.   case "$ac_file" in
  1153.   *Makefile*) ac_comsub="1i\\
  1154. # $configure_input" ;;
  1155.   *) ac_comsub= ;;
  1156.   esac
  1157.  
  1158.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1159.   sed -e "$ac_comsub
  1160. s%@configure_input@%$configure_input%g
  1161. s%@srcdir@%$srcdir%g
  1162. s%@top_srcdir@%$top_srcdir%g
  1163. s%@INSTALL@%$INSTALL%g
  1164. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1165. fi; done
  1166. rm -f conftest.s*
  1167.  
  1168. EOF
  1169. cat >> $CONFIG_STATUS <<EOF
  1170.  
  1171. EOF
  1172. cat >> $CONFIG_STATUS <<\EOF
  1173.  
  1174. exit 0
  1175. EOF
  1176. chmod +x $CONFIG_STATUS
  1177. rm -fr confdefs* $ac_clean_files
  1178. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1179.  
  1180. if test "$no_recursion" != yes; then
  1181.  
  1182.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  1183.   ac_sub_configure_args=
  1184.   ac_prev=
  1185.   for ac_arg in $ac_configure_args; do
  1186.     if test -n "$ac_prev"; then
  1187.       ac_prev=
  1188.       continue
  1189.     fi
  1190.     case "$ac_arg" in
  1191.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  1192.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1193.       ac_prev=cache_file ;;
  1194.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1195.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1196.       ;;
  1197.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1198.       ac_prev=srcdir ;;
  1199.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1200.       ;;
  1201.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  1202.     esac
  1203.   done
  1204.  
  1205.   for ac_config_dir in source; do
  1206.  
  1207.     # Do not complain, so a configure script can configure whichever
  1208.     # parts of a large source tree are present.
  1209.     if test ! -d $srcdir/$ac_config_dir; then
  1210.       continue
  1211.     fi
  1212.  
  1213.     echo configuring in $ac_config_dir
  1214.  
  1215.     case "$srcdir" in
  1216.     .) ;;
  1217.     *)
  1218.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  1219.       else
  1220.         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  1221.       fi
  1222.       ;;
  1223.     esac
  1224.  
  1225.     ac_popdir=`pwd`
  1226.     cd $ac_config_dir
  1227.  
  1228.       # A "../" for each directory in /$ac_config_dir.
  1229.       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  1230.  
  1231.     case "$srcdir" in
  1232.     .) # No --srcdir option.  We are building in place.
  1233.       ac_sub_srcdir=$srcdir ;;
  1234.     /*) # Absolute path.
  1235.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  1236.     *) # Relative path.
  1237.       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  1238.     esac
  1239.  
  1240.     # Check for guested configure; otherwise get Cygnus style configure.
  1241.     if test -f $ac_sub_srcdir/configure; then
  1242.       ac_sub_configure=$ac_sub_srcdir/configure
  1243.     elif test -f $ac_sub_srcdir/configure.in; then
  1244.       ac_sub_configure=$ac_configure
  1245.     else
  1246.       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  1247.       ac_sub_configure=
  1248.     fi
  1249.  
  1250.     # The recursion is here.
  1251.     if test -n "$ac_sub_configure"; then
  1252.  
  1253.       # Make the cache file name correct relative to the subdirectory.
  1254.       case "$cache_file" in
  1255.       /*) ac_sub_cache_file=$cache_file ;;
  1256.       *) # Relative path.
  1257.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  1258.       esac
  1259.   case "$ac_given_INSTALL" in
  1260.         [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1261.         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1262.         esac
  1263.  
  1264.       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  1265.       # The eval makes quoting arguments work.
  1266.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  1267.       then :
  1268.       else
  1269.         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  1270.       fi
  1271.     fi
  1272.  
  1273.     cd $ac_popdir
  1274.   done
  1275. fi
  1276.  
  1277.