home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / configure < prev    next >
Text File  |  1996-12-11  |  38KB  |  1,125 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  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.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. guidedir='${prefix}/guide'
  48. psdir='${prefix}/ps'
  49. dvidir='${prefix}/dvi'
  50. mandir='${prefix}/man'
  51.  
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  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.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  167.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  168.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  169.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.   --program-prefix=PREFIX prepend PREFIX to installed program names
  172.   --program-suffix=SUFFIX append SUFFIX to installed program names
  173.   --program-transform-name=PROGRAM
  174.                           run sed PROGRAM on installed program names
  175. EOF
  176.     cat << EOF
  177. Host type:
  178.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  179.   --host=HOST             configure for HOST [guessed]
  180.   --target=TARGET         configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  183.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  184.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  185.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  186.   --x-includes=DIR        X include files are in DIR
  187.   --x-libraries=DIR       X library files are in DIR
  188. EOF
  189.     if test -n "$ac_help"; then
  190.       echo "--enable and --with options recognized:$ac_help"
  191.     fi
  192.     exit 0 ;;
  193.  
  194.   -host | --host | --hos | --ho)
  195.     ac_prev=host ;;
  196.   -host=* | --host=* | --hos=* | --ho=*)
  197.     host="$ac_optarg" ;;
  198.  
  199.   -includedir | --includedir | --includedi | --included | --include \
  200.   | --includ | --inclu | --incl | --inc)
  201.     ac_prev=includedir ;;
  202.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  203.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  204.     includedir="$ac_optarg" ;;
  205.  
  206.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  207.     ac_prev=infodir ;;
  208.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209.     infodir="$ac_optarg" ;;
  210.  
  211.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  212.    ac_prev=guidedir ;;
  213.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  214.  
  215.  -psdir | --psdir | --psdi | --psd | --ps)
  216.    ac_prev=psdir ;;
  217.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  218.  
  219.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  220.    ac_prev=dvidir ;;
  221.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  222.  
  223.   -libdir | --libdir | --libdi | --libd)
  224.     ac_prev=libdir ;;
  225.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  226.     libdir="$ac_optarg" ;;
  227.  
  228.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  229.   | --libexe | --libex | --libe)
  230.     ac_prev=libexecdir ;;
  231.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  232.   | --libexe=* | --libex=* | --libe=*)
  233.     libexecdir="$ac_optarg" ;;
  234.  
  235.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  236.   | --localstate | --localstat | --localsta | --localst \
  237.   | --locals | --local | --loca | --loc | --lo)
  238.     ac_prev=localstatedir ;;
  239.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  240.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  241.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  242.     localstatedir="$ac_optarg" ;;
  243.  
  244.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  245.     ac_prev=mandir ;;
  246.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  247.     mandir="$ac_optarg" ;;
  248.  
  249.   -nfp | --nfp | --nf)
  250.     # Obsolete; use --without-fp.
  251.     with_fp=no ;;
  252.  
  253.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  254.   | --no-cr | --no-c)
  255.     no_create=yes ;;
  256.  
  257.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  258.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  259.     no_recursion=yes ;;
  260.  
  261.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  262.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  263.   | --oldin | --oldi | --old | --ol | --o)
  264.     ac_prev=oldincludedir ;;
  265.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  266.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  267.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  268.     oldincludedir="$ac_optarg" ;;
  269.  
  270.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  271.     ac_prev=prefix ;;
  272.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  273.     prefix="$ac_optarg" ;;
  274.  
  275.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  276.   | --program-pre | --program-pr | --program-p)
  277.     ac_prev=program_prefix ;;
  278.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  279.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  280.     program_prefix="$ac_optarg" ;;
  281.  
  282.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  283.   | --program-suf | --program-su | --program-s)
  284.     ac_prev=program_suffix ;;
  285.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  286.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  287.     program_suffix="$ac_optarg" ;;
  288.  
  289.   -program-transform-name | --program-transform-name \
  290.   | --program-transform-nam | --program-transform-na \
  291.   | --program-transform-n | --program-transform- \
  292.   | --program-transform | --program-transfor \
  293.   | --program-transfo | --program-transf \
  294.   | --program-trans | --program-tran \
  295.   | --progr-tra | --program-tr | --program-t)
  296.     ac_prev=program_transform_name ;;
  297.   -program-transform-name=* | --program-transform-name=* \
  298.   | --program-transform-nam=* | --program-transform-na=* \
  299.   | --program-transform-n=* | --program-transform-=* \
  300.   | --program-transform=* | --program-transfor=* \
  301.   | --program-transfo=* | --program-transf=* \
  302.   | --program-trans=* | --program-tran=* \
  303.   | --progr-tra=* | --program-tr=* | --program-t=*)
  304.     program_transform_name="$ac_optarg" ;;
  305.  
  306.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  307.   | -silent | --silent | --silen | --sile | --sil)
  308.     silent=yes ;;
  309.  
  310.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  311.     ac_prev=sbindir ;;
  312.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  313.   | --sbi=* | --sb=*)
  314.     sbindir="$ac_optarg" ;;
  315.  
  316.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  317.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  318.   | --sharedst | --shareds | --shared | --share | --shar \
  319.   | --sha | --sh)
  320.     ac_prev=sharedstatedir ;;
  321.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  322.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  323.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  324.   | --sha=* | --sh=*)
  325.     sharedstatedir="$ac_optarg" ;;
  326.  
  327.   -site | --site | --sit)
  328.     ac_prev=site ;;
  329.   -site=* | --site=* | --sit=*)
  330.     site="$ac_optarg" ;;
  331.  
  332.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  333.     ac_prev=srcdir ;;
  334.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  335.     srcdir="$ac_optarg" ;;
  336.  
  337.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  338.   | --syscon | --sysco | --sysc | --sys | --sy)
  339.     ac_prev=sysconfdir ;;
  340.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  341.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  342.     sysconfdir="$ac_optarg" ;;
  343.  
  344.   -target | --target | --targe | --targ | --tar | --ta | --t)
  345.     ac_prev=target ;;
  346.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  347.     target="$ac_optarg" ;;
  348.  
  349.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  350.     verbose=yes ;;
  351.  
  352.   -version | --version | --versio | --versi | --vers)
  353.     echo "configure generated by autoconf version 2.12"
  354.     exit 0 ;;
  355.  
  356.   -with-* | --with-*)
  357.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  358.     # Reject names that are not valid shell variable names.
  359.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  360.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  361.     fi
  362.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  363.     case "$ac_option" in
  364.       *=*) ;;
  365.       *) ac_optarg=yes ;;
  366.     esac
  367.     eval "with_${ac_package}='$ac_optarg'" ;;
  368.  
  369.   -without-* | --without-*)
  370.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  371.     # Reject names that are not valid shell variable names.
  372.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  373.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  374.     fi
  375.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  376.     eval "with_${ac_package}=no" ;;
  377.  
  378.   --x)
  379.     # Obsolete; use --with-x.
  380.     with_x=yes ;;
  381.  
  382.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  383.   | --x-incl | --x-inc | --x-in | --x-i)
  384.     ac_prev=x_includes ;;
  385.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  386.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  387.     x_includes="$ac_optarg" ;;
  388.  
  389.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  390.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  391.     ac_prev=x_libraries ;;
  392.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  393.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  394.     x_libraries="$ac_optarg" ;;
  395.  
  396.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  397.     ;;
  398.  
  399.   *)
  400.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  401.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  402.     fi
  403.     if test "x$nonopt" != xNONE; then
  404.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  405.     fi
  406.     nonopt="$ac_option"
  407.     ;;
  408.  
  409.   esac
  410. done
  411.  
  412. if test -n "$ac_prev"; then
  413.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  414. fi
  415.  
  416. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  417.  
  418. # File descriptor usage:
  419. # 0 standard input
  420. # 1 file creation
  421. # 2 errors and warnings
  422. # 3 some systems may open it to /dev/tty
  423. # 4 used on the Kubota Titan
  424. # 6 checking for... messages and results
  425. # 5 compiler messages saved in config.log
  426. if test "$silent" = yes; then
  427.   exec 6>/dev/null
  428. else
  429.   exec 6>&1
  430. fi
  431. exec 5>./config.log
  432.  
  433. echo "\
  434. This file contains any messages produced by compilers while
  435. running configure, to aid debugging if configure makes a mistake.
  436. " 1>&5
  437.  
  438. # Strip out --no-create and --no-recursion so they do not pile up.
  439. # Also quote any args containing shell metacharacters.
  440. ac_configure_args=
  441. for ac_arg
  442. do
  443.   case "$ac_arg" in
  444.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  445.   | --no-cr | --no-c) ;;
  446.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  447.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  448.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  449.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  450.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  451.   esac
  452. done
  453.  
  454. # NLS nuisances.
  455. # Only set these to C if already set.  These must not be set unconditionally
  456. # because not all systems understand e.g. LANG=C (notably SCO).
  457. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  458. # Non-C LC_CTYPE values break the ctype check.
  459. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  460. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  461. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  462. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  463.  
  464. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  465. rm -rf conftest* confdefs.h
  466. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  467. echo > confdefs.h
  468.  
  469. # A filename unique to this package, relative to the directory that
  470. # configure is in, which we can look for to find out if srcdir is correct.
  471. ac_unique_file=libsrc/crt0.c
  472.  
  473. # Find the source files, if location was not specified.
  474. if test -z "$srcdir"; then
  475.   ac_srcdir_defaulted=yes
  476.   # Try the directory containing this script, then its parent.
  477.   ac_prog=$0
  478.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  479.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  480.   srcdir=$ac_confdir
  481.   if test ! -r $srcdir/$ac_unique_file; then
  482.     srcdir=..
  483.   fi
  484. else
  485.   ac_srcdir_defaulted=no
  486. fi
  487. if test ! -r $srcdir/$ac_unique_file; then
  488.   if test "$ac_srcdir_defaulted" = yes; then
  489.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  490.   else
  491.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  492.   fi
  493. fi
  494. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  495.  
  496. # Prefer explicitly selected file to automatically selected ones.
  497. if test -z "$CONFIG_SITE"; then
  498.   if test "x$prefix" != xNONE; then
  499.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  500.   else
  501.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  502.   fi
  503. fi
  504. for ac_site_file in $CONFIG_SITE; do
  505.   if test -r "$ac_site_file"; then
  506.     echo "loading site script $ac_site_file"
  507.     . "$ac_site_file"
  508.   fi
  509. done
  510.  
  511. if test -r "$cache_file"; then
  512.   echo "loading cache $cache_file"
  513.   . $cache_file
  514. else
  515.   echo "creating cache $cache_file"
  516.   > $cache_file
  517. fi
  518.  
  519. ac_ext=c
  520. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  521. ac_cpp='$CPP $CPPFLAGS'
  522. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  523. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  524. cross_compiling=$ac_cv_prog_cc_cross
  525.  
  526. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  527.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  528.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  529.     ac_n= ac_c='
  530. ' ac_t='    '
  531.   else
  532.     ac_n=-n ac_c= ac_t=
  533.   fi
  534. else
  535.   ac_n= ac_c='\c' ac_t=
  536. fi
  537.  
  538.  
  539.  
  540. ac_aux_dir=
  541. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  542.   if test -f $ac_dir/install-sh; then
  543.     ac_aux_dir=$ac_dir
  544.     ac_install_sh="$ac_aux_dir/install-sh -c"
  545.     break
  546.   elif test -f $ac_dir/install.sh; then
  547.     ac_aux_dir=$ac_dir
  548.     ac_install_sh="$ac_aux_dir/install.sh -c"
  549.     break
  550.   fi
  551. done
  552. if test -z "$ac_aux_dir"; then
  553.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  554. fi
  555. ac_config_guess=$ac_aux_dir/config.guess
  556. ac_config_sub=$ac_aux_dir/config.sub
  557. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  558.  
  559. # Find a good install program.  We prefer a C program (faster),
  560. # so one script is as good as another.  But avoid the broken or
  561. # incompatible versions:
  562. # SysV /etc/install, /usr/sbin/install
  563. # SunOS /usr/etc/install
  564. # IRIX /sbin/install
  565. # AIX /bin/install
  566. # AmigaOS /c/install
  567. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  568. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  569. # ./install, which can be erroneously created by make from ./install.sh.
  570. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  571. echo "configure:572: checking for a BSD compatible install" >&5
  572. if test -z "$INSTALL"; then
  573. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  574.   echo $ac_n "(cached) $ac_c" 1>&6
  575. else
  576.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  577.   for ac_dir in $PATH; do
  578.     # Account for people who put trailing slashes in PATH elements.
  579.     case "$ac_dir/" in
  580.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  581.     *)
  582.       # OSF1 and SCO ODT 3.0 have their own names for install.
  583.       for ac_prog in ginstall installbsd scoinst install; do
  584.         if test -f $ac_dir/$ac_prog; then
  585.       if test $ac_prog = install &&
  586.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  587.         # AIX install.  It has an incompatible calling convention.
  588.         # OSF/1 installbsd also uses dspmsg, but is usable.
  589.         :
  590.       else
  591.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  592.         break 2
  593.       fi
  594.     fi
  595.       done
  596.       ;;
  597.     esac
  598.   done
  599.   IFS="$ac_save_IFS"
  600.  
  601. fi
  602.   if test "${ac_cv_path_install+set}" = set; then
  603.     INSTALL="$ac_cv_path_install"
  604.   else
  605.     # As a last resort, use the slow shell script.  We don't cache a
  606.     # path for INSTALL within a source directory, because that will
  607.     # break other packages using the cache if that directory is
  608.     # removed, or if the path is relative.
  609.     INSTALL="$ac_install_sh"
  610.   fi
  611. fi
  612. echo "$ac_t""$INSTALL" 1>&6
  613.  
  614. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  615. # It thinks the first close brace ends the variable substitution.
  616. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  617.  
  618. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  619.  
  620. # Extract the first word of "gcc", so it can be a program name with args.
  621. set dummy gcc; ac_word=$2
  622. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  623. echo "configure:624: checking for $ac_word" >&5
  624. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  625.   echo $ac_n "(cached) $ac_c" 1>&6
  626. else
  627.   if test -n "$CC"; then
  628.   ac_cv_prog_CC="$CC" # Let the user override the test.
  629. else
  630.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  631.   for ac_dir in $PATH; do
  632.     test -z "$ac_dir" && ac_dir=.
  633.     if test -f $ac_dir/$ac_word; then
  634.       ac_cv_prog_CC="gcc"
  635.       break
  636.     fi
  637.   done
  638.   IFS="$ac_save_ifs"
  639. fi
  640. fi
  641. CC="$ac_cv_prog_CC"
  642. if test -n "$CC"; then
  643.   echo "$ac_t""$CC" 1>&6
  644. else
  645.   echo "$ac_t""no" 1>&6
  646. fi
  647.  
  648. if test -z "$CC"; then
  649.   # Extract the first word of "cc", so it can be a program name with args.
  650. set dummy cc; ac_word=$2
  651. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  652. echo "configure:653: checking for $ac_word" >&5
  653. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  654.   echo $ac_n "(cached) $ac_c" 1>&6
  655. else
  656.   if test -n "$CC"; then
  657.   ac_cv_prog_CC="$CC" # Let the user override the test.
  658. else
  659.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  660.   ac_prog_rejected=no
  661.   for ac_dir in $PATH; do
  662.     test -z "$ac_dir" && ac_dir=.
  663.     if test -f $ac_dir/$ac_word; then
  664.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  665.         ac_prog_rejected=yes
  666.     continue
  667.       fi
  668.       ac_cv_prog_CC="cc"
  669.       break
  670.     fi
  671.   done
  672.   IFS="$ac_save_ifs"
  673. if test $ac_prog_rejected = yes; then
  674.   # We found a bogon in the path, so make sure we never use it.
  675.   set dummy $ac_cv_prog_CC
  676.   shift
  677.   if test $# -gt 0; then
  678.     # We chose a different compiler from the bogus one.
  679.     # However, it has the same basename, so the bogon will be chosen
  680.     # first if we set CC to just the basename; use the full file name.
  681.     shift
  682.     set dummy "$ac_dir/$ac_word" "$@"
  683.     shift
  684.     ac_cv_prog_CC="$@"
  685.   fi
  686. fi
  687. fi
  688. fi
  689. CC="$ac_cv_prog_CC"
  690. if test -n "$CC"; then
  691.   echo "$ac_t""$CC" 1>&6
  692. else
  693.   echo "$ac_t""no" 1>&6
  694. fi
  695.  
  696.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  697. fi
  698.  
  699. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  700. echo "configure:701: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  701.  
  702. ac_ext=c
  703. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  704. ac_cpp='$CPP $CPPFLAGS'
  705. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  706. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  707. cross_compiling=$ac_cv_prog_cc_cross
  708.  
  709. cat > conftest.$ac_ext <<EOF
  710. #line 711 "configure"
  711. #include "confdefs.h"
  712. main(){return(0);}
  713. EOF
  714. if { (eval echo configure:715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  715.   ac_cv_prog_cc_works=yes
  716.   # If we can't run a trivial program, we are probably using a cross compiler.
  717.   if (./conftest; exit) 2>/dev/null; then
  718.     ac_cv_prog_cc_cross=no
  719.   else
  720.     ac_cv_prog_cc_cross=yes
  721.   fi
  722. else
  723.   echo "configure: failed program was:" >&5
  724.   cat conftest.$ac_ext >&5
  725.   ac_cv_prog_cc_works=no
  726. fi
  727. rm -fr conftest*
  728.  
  729. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  730. if test $ac_cv_prog_cc_works = no; then
  731.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  732. fi
  733. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  734. echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  735. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  736. cross_compiling=$ac_cv_prog_cc_cross
  737.  
  738. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  739. echo "configure:740: checking whether we are using GNU C" >&5
  740. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  741.   echo $ac_n "(cached) $ac_c" 1>&6
  742. else
  743.   cat > conftest.c <<EOF
  744. #ifdef __GNUC__
  745.   yes;
  746. #endif
  747. EOF
  748. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  749.   ac_cv_prog_gcc=yes
  750. else
  751.   ac_cv_prog_gcc=no
  752. fi
  753. fi
  754.  
  755. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  756.  
  757. if test $ac_cv_prog_gcc = yes; then
  758.   GCC=yes
  759.   ac_test_CFLAGS="${CFLAGS+set}"
  760.   ac_save_CFLAGS="$CFLAGS"
  761.   CFLAGS=
  762.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  763. echo "configure:764: checking whether ${CC-cc} accepts -g" >&5
  764. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  765.   echo $ac_n "(cached) $ac_c" 1>&6
  766. else
  767.   echo 'void f(){}' > conftest.c
  768. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  769.   ac_cv_prog_cc_g=yes
  770. else
  771.   ac_cv_prog_cc_g=no
  772. fi
  773. rm -f conftest*
  774.  
  775. fi
  776.  
  777. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  778.   if test "$ac_test_CFLAGS" = set; then
  779.     CFLAGS="$ac_save_CFLAGS"
  780.   elif test $ac_cv_prog_cc_g = yes; then
  781.     CFLAGS="-g -O2"
  782.   else
  783.     CFLAGS="-O2"
  784.   fi
  785. else
  786.   GCC=
  787.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  788. fi
  789.  
  790. for ac_prog in mawk gawk nawk awk
  791. do
  792. # Extract the first word of "$ac_prog", so it can be a program name with args.
  793. set dummy $ac_prog; ac_word=$2
  794. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  795. echo "configure:796: checking for $ac_word" >&5
  796. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  797.   echo $ac_n "(cached) $ac_c" 1>&6
  798. else
  799.   if test -n "$AWK"; then
  800.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  801. else
  802.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  803.   for ac_dir in $PATH; do
  804.     test -z "$ac_dir" && ac_dir=.
  805.     if test -f $ac_dir/$ac_word; then
  806.       ac_cv_prog_AWK="$ac_prog"
  807.       break
  808.     fi
  809.   done
  810.   IFS="$ac_save_ifs"
  811. fi
  812. fi
  813. AWK="$ac_cv_prog_AWK"
  814. if test -n "$AWK"; then
  815.   echo "$ac_t""$AWK" 1>&6
  816. else
  817.   echo "$ac_t""no" 1>&6
  818. fi
  819.  
  820. test -n "$AWK" && break
  821. done
  822.  
  823. # Extract the first word of "ranlib", so it can be a program name with args.
  824. set dummy ranlib; ac_word=$2
  825. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  826. echo "configure:827: checking for $ac_word" >&5
  827. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  828.   echo $ac_n "(cached) $ac_c" 1>&6
  829. else
  830.   if test -n "$RANLIB"; then
  831.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  832. else
  833.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  834.   for ac_dir in $PATH; do
  835.     test -z "$ac_dir" && ac_dir=.
  836.     if test -f $ac_dir/$ac_word; then
  837.       ac_cv_prog_RANLIB="ranlib"
  838.       break
  839.     fi
  840.   done
  841.   IFS="$ac_save_ifs"
  842.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  843. fi
  844. fi
  845. RANLIB="$ac_cv_prog_RANLIB"
  846. if test -n "$RANLIB"; then
  847.   echo "$ac_t""$RANLIB" 1>&6
  848. else
  849.   echo "$ac_t""no" 1>&6
  850. fi
  851.  
  852.  
  853. trap '' 1 2 15
  854. cat > confcache <<\EOF
  855. # This file is a shell script that caches the results of configure
  856. # tests run on this system so they can be shared between configure
  857. # scripts and configure runs.  It is not useful on other systems.
  858. # If it contains results you don't want to keep, you may remove or edit it.
  859. #
  860. # By default, configure uses ./config.cache as the cache file,
  861. # creating it if it does not exist already.  You can give configure
  862. # the --cache-file=FILE option to use a different cache file; that is
  863. # what configure does when it calls configure scripts in
  864. # subdirectories, so they share the cache.
  865. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  866. # config.status only pays attention to the cache file if you give it the
  867. # --recheck option to rerun configure.
  868. #
  869. EOF
  870. # The following way of writing the cache mishandles newlines in values,
  871. # but we know of no workaround that is simple, portable, and efficient.
  872. # So, don't put newlines in cache variables' values.
  873. # Ultrix sh set writes to stderr and can't be redirected directly,
  874. # and sets the high bit in the cache file unless we assign to the vars.
  875. (set) 2>&1 |
  876.   case `(ac_space=' '; set) 2>&1` in
  877.   *ac_space=\ *)
  878.     # `set' does not quote correctly, so add quotes (double-quote substitution
  879.     # turns \\\\ into \\, and sed turns \\ into \).
  880.     sed -n \
  881.       -e "s/'/'\\\\''/g" \
  882.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  883.     ;;
  884.   *)
  885.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  886.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  887.     ;;
  888.   esac >> confcache
  889. if cmp -s $cache_file confcache; then
  890.   :
  891. else
  892.   if test -w $cache_file; then
  893.     echo "updating cache $cache_file"
  894.     cat confcache > $cache_file
  895.   else
  896.     echo "not updating unwritable cache $cache_file"
  897.   fi
  898. fi
  899. rm -f confcache
  900.  
  901. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  902.  
  903. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  904. # Let make expand exec_prefix.
  905. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  906.  
  907. # Any assignment to VPATH causes Sun make to only execute
  908. # the first set of double-colon rules, so remove it if not needed.
  909. # If there is a colon in the path, we need to keep it.
  910. if test "x$srcdir" = x.; then
  911.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  912. fi
  913.  
  914. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  915.  
  916. # Transform confdefs.h into DEFS.
  917. # Protect against shell expansion while executing Makefile rules.
  918. # Protect against Makefile macro expansion.
  919. cat > conftest.defs <<\EOF
  920. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  921. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  922. s%\[%\\&%g
  923. s%\]%\\&%g
  924. s%\$%$$%g
  925. EOF
  926. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  927. rm -f conftest.defs
  928.  
  929.  
  930. # Without the "./", some shells look in PATH for config.status.
  931. : ${CONFIG_STATUS=./config.status}
  932.  
  933. echo creating $CONFIG_STATUS
  934. # Some systems, like AmigaOS, won't allow you to remove a script that is
  935. # being executed, so just move it out of the way instead.
  936. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  937. cat > $CONFIG_STATUS <<EOF
  938. #! /bin/sh
  939. # Generated automatically by configure.
  940. # Run this file to recreate the current configuration.
  941. # This directory was configured as follows,
  942. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  943. #
  944. # $0 $ac_configure_args
  945. #
  946. # Compiler output produced by configure, useful for debugging
  947. # configure, is in ./config.log if it exists.
  948.  
  949. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  950. for ac_option
  951. do
  952.   case "\$ac_option" in
  953.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  954.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  955.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  956.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  957.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  958.     exit 0 ;;
  959.   -help | --help | --hel | --he | --h)
  960.     echo "\$ac_cs_usage"; exit 0 ;;
  961.   *) echo "\$ac_cs_usage"; exit 1 ;;
  962.   esac
  963. done
  964.  
  965. ac_given_srcdir=$srcdir
  966. ac_given_INSTALL="$INSTALL"
  967.  
  968. trap 'rm -fr `echo "Makefile general/Makefile library/Makefile libsrc/Makefile
  969.       static/Makefile stdio/Makefile stdlib/Makefile string/Makefile
  970.       ixnet/Makefile stack/Makefile net/Makefile db/Makefile glue/Makefile
  971.       utils/Makefile man/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  972. EOF
  973. cat >> $CONFIG_STATUS <<EOF
  974.  
  975. # Protect against being on the right side of a sed subst in config.status.
  976. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  977.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  978. $ac_vpsub
  979. $extrasub
  980. s%@CFLAGS@%$CFLAGS%g
  981. s%@CPPFLAGS@%$CPPFLAGS%g
  982. s%@CXXFLAGS@%$CXXFLAGS%g
  983. s%@DEFS@%$DEFS%g
  984. s%@LDFLAGS@%$LDFLAGS%g
  985. s%@LIBS@%$LIBS%g
  986. s%@exec_prefix@%$exec_prefix%g
  987. s%@prefix@%$prefix%g
  988. s%@program_transform_name@%$program_transform_name%g
  989. s%@bindir@%$bindir%g
  990. s%@sbindir@%$sbindir%g
  991. s%@libexecdir@%$libexecdir%g
  992. s%@datadir@%$datadir%g
  993. s%@sysconfdir@%$sysconfdir%g
  994. s%@sharedstatedir@%$sharedstatedir%g
  995. s%@localstatedir@%$localstatedir%g
  996. s%@libdir@%$libdir%g
  997. s%@includedir@%$includedir%g
  998. s%@oldincludedir@%$oldincludedir%g
  999. s%@infodir@%$infodir%g
  1000. s%@guidedir@%$guidedir%g
  1001. s%@psdir@%$psdir%g
  1002. s%@dvidir@%$dvidir%g
  1003. s%@mandir@%$mandir%g
  1004. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1005. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1006. s%@CC@%$CC%g
  1007. s%@AWK@%$AWK%g
  1008. s%@RANLIB@%$RANLIB%g
  1009.  
  1010. CEOF
  1011. EOF
  1012.  
  1013. cat >> $CONFIG_STATUS <<\EOF
  1014.  
  1015. # Split the substitutions into bite-sized pieces for seds with
  1016. # small command number limits, like on Digital OSF/1 and HP-UX.
  1017. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1018. ac_file=1 # Number of current file.
  1019. ac_beg=1 # First line for current file.
  1020. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1021. ac_more_lines=:
  1022. ac_sed_cmds=""
  1023. while $ac_more_lines; do
  1024.   if test $ac_beg -gt 1; then
  1025.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1026.   else
  1027.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1028.   fi
  1029.   if test ! -s conftest.s$ac_file; then
  1030.     ac_more_lines=false
  1031.     rm -f conftest.s$ac_file
  1032.   else
  1033.     if test -z "$ac_sed_cmds"; then
  1034.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1035.     else
  1036.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1037.     fi
  1038.     ac_file=`expr $ac_file + 1`
  1039.     ac_beg=$ac_end
  1040.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1041.   fi
  1042. done
  1043. if test -z "$ac_sed_cmds"; then
  1044.   ac_sed_cmds=cat
  1045. fi
  1046. EOF
  1047.  
  1048. cat >> $CONFIG_STATUS <<EOF
  1049.  
  1050. CONFIG_FILES=\${CONFIG_FILES-"Makefile general/Makefile library/Makefile libsrc/Makefile
  1051.       static/Makefile stdio/Makefile stdlib/Makefile string/Makefile
  1052.       ixnet/Makefile stack/Makefile net/Makefile db/Makefile glue/Makefile
  1053.       utils/Makefile man/Makefile"}
  1054. EOF
  1055. cat >> $CONFIG_STATUS <<\EOF
  1056. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1057.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1058.   case "$ac_file" in
  1059.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1060.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1061.   *) ac_file_in="${ac_file}.in" ;;
  1062.   esac
  1063.  
  1064.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1065.  
  1066.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1067.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1068.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1069.     # The file is in a subdirectory.
  1070.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1071.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1072.     # A "../" for each directory in $ac_dir_suffix.
  1073.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1074.   else
  1075.     ac_dir_suffix= ac_dots=
  1076.   fi
  1077.  
  1078.   case "$ac_given_srcdir" in
  1079.   .)  srcdir=.
  1080.       if test -z "$ac_dots"; then top_srcdir=.
  1081.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1082.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1083.   *) # Relative path.
  1084.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1085.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1086.   esac
  1087.  
  1088.   case "$ac_given_INSTALL" in
  1089.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1090.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1091.   esac
  1092.  
  1093.   echo creating "$ac_file"
  1094.   rm -f "$ac_file"
  1095.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1096.   case "$ac_file" in
  1097.   *Makefile*) ac_comsub="1i\\
  1098. # $configure_input" ;;
  1099.   *) ac_comsub= ;;
  1100.   esac
  1101.  
  1102.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1103.   sed -e "$ac_comsub
  1104. s%@configure_input@%$configure_input%g
  1105. s%@srcdir@%$srcdir%g
  1106. s%@top_srcdir@%$top_srcdir%g
  1107. s%@INSTALL@%$INSTALL%g
  1108. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1109. fi; done
  1110. rm -f conftest.s*
  1111.  
  1112. EOF
  1113. cat >> $CONFIG_STATUS <<EOF
  1114.  
  1115. EOF
  1116. cat >> $CONFIG_STATUS <<\EOF
  1117.  
  1118. exit 0
  1119. EOF
  1120. chmod +x $CONFIG_STATUS
  1121. rm -f CONFIG.STATUS.old
  1122. rm -fr confdefs* $ac_clean_files
  1123. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1124.  
  1125.