summaryrefslogtreecommitdiffstats
path: root/src/erasure-code/jerasure/jerasure/configure.ac
blob: e948ddcdc5a6b9e1b63ba12d8526f1c44fb7349b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Jerasure autoconf template

# FIXME - add project url as the last argument
AC_INIT(Jerasure, 2.0)

AC_PREREQ([2.61])

AM_INIT_AUTOMAKE([no-dependencies], [foreign])
LT_INIT # libtool

AC_CONFIG_HEADER(include/config.h)

dnl Needed when reconfiguring with 'autoreconf -i -s'
AC_CONFIG_MACRO_DIR([m4])

dnl Compiling with per-target flags requires AM_PROG_CC_C_O.
AC_PROG_CC

# Check for gf_complete headers
AC_CHECK_HEADERS(gf_complete.h gf_general.h gf_int.h gf_method.h gf_rand.h)

AC_CHECK_LIB([gf_complete], [gf_init_easy], [],
             [
              echo "Error! You need to have gf_complete installed."
              echo "gf_complete is available from http://web.eecs.utk.edu/~plank/plank/papers/CS-13-703.html"
              exit -1
             ])

AX_EXT()

AC_CONFIG_FILES([Makefile Examples/Makefile src/Makefile])
AC_OUTPUT