6 echo No machine name given
12 echo constructing
${target} for $machine
13 fixincludes
="${target}"
16 i
[34567]86-*-linux-gnu*)
21 fixincludes
=fixinc.svr4
24 i
[34567]86-*-sysv5* | \
26 i
[34567]86-*-solaris2.
[0-4] | \
27 powerpcle-
*-solaris2.
[0-4] | \
28 sparc-
*-solaris2.
[0-4] )
29 fixincludes
=fixinc.svr4
32 i
[34567]86-*-interix* | \
34 fixincludes
=fixinc.interix
38 alpha
*-*-linux-gnulibc1* | \
39 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-*-sco3.2v5
* | \
57 i
[34567]86-*-sco3.2v4
*)
58 fixincludes
=fixinc.sco
62 arm-semi-aout | armel-semi-aout | \
63 arm-semi-aof | armel-semi-aof | \
73 i
[34567]86-moss-msdos* | i
[34567]86-*-moss* | \
74 i
[34567]86-*-osf1* | \
75 i
[34567]86-*-win32 | \
76 i
[34567]86-*-pe | i
[34567]86-*-cygwin* | \
77 i
[34567]86-*-mingw32* | \
78 i
[34567]86-*-uwin* | \
79 mips-sgi-irix5cross64 | \
80 powerpc-
*-eabiaix* | \
81 powerpc-
*-eabisim* | \
84 powerpcle-
*-eabisim* | \
86 powerpcle-
*-winnt* | \
87 powerpcle-
*-pe | powerpcle-
*-cygwin* | \
88 thumb-
*-coff* | thumbel-
*-coff* )
93 fixincludes
=fixinc.irix
97 # IF there is no include fixing,
98 # THEN create a no-op fixer and exit
100 if test -z "$fixincludes"
102 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
107 # IF the fixer is supplied in our source directory,
108 # THEN copy that into place
110 if test -f ${srcdir}/"${fixincludes}"
112 echo copying
${srcdir}/$fixincludes to
${target}
113 cp ${srcdir}/$fixincludes ${target}
118 # OK. We gotta make the thing.
120 echo $MAKE SHELL
=\"$SHELL\" install
122 # make and install either the binary or the default script
124 $MAKE SHELL
="$SHELL" install && chmod 755 ${target} && exit 0
126 # Where is our inclhack script? That is the backup
127 # in case we are unable to make a working binary.
129 if test -f .
/inclhack.sh
131 INCLHACK
=.
/inclhack.sh
133 INCLHACK
=${srcdir}/inclhack.sh
136 echo Could not
install binary fixincludes.
137 echo Installing shell
script instead.
139 cp ${INCLHACK} ${target}