source: trunk/configure.ac

Last change on this file was 1326, checked in by stefan, 3 weeks ago

better default for scip lib

  • Property svn:keywords set to Author Date Id Revision
File size: 5.0 KB
Line 
1## $Id: configure.ac 1326 2020-02-05 13:31:24Z stefan $
2#
3# Copyright (C) 2006 International Business Machines.
4# All Rights Reserved.
5# This file is distributed under the Eclipse Public License.
6
7# Authors:  Andreas Waechter            IBM    2006-12-06
8#           Pietro Belotti
9
10#############################################################################
11#                       Names and other basic things                        #
12#############################################################################
13
14AC_PREREQ(2.59)
15
16AC_INIT([Couenne],[trunk],[https://github.com/coin-or/Couenne/issues/new],[coin-or-couenne],[https://github.com/coin-or/Couenne])
17
18AC_COPYRIGHT([
19Copyright 2006 Carnegie Mellon University, International Business Machines and others.
20All Rights Reserved.
21This file is part of the open source package Coin which is distributed
22under the Eclipse Public License.])
23
24# List one file in the package so that the configure script can test
25# whether the package is actually there
26AC_CONFIG_SRCDIR(src/expression/expression.cpp)
27
28#############################################################################
29#                         Standard build tool stuff                         #
30#############################################################################
31
32# Do some initialization work (version numbers, change prefix default, ...)
33AC_COIN_INITIALIZE(Couenne)
34
35# Get the name of the C++ compiler and appropriate compiler options
36AC_COIN_PROG_CXX
37
38# Initialize libtool
39AC_COIN_PROG_LIBTOOL
40
41#############################################################################
42#                            COIN-OR components                             #
43#############################################################################
44
45AC_COIN_CHK_PKG(Bonmin,[CouenneLib])
46if test $coin_has_bonmin != yes ; then
47  AC_MSG_ERROR([Required package Bonmin not available.])
48fi
49
50AC_COIN_CHK_PKG(ASL,[CouenneLib],[bonminamplinterface])
51
52# more workaround for having ASL deep inside Couenne
53if test $coin_has_asl = yes ; then
54  AC_DEFINE(COUENNEINTERFACE_FROM_ASL, 1, [whether CouenneInterface is derived from Bonmins AmplInterface])
55fi
56
57# Osi interfaces to LP solvers
58AC_COIN_CHK_PKG(OsiCpx,[CouenneLib],[osi-cplex])  # Osi/Cplex
59AC_COIN_CHK_PKG(OsiGrb,[CouenneLib],[osi-gurobi]) # Osi/Gurobi
60AC_COIN_CHK_PKG(OsiMsk,[CouenneLib],[osi-mosek])  # Osi/Mosek
61AC_COIN_CHK_PKG(OsiSpx,[CouenneLib],[osi-soplex]) # Osi/SoPlex
62AC_COIN_CHK_PKG(OsiXpr,[CouenneLib],[osi-xpress]) # Osi/Xpress
63
64#############################################################################
65#                       Other third party software                          #
66#############################################################################
67
68# Nauty library (for symmetry detection)
69AC_LANG_PUSH(C)
70AC_COIN_CHK_LIB([Nauty],[CouenneLib],[-lnauty],[],[],[nauty])
71
72# SCIP (used in Feasibility Pump)
73AC_COIN_CHK_LIB([SCIP],[CouenneLib],[-lscipsolver],[],[],[SCIPcreate])
74
75# CPLEX (so we can include cplex.h)
76AC_COIN_CHK_LIB([Cplex],[CouenneLib],[-lcplex -lpthread -lm -ldl],[],[],[CPXgetstat])
77AC_LANG_POP(C)
78
79# for dsyevx in sdpcuts
80AC_COIN_CHK_LAPACK(CouenneLib)
81
82#############################################################################
83#                               System header                               #
84#############################################################################
85
86AC_LANG_PUSH(C++)
87# for readnl
88AC_CHECK_HEADERS([cstdint stdint.h],[break],[])
89AC_LANG_POP(C++)
90
91#############################################################################
92#                  Check for doxygen                                        #
93#############################################################################
94
95#AC_COIN_DOXYGEN(CoinUtils Osi Clp Cgl Cbc Ipopt Bonmin)
96AC_COIN_DOXYGEN
97
98##############################################################################
99#                   Finishing up by writing all the output                   #
100##############################################################################
101
102AC_COIN_FINALIZE_FLAGS([CouenneLib])
103
104# Here list all the files that configure should create (except for the
105# configuration header file)
106AC_CONFIG_FILES([Makefile
107                 test/Makefile
108                 src/main/Makefile
109                 src/bound_tightening/Makefile
110                 src/bound_tightening/twoImpliedBT/Makefile
111                 src/branch/Makefile
112                 src/convex/Makefile
113                 src/interfaces/Makefile
114                 src/heuristics/Makefile
115                 src/disjunctive/Makefile
116                 src/cut/crossconv/Makefile
117                 src/cut/sdpcuts/Makefile
118                 src/expression/Makefile
119                 src/problem/Makefile
120                 src/standardize/Makefile
121                 src/util/Makefile
122                 src/Makefile
123                 test/grandTest.sh
124                 couenne.pc
125                 doxydoc/doxygen.conf])
126
127# Here put the location and name of the configuration header file
128AC_CONFIG_HEADER([src/config.h src/config_couenne.h])
129
130# Finally, we let configure write all the output...
131AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.