diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-01 01:08:43 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-01 01:08:43 +0200 |
commit | a30d711f12d65b32db027ade5c30d1507ffd97f1 (patch) | |
tree | 53ae7ec8b08c10eba3a83a2f972be4bdc9d863f4 /configure.ac | |
parent | 7d259108852146df0623999e749b73dd9e33fc48 (diff) |
add autofoo stuff
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..23012e9 --- /dev/null +++ b/configure.ac @@ -0,0 +1,34 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT([libbrandt], [0.1], [teichm@net.in.tum.de]) + +AM_INIT_AUTOMAKE([1.15]) + +AC_CONFIG_SRCDIR([smc.c]) +#AC_CONFIG_HEADERS([config.h]) + +# Checks for programs. +AC_PROG_CC_C99 +#AX_APPEND_COMPILE_FLAGS([-std=c99]) + +# Checks for libraries. +AC_SEARCH_LIBS([pari_init], [pari], [], [AC_MSG_ERROR([unable to find the pari_init() function from libpari])]) + +# Checks for header files. +AC_CHECK_HEADER(pari/pari.h, [], [AC_MSG_ERROR([unable to find the pari.h header file from libpari])], []) + +# Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_SIZE_T +AC_TYPE_UINT16_T + +# Checks for library functions. + +# fix std +CC=$(echo "${CC}" | sed 's/-std=gnu99/-std=c99/') +CPP=$(echo "${CC}" | sed 's/-std=gnu99/-std=c99/') + +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT |