Blame view

configure.ac 1.25 KB
00a17c0a   KMG   Setup autoconf to...
1
2
# Jerasure autoconf template

e79904ea   David Glessner   This is the squas...
3
4
AC_PREREQ([2.65])
AC_INIT([Jerasure], [2.0], [], [],
99ae37b8   Loic Dachary   documentation: up...
5
        [https://bitbucket.org/jimplank/jerasure])
e79904ea   David Glessner   This is the squas...
6
7
AC_CONFIG_SRCDIR([src/jerasure.c])
AC_CONFIG_HEADERS([include/config.h])
00a17c0a   KMG   Setup autoconf to...
8

e79904ea   David Glessner   This is the squas...
9
10
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
00a17c0a   KMG   Setup autoconf to...
11

e79904ea   David Glessner   This is the squas...
12
AM_INIT_AUTOMAKE([1.13 -Wall -Wno-extra-portability])
00a17c0a   KMG   Setup autoconf to...
13

e79904ea   David Glessner   This is the squas...
14
15
16
# Package default C compiler flags.
dnl This must be before LT_INIT and AC_PROG_CC.
: ${CFLAGS='-g -O3 -Wall'}
00a17c0a   KMG   Setup autoconf to...
17

e79904ea   David Glessner   This is the squas...
18
LT_INIT([disable-static])
00a17c0a   KMG   Setup autoconf to...
19

e79904ea   David Glessner   This is the squas...
20
# Checks for programs.
00a17c0a   KMG   Setup autoconf to...
21
22
AC_PROG_CC

e79904ea   David Glessner   This is the squas...
23
# Checks for libraries.
00a17c0a   KMG   Setup autoconf to...
24
AC_CHECK_LIB([gf_complete], [gf_init_easy], [],
e79904ea   David Glessner   This is the squas...
25
26
             [AC_MSG_FAILURE(
               [You need to have gf_complete installed.
99ae37b8   Loic Dachary   documentation: up...
27
                  gf_complete is available from http://web.eecs.utk.edu/~plank/plank/papers/CS-13-703.html])
00a17c0a   KMG   Setup autoconf to...
28
29
             ])

e79904ea   David Glessner   This is the squas...
30
31
32
33
34
35
36
37
38
# Checks for header files.
AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])
AC_CHECK_HEADERS([gf_complete.h gf_general.h gf_method.h gf_rand.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AX_EXT

21de9838   Kevin Greenan   Adding option to ...
39
40
41
42
43
44
45
46
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([bzero getcwd gettimeofday mkdir strchr strdup strrchr])

AC_CONFIG_FILES([Examples/Makefile
                 Makefile
                 src/Makefile])
AC_OUTPUT
e79904ea   David Glessner   This is the squas...

00a17c0a   KMG   Setup autoconf to...

e79904ea   David Glessner   This is the squas...

00a17c0a   KMG   Setup autoconf to...