Check-in [f49c630023]
Overview
Comment:Added support for a manual knob (KC_CROSSCOMPILE) for determing whether fake xmkmf wrapper is used
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f49c6300237a833abd4d77df8ef74adeabb6822a
User & Date: rkeene on 2014-05-27 14:20:39
Other Links: manifest | tags
Context
2014-05-29
05:15
Added script to remove "fixstrtod" in Tk check-in: abc83d3b1d user: rkeene tags: trunk
2014-05-27
14:20
Added support for a manual knob (KC_CROSSCOMPILE) for determing whether fake xmkmf wrapper is used check-in: f49c630023 user: rkeene tags: trunk
13:44
Updated to create a fake "xmkmf" when cross-compiling check-in: 2539bf269d user: rkeene tags: trunk
Changes

Modified tk/patchscripts/xmkmf-donotuse.sh from [48cb1a1201] to [7f8d7b27ab].

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



>
>
|
|
|

|
|
|
|
|
|
>
>
>
>
>
>
>
>











1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/bash

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

	case "$(basename "${CC}")" in
		*-*-*)
			;;
		*)
			exit 0
	esac
else
	## If KC_CROSSCOMPILE was specified as 0, we are not cross-compiling
	if [ "${KC_CROSSCOMPILE}" = '0' ]; then
		exit 0
	fi

	## Otherwise, we are cross-compiling
fi

# 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