Commits

Markus Mottl  committed 9c817a7

Switched to Oasis and ocamlbuild

  • Participants
  • Parent commits ebaa542

Comments (0)

Files changed (32)

-(^|/)\.bzr($|/)
-(^|/)\.hg($|/)
-(^|/)\.hgtags($|/)
+^.*\.swp$
+^setup\.(log|data)$
+^_build/.*$
+^.*\.native$
+^API\.docdir$
+# OASIS_START
+# DO NOT EDIT (digest: bb69cea5763ce1c00026d5cb94e459d0)
+lib/Sqlite3
+# OASIS_STOP
+(* OASIS_START *)
+(* DO NOT EDIT (digest: 0648f925adedbb4c0bdc6c4093b3ea31) *)
+Authors of sqlite3-ocaml
+Markus Mottl <markus.mottl@gmail.com>
+Christian Szegedy <csdontspam@metamatix.com>
+
+Current maintainers of sqlite3-ocaml
+Markus Mottl <markus.mottl@gmail.com>
+Christian Szegedy <csdontspam@metamatix.com>
+(* OASIS_STOP *)
+2012-05-19: Fixed cpp warnings and removed superfluous check for dynamic
+            linking library.  The latter improves portability to FreeBSD.
+
+            Thanks to Stéphane Legrand <stephleg@free.fr> for the bug report!
+
+2011-03-10: Added sqlite3_open_v2 functionality.
+
+            Thanks to Mike Lin <mlin@mit.edu> for the initial patch!
+
+2010-12-20: Fixed linking problem with loadable module support.
+
+            Thanks to Adrien Nader <camaradetux@gmail.com> for the patch!
+
+2010-09-18: Fixed segfault related to incorrect handling of exceptions raised
+            from user callbacks.
+
+            Thanks to William Le Ferrand <wleferrand@hypios.com> for the bug
+            report!
+
+2009-12-15: Fixed segfault related to exceptions raised from C.
+
+            Thanks to Gareth Smith <garethdanielsmith@googlemail.com> for the
+            bug report!
+
+2009-09-14: Fixed build problem.
+
+2009-09-13: Removed deprecated functions and improved build process.
+
+2009-09-08: Added "changes" function.
+
+            Thanks to <ygrek@autistici.org> for this patch!
+
+2009-08-22: enable_load_extension now raises an exception if unsupported.
+
+2009-07-28: Added better support for compiling with MSVC and ocamlbuild.
+
+            Thanks to <ygrek@autistici.org> for this patch!
+
+2009-05-23: Fixed example to be consistent with new API.
+
+2009-05-16: Fixed mishandling of OCaml-runtime lock when callbacks
+            raise exceptions, and correctly handle NULL-pointer
+            results when getting column type declarations.
+
+            Thanks to Bruno Daniel <bruno.daniel@gmx.net> for this
+            patch!
+
+            Changed API to expose optional results.
+
+2009-03-09: Fixed potential build problem.
+
+2009-03-01: Added support for user-defined aggregate functions.
+
+            Thanks to Anil Madhavapeddy <anil@recoil.org> for the initial
+            version of the patch!
+
+2009-02-21: Added new function:
+
+              * busy_timeout
+
+            Thanks to Paolo Donadeo <p.donadeo@gmail.com> for the patch!
+
+2009-01-05: Switched to generational global root registration of
+            callbacks for better performance.
+
+            Requires OCaml 3.11 or higher!!!
+
+2008-12-02: Added function enable_load_extension if it is available.
+
+            Thanks to Pietro Abate <Pietro.Abate@pps.jussieu.fr> for
+            the patch!
+
+2008-05-11: Added function column_count, used it internally in place of
+            data_count, and improved documentation of associated
+            functions.
+
+            Thanks to James Cheney <james.cheney@gmail.com> for the patch!
+
+2008-05-07: Renamed Data.to_string to Data.to_string_debug for converting
+            fields to strings with their data constructor.  Replaced the
+            previous function with one that behaves more like users
+            would expect.  Thanks to Stefano Zacchiroli <zack@debian.org>
+            for the suggestion.
+
+2008-04-18: Improved backwards compatibility to older versions of SQLite.
+
+2008-04-04: Fixed a build problem on Mac OS X.
+
+2008-03-27: Fixed a build problem on FreeBSD.
+
+            Thanks to Jaap Boender <Jaap.Boender@pps.jussieu.fr> for
+            the patch!
+
+2008-03-14: Synced with Jane Street tree.
+
+2008-03-05: Added a patch to improve Windows support.  Thanks to Alain
+            Frisch <alain@frisch.fr> for the patch!
+
+2007-09-04: Fixed a minor bug converting status codes.
+
+2007-08-20: Fixed a GC-bug related to user-defined SQL-functions.
+
+            Thanks to Enrico Tassi <gareuselesinge@virgilio.it> for the
+            test case to replicate this problem!
+
+2007-06-17: Added support for user-defined scalar functions.  Thanks to
+            Enrico Tassi <gareuselesinge@virgilio.it> for the patch!
+
+            Switched to sqlite3_prepare_v2 internally to avoid the older,
+            deprecated sqlite3_prepare-function.  Thanks to Gabriel
+            Kerneis <gabriel@kerneis.info> for the hint!
+
+            Removed exec_sql-function, which was buggy in the last
+            release anyway (thanks to Paul Stodghill <ps27@cornell.edu>
+            for pointing this out!).  Its interface hides too much
+            important information from the user (e.g. BUSY-steps, etc.).
+            It did not seem possible to design a function that made
+            it as simple as exec_sql to run an SQL-statement without
+            inviting the user to write buggy/incomplete code, or that
+            wouldn't make the interface almost as complicated as just
+            writing the correct code that handles all cases by oneself.
+
+2007-05-07: Further GC-bug fixes.  There was a design bug in the library
+            that was causing all these GC issues (C-structs allocated
+            in the OCaml-heap).  This obviously seemed safe (and more
+            efficient) to the initial author, but after extensive checking
+            it became apparent that this just does not work if C-structs
+            reference each other, because the GC might move these memory
+            regions.  It seems safer to allocate C-structs with "malloc",
+            and use an indirection to access them.
+
+2007-05-04: Fixed several GC-bugs, and improved thread interaction.
+
+2007-04-23: callback_exn -> caml_callback_exn.
+
+2007-03-30: Fixed a GC-bug.
+
+2007-03-19: Fixed an installation problem on Cygwin.
+
+            Thanks to James Cheney <james.cheney@gmail.com> for the hint!
+
+2007-02-27: Small API-change: the callback for exec is now an optional
+            argument.
+
+            Added three more "exec"-functions, which do or do not take
+            headers or handle NULL-values.
+
+            Improved quality of C-code (removed warnings).
+
+2007-02-23: Fixed a bug in the "db_close"-function.  Improved documentation.
+
+2007-02-19: Added check for out of memory after malloc.
+
+2007-01-31: Fixed build problem on x86_64: added -fPIC flag to compilation
+            of C-stubs.
+
+2007-01-17: Complete rewrite by Markus Mottl <markus.mottl@gmail.com>.
+
+2005-04-??: Initial coding (0.1) by
+            Christian Szegedy <csdontspam871@metamatix.org>.

File COPYING

