source: trunk/configure.ac @ 258

Last change on this file since 258 was 258, checked in by Jari Häkkinen, 17 years ago

Changed CXXFLAGS.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac 258 2005-03-04 00:54:54Z jari $
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([src/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
26AC_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_FUNC_ERROR_AT_LINE
41AC_HEADER_STDC
42AC_CHECK_FUNCS([pow sqrt])
43
44LOCAL_INCLUDES="-I/home/max/jari/local/include"
45LDFLAGS="-L/home/max/jari/local/lib"
46CXXFLAGS="-g -O -Wall -DHAVE_INLINE=1"
47# Use these flags when you compile a production library
48#CXXFLAGS="-O3 -Wall -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"
49AC_SUBST([LOCAL_INCLUDES])
50AC_SUBST(CXXFLAGS)
51
52AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
53AC_CHECK_LIB(atlas,ATL_ctrsv,
54  [CBLAS_LIB="-lcblas -latlas"],
55  AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
56    [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
57AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
58AC_SUBST(GSL_LIB)
59AC_SUBST(CBLAS_LIB)
60AC_SUBST(MATH_LIB)
61
62# c++_tools specific settings
63
64CPP_TOOLS_LIB="libc++_tools.a"
65CPP_TOOLS_LIB_LOCATION="src"
66CPP_TOOLS_HEADER_LOCATION="src"
67AC_SUBST(CPP_TOOLS_LIB)
68AC_SUBST(CPP_TOOLS_LIB_LOCATION)
69AC_SUBST(CPP_TOOLS_HEADER_LOCATION)
70
71AC_CONFIG_FILES([Makefile
72     doc/Makefile
73     src/Makefile
74     test/Makefile])
75
76AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.