diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-06-29 07:37:05 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-06-29 07:37:05 -0700 |
commit | 59bf182630998f25c061908b34b66a4ee5ae060b (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /configure.ac | |
parent | e45a03553a57f9e5323a71a1d9c3b6553a776a1c (diff) | |
download | liberasurecode-59bf182630998f25c061908b34b66a4ee5ae060b.tar.gz |
Start refactor
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/configure.ac b/configure.ac deleted file mode 100644 index c0c67a9..0000000 --- a/configure.ac +++ /dev/null @@ -1,66 +0,0 @@ -# c_eclib autoconf template - -# FIXME - add project url as the last argument -AC_INIT(erasurecode,0.1) - -AC_PREREQ([2.61]) - -AM_INIT_AUTOMAKE([subdir-objects no-dependencies]) -LT_INIT # libtool - -AC_CONFIG_SRCDIR(src) -AC_CONFIG_HEADER(include/config.h) - -dnl Needed when reconfiguring with 'autoreconf -i -s' -AC_CONFIG_MACRO_DIR([m4]) - -AM_MAINTAINER_MODE([disable]) - -dnl Compiling with per-target flags requires AM_PROG_CC_C_O. -AC_PROG_CC - -# Check for jerasure/gf_complete headers -AC_CHECK_HEADERS(jerasure.h cauchy.h galois.h liberation.h reed_sol.h gf_complete.h) - -dnl Default behavior of AC_CHECK_LIB if the library is found is to set the HAVE_LIB* -dnl variable and add the library to LIBS, which has the result of all compiles -dnl --including those performed by configure-- linking against the discovered -dnl library. This un-necessary linkage can increase build time as well as -dnl complicates configuration, so default behavior has been overridden so we dont -dnl set the LIBS. -AC_CHECK_LIB([Jerasure], [jerasure_autoconf_test], - [ - echo "Found libJerasure" - HAVE_LIBJERASURE = 1 - ], - [ - echo "Error! You need to have libJerasure installed." - echo "libJerasure is available from bitbucket.org/kmgreen2/jerasure-kmg.git" - exit -1 - ]) - -AC_CHECK_LIB([gf_complete], [gf_init_easy], - [ - echo "Found libgf_complete" - HAVE_LIBGF_COMPLETE = 1 - ], - [ - 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_ARG_ENABLE(debug, -AS_HELP_STRING([--enable-debug], - [enable debugging, default: no]), -[case "${enableval}" in - yes) debug=true ;; - no) debug=false ;; - *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; -esac], -[debug=false]) -AM_CONDITIONAL(DEBUG, test x"$debug" = x"true") -AC_OUTPUT(Makefile) - |