diff options
author | unknown <brian@brian-akers-computer.local> | 2004-04-12 21:01:45 -0700 |
---|---|---|
committer | unknown <brian@brian-akers-computer.local> | 2004-04-12 21:01:45 -0700 |
commit | 01bff53c4f71b9d204bc42b654e73d4ec6e6a941 (patch) | |
tree | 686ebbc1135999578321bffc95e6f3aec84ad720 /acinclude.m4 | |
parent | 83c2292bb5617128bd5c0eaa69663072363b38c7 (diff) | |
download | mariadb-git-01bff53c4f71b9d204bc42b654e73d4ec6e6a941.tar.gz |
All changes are to allow someone to compile the example storage engine and use it.
acconfig.h:
Default undef for example storage engine.
acinclude.m4:
Build macro additions for example engine.
configure.in:
Configure changes for it to be listed in --help
sql/Makefile.am:
Added in paths to build example.
sql/examples/ha_example.cc:
Correction in indention and a few minor other corrections. It now lets you create/open/drop example engine.
sql/handler.cc:
Added definition for the example storage engine. Added case for it to be created.
sql/handler.h:
Added example storage engine type.
sql/mysql_priv.h:
Added flag for optional build of example storage engine.
sql/mysqld.cc:
Pieces to build example storage engine.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 2eb45b2e8ce..f2387417d9f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1302,6 +1302,36 @@ dnl --------------------------------------------------------------------------- dnl END OF MYSQL_CHECK_INNODB SECTION dnl --------------------------------------------------------------------------- +dnl --------------------------------------------------------------------------- +dnl Macro: MYSQL_CHECK_EXAMPLEDB +dnl Sets HAVE_EXAMPLE_DB if --with-example-storage-engine is used +dnl --------------------------------------------------------------------------- +AC_DEFUN([MYSQL_CHECK_EXAMPLEDB], [ + AC_ARG_WITH([example-storage-engine], + [ + --with-example-storage-engine + Enable the Example Storge Engine], + [exampledb="$withval"], + [exampledb=no]) + AC_MSG_CHECKING([for example storage engine]) + + case "$exampledb" in + yes ) + AC_DEFINE(HAVE_EXAMPLE_DB) + AC_MSG_RESULT([yes]) + [exampledb=yes]) + ;; + * ) + AC_MSG_RESULT([no]) + [exampledb=no]) + ;; + esac + +]) +dnl --------------------------------------------------------------------------- +dnl END OF MYSQL_CHECK_EXAMPLE SECTION +dnl --------------------------------------------------------------------------- + dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. dnl For more details about this brain damage please see: |