-Copyright (c) 2005 Christian Szegedy <csdontspam871@metamatix.org>
-
-Copyright (c) 2007 Jane Street Holding, LLC
-                   1 New York Plaza, 33rd Floor
-                   New York, NY 10004
-                   USA
-                   Author: Markus Mottl <markus.mottl@gmail.com>
-
-Copyright (c) 2007 Enrico Tassi <gareuselesinge@virgilio.it>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation files
-(the "Software"), to deal in the Software without restriction,
-including without limitation the rights to use, copy, modify, merge,
-publish, distribute, sublicense, and/or sell copies of the Software,
-and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+Copyright (c) 2005 Christian Szegedy <csdontspam871@metamatix.org>
+
+Copyright (c) 2007 Jane Street Holding, LLC
+                   1 New York Plaza, 33rd Floor
+                   New York, NY 10004
+                   USA
+                   Author: Markus Mottl <markus.mottl@gmail.com>
+
+Copyright (c) 2007 Enrico Tassi <gareuselesinge@virgilio.it>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation files
+(the "Software"), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of the Software,
+and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

File Changelog

-2012-05-19: Fixed cpp warnings and removed superfluous check for dynamic
-            linking library.  The latter improves portability to FreeBSD.
-
-            Thanks to Stéphane Legrand <stephleg@free.fr> for the bug report!
-
-2011-03-10: Added sqlite3_open_v2 functionality.
-
-            Thanks to Mike Lin <mlin@mit.edu> for the initial patch!
-
-2010-12-20: Fixed linking problem with loadable module support.
-
-            Thanks to Adrien Nader <camaradetux@gmail.com> for the patch!
-
-2010-09-18: Fixed segfault related to incorrect handling of exceptions raised
-            from user callbacks.
-
-            Thanks to William Le Ferrand <wleferrand@hypios.com> for the bug
-            report!
-
-2009-12-15: Fixed segfault related to exceptions raised from C.
-
-            Thanks to Gareth Smith <garethdanielsmith@googlemail.com> for the
-            bug report!
-
-2009-09-14: Fixed build problem.
-
-2009-09-13: Removed deprecated functions and improved build process.
-
-2009-09-08: Added "changes" function.
-
-            Thanks to <ygrek@autistici.org> for this patch!
-
-2009-08-22: enable_load_extension now raises an exception if unsupported.
-
-2009-07-28: Added better support for compiling with MSVC and ocamlbuild.
-
-            Thanks to <ygrek@autistici.org> for this patch!
-
-2009-05-23: Fixed example to be consistent with new API.
-
-2009-05-16: Fixed mishandling of OCaml-runtime lock when callbacks
-            raise exceptions, and correctly handle NULL-pointer
-            results when getting column type declarations.
-
-            Thanks to Bruno Daniel <bruno.daniel@gmx.net> for this
-            patch!
-
-            Changed API to expose optional results.
-
-2009-03-09: Fixed potential build problem.
-
-2009-03-01: Added support for user-defined aggregate functions.
-
-            Thanks to Anil Madhavapeddy <anil@recoil.org> for the initial
-            version of the patch!
-
-2009-02-21: Added new function:
-
-              * busy_timeout
-
-            Thanks to Paolo Donadeo <p.donadeo@gmail.com> for the patch!
-
-2009-01-05: Switched to generational global root registration of
-            callbacks for better performance.
-
-            Requires OCaml 3.11 or higher!!!
-
-2008-12-02: Added function enable_load_extension if it is available.
-
-            Thanks to Pietro Abate <Pietro.Abate@pps.jussieu.fr> for
-            the patch!
-
-2008-05-11: Added function column_count, used it internally in place of
-            data_count, and improved documentation of associated
-            functions.
-
-            Thanks to James Cheney <james.cheney@gmail.com> for the patch!
-
-2008-05-07: Renamed Data.to_string to Data.to_string_debug for converting
-            fields to strings with their data constructor.  Replaced the
-            previous function with one that behaves more like users
-            would expect.  Thanks to Stefano Zacchiroli <zack@debian.org>
-            for the suggestion.
-
-2008-04-18: Improved backwards compatibility to older versions of SQLite.
-
-2008-04-04: Fixed a build problem on Mac OS X.
-
-2008-03-27: Fixed a build problem on FreeBSD.
-
-            Thanks to Jaap Boender <Jaap.Boender@pps.jussieu.fr> for
-            the patch!
-
-2008-03-14: Synced with Jane Street tree.
-
-2008-03-05: Added a patch to improve Windows support.  Thanks to Alain
-            Frisch <alain@frisch.fr> for the patch!
-
-2007-09-04: Fixed a minor bug converting status codes.
-
-2007-08-20: Fixed a GC-bug related to user-defined SQL-functions.
-
-            Thanks to Enrico Tassi <gareuselesinge@virgilio.it> for the
-            test case to replicate this problem!
-
-2007-06-17: Added support for user-defined scalar functions.  Thanks to
-            Enrico Tassi <gareuselesinge@virgilio.it> for the patch!
-
-            Switched to sqlite3_prepare_v2 internally to avoid the older,
-            deprecated sqlite3_prepare-function.  Thanks to Gabriel
-            Kerneis <gabriel@kerneis.info> for the hint!
-
-            Removed exec_sql-function, which was buggy in the last
-            release anyway (thanks to Paul Stodghill <ps27@cornell.edu>
-            for pointing this out!).  Its interface hides too much
-            important information from the user (e.g. BUSY-steps, etc.).
-            It did not seem possible to design a function that made
-            it as simple as exec_sql to run an SQL-statement without
-            inviting the user to write buggy/incomplete code, or that
-            wouldn't make the interface almost as complicated as just
-            writing the correct code that handles all cases by oneself.
-
-2007-05-07: Further GC-bug fixes.  There was a design bug in the library
-            that was causing all these GC issues (C-structs allocated
-            in the OCaml-heap).  This obviously seemed safe (and more
-            efficient) to the initial author, but after extensive checking
-            it became apparent that this just does not work if C-structs
-            reference each other, because the GC might move these memory
-            regions.  It seems safer to allocate C-structs with "malloc",
-            and use an indirection to access them.
-
-2007-05-04: Fixed several GC-bugs, and improved thread interaction.
-
-2007-04-23: callback_exn -> caml_callback_exn.
-
-2007-03-30: Fixed a GC-bug.
-
-2007-03-19: Fixed an installation problem on Cygwin.
-
-            Thanks to James Cheney <james.cheney@gmail.com> for the hint!
-
-2007-02-27: Small API-change: the callback for exec is now an optional
-            argument.
-
-            Added three more "exec"-functions, which do or do not take
-            headers or handle NULL-values.
-
-            Improved quality of C-code (removed warnings).
-
-2007-02-23: Fixed a bug in the "db_close"-function.  Improved documentation.
-
-2007-02-19: Added check for out of memory after malloc.
-
-2007-01-31: Fixed build problem on x86_64: added -fPIC flag to compilation
-            of C-stubs.
-
-2007-01-17: Complete rewrite by Markus Mottl <markus.mottl@gmail.com>.
-
-2005-04-??: Initial coding (0.1) by
-            Christian Szegedy <csdontspam871@metamatix.org>.
+(* OASIS_START *)
+(* DO NOT EDIT (digest: 4b03d3c2252969fb579b92758c53f3a5) *)
+This is the INSTALL file for the sqlite3-ocaml distribution.
+
+This package uses OASIS to generate its build system. See section OASIS for
+full information. 
+
+Dependencies
+============
+
+In order to compile this package, you will need:
+* ocaml (>= 3.12) for all, test test_agg, test test_db, test test_exec,
+  test test_fun, test test_stmt, doc API
+* findlib (>= 1.3.2)
+
+Installing
+==========
+
+1. Uncompress the source archive and go to the root of the package
+2. Run 'ocaml setup.ml -configure'
+3. Run 'ocaml setup.ml -build'
+4. Run 'ocaml setup.ml -install'
+
+Uninstalling
+============
+
+1. Go to the root of the package 
+2. Run 'ocaml setup.ml -uninstall'
+
+OASIS
+=====
+
+OASIS is a program that generates a setup.ml file using a simple '_oasis'
+configuration file. The generated setup only depends on the standard OCaml
+installation: no additional library is required.
+
+(* OASIS_STOP *)

