source: trunk/configure.ac @ 366

Last change on this file since 366 was 366, checked in by Peter, 16 years ago

moved namespace random to its own directory

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac 366 2005-08-05 08:58:56Z peter $
4##
5## Author: Jari Hakkinen, jari@thep.lu.se
6##
7## Developers search for FIXME
8##
9## If you grabbed the source from CVS you should, at top-level, execute:
10##  ./bootstrap
11## or maybe one should use autoreconf! FIXME: Can the 'bootstrap'
12## script be replaced with autoreconf?
13
14AC_PREREQ(2.57)
15AC_INIT([[thep-c++_tools]],[0.1],[jari@thep.lu.se])
16AC_CONFIG_SRCDIR([lib/gslapi/matrix.h])
17AC_CONFIG_AUX_DIR([autotools])
18AC_PREFIX_DEFAULT([/usr/local])
19
20AM_CONFIG_HEADER([config.h])
21AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT)
22
23# Checks for programs.
24AC_PROG_CXX
25AC_PROG_INSTALL
26#AC_PROG_RANLIB
27
28# Checks for libraries.
29
30# Checks for header files.
31AC_CHECK_HEADERS([unistd.h])
32
33# Checks for typedefs, structures, and compiler characteristics.
34AC_HEADER_STDBOOL
35AC_C_CONST
36AC_C_INLINE
37AC_TYPE_SIZE_T
38
39# Checks for library functions.
40AC_PROG_LIBTOOL
41AC_FUNC_ERROR_AT_LINE
42AC_HEADER_STDC
43AC_CHECK_FUNCS([pow sqrt])
44
45LOCAL_INCLUDES="-I/home/lev/jari/local/include"
46LDFLAGS="-L/home/lev/jari/local/lib"
47CXXFLAGS="-g -O -Wall -pedantic"
48CPPFLAGS="-DHAVE_INLINE=1"
49# Use these flags when compiling a production library
50#CXXFLAGS="-O3 -Wall -pedantic"
51#CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"
52AC_SUBST([LOCAL_INCLUDES])
53
54AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
55AC_CHECK_LIB(atlas,ATL_ctrsv,
56  [CBLAS_LIB="-lcblas -latlas"],
57  AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
58    [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
59AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
60AC_SUBST(GSL_LIB)
61AC_SUBST(CBLAS_LIB)
62AC_SUBST(MATH_LIB)
63
64# c++_tools specific settings
65
66CPP_TOOLS_LIB="libc++_tools.la"
67CPP_TOOLS_LIB_LOCATION="lib"
68CPP_TOOLS_HEADER_LOCATION="lib"
69AC_SUBST(CPP_TOOLS_LIB)
70AC_SUBST(CPP_TOOLS_LIB_LOCATION)
71AC_SUBST(CPP_TOOLS_HEADER_LOCATION)
72
73#CROSS_INCLUDES="-I@top_srcdir@/gslapi -I@top_srcdir@/misc -I@top_srcdir@/statistics -I@top_srcdir@/svm "
74#AC_SUBST([CROSS_INCLUDES])
75
76AM_CONDITIONAL([COND_DOC], [test "$want_doc" = no])
77
78AC_CONFIG_FILES([Makefile
79     doc/Makefile
80     lib/Makefile
81     lib/gslapi/Makefile
82     lib/random/Makefile
83     lib/utility/Makefile
84     lib/statistics/Makefile
85     lib/svm/Makefile
86     test/Makefile])
87
88AC_OUTPUT
89
Note: See TracBrowser for help on using the repository browser.