limit_enquire 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. while :
  2. do
  3. echo "The libraries will end up in the machine-independent part of the
  4. ACK binary tree. You may already have them from a previous ACK installation
  5. on a different machine, in particular if you have an NFS file system.
  6. Therefore, it may not be neccessary to install them again. As this part
  7. of the ACK installation takes the most time, you are given the opportunity
  8. to disable installation of the machine-independent part"
  9. echo $E_FLAG \
  10. "Do you want to install the machine-independent part? (y/n) [$DO_MACHINE_INDEP] $E_SFX"
  11. . $FDIR/get_answer
  12. case $ANS in
  13. '') ANS="$DO_MACHINE_INDEP" ;;
  14. esac
  15. case X$ANS in
  16. Xj*|Xy*|X) DO_MACHINE_INDEP=y
  17. echo "machine-independent part will be installed"
  18. echo
  19. break
  20. ;;
  21. Xn*) DO_MACHINE_INDEP=n
  22. echo "machine-independent part will not be installed"
  23. echo
  24. break
  25. ;;
  26. *) echo "I do not understand your answer ($ANS). Try again."
  27. ;;
  28. esac
  29. done
  30. OLD_DIS_LANG="$DISABLE_LANG"
  31. DISABLE_LANG=
  32. case X$OLD_DIS_LANG in
  33. X) ;;
  34. *) set $OLD_DIS_LANG
  35. ;;
  36. esac
  37. for i in Modula-2 Pascal Occam Basic ANSI-C C Fortran
  38. do
  39. DEF=y
  40. if [ $# != 0 -a X$i = X$1 ]
  41. then
  42. DEF=n
  43. shift
  44. fi
  45. while :
  46. do
  47. echo $E_FLAG "Do you want to install $i? (y/n) [$DEF] $E_SFX"
  48. . $FDIR/get_answer
  49. case $ANS in
  50. '') ANS="$DEF";;
  51. esac
  52. case X$ANS in
  53. Xj*|Xy*)
  54. echo "$i will be installed"
  55. echo
  56. break
  57. ;;
  58. Xn*) DISABLE_LANG=$DISABLE_LANG" $i"
  59. echo "$i will not be installed"
  60. echo
  61. break
  62. ;;
  63. *) echo "I do not understand your answer ($ANS). Try again."
  64. ;;
  65. esac
  66. done
  67. done
  68. OLD_DIS_SUP="$DISABLE_SUP"
  69. DISABLE_SUP=
  70. set $MACH_LIST
  71. while test $# != 0
  72. do
  73. DEF=y
  74. for i in $OLD_DIS_SUP
  75. do
  76. if [ X$i = X$1 ]
  77. then
  78. DEF=n
  79. break
  80. fi
  81. done
  82. while :
  83. do
  84. case $1 in
  85. i86) echo "not installing i86 will disable installation of xenix3 and minix."
  86. ;;
  87. m68k2) echo "not installing m68k2 will disable installation of pmds, minixST,
  88. m68k4, pmds4, sun2, and mantra."
  89. ;;
  90. m68k4) echo "not installing m68k4 will disable installation of pmds4, sun2, and mantra."
  91. ;;
  92. m68020) echo "not installing m68020 will disable installation of sun3."
  93. ;;
  94. esac
  95. echo $E_FLAG "Do you want to install the $1 support? (y/n) [$DEF] $E_SFX"
  96. . $FDIR/get_answer
  97. case $ANS in
  98. '') ANS="$DEF";;
  99. esac
  100. case X$ANS in
  101. Xj*|Xy*)
  102. echo "The $1 support will be installed"
  103. echo
  104. case $1 in
  105. vax4) case $SYSNAME in
  106. vax_bsd4_1a) SYSVAX=libbsd4_1a
  107. ;;
  108. vax_bsd4_2) SYSVAX=libbsd4_2
  109. ;;
  110. vax_sysV_2) SYSVAX=libsysV_2
  111. ;;
  112. *) if [ $DO_MACHINE_INDEP = y ]
  113. then
  114. . $FDIR/get_sysvax
  115. fi
  116. ;;
  117. esac
  118. ;;
  119. sparc) shift
  120. ;;
  121. esac
  122. break
  123. ;;
  124. Xn*) DISABLE_SUP=$DISABLE_SUP" $1"
  125. echo "The $1 support will not be installed"
  126. echo
  127. case $1 in
  128. i86)
  129. shift
  130. DISABLE_SUP=$DISABLE_SUP" $1"
  131. shift
  132. DISABLE_SUP=$DISABLE_SUP" $1"
  133. ;;
  134. m68k2)
  135. shift
  136. DISABLE_SUP=$DISABLE_SUP" $1"
  137. shift
  138. DISABLE_SUP=$DISABLE_SUP" $1"
  139. shift
  140. DISABLE_SUP=$DISABLE_SUP" $1"
  141. shift
  142. DISABLE_SUP=$DISABLE_SUP" $1"
  143. shift
  144. DISABLE_SUP=$DISABLE_SUP" $1"
  145. shift
  146. DISABLE_SUP=$DISABLE_SUP" $1"
  147. ;;
  148. m68k4)
  149. shift
  150. DISABLE_SUP=$DISABLE_SUP" $1"
  151. shift
  152. DISABLE_SUP=$DISABLE_SUP" $1"
  153. shift
  154. DISABLE_SUP=$DISABLE_SUP" $1"
  155. ;;
  156. sparc)
  157. shift
  158. DISABLE_SUP=$DISABLE_SUP" $1"
  159. ;;
  160. m68020)
  161. shift
  162. DISABLE_SUP=$DISABLE_SUP" $1"
  163. ;;
  164. esac
  165. break
  166. ;;
  167. *) echo "I do not understand your answer ($ANS). Try again."
  168. ;;
  169. esac
  170. done
  171. shift
  172. done
  173. if [ $TARGET_HOME = $UTIL_HOME ]
  174. then
  175. case $ACM in
  176. sun3|m68020|i386|vax*)
  177. while :
  178. do
  179. echo $E_FLAG "Do you want to install the fast compilers? (y/n) [$DO_FAST] $E_SFX"
  180. . $FDIR/get_answer
  181. case $ANS in
  182. '') ANS="$DO_FAST" ;;
  183. esac
  184. case X$ANS in
  185. Xj*|Xy*)
  186. DO_FAST=y
  187. echo "The fast compilers will be installed"
  188. break
  189. ;;
  190. Xn*)
  191. DO_FAST=n
  192. echo "The fast compilers will not be installed"
  193. break
  194. ;;
  195. *) echo "I do not understand your answer ($ANS). Try again."
  196. ;;
  197. esac
  198. done
  199. ;;
  200. *)
  201. DO_FAST=n
  202. ;;
  203. esac
  204. else
  205. DO_FAST=n
  206. fi