File META.in

-name="Sqlite3"
-version="@PACKAGE_VERSION@"
-description="Ocaml bindings to Sqlite 3._._"
-requires=""
-archive(byte) = "sqlite3.cma"
-archive(native) = "sqlite3.cmxa"
+# OASIS_START
+# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb)
+
+SETUP = ocaml setup.ml
+
+build: setup.data
+	$(SETUP) -build $(BUILDFLAGS)
+
+doc: setup.data build
+	$(SETUP) -doc $(DOCFLAGS)
+
+test: setup.data build
+	$(SETUP) -test $(TESTFLAGS)
+
+all: 
+	$(SETUP) -all $(ALLFLAGS)
+
+install: setup.data
+	$(SETUP) -install $(INSTALLFLAGS)
+
+uninstall: setup.data
+	$(SETUP) -uninstall $(UNINSTALLFLAGS)
+
+reinstall: setup.data
+	$(SETUP) -reinstall $(REINSTALLFLAGS)
+
+clean: 
+	$(SETUP) -clean $(CLEANFLAGS)
+
+distclean: 
+	$(SETUP) -distclean $(DISTCLEANFLAGS)
+
+setup.data:
+	$(SETUP) -configure $(CONFIGUREFLAGS)
+
+.PHONY: build doc test all install uninstall reinstall clean distclean configure
+
+# OASIS_STOP

File Makefile.in

-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-
-HAS_ENABLE_LOAD_EXTENSION=@HAS_ENABLE_LOAD_EXTENSION@
-ifeq ($(HAS_ENABLE_LOAD_EXTENSION), true)
-  HAS_ENABLE_LOAD_EXTENSION= -DHAS_ENABLE_LOAD_EXTENSION
-  OCDOCFLAGS=-pp "cpp -traditional-cpp -DHAS_ENABLE_LOAD_EXTENSION"
-else
-  HAS_ENABLE_LOAD_EXTENSION=
-  OCDOCFLAGS=-pp "cpp -traditional-cpp"
-endif
-
-OCFLAGS = $(OCDOCFLAGS) -w Aer -strict-sequence
-
-CC=@CC@
-CFLAGS=@CPPFLAGS@ @CFLAGS@ $(HAS_ENABLE_LOAD_EXTENSION) -fPIC -Wall -pedantic -Werror -Wno-long-long
-LIBS=@LIBS@
-LDFLAGS=@LDFLAGS@
-
-# -linkall: all users of this library must load all our modules;
-# in particular, we need sqlite3.cmo to register some exceptions.
-MKLIBFLAGS=-linkall
-
-INSTALL=@INSTALL@
-
-all: bytecode opt docs test
-
-docs:
-	if [ ! -d doc ]; then mkdir doc; fi
-	ocamldoc $(OCDOCFLAGS) -html -d doc sqlite3.mli
-
-bytecode: sqlite3.cma sqlite3top
-
-opt: sqlite3.cmxa
-
-test:	bytecode opt
-	@cd test && $(MAKE) all
-
-clean:
-	@cd test && $(MAKE) clean
-	rm -f *.o *.cmo *.cmx *.cmi *.so *.cma *.cmxa *.a sqlite3top
-
-distclean: clean
-	rm -rf autom4te.* config.* META Makefile doc
-
-# install rebuilds sqlite3top to point to the findlib-managed dll and not the
-# one in .
-install: sqlite3.cma sqlite3.cmxa sqlite3top
-	[ -f *.so ] && SO_FILES=*.so; \
-	ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
-	ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma
-	$(INSTALL) sqlite3top $(bindir)/sqlite3top
-
-remove: uninstall
-uninstall:
-	ocamlfind remove sqlite3
-	rm -f $(bindir)/sqlite3top
-
-update: sqlite3.cma
-	ocamlfind remove sqlite3
-	make install
-
-sqlite3top: sqlite3.cma
-	ocamlfind ocamlmktop -o sqlite3top sqlite3.cma
-
-sqlite3.cma: sqlite3.cmo sqlite3_stubs.o
-	ocamlmklib -o sqlite3 -oc sqlite3_stubs sqlite3.cmo sqlite3_stubs.o -L. $(LDFLAGS) $(LIBS) $(MKLIBFLAGS)
-
-sqlite3.cmxa: sqlite3.cmx sqlite3.o sqlite3_stubs.o
-	ocamlmklib -o sqlite3 -oc sqlite3_stubs sqlite3.cmx sqlite3_stubs.o -L. $(LDFLAGS) $(LIBS) $(MKLIBFLAGS)
-
-sqlite3.cmo: sqlite3.cmi sqlite3.ml
-
-.SUFFIXES: .ml .mli .cmo .cmi .cmx
-
-.mli.cmi:
-	ocamlc $(OCFLAGS) -c $<
-.ml.cmo:
-	ocamlc $(OCFLAGS) -c $<
-.ml.cmx:
-	ocamlc $(OCFLAGS) -c $*.mli
-	ocamlopt -inline 20 $(OCFLAGS) -c $<

File README.txt

