Artifact 48cb1a120142eef654667f7f40b9fd7d38bdb636:
- File tk/patchscripts/xmkmf-donotuse.sh — part of check-in [2539bf269d] at 2014-05-27 13:44:15 on branch trunk — Updated to create a fake "xmkmf" when cross-compiling (user: rkeene, size: 437) [annotate] [blame] [check-ins using]
#! /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