You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
963 B
37 lines
963 B
AC_PREREQ([2.69])
|
|
AC_INIT([libfnv], [0.8.2], [fnvhash@fnvhash.com])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AC_CONFIG_LIBOBJ_DIR([portable])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AM_INIT_AUTOMAKE()
|
|
LT_INIT()
|
|
LT_PREREQ([2.2])
|
|
AC_PROG_CC()
|
|
CFLAGS="$CFLAGS -O3 -Wall"
|
|
AC_CONFIG_SRCDIR([libfnv/fnv.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
RRA_LD_VERSION_SCRIPT
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
libfnv/Makefile
|
|
libfnvutil/Makefile
|
|
tools/Makefile
|
|
test/Makefile
|
|
test/unit/Makefile
|
|
])
|
|
|
|
AC_PATH_PROG([HAVE_CHECKMK_PATH], [checkmk], [notfound])
|
|
|
|
AM_CONDITIONAL([HAVE_CHECKMK], [ test ! "x$HAVE_CHECKMK_PATH" = "xnotfound" ])
|
|
|
|
if test "x$HAVE_CHECKMK_PATH" = "xnotfound" ; then
|
|
AC_WARN([checkmk not found please install "check" package for unit tests])
|
|
else
|
|
CHECK_CFLAGS=$(pkg-config check --cflags)
|
|
CHECK_LIBS=$(pkg-config check --libs)
|
|
fi
|
|
|
|
AC_SUBST([CHECK_CFLAGS])
|
|
AC_SUBST([CHECK_LIBS])
|
|
|
|
AC_OUTPUT
|
|
|