-SQLite3 bindings for Objective Caml
-===================================
-
-  Copyright (c) 2005 Christian Szegedy <csdontdpam871@metamatix.org>
-
-  Copyright (c) 2007 Jane Street Holding, LLC
-                     1 New York Plaza, 33rd Floor
-                     New York, NY 10004
-                     USA
-                     Author: Markus Mottl <markus.mottl@gmail.com>
-
-  Copyright (c) 2007 Enrico Tassi <gareuselesinge@virgilio.it>
-
-DESCRIPTION:
-
-  * SQLite 3 database library wrapper for OCaml.
-
-  * SQLite 3 is available from http://www.sqlite.org
-
-  * This wrapper is written in a way that enables a friendly coexistence
-    with the old (version 2) sqlite and its OCaml wrapper ocaml-sqlite.
-
-REQUIREMENTS:
-
-  * OCaml 3.11 or above
-
-  * ocamlfind
-
-  * SQLite library (tested on 3.3.3 version)
-
-    * libsqlite3.a installed in /usr/lib or /usr/local/lib. If it
-      is installed somewhere else, modify configure.ac accordingly.
-
-    * sqlite3.h installed in /usr/include or /usr/local/include.
-      If it is installed anywhere else, modify configure.ac accordingly.
-
-    * For versions other than 3.3.3 the wrapping of error codes should
-      be checked.
-
-INSTALLATION:
-
-  To build and install the bindings:
-
-    ./configure   # Makefile & META files
-    make bytecode # bytecode library
-    make opt      # native library
-    make doc      # documentation
-    make all      # both native and bytecode
-    make install  # install
-    make remove   # uninstall
-
-  To build the test examples:
-
-    cd test
-
-    # execute one of:
-
-    ocamlfind ocamlopt -package sqlite3 -linkpkg test_db.ml
-    ocamlfind ocamlopt -package sqlite3 -linkpkg test_exec.ml
-    ocamlfind ocamlopt -package sqlite3 -linkpkg test_stmt.ml
-    ocamlfind ocamlopt -package sqlite3 -linkpkg test_fun.ml
-
-LICENSE:
-
-  The package is released under the MIT license, see COPYING file for
-  details.
-
-CREDITS:
-
-  Enrico Tassi contributed support for user-defined scalar functions.
-
-  Markus Mottl rewrote Christian's bindings for Jane Street Holding to
-  clean up a few things and to make it perform better in multi-threaded
-  environments.
-
-  Christian Szegedy wrote the initial release for SQLite version 3.
-
-  Mikhail Fedotov wrote ocaml-sqlite for SQLite version 2.
-  His binding served as a reference for this wrapper, but sqlite3
-  is written completely from scratch since the C interface changed
-  significantly.
-
-LINKS:
-
-  http://caml.inria.fr - OCaml language
-  http://www.sqlite.org - SQLite library

File TODO

