diff --git a/configure.ac b/configure.ac index eeae1d9..c881b16 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,19 @@ AC_CHECK_HEADERS([\ unistd.h \ ]) +AC_ARG_WITH(uthash, +AC_HELP_STRING([--with-uthash=DIR], [Use uthash from [DIR]/uthash.h)]), +[ case "$with_uthash" in + yes) + ;; + no) + AC_MSG_ERROR([the uthash.h is required]) + ;; + *) + CPPFLAGS="$CPPFLAGS -I$with_uthash" + ;; + esac] +) AC_CHECK_HEADER(uthash.h, [], [AC_MSG_ERROR([Unable to find uthash.h])]) # Checks for typedefs, structures, and compiler characteristics.