From dd594632b9e3987231560b479ee3d6a5ef8ea746 Mon Sep 17 00:00:00 2001 From: visor Date: Mon, 12 Apr 2010 23:27:36 +0900 Subject: [PATCH] fix apply function. modified read-file, write-file, delete-file function. --- ext/sqlite/sqlite-3.6.23.1+/config.log | 1072 -------------------------------- modules/ml-store.cc | 122 +++- modules/ml-struct.cc | 7 + 3 files changed, 112 insertions(+), 1089 deletions(-) delete mode 100644 ext/sqlite/sqlite-3.6.23.1+/config.log diff --git a/ext/sqlite/sqlite-3.6.23.1+/config.log b/ext/sqlite/sqlite-3.6.23.1+/config.log deleted file mode 100644 index cace856..0000000 --- a/ext/sqlite/sqlite-3.6.23.1+/config.log +++ /dev/null @@ -1,1072 +0,0 @@ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by sqlite configure 3.6.23.1, which was -generated by GNU Autoconf 2.62. Invocation command line was - - $ ./configure - -## --------- ## -## Platform. ## -## --------- ## - -hostname = midas5.u.plk.jp -uname -m = amd64 -uname -r = 7.3-RELEASE -uname -s = FreeBSD -uname -v = FreeBSD 7.3-RELEASE #0: Sun Apr 11 00:30:16 JST 2010 kanehara@midas5.u.plk.jp:/usr/src/sys/amd64/compile/MIDAS64 - -/usr/bin/uname -p = amd64 -/bin/uname -X = unknown - -/bin/arch = unknown -/usr/bin/arch -k = unknown -/usr/convex/getsysinfo = unknown -/usr/bin/hostinfo = unknown -/bin/machine = unknown -/usr/bin/oslevel = unknown -/bin/universe = unknown - -PATH: /export/users/kanehara/bin -PATH: /export/users/kanehara/shscr -PATH: /export/users/kanehara/perl -PATH: /usr/local/bin -PATH: /usr/local/sbin -PATH: /usr/local/dns/bin -PATH: /usr/bin -PATH: /bin -PATH: /usr/sbin -PATH: /sbin - - -## ----------- ## -## Core tests. ## -## ----------- ## - -configure:2092: checking for a BSD-compatible install -configure:2160: result: /usr/bin/install -c -configure:2171: checking whether build environment is sane -configure:2214: result: yes -configure:2276: checking for gawk -configure:2306: result: no -configure:2276: checking for mawk -configure:2306: result: no -configure:2276: checking for nawk -configure:2292: found /usr/bin/nawk -configure:2303: result: nawk -configure:2314: checking whether make sets $(MAKE) -configure:2336: result: yes -configure:2533: checking for style of include used by make -configure:2561: result: GNU -configure:2634: checking for gcc -configure:2650: found /usr/bin/gcc -configure:2661: result: gcc -configure:2899: checking for C compiler version -configure:2907: gcc --version >&5 -gcc (GCC) 4.2.1 20070719 [FreeBSD] -Copyright (C) 2007 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -configure:2911: $? = 0 -configure:2918: gcc -v >&5 -Using built-in specs. -Target: amd64-undermydesk-freebsd -Configured with: FreeBSD/amd64 system compiler -Thread model: posix -gcc version 4.2.1 20070719 [FreeBSD] -configure:2922: $? = 0 -configure:2929: gcc -V >&5 -gcc: '-V' option must have argument -configure:2933: $? = 1 -configure:2956: checking for C compiler default output file name -configure:2978: gcc -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:2982: $? = 0 -configure:3020: result: a.out -configure:3037: checking whether the C compiler works -configure:3047: ./a.out -configure:3051: $? = 0 -configure:3068: result: yes -configure:3075: checking whether we are cross compiling -configure:3077: result: no -configure:3080: checking for suffix of executables -configure:3087: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:3091: $? = 0 -configure:3115: result: -configure:3121: checking for suffix of object files -configure:3147: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:3151: $? = 0 -configure:3174: result: o -configure:3178: checking whether we are using the GNU C compiler -configure:3207: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:3214: $? = 0 -configure:3231: result: yes -configure:3240: checking whether gcc accepts -g -configure:3270: gcc -c -g conftest.c >&5 -configure:3277: $? = 0 -configure:3378: result: yes -configure:3395: checking for gcc option to accept ISO C89 -configure:3469: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:3476: $? = 0 -configure:3499: result: none needed -configure:3519: checking dependency style of gcc -configure:3609: result: gcc3 -configure:3634: checking for special C compiler options needed for large files -configure:3729: result: no -configure:3735: checking for _FILE_OFFSET_BITS value needed for large files -configure:3770: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:3777: $? = 0 -configure:3846: result: no -configure:4033: checking for gcc -configure:4060: result: gcc -configure:4298: checking for C compiler version -configure:4306: gcc --version >&5 -gcc (GCC) 4.2.1 20070719 [FreeBSD] -Copyright (C) 2007 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -configure:4310: $? = 0 -configure:4317: gcc -v >&5 -Using built-in specs. -Target: amd64-undermydesk-freebsd -Configured with: FreeBSD/amd64 system compiler -Thread model: posix -gcc version 4.2.1 20070719 [FreeBSD] -configure:4321: $? = 0 -configure:4328: gcc -V >&5 -gcc: '-V' option must have argument -configure:4332: $? = 1 -configure:4335: checking whether we are using the GNU C compiler -configure:4388: result: yes -configure:4397: checking whether gcc accepts -g -configure:4535: result: yes -configure:4552: checking for gcc option to accept ISO C89 -configure:4656: result: none needed -configure:4676: checking dependency style of gcc -configure:4766: result: gcc3 -configure:4826: checking for ranlib -configure:4842: found /usr/bin/ranlib -configure:4853: result: ranlib -configure:4957: checking build system type -configure:4975: result: x86_64-unknown-freebsd7.3 -configure:4997: checking host system type -configure:5012: result: x86_64-unknown-freebsd7.3 -configure:5034: checking for a sed that does not truncate output -configure:5088: result: /usr/bin/sed -configure:5091: checking for grep that handles long lines and -e -configure:5151: result: /usr/bin/grep -configure:5156: checking for egrep -configure:5220: result: /usr/bin/grep -E -configure:5236: checking for ld used by gcc -configure:5303: result: /usr/bin/ld -configure:5312: checking if the linker (/usr/bin/ld) is GNU ld -configure:5327: result: yes -configure:5332: checking for /usr/bin/ld option to reload object files -configure:5339: result: -r -configure:5357: checking for BSD-compatible nm -configure:5406: result: /usr/bin/nm -B -configure:5410: checking whether ln -s works -configure:5414: result: yes -configure:5421: checking how to recognise dependent libraries -configure:5597: result: pass_all -configure:5834: checking how to run the C preprocessor -configure:5874: gcc -E conftest.c -configure:5881: $? = 0 -configure:5912: gcc -E conftest.c -conftest.c:10:28: error: ac_nonexistent.h: No such file or directory -configure:5919: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| /* end confdefs.h. */ -| #include -configure:5952: result: gcc -E -configure:5981: gcc -E conftest.c -configure:5988: $? = 0 -configure:6019: gcc -E conftest.c -conftest.c:10:28: error: ac_nonexistent.h: No such file or directory -configure:6026: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| /* end confdefs.h. */ -| #include -configure:6064: checking for ANSI C header files -configure:6094: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6101: $? = 0 -configure:6200: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6204: $? = 0 -configure:6210: ./conftest -configure:6214: $? = 0 -configure:6232: result: yes -configure:6256: checking for sys/types.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for sys/stat.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for stdlib.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for string.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for memory.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for strings.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for inttypes.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for stdint.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6256: checking for unistd.h -configure:6277: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6284: $? = 0 -configure:6301: result: yes -configure:6330: checking dlfcn.h usability -configure:6347: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:6354: $? = 0 -configure:6368: result: yes -configure:6372: checking dlfcn.h presence -configure:6387: gcc -E conftest.c -configure:6394: $? = 0 -configure:6408: result: yes -configure:6441: checking for dlfcn.h -configure:6450: result: yes -configure:6522: checking for g++ -configure:6538: found /usr/bin/g++ -configure:6549: result: g++ -configure:6580: checking for C++ compiler version -configure:6588: g++ --version >&5 -g++ (GCC) 4.2.1 20070719 [FreeBSD] -Copyright (C) 2007 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -configure:6592: $? = 0 -configure:6599: g++ -v >&5 -Using built-in specs. -Target: amd64-undermydesk-freebsd -Configured with: FreeBSD/amd64 system compiler -Thread model: posix -gcc version 4.2.1 20070719 [FreeBSD] -configure:6603: $? = 0 -configure:6610: g++ -V >&5 -g++: '-V' option must have argument -configure:6614: $? = 1 -configure:6617: checking whether we are using the GNU C++ compiler -configure:6646: g++ -c conftest.cpp >&5 -configure:6653: $? = 0 -configure:6670: result: yes -configure:6679: checking whether g++ accepts -g -configure:6709: g++ -c -g conftest.cpp >&5 -configure:6716: $? = 0 -configure:6817: result: yes -configure:6842: checking dependency style of g++ -configure:6932: result: gcc3 -configure:6959: checking how to run the C++ preprocessor -configure:6995: g++ -E conftest.cpp -configure:7002: $? = 0 -configure:7033: g++ -E conftest.cpp -conftest.cpp:21:28: error: ac_nonexistent.h: No such file or directory -configure:7040: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| /* end confdefs.h. */ -| #include -configure:7073: result: g++ -E -configure:7102: g++ -E conftest.cpp -configure:7109: $? = 0 -configure:7140: g++ -E conftest.cpp -conftest.cpp:21:28: error: ac_nonexistent.h: No such file or directory -configure:7147: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| /* end confdefs.h. */ -| #include -configure:7240: checking for g77 -configure:7270: result: no -configure:7240: checking for xlf -configure:7270: result: no -configure:7240: checking for f77 -configure:7270: result: no -configure:7240: checking for frt -configure:7270: result: no -configure:7240: checking for pgf77 -configure:7270: result: no -configure:7240: checking for cf77 -configure:7270: result: no -configure:7240: checking for fort77 -configure:7270: result: no -configure:7240: checking for fl32 -configure:7270: result: no -configure:7240: checking for af77 -configure:7270: result: no -configure:7240: checking for xlf90 -configure:7270: result: no -configure:7240: checking for f90 -configure:7270: result: no -configure:7240: checking for pgf90 -configure:7270: result: no -configure:7240: checking for pghpf -configure:7270: result: no -configure:7240: checking for epcf90 -configure:7270: result: no -configure:7240: checking for gfortran -configure:7270: result: no -configure:7240: checking for g95 -configure:7270: result: no -configure:7240: checking for xlf95 -configure:7270: result: no -configure:7240: checking for f95 -configure:7270: result: no -configure:7240: checking for fort -configure:7270: result: no -configure:7240: checking for ifort -configure:7270: result: no -configure:7240: checking for ifc -configure:7270: result: no -configure:7240: checking for efc -configure:7270: result: no -configure:7240: checking for pgf95 -configure:7270: result: no -configure:7240: checking for lf95 -configure:7270: result: no -configure:7240: checking for ftn -configure:7270: result: no -configure:7297: checking for Fortran 77 compiler version -configure:7305: --version >&5 ---version: not found -configure:7309: $? = 127 -configure:7316: -v >&5 --v: not found -configure:7320: $? = 127 -configure:7327: -V >&5 --V: not found -configure:7331: $? = 127 -configure:7339: checking whether we are using the GNU Fortran 77 compiler -configure:7358: -c conftest.F >&5 --c: not found -configure:7365: $? = 127 -configure: failed program was: -| program main -| #ifndef __GNUC__ -| choke me -| #endif -| -| end -configure:7382: result: no -configure:7388: checking whether accepts -g -configure:7405: -c -g conftest.f >&5 --c: not found -configure:7412: $? = 127 -configure: failed program was: -| program main -| -| end -configure:7428: result: no -configure:7462: checking the maximum length of command line arguments -configure:7571: result: 196608 -configure:7582: checking command to parse /usr/bin/nm -B output from gcc object -configure:7687: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:7690: $? = 0 -configure:7694: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm -configure:7697: $? = 0 -configure:7749: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c conftstm.o >&5 -configure:7752: $? = 0 -configure:7790: result: ok -configure:7794: checking for objdir -configure:7809: result: .libs -configure:7901: checking for ar -configure:7917: found /usr/bin/ar -configure:7928: result: ar -configure:7997: checking for ranlib -configure:8024: result: ranlib -configure:8093: checking for strip -configure:8109: found /usr/bin/strip -configure:8120: result: strip -configure:8406: checking if gcc supports -fno-rtti -fno-exceptions -configure:8424: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED -fno-rtti -fno-exceptions conftest.c >&5 -cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C -configure:8428: $? = 0 -configure:8441: result: no -configure:8456: checking for gcc option to produce PIC -configure:8666: result: -fPIC -configure:8674: checking if gcc PIC flag -fPIC works -configure:8692: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED -fPIC -DPIC conftest.c >&5 -configure:8696: $? = 0 -configure:8709: result: yes -configure:8737: checking if gcc static flag -static works -configure:8765: result: yes -configure:8775: checking if gcc supports -c -o file.o -configure:8796: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED -o out/conftest2.o conftest.c >&5 -configure:8800: $? = 0 -configure:8822: result: yes -configure:8848: checking whether the gcc linker (/usr/bin/ld) supports shared libraries -configure:9810: result: yes -configure:9831: checking whether -lc should be explicitly linked in -configure:9836: gcc -c -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:9839: $? = 0 -configure:9854: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1 -configure:9857: $? = 0 -configure:9869: result: no -configure:9877: checking dynamic linker characteristics -configure:10465: result: freebsd7.3 ld.so -configure:10474: checking how to hardcode library paths into programs -configure:10499: result: immediate -configure:10513: checking whether stripping libraries is possible -configure:10518: result: yes -configure:11347: checking if libtool supports shared libraries -configure:11349: result: yes -configure:11352: checking whether to build shared libraries -configure:11373: result: yes -configure:11376: checking whether to build static libraries -configure:11380: result: yes -configure:11472: creating libtool -configure:12060: checking for ld used by g++ -configure:12127: result: /usr/bin/ld -configure:12136: checking if the linker (/usr/bin/ld) is GNU ld -configure:12151: result: yes -configure:12202: checking whether the g++ linker (/usr/bin/ld) supports shared libraries -configure:13144: result: yes -configure:13162: g++ -c -O2 conftest.cpp >&5 -configure:13165: $? = 0 -configure:13284: checking for g++ option to produce PIC -configure:13558: result: -fPIC -configure:13566: checking if g++ PIC flag -fPIC works -configure:13584: g++ -c -O2 -fPIC -DPIC conftest.cpp >&5 -configure:13588: $? = 0 -configure:13601: result: yes -configure:13629: checking if g++ static flag -static works -configure:13657: result: yes -configure:13667: checking if g++ supports -c -o file.o -configure:13688: g++ -c -O2 -o out/conftest2.o conftest.cpp >&5 -configure:13692: $? = 0 -configure:13714: result: yes -configure:13740: checking whether the g++ linker (/usr/bin/ld) supports shared libraries -configure:13765: result: yes -configure:13832: checking dynamic linker characteristics -configure:14420: result: freebsd7.3 ld.so -configure:14429: checking how to hardcode library paths into programs -configure:14454: result: immediate -configure:20620: checking for fdatasync -configure:20676: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -/var/tmp//ccPH5O8O.o(.text+0x7): In function `main': -: undefined reference to `fdatasync' -configure:20683: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| /* end confdefs.h. */ -| /* Define fdatasync to an innocuous variant, in case declares fdatasync. -| For example, HP-UX 11i declares gettimeofday. */ -| #define fdatasync innocuous_fdatasync -| -| /* System header to define __stub macros and hopefully few prototypes, -| which can conflict with char fdatasync (); below. -| Prefer to if __STDC__ is defined, since -| exists even on freestanding compilers. */ -| -| #ifdef __STDC__ -| # include -| #else -| # include -| #endif -| -| #undef fdatasync -| -| /* Override any GCC internal prototype to avoid an error. -| Use char because int might match the return type of a GCC -| builtin and then its argument prototype would still apply. */ -| #ifdef __cplusplus -| extern "C" -| #endif -| char fdatasync (); -| /* The GNU C library defines this for functions which it implements -| to always fail with ENOSYS. Some functions are actually named -| something starting with __ and the normal name is an alias. */ -| #if defined __stub_fdatasync || defined __stub___fdatasync -| choke me -| #endif -| -| int -| main () -| { -| return fdatasync (); -| ; -| return 0; -| } -configure:20705: result: no -configure:20620: checking for usleep -configure:20676: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:20683: $? = 0 -configure:20705: result: yes -configure:20620: checking for fullfsync -configure:20676: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -/var/tmp//ccfOcDxV.o(.text+0x7): In function `main': -: undefined reference to `fullfsync' -configure:20683: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_USLEEP 1 -| /* end confdefs.h. */ -| /* Define fullfsync to an innocuous variant, in case declares fullfsync. -| For example, HP-UX 11i declares gettimeofday. */ -| #define fullfsync innocuous_fullfsync -| -| /* System header to define __stub macros and hopefully few prototypes, -| which can conflict with char fullfsync (); below. -| Prefer to if __STDC__ is defined, since -| exists even on freestanding compilers. */ -| -| #ifdef __STDC__ -| # include -| #else -| # include -| #endif -| -| #undef fullfsync -| -| /* Override any GCC internal prototype to avoid an error. -| Use char because int might match the return type of a GCC -| builtin and then its argument prototype would still apply. */ -| #ifdef __cplusplus -| extern "C" -| #endif -| char fullfsync (); -| /* The GNU C library defines this for functions which it implements -| to always fail with ENOSYS. Some functions are actually named -| something starting with __ and the normal name is an alias. */ -| #if defined __stub_fullfsync || defined __stub___fullfsync -| choke me -| #endif -| -| int -| main () -| { -| return fullfsync (); -| ; -| return 0; -| } -configure:20705: result: no -configure:20620: checking for localtime_r -configure:20676: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:20683: $? = 0 -configure:20705: result: yes -configure:20620: checking for gmtime_r -configure:20676: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -configure:20683: $? = 0 -configure:20705: result: yes -configure:20734: checking for library containing tgetent -configure:20775: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -/var/tmp//cc1jxVHR.o(.text+0x7): In function `main': -: undefined reference to `tgetent' -configure:20782: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_USLEEP 1 -| #define HAVE_LOCALTIME_R 1 -| #define HAVE_GMTIME_R 1 -| /* end confdefs.h. */ -| -| /* Override any GCC internal prototype to avoid an error. -| Use char because int might match the return type of a GCC -| builtin and then its argument prototype would still apply. */ -| #ifdef __cplusplus -| extern "C" -| #endif -| char tgetent (); -| int -| main () -| { -| return tgetent (); -| ; -| return 0; -| } -configure:20775: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c -lcurses >&5 -configure:20782: $? = 0 -configure:20813: result: -lcurses -configure:20821: checking for library containing readline -configure:20862: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c -lcurses >&5 -/var/tmp//ccxkfabw.o(.text+0x7): In function `main': -: undefined reference to `readline' -configure:20869: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_USLEEP 1 -| #define HAVE_LOCALTIME_R 1 -| #define HAVE_GMTIME_R 1 -| /* end confdefs.h. */ -| -| /* Override any GCC internal prototype to avoid an error. -| Use char because int might match the return type of a GCC -| builtin and then its argument prototype would still apply. */ -| #ifdef __cplusplus -| extern "C" -| #endif -| char readline (); -| int -| main () -| { -| return readline (); -| ; -| return 0; -| } -configure:20862: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c -lreadline -lcurses >&5 -configure:20869: $? = 0 -configure:20900: result: -lreadline -configure:20914: checking for readline -configure:20970: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c -lreadline -lcurses >&5 -configure:20977: $? = 0 -configure:20999: result: yes -configure:21029: checking for library containing pthread_create -configure:21070: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c >&5 -/var/tmp//ccIK65yf.o(.text+0x7): In function `main': -: undefined reference to `pthread_create' -configure:21077: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| #define PACKAGE_NAME "sqlite" -| #define PACKAGE_TARNAME "sqlite" -| #define PACKAGE_VERSION "3.6.23.1" -| #define PACKAGE_STRING "sqlite 3.6.23.1" -| #define PACKAGE_BUGREPORT "http://www.sqlite.org" -| #define PACKAGE "sqlite" -| #define VERSION "3.6.23.1" -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_USLEEP 1 -| #define HAVE_LOCALTIME_R 1 -| #define HAVE_GMTIME_R 1 -| #define HAVE_READLINE 1 -| /* end confdefs.h. */ -| -| /* Override any GCC internal prototype to avoid an error. -| Use char because int might match the return type of a GCC -| builtin and then its argument prototype would still apply. */ -| #ifdef __cplusplus -| extern "C" -| #endif -| char pthread_create (); -| int -| main () -| { -| return pthread_create (); -| ; -| return 0; -| } -configure:21070: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c -lpthread >&5 -configure:21077: $? = 0 -configure:21108: result: -lpthread -configure:21131: checking for library containing dlopen -configure:21172: gcc -o conftest -O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED conftest.c -lpthread >&5 -configure:21179: $? = 0 -configure:21210: result: none required -configure:21221: checking for whether to support dynamic extensions -configure:21223: result: yes -configure:21419: creating ./config.status - -## ---------------------- ## -## Running config.status. ## -## ---------------------- ## - -This file was extended by sqlite config.status 3.6.23.1, which was -generated by GNU Autoconf 2.62. Invocation command line was - - CONFIG_FILES = - CONFIG_HEADERS = - CONFIG_LINKS = - CONFIG_COMMANDS = - $ ./config.status - -on midas5.u.plk.jp - -config.status:716: creating Makefile -config.status:716: creating sqlite3.pc -config.status:921: executing depfiles commands - -## ---------------- ## -## Cache variables. ## -## ---------------- ## - -ac_cv_build=x86_64-unknown-freebsd7.3 -ac_cv_c_compiler_gnu=yes -ac_cv_cxx_compiler_gnu=yes -ac_cv_env_CCC_set='' -ac_cv_env_CCC_value='' -ac_cv_env_CC_set='' -ac_cv_env_CC_value='' -ac_cv_env_CFLAGS_set=set -ac_cv_env_CFLAGS_value='-O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED' -ac_cv_env_CPPFLAGS_set='' -ac_cv_env_CPPFLAGS_value='' -ac_cv_env_CPP_set='' -ac_cv_env_CPP_value='' -ac_cv_env_CXXCPP_set='' -ac_cv_env_CXXCPP_value='' -ac_cv_env_CXXFLAGS_set='' -ac_cv_env_CXXFLAGS_value='' -ac_cv_env_CXX_set='' -ac_cv_env_CXX_value='' -ac_cv_env_F77_set='' -ac_cv_env_F77_value='' -ac_cv_env_FFLAGS_set='' -ac_cv_env_FFLAGS_value='' -ac_cv_env_LDFLAGS_set='' -ac_cv_env_LDFLAGS_value='' -ac_cv_env_LIBS_set='' -ac_cv_env_LIBS_value='' -ac_cv_env_build_alias_set='' -ac_cv_env_build_alias_value='' -ac_cv_env_host_alias_set='' -ac_cv_env_host_alias_value='' -ac_cv_env_target_alias_set='' -ac_cv_env_target_alias_value='' -ac_cv_f77_compiler_gnu=no -ac_cv_func_fdatasync=no -ac_cv_func_fullfsync=no -ac_cv_func_gmtime_r=yes -ac_cv_func_localtime_r=yes -ac_cv_func_readline=yes -ac_cv_func_usleep=yes -ac_cv_header_dlfcn_h=yes -ac_cv_header_inttypes_h=yes -ac_cv_header_memory_h=yes -ac_cv_header_stdc=yes -ac_cv_header_stdint_h=yes -ac_cv_header_stdlib_h=yes -ac_cv_header_string_h=yes -ac_cv_header_strings_h=yes -ac_cv_header_sys_stat_h=yes -ac_cv_header_sys_types_h=yes -ac_cv_header_unistd_h=yes -ac_cv_host=x86_64-unknown-freebsd7.3 -ac_cv_objext=o -ac_cv_path_EGREP='/usr/bin/grep -E' -ac_cv_path_GREP=/usr/bin/grep -ac_cv_path_install='/usr/bin/install -c' -ac_cv_prog_AWK=nawk -ac_cv_prog_CPP='gcc -E' -ac_cv_prog_CXXCPP='g++ -E' -ac_cv_prog_ac_ct_AR=ar -ac_cv_prog_ac_ct_CC=gcc -ac_cv_prog_ac_ct_CXX=g++ -ac_cv_prog_ac_ct_RANLIB=ranlib -ac_cv_prog_ac_ct_STRIP=strip -ac_cv_prog_cc_c89='' -ac_cv_prog_cc_g=yes -ac_cv_prog_cxx_g=yes -ac_cv_prog_f77_g=no -ac_cv_prog_make_make_set=yes -ac_cv_search_dlopen='none required' -ac_cv_search_pthread_create=-lpthread -ac_cv_search_readline=-lreadline -ac_cv_search_tgetent=-lcurses -ac_cv_sys_file_offset_bits=no -ac_cv_sys_largefile_CC=no -am_cv_CC_dependencies_compiler_type=gcc3 -am_cv_CXX_dependencies_compiler_type=gcc3 -lt_cv_deplibs_check_method=pass_all -lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file='' -lt_cv_ld_reload_flag=-r -lt_cv_objdir=.libs -lt_cv_path_LD=/usr/bin/ld -lt_cv_path_LDCXX=/usr/bin/ld -lt_cv_path_NM='/usr/bin/nm -B' -lt_cv_path_SED=/usr/bin/sed -lt_cv_prog_compiler_c_o=yes -lt_cv_prog_compiler_c_o_CXX=yes -lt_cv_prog_compiler_rtti_exceptions=no -lt_cv_prog_gnu_ld=yes -lt_cv_prog_gnu_ldcxx=yes -lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' -lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\''' -lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\''' -lt_cv_sys_max_cmd_len=196608 -lt_lt_cv_prog_compiler_c_o='"yes"' -lt_lt_cv_prog_compiler_c_o_CXX='"yes"' -lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"' -lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"' -lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"' - -## ----------------- ## -## Output variables. ## -## ----------------- ## - -ACLOCAL='${SHELL} /export/users/kanehara/src/fix/ext/sqlite/sqlite-3.6.23.1+/missing --run aclocal-1.9' -AMDEPBACKSLASH='\' -AMDEP_FALSE='#' -AMDEP_TRUE='' -AMTAR='${SHELL} /export/users/kanehara/src/fix/ext/sqlite/sqlite-3.6.23.1+/missing --run tar' -AR='ar' -AUTOCONF='${SHELL} /export/users/kanehara/src/fix/ext/sqlite/sqlite-3.6.23.1+/missing --run autoconf' -AUTOHEADER='${SHELL} /export/users/kanehara/src/fix/ext/sqlite/sqlite-3.6.23.1+/missing --run autoheader' -AUTOMAKE='${SHELL} /export/users/kanehara/src/fix/ext/sqlite/sqlite-3.6.23.1+/missing --run automake-1.9' -AWK='nawk' -BUILD_CFLAGS='' -CC='gcc' -CCDEPMODE='depmode=gcc3' -CFLAGS='-O2 -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_DEPRECATED' -CPP='gcc -E' -CPPFLAGS='' -CXX='g++' -CXXCPP='g++ -E' -CXXDEPMODE='depmode=gcc3' -CXXFLAGS='-O2' -CYGPATH_W='echo' -DEFS='-DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.6.23.1\" -DPACKAGE_STRING=\"sqlite\ 3.6.23.1\" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.6.23.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_READLINE=1' -DEPDIR='.deps' -DYNAMIC_EXTENSION_FLAGS='' -ECHO='echo' -ECHO_C='' -ECHO_N='-n' -ECHO_T='' -EGREP='/usr/bin/grep -E' -EXEEXT='' -F77='' -FFLAGS='' -GREP='/usr/bin/grep' -INSTALL_DATA='${INSTALL} -m 644' -INSTALL_PROGRAM='${INSTALL}' -INSTALL_SCRIPT='${INSTALL}' -INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' -LDFLAGS='' -LIBOBJS='' -LIBS='-lpthread ' -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -LN_S='ln -s' -LTLIBOBJS='' -MAKEINFO='${SHELL} /export/users/kanehara/src/fix/ext/sqlite/sqlite-3.6.23.1+/missing --run makeinfo' -OBJEXT='o' -PACKAGE='sqlite' -PACKAGE_BUGREPORT='http://www.sqlite.org' -PACKAGE_NAME='sqlite' -PACKAGE_STRING='sqlite 3.6.23.1' -PACKAGE_TARNAME='sqlite' -PACKAGE_VERSION='3.6.23.1' -PATH_SEPARATOR=':' -RANLIB='ranlib' -READLINE_LIBS='-lreadline -lcurses ' -SET_MAKE='' -SHELL='/bin/sh' -STRIP='strip' -THREADSAFE_FLAGS='-DSQLITE_THREADSAFE=1' -VERSION='3.6.23.1' -ac_ct_CC='gcc' -ac_ct_CXX='g++' -ac_ct_F77='' -am__fastdepCC_FALSE='#' -am__fastdepCC_TRUE='' -am__fastdepCXX_FALSE='#' -am__fastdepCXX_TRUE='' -am__include='include' -am__leading_dot='.' -am__quote='' -am__tar='${AMTAR} chof - "$$tardir"' -am__untar='${AMTAR} xf -' -bindir='${exec_prefix}/bin' -build='x86_64-unknown-freebsd7.3' -build_alias='' -build_cpu='x86_64' -build_os='freebsd7.3' -build_vendor='unknown' -datadir='${datarootdir}' -datarootdir='${prefix}/share' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -dvidir='${docdir}' -exec_prefix='${prefix}' -host='x86_64-unknown-freebsd7.3' -host_alias='' -host_cpu='x86_64' -host_os='freebsd7.3' -host_vendor='unknown' -htmldir='${docdir}' -includedir='${prefix}/include' -infodir='${datarootdir}/info' -install_sh='/export/users/kanehara/src/fix/ext/sqlite/sqlite-3.6.23.1+/install-sh' -libdir='${exec_prefix}/lib' -libexecdir='${exec_prefix}/libexec' -localedir='${datarootdir}/locale' -localstatedir='${prefix}/var' -mandir='${datarootdir}/man' -mkdir_p='$(install_sh) -d' -oldincludedir='/usr/include' -pdfdir='${docdir}' -prefix='/usr/local' -program_transform_name='s,x,x,' -psdir='${docdir}' -sbindir='${exec_prefix}/sbin' -sharedstatedir='${prefix}/com' -sysconfdir='${prefix}/etc' -target_alias='' - -## ----------- ## -## confdefs.h. ## -## ----------- ## - -#define PACKAGE_NAME "sqlite" -#define PACKAGE_TARNAME "sqlite" -#define PACKAGE_VERSION "3.6.23.1" -#define PACKAGE_STRING "sqlite 3.6.23.1" -#define PACKAGE_BUGREPORT "http://www.sqlite.org" -#define PACKAGE "sqlite" -#define VERSION "3.6.23.1" -#define STDC_HEADERS 1 -#define HAVE_SYS_TYPES_H 1 -#define HAVE_SYS_STAT_H 1 -#define HAVE_STDLIB_H 1 -#define HAVE_STRING_H 1 -#define HAVE_MEMORY_H 1 -#define HAVE_STRINGS_H 1 -#define HAVE_INTTYPES_H 1 -#define HAVE_STDINT_H 1 -#define HAVE_UNISTD_H 1 -#define HAVE_DLFCN_H 1 -#define HAVE_USLEEP 1 -#define HAVE_LOCALTIME_R 1 -#define HAVE_GMTIME_R 1 -#define HAVE_READLINE 1 - -configure: exit 0 diff --git a/modules/ml-store.cc b/modules/ml-store.cc index a5198e6..4fd5031 100644 --- a/modules/ml-store.cc +++ b/modules/ml-store.cc @@ -408,7 +408,7 @@ MNode* ml_set_xserial (MNode* cell, MlEnv* mlenv) { /*DOC: ===read-file=== - (read-file FILENAME [:code ENCODING]) -> STRING + (read-file FILENAME [#serial | #named | :serial BOOL | :named BOOL] [:code ENCODING]) -> STRING */ //#AFUNC read-file ml_read_file @@ -416,23 +416,52 @@ MNode* ml_read_file (MNode* cell, MlEnv* mlenv) { MNode* arg = cell->cdr (); ustring name; ustring src; + enum { + F_NONE, + F_SERIAL, + F_NAMED, + } storetype; ustring encoding; ustring data; std::vector params; std::vector keywords; static paramList kwlist[] = { {CharConst ("code"), false}, + {CharConst ("serial"), true}, + {CharConst ("named"), true}, {NULL, 0, 0} }; + if (mlenv->env->storagedir.length () > 0) { + storetype = F_NAMED; + } else if (mlenv->env->storedir.length () > 0) { + storetype = F_SERIAL; + } else { + storetype = F_NONE; + } + setParams (arg, 1, ¶ms, kwlist, &keywords, NULL); name = eval_str (params[0], mlenv); if (keywords[0]) encoding = eval_str (keywords[0], mlenv); + if (eval_bool (keywords[1], mlenv)) // serial + storetype = F_SERIAL; + if (eval_bool (keywords[2], mlenv)) // named + storetype = F_NAMED; - if (mlenv->env->storedir.empty ()) +// if (mlenv->env->storedir.empty ()) +// throw (uErrorNoStore); +// src = mlenv->env->path_store_file (name); + switch (storetype) { + case F_SERIAL: + src = mlenv->env->path_store_file (name); + break; + case F_NAMED: + src = mlenv->env->path_storage_file (name); + break; + default: throw (uErrorNoStore); - src = mlenv->env->path_store_file (name); + } if (readFile (src, data, cPOSTLIMITHARD)) { if (encoding.size () > 0 && data.size () > 0) { @@ -447,7 +476,7 @@ MNode* ml_read_file (MNode* cell, MlEnv* mlenv) { /*DOC: ===write-file=== - (write-file FILENAME STRING [:code ENCODING] [#crlf | :crlf BOOL]) -> NIL + (write-file FILENAME STRING [#serial | #named | :serial BOOL | :named BOOL] [:code ENCODING] [#crlf | :crlf BOOL]) -> NIL */ //#AFUNC write-file ml_write_file @@ -455,6 +484,11 @@ MNode* ml_write_file (MNode* cell, MlEnv* mlenv) { MNode* arg = cell->cdr (); ustring name; ustring tgt; + enum { + F_NONE, + F_SERIAL, + F_NAMED, + } storetype; ustring encoding; bool fcrlf = false; ustring data; @@ -463,20 +497,44 @@ MNode* ml_write_file (MNode* cell, MlEnv* mlenv) { static paramList kwlist[] = { {CharConst ("code"), false}, {CharConst ("crlf"), true}, + {CharConst ("serial"), true}, + {CharConst ("named"), true}, {NULL, 0, 0} }; + if (mlenv->env->storagedir.length () > 0) { + storetype = F_NAMED; + } else if (mlenv->env->storedir.length () > 0) { + storetype = F_SERIAL; + } else { + storetype = F_NONE; + } + setParams (arg, 2, ¶ms, kwlist, &keywords, NULL); name = eval_str (params[0], mlenv); data = eval_str (params[1], mlenv); if (keywords[0]) encoding = eval_str (keywords[0], mlenv); fcrlf = eval_bool (keywords[1], mlenv); + if (eval_bool (keywords[2], mlenv)) // serial + storetype = F_SERIAL; + if (eval_bool (keywords[3], mlenv)) // named + storetype = F_NAMED; - if (mlenv->env->storedir.empty ()) +// if (mlenv->env->storedir.empty ()) +// throw (uErrorNoStore); +// tgt = mlenv->env->path_store_file (name); + switch (storetype) { + case F_SERIAL: + tgt = mlenv->env->path_store_file (name); + break; + case F_NAMED: + tgt = mlenv->env->path_storage_file (name); + break; + default: throw (uErrorNoStore); + } - tgt = mlenv->env->path_store_file (name); if (encoding.size () > 0 && data.size () > 0) { data = uiconv (data, encoding.c_str (), kCODE_UTF8); } @@ -662,26 +720,56 @@ MNode* ml_restore_file (MNode* cell, MlEnv* mlenv) { /*DOC: ===delete-file=== - (delete-file NAME_STORAGE) -> NIL + (delete-file NAME_STORAGE [#serial | #named | :serial BOOL | :named BOOL]) -> NIL */ //#AFUNC delete-file ml_delete_file MNode* ml_delete_file (MNode* cell, MlEnv* mlenv) { MNode* arg = cell->cdr (); - ustring namestorage; + ustring name; ustring tgt; + enum { + F_NONE, + F_SERIAL, + F_NAMED, + } storetype; + std::vector params; + std::vector keywords; + static paramList kwlist[] = { + {CharConst ("serial"), true}, + {CharConst ("named"), true}, + {NULL, 0, 0} + }; - if (! arg) - throw (uErrorWrongNumber); - namestorage = eval_str (arg->car (), mlenv); - nextNode (arg); - if (arg) - throw (uErrorWrongNumber); + if (mlenv->env->storagedir.length () > 0) { + storetype = F_NAMED; + } else if (mlenv->env->storedir.length () > 0) { + storetype = F_SERIAL; + } else { + storetype = F_NONE; + } - if (mlenv->env->storagedir.empty ()) - throw (uErrorNoStorage); + setParams (arg, 1, ¶ms, kwlist, &keywords, NULL); + name = eval_str (params[0], mlenv); + if (eval_bool (keywords[0], mlenv)) // serial + storetype = F_SERIAL; + if (eval_bool (keywords[1], mlenv)) // named + storetype = F_NAMED; + +// if (mlenv->env->storagedir.empty ()) +// throw (uErrorNoStorage); +// tgt = mlenv->env->path_storage_file (namestorage); + switch (storetype) { + case F_SERIAL: + tgt = mlenv->env->path_store_file (name); + break; + case F_NAMED: + tgt = mlenv->env->path_storage_file (name); + break; + default: + throw (uErrorNoStore); + } - tgt = mlenv->env->path_storage_file (namestorage); unlink (tgt.c_str ()); return NULL; diff --git a/modules/ml-struct.cc b/modules/ml-struct.cc index d4ac535..17f26f9 100644 --- a/modules/ml-struct.cc +++ b/modules/ml-struct.cc @@ -12,6 +12,13 @@ static MNode* symquote (MNode* v) { if (v) { switch (v->type) { case MNode::MC_SYM: + if (v->sym + && v->sym->length () > 0 + && ((*v->sym)[0] == '#' || (*v->sym)[0] == ':')) { + } else { + v = newMNode_quote (v); + } + break; case MNode::MC_CONS: v = newMNode_quote (v); break; -- 2.11.0