mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
Fix #62 : raise autoconf error when not in developer mode
but trying to configure the GitHub repo clone. This is required because TREXIO source files can either be generated in developer mode (using emacs org-mode files) or obtained from the source code distribution.
This commit is contained in:
parent
fb9c95bd61
commit
2bdcf87a55
17
configure.ac
17
configure.ac
@ -157,6 +157,23 @@ if test "x${TREXIO_DEVEL}" != "x"; then
|
|||||||
HAS_CPPCHECK=1
|
HAS_CPPCHECK=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
# Throw an error message if the user attempts to configure the GitHub repo clone not in the developer mode.
|
||||||
|
# Developer mode is required to generate the TREXIO source files from the org-mode templates.
|
||||||
|
TEST_IFEXISTS=".gitmodules"
|
||||||
|
AC_CHECK_FILE([$TEST_IFEXISTS],
|
||||||
|
[AC_MSG_ERROR([
|
||||||
|
----------------------------------------------------------------
|
||||||
|
Installation with the current configuration is not possible.
|
||||||
|
Activate developer mode: TREXIO_DEVEL=1 ./configure
|
||||||
|
| OR |
|
||||||
|
Download the tarball with the source code distribution.
|
||||||
|
----------------------------------------------------------------
|
||||||
|
])],
|
||||||
|
[]
|
||||||
|
)
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Libm
|
## Libm
|
||||||
|
Loading…
Reference in New Issue
Block a user