-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
154 lines (123 loc) · 7.45 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#==========================================================================#
# This file is part of the BiCePS Linear Integer Solver (BLIS). #
# #
# BLIS is distributed under the Eclipse Public License as part of the #
# COIN-OR repository (http://www.coin-or.org). #
# #
# Authors: #
# #
# Yan Xu, Lehigh University #
# Ted Ralphs, Lehigh University #
# #
# Conceptual Design: #
# #
# Yan Xu, Lehigh University #
# Ted Ralphs, Lehigh University #
# Laszlo Ladanyi, IBM T.J. Watson Research Center #
# Matthew Saltzman, Clemson University #
# #
# #
# Copyright (C) 2001-2023, Lehigh University, Yan Xu, and Ted Ralphs. #
# All Rights Reserved. #
#==========================================================================#
## $Id$
#############################################################################
# Names and other basic things #
#############################################################################
AC_INIT([Blis],[devel],[https://github.com/coin-or/CHiPPS-BLIS/issues/new],[coin-or-blis],[https://github.com/coin-or/CHiPPS-BLIS])
AC_COPYRIGHT([
#==========================================================================#
# This file is part of the BiCePS Linear Integer Solver (BLIS). #
# #
# BLIS is distributed under the Eclipse Public License as part of the #
# COIN-OR repository (http://www.coin-or.org). #
# #
# Authors: #
# #
# Yan Xu, Lehigh University #
# Ted Ralphs, Lehigh University #
# #
# Conceptual Design: #
# #
# Yan Xu, Lehigh University #
# Ted Ralphs, Lehigh University #
# Laszlo Ladanyi, IBM T.J. Watson Research Center #
# Matthew Saltzman, Clemson University #
# #
# #
# Copyright (C) 2001-2023, Lehigh University, Yan Xu, and Ted Ralphs. #
# All Rights Reserved. #
#==========================================================================#
])
# List one file in the package so that the configure script can test
# whether the package is actually there
AC_CONFIG_SRCDIR(src/BlisModel.h)
# Do some initialization work (version numbers, change prefix default, ...)
AC_COIN_INITIALIZE
#############################################################################
# Standard build tool stuff #
#############################################################################
# Get the name of the C++ compiler and appropriate compiler options.
AC_COIN_PROG_CXX
# This is a C++ package, set the language accordingly.
AC_LANG_PUSH(C++)
# Initialize libtool
AC_COIN_PROG_LIBTOOL
# set RPATH_FLAGS to the compiler link flags required to hardcode location
# of the shared objects (expanded_libdir is set somewhere in configure before)
# (use in examples Makefile)
AC_COIN_RPATH_FLAGS([$expanded_libdir])
#############################################################################
# COIN components #
#############################################################################
m4_foreach_w([myvar],[Alps Bcps CoinUtils Osi Cgl Clp],
[ AC_COIN_CHK_PKG(myvar,[BlisLib])
if test $coin_has_[]m4_tolower(myvar) != yes ; then
AC_MSG_ERROR([Required package myvar is not available.])
fi
])
AC_COIN_CHK_PKG(Sample,,[coindatasample],,dataonly)
#############################################################################
# Math headers #
#############################################################################
# Check for cmath/math.h, cfloat/float.h, cieeefp/ieeefp.h
AC_COIN_CHECK_MATH_HDRS
#############################################################################
# Other dependencies #
#############################################################################
AC_COIN_CHK_LIB(MPI,[BlisLib],[-lmpi],[],[],[MPI_Irecv],[#include "mpi.h"],
[no])
# ToDo: Automatically choose MPI compiler
##############################################################################
# VPATH links for example input files #
##############################################################################
# In this case, the source code is taken from the Blis examples directory
AC_COIN_VPATH_LINK(test/BlisMain.cpp:src/BlisMain.cpp)
# In case this is a VPATH configuration we need to make sure that the
# input files for the examples are available in the VPATH directory.
# ToDo: don't know why didn't work.
#AC_COIN_VPATH_LINK(examples/BlisMain.cpp)
#AC_COIN_VPATH_LINK(examples/blis.par)
#AC_COIN_VPATH_LINK(examples/flugpl.mps)
#############################################################################
# Check for doxygen #
#############################################################################
AC_COIN_DOXYGEN([CoinUtils Osi Clp Cgl Alps Bcps])
##############################################################################
# Finishing up by writing all the output #
##############################################################################
# Here list all the files that configure should create (except for the
# configuration header file)
AC_CONFIG_FILES([Makefile
examples/VRP/Makefile
src/Makefile
src/blis.par
test/Makefile
blis.pc])
AC_CONFIG_FILES([doxydoc/doxygen.conf])
# Here put the location and name of the configuration header file
AC_CONFIG_HEADERS([src/config.h src/config_blis.h])
# Finalize libs and cflags.
AC_COIN_FINALIZE_FLAGS([BlisLib])
# Finally, we let configure write all the output...
AC_COIN_FINALIZE