From 3c9226752b554acc70fb0c2c173c4b10f5ecf3e3 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 6 May 2012 21:53:17 +0200 Subject: [PATCH] build-sys: add --with-uthash=DIR ./configure option Allow program builder to specify where uthash.h is. Proposed-by: Ryan Steinmetz Signed-off-by: Sami Kerola --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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.