~ubuntu-branches/debian/sid/apophenia/sid

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Jerome Benoit
  • Date: 2014-09-11 12:36:28 UTC
  • Revision ID: package-import@ubuntu.com-20140911123628-mhyqci1xk9tjicph
Tags: upstream-0.999b+ds1
ImportĀ upstreamĀ versionĀ 0.999b+ds1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Process this file with autoconf to produce a configure script.
 
2
 
 
3
m4_define([m4_apop_version], [m4_esyscmd_s(date +%Y%m%d)]) #will switch to this soon.
 
4
 
 
5
AC_PREREQ(2.60)
 
6
AC_INIT([apophenia], [0.999b], [fluffmail@f-m.fm])
 
7
AM_SILENT_RULES([yes])
 
8
AC_CONFIG_SRCDIR([apop_arms.c])
 
9
AC_CONFIG_AUX_DIR([build-aux])
 
10
AC_CONFIG_HEADER([config.h])
 
11
AC_CONFIG_MACRO_DIR([m4])
 
12
AM_INIT_AUTOMAKE
 
13
AM_MAINTAINER_MODE
 
14
 
 
15
# The normal /usr/local default confused too many people
 
16
##AC_PREFIX_DEFAULT([/usr])
 
17
 
 
18
# libtool:
 
19
LT_INIT
 
20
 
 
21
# check linker script support
 
22
gl_LD_VERSION_SCRIPT
 
23
 
 
24
# Checks for programs.
 
25
AC_PROG_CC
 
26
AC_PROG_CC_C99
 
27
 
 
28
ACX_PTHREAD
 
29
AC_OPENMP
 
30
 
 
31
# Checks for libraries.
 
32
## math library
 
33
LT_LIB_M
 
34
## GNU Scientific Library (GSL)
 
35
AX_PATH_GSL([1.12.0],[],[AC_MSG_ERROR(could not find required version of GSL)])
 
36
## DataBase system libraries
 
37
#### MySQL library
 
38
AX_LIB_MYSQL
 
39
#### SQLite3 library
 
40
AX_LIB_SQLITE3
 
41
 
 
42
# Checks for header files.
 
43
AC_FUNC_ALLOCA
 
44
AC_HEADER_STDC
 
45
AC_CHECK_HEADERS([float.h inttypes.h limits.h stddef.h stdint.h stdlib.h string.h unistd.h wchar.h])
 
46
 
 
47
# Checks for typedefs, structures, and compiler characteristics.
 
48
AC_C_CONST
 
49
AC_C_INLINE
 
50
AC_TYPE_SIZE_T
 
51
AC_STRUCT_TM
 
52
AC_CHECK_TYPES([ptrdiff_t])
 
53
AX_C___ATTRIBUTE__
 
54
 
 
55
# Checks for library functions.
 
56
AC_FUNC_MALLOC
 
57
AC_FUNC_REALLOC
 
58
AC_FUNC_STRTOD
 
59
AC_CHECK_FUNCS([floor memset pow regcomp sqrt strcasecmp asprintf])
 
60
 
 
61
# Checks for tests tools
 
62
AC_PATH_PROGS([BC],[bc],[/usr/bin/bc])
 
63
AC_PATH_PROGS([SQLITE3],[sqlite3],[/usr/bin/sqlite3])
 
64
 
 
65
 
 
66
AC_CONFIG_FILES([
 
67
        apophenia.pc
 
68
        Makefile
 
69
        transform/Makefile
 
70
        model/Makefile
 
71
        cmd/Makefile
 
72
        tests/Makefile
 
73
        docs/doxygen.conf
 
74
        docs/Makefile
 
75
        eg/Makefile
 
76
        ])
 
77
 
 
78
AC_CONFIG_FILES([
 
79
        tests/utilities_test
 
80
        ],
 
81
        [
 
82
        chmod a+x tests/utilities_test
 
83
        ])
 
84
AC_OUTPUT
 
85
 
 
86
##
 
87
## eof