From 60dd5691a47b15e45fc1a46ceabe71c740280c39 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Thu, 31 Oct 2013 12:02:10 -0700 Subject: [PATCH] mhash: Simplify configure.ac. --- src/mhash/configure.ac | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/src/mhash/configure.ac b/src/mhash/configure.ac index 14f2b2db2..70109ab1c 100644 --- a/src/mhash/configure.ac +++ b/src/mhash/configure.ac @@ -57,26 +57,15 @@ USA. */]) -AC_ARG_WITH([mhash], - AS_HELP_STRING([--with-mhash], - [Use mhash library if available [[yes]]])) -: ${with_mhash='yes'} - -if test "${with_mhash}" != no; then - if test "${with_mhash}" != yes; then - CPPFLAGS="${CPPFLAGS} -I${with_mhash}/include" - LDFLAGS="${LDFLAGS} -L${with_mhash}/lib" - fi - AC_CHECK_HEADER([mhash.h],[ - AC_DEFINE([HAVE_MHASH_H], [1], - [Define to 1 if you have the header file.]) - AC_CHECK_LIB([mhash], [mhash_count],[ - AC_DEFINE([HAVE_LIBMHASH], [1], - [Define to 1 if you have the `mhash' library (-lmhash).]) - LIBS="-lmhash" - ]) +AC_CHECK_HEADER([mhash.h],[ + AC_DEFINE([HAVE_MHASH_H], [1], + [Define to 1 if you have the header file.]) + AC_CHECK_LIB([mhash], [mhash_count],[ + AC_DEFINE([HAVE_LIBMHASH], [1], + [Define to 1 if you have the `mhash' library (-lmhash).]) + LIBS="-lmhash" ]) -fi +],[AC_MSG_ERROR([Header file not found.])]) AC_SUBST([LIBS]) AC_SUBST([CPPFLAGS]) -- 2.25.1