939ca610b8bc5c4cbdbff96a8a90c806a50ae83f
[openwrt/svn-archive/archive.git] / libs / freetype / patches / 001-fix_broken_unix_cross.patch
1 diff -ruN freetype-2.3.1-original/builds/unix/configure freetype-2.3.1/builds/unix/configure
2 --- freetype-2.3.1-original/builds/unix/configure 2007-05-15 18:51:19.000000000 +0200
3 +++ freetype-2.3.1/builds/unix/configure 2007-05-15 18:53:02.000000000 +0200
4 @@ -3270,7 +3270,7 @@
5 test -z "$as_dir" && as_dir=.
6 for ac_exec_ext in '' $ac_executable_extensions; do
7 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8 - ac_cv_prog_CC_BUILD="${build-gcc}"
9 + ac_cv_prog_CC_BUILD="${build}-gcc"
10 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11 break 2
12 fi
13 diff -ruN freetype-2.3.1-original/builds/unix/configure.ac freetype-2.3.1/builds/unix/configure.ac
14 --- freetype-2.3.1-original/builds/unix/configure.ac 2007-05-15 18:51:19.000000000 +0200
15 +++ freetype-2.3.1/builds/unix/configure.ac 2007-05-15 18:53:25.000000000 +0200
16 @@ -40,7 +40,7 @@
17 # checks for native programs to generate building tool
18
19 if test ${cross_compiling} = yes; then
20 - AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build-gcc})
21 + AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc)
22 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc)
23 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc)
24 test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler])
25 diff -ruN freetype-2.3.1-original/builds/unix/configure.raw freetype-2.3.1/builds/unix/configure.raw
26 --- freetype-2.3.1-original/builds/unix/configure.raw 2007-05-15 18:51:19.000000000 +0200
27 +++ freetype-2.3.1/builds/unix/configure.raw 2007-05-15 18:54:07.000000000 +0200
28 @@ -40,7 +40,7 @@
29 # checks for native programs to generate building tool
30
31 if test ${cross_compiling} = yes; then
32 - AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build-gcc})
33 + AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc)
34 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc)
35 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc)
36 test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler])