From 0a6c1dc65f27d6a550e78248b71ac859e680ae25 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Mon, 1 Nov 2021 10:01:35 +0100 Subject: [PATCH] Removed TREXIO_DEVEL in configure --- .github/workflows/actions.yml | 4 ++-- README.md | 2 +- configure.ac | 9 +++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 3d69bb1..1aa8104 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -23,7 +23,7 @@ jobs: - name: configure with autotools run: | ./autogen.sh - TREXIO_DEVEL=1 ./configure --enable-silent-rules + ./configure --enable-maintainer-mode --enable-silent-rules - name: compile TREXIO run: make -j 2 @@ -63,7 +63,7 @@ jobs: - name: configure with autotools run: | ./autogen.sh - TREXIO_DEVEL=1 ./configure FC=gfortran-10 --enable-silent-rules + ./configure FC=gfortran-10 --enable-silent-rules --enable-maintainer-mode - name: compile TREXIO run: make -j 2 diff --git a/README.md b/README.md index 6562200..8b01679 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ TREX library for efficient I/O. 1. `git clone https://github.com/TREX-CoE/trexio.git` 2. `cd trexio` 3. `./autogen.sh` -4. `TREXIO_DEVEL=1 ./configure --enable-maintainer-mode` +4. `./configure --enable-maintainer-mode` 5. `make` 6. `make check` 7. `sudo make install` diff --git a/configure.ac b/configure.ac index fb9f626..466a485 100644 --- a/configure.ac +++ b/configure.ac @@ -131,11 +131,16 @@ AC_TYPE_UINT64_T AC_FUNC_MALLOC AC_CHECK_FUNCS([memset mkdir strerror]) +if test "x$enable_maintainer_mode" == "xyes"; then + TREXIO_DEVEL=" -- Developer mode" +else + TREXIO_DEVEL="" +fi + AM_CONDITIONAL([TREXIO_DEVEL],[test "x$TREXIO_DEVEL" != x]) if test "x${TREXIO_DEVEL}" != "x"; then - TREXIO_DEVEL=" -- Developer mode" AC_PROG_AWK AM_PATH_PYTHON([3.0]) @@ -166,7 +171,7 @@ else [AC_MSG_ERROR([ ---------------------------------------------------------------- Installation with the current configuration is not possible. - Activate developer mode: TREXIO_DEVEL=1 ./configure + Activate developer mode: ./configure --enable-maintainer-mode | OR | Download the tarball with the source code distribution. ----------------------------------------------------------------