6 echo No machine name given
12 echo constructing ${target} for $machine
13 fixincludes="${machine}"
21 fixincludes=fixinc.svr4
26 fixincludes=fixinc.svr4
31 fixincludes=fixinc.interix
35 alpha*-*-linux*libc1* | \
37 fixincludes=fixinc.wrap
42 fixincludes=fixinc.winnt
45 i?86-sequent-ptx* | i?86-sequent-sysv[34]*)
46 fixincludes=fixinc.ptx
50 arm-semi-aout | armel-semi-aout | \
51 arm-semi-aof | armel-semi-aof | \
61 i?86-moss-msdos* | i?86-*-moss* | \
64 i?86-*-pe | i?86-*-cygwin* | \
66 i?86-*-uwin* | i?86-*-msdosdjgpp* | \
67 mips-sgi-irix5cross64 | \
68 powerpc-*-eabiaix* | \
69 powerpc-*-eabisim* | \
72 powerpcle-*-eabisim* | \
74 powerpcle-*-winnt* | \
75 powerpcle-*-pe | powerpcle-*-cygwin* | \
76 thumb-*-coff* | thumbel-*-coff* )
81 # IF there is no include fixing,
82 # THEN create a no-op fixer and exit
84 if test -z "$fixincludes"
86 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
91 # IF the fixer is supplied in our source directory,
92 # THEN copy that into place
94 if test -f ${srcdir}/"${fixincludes}"
96 echo copying ${srcdir}/$fixincludes to ${target}
97 cp ${srcdir}/$fixincludes ${target}
102 # OK. We gotta make the thing.
103 # make and install either the binary or the default script
105 cmd="$MAKE SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\" install-bin"