3 vax*|i386|sun*|sparc*|m68_sysV_0|m68020|mantra|pmds4|m68k4)
7 m68_unisoft|m68k2|minixST|pmds)
15 *) trap "rm -f ws.c ws.o a.out t__" 0 1 2 3 15
20 printf("WS=%d ; PS=%d\n", (int)sizeof(int), (int)sizeof(char *));
24 if [ $TARGET_HOME = $UTIL_HOME ] && cc ws.c 2>/dev/null
26 : We can find out ourselves what the word-size and
27 : the pointer-size of the target machine is.
31 rm -f t__ a.out ws.[co]
33 : we will have to ask installer.
34 echo $E_FLAG "Please give the word-size of the target-machine (sizeof(int)) in bytes: [$WS] $E_SFX"
40 echo $E_FLAG "Please give the pointer-size of the target-machine (sizeof(char *)) in bytes: [$PS] $E_SFX"
52 TARGET_HOME = $TARGET_HOME
53 UTIL_HOME = $UTIL_HOME
55 # Machine independent part created?
56 DO_MACHINE_INDEP = $DO_MACHINE_INDEP
58 # Target machine, only needed for fast compilers
62 if [ $TARGET_HOME = $UTIL_HOME ]
64 if [ -f /bin/ranlib -o -f /usr/bin/ranlib -o -f /usr/ucb/ranlib ]
66 sed "s/^COPTIONS.*\$/COPTIONS=-O -D_EM_WSIZE=$WS -D_EM_PSIZE=$PS -D__${MACH}__/" < $FDIR/target_comp >> make_macros
68 sed -e "s/^COPTIONS.*\$/COPTIONS=-O -D_EM_WSIZE=$WS -D_EM_PSIZE=$PS -D__${MACH}__/" -e "s/^# RANLIB=:/RANLIB=:/" < $FDIR/target_comp >> make_macros
72 ed -s make_macros <<'EOF'
73 /cc-and-mkdep.sun/s/^..//
79 cat $FDIR/util_comp >> make_macros
82 1) sed -e "s/^COPTIONS.*\$/COPTIONS=-O -D_EM_WSIZE=$WS -D_EM_PSIZE=$PS -D__${MACH}__/" -e "/cc-and-mkdep.ack/s/^..//" -e "s/^CC=cc/CC=acc -m$ACM/" -e "s/^# AR=aal/AR=aal/" -e "s/^# RANLIB=:/RANLIB=:/" < $FDIR/target_comp >> make_macros
84 *) if [ -f /bin/ranlib -o -f /usr/bin/ranlib -o -f /usr/ucb/ranlib ]
86 sed "s/^COPTIONS.*\$/COPTIONS=-O -D_EM_WSIZE=$WS -D_EM_PSIZE=$PS -D__${MACH}__/" < $FDIR/target_comp >> make_macros
88 sed -e "s/^COPTIONS.*\$/COPTIONS=-O -D_EM_WSIZE=$WS -D_EM_PSIZE=$PS -D__${MACH}__/" -e "s/^# RANLIB=:/RANLIB=:/" < $FDIR/target_comp >> make_macros
92 sed "s/^#U/U/" < $FDIR/util_comp >> make_macros
95 cat $FDIR/lint_params >> make_macros
97 echo "A file called 'make_macros' has been created. This file defines some
98 'make' variables that parameterize all Makefiles in ACK. You may want
99 to check it before attempting to actually install ACK."
101 0) echo "In fact, this installation script does not know much about
102 your target machine, so expect some things to be wrong"