Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 89530 | Differences between
and this patch

Collapse All | Expand All

(-)popt-1.7-r2/config.guess (-4 / +24 lines)
Lines 776-785 Link Here
776
	echo ${UNAME_MACHINE}-unknown-linux-gnu
776
	echo ${UNAME_MACHINE}-unknown-linux-gnu
777
	exit 0 ;;
777
	exit 0 ;;
778
    mips:Linux:*:*)
778
    mips:Linux:*:*)
779
	case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
779
# doesn't work from 2.4.20 onwards, remove from cpuinfo
780
	  big)    echo mips-unknown-linux-gnu && exit 0 ;;
780
#	case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
781
	  little) echo mipsel-unknown-linux-gnu && exit 0 ;;
781
#	  big)    echo mips-unknown-linux-gnu && exit 0 ;;
782
	esac
782
#	  little) echo mipsel-unknown-linux-gnu && exit 0 ;;
783
# stolen from sudo patch by: martin schulze (joey@infodrom.org)
784
#	esac
785
786
        eval $set_cc_for_build
787
        sed 's/^        //' << EOF > $dummy.c
788
        #undef CPU
789
        #undef mips
790
        #undef mipsel
791
        if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
792
        CPU=mipsel
793
        #else
794
        #if defined(_MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
795
        CPU=mips
796
        #else
797
        CPU=
798
        #endif
799
        #endif
800
EOF
801
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
802
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0	
783
	;;
803
	;;
784
    ppc:Linux:*:*)
804
    ppc:Linux:*:*)
785
	echo powerpc-unknown-linux-gnu
805
	echo powerpc-unknown-linux-gnu

Return to bug 89530