source: trunk/configure.ac @ 579

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

Removed obsolete lines.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac 579 2006-05-04 09:44:22Z jari $
4
5# Copyright (C) 2003 Jari Häkkinen
6# Copyright (C) 2005 Peter Johansson
7# Copyright (C) 2006 Jari Häkkinen
8#
9# This file is part of the thep c++ tools library,
10#                                http://lev.thep.lu.se/trac/c++_tools
11#
12# The c++ tools library is free software; you can redistribute it
13# and/or modify it under the terms of the GNU General Public License as
14# published by the Free Software Foundation; either version 2 of the
15# License, or (at your option) any later version.
16#
17# The c++ library is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25# 02111-1307, USA.
26#
27# Developers search for FIXME
28#
29# If you grabbed the source from CVS you should, at top-level, execute:
30# ./bootstrap
31# or maybe one should use autoreconf! FIXME: Can the 'bootstrap'
32# script be replaced with autoreconf?
33
34AC_PREREQ(2.57)
35AC_INIT([[c++_tools]],[0.1],[jari@thep.lu.se])
36AC_CONFIG_SRCDIR([c++_tools/gslapi/matrix.h])
37AC_CONFIG_AUX_DIR([autotools])
38AC_PREFIX_DEFAULT([/usr/local])
39
40AM_CONFIG_HEADER([config.h])
41AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT)
42
43# Checks for programs.
44AC_PROG_CXX
45AC_PROG_INSTALL
46
47# Checks for libraries.
48
49# Checks for header files.
50AC_CHECK_HEADERS([unistd.h])
51
52# Checks for typedefs, structures, and compiler characteristics.
53AC_HEADER_STDBOOL
54AC_C_CONST
55AC_C_INLINE
56AC_TYPE_SIZE_T
57
58# Checks for library functions.
59AC_PROG_LIBTOOL
60AC_FUNC_ERROR_AT_LINE
61AC_HEADER_STDC
62AC_CHECK_FUNCS([pow sqrt])
63
64CXXFLAGS="-g -O -Wall -pedantic"
65CPPFLAGS="-DHAVE_INLINE=1"
66# Use these flags when compiling a production library
67#CXXFLAGS="-O3 -Wall -pedantic"
68#CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"
69
70AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
71AC_CHECK_LIB(atlas,ATL_ctrsv,
72  [CBLAS_LIB="-lcblas -latlas"],
73  AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
74    [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
75AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
76AC_SUBST(GSL_LIB)
77AC_SUBST(CBLAS_LIB)
78AC_SUBST(MATH_LIB)
79
80# c++_tools specific settings
81
82CPP_TOOLS_LIB="libc++_tools.la"
83CPP_TOOLS_LIB_LOCATION="c++_tools"
84CPP_TOOLS_HEADER_LOCATION="c++_tools"
85AC_SUBST(CPP_TOOLS_LIB)
86AC_SUBST(CPP_TOOLS_LIB_LOCATION)
87AC_SUBST(CPP_TOOLS_HEADER_LOCATION)
88
89AC_CONFIG_FILES([Makefile
90     c++_tools/Makefile
91     c++_tools/gslapi/Makefile
92     c++_tools/random/Makefile
93     c++_tools/utility/Makefile
94     c++_tools/statistics/Makefile
95     c++_tools/classifier/Makefile
96     doc/Makefile
97     test/Makefile])
98
99AC_OUTPUT
100
Note: See TracBrowser for help on using the repository browser.