source: ThirdParty/Lapack/stable/1.0/configure.ac @ 1124

Last change on this file since 1124 was 1124, checked in by stefan, 12 years ago

synchronize stable/1.0 to trunk rev 1123

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 3.5 KB
Line 
1# Copyright (C) 2006, 2007 International Business Machines.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: configure.ac 1124 2008-08-22 17:27:15Z stefan $
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([ThirdPartyLapack],[1.0stable],
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
26AC_CONFIG_SRCDIR(LAPACK/SRC/dlarf.f)
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
34AC_COIN_PROJECTDIR_INIT
35
36#############################################################################
37#                         Standard build tool stuff                         #
38#############################################################################
39
40# Get the system type
41AC_CANONICAL_BUILD
42
43#turn off warnings and pedantic mode since they could make trouble on some platforms,
44#and we couldn't fix them anyway
45coin_skip_warn_fflags=yes
46
47# Check if user wants to produce debugging code
48AC_COIN_DEBUG_COMPILE(Lapack)
49
50# Get the name of the Fortran compiler and appropriate compiler options
51AC_COIN_PROG_F77
52
53#Setup special Fortran flags for dlamch.f:
54#do not use optimiziation flags in default (=optimized) mode, but use debug flags in debug mode
55if test "$coin_debug_compile" = true ; then
56  DLAMCH_FFLAGS="$DBG_FFLAGS"
57else
58  DLAMCH_FFLAGS="$coin_add_fflags $coin_warn_fflags $ADD_FFLAGS"
59fi
60AC_SUBST(DLAMCH_FFLAGS)
61
62# Initialize autotools
63AC_COIN_INIT_AUTO_TOOLS
64
65# Check if Lapack is already available on the system or provided by user
66#save_LIBS="$LIBS"
67AC_COIN_HAS_BLAS
68#LIBS="$save_LIBS" # we need to make sure that blas libraries are not in LIBS
69
70AC_COIN_HAS_LAPACK
71MAKEOKFILE=.MakeOk
72if test $coin_has_lapack = yes && test "$use_lapack" != BUILD; then
73  rm -f $MAKEOKFILE
74  AC_MSG_NOTICE([The Lapack sources don't need to be compiled])
75  MAKEOKFILE=
76else
77  touch $MAKEOKFILE
78fi
79AC_SUBST(MAKEOKFILE)
80AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
81
82#############################################################################
83#               Create links to the required source files                   #
84#############################################################################
85
86if test x"$MAKEOKFILE" != x; then
87  lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
88  for file in $lapack_source_files; do
89    AC_CONFIG_LINKS($file:LAPACK/SRC/$file)
90  done
91  lapack_source_files_in_install='dlamch.f'
92  for file_in_install in $lapack_source_files_in_install; do
93    AC_CONFIG_LINKS($file_in_install:LAPACK/INSTALL/$file_in_install)
94  done
95fi
96
97AC_CONFIG_FILES([Makefile])
98
99AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.