source: trunk/Alps/configure.ac @ 277

Last change on this file since 277 was 277, checked in by andreasw, 13 years ago

first working version with autotools

File size: 3.7 KB
Line 
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 786 2006-06-01 04:10:46Z andreasw $
6
7# Author:  Andreas Waechter            IBM    2006-04-13
8
9#############################################################################
10#                       Names and other basic things                        #
11#############################################################################
12
13AC_PREREQ(2.59)
14
15AC_INIT([Alps],[0.1],[https://projects.coin-or.org/Alps/newticket])
16
17AC_COPYRIGHT([
18Copyright 2006 International Business Machines and others.
19All Rights Reserved.
20This file is part of the open source package Coin which is distributed
21under the Common Public License.])
22
23# List one file in the package so that the configure script can test
24# whether the package is actually there
25AC_CONFIG_SRCDIR(src/Alps.h)
26
27# Where should everything be installed by default?  Here, we want it
28# to be installed directly in 'bin', 'lib', 'include' subdirectories
29# of the directory where configure is run.  The default would be
30# /usr/local.
31AC_PREFIX_DEFAULT([`pwd`])
32
33#############################################################################
34#                         Standard build tool stuff                         #
35#############################################################################
36
37# Get the system type
38AC_CANONICAL_BUILD
39
40# If this project depends on external projects, the Externals file in
41# the source root directory contains definition of where to find those
42# externals.  The following macro ensures that those externals are
43# retrieved by svn if they are not there yet.
44AC_COIN_PROJECTDIR_INIT
45
46# Check if user wants to produce debugging code
47AC_COIN_DEBUG_COMPILE
48
49# Get the name of the C++ compiler and appropriate compiler options
50AC_COIN_PROG_CXX
51
52# Initialize automake and libtool
53AC_COIN_INIT_AUTO_TOOLS
54
55#############################################################################
56#                              COIN components                              #
57#############################################################################
58
59AC_COIN_HAS_PROJECT(Alps)
60AC_COIN_HAS_PROJECT(CoinUtils)
61AC_COIN_HAS_PROJECT(Clp)
62AC_COIN_HAS_PROJECT(Cgl)
63AC_COIN_HAS_PROJECT(Osi)
64
65#############################################################################
66#                             Other dependencies                            #
67#############################################################################
68
69AC_COIN_HAS_USER_LIBRARY([Mpi], [MPI], [mpi.h], [MPI_Irecv])
70# ToDo: Automatically choose MPI compiler
71
72##############################################################################
73#                   VPATH links for example input files                      #
74##############################################################################
75
76# In case this is a VPATH configuration we need to make sure that the
77# input files for the examples are available in the VPATH directory.
78
79# ToDo
80#AC_COIN_VPATH_LINK(examples/Abc/abc.par)
81#AC_COIN_VPATH_LINK(examples/input.130)
82
83##############################################################################
84#                   Finishing up by writing all the output                   #
85##############################################################################
86
87# Here list all the files that configure should create (except for the
88# configuration header file)
89AC_CONFIG_FILES([Makefile
90                 examples/Abc/Makefile
91                 examples/Abc/abc.par
92                 src/Makefile
93                 alps_addlibs.txt])
94
95# Here put the location and name of the configuration header file
96AC_CONFIG_HEADER([inc/config_alps.h])
97
98# Finally, we let configure write all the output...
99AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.