-1) More testing
-
-2) An even higher level function for execution of queries in a more
-   convenient way.  It should handle busy queries and expired statements
-   automatically.
-
-3) TODO: Add the following wrappers:
-
-  a) Better SQL Function support (aggregating ones)
-  b) Collation support
-  c) Authorization support
-  d) Trace/profile support
-  e) progress handler support
-  f) commit hook support
-  g) global_recover, get_autocommit, db_handle, temp_directory
-  h) encryption support (not in SQLite anyway)
+1. More testing
+
+2. An even higher level function for execution of queries in a more
+   convenient way.  It should handle busy queries and expired statements
+   automatically.
+
+3. TODO: Add the following wrappers:
+
+     a. Better SQL Function support (aggregating ones)
+     b. Collation support
+     c. Authorization support
+     d. Trace/profile support
+     e. progress handler support
+     f. commit hook support
+     g. global_recover, get_autocommit, db_handle, temp_directory
+     h. encryption support (not in SQLite anyway)
+OASISFormat:      0.3
+Name:             sqlite3-ocaml
+Version:          1.6.4
+Synopsis:         sqlite3-ocaml - bindings to the SQLite3 library
+Description:      sqlite3-ocaml offers library functions for accessing SQLite3 database
+Authors:          Markus Mottl <markus.mottl@gmail.com>,
+                  Christian Szegedy <csdontspam@metamatix.com>
+Copyrights:       (C) 2007-2010 Jane Street Holding LLC <opensource@janestreet.com>,
+                  (C) 2010-2012 Markus Mottl <markus.mottl@gmail.com>,
+                  (C) 2005-2012 Christian Szegedy <csdontspam@metamatix.com>
+Maintainers:      Markus Mottl <markus.mottl@gmail.com>,
+                  Christian Szegedy <csdontspam@metamatix.com>
+LicenseFile:      COPYING.txt
+License:          LGPL-2.1+ with OCaml linking exception
+OCamlVersion:     >= 3.12
+FindlibVersion:   >= 1.3.2
+Homepage:         https://bitbucket.org/mmottl/sqlite3-ocaml
+#Categories:
+#FilesAB:
+
+Plugins:          META (0.3), StdFiles (0.3), DevFiles (0.3)
+XStdFilesREADME:  false
+
+BuildTools:       ocamldoc, ocamlbuild
+
+Flag strict
+  Description:    Strict compile-time checks
+  Default:        true
+
+Library sqlite3
+  Path:           lib
+  FindlibName:    sqlite3
+  Modules:        Sqlite3
+  CSources:       sqlite3_stubs.c
+  CCOpt:          -g -O2 -fPIC -DPIC
+  if flag(strict) && ccomp_type(cc)
+    CCOpt+:       -Wall -pedantic -Wextra -Wunused -Wno-long-long
+  CCLib:          -lsqlite3
+
+
+# Tests
+
+Executable test_agg
+  Path:           test
+  MainIs:         test_agg.ml
+  Build$:         flag(tests)
+  Install:        false
+  BuildDepends:   sqlite3
+  CompiledObject: best
+
+Test test_agg
+  Run$:               flag(tests)
+  Command:            $test_agg
+  WorkingDirectory:   test
+
+Executable test_db
+  Path:           test
+  MainIs:         test_db.ml
+  Build$:         flag(tests)
+  Install:        false
+  BuildDepends:   sqlite3
+  CompiledObject: best
+
+Test test_db
+  Run$:               flag(tests)
+  Command:            $test_db
+  WorkingDirectory:   test
+
+Executable test_exec
+  Path:           test
+  MainIs:         test_exec.ml
+  Build$:         flag(tests)
+  Install:        false
+  BuildDepends:   sqlite3
+  CompiledObject: best
+
+Test test_exec
+  Run$:               flag(tests)
+  Command:            $test_exec
+  WorkingDirectory:   test
+
+Executable test_fun
+  Path:           test
+  MainIs:         test_fun.ml
+  Build$:         flag(tests)
+  Install:        false
+  BuildDepends:   sqlite3, str
+  CompiledObject: best
+
+Test test_fun
+  Run$:               flag(tests)
+  Command:            $test_fun
+  WorkingDirectory:   test
+
+Executable test_stmt
+  Path:           test
+  MainIs:         test_stmt.ml
+  Build$:         flag(tests)
+  Install:        false
+  BuildDepends:   sqlite3
+  CompiledObject: best
+
+Test test_stmt
+  Run$:               flag(tests)
+  Command:            $test_stmt
+  WorkingDirectory:   test
+  PostCommand:        rm t
+
+#
+
+Document API
+  Title:                API reference for sqlite3-ocaml
+  Type:                 OCamlbuild (0.3)
+  InstallDir:           $docdir/api
+  XOCamlbuildPath:      .
+  XOCamlbuildLibraries: sqlite3
+
+SourceRepository trunk
+  Type:       hg
+  Location:   ssh://hg@bitbucket.org/mmottl/sqlite3-ocaml
+  Browser:    https://bitbucket.org/mmottl/sqlite3-ocaml
+  Tag:        release-$(pkg_version)
-<test>: include
-<test/*>: use_sqlite3, use_str
+# OASIS_START
+# DO NOT EDIT (digest: 464fa2ec42f6bd6d1b210bfbe99a91cc)
+# Ignore VCS directories, you can use the same kind of rule outside 
+# OASIS_START/STOP if you want to exclude directories that contains 
+# useless stuff for the build process
+<**/.svn>: -traverse
+<**/.svn>: not_hygienic
+".bzr": -traverse
+".bzr": not_hygienic
+".hg": -traverse
+".hg": not_hygienic
+".git": -traverse
+".git": not_hygienic
+"_darcs": -traverse
+"_darcs": not_hygienic
+# Library sqlite3
+"lib/sqlite3.cmxs": use_sqlite3
+<lib/*.ml{,i}>: oasis_library_sqlite3_ccopt
+"lib/sqlite3_stubs.c": oasis_library_sqlite3_ccopt
+<lib/sqlite3.{cma,cmxa}>: oasis_library_sqlite3_cclib
+"lib/libsqlite3_stubs.lib": oasis_library_sqlite3_cclib
+"lib/dllsqlite3_stubs.dll": oasis_library_sqlite3_cclib
+"lib/libsqlite3_stubs.a": oasis_library_sqlite3_cclib
+"lib/dllsqlite3_stubs.so": oasis_library_sqlite3_cclib
+<lib/sqlite3.{cma,cmxa}>: use_libsqlite3_stubs
+# Executable test_agg
+<test/test_agg.{native,byte}>: use_sqlite3
+# Executable test_db
+<test/test_db.{native,byte}>: use_sqlite3
+# Executable test_exec
+<test/test_exec.{native,byte}>: use_sqlite3
+# Executable test_fun
+<test/test_fun.{native,byte}>: use_sqlite3
+<test/test_fun.{native,byte}>: pkg_str
+<test/*.ml{,i}>: pkg_str
+# Executable test_stmt
+<test/test_stmt.{native,byte}>: use_sqlite3
+<test/*.ml{,i}>: use_sqlite3
+# OASIS_STOP
+<**/*.ml{,i}>: warn_A, warn_e, warn_r, annot
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for sqlite-ocaml 1.6.3.
-#
-# Report bugs to <markus.mottl@gmail.com>.
-#
-#
-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
+#!/bin/sh
 
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in #(
-  *posix*) :
-    set -o posix ;; #(
-  *) :
-     ;;
-esac
-fi
+# OASIS_START
+# DO NOT EDIT (digest: 425187ed8bfdbdd207fd76392dd243a7)
+set -e
 
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
-    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='print -r --'
-  as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='printf %s\n'
-  as_echo_n='printf %s'
-else
-  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
-    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
-    as_echo_n='/usr/ucb/echo -n'
-  else
-    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
-    as_echo_n_body='eval
-      arg=$1;
-      case $arg in #(
-      *"$as_nl"*)
-	expr "X$arg" : "X\\(.*\\)$as_nl";
-	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
-      esac;
-      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
-    '
-    export as_echo_n_body
-    as_echo_n='sh -c $as_echo_n_body as_echo'
-  fi
-  export as_echo_body
-  as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  PATH_SEPARATOR=:
-  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
-    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
-      PATH_SEPARATOR=';'
-  }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" ""	$as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-  done
-IFS=$as_save_IFS
-
-     ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
-  exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there.  '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
-  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# Use a proper internal environment variable to ensure we don't fall
-  # into an infinite loop, continuously re-executing ourselves.
-  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
-    _as_can_reexec=no; export _as_can_reexec;
-    # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
-  *v*x* | *x*v* ) as_opts=-vx ;;
-  *v* ) as_opts=-v ;;
-  *x* ) as_opts=-x ;;
-  * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-as_fn_exit 255
-  fi
-  # We don't want this to propagate to other subprocesses.
-          { _as_can_reexec=; unset _as_can_reexec;}
-if test "x$CONFIG_SHELL" = x; then
-  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '\${1+\"\$@\"}'='\"\$@\"'
-  setopt NO_GLOB_SUBST
-else
-  case \`(set -o) 2>/dev/null\` in #(
-  *posix*) :
-    set -o posix ;; #(
-  *) :
-     ;;
-esac
-fi
-"
-  as_required="as_fn_return () { (exit \$1); }
-as_fn_success () { as_fn_return 0; }
-as_fn_failure () { as_fn_return 1; }
-as_fn_ret_success () { return 0; }
-as_fn_ret_failure () { return 1; }
-
-exitcode=0
-as_fn_success || { exitcode=1; echo as_fn_success failed.; }
-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
-
-else
-  exitcode=1; echo positional parameters were not saved.
-fi
-test x\$exitcode = x0 || exit 1
-test -x / || exit 1"
-  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
-  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
-  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
-  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
-test \$(( 1 + 1 )) = 2 || exit 1"
-  if (eval "$as_required") 2>/dev/null; then :
-  as_have_required=yes
-else
-  as_have_required=no
-fi
-  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
-
-else
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_found=false
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  as_found=:
-  case $as_dir in #(
-	 /*)
-	   for as_base in sh bash ksh sh5; do
-	     # Try only shells that exist, to save several forks.
-	     as_shell=$as_dir/$as_base
-	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
-		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
-  CONFIG_SHELL=$as_shell as_have_required=yes
-		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
-  break 2
-fi
-fi
-	   done;;
-       esac
-  as_found=false
-done
-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
-	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
-  CONFIG_SHELL=$SHELL as_have_required=yes
-fi; }
-IFS=$as_save_IFS
-
-
-      if test "x$CONFIG_SHELL" != x; then :
-  export CONFIG_SHELL
-             # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
-  *v*x* | *x*v* ) as_opts=-vx ;;
-  *v* ) as_opts=-v ;;
-  *x* ) as_opts=-x ;;
-  * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-exit 255
-fi
-
-    if test x$as_have_required = xno; then :
-  $as_echo "$0: This script requires a shell more modern than all"
-  $as_echo "$0: the shells that I found on your system."
-  if test x${ZSH_VERSION+set} = xset ; then
-    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
-    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
-  else
-    $as_echo "$0: Please tell bug-autoconf@gnu.org and
-$0: markus.mottl@gmail.com about your system, including any
-$0: error possibly output before this message. Then install
-$0: a modern shell, or manually run the script under such a
-$0: shell if you do have one."
-  fi
-  exit 1
-fi
-fi
-fi
-SHELL=${CONFIG_SHELL-/bin/sh}
-export SHELL
-# Unset more variables known to interfere with behavior of common tools.
-CLICOLOR_FORCE= GREP_OPTIONS=
-unset CLICOLOR_FORCE GREP_OPTIONS
-
-## --------------------- ##
-## M4sh Shell Functions. ##
-## --------------------- ##
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
-  { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
-  return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
-  set +e
-  as_fn_set_status $1
-  exit $1
-} # as_fn_exit
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
-  case $as_dir in #(
-  -*) as_dir=./$as_dir;;
-  esac
-  test -d "$as_dir" || eval $as_mkdir_p || {
-    as_dirs=
-    while :; do
-      case $as_dir in #(
-      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
-      *) as_qdir=$as_dir;;
-      esac
-      as_dirs="'$as_qdir' $as_dirs"
-      as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$as_dir" : 'X\(//\)[^/]' \| \
-	 X"$as_dir" : 'X\(//\)$' \| \
-	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-      test -d "$as_dir" && break
-    done
-    test -z "$as_dirs" || eval "mkdir $as_dirs"
-  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
-  test -f "$1" && test -x "$1"
-} # as_fn_executable_p
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
-  eval 'as_fn_append ()
-  {
-    eval $1+=\$2
-  }'
-else
-  as_fn_append ()
-  {
-    eval $1=\$$1\$2
-  }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
-  eval 'as_fn_arith ()
-  {
-    as_val=$(( $* ))
-  }'
-else
-  as_fn_arith ()
-  {
-    as_val=`expr "$@" || test $? -eq 1`
-  }
-fi # as_fn_arith
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
-  as_status=$1; test $as_status -eq 0 && as_status=1
-  if test "$4"; then
-    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
-  fi
-  $as_echo "$as_me: error: $2" >&2
-  as_fn_exit $as_status
-} # as_fn_error
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
-   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-  as_expr=expr
-else
-  as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
-  as_basename=basename
-else
-  as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
-  as_dirname=dirname
-else
-  as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
-	 X"$0" : 'X\(//\)$' \| \
-	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
-    sed '/^.*\/\([^/][^/]*\)\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\/\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\/\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-
-  as_lineno_1=$LINENO as_lineno_1a=$LINENO
-  as_lineno_2=$LINENO as_lineno_2a=$LINENO
-  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
-  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
-  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
-  sed -n '
-    p
-    /[$]LINENO/=
-  ' <$as_myself |
-    sed '
-      s/[$]LINENO.*/&-/
-      t lineno
-      b
-      :lineno
-      N
-      :loop
-      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
-      t loop
-      s/-\n.*//
-    ' >$as_me.lineno &&
-  chmod +x "$as_me.lineno" ||
-    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
-
-  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
-  # already done that, so ensure we don't try to do so again and fall
-  # in an infinite loop.  This has already happened in practice.
-  _as_can_reexec=no; export _as_can_reexec
-  # Don't try to exec as it changes $[0], causing all sort of problems
-  # (the dirname of $[0] is not the place where we might find the
-  # original and so on.  Autoconf is especially sensitive to this).
-  . "./$as_me.lineno"
-  # Exit status is that of the last command.
-  exit
-}
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
-  case `echo 'xy\c'` in
-  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
-  xy)  ECHO_C='\c';;
-  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
-       ECHO_T='	';;
-  esac;;
-*)
-  ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
-  rm -f conf$$.dir/conf$$.file
-else
-  rm -f conf$$.dir
-  mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
-  if ln -s conf$$.file conf$$ 2>/dev/null; then
-    as_ln_s='ln -s'
-    # ... but there are two gotchas:
-    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
-    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
-    # In both cases, we have to default to `cp -pR'.
-    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
-      as_ln_s='cp -pR'
-  elif ln conf$$.file conf$$ 2>/dev/null; then
-    as_ln_s=ln
-  else
-    as_ln_s='cp -pR'
-  fi
-else
-  as_ln_s='cp -pR'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-if mkdir -p . 2>/dev/null; then
-  as_mkdir_p='mkdir -p "$as_dir"'
-else
-  test -d ./-p && rmdir ./-p
-  as_mkdir_p=false
-fi
-
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-test -n "$DJDIR" || exec 7<&0 </dev/null
-exec 6>&1
-
-# Name of the host.
-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
-# so uname gets run too.
-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-
-#
-# Initializations.
-#
-ac_default_prefix=/usr/local
-ac_clean_files=
-ac_config_libobj_dir=.
-LIBOBJS=
-cross_compiling=no
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-
-# Identity of this package.
-PACKAGE_NAME='sqlite-ocaml'
-PACKAGE_TARNAME='sqlite-ocaml'
-PACKAGE_VERSION='1.6.3'
-PACKAGE_STRING='sqlite-ocaml 1.6.3'
-PACKAGE_BUGREPORT='markus.mottl@gmail.com'
-PACKAGE_URL=''
-
-ac_unique_file="sqlite3.mli"
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-#  include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_STRING_H
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
-#  include <memory.h>
-# endif
-# include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_subst_vars='LTLIBOBJS
-LIBOBJS
-HAS_ENABLE_LOAD_EXTENSION
-EGREP
-GREP
-CPP
-OBJEXT
-EXEEXT
-ac_ct_CC
-CPPFLAGS
-LDFLAGS
-CFLAGS
-CC
-INSTALL
-INSTALL_DATA
-INSTALL_SCRIPT
-INSTALL_PROGRAM
-ocamlfind
-ocamlopt
-ocamlc
-target_alias
-host_alias
-build_alias
-LIBS
-ECHO_T
-ECHO_N
-ECHO_C
-DEFS
-mandir
-localedir
-libdir
-psdir
-pdfdir
-dvidir
-htmldir
-infodir
-docdir
-oldincludedir
-includedir
-localstatedir
-sharedstatedir
-sysconfdir
-datadir
-datarootdir
-libexecdir
-sbindir
-bindir
-program_transform_name
-prefix
-exec_prefix
-PACKAGE_URL
-PACKAGE_BUGREPORT
-PACKAGE_STRING
-PACKAGE_VERSION
-PACKAGE_TARNAME
-PACKAGE_NAME
-PATH_SEPARATOR
-SHELL'
-ac_subst_files=''
-ac_user_opts='
-enable_option_checking
-with_sqlite3
-'
-      ac_precious_vars='build_alias
-host_alias
-target_alias
-CC
-CFLAGS
-LDFLAGS
-LIBS
-CPPFLAGS
-CPP'
-
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-ac_unrecognized_opts=
-ac_unrecognized_sep=
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-cache_file=/dev/null
-exec_prefix=NONE
-no_create=
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-verbose=
-x_includes=NONE
-x_libraries=NONE
-
-# Installation directory options.
-# These are left unexpanded so users can "make install exec_prefix=/foo"
-# and all the variables that are supposed to be based on exec_prefix
-# by default will actually change.
-# Use braces instead of parens because sh, perl, etc. also accept them.
-# (The list follows the same order as the GNU Coding Standards.)
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datarootdir='${prefix}/share'
-datadir='${datarootdir}'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
-infodir='${datarootdir}/info'
-htmldir='${docdir}'
-dvidir='${docdir}'
-pdfdir='${docdir}'
-psdir='${docdir}'
-libdir='${exec_prefix}/lib'
-localedir='${datarootdir}/locale'
-mandir='${datarootdir}/man'
-
-ac_prev=
-ac_dashdash=
-for ac_option
-do
-  # If the previous option needs an argument, assign it.
-  if test -n "$ac_prev"; then
-    eval $ac_prev=\$ac_option
-    ac_prev=
-    continue
+FST=true
+for i in "$@"; do 
+  if $FST; then
+    set --
+    FST=false
   fi
 
