1dnl This file is part of MED. 2dnl 3dnl COPYRIGHT (C) 1999 - 2019 EDF R&D, CEA/DEN 4dnl MED is free software: you can redistribute it and/or modify 5dnl it under the terms of the GNU Lesser General Public License as published by 6dnl the Free Software Foundation, either version 3 of the License, or 7dnl (at your option) any later version. 8dnl 9dnl MED is distributed in the hope that it will be useful, 10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12dnl GNU Lesser General Public License for more details. 13dnl 14dnl You should have received a copy of the GNU Lesser General Public License 15dnl along with MED. If not, see <http://www.gnu.org/licenses/>. 16dnl 17 18AC_DEFUN([MED_SUMMARY],dnl 19[ 20 21dnl hdf configuration file has been used to defined the following macros. 22 23AC_SUBST([CONFIG_DATE]) CONFIG_DATE="`date`" 24AC_SUBST([CONFIG_USER]) CONFIG_USER="`whoami`@`hostname`" 25AC_SUBST(UNAME_INFO) UNAME_INFO=`uname -a` 26AC_SUBST(enable_shared) 27AC_SUBST(enable_static) 28 29dnl Compiler with version information. This consists of the full path 30dnl name of the compiler and the reported version number. 31AC_SUBST([CC_VERSION]) 32dnl Strip anything that looks like a flag off of $CC 33CC_NOFLAGS=`echo $CC | sed 's/ -.*//'` 34 35if `echo $CC_NOFLAGS | grep ^/ >/dev/null 2>&1`; then 36 CC_VERSION="$CC" 37else 38 CC_VERSION="$CC"; 39 for x in `echo $PATH | sed -e 's/:/ /g'`; do 40 if test -x $x/$CC_NOFLAGS; then 41 CC_VERSION="$x/$CC" 42 break 43 fi 44 done 45fi 46if test -n "$cc_vendor" && test -n "$cc_version"; then 47 CC_VERSION="$CC_VERSION ($cc_vendor-$cc_version)" 48fi 49 50dnl Are we compiling static libraries, shared libraries, or both? This 51dnl is only used for the libhdf5.settings file. We can't just look at 52dnl $enable_static and $enable_shared because if they're yes the ltconfig 53dnl might have decided that one or the other is simply not possible. 54dnl Therefore we have to ask the generated `libtool' shell script 55dnl which 'features' it has enabled. 56if (./libtool --features | grep '^enable shared libraries' > /dev/null); then 57 enable_shared=yes 58else 59 enable_shared=no 60dnl Ce n'est pas le meilleur emplacement pour réaliser ce test 61dnl mais on ne peut pas avoir une version finalisée de ./libtool avant l'appel à med_summary 62 test x"$enable_python" = xyes && AC_MSG_ERROR([Building the python interface require the abilility to build shared library. Either activate --enable-shared or deactivate python interface --disable-python.]) 63fi 64 65if (./libtool --features | grep '^enable static libraries' > /dev/null); then 66 enable_static=yes 67else 68 enable_static=no 69fi 70 71if test "X$enable_static" = "Xyes" && test "X$enable_shared" = "Xyes"; then 72 STATIC_SHARED="static, shared" 73elif test "X$enable_static" = "Xyes"; then 74 STATIC_SHARED="static" 75elif test "X$enable_shared" = "Xyes"; then 76 STATIC_SHARED="shared" 77else 78 STATIC_SHARED="none" 79fi 80 81AC_SUBST([STATIC_SHARED]) 82]) 83