source: trunk/Couenne/configure.ac @ 490

Last change on this file since 490 was 488, checked in by pbelotti, 10 years ago

CPL -> EPL

  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
1# Copyright (C) 2006 International Business Machines.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: configure.ac 488 2011-01-10 17:06:41Z pbelotti $
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],[couenne@list.coin-or.org])
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# Where should everything be installed by default?  Here, we want it
29# to be installed directly in 'bin', 'lib', 'include' subdirectories
30# of the directory where configure is run.  The default would be
31# /usr/local.
32AC_PREFIX_DEFAULT([`pwd`])
33
34#############################################################################
35#                         Standard build tool stuff                         #
36#############################################################################
37
38# Get the system type
39AC_CANONICAL_BUILD
40
41# Initialization specifically for project main directories
42AC_COIN_PROJECTDIR_INIT(Couenne)
43
44# Check if user wants to produce debugging code
45AC_COIN_DEBUG_COMPILE(Couenne)
46
47# Get the name of the C++ compiler and appropriate compiler options
48AC_COIN_PROG_CXX
49
50# Get the name of the C compiler and appropriate compiler options
51AC_COIN_PROG_CC
52
53# Initialize automake and libtool
54AC_COIN_INIT_AUTO_TOOLS
55
56# for readnl.cpp
57AC_COIN_CHECK_CXX_CHEADER(stdint)
58
59#############################################################################
60#                            COIN-OR components                             #
61#############################################################################
62
63AC_COIN_CHECK_PACKAGE(Bonmin, [bonmin], [CouenneLib])
64if test $coin_has_bonmin != yes ; then
65  AC_MSG_ERROR([Required package Bonmin not available.])
66fi
67
68#############################################################################
69#                       Other third party software                          #
70#############################################################################
71
72# Bonmin AMPL interface
73# bad bad: if AMPL stuff is available, then libCouenne will depend on it, so we add it to CouenneLib
74AC_COIN_CHECK_PACKAGE(ASL, [bonminamplinterface], [CouenneLib])
75
76# Nauty library (for symmetry detection)
77AC_LANG_PUSH(C)
78AC_COIN_CHECK_USER_LIBRARY([Nauty],[NTY],[nauty.h],[nauty],,[CouenneLib])
79AC_LANG_POP(C)
80
81# CPLEX: check for OsiCplex, and check for cplex include dir, so we can include cplex.h
82AC_COIN_CHECK_PACKAGE(Cpx, [osi-cplex], [CouenneLib])
83AC_ARG_WITH([cplex-incdir],
84  [AS_HELP_STRING([--with-cplex-incdir], [specify the header file directory for library cplex])],
85  [CPXINCDIR=`cd $withval; pwd`])
86AC_SUBST(CPXINCDIR)
87
88# other LP solvers
89AC_COIN_CHECK_PACKAGE(Grb, [osi-gurobi], [CouenneLib])  # Osi/Gurobi
90AC_COIN_CHECK_PACKAGE(Msk, [osi-mosek],  [CouenneLib])  # Osi/Mosek
91AC_COIN_CHECK_PACKAGE(Spx, [osi-soplex], [CouenneLib])  # Osi/Soplex
92AC_COIN_CHECK_PACKAGE(Xpr, [osi-xpress], [CouenneLib])  # Osi/XpressMP
93
94##############################################################################
95#                   Finishing up by writing all the output                   #
96##############################################################################
97
98# Here list all the files that configure should create (except for the
99# configuration header file)
100AC_CONFIG_FILES([Makefile
101                 test/Makefile
102                 src/main/Makefile
103                 src/bound_tightening/Makefile
104                 src/branch/Makefile
105                 src/convex/Makefile
106                 src/interfaces/Makefile
107                 src/heuristics/Makefile
108                 src/disjunctive/Makefile
109                 src/sdpcuts/Makefile
110                 src/ellipcuts/Makefile
111                 src/expression/Makefile
112                 src/problem/Makefile
113                 src/standardize/Makefile
114                 src/readnl/Makefile
115                 src/util/Makefile
116                 src/crossconv/Makefile
117                 src/two_implied_bt/Makefile
118                 src/Makefile
119                 test/grandTest.sh
120                 couenne.pc couenne-uninstalled.pc])
121
122# Here put the location and name of the configuration header file
123AC_CONFIG_HEADER([inc/config_couenne.h])
124
125# Finally, we let configure write all the output...
126AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.