-  case $ac_option in
-  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
-  *=)   ac_optarg= ;;
-  *)    ac_optarg=yes ;;
-  esac
-
-  # Accept the important Cygnus configure options, so we can diagnose typos.
-
-  case $ac_dashdash$ac_option in
-  --)
-    ac_dashdash=yes ;;
-
-  -bindir | --bindir | --bindi | --bind | --bin | --bi)
-    ac_prev=bindir ;;
-  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
-    bindir=$ac_optarg ;;
-
-  -build | --build | --buil | --bui | --bu)
-    ac_prev=build_alias ;;
-  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
-    build_alias=$ac_optarg ;;
-
-  -cache-file | --cache-file | --cache-fil | --cache-fi \
-  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
-    ac_prev=cache_file ;;
-  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
-  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
-    cache_file=$ac_optarg ;;
-
-  --config-cache | -C)
-    cache_file=config.cache ;;
-
-  -datadir | --datadir | --datadi | --datad)
-    ac_prev=datadir ;;
-  -datadir=* | --datadir=* | --datadi=* | --datad=*)
-    datadir=$ac_optarg ;;
-
-  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
-  | --dataroo | --dataro | --datar)
-    ac_prev=datarootdir ;;
-  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
-  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
-    datarootdir=$ac_optarg ;;
-
-  -disable-* | --disable-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid feature name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"enable_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval enable_$ac_useropt=no ;;
-
-  -docdir | --docdir | --docdi | --doc | --do)
-    ac_prev=docdir ;;
-  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
-    docdir=$ac_optarg ;;
-
-  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
-    ac_prev=dvidir ;;
-  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
-    dvidir=$ac_optarg ;;
-
-  -enable-* | --enable-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid feature name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"enable_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval enable_$ac_useropt=\$ac_optarg ;;
-
-  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
-  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
-  | --exec | --exe | --ex)
-    ac_prev=exec_prefix ;;
-  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
-  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
-  | --exec=* | --exe=* | --ex=*)
-    exec_prefix=$ac_optarg ;;
-
-  -gas | --gas | --ga | --g)
-    # Obsolete; use --with-gas.
-    with_gas=yes ;;
-
-  -help | --help | --hel | --he | -h)
-    ac_init_help=long ;;
-  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
-    ac_init_help=recursive ;;
-  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
-    ac_init_help=short ;;
-
-  -host | --host | --hos | --ho)
-    ac_prev=host_alias ;;
-  -host=* | --host=* | --hos=* | --ho=*)
-    host_alias=$ac_optarg ;;
-
-  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
-    ac_prev=htmldir ;;
-  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
-  | --ht=*)
-    htmldir=$ac_optarg ;;
-
-  -includedir | --includedir | --includedi | --included | --include \
-  | --includ | --inclu | --incl | --inc)
-    ac_prev=includedir ;;
-  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
-  | --includ=* | --inclu=* | --incl=* | --inc=*)
-    includedir=$ac_optarg ;;
-
-  -infodir | --infodir | --infodi | --infod | --info | --inf)
-    ac_prev=infodir ;;
-  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
-    infodir=$ac_optarg ;;
-
-  -libdir | --libdir | --libdi | --libd)
-    ac_prev=libdir ;;
-  -libdir=* | --libdir=* | --libdi=* | --libd=*)
-    libdir=$ac_optarg ;;
-
-  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
-  | --libexe | --libex | --libe)
-    ac_prev=libexecdir ;;
-  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
-  | --libexe=* | --libex=* | --libe=*)
-    libexecdir=$ac_optarg ;;
-
-  -localedir | --localedir | --localedi | --localed | --locale)
-    ac_prev=localedir ;;
-  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
-    localedir=$ac_optarg ;;
-
-  -localstatedir | --localstatedir | --localstatedi | --localstated \
-  | --localstate | --localstat | --localsta | --localst | --locals)
-    ac_prev=localstatedir ;;
-  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
-  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
-    localstatedir=$ac_optarg ;;
-
-  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
-    ac_prev=mandir ;;
-  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
-    mandir=$ac_optarg ;;
-
-  -nfp | --nfp | --nf)
-    # Obsolete; use --without-fp.
-    with_fp=no ;;
-
-  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
-  | --no-cr | --no-c | -n)
-    no_create=yes ;;
-
-  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
-  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
-    no_recursion=yes ;;
-
-  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
-  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
-  | --oldin | --oldi | --old | --ol | --o)
-    ac_prev=oldincludedir ;;
-  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
-  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
-  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
-    oldincludedir=$ac_optarg ;;
-
-  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
-    ac_prev=prefix ;;
-  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
-    prefix=$ac_optarg ;;
-
-  -program-prefix | --program-prefix | --program-prefi | --program-pref \
-  | --program-pre | --program-pr | --program-p)
-    ac_prev=program_prefix ;;
-  -program-prefix=* | --program-prefix=* | --program-prefi=* \
-  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
-    program_prefix=$ac_optarg ;;
-
-  -program-suffix | --program-suffix | --program-suffi | --program-suff \
-  | --program-suf | --program-su | --program-s)
-    ac_prev=program_suffix ;;
-  -program-suffix=* | --program-suffix=* | --program-suffi=* \
-  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
-    program_suffix=$ac_optarg ;;
-
-  -program-transform-name | --program-transform-name \
-  | --program-transform-nam | --program-transform-na \
-  | --program-transform-n | --program-transform- \
-  | --program-transform | --program-transfor \
-  | --program-transfo | --program-transf \
-  | --program-trans | --program-tran \
-  | --progr-tra | --program-tr | --program-t)
-    ac_prev=program_transform_name ;;
-  -program-transform-name=* | --program-transform-name=* \
-  | --program-transform-nam=* | --program-transform-na=* \
-  | --program-transform-n=* | --program-transform-=* \
-  | --program-transform=* | --program-transfor=* \
-  | --program-transfo=* | --program-transf=* \
-  | --program-trans=* | --program-tran=* \
-  | --progr-tra=* | --program-tr=* | --program-t=*)
-    program_transform_name=$ac_optarg ;;
-
-  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
-    ac_prev=pdfdir ;;
-  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
-    pdfdir=$ac_optarg ;;
-
-  -psdir | --psdir | --psdi | --psd | --ps)
-    ac_prev=psdir ;;
-  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
-    psdir=$ac_optarg ;;
-
-  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-  | -silent | --silent | --silen | --sile | --sil)
-    silent=yes ;;
-
-  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
-    ac_prev=sbindir ;;
-  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
-  | --sbi=* | --sb=*)
-    sbindir=$ac_optarg ;;
-
-  -sharedstatedir | --sharedstatedir | --sharedstatedi \
-  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
-  | --sharedst | --shareds | --shared | --share | --shar \
-  | --sha | --sh)
-    ac_prev=sharedstatedir ;;
-  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
-  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
-  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
-  | --sha=* | --sh=*)
-    sharedstatedir=$ac_optarg ;;
-
-  -site | --site | --sit)
-    ac_prev=site ;;
-  -site=* | --site=* | --sit=*)
-    site=$ac_optarg ;;
-
-  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
-    ac_prev=srcdir ;;
-  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
-    srcdir=$ac_optarg ;;
-
-  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
-  | --syscon | --sysco | --sysc | --sys | --sy)
-    ac_prev=sysconfdir ;;
-  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
-  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
-    sysconfdir=$ac_optarg ;;
-
-  -target | --target | --targe | --targ | --tar | --ta | --t)
-    ac_prev=target_alias ;;
-  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
-    target_alias=$ac_optarg ;;
-
-  -v | -verbose | --verbose | --verbos | --verbo | --verb)
-    verbose=yes ;;
-
-  -version | --version | --versio | --versi | --vers | -V)
-    ac_init_version=: ;;
-
-  -with-* | --with-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid package name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"with_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval with_$ac_useropt=\$ac_optarg ;;
-
-  -without-* | --without-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid package name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"with_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval with_$ac_useropt=no ;;
-
-  --x)
-    # Obsolete; use --with-x.
-    with_x=yes ;;
-
-  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
-  | --x-incl | --x-inc | --x-in | --x-i)
-    ac_prev=x_includes ;;
-  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
-  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
-    x_includes=$ac_optarg ;;
-
-  -x-libraries | --x-libraries | --x-librarie | --x-librari \
-  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
-    ac_prev=x_libraries ;;
-  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
-  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
-    x_libraries=$ac_optarg ;;
-
-  -*) as_fn_error $? "unrecognized option: \`$ac_option'
-Try \`$0 --help' for more information"
-    ;;
-
-  *=*)
-    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
-    # Reject names that are not valid shell variable names.
-    case $ac_envvar in #(
-      '' | [0-9]* | *[!_$as_cr_alnum]* )
-      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
-    esac
-    eval $ac_envvar=\$ac_optarg
-    export $ac_envvar ;;
-
-  *)
-    # FIXME: should be removed in autoconf 3.0.
-    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
-    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
-    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
-    ;;
-
+  case $i in
+    --*=*)
+      ARG=${i%%=*}
+      VAL=${i##*=}
+      set -- "$@" "$ARG" "$VAL"
+      ;;
+    *)
+      set -- "$@" "$i"
+      ;;
   esac
 done
 
-if test -n "$ac_prev"; then
-  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
-  as_fn_error $? "missing argument to $ac_option"
-fi
-
-if test -n "$ac_unrecognized_opts"; then
-  case $enable_option_checking in
-    no) ;;
-    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
-    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
-  esac
-fi
-
-# Check all directory arguments for consistency.
-for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
-		datadir sysconfdir sharedstatedir localstatedir includedir \
-		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-		libdir localedir mandir
-do
-  eval ac_val=\$$ac_var
-  # Remove trailing slashes.
-  case $ac_val in
-    */ )
-      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
-      eval $ac_var=\$ac_val;;
-  esac
-  # Be sure to have absolute directory names.
-  case $ac_val in
-    [\\/$]* | ?:[\\/]* )  continue;;
-    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
-  esac
-  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
-done
-
-# There might be people who depend on the old broken behavior: `$host'
-# used to hold the argument of --host etc.
-# FIXME: To remove some day.
-build=$build_alias
-host=$host_alias
-target=$target_alias
-
-# FIXME: To remove some day.
-if test "x$host_alias" != x; then
-  if test "x$build_alias" = x; then
-    cross_compiling=maybe
-  elif test "x$build_alias" != "x$host_alias"; then
-    cross_compiling=yes
-  fi
-fi
-
-ac_tool_prefix=
-test -n "$host_alias" && ac_tool_prefix=$host_alias-
-
-test "$silent" = yes && exec 6>/dev/null
-
-
-ac_pwd=`pwd` && test -n "$ac_pwd" &&
-ac_ls_di=`ls -di .` &&
-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
-  as_fn_error $? "working directory cannot be determined"
-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
-  as_fn_error $? "pwd does not report name of working directory"
-
-
-# Find the source files, if location was not specified.
-if test -z "$srcdir"; then
-  ac_srcdir_defaulted=yes
-  # Try the directory containing this script, then the parent directory.
-  ac_confdir=`$as_dirname -- "$as_myself" ||
-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$as_myself" : 'X\(//\)[^/]' \| \
-	 X"$as_myself" : 'X\(//\)$' \| \
-	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_myself" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-  srcdir=$ac_confdir
-  if test ! -r "$srcdir/$ac_unique_file"; then
-    srcdir=..
-  fi
-else
-  ac_srcdir_defaulted=no
-fi
-if test ! -r "$srcdir/$ac_unique_file"; then
-  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
-  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
-fi
-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
-ac_abs_confdir=`(
-	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
-	pwd)`
-# When building in place, set srcdir=.
-if test "$ac_abs_confdir" = "$ac_pwd"; then
-  srcdir=.
-fi
-# Remove unnecessary trailing slashes from srcdir.
-# Double slashes in file names in object file debugging info
-# mess up M-x gdb in Emacs.
-case $srcdir in
-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
-esac
-for ac_var in $ac_precious_vars; do
-  eval ac_env_${ac_var}_set=\${${ac_var}+set}
-  eval ac_env_${ac_var}_value=\$${ac_var}
-  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
-  eval ac_cv_env_${ac_var}_value=\$${ac_var}
-done
-
-#
-# Report the --help message.
-#
-if test "$ac_init_help" = "long"; then
-  # Omit some internal or obsolete options to make the list less imposing.
-  # This message is too long to be a string in the A/UX 3.1 sh.
-  cat <<_ACEOF
-\`configure' configures sqlite-ocaml 1.6.3 to adapt to many kinds of systems.
-
-Usage: $0 [OPTION]... [VAR=VALUE]...
-
-To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE.  See below for descriptions of some of the useful variables.
-
-Defaults for the options are specified in brackets.
-
-Configuration:
-  -h, --help              display this help and exit
-      --help=short        display options specific to this package
-      --help=recursive    display the short help of all the included packages
-  -V, --version           display version information and exit
-  -q, --quiet, --silent   do not print \`checking ...' messages
-      --cache-file=FILE   cache test results in FILE [disabled]
-  -C, --config-cache      alias for \`--cache-file=config.cache'
-  -n, --no-create         do not create output files
-      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
-
-Installation directories:
-  --prefix=PREFIX         install architecture-independent files in PREFIX
-                          [$ac_default_prefix]
-  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
-                          [PREFIX]
-
-By default, \`make install' will install all the files in
-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
-an installation prefix other than \`$ac_default_prefix' using \`--prefix',
-for instance \`--prefix=\$HOME'.
-
-For better control, use the options below.
-
-Fine tuning of the installation directories:
-  --bindir=DIR            user executables [EPREFIX/bin]
-  --sbindir=DIR           system admin executables [EPREFIX/sbin]
-  --libexecdir=DIR        program executables [EPREFIX/libexec]
-  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
-  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
-  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
-  --libdir=DIR            object code libraries [EPREFIX/lib]
-  --includedir=DIR        C header files [PREFIX/include]
-  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
-  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
-  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
-  --infodir=DIR           info documentation [DATAROOTDIR/info]
-  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
-  --mandir=DIR            man documentation [DATAROOTDIR/man]
-  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite-ocaml]
-  --htmldir=DIR           html documentation [DOCDIR]
-  --dvidir=DIR            dvi documentation [DOCDIR]
-  --pdfdir=DIR            pdf documentation [DOCDIR]
-  --psdir=DIR             ps documentation [DOCDIR]
-_ACEOF
-
-  cat <<\_ACEOF
-_ACEOF
-fi
-
-if test -n "$ac_init_help"; then
-  case $ac_init_help in
-     short | recursive ) echo "Configuration of sqlite-ocaml 1.6.3:";;
-   esac
-  cat <<\_ACEOF
-
-Optional Packages:
-  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
-  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
-  --with-sqlite3=PATH     base directory for sqlite
-
-Some influential environment variables:
-  CC          C compiler command
-  CFLAGS      C compiler flags
-  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
-              nonstandard directory <lib dir>
-  LIBS        libraries to pass to the linker, e.g. -l<library>
-  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
-              you have headers in a nonstandard directory <include dir>
-  CPP         C preprocessor
-