summaryrefslogtreecommitdiffstats
path: root/dhash
diff options
context:
space:
mode:
Diffstat (limited to 'dhash')
-rw-r--r--dhash/Makefile.am1
-rw-r--r--dhash/configure.ac20
-rw-r--r--dhash/dhash.pc.in2
-rw-r--r--dhash/m4/.dir0
4 files changed, 22 insertions, 1 deletions
diff --git a/dhash/Makefile.am b/dhash/Makefile.am
index d2b92bc..0582f84 100644
--- a/dhash/Makefile.am
+++ b/dhash/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = -Wall
+ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = dhash.pc
diff --git a/dhash/configure.ac b/dhash/configure.ac
new file mode 100644
index 0000000..13fd1ac
--- /dev/null
+++ b/dhash/configure.ac
@@ -0,0 +1,20 @@
+AC_INIT([dhash], [0.3.3], [jdennis@redhat.com])
+AC_CONFIG_SRCDIR([dhash.c])
+AC_CONFIG_AUX_DIR([build])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_PROG_CC
+AC_PROG_LIBTOOL
+AC_CONFIG_MACRO_DIR([m4])
+AC_PROG_INSTALL
+
+AC_CONFIG_HEADERS([config.h])
+
+# Enable trace build
+AC_ARG_ENABLE([trace],
+ [AS_HELP_STRING([--enable-trace[=LEVEL]],[build with low level tracing enabled])],
+ [trace_level="$enableval"],
+ [trace_level="0"])
+AS_IF([test ["$trace_level" -gt "0"] -a ["$trace_level" -lt "8"] ],[AC_SUBST([TRACE_VAR],["-DTRACE_LEVEL=$trace_level"])])
+
+AC_CONFIG_FILES([Makefile dhash.pc])
+AC_OUTPUT \ No newline at end of file
diff --git a/dhash/dhash.pc.in b/dhash/dhash.pc.in
index be62b37..7dfc8a3 100644
--- a/dhash/dhash.pc.in
+++ b/dhash/dhash.pc.in
@@ -3,7 +3,7 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-Name: dhash
+Name: @PACKAGE_NAME@
Description: A hash table which will dynamically resize to achieve optimal storage & access time properties
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -ldhash
diff --git a/dhash/m4/.dir b/dhash/m4/.dir
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dhash/m4/.dir