mk_config
mk_makefile
mk_target
-myecho.c
target_comp
util_comp
first) FDIR=.
;;
esac
+
+if echo 'a\c' | grep 'c' >/dev/null ; then
+ E_FLAG='-n' E_SFX='' : We have BSD-like echo command.
+else
+ E_FLAG='' E_SFX='\c' : We have SystemV-like echo command.
+fi
+export E_FLAG E_SFX
+
echo check write-ability of /tmp and /usr/tmp ...
if ( >/usr/tmp/aaax.$$ )
then
fi
echo "/tmp and /usr/tmp ok"
-if [ -f echo ]
-then :
-else
-echo compile own echo program, so that we know how it works ...
-if cc -o echo $FDIR/myecho.c > /dev/null 2>&1
-then
- echo compilation succeeded
-else
- echo "Sorry, cc does not seem to work"
- exit 8
-fi
-fi
-
if [ -f macros ]
then
. macros
done
ACM=$OLDACM
echo $l
- ./echo -n "Your choice: [$OLDACM] "
+ echo $E_FLAG "Your choice: [$OLDACM] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$ACM";;
BSD4_1 for Berkeley 4.1
BSD4_2 for Berkeley 4.2, 4.3, SunOS
SYS_5 for Xenix, System III, System V'
- ./echo -n "Your choice (V7|BSD4_1|BSD4_2|SYS_5): [$OLDSYS] "
+ echo $E_FLAG "Your choice (V7|BSD4_1|BSD4_2|SYS_5): [$OLDSYS] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$SYS";;
prompted for details"
while :
do
- ./echo -n "Do you want to limit the installation in any way? (y/n) [$LIMIT] "
+ echo $E_FLAG "Do you want to limit the installation in any way? (y/n) [$LIMIT] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$LIMIT";;
echo "MACH=\"$MACH\"; export MACH" >> macros
echo "WS=\"$WS\"; export WS" >> macros
echo "PS=\"$PS\"; export PS" >> macros
+echo "DO_FAST=\"$DO_FAST\"; export DO_FAST" >> macros
cat macros $FDIR/install_tail > INSTALL
chmod +x INSTALL
rm -f t$$ a.out ws.[co]
else
: we will have to ask installer.
- ./echo -n "Please give the word-size of the target-machine (sizeof(int)) in bytes: [$WS] "
+ echo $E_FLAG "Please give the word-size of the target-machine (sizeof(int)) in bytes: [$WS] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$WS";;
esac
WS="$ANS"
- ./echo -n "Please give the pointer-size of the target-machine (sizeof(char *)) in bytes: [$PS] "
+ echo $E_FLAG "Please give the pointer-size of the target-machine (sizeof(char *)) in bytes: [$PS] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$PS";;
"
while :
do
- ./echo -n "Please give the root of the ACK source tree,
-an absolute path: [$SRC_HOME] "
+ echo $E_FLAG "Please give the root of the ACK source tree,
+an absolute path: [$SRC_HOME] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$SRC_HOME" ;;
"
while :
do
- ./echo -n "Please give the root of the configuration tree,
-an absolute path: [$CONFIG] "
+ echo $E_FLAG "Please give the root of the configuration tree,
+an absolute path: [$CONFIG] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$CONFIG";;
"
while :
do
- ./echo -n "Please give the root of the ACK binaries,
-an absolute path: [$TARGET_HOME] "
+ echo $E_FLAG "Please give the root of the ACK binaries,
+an absolute path: [$TARGET_HOME] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$TARGET_HOME";;
sparc SUN SPARC workstation
ANY Neither of the above
"
-./echo -n "system type: [$SYSNAME] "
+echo $E_FLAG "system type: [$SYSNAME] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$SYSNAME";;
while :
do
-./echo -n "Is this the system you are running on? (y/n) [$CURRENT] "
+echo $E_FLAG "Is this the system you are running on? (y/n) [$CURRENT] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$CURRENT";;
"
while :
do
- ./echo -n "Please give the root of a runnable ACK tree,
-an absolute path: [$UTIL_HOME] "
+ echo $E_FLAG "Please give the root of a runnable ACK tree,
+an absolute path: [$UTIL_HOME] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$UTIL_HOME" ;;
and the root of a runnable ACK binary tree is $UTIL_HOME.
If the machine to compile ACK for is the current machine, the last two names
may be identical."
-./echo -n "Are you satisfied with all this? (y/n) "
+echo $E_FLAG "Are you satisfied with all this? (y/n) $E_SFX"
. $FDIR/get_answer
case X$ANS in
Xj*|Xy*|X) break
while :
do
- ./echo -n "Which system-call library do you want to install for the VAX?
+ echo $E_FLAG "Which system-call library do you want to install for the VAX?
You can choose between
libbsd4_1a for Berkeley Unix 4.1
libbsd4_2 for Berkeley Unix 4.2 or newer, or Ultrix
libsysV_2 for Unix System V
-Your choice: [$SYSVAX] "
+Your choice: [$SYSVAX] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$SYSVAX";;
Therefore, it may not be neccessary to install them again. As this part
of the ACK installation takes the most time, you are given the opportunity
to disable installation of the machine-independent part"
- ./echo -n "Do you want to install the machine-independent part? (y/n) [$DO_MACHINE_INDEP] "
+ echo $E_FLAG \
+ "Do you want to install the machine-independent part? (y/n) [$DO_MACHINE_INDEP] $E_SFX"
. $FDIR/get_answer
case $ANS in
'') ANS="$DO_MACHINE_INDEP" ;;
echo
break
;;
- *) ./echo "I do not understand your answer ($ANS). Try again."
+ *) echo "I do not understand your answer ($ANS). Try again."
;;
esac
done
do
while :
do
- ./echo -n "Do you want to install $i? (y/n) "
+ echo $E_FLAG "Do you want to install $i? (y/n) $E_SFX"
. $FDIR/get_answer
case X$ANS in
Xj*|Xy*|X)
m68020) echo "not installing m68020 will disable installation of sun3."
;;
esac
- ./echo -n "Do you want to install the $1 support? (y/n) "
+ echo $E_FLAG "Do you want to install the $1 support? (y/n) $E_SFX"
. $FDIR/get_answer
case X$ANS in
Xj*|Xy*|X)
esac
break
;;
- *) ./echo "I do not understand your answer ($ANS). Try again."
+ *) echo "I do not understand your answer ($ANS). Try again."
;;
esac
done
shift
done
+
+if [ $TARGET_HOME = $UTIL_HOME ]
+then
+ case $ACM in
+ sun3|m68020|i386|vax*)
+ while :
+ do
+ echo $E_FLAG "Do you want to install the fast compilers? (y/n) [$DO_FAST] $E_SFX"
+ . $FDIR/get_answer
+ case $ANS in
+ '') ANS="$DO_FAST" ;;
+ esac
+ case X$ANS in
+ Xj*|Xy*|X)
+ DO_FAST=y
+ echo "The fast compilers will be installed"
+ break
+ ;;
+ Xn*)
+ DO_FAST=n
+ echo "The fast compilers will not be installed"
+ break
+ ;;
+ *) echo "I do not understand your answer ($ANS). Try again."
+ ;;
+ esac
+ done
+ ;;
+ *)
+ DO_FAST=n
+ ;;
+ esac
+else
+ DO_FAST=n
+fi
done
done
fi
+
+if [ $DO_FAST = n ]
+then
+ ed - $CONFIG/Action <<'EOF'
+/^name "Fast/;$s/^/!/
+w
+q
+EOF
+fi
fi
cd ../..
fi
- for j in libem libend libmon libfp libsys libdb libce
+ for j in libem libend libmon libfp libsys libdb
do
if [ -d $i/$j ]
then