source: trunk/configure.ac @ 71

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

Started clean up of our autotools files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac 71 2004-05-03 07:09:03Z 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
44LDFLAGS="-L/home/max/jari/local/lib"
45
46CXXFLAGS="-O3 -Wall -DGSL_RANGE_CHECK_OFF"
47AC_SUBST(CXXFLAGS)
48
49AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
50AC_CHECK_LIB(atlas,ATL_ctrsv,
51  [CBLAS_LIB="-lcblas -latlas"],
52  AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
53    [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
54AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
55AC_SUBST(GSL_LIB)
56AC_SUBST(CBLAS_LIB)
57AC_SUBST(MATH_LIB)
58
59# c++_tools specific settings
60
61CPP_TOOLS_LIB="-lc++_tools"
62CPP_TOOLS_LIB_LOCATION="src"
63CPP_TOOLS_HEADER_LOCATION="src"
64AC_SUBST(CPP_TOOLS_LIB)
65AC_SUBST(CPP_TOOLS_LIB_LOCATION)
66AC_SUBST(CPP_TOOLS_HEADER_LOCATION)
67
68AC_CONFIG_FILES([Makefile
69     doc/Makefile
70     src/Makefile
71     test/Makefile])
72
73AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.