Created
June 7, 2012 16:11
-
-
Save jbeezley/2889732 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: nc-config.in | |
=================================================================== | |
6,7d5 | |
< # | |
< # $Id: nc-config.in,v 1.17 2010/03/24 15:20:37 dmh Exp $ | |
15,16d12 | |
< cxx="@CXX@" | |
< fc="@FC@" | |
18d13 | |
< fflags="@FFLAGS@ @MOD_FLAG@${includedir}" | |
20d14 | |
< flibs="-L${libdir} @NC_FLIBS@" | |
27,29d20 | |
< has_f77="@HAS_F77@" | |
< has_f90="@HAS_F90@" | |
< has_cxx="@HAS_CXX@" | |
32a24,36 | |
> if type -p nf-config > /dev/null 2>&1; then | |
> fc=`nf-config --fc` | |
> fflags=`nf-config --fflags` | |
> flibs=`nf-config --flibs` | |
> has_f90=`nf-config --has-f90` | |
> fi | |
> | |
> if type -p ncxx-config > /dev/null 2>&1; then | |
> cxx=`ncxx-config --cxx` | |
> has_cxx=`ncxx-config --has_cxx` | |
> fi | |
> | |
> | |
43,44d46 | |
< --cxx C++ compiler | |
< --fc Fortran compiler | |
46d47 | |
< --fflags flags needed to compile a Fortran program | |
53,55d53 | |
< --has-f77 whether Fortran 77 API is enabled in this build | |
< --has-f90 whether Fortran 90 API is enabled in this build | |
< --has-c++ whether C++ API is enabled in this build | |
58d55 | |
< --flibs libraries needed to link a Fortran program | |
63a61,73 | |
> if type -p ncxx-config > /dev/null 2>&1; then | |
> cat <<EOF | |
> --cxx C++ compiler | |
> --has-c++ whether C++ API is enabled in this build | |
> | |
> EOF | |
> fi | |
> if type -p nf-config > /dev/null 2>&1; then | |
> cat <<EOF | |
> --fc Fortran compiler | |
> --fflags flags needed to compile a Fortran program | |
> --flibs libraries needed to link a Fortran program | |
> --has-f90 whether Fortran 90 API is enabled in this build | |
64a75,76 | |
> EOF | |
> fi | |
83d94 | |
< echo " --has-f77 -> $has_f77" | |
127,134d137 | |
< --cxx) | |
< echo $cxx | |
< ;; | |
< | |
< --fc) | |
< echo $fc | |
< ;; | |
< | |
139,150d141 | |
< --fflags) | |
< echo $fflags | |
< ;; | |
< | |
< --libs) | |
< echo $libs | |
< ;; | |
< | |
< --flibs) | |
< echo $flibs | |
< ;; | |
< | |
162a154,157 | |
> --has-hdf5) | |
> echo $has_hdf5 | |
> ;; | |
> | |
171,172c166,171 | |
< --has-hdf5) | |
< echo $has_hdf5 | |
--- | |
> --has-szlib) | |
> echo $has_szlib | |
> ;; | |
> | |
> --libs) | |
> echo $libs | |
175,176c174,175 | |
< --has-f77) | |
< echo $has_f77 | |
--- | |
> --prefix) | |
> echo "${prefix}" | |
179,180c178,187 | |
< --has-f90) | |
< echo $has_f90 | |
--- | |
> --includedir) | |
> echo "${includedir}" | |
> ;; | |
> | |
> --version) | |
> echo $version | |
> ;; | |
> | |
> --cxx) | |
> echo $cxx | |
187,188c194,195 | |
< --has-szlib) | |
< echo $has_szlib | |
--- | |
> --fc) | |
> echo $fc | |
191,192c198,199 | |
< --prefix) | |
< echo "${prefix}" | |
--- | |
> --fflags) | |
> echo $fflags | |
195,196c202,203 | |
< --includedir) | |
< echo "${includedir}" | |
--- | |
> --flibs) | |
> echo $flibs | |
199,200c206,207 | |
< --version) | |
< echo $version | |
--- | |
> --has-f90) | |
> echo $has_f90 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment