0002-cross.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. diff -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. +[ -z "$CC" ] && CC=cc
  8. [ -z "$prefix" ] && prefix="/usr/local"
  9. [ -z "$bindir" ] && bindir="${prefix}/bin"
  10. [ -z "$mandir" ] && mandir="${prefix}/man"
  11. @@ -106,12 +107,12 @@ xdir="/usr/X11R6"
  12. ungif="no"
  13. echo "libungif check" >>./config.log
  14. echo " 1st:" >>./config.log
  15. -cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif $libs
  16. +$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif $libs
  17. if [ -e \$\$~test ]; then
  18. libs="-lungif $libs" ; ungif="yes"
  19. else
  20. echo " 2nd: -lX11 -L$xdir/lib" >>./config.log
  21. - cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif -lX11 -L$xdir/lib $libs
  22. + $CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif -lX11 -L$xdir/lib $libs
  23. if [ -e \$\$~test ]; then
  24. libs="-lungif -lX11 -L$xdir/lib $libs" ; ungif="yes"
  25. fi
  26. @@ -124,7 +125,7 @@ echo "libungif: $ungif" >> ./config.log
  27. echo -n "checking for libjpeg presence... "
  28. if [ "$jpeg" != "disabled" ]; then
  29. jpeg="no"
  30. -cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -ljpeg $libs
  31. +$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -ljpeg $libs
  32. if [ -e \$\$~test ]; then
  33. libs="-ljpeg $libs" ; jpeg="yes"
  34. fi
  35. @@ -135,7 +136,7 @@ echo "libjpeg: $jpeg" >> ./config.log
  36. echo -n "checking for libpng presence... "
  37. if [ "$png" != "disabled" ]; then
  38. png="no"
  39. -cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lpng $libs
  40. +$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lpng $libs
  41. if [ -e \$\$~test ]; then
  42. libs="-lpng $libs" ; png="yes"
  43. fi