]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/sqlite/sqlite3-3.2.2/cross-compile.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / sqlite / sqlite3-3.2.2 / cross-compile.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 Index: sqlite-3.2.1/configure.ac
7 ===================================================================
8 --- sqlite-3.2.1.orig/configure.ac      2005-03-23 17:08:39.000000000 +0100
9 +++ sqlite-3.2.1/configure.ac   2005-04-25 23:02:40.000000000 +0200
10 @@ -186,10 +186,11 @@
11  default_build_cflags="-g"
12  if test "$config_BUILD_CC" = ""; then
13    AC_PROG_CC
14 -  if test "$cross_compiling" = "yes"; then
15 -    AC_MSG_ERROR([unable to find a compiler for building build tools])
16 -  fi
17 -  BUILD_CC=$CC
18 +#  if test "$cross_compiling" = "yes"; then
19 +#    AC_MSG_ERROR([unable to find a compiler for building build tools])
20 +#  fi
21 +#  BUILD_CC=$CC
22 +  BUILD_CC=gcc
23    default_build_cflags=$CFLAGS
24  else
25    BUILD_CC=$config_BUILD_CC
26 @@ -539,55 +540,14 @@
27  # Figure out what C libraries are required to compile programs
28  # that use "readline()" library.
29  #
30 -if test "$config_TARGET_READLINE_LIBS" != ""; then
31 -  TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
32 -else
33 -  CC=$TARGET_CC
34 -  LIBS=""
35 -  AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap])
36 -  AC_CHECK_LIB([readline], [readline])
37 -  TARGET_READLINE_LIBS="$LIBS"
38 -fi
39 +TARGET_READLINE_LIBS="-lreadline"
40  AC_SUBST(TARGET_READLINE_LIBS)
41  
42  ##########
43  # Figure out where to get the READLINE header files.
44  #
45 -AC_MSG_CHECKING([readline header files])
46 -found=no
47 -if test "$config_TARGET_READLINE_INC" != ""; then
48 -  TARGET_READLINE_INC=$config_TARGET_READLINE_INC
49 -  found=yes
50 -fi
51 -if test "$found" = "yes"; then
52 -  AC_MSG_RESULT($TARGET_READLINE_INC)
53 -else
54 -  AC_MSG_RESULT(not specified: still searching...)
55 -  AC_CHECK_HEADER(readline.h, [found=yes])
56 -fi
57 -if test "$found" = "no"; then
58 -  for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
59 -    AC_CHECK_FILE($dir/include/readline.h, found=yes)
60 -    if test "$found" = "yes"; then
61 -      TARGET_READLINE_INC="-I$dir/include"
62 -      break
63 -    fi
64 -    AC_CHECK_FILE($dir/include/readline/readline.h, found=yes)
65 -    if test "$found" = "yes"; then
66 -      TARGET_READLINE_INC="-I$dir/include/readline"
67 -      break
68 -    fi
69 -  done
70 -fi
71 -if test "$found" = "yes"; then
72 -  if test "$TARGET_READLINE_LIBS" = ""; then
73 -    TARGET_HAVE_READLINE=0
74 -  else
75 -    TARGET_HAVE_READLINE=1
76 -  fi
77 -else
78 -  TARGET_HAVE_READLINE=0
79 -fi
80 +TARGET_READLINE_INC=""
81 +TARGET_HAVE_READLINE=1
82  AC_SUBST(TARGET_READLINE_INC)
83  AC_SUBST(TARGET_HAVE_READLINE)
84