Changeset 1548 for ThirdParty/Mumps/trunk/configure.ac
- Timestamp:
- May 8, 2010 9:54:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Mumps/trunk/configure.ac
r1492 r1548 1 # Copyright (C) 2007-200 8International Business Machines.1 # Copyright (C) 2007-2009 International Business Machines. 2 2 # All Rights Reserved. 3 3 # This file is distributed under the Common Public License. … … 16 16 17 17 AC_COPYRIGHT([ 18 Copyright 2007-200 8International Business Machines and others.18 Copyright 2007-2009 International Business Machines and others. 19 19 All Rights Reserved. 20 20 This file is part of the open source package Coin which is distributed … … 57 57 AC_COIN_F77_WRAPPERS 58 58 59 # Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files 60 coin_need_flibs=yes 61 59 62 # We need to translate the result from autoconf to what MUMPS wants 60 63 case "$ac_cv_f77_mangling" in … … 93 96 AC_COIN_INIT_AUTO_TOOLS 94 97 95 # Check for user-provided BLAS library, but make sure it is not added to libcoinmumps.a 96 save_LIBS="$LIBS" 97 AC_COIN_HAS_BLAS 98 LIBS="$save_LIBS" 98 AC_COIN_HAS_MODULE_BLAS 99 AC_COIN_HAS_MODULE(Metis, [coinmetis >= 4.0], [], [../Metis]) 99 100 100 # Check if Metis is available101 AC_COIN_HAS_METIS102 101 if test "$coin_has_metis" = yes; then 103 102 MY_DEFS="$MY_DEFS -Dmetis" … … 105 104 fi 106 105 107 ## Check if Mumps is already provided by user108 AC_COIN_HAS_MUMPS109 110 106 #Mumps needs pthreads 111 107 AC_CHECK_LIB([pthread],[pthread_create],[ADDLIBS="-lpthread $ADDLIBS"]) 112 108 113 109 # Verify that we can compile Fortran 90 code 114 if test "$use_mumps" = BUILD; then 115 AC_MSG_CHECKING([whether we can compile Fortran 90 code]) 116 AC_LANG_PUSH(Fortran 77) 117 AC_COMPILE_IFELSE([ MODULE BLA 118 DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB 119 END MODULE BLA],[can_f90=yes],[can_f90=no]) 120 AC_MSG_RESULT([$can_f90]) 121 AC_LANG_POP(Fortran 77) 122 if test $can_f90 = no; then 123 AC_MSG_WARN([Your Fortran compiler can't compile Fortran 90, I will not compile MUMPS]) 124 use_mumps= 125 fi 110 AC_MSG_CHECKING([whether we can compile Fortran 90 code]) 111 AC_LANG_PUSH(Fortran 77) 112 AC_COMPILE_IFELSE([ MODULE BLA 113 DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB 114 END MODULE BLA],[can_f90=yes],[can_f90=no]) 115 AC_MSG_RESULT([$can_f90]) 116 AC_LANG_POP(Fortran 77) 117 if test $can_f90 = no; then 118 AC_MSG_ERROR([Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS]) 126 119 fi 127 120 128 rm -f $MAKEOKFILE 129 if test $coin_has_mumps = yes && test "$use_mumps" != BUILD; then 130 AC_MSG_NOTICE([The Mumps sources don't need to be compiled]) 131 MAKEOKFILE= 132 else 133 touch $MAKEOKFILE 134 fi 135 AC_SUBST(MAKEOKFILE) 136 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE") 121 MUMPSDIR=MUMPS 122 MUMPSOBJDIR=`pwd` 123 MUMPSSRCDIR=$abs_source_dir/$coin_mumpsobjdir/$MUMPSDIR 137 124 138 MUMPSDIR=MUMPS139 125 AC_SUBST(MUMPSDIR) 126 AC_SUBST(MUMPSOBJDIR) 127 AC_SUBST(MUMPSSRCDIR) 140 128 141 129 # Fix Fortran preprocessor flags … … 156 144 AC_MSG_RESULT([$MY_FDEFS]) 157 145 158 AC_CONFIG_FILES([Makefile ])146 AC_CONFIG_FILES([Makefile coinmumps.pc coinmumps-uninstalled.pc]) 159 147 160 148 AC_COIN_FINALIZE
Note: See TracChangeset
for help on using the changeset viewer.