Add missing binaty and statis library
[jabaws.git] / binaries / src / ViennaRNA / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl Every other copy of the package version number gets its value from here
4 AC_INIT([ViennaRNA],[2.1.2],[rna@tbi.univie.ac.at],[ViennaRNA], [http://www.tbi.univie.ac.a/~ivo/RNA])
5 AC_PREREQ([2.59])
6 AC_CONFIG_AUX_DIR(config)
7
8 AC_SUBST(VERSION)
9
10 m4_include([m4/package.m4])
11
12 dnl change the default installation prefix
13 dnl AC_PREFIX_DEFAULT(/usr/local/RNA)
14
15 AM_SILENT_RULES([yes])
16 AM_INIT_AUTOMAKE([1.11])
17
18 dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
19 AC_CONFIG_HEADERS([config.h])
20
21 dnl configure options
22 AM_WITH_DMALLOC
23
24 AC_ARG_VAR(PERLPREFIX, [Prefix for installation of the Perl module. 
25 By default the perl module is installed wherever Perl thinks it belongs, ignoring the $prefix used by configure])
26
27
28 ISODATE=`date +%Y-%m-%d`
29 AC_SUBST(ISODATE)
30
31 AC_CANONICAL_HOST
32
33 dnl Checks for programs.
34 AC_PROG_CXX
35 AC_PROG_CXXCPP
36 AC_PROG_CC
37 AC_PROG_CPP
38 AC_PROG_CC_FPIC
39
40 AC_ARG_VAR(FPIC,[compiler flag for generating PIC code that can be used in a shared library])
41
42 if test "$GCC" = yes; then
43    AC_DEFINE(UNUSED, __attribute__ ((unused)), avoid warning about unused variables)
44 else
45    AC_DEFINE(UNUSED,, only for gcc)
46 fi
47
48 AC_PROG_INSTALL
49 AC_PROG_RANLIB
50 AC_PROG_MAKE_SET
51 AC_PROG_GREP
52 AM_PROG_CC_C_O
53
54
55 dnl Check for OpenMP and prepare flags
56 AC_OPENMP
57 AC_SUBST(OPENMP_CFLAGS)
58
59 dnl Checks for libraries.
60 AC_CHECK_LIB([m], [exp])
61
62 dnl Checks for header files.
63 AC_HEADER_STDC
64 AC_HEADER_STDBOOL
65 AC_CHECK_HEADERS([malloc.h float.h limits.h stdlib.h string.h strings.h unistd.h unistd.h math.h])
66
67 dnl Checks for funtions
68 AC_FUNC_MALLOC
69 AC_FUNC_REALLOC
70 AC_FUNC_STRTOD
71 AC_CHECK_FUNCS([floor strdup strstr strchr strrchr strstr strtol strtoul pow rint sqrt erand48 memset memmove erand48])
72
73 dnl Checks for typedefs, structures, and compiler characteristics.
74 AC_C_CONST
75 AC_TYPE_SIZE_T
76 AC_C_INLINE([])
77
78 AC_RNA_INIT
79
80 AC_OUTPUT
81
82 AC_RNA_NOTICE