2021-11-15 17:37:51 +01:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ([2.69])
|
|
|
|
|
|
|
|
AC_INIT([QMC=Chem], [2.0.0], [https://gitlab.com/scemama/qmcchem/-/issues/new])
|
2022-01-03 13:18:45 +01:00
|
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects silent-rules])
|
|
|
|
|
2021-11-15 17:37:51 +01:00
|
|
|
AC_CONFIG_SRCDIR([README.md])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CONFIG_HEADERS([include/config.h])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_AWK
|
2022-01-03 13:18:45 +01:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
2021-11-15 17:37:51 +01:00
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AX_PROG_IRPF90
|
|
|
|
|
2022-01-03 13:18:45 +01:00
|
|
|
# Fortran compiler checks
|
|
|
|
AC_PROG_FC([ifort gfortran])
|
|
|
|
AC_FC_LINE_LENGTH([512])
|
|
|
|
|
2021-11-15 17:37:51 +01:00
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
AX_ZMQ([4.0], [], [ AC_MSG_ERROR([Please install ZeroMQ >= 4.0]) ])
|
2022-01-03 13:18:45 +01:00
|
|
|
AX_BLAS()
|
|
|
|
AX_LAPACK()
|
|
|
|
|
|
|
|
# Required by EZFIO
|
|
|
|
AC_CHECK_FUNCS([mkdir strerror])
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
|
|
|
|
# Required by OCaml C bindings
|
|
|
|
AC_CHECK_FUNCS([inet_ntoa])
|
|
|
|
AC_CHECK_FUNCS([memset])
|
|
|
|
AC_CHECK_FUNCS([socket])
|
|
|
|
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h sys/ioctl.h sys/socket.h])
|
|
|
|
|
|
|
|
# Required by ZeroMQ
|
|
|
|
AC_CHECK_HEADERS([stddef.h])
|
|
|
|
AC_TYPE_INT32_T
|
|
|
|
AC_TYPE_UINT16_T
|
|
|
|
AC_TYPE_UINT32_T
|
|
|
|
AC_TYPE_UINT8_T
|
|
|
|
|
|
|
|
# Required by QMCkl
|
|
|
|
#AC_CHECK_HEADER_STDBOOL
|
|
|
|
#AC_TYPE_INT64_T
|
|
|
|
#AC_TYPE_UINT64_T
|
|
|
|
|
2021-11-15 17:37:51 +01:00
|
|
|
|
|
|
|
AC_LANG([Fortran])
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|