Permalink
Browse files

Remove strict dependence on autoconf detection of stdint. (fixes #3)

  • Loading branch information...
dcjones committed Jul 28, 2012
1 parent f9853fe commit adb268e3c82898301f19df777edcc1bc34be2575
Showing with 807 additions and 12 deletions.
  1. +2 −0 Makefile.am
  2. +1 −6 configure.ac
  3. +1 −1 src/Makefile.am
  4. +0 −1 src/ahtable.c
  5. +1 −1 src/ahtable.h
  6. +1 −1 src/hat-trie.c
  7. +800 −0 src/pstdint.h
  8. +0 −1 src/superfasthash.c
  9. +1 −1 src/superfasthash.h
View
@@ -6,3 +6,5 @@ EXTRA_DIST = README.md COPYING
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = hat-trie-0.1.pc
+ACLOCAL_AMFLAGS=-I m4
+
View
@@ -1,8 +1,8 @@
AC_INIT([hat-trie], [0.1.0], [dcjones@cs.washington.edu])
AM_INIT_AUTOMAKE([foreign])
-AC_CONFIG_HEADERS([config.h])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+AC_CONFIG_MACRO_DIR([m4])
base_CFLAGS="-std=c99 -Wall -Wextra -pedantic"
opt_CFLAGS="${base_CFLAGS} -O3"
@@ -27,12 +27,7 @@ AC_DISABLE_SHARED
AC_PROG_LIBTOOL
AC_C_BIGENDIAN([AC_MSG_ERROR([Big-endian systems are not currently supported.])])
-AC_CHECK_HEADERS([stdint.h stdlib.h])
AC_HEADER_STDBOOL
-AC_TYPE_SIZE_T
-AC_TYPE_UINT16_T
-AC_TYPE_UINT32_T
-AC_TYPE_UINT8_T
AC_CONFIG_FILES([hat-trie-0.1.pc Makefile src/Makefile test/Makefile])
AC_OUTPUT
View
@@ -7,5 +7,5 @@ libhat_trie_la_SOURCES = common.h \
misc.h misc.c \
superfasthash.h superfasthash.c
-pkginclude_HEADERS = hat-trie.h ahtable.h common.h
+pkginclude_HEADERS = hat-trie.h ahtable.h common.h pstdint.h
View
@@ -8,7 +8,6 @@
#include "ahtable.h"
#include "misc.h"
#include "superfasthash.h"
-#include "config.h"
#include <assert.h>
#include <string.h>
View
@@ -24,8 +24,8 @@ extern "C" {
#endif
#include <stdlib.h>
-#include <stdint.h>
#include <stdbool.h>
+#include "pstdint.h"
#include "common.h"
typedef unsigned char* slot_t;
View
@@ -8,8 +8,8 @@
#include "hat-trie.h"
#include "ahtable.h"
#include "misc.h"
+#include "pstdint.h"
#include <assert.h>
-#include <stdint.h>
#include <string.h>
/* maximum number of keys that may be stored in a bucket before it is burst */
Oops, something went wrong.

0 comments on commit adb268e

Please sign in to comment.