xref: /OK3568_Linux_fs/buildroot/package/fbv/0002-cross.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1diff -urpN fbv-1.0b.orig/configure fbv-1.0b/configure
2--- fbv-1.0b.orig/configure	2004-09-07 13:29:27.000000000 +0200
3+++ fbv-1.0b/configure	2008-04-24 10:52:37.000000000 +0200
4@@ -80,6 +80,7 @@ while true ; do
5 	esac
6 done
7
8+[ -z "$CC" ] && CC=cc
9 [ -z "$prefix" ] && prefix="/usr/local"
10 [ -z "$bindir" ] && bindir="${prefix}/bin"
11 [ -z "$mandir" ] && mandir="${prefix}/man"
12@@ -106,12 +107,12 @@ xdir="/usr/X11R6"
13 ungif="no"
14 echo "libungif check" >>./config.log
15 echo "  1st:" >>./config.log
16-cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif $libs
17+$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif $libs
18 if [ -e \$\$~test ]; then
19 	libs="-lungif $libs" ; ungif="yes"
20 else
21 	echo "  2nd: -lX11 -L$xdir/lib" >>./config.log
22-	cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif -lX11 -L$xdir/lib $libs
23+	$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif -lX11 -L$xdir/lib $libs
24 	if [ -e \$\$~test ]; then
25 	libs="-lungif -lX11 -L$xdir/lib $libs" ; ungif="yes"
26 	fi
27@@ -124,7 +125,7 @@ echo "libungif: $ungif" >> ./config.log
28 echo -n "checking for libjpeg presence... "
29 if [ "$jpeg" != "disabled" ]; then
30 jpeg="no"
31-cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -ljpeg $libs
32+$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -ljpeg $libs
33 if [ -e \$\$~test ]; then
34 	libs="-ljpeg $libs" ; jpeg="yes"
35 fi
36@@ -135,7 +136,7 @@ echo "libjpeg: $jpeg" >> ./config.log
37 echo -n "checking for libpng presence... "
38 if [ "$png" != "disabled" ]; then
39 png="no"
40-cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lpng $libs
41+$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lpng $libs
42 if [ -e \$\$~test ]; then
43 	libs="-lpng $libs" ; png="yes"
44 fi
45