source: ThirdParty/Glpk/trunk/configure.ac @ 430

Last change on this file since 430 was 430, checked in by andreasw, 14 years ago

including first trunk version of ThirdParty/Glpk?

File size: 2.6 KB
Line 
1# Copyright (C) 2007 Stefan Vigerske
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: configure.ac 130 2007-07-17 23:07:33Z andreasw $
6
7#############################################################################
8#                       Names and other basic things                        #
9#############################################################################
10
11AC_PREREQ(2.59)
12
13AC_INIT([ThirdPartyGlpk],[0.0],[http://projects.coin-or.org/BuildTools/newticket])
14
15AC_COPYRIGHT([
16Copyright 2007 Stefan Vigerske and others.
17All Rights Reserved.
18This file is part of the open source package Coin which is distributed
19under the Common Public License.])
20
21# List one file in the package so that the configure script can test
22# whether the package is actually there
23AC_CONFIG_SRCDIR(Makefile.am)
24
25# Where should everything be installed by default?  Here, we want it
26# to be installed directly in 'bin', 'lib', 'include' subdirectories
27# of the directory where configure is run.  The default would be
28# /usr/local.
29AC_PREFIX_DEFAULT([`pwd`])
30
31AC_COIN_PROJECTDIR_INIT
32
33
34#############################################################################
35#                         Standard build tool stuff                         #
36#############################################################################
37
38# Get the system type
39AC_CANONICAL_BUILD
40
41# Check if user wants to produce debugging code
42AC_COIN_DEBUG_COMPILE(GLPK)
43
44# Get the name of the C compiler
45AC_COIN_PROG_CC
46
47# Initialize automake
48AC_COIN_INIT_AUTO_TOOLS
49
50###########################################################################
51#                            COIN_HAS_GLPK                                #
52###########################################################################
53
54# This macro checks for a library containing the GLPK library.  It
55# checks if the user has provided an argument for the GLPK library,
56# and if not, it checks whether the GLPK ThirdParty/GLPK directory has
57# been configured.  It adds to ADDLIBS any flags required to link with
58# an externally provided GLPK.  It defines the makefile conditional
59# and preprocessor macro COIN_HAS_GLPK, if GLPK is available, and it
60# defines the makefile conditional COIN_BUILD_GLPK, if GLPK is
61# compiled within COIN.
62
63## Check if GLPK is already provided by user
64AC_COIN_HAS_GLPK
65
66rm -f $MAKEOKFILE
67if test $coin_has_glpk = yes && test "$use_glpk" != BUILD; then
68  AC_MSG_NOTICE([The Glpk sources don't need to be compiled])
69  MAKEOKFILE=
70else
71  touch $MAKEOKFILE
72fi
73AC_SUBST(MAKEOKFILE)
74AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
75
76GLPKDIR=glpk
77AC_SUBST(GLPKDIR)
78
79AC_CONFIG_FILES([Makefile])
80
81AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.