Check-in [2539bf269d]
Overview
SHA1:2539bf269d42692d36a1d92e2a6fe29f350ad7d8
Date: 2014-05-27 13:44:15
User: rkeene
Comment:Updated to create a fake "xmkmf" when cross-compiling
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2014-05-27
14:20
[f49c630023] Added support for a manual knob (KC_CROSSCOMPILE) for determing whether fake xmkmf wrapper is used (user: rkeene, tags: trunk)
13:44
[2539bf269d] Updated to create a fake "xmkmf" when cross-compiling (user: rkeene, tags: trunk)
2014-05-22
17:02
[8b2ac4d64e] Upgraded to tcc4tcl 0.14 (user: rkeene, tags: trunk)
Changes

Modified tk/build.sh from [cdaaafe15a] to [b4a36c92da].

145
146
147
148
149
150
151






152
153
154
155
156
157
158
			echo "Running patch script: ${patchscript}"
                                
			(
				. "${patchscript}"
			)
		fi
	done







	for dir in "${TCLCONFIGDIRTAIL}" unix win macosx win64 __fail__; do
		if [ -z "${dir}" ]; then
			continue
		fi

		if [ "${dir}" = "__fail__" ]; then







>
>
>
>
>
>







145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
			echo "Running patch script: ${patchscript}"
                                
			(
				. "${patchscript}"
			)
		fi
	done

	# Allow wrapper programs to supplant real programs
	if [ -d 'fake-bin' ]; then
		PATH="$(pwd)/fake-bin:${PATH}"
		export PATH
	fi

	for dir in "${TCLCONFIGDIRTAIL}" unix win macosx win64 __fail__; do
		if [ -z "${dir}" ]; then
			continue
		fi

		if [ "${dir}" = "__fail__" ]; then

Added tk/patchscripts/xmkmf-donotuse.sh version [48cb1a1201].

















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/bash

# If we are not cross-compiling then don't worry about replacing "xmkmf" with a wrapper
if [ -z "${CC}" ]; then
	exit 0
fi

case "$(basename "${CC}")" in
	*-*-*)
		;;
	*)
		exit 0
esac

# Create an "xmkmf" wrapper which exits in failure so that autoconf will try
# to locate headers/libraries normally
mkdir fake-bin >/dev/null 2>/dev/null

cat << \_EOF_ > fake-bin/xmkmf
#! /bin/bash
exit 1
_EOF_

chmod +x fake-bin/xmkmf