1 # Jerasure autoconf template
4 AC_INIT([Jerasure], [2.0], [], [],
5 [https://jerasure.org/jerasure/jerasure])
6 AC_CONFIG_SRCDIR([src/jerasure.c])
7 AC_CONFIG_HEADERS([include/config.h])
9 AC_CONFIG_AUX_DIR([build-aux])
10 AC_CONFIG_MACRO_DIR([m4])
12 AM_INIT_AUTOMAKE([1.15 -Wall -Wno-extra-portability])
14 # Package default C compiler flags.
15 dnl This must be before LT_INIT and AC_PROG_CC.
16 : ${CFLAGS='-g -O3 -Wall'}
18 LT_INIT([disable-static])
20 # Checks for programs.
25 # Checks for libraries.
26 AC_CHECK_LIB([gf_complete], [gf_init_easy], [],
28 [You need to have gf_complete installed.
29 gf_complete is available from http://jerasure.org/jerasure/gf-complete])
32 # Checks for header files.
33 AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])
34 AC_CHECK_HEADERS([gf_complete.h gf_general.h gf_method.h gf_rand.h])
36 # Checks for typedefs, structures, and compiler characteristics.
42 AS_HELP_STRING([--disable-sse], [Build without SSE optimizations]),
43 [if test "x$enableval" = "xno" ; then
45 echo "DISABLED SSE!!!"
49 # Checks for library functions.
51 AC_CHECK_FUNCS([bzero getcwd gettimeofday mkdir strchr strdup strrchr])
53 AC_CONFIG_FILES([Examples/Makefile