home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / rcs / sources / configur.e < prev    next >
Text File  |  1992-01-19  |  31KB  |  1,428 lines

  1. #! /bin/sh
  2. #
  3. # If these # comments don't work, trim them.  Don't worry about any other
  4. # shell scripts, Configure will trim # comments from them for you.
  5. #
  6. # (If you are trying to port this package to a machine without sh, I would
  7. # suggest you cut out the prototypical config.h from the end of Configure
  8. # and edit it to reflect your system.  Some packages may include samples
  9. # of config.h for certain machines, so you might look for one of those.)
  10. #
  11. # $Header: Head.U,v 1.0 87/05/22 12:28:10 lwall Exp $
  12. #
  13. # Yes, you may rip this off to use in other distribution packages.
  14. # (Note: this Configure script was generated automatically.  Rather than
  15. # working with this copy of Configure, you may wish to get metaconfig.)
  16.  
  17. : sanity checks
  18. PATH='.:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin'
  19. export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)
  20.  
  21. if test ! -t 0; then
  22.     echo "Say 'sh Configure', not 'sh <Configure'"
  23.     exit 1
  24. fi
  25.  
  26. (alias) >/dev/null 2>&1 && \
  27.     echo "(I see you are using the Korn shell.  Some ksh's blow up on Configure," && \
  28.     echo "especially on exotic machines.  If yours does, try the Bourne shell instead.)"
  29.  
  30. if test ! -d ../UU; then
  31.     if test ! -d UU; then
  32.     mkdir UU
  33.     fi
  34.     cd UU
  35. fi
  36.  
  37. case "$1" in
  38. -d) shift; fastread='yes';;
  39. esac
  40.  
  41. d_eunice=''
  42. eunicefix=''
  43. define=''
  44. loclist=''
  45. expr=''
  46. sed=''
  47. echo=''
  48. cat=''
  49. rm=''
  50. mv=''
  51. cp=''
  52. tail=''
  53. tr=''
  54. mkdir=''
  55. sort=''
  56. uniq=''
  57. grep=''
  58. trylist=''
  59. test=''
  60. inews=''
  61. egrep=''
  62. more=''
  63. pg=''
  64. Mcc=''
  65. vi=''
  66. mailx=''
  67. mail=''
  68. cpp=''
  69. Log=''
  70. Header=''
  71. bin=''
  72. cc=''
  73. contains=''
  74. cppstdin=''
  75. cppminus=''
  76. d_charsprf=''
  77. d_flexfnam=''
  78. d_index=''
  79. d_voidsig=''
  80. libc=''
  81. mansrc=''
  82. manext=''
  83. models=''
  84. split=''
  85. small=''
  86. medium=''
  87. large=''
  88. huge=''
  89. ccflags=''
  90. ldflags=''
  91. n=''
  92. c=''
  93. package=''
  94. registers=''
  95. reg1=''
  96. reg2=''
  97. reg3=''
  98. reg4=''
  99. reg5=''
  100. reg6=''
  101. reg7=''
  102. reg8=''
  103. reg9=''
  104. reg10=''
  105. reg11=''
  106. reg12=''
  107. reg13=''
  108. reg14=''
  109. reg15=''
  110. reg16=''
  111. spitshell=''
  112. shsharp=''
  113. sharpbang=''
  114. startsh=''
  115. voidflags=''
  116. defvoidused=''
  117. CONFIG=''
  118. : set package name
  119. package=patch
  120.  
  121. echo " "
  122. echo "Beginning of configuration questions for $package kit."
  123. : Eunice requires " " instead of "", can you believe it
  124. echo " "
  125.  
  126. define='define'
  127. undef='/*undef'
  128. libpth='/usr/lib /usr/local/lib /lib'
  129. smallmach='pdp11 i8086 z8000 i80286 iAPX286'
  130. rmlist='kit[1-9]isdone kit[1-9][0-9]isdone'
  131. trap 'echo " "; rm -f $rmlist; exit 1' 1 2 3
  132.  
  133. : We must find out about Eunice early
  134. eunicefix=':'
  135. if test -f /etc/unixtovms; then
  136.     eunicefix=/etc/unixtovms
  137. fi
  138. if test -f /etc/unixtovms.exe; then
  139.     eunicefix=/etc/unixtovms.exe
  140. fi
  141.  
  142. attrlist="mc68000 sun gcos unix ibm gimpel interdata tss os mert pyr"
  143. attrlist="$attrlist vax pdp11 i8086 z8000 u3b2 u3b5 u3b20 u3b200"
  144. attrlist="$attrlist ns32000 ns16000 iAPX286 mc300 mc500 mc700 sparc"
  145. attrlist="$attrlist nsc32000 sinix xenix venix posix ansi M_XENIX"
  146. attrlist="$attrlist $mc68k __STDC__"
  147. pth="/usr/ucb /bin /usr/bin /usr/local /usr/local/bin /usr/lbin /etc /usr/lib /lib"
  148. d_newshome="../../NeWS"
  149. defvoidused=7
  150.  
  151. : some greps do not return status, grrr.
  152. echo "grimblepritz" >grimble
  153. if grep blurfldyick grimble >/dev/null 2>&1 ; then
  154.     contains=contains
  155. elif grep grimblepritz grimble >/dev/null 2>&1 ; then
  156.     contains=grep
  157. else
  158.     contains=contains
  159. fi
  160. rm -f grimble
  161. : the following should work in any shell
  162. case "$contains" in
  163. contains*)
  164.     echo " "
  165.     echo "AGH!  Grep doesn't return a status.  Attempting remedial action."
  166.     cat >contains <<'EOSS'
  167. grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
  168. EOSS
  169. chmod +x contains
  170. esac
  171.  
  172. : first determine how to suppress newline on echo command
  173. echo "Checking echo to see how to suppress newlines..."
  174. (echo "hi there\c" ; echo " ") >.echotmp
  175. if $contains c .echotmp >/dev/null 2>&1 ; then
  176.     echo "...using -n."
  177.     n='-n'
  178.     c=''
  179. else
  180.     cat <<'EOM'
  181. ...using \c
  182. EOM
  183.     n=''
  184.     c='\c'
  185. fi
  186. echo $n "Type carriage return to continue.  Your cursor should be here-->$c"
  187. read ans
  188. rm -f .echotmp
  189.  
  190. : now set up to do reads with possible shell escape and default assignment
  191. cat <<EOSC >myread
  192. case "\$fastread" in
  193. yes) ans=''; echo " " ;;
  194. *) ans='!';;
  195. esac
  196. while expr "X\$ans" : "X!" >/dev/null; do
  197.     read ans
  198.     case "\$ans" in
  199.     !)
  200.     sh
  201.     echo " "
  202.     echo $n "\$rp $c"
  203.     ;;
  204.     !*)
  205.     set \`expr "X\$ans" : "X!\(.*\)\$"\`
  206.     sh -c "\$*"
  207.     echo " "
  208.     echo $n "\$rp $c"
  209.     ;;
  210.     esac
  211. done
  212. rp='Your answer:'
  213. case "\$ans" in
  214. '') ans="\$dflt";;
  215. esac
  216. EOSC
  217.  
  218. : general instructions
  219. cat <<EOH
  220.  
  221. This installation shell script will examine your system and ask you questions
  222. to determine how the $package package should be installed.  If you get stuck
  223. on a question, you may use a ! shell escape to start a subshell or execute
  224. a command.  Many of the questions will have default answers in square
  225. brackets--typing carriage return will give you the default.
  226.  
  227. On some of the questions which ask for file or directory names you are
  228. allowed to use the ~name construct to specify the login directory belonging
  229. to "name", even if you don't have a shell which knows about that.  Questions
  230. where this is allowed will be marked "(~name ok)".
  231.  
  232. EOH
  233. rp="[Type carriage return to continue]"
  234. echo $n "$rp $c"
  235. . myread
  236. cat <<EOH
  237.  
  238. Much effort has been expended to ensure that this shell script will run
  239. on any Unix system.  If despite that it blows up on you, your best bet is
  240. to edit Configure and run it again. Also, let me (lwall@jpl-devvax.jpl.nasa.gov)
  241. know how I blew it.  If you can't run Configure for some reason, you'll have
  242. to generate a config.sh file by hand.
  243.  
  244. This installation script affects things in two ways: 1) it may do direct
  245. variable substitutions on some of the files included in this kit, and
  246. 2) it builds a config.h file for inclusion in C programs.  You may edit
  247. any of these files as the need arises after running this script.
  248.  
  249. If you make a mistake on a question, there is no easy way to back up to it
  250. currently.  The easiest thing to do is to edit config.sh and rerun all the
  251. SH files.  Configure will offer to let you do this before it runs the SH files.
  252.  
  253. EOH
  254. rp="[Type carriage return to continue]"
  255. echo $n "$rp $c"
  256. . myread
  257.  
  258. : get old answers, if there is a config file out there
  259. if test -f ../config.sh; then
  260.     echo " "
  261.     dflt=y
  262.     rp="I see a config.sh file.  Did Configure make it on THIS system? [$dflt]"
  263.     echo $n "$rp $c"
  264.     . myread
  265.     case "$ans" in
  266.     n*) echo "OK, I'll ignore it.";;
  267.     *)  echo "Fetching default answers from your old config.sh file..."
  268.     tmp="$n"
  269.     ans="$c"
  270.         . ../config.sh
  271.     n="$tmp"
  272.     c="$ans"
  273.     ;;
  274.     esac
  275. fi
  276.  
  277. : find out where common programs are
  278. echo " "
  279. echo "Locating common programs..."
  280. cat <<EOSC >loc
  281. $startsh
  282. case \$# in
  283. 0) exit 1;;
  284. esac
  285. thing=\$1
  286. shift
  287. dflt=\$1
  288. shift
  289. for dir in \$*; do
  290.     case "\$thing" in
  291.     .)
  292.     if test -d \$dir/\$thing; then
  293.         echo \$dir
  294.         exit 0
  295.     fi
  296.     ;;
  297.     *)
  298.     if test -f \$dir/\$thing; then
  299.         echo \$dir/\$thing
  300.         exit 0
  301.     elif test -f \$dir/\$thing.exe; then
  302.         : on Eunice apparently
  303.         echo \$dir/\$thing
  304.         exit 0
  305.     fi
  306.     ;;
  307.     esac
  308. done
  309. echo \$dflt
  310. exit 1
  311. EOSC
  312. chmod +x loc
  313. $eunicefix loc
  314. loclist="
  315. expr
  316. sed
  317. echo
  318. cat
  319. rm
  320. tr
  321. grep
  322. "
  323. trylist="
  324. test
  325. Mcc
  326. cpp
  327. "
  328. for file in $loclist; do
  329.     xxx=`loc $file $file $pth`
  330.     eval $file=$xxx
  331.     eval _$file=$xxx
  332.     case "$xxx" in
  333.     /*)
  334.     echo $file is in $xxx.
  335.     ;;
  336.     *)
  337.     echo "I don't know where $file is.  I hope it's in everyone's PATH."
  338.     ;;
  339.     esac
  340. done
  341. echo " "
  342. echo "Don't worry if any of the following aren't found..."
  343. ans=offhand
  344. for file in $trylist; do
  345.     xxx=`loc $file $file $pth`
  346.     eval $file=$xxx
  347.     eval _$file=$xxx
  348.     case "$xxx" in
  349.     /*)
  350.     echo $file is in $xxx.
  351.     ;;
  352.     *)
  353.     echo "I don't see $file out there, $ans."
  354.     ans=either
  355.     ;;
  356.     esac
  357. done
  358. case "$egrep" in
  359. egrep)
  360.     echo "Substituting grep for egrep."
  361.     egrep=$grep
  362.     ;;
  363. esac
  364. case "$test" in
  365. test)
  366.     echo "Hopefully test is built into your sh."
  367.     ;;
  368. /bin/test)
  369.     echo " "
  370.     dflt=n
  371.     rp="Is your "'"'"test"'"'" built into sh? [$dflt] (OK to guess)"
  372.     echo $n "$rp $c"
  373.     . myread
  374.     case "$ans" in
  375.     y*) test=test ;;
  376.     esac
  377.     ;;
  378. *)
  379.     test=test
  380.     ;;
  381. esac
  382. case "$echo" in
  383. echo)
  384.     echo "Hopefully echo is built into your sh."
  385.     ;;
  386. /bin/echo)
  387.     echo " "
  388.     echo "Checking compatibility between /bin/echo and builtin echo (if any)..."
  389.     $echo $n "hi there$c" >foo1
  390.     echo $n "hi there$c" >foo2
  391.     if cmp foo1 foo2 >/dev/null 2>&1; then
  392.     echo "They are compatible.  In fact, they may be identical."
  393.     else
  394.     case "$n" in
  395.     '-n') n='' c='\c' ans='\c' ;;
  396.     *) n='-n' c='' ans='-n' ;;
  397.     esac
  398.     cat <<FOO
  399. They are not compatible!  You are probably running ksh on a non-USG system.
  400. I'll have to use /bin/echo instead of the builtin, since Bourne shell doesn't
  401. have echo built in and we may have to run some Bourne shell scripts.  That
  402. means I'll have to use $ans to suppress newlines now.  Life is ridiculous.
  403.  
  404. FOO
  405.     rp="Your cursor should be here-->"
  406.     $echo $n "$rp$c"
  407.     . myread
  408.     fi
  409.     $rm -f foo1 foo2
  410.     ;;
  411. *)
  412.     : cross your fingers
  413.     echo=echo
  414.     ;;
  415. esac
  416. rmlist="$rmlist loc"
  417.  
  418. : get list of predefined functions in a handy place
  419. echo " "
  420. if test -f /lib/libc.a; then
  421.     echo "Your C library is in /lib/libc.a.  You're normal."
  422.     libc=/lib/libc.a
  423. else
  424.     if test -f /lib/clib -a -f /lib/libc; then
  425.     echo "Your standard C library is in /lib/libc.  Must be Domain/OS."
  426.     libc=/lib/libc
  427.     else
  428.         ans=`loc libc.a blurfl/dyick $libpth`
  429.         if test ! -f $ans; then
  430.         ans=`loc clib blurfl/dyick $libpth`
  431.         fi
  432.         if test ! -f $ans; then
  433.          ans=`loc libc blurfl/dyick $libpth`
  434.         fi
  435.         if test -f $ans; then
  436.         echo "Your C library is in $ans, of all places."
  437.         libc=$ans
  438.         else
  439.         if test -f "$libc"; then
  440.             echo "Your C library is in $libc, like you said before."
  441.         else
  442.             cat <<EOM
  443.  
  444. I can't seem to find your C library.  I've looked in the following places:
  445.  
  446.     $libpth
  447.  
  448. None of these seems to contain your C library.  What is the full name
  449. EOM
  450.             dflt=None
  451.             $echo $n "of your C library? $c"
  452.             rp='C library full name?'
  453.             . myread
  454.             libc="$ans"
  455.         fi
  456.         fi
  457.     fi
  458. fi
  459. echo " "
  460. $echo $n "Extracting names from $libc for later perusal...$c"
  461. nm $libc 2>/dev/null | sed -n -e 's/^.* T _//p' -e 's/^.* T //p' > libc.list
  462. if $contains '^printf$' libc.list >/dev/null 2>&1; then
  463.     echo "done"
  464. else
  465.     nm $libc 2>/dev/null | sed -n -e 's/^.* D _//p' -e 's/^.* D //p' > libc.list
  466.     if $contains '^printf$' libc.list >/dev/null 2>&1; then
  467.     echo "done"
  468.     else
  469.     echo " "
  470.     echo "nm didn't seem to work right."
  471.     echo "Trying ar instead..."
  472.     if ar t $libc | sed -e 's/\.o$//' > libc.list; then
  473.         echo "Ok."
  474.     else
  475.         echo "That didn't work either.  Giving up."
  476.         exit 1
  477.     fi
  478.     fi
  479. fi
  480. rmlist="$rmlist libc.list"
  481.  
  482. : make some quick guesses about what we are up against
  483. echo " "
  484. $echo $n "Hmm...  $c"
  485. if $contains SIGTSTP /usr/include/signal.h >/dev/null 2>&1 ; then
  486.     echo "Looks kind of like a BSD system, but we'll see..."
  487.     echo exit 0 >bsd
  488.     echo exit 1 >usg
  489.     echo exit 1 >v7
  490. elif $contains '^fcntl$' libc.list >/dev/null 2>&1 ; then
  491.     echo "Looks kind of like a USG system, but we'll see..."
  492.     echo exit 1 >bsd
  493.     echo exit 0 >usg
  494.     echo exit 1 >v7
  495. else
  496.     echo "Looks kind of like a version 7 system, but we'll see..."
  497.     echo exit 1 >bsd
  498.     echo exit 1 >usg
  499.     echo exit 0 >v7
  500. fi
  501. if $contains '^vmssystem$' libc.list >/dev/null 2>&1 ; then
  502.     cat <<'EOI'
  503. There is, however, a strange, musty smell in the air that reminds me of
  504. something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
  505. EOI
  506.     echo "exit 0" >eunice
  507.     eunicefix=unixtovms
  508.     d_eunice="$define"
  509. : it so happens the Eunice I know will not run shell scripts in Unix format
  510. else
  511.     echo " "
  512.     echo "Congratulations.  You aren't running Eunice."
  513.     eunicefix=':'
  514.     d_eunice="$undef"
  515.     echo "exit 1" >eunice
  516. fi
  517. if test -f /xenix; then
  518.     echo "Actually, this looks more like a XENIX system..."
  519.     echo "exit 0" >xenix
  520. else
  521.     echo " "
  522.     echo "It's not Xenix..."
  523.     echo "exit 1" >xenix
  524. fi
  525. chmod +x xenix
  526. $eunicefix xenix
  527. if test -f /venix; then
  528.     echo "Actually, this looks more like a VENIX system..."
  529.     echo "exit 0" >venix
  530. else
  531.     echo " "
  532.     if xenix; then
  533.     : null
  534.     else
  535.     echo "Nor is it Venix..."
  536.     fi
  537.     echo "exit 1" >venix
  538. fi
  539. chmod +x bsd usg v7 eunice venix
  540. $eunicefix bsd usg v7 eunice venix
  541. rmlist="$rmlist bsd usg v7 eunice venix xenix"
  542.  
  543. : see if sh knows # comments
  544. echo " "
  545. echo "Checking your sh to see if it knows about # comments..."
  546. if sh -c '#' >/dev/null 2>&1 ; then
  547.     echo "Your sh handles # comments correctly."
  548.     shsharp=true
  549.     spitshell=cat
  550.     echo " "
  551.     echo "Okay, let's see if #! works on this system..."
  552.     echo "#!/bin/echo hi" > try
  553.     $eunicefix try
  554.     chmod +x try
  555.     try > today
  556.     if $contains hi today >/dev/null 2>&1; then
  557.     echo "It does."
  558.     sharpbang='#!'
  559.     else
  560.     echo "#! /bin/echo hi" > try
  561.     $eunicefix try
  562.     chmod +x try
  563.     try > today
  564.     if test -s today; then
  565.         echo "It does."
  566.         sharpbang='#! '
  567.     else
  568.         echo "It doesn't."
  569.         sharpbang=': use '
  570.     fi
  571.     fi
  572. else
  573.     echo "Your sh doesn't grok # comments--I will strip them later on."
  574.     shsharp=false
  575.     echo "exec grep -v '^#'" >spitshell
  576.     chmod +x spitshell
  577.     $eunicefix spitshell
  578.     spitshell=`pwd`/spitshell
  579.     echo "I presume that if # doesn't work, #! won't work either!"
  580.     sharpbang=': use '
  581. fi
  582.  
  583. : figure out how to guarantee sh startup
  584. echo " "
  585. echo "Checking out how to guarantee sh startup..."
  586. startsh=$sharpbang'/bin/sh'
  587. echo "Let's see if '$startsh' works..."
  588. cat >try <<EOSS
  589. $startsh
  590. set abc
  591. test "$?abc" != 1
  592. EOSS
  593.  
  594. chmod +x try
  595. $eunicefix try
  596. if try; then
  597.     echo "Yup, it does."
  598. else
  599.     echo "Nope.  You may have to fix up the shell scripts to make sure sh runs them."
  600. fi
  601. rm -f try today
  602.  
  603. #: see if sprintf is declared as int or pointer to char
  604. #echo " "
  605. #cat >.ucbsprf.c <<'EOF'
  606. #main() { char buf[10]; exit((unsigned long)sprintf(buf,"%s","foo") > 10L); }
  607. #EOF
  608. #if cc .ucbsprf.c -o .ucbsprf >/dev/null 2>&1 && .ucbsprf; then
  609. #    echo "Your sprintf() returns (int)."
  610. #    d_charsprf="$undef"
  611. #else
  612. #    echo "Your sprintf() returns (char*)."
  613. #    d_charsprf="$define"
  614. #fi
  615. #/bin/rm -f .ucbsprf.c .ucbsprf
  616.  
  617. : see if we can have long filenames
  618. echo " "
  619. rm -f 123456789abcde
  620. if (echo hi >123456789abcdef) 2>/dev/null; then
  621.     : not version 8
  622.     if test -f 123456789abcde; then
  623.     echo 'You cannot have filenames longer than 14 characters.  Sigh.'
  624.     d_flexfnam="$undef"
  625.     else
  626.     echo 'You can have filenames longer than 14 characters.'
  627.     d_flexfnam="$define"
  628.     fi
  629. else
  630.     : version 8 probably
  631.     echo "You can't have filenames longer than 14 chars.  V8 can't even think about them!"
  632.     d_flexfnam="$undef"
  633. fi 
  634. : index or strcpy
  635. echo " "
  636. case "$d_index" in
  637. n) dflt=n;;
  638. *) dflt=y;;
  639. esac
  640. if $contains '^index$' libc.list >/dev/null 2>&1 ; then
  641.     if $contains '^strchr$' libc.list >/dev/null 2>&1 ; then
  642.     echo "Your system has both index() and strchr().  Shall I use"
  643.     rp="index() rather than strchr()? [$dflt]"
  644.     $echo $n "$rp $c"
  645.     . myread
  646.     case "$ans" in
  647.         n*) d_index="$define" ;;
  648.         *)  d_index="$undef" ;;
  649.     esac
  650.     else
  651.     d_index="$undef"
  652.     echo "index() found."
  653.     fi
  654. else
  655.     if $contains '^strchr$' libc.list >/dev/null 2>&1 ; then
  656.     d_index="$define"
  657.     echo "strchr() found."
  658.     else
  659.     echo "No index() or strchr() found!"
  660.     d_index="$undef"
  661.     fi
  662. fi
  663.  
  664. : see if signal is declared as pointer to function returning int or void
  665. echo " "
  666. if $contains 'void.*signal' /usr/include/signal.h >/dev/null 2>&1 ||
  667. $contains 'void.*signal' /usr/include/sys/signal.h >/dev/null 2>&1 ; then
  668.     echo "You have void (*signal())() instead of int."
  669.     d_voidsig="$define"
  670. else
  671.     echo "You have int (*signal())() instead of void."
  672.     d_voidsig="$undef"
  673. fi
  674.  
  675. : check for void type
  676. echo " "
  677. $cat <<EOM
  678. Checking to see how well your C compiler groks the void type...
  679.  
  680.   Support flag bits are:
  681.     1: basic void declarations.
  682.     2: arrays of pointers to functions returning void.
  683.     4: operations between pointers to and addresses of void functions.
  684.  
  685. EOM
  686. case "$voidflags" in
  687. '')
  688.     $cat >try.c <<'EOCP'
  689. #if TRY & 1
  690. void main() {
  691. #else
  692. main() {
  693. #endif
  694.     extern void *moo();
  695.     void *(*goo)();
  696. #if TRY & 2
  697.     void (*foo[10])();
  698. #endif
  699.  
  700. #if TRY & 4
  701.     if(*goo == moo) {
  702.         exit(0);
  703.     }
  704. #endif
  705.     exit(0);
  706. }
  707. EOCP
  708.     if cc -S -DTRY=7 try.c >.out 2>&1 ; then
  709.     voidflags=7
  710.     echo "It appears to support void fully."
  711.     if $contains warning .out >/dev/null 2>&1; then
  712.         echo "However, you might get some warnings that look like this:"
  713.         $cat .out
  714.     fi
  715.     else
  716.     echo "Hmm, you compiler has some difficulty with void.  Checking further..."
  717.     if cc -S -DTRY=1 try.c >/dev/null 2>&1 ; then
  718.         echo "It supports 1..."
  719.         if cc -S -DTRY=3 try.c >/dev/null 2>&1 ; then
  720.         voidflags=3
  721.         echo "And it supports 2 but not 4."
  722.         else
  723.         echo "It doesn't support 2..."
  724.         if cc -S -DTRY=3 try.c >/dev/null 2>&1 ; then
  725.             voidflags=5
  726.             echo "But it supports 4."
  727.         else
  728.             voidflags=1
  729.             echo "And it doesn't support 4."
  730.         fi
  731.         fi
  732.     else
  733.         echo "There is no support at all for void."
  734.         voidflags=0
  735.     fi
  736.     fi
  737. esac
  738. dflt="$voidflags";
  739. rp="Your void support flags add up to what? [$dflt]"
  740. $echo $n "$rp $c"
  741. . myread
  742. voidflags="$ans"
  743. $rm -f try.* .out
  744.  
  745. : see how we invoke the C preprocessor
  746. echo " "
  747. echo "Now, how can we feed standard input to your C preprocessor..."
  748. cat <<'EOT' >testcpp.c
  749. #define ABC abc
  750. #define XYZ xyz
  751. ABC.XYZ
  752. EOT
  753. echo 'Maybe "'$cpp'" will work...'
  754. $cpp <testcpp.c >testcpp.out 2>&1
  755. if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  756.     echo "Yup, it does."
  757.     cppstdin="$cpp"
  758.     cppminus='';
  759. else
  760.     echo 'Nope, maybe "'$cpp' -" will work...'
  761.     $cpp - <testcpp.c >testcpp.out 2>&1
  762.     if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  763.     echo "Yup, it does."
  764.     cppstdin="$cpp"
  765.     cppminus='-';
  766.     else
  767.     echo 'No such luck...maybe "cc -E" will work...'
  768.     cc -E <testcpp.c >testcpp.out 2>&1
  769.     if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  770.         echo "It works!"
  771.         cppstdin='cc -E'
  772.         cppminus='';
  773.     else
  774.         echo 'Nixed again...maybe "cc -E -" will work...'
  775.         cc -E - <testcpp.c >testcpp.out 2>&1
  776.         if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  777.         echo "Hooray, it works!  I was beginning to wonder."
  778.         cppstdin='cc -E'
  779.         cppminus='-';
  780.         else
  781.         echo 'Nope...maybe "cc -P" will work...'
  782.         cc -P <testcpp.c >testcpp.out 2>&1
  783.         if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  784.             echo "Yup, that does."
  785.             cppstdin='cc -P'
  786.             cppminus='';
  787.         else
  788.             echo 'Nope...maybe "cc -P -" will work...'
  789.             cc -P - <testcpp.c >testcpp.out 2>&1
  790.             if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  791.             echo "Yup, that does."
  792.             cppstdin='cc -P'
  793.             cppminus='-';
  794.             else
  795.             echo 'Hmm...perhaps you already told me...'
  796.             case "$cppstdin" in
  797.             '') ;;
  798.             *) $cppstdin $cppminus <testcpp.c >testcpp.out 2>&1;;
  799.             esac
  800.             if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  801.                 echo "Hooray, you did!  I was beginning to wonder."
  802.             else
  803.                 echo 'Uh-uh.  Time to get fancy...'
  804.                 echo 'Trying (cat >/tmp/$$.c; cc -E /tmp/$$.c; rm /tmp/$$.c)'
  805.                 cppstdin='(cat >/tmp/$$.c; cc -E /tmp/$$.c; rm /tmp/$$.c)'
  806.                 cppminus='';
  807.                 $cppstdin <testcpp.c >testcpp.out 2>&1
  808.                 if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  809.                 echo "Eureka!."
  810.                 else
  811.                 dflt=blurfl
  812.                 $echo $n "No dice.  I can't find a C preprocessor.  Name one: $c"
  813.                 rp='Name a C preprocessor:'
  814.                 . myread
  815.                 cppstdin="$ans"
  816.                 $cppstdin <testcpp.c >testcpp.out 2>&1
  817.                 if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  818.                     echo "OK, that will do."
  819.                 else
  820.                     echo "Sorry, I can't get that to work.  Go find one."
  821.                     exit 1
  822.                 fi
  823.                 fi
  824.             fi
  825.             fi
  826.         fi
  827.         fi
  828.     fi
  829.     fi
  830. fi
  831. rm -f testcpp.c testcpp.out
  832.  
  833. : get C preprocessor symbols handy
  834. echo " "
  835. echo $attrlist | $tr '[ - ]' '[\012-\012]' >Cppsym.know
  836. $cat <<EOSS >Cppsym
  837. $startsh
  838. case "\$1" in
  839. -l) list=true
  840.     shift
  841.     ;;
  842. esac
  843. unknown=''
  844. case "\$list\$#" in
  845. 1|2)
  846.     for sym do
  847.     if $contains "^\$1$" Cppsym.true >/dev/null 2>&1; then
  848.         exit 0
  849.     elif $contains "^\$1$" Cppsym.know >/dev/null 2>&1; then
  850.         :
  851.     else
  852.         unknown="\$unknown \$sym"
  853.     fi
  854.     done
  855.     set X \$unknown
  856.     shift
  857.     ;;
  858. esac
  859. case \$# in
  860. 0) exit 1;;
  861. esac
  862. echo \$* | $tr '[ - ]' '[\012-\012]' | $sed -e 's/\(.*\)/\\
  863. #ifdef \1\\
  864. exit 0; _ _ _ _\1\\     \1\\
  865. #endif\\
  866. /' >/tmp/Cppsym\$\$
  867. echo exit 1 >>/tmp/Cppsym\$\$
  868. $cppstdin $cppminus </tmp/Cppsym\$\$ >/tmp/Cppsym2\$\$
  869. case "\$list" in
  870. true) awk 'NF > 5 {print substr(\$6,2,100)}' </tmp/Cppsym2\$\$ ;;
  871. *)
  872.     sh /tmp/Cppsym2\$\$
  873.     status=\$?
  874.     ;;
  875. esac
  876. $rm -f /tmp/Cppsym\$\$ /tmp/Cppsym2\$\$
  877. exit \$status
  878. EOSS
  879. chmod +x Cppsym
  880. $eunicefix Cppsym
  881. echo "Your C preprocessor defines the following symbols:"
  882. Cppsym -l $attrlist >Cppsym.true
  883. cat Cppsym.true
  884. rmlist="$rmlist Cppsym Cppsym.know Cppsym.true"
  885.  
  886. : see how many register declarations we want to use
  887. case "$registers" in
  888. '')
  889.     if Cppsym vax; then
  890.     dflt=6
  891.     elif Cppsym sun mc68000; then
  892.     dflt=10
  893.     elif Cppsym pyr; then
  894.     dflt=14
  895.     elif Cppsym ns32000 ns16000; then
  896.     dflt=5
  897.     elif Cppsym $smallmach; then
  898.     dflt=3
  899.     else
  900.     : if you have any other numbers for me, send them in
  901.     dflt=6
  902.     fi
  903.     ;;
  904. *)  dflt=$registers ;;
  905. esac
  906. cat <<EOM
  907.  
  908. Different C compilers on different machines pay attention to different
  909. numbers of register declarations.  About how many register declarations in
  910. EOM
  911. $echo $n "each routine does your C compiler pay attention to? (OK to guess) [$dflt] $c"
  912. rp="# register declarations used? [$dflt]"
  913. . myread
  914. registers=$ans
  915. reg1=''
  916. awk "BEGIN { for (i=1; i<=16; i++) printf \"reg%d=''\n\", i}" </dev/null >.foo
  917. . .foo
  918. awk "BEGIN { for (i=1; i<=$registers; i++) printf \"reg%d=register\n\", i}" \
  919.     </dev/null >.foo
  920. . .foo
  921. rm -f .foo
  922.  
  923. : preserve RCS keywords in files with variable substitution, grrr
  924. Log='$Log'
  925. Header='$Header'
  926.  
  927. : set up shell script to do ~ expansion
  928. cat >filexp <<EOSS
  929. $startsh
  930. : expand filename
  931. case "\$1" in
  932.  ~/*|~)
  933.     echo \$1 | $sed "s|~|\${HOME-\$LOGDIR}|"
  934.     ;;
  935.  ~*)
  936.     if $test -f /bin/csh; then
  937.     /bin/csh -f -c "glob \$1"
  938.     echo ""
  939.     else
  940.     name=\`$expr x\$1 : '..\([^/]*\)'\`
  941.     dir=\`$sed -n -e "/^\${name}:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'\$'"/\1/" -e p -e q -e '}' </etc/passwd\`
  942.     if $test ! -d "\$dir"; then
  943.         me=\`basename \$0\`
  944.         echo "\$me: can't locate home directory for: \$name" >&2
  945.         exit 1
  946.     fi
  947.     case "\$1" in
  948.     */*)
  949.         echo \$dir/\`$expr x\$1 : '..[^/]*/\(.*\)'\`
  950.         ;;
  951.     *)
  952.         echo \$dir
  953.         ;;
  954.     esac
  955.     fi
  956.     ;;
  957. *)
  958.     echo \$1
  959.     ;;
  960. esac
  961. EOSS
  962. chmod +x filexp
  963. $eunicefix filexp
  964.  
  965. : determine where public executables go
  966. case "$bin" in
  967. '')
  968.     dflt=`loc . /bin /usr/local/bin /usr/lbin /usr/local /usr/bin`
  969.     ;;
  970. *)  dflt="$bin"
  971.     ;;
  972. esac
  973. cont=true
  974. while $test "$cont" ; do
  975.     echo " "
  976.     rp="Where do you want to put the public executables? [$dflt]"
  977.     $echo $n "$rp $c"
  978.     . myread
  979.     bin="$ans"
  980.     bin=`filexp $bin`
  981.     if test -d $bin; then
  982.     cont=''
  983.     else
  984.     dflt=n
  985.     rp="Directory $bin doesn't exist.  Use that name anyway? [$dflt]"
  986.     $echo $n "$rp $c"
  987.     . myread
  988.     dflt=''
  989.     case "$ans" in
  990.     y*) cont='';;
  991.     esac
  992.     fi
  993. done
  994.  
  995. : determine where manual pages go
  996. case "$mansrc" in
  997. '')
  998.     dflt=`loc . /usr/man/man1 /usr/man/mann /usr/man/local/man1 /usr/man/u_man/man1 /usr/man/man1`
  999.     ;;
  1000. *)  dflt="$mansrc"
  1001.     ;;
  1002. esac
  1003. cont=true
  1004. while $test "$cont" ; do
  1005.     echo " "
  1006.     rp="Where do the manual pages (source) go? [$dflt]"
  1007.     $echo $n "$rp $c"
  1008.     . myread
  1009.     mansrc=`filexp "$ans"`
  1010.     if test -d $mansrc; then
  1011.     cont=''
  1012.     else
  1013.     dflt=n
  1014.     rp="Directory $mansrc doesn't exist.  Use that name anyway? [$dflt]"
  1015.     $echo $n "$rp $c"
  1016.     . myread
  1017.     dflt=''
  1018.     case "$ans" in
  1019.     y*) cont='';;
  1020.     esac
  1021.     fi
  1022. done
  1023. case "$mansrc" in
  1024. *l)
  1025.     manext=l
  1026.     ;;
  1027. *n)
  1028.     manext=n
  1029.     ;;
  1030. *C)
  1031.     manext=C
  1032.     ;;
  1033. *)
  1034.     manext=1
  1035.     ;;
  1036. esac
  1037.  
  1038. : see what memory models we can support
  1039. case "$models" in
  1040. '')
  1041.     if Cppsym pdp11; then
  1042.     dflt='unsplit split'
  1043.     else
  1044.     ans=`loc . X /lib/small /lib/large /usr/lib/small /usr/lib/large /lib/medium /usr/lib/medium /lib/huge`
  1045.     case "$ans" in
  1046.     X) dflt='none';;
  1047.     *)  if $test -d /lib/small || $test -d /usr/lib/small; then
  1048.         dflt='small'
  1049.         else
  1050.         dflt=''
  1051.         fi
  1052.         if $test -d /lib/medium || $test -d /usr/lib/medium; then
  1053.         dflt="$dflt medium"
  1054.         fi
  1055.         if $test -d /lib/large || $test -d /usr/lib/large; then
  1056.         dflt="$dflt large"
  1057.         fi
  1058.         if $test -d /lib/huge || $test -d /usr/lib/huge; then
  1059.         dflt="$dflt huge"
  1060.         fi
  1061.     esac
  1062.     fi
  1063.     ;;
  1064. *)  dflt="$models" ;;
  1065. esac
  1066. $cat <<EOM
  1067.  
  1068. Some systems have different model sizes.  On most systems they are called
  1069. small, medium, large, and huge.  On the PDP11 they are called unsplit and
  1070. split.  If your system doesn't support different memory models, say "none".
  1071. If you wish to force everything to one memory model, say "none" here and
  1072. put the appropriate flags later when it asks you for other cc and ld flags.
  1073. Venix systems may wish to put "none" and let the compiler figure things out.
  1074. (In the following question multiple model names should be space separated.)
  1075.  
  1076. EOM
  1077. rp="Which models are supported? [$dflt]"
  1078. $echo $n "$rp $c"
  1079. . myread
  1080. models="$ans"
  1081.  
  1082. case "$models" in
  1083. none)
  1084.     small=''
  1085.     medium=''
  1086.     large=''
  1087.     huge=''
  1088.     unsplit=''
  1089.     split=''
  1090.     ;;
  1091. *split)
  1092.     case "$split" in
  1093.     '') 
  1094.     if $contains '-i' $mansrc/ld.1 >/dev/null 2>&1 || \
  1095.        $contains '-i' $mansrc/cc.1 >/dev/null 2>&1; then
  1096.         dflt='-i'
  1097.     else
  1098.         dflt='none'
  1099.     fi
  1100.     ;;
  1101.     *) dflt="$split";;
  1102.     esac
  1103.     rp="What flag indicates separate I and D space? [$dflt]"
  1104.     $echo $n "$rp $c"
  1105.     . myread
  1106.     case "$ans" in
  1107.     none) ans='';;
  1108.     esac
  1109.     split="$ans"
  1110.     unsplit=''
  1111.     ;;
  1112. *large*|*small*|*medium*|*huge*)
  1113.     case "$model" in
  1114.     *large*)
  1115.     case "$large" in
  1116.     '') dflt='-Ml';;
  1117.     *) dflt="$large";;
  1118.     esac
  1119.     rp="What flag indicates large model? [$dflt]"
  1120.     $echo $n "$rp $c"
  1121.     . myread
  1122.     case "$ans" in
  1123.     none) ans='';
  1124.     esac
  1125.     large="$ans"
  1126.     ;;
  1127.     *) large='';;
  1128.     esac
  1129.     case "$model" in
  1130.     *huge*)
  1131.     case "$huge" in
  1132.     '') dflt='-Mh';;
  1133.     *) dflt="$huge";;
  1134.     esac
  1135.     rp="What flag indicates huge model? [$dflt]"
  1136.     $echo $n "$rp $c"
  1137.     . myread
  1138.     case "$ans" in
  1139.     none) ans='';
  1140.     esac
  1141.     huge="$ans"
  1142.     ;;
  1143.     *) huge="$large";;
  1144.     esac
  1145.     case "$model" in
  1146.     *medium*)
  1147.     case "$medium" in
  1148.     '') dflt='-Mm';;
  1149.     *) dflt="$medium";;
  1150.     esac
  1151.     rp="What flag indicates medium model? [$dflt]"
  1152.     $echo $n "$rp $c"
  1153.     . myread
  1154.     case "$ans" in
  1155.     none) ans='';
  1156.     esac
  1157.     medium="$ans"
  1158.     ;;
  1159.     *) medium="$large";;
  1160.     esac
  1161.     case "$model" in
  1162.     *small*)
  1163.     case "$small" in
  1164.     '') dflt='none';;
  1165.     *) dflt="$small";;
  1166.     esac
  1167.     rp="What flag indicates small model? [$dflt]"
  1168.     $echo $n "$rp $c"
  1169.     . myread
  1170.     case "$ans" in
  1171.     none) ans='';
  1172.     esac
  1173.     small="$ans"
  1174.     ;;
  1175.     *) small='';;
  1176.     esac
  1177.     ;;
  1178. *)
  1179.     echo "Unrecognized memory models--you may have to edit Makefile.SH"
  1180.     ;;
  1181. esac
  1182.  
  1183. case "$ccflags" in
  1184. '') dflt='none';;
  1185. *) dflt="$ccflags";;
  1186. esac
  1187. echo " "
  1188. rp="Any additional cc flags? [$dflt]"
  1189. $echo $n "$rp $c"
  1190. . myread
  1191. case "$ans" in
  1192. none) ans='';
  1193. esac
  1194. ccflags="$ans"
  1195.  
  1196. case "$ldflags" in
  1197. '') if venix; then
  1198.     dflt='-i -z'
  1199.     else
  1200.     dflt='none'
  1201.     fi
  1202.     ;;
  1203. *) dflt="$ldflags";;
  1204. esac
  1205. echo " "
  1206. rp="Any additional ld flags? [$dflt]"
  1207. $echo $n "$rp $c"
  1208. . myread
  1209. case "$ans" in
  1210. none) ans='';
  1211. esac
  1212. ldflags="$ans"
  1213.  
  1214. : see if we need a special compiler
  1215. echo " "
  1216. if usg; then
  1217.     case "$cc" in
  1218.     '')
  1219.     case "$Mcc" in
  1220.     /*) dflt='Mcc'
  1221.         ;;
  1222.     *)
  1223.         case "$large" in
  1224.         -M*)
  1225.         dflt='cc'
  1226.         ;;
  1227.         *)
  1228.         if $contains '\-M' $mansrc/cc.1 >/dev/null 2>&1 ; then
  1229.             dflt='cc -M'
  1230.         else
  1231.             dflt='cc'
  1232.         fi
  1233.         ;;
  1234.         esac
  1235.         ;;
  1236.     esac
  1237.     ;;
  1238.     *)  dflt="$cc";;
  1239.     esac
  1240.     $cat <<'EOM'
  1241.  
  1242. On some systems the default C compiler will not resolve multiple global
  1243. references that happen to have the same name.  On some such systems the
  1244. "Mcc" command may be used to force these to be resolved.  On other systems
  1245. a "cc -M" command is required.  (Note that the -M flag on other systems
  1246. indicates a memory model to use!)  What command will force resolution on
  1247. EOM
  1248.     $echo $n "this system? [$dflt] $c"
  1249.     rp="Command to resolve multiple refs? [$dflt]"
  1250.     . myread
  1251.     cc="$ans"
  1252. else
  1253.     echo "Not a USG system--assuming cc can resolve multiple definitions."
  1254.     cc=cc
  1255. fi
  1256.  
  1257. echo " "
  1258. echo "End of configuration questions."
  1259. echo " "
  1260.  
  1261. : create config.sh file
  1262. echo " "
  1263. if test -d ../UU; then
  1264.     cd ..
  1265. fi
  1266. echo "Creating config.sh..."
  1267. $spitshell <<EOT >config.sh
  1268. $startsh
  1269. # config.sh
  1270. # This file was produced by running the Configure script.
  1271.  
  1272. d_eunice='$d_eunice'
  1273. eunicefix='$eunicefix'
  1274. define='$define'
  1275. loclist='$loclist'
  1276. expr='$expr'
  1277. sed='$sed'
  1278. echo='$echo'
  1279. cat='$cat'
  1280. rm='$rm'
  1281. mv='$mv'
  1282. cp='$cp'
  1283. tail='$tail'
  1284. tr='$tr'
  1285. mkdir='$mkdir'
  1286. sort='$sort'
  1287. uniq='$uniq'
  1288. grep='$grep'
  1289. trylist='$trylist'
  1290. test='$test'
  1291. inews='$inews'
  1292. egrep='$egrep'
  1293. more='$more'
  1294. pg='$pg'
  1295. Mcc='$Mcc'
  1296. vi='$vi'
  1297. mailx='$mailx'
  1298. mail='$mail'
  1299. cpp='$cpp'
  1300. Log='$Log'
  1301. Header='$Header'
  1302. bin='$bin'
  1303. cc='$cc'
  1304. contains='$contains'
  1305. cppstdin='$cppstdin'
  1306. cppminus='$cppminus'
  1307. d_charsprf='$d_charsprf'
  1308. d_flexfnam='$d_flexfnam'
  1309. d_index='$d_index'
  1310. d_voidsig='$d_voidsig'
  1311. libc='$libc'
  1312. mansrc='$mansrc'
  1313. manext='$manext'
  1314. models='$models'
  1315. split='$split'
  1316. small='$small'
  1317. medium='$medium'
  1318. large='$large'
  1319. huge='$huge'
  1320. ccflags='$ccflags'
  1321. ldflags='$ldflags'
  1322. n='$n'
  1323. c='$c'
  1324. package='$package'
  1325. registers='$registers'
  1326. reg1='$reg1'
  1327. reg2='$reg2'
  1328. reg3='$reg3'
  1329. reg4='$reg4'
  1330. reg5='$reg5'
  1331. reg6='$reg6'
  1332. reg7='$reg7'
  1333. reg8='$reg8'
  1334. reg9='$reg9'
  1335. reg10='$reg10'
  1336. reg11='$reg11'
  1337. reg12='$reg12'
  1338. reg13='$reg13'
  1339. reg14='$reg14'
  1340. reg15='$reg15'
  1341. reg16='$reg16'
  1342. spitshell='$spitshell'
  1343. shsharp='$shsharp'
  1344. sharpbang='$sharpbang'
  1345. startsh='$startsh'
  1346. voidflags='$voidflags'
  1347. defvoidused='$defvoidused'
  1348. CONFIG=true
  1349. EOT
  1350.  
  1351. CONFIG=true
  1352.  
  1353. echo " "
  1354. dflt=''
  1355. fastread=''
  1356. echo "If you didn't make any mistakes, then just type a carriage return here."
  1357. rp="If you need to edit config.sh, do it as a shell escape here:"
  1358. $echo $n "$rp $c"
  1359. . UU/myread
  1360. case "$ans" in
  1361. '') ;;
  1362. *) : in case they cannot read
  1363.     eval $ans;;
  1364. esac
  1365. . ./config.sh
  1366.  
  1367. echo " "
  1368. echo "Doing variable substitutions on .SH files..."
  1369. set x `awk '{print $1}' <MANIFEST | $grep '\.SH'`
  1370. shift
  1371. case $# in
  1372. 0) set x *.SH; shift;;
  1373. esac
  1374. if test ! -f $1; then
  1375.     shift
  1376. fi
  1377. for file in $*; do
  1378.     case "$file" in
  1379.     */*)
  1380.     dir=`$expr X$file : 'X\(.*\)/'`
  1381.     file=`$expr X$file : 'X.*/\(.*\)'`
  1382.     (cd $dir && . $file)
  1383.     ;;
  1384.     *)
  1385.     . $file
  1386.     ;;
  1387.     esac
  1388. done
  1389. if test -f config.h.SH; then
  1390.     if test ! -f config.h; then
  1391.     : oops, they left it out of MANIFEST, probably, so do it anyway.
  1392.     . config.h.SH
  1393.     fi
  1394. fi
  1395.  
  1396. if $contains '^depend:' Makefile >/dev/null 2>&1; then
  1397.     dflt=n
  1398.     $cat <<EOM
  1399.  
  1400. Now you need to generate make dependencies by running "make depend".
  1401. You might prefer to run it in background: "make depend > makedepend.out &"
  1402. It can take a while, so you might not want to run it right now.
  1403.  
  1404. EOM
  1405.     rp="Run make depend now? [$dflt]"
  1406.     $echo $n "$rp $c"
  1407.     . UU/myread
  1408.     case "$ans" in
  1409.     y*) make depend
  1410.     echo "Now you must run a make."
  1411.     ;;
  1412.     *)  echo "You must run 'make depend' then 'make'."
  1413.     ;;
  1414.     esac
  1415. elif test -f Makefile; then
  1416.     echo " "
  1417.     echo "Now you must run a make."
  1418. else
  1419.     echo "Done."
  1420. fi
  1421.  
  1422. $rm -f kit*isdone
  1423. : the following is currently useless
  1424. cd UU && $rm -f $rmlist
  1425. : since this removes it all anyway
  1426. cd .. && $rm -rf UU
  1427. : end of Configure
  1428.