6 echo No machine name given
12 echo constructing ${target} for $machine
13 fixincludes="${target}"
16 i[34567]86-*-linux-gnu*)
17 fixincludes=fixinc.x86-linux-gnu
21 fixincludes=fixinc.svr4
28 i[34567]86-*-sysv5* | \
30 i[34567]86-*-solaris2.[0-4] | \
31 powerpcle-*-solaris2.[0-4] | \
32 sparc-*-solaris2.[0-4] )
33 fixincludes=fixinc.svr4
37 alpha*-*-linux-gnulibc1* | \
38 i[34567]86-*-freebsd* | \
39 i[34567]86-*-netbsd* | i[34567]86-*-openbsd* | \
40 i[34567]86-*-solaris2* | \
41 sparcv9-*-solaris2* | \
42 powerpcle-*-solaris2* | \
44 fixincludes=fixinc.wrap
49 fixincludes=fixinc.winnt
52 i[34567]86-sequent-ptx* | i[34567]86-sequent-sysv[34]*)
53 fixincludes=fixinc.ptx
56 i[34567]86-dg-dgux* | \
58 fixincludes=fixinc.dgux
61 i[34567]86-*-sco3.2v5* | \
62 i[34567]86-*-sco3.2v4*)
63 fixincludes=fixinc.sco
66 alpha*-*-linux-gnu* | \
68 arm-semi-aout | armel-semi-aout | \
69 arm-semi-aof | armel-semi-aof | \
78 i[34567]86-moss-msdos* | i[34567]86-*-moss* | \
79 i[34567]86-*-osf1* | \
80 i[34567]86-*-win32 | \
81 i[34567]86-*-pe | i[34567]86-*-cygwin* | \
82 i[34567]86-*-mingw32* | \
83 mips-sgi-irix5cross64 | \
84 powerpc-*-eabiaix* | \
85 powerpc-*-eabisim* | \
88 powerpcle-*-eabisim* | \
90 powerpcle-*-winnt* | \
91 powerpcle-*-pe | powerpcle-*-cygwin* | \
92 thumb-*-coff* | thumbel-*-coff* )
97 fixincludes=fixinc.irix
101 # IF there is no include fixing,
102 # THEN create a no-op fixer and exit
104 if test -z "$fixincludes"
106 cat > ${target} <<- _EOF_
113 # IF the fixer is supplied in our source directory,
114 # THEN copy that into place
116 if test -f ${srcdir}/"${fixincludes}"
118 echo copying ${srcdir}/$fixincludes to ${target}
119 cp ${srcdir}/$fixincludes ${target}
123 # OK. We gotta make the thing.
125 echo $MAKE SHELL=\"$SHELL\" install
127 # make and install either the binary or the default script
129 $MAKE SHELL="$SHELL" install && exit 0
131 # Where is our inclhack script? That is the backup
132 # in case we are unable to make a working binary.
134 if test -f ./inclhack.sh
136 INCLHACK=./inclhack.sh
138 INCLHACK=${srcdir}/inclhack.sh
141 echo Could not install binary fixincludes.
142 echo Installing shell script instead.
144 cp ${INCLHACK} ${target}