source: ThirdParty/HSL/trunk/configure.ac @ 404

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

correct version number if configure.ac

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 2.9 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 404 2007-06-22 05:52:53Z 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([ThirdPartyHSL],[1.0trunk],
16        [http://projects.coin-or.org/BuildTools/newticket])
17
18AC_COPYRIGHT([
19Copyright 2006 International Business Machines and others.
20All Rights Reserved.
21This file is part of the open source package Coin which is distributed
22under the Common Public License.])
23
24# List one file in the package so that the configure script can test
25# whether the package is actually there
26# Here we don't know yet which files are actually provided...
27AC_CONFIG_SRCDIR(configure.ac)
28
29# Where should everything be installed by default?  Here, we want it
30# to be installed directly in 'bin', 'lib', 'include' subdirectories
31# of the directory where configure is run.  The default would be
32# /usr/local.
33AC_PREFIX_DEFAULT([`pwd`])
34
35AC_COIN_PROJECTDIR_INIT
36
37#############################################################################
38#                         Standard build tool stuff                         #
39#############################################################################
40
41# Get the system type
42AC_CANONICAL_BUILD
43
44# Check if user wants to produce debugging code
45AC_COIN_DEBUG_COMPILE(HSL)
46
47# Get the name of the Fortran compiler and appropriate compiler options
48AC_COIN_PROG_F77
49
50# Need egrep later on
51AC_PROG_EGREP
52
53# Initialize autotools
54AC_COIN_INIT_AUTO_TOOLS
55
56#############################################################################
57#                    Find out which files are available                     #
58#############################################################################
59
60AC_DEFUN([MY_CHECK_HSLFILE],
61         [AC_CHECK_FILE([$srcdir/$1.f],
62                        [hsl_files="$hsl_files $1.f"
63                         coin_has_$1=yes],
64                        [coin_has_$1=no])
65          AM_CONDITIONAL([COIN_HAS_$2],[test $coin_has_$1 = yes])])
66
67MY_CHECK_HSLFILE(ma27ad,MA27)
68if test coin_has_ma27ad = yes; then
69  AC_MSG_CHECKING([whether MA27 is threadsafe])
70  if $EGREP MA27UD $srcdir/ma27ad.f >/dev/null 2>&1; then
71    AC_MSG_RESULT(yes)
72  else
73    AC_MSG_RESULT(no)
74    AC_MSG_ERROR([Please obtain the threadsafe (newer) version of MA27])
75  fi
76fi
77MY_CHECK_HSLFILE(mc19ad,MC19)
78MY_CHECK_HSLFILE(ma57ad,MA57)
79MY_CHECK_HSLFILE(ma28ad,MA28)
80
81#############################################################################
82#                              Write the output                             #
83#############################################################################
84
85AC_CONFIG_FILES([Makefile])
86
87AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.