3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- sqlite/configure.ac~crosscompile 2003-12-22 15:29:33.000000000 +0100
7 +++ sqlite/configure.ac 2004-01-14 01:03:08.000000000 +0100
9 default_build_cflags="-g"
10 if test "$config_BUILD_CC" = ""; then
12 - if test "$cross_compiling" = "yes"; then
13 - AC_MSG_ERROR([unable to find a compiler for building build tools])
16 +# if test "$cross_compiling" = "yes"; then
17 +# AC_MSG_ERROR([unable to find a compiler for building build tools])
20 default_build_cflags=$CFLAGS
22 BUILD_CC=$config_BUILD_CC
23 @@ -417,120 +417,14 @@
28 -# Figure out what C libraries are required to compile Tcl programs.
30 -if test "$config_TARGET_TCL_LIBS" != ""; then
31 - TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
33 - if test "$with_tcl" != ""; then
34 - extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
37 - AC_CHECK_FUNC(sin, LIBS="", LIBS="-lm")
38 - AC_CHECK_LIB(dl, dlopen)
40 - if test "$extra" != ""; then
44 - AC_SEARCH_LIBS(Tcl_Init, dnl
45 - tcl8.4 tcl8.3 tcl84 tcl83 tcl,,,$otherlibs)
47 - TARGET_TCL_LIBS="$LIBS $otherlibs"
49 -AC_SUBST(TARGET_TCL_LIBS)
52 -# Figure out where to get the TCL header files.
54 -AC_MSG_CHECKING([TCL header files])
56 -if test "$config_TARGET_TCL_INC" != ""; then
57 - TARGET_TCL_INC=$config_TARGET_TCL_INC
60 - if test "$with_tcl" != ""; then
61 - TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
68 -if test "$found" = "yes"; then
69 - AC_MSG_RESULT($TARGET_TCL_INC)
71 - AC_MSG_RESULT(not specified: still searching...)
72 - AC_CHECK_HEADER(tcl.h, [found=yes])
74 -if test "$found" = "no"; then
75 - for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
76 - AC_CHECK_FILE($dir/include/tcl.h, found=yes)
77 - if test "$found" = "yes"; then
78 - TARGET_TCL_INC="-I$dir/include"
83 -if test "$found" = "no"; then
84 - TARGET_TCL_INC="-DNO_TCL=1"
86 +TARGET_TCL_INC="-DNO_TCL=1"
87 AC_SUBST(TARGET_TCL_INC)
90 -# Figure out what C libraries are required to compile programs
91 -# that use "readline()" library.
93 -if test "$config_TARGET_READLINE_LIBS" != ""; then
94 - TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
98 - AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap])
99 - AC_CHECK_LIB([readline], [readline])
100 - TARGET_READLINE_LIBS="$LIBS"
102 +TARGET_READLINE_LIBS="-lreadline"
103 AC_SUBST(TARGET_READLINE_LIBS)
106 -# Figure out where to get the READLINE header files.
108 -AC_MSG_CHECKING([readline header files])
110 -if test "$config_TARGET_READLINE_INC" != ""; then
111 - TARGET_READLINE_INC=$config_TARGET_READLINE_INC
114 -if test "$found" = "yes"; then
115 - AC_MSG_RESULT($TARGET_READLINE_INC)
117 - AC_MSG_RESULT(not specified: still searching...)
118 - AC_CHECK_HEADER(readline.h, [found=yes])
120 -if test "$found" = "no"; then
121 - for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
122 - AC_CHECK_FILE($dir/include/readline.h, found=yes)
123 - if test "$found" = "yes"; then
124 - TARGET_READLINE_INC="-I$dir/include"
127 - AC_CHECK_FILE($dir/include/readline/readline.h, found=yes)
128 - if test "$found" = "yes"; then
129 - TARGET_READLINE_INC="-I$dir/include/readline"
134 -if test "$found" = "yes"; then
135 - if test "$TARGET_READLINE_LIBS" = ""; then
136 - TARGET_HAVE_READLINE=0
138 - TARGET_HAVE_READLINE=1
141 - TARGET_HAVE_READLINE=0
143 +TARGET_HAVE_READLINE=1
144 +TARGET_READLINE_INC=""
145 AC_SUBST(TARGET_READLINE_INC)
146 AC_SUBST(TARGET_HAVE_READLINE)