summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorWilliam Douglas <william.douglas@intel.com>2013-01-10 17:15:22 -0800
committerWilliam Douglas <william.douglas@intel.com>2013-01-16 16:50:55 -0800
commite80971e0a43832a73a0eac544dc4c6394e4bdcab (patch)
tree1c7dbd8d2d6fa31ee64afaa1aa614c38ae17817c /configure.ac
downloaddb-manager-e80971e0a43832a73a0eac544dc4c6394e4bdcab.tar.gz
db-manager-e80971e0a43832a73a0eac544dc4c6394e4bdcab.tar.bz2
db-manager-e80971e0a43832a73a0eac544dc4c6394e4bdcab.zip
Currently Tizen spec files can be stuck with a lot of commands in their POST section dealing with database creation. To help reduce the noise (and potential for these commands to fail) this package provides a db-manager command that can run db commands, set the file owner, set file permissions, and associate the file with a smack label. Change-Id: Iff898dc085c9b35bc431e727e8f5f5a587f74b7a Signed-off-by: William Douglas <william.douglas@intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac40
1 files changed, 40 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..28e5158
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,40 @@
+AC_PREREQ([2.68])
+AC_INIT([db-manager],[0.0.1],[william.douglas@intel.com])
+AM_INIT_AUTOMAKE([foreign -Wall -Werror])
+AC_CONFIG_FILES([Makefile src/Makefile])
+AC_CONFIG_SRCDIR([src/db-manager.c])
+AC_CONFIG_HEADERS([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+AM_PROG_CC_C_O
+AC_PROG_INSTALL
+
+# PkgConfig tests
+PKG_CHECK_MODULES([libxml2], [libxml-2.0])
+PKG_CHECK_MODULES([sqlite3], [sqlite3])
+
+# Checks for header files.
+AC_CHECK_HEADERS([stdio.h assert.h sys/types.h sys/stat.h dirent.h signal.h errno.h sched.h fcntl.h stdlib.h string.h sys/time.h syslog.h unistd.h asm/unistd.h attr/xattr.h], , [AC_MSG_ERROR([UNABLE TO FIND HEADER])])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_SIZE_T
+AC_TYPE_SSIZE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+
+AC_OUTPUT
+
+AC_MSG_RESULT([
+ db-manager $VERSION
+ ========
+
+ prefix: ${prefix}
+ exec_prefix: ${exec_prefix}
+ bindir: ${bindir}
+
+ compiler: ${CC}
+ cflags: ${CFLAGS}
+ ldflags: ${LDFLAGS}
+])