1 | # Copyright (C) 2006 International Business Machines. |
---|
2 | # All Rights Reserved. |
---|
3 | # This file is distributed under the Common Public License. |
---|
4 | |
---|
5 | ## $Id: configure.ac,v 1.1.2.1 2006/04/19 23:25:12 andreasw Exp $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | ############################################################################# |
---|
10 | # Names and other basic things # |
---|
11 | ############################################################################# |
---|
12 | |
---|
13 | AC_PREREQ(2.59) |
---|
14 | |
---|
15 | AC_INIT([Clp],[0.1],[coin-clp@list.coin-or.org]) |
---|
16 | |
---|
17 | AC_COPYRIGHT([ |
---|
18 | Copyright 2006 International Business Machines and others. |
---|
19 | All Rights Reserved. |
---|
20 | This file is part of the open source package Coin which is distributed |
---|
21 | under the Common Public License.]) |
---|
22 | |
---|
23 | AC_REVISION(0.9) |
---|
24 | |
---|
25 | # List one file in the package so that the configure script can test |
---|
26 | # whether the package is actually there |
---|
27 | AC_CONFIG_SRCDIR(src/ClpCholeskyBase.cpp) |
---|
28 | |
---|
29 | ############################################################################# |
---|
30 | # Standard build tool stuff # |
---|
31 | ############################################################################# |
---|
32 | |
---|
33 | # Get the system type |
---|
34 | AC_CANONICAL_BUILD |
---|
35 | |
---|
36 | # Where should everything be installed by default? Here, we want it |
---|
37 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
38 | # of the directory where configure is run. The default would be |
---|
39 | # /usr/local. |
---|
40 | AC_PREFIX_DEFAULT([`pwd`]) |
---|
41 | |
---|
42 | # If this project depends on external projects, the Externals file in |
---|
43 | # the source root directory contains definition of where to find those |
---|
44 | # externals. The following macro ensures that those externals are |
---|
45 | # retrieved by svn if they are not there yet. |
---|
46 | AC_COIN_SRCDIR_INIT |
---|
47 | |
---|
48 | # Check if user wants to produce debugging code |
---|
49 | AC_COIN_DEBUG_COMPILE |
---|
50 | |
---|
51 | # This package is written in C++ |
---|
52 | AC_LANG(C++) |
---|
53 | |
---|
54 | # Get the name of the C++ compiler and appropriate compiler options |
---|
55 | AC_COIN_PROG_CXX |
---|
56 | |
---|
57 | # Initialize automake and libtool |
---|
58 | AC_COIN_INIT_AUTO_TOOLS |
---|
59 | |
---|
60 | ############################################################################# |
---|
61 | # COIN components # |
---|
62 | ############################################################################# |
---|
63 | |
---|
64 | AC_COIN_HAS_PROJECT(CoinUtils) |
---|
65 | AC_COIN_HAS_PROJECT(Clp) |
---|
66 | |
---|
67 | ############################################################################# |
---|
68 | # Other dependencies # |
---|
69 | ############################################################################# |
---|
70 | |
---|
71 | AC_COIN_CHECK_READLINE |
---|
72 | |
---|
73 | ############################################################################## |
---|
74 | # Finishing up by writing all the output # |
---|
75 | ############################################################################## |
---|
76 | |
---|
77 | # Here list all the files that configure should create (except for the |
---|
78 | # configuration header file) |
---|
79 | AC_CONFIG_FILES([Makefile |
---|
80 | src/Makefile |
---|
81 | test/Makefile |
---|
82 | clp_addlibs.txt]) |
---|
83 | |
---|
84 | # Here put the location and name of the configuration header file |
---|
85 | AC_CONFIG_HEADER([inc/config_clp.h]) |
---|
86 | |
---|
87 | # Finally, we let configure write all the output... |
---|
88 | AC_OUTPUT |
---|
89 | |
---|
90 | # ...and tell the user, that the configuration finished |
---|
91 | AC_MSG_NOTICE([Clp configuration successful]) |
---|