source: ThirdParty/Lapack/stable/1.5/configure.ac @ 3538

Last change on this file since 3538 was 3538, checked in by stefan, 4 years ago

restoring BuildTools/ThirdParty/Lapack?/stable/1.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 KB
Line 
1# Copyright (C) 2006, 2007 International Business Machines.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: configure.ac 3538 2015-08-09 14:36:56Z 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.5],[http://projects.coin-or.org/BuildTools/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 Eclipse 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(LAPACK/SRC/dlarf.f)
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
33AC_COIN_PROJECTDIR_INIT(Lapack)
34
35#############################################################################
36#                         Standard build tool stuff                         #
37#############################################################################
38
39# Get the system type
40AC_CANONICAL_BUILD
41
42#turn off warnings and pedantic mode since they could make trouble on some platforms,
43#and we couldn't fix them anyway
44coin_skip_warn_fflags=yes
45
46# Check if user wants to produce debugging code
47AC_COIN_DEBUG_COMPILE(Lapack)
48
49# Get the name of the Fortran compiler and appropriate compiler options
50AC_COIN_PROG_F77
51
52# Get the linker flags (FLIBS) that are required for linking against this library
53AC_COIN_F77_WRAPPERS
54
55# Check for Blas
56AC_COIN_CHECK_PACKAGE_BLAS(LapackLib)
57if test $coin_has_blas != yes; then
58  AC_MSG_ERROR([Required package BLAS not found.])
59fi
60
61# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
62LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
63
64# Take care that optimization is disbled for DLAMCH.F
65AC_ARG_VAR(DLAMCH_FFLAGS,[Fortran compiler options for DLAMCH.F])
66if test "x$DLAMCH_FFLAGS" = x ; then
67  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
68  case $F77 in
69    ifort* | */ifort* | IFORT* | */IFORT* )
70      case $build in
71        *-cygwin* | *-mingw*)
72          DLAMCH_FFLAGS="$FFLAGS -Od"
73          ;;
74        *)
75          DLAMCH_FFLAGS="$FFLAGS -O0"
76          ;;
77      esac
78      ;;
79    compile_f2c*)
80      case "$CC" in
81        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
82          DLAMCH_FFLAGS="$FFLAGS -Od"
83        ;;
84        *)
85          DLAMCH_FFLAGS="$FFLAGS -O0"
86        ;;
87      esac
88      ;;
89    *)
90      DLAMCH_FFLAGS="$FFLAGS -O0"
91      ;;
92  esac
93fi
94AC_SUBST(DLAMCH_FFLAGS)
95
96# Initialize autotools
97AC_COIN_INIT_AUTO_TOOLS
98
99#############################################################################
100#               Create links to the required source files                   #
101#############################################################################
102
103lapack_source_files='dbdsqr.f dgebal.f dgebak.f dgebd2.f dgebrd.f dgeev.f dgehd2.f dgehrd.f dgelq2.f dgelqf.f dgels.f dgeqr2.f dgeqrf.f dgesvd.f dgesv.f dgetf2.f dgetrf.f dgetri.f dgetrs.f dggbak.f dggbal.f dgghrd.f dggev.f dhgeqz.f dhseqr.f disnan.f dlabad.f dlabrd.f dlacpy.f dladiv.f dlaebz.f dlae2.f dlaev2.f dlaexc.f dlagtf.f dlagts.f dlag2.f dlahqr.f dlahr2.f dlaisnan.f dlaln2.f dlaneg.f dlange.f dlanhs.f dlanst.f dlansy.f dlanv2.f dlapy2.f dlapy3.f dlaqr0.f dlaqr1.f dlaqr2.f dlaqr3.f dlaqr4.f dlaqr5.f dlarf.f dlarfb.f dlarfg.f
104dlarft.f dlarfx.f dlarnv.f dlarra.f dlarrb.f dlarrc.f dlarrd.f dlarre.f dlarrf.f dlarrj.f dlarrk.f dlarrr.f dlarrv.f dlartg.f dlartv.f dlaruv.f dlar1v.f dlas2.f dlascl.f dlaset.f dlasq1.f dlasq2.f dlasq3.f dlasq4.f dlasq5.f dlasq6.f dlasr.f dlasrt.f dlaswp.f dlassq.f dlasv2.f dlasyf.f dlasy2.f dlatrd.f dorg2l.f dorg2r.f dorgbr.f dorghr.f dorglq.f dorgl2.f dorgql.f dorgqr.f dorgtr.f dorm2r.f dormbr.f dormhr.f dorml2.f dormlq.f dormql.f dormqr.f dormtr.f dorm2l.f dpotf2.f dpotrf.f dpotrs.f dppsv.f dpptrf.f dpptrs.f dstebz.f dstein.f
105dstemr.f dsteqr.f dsterf.f dsyev.f dsyevr.f dsyevx.f dsytd2.f dsytf2.f dsytrd.f dsytrf.f dsytri.f dtgevc.f dtrevc.f dtrexc.f dtrti2.f dtrtri.f dtrtrs.f ieeeck.f iladlc.f iladlr.f ilaenv.f iparmq.f sgetf2.f sgetrf.f slaswp.f zgetf2.f zgetrf.f zlacgv.f zlacpy.f zlaev2.f zlaswp.f zpotf2.f zrot.f zsymv.f zsyr.f zsytri.f'
106for file in $lapack_source_files; do
107  AC_CONFIG_LINKS($file:LAPACK/SRC/$file)
108done
109lapack_source_files_in_install='dlamch.f slamch.f'
110for file_in_install in $lapack_source_files_in_install; do
111  AC_CONFIG_LINKS($file_in_install:LAPACK/INSTALL/$file_in_install)
112done
113
114AC_CONFIG_FILES([Makefile coinlapack.pc coinlapack-uninstalled.pc])
115
116AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.