1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-30 00:44:52 +02:00
qmckl/configure.org

2.5 KiB

QMCkl configuration

This files contains al the information to generate the files required by Autotools to build the configure script for the library.

Scripts analyzing source code

Version of the library

echo 1.0
1.0
echo "https://github.com/TREX-CoE/qmckl/issues"
https://github.com/TREX-CoE/qmckl/issues
echo "https://trex-coe.github.io/qmckl/index.html"
https://trex-coe.github.io/qmckl/index.html
git log --oneline | head -1
5f2da3e Fixed website

C Header files

#grep --regexp="\#include\\s+<.*>" --no-filename src/*.org \
grep --regexp="\#include\\s*<.*>" --no-filename src/*.org \
 | sort \
 | uniq \
 | cut -d '<' -f 2 \
 | cut -d '>' -f 1 \
 | tr '\n' ' '
assert.h errno.h math.h stdint.h stdlib.h string.h

configure.ac

Initialization

# This file was generated from the org-mode file configure.org

VERSION=[<<version()>>]
AC_SUBST([VERSION])

AC_REVISION([<<revision()>>])
AC_INIT([QMCkl],[<<version()>>],
     [<<issues()>>], [],
     [<<website()>>])

Source files

AC_CONFIG_SRCDIR([src/README.org])

C Compiler

AC_LANG_PUSH([C])
AC_PROG_CC

AC_CHECK_HEADERS([<<headers()>>])

Fortran Compiler

AC_PROG_FC([ifort gfortran flang],[Fortran])
AC_PROG_FC_C_O
AC_FC_SRCEXT([f90])
AC_FC_FREEFORM

External libraries

AC_CHECK_HEADER([munit/munit.h], [echo found], [echo not found] )

AC_CHECK_LIB([pthread], [pthread_create])

AC_SEARCH_LIBS([dgemm], [blas mkl],
             [],
             AC_MSG_ERROR([Unable to find a BLAS library])
           ])

Makefile

AC_CONFIG_FILES(Makefile)

Library

Documentation

AC_CHECK_PROGS([HAS_EMACS],[emacs],[])

Finalization

AC_OUTPUT

Makefile.am