mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
Automatic developer mode
This commit is contained in:
parent
0a6c1dc65f
commit
f0dd4563bc
26
configure.ac
26
configure.ac
@ -4,6 +4,15 @@
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([trexio], [1.1.0], [https://github.com/TREX-CoE/trexio/issues])
|
||||
AM_INIT_AUTOMAKE([subdir-objects color-tests parallel-tests silent-rules 1.11])
|
||||
AM_MAINTAINER_MODE()
|
||||
|
||||
# Activate developer mode when the source is the git repository.
|
||||
# Otherwise, it is the source distribution and the developer mode should not be activated.
|
||||
TEST_IFEXISTS=".git"
|
||||
AC_CHECK_FILE([$TEST_IFEXISTS],
|
||||
[enable_maintainer_mode="yes"],
|
||||
)
|
||||
|
||||
AM_MAINTAINER_MODE()
|
||||
LT_PREREQ([2.2])
|
||||
LT_INIT
|
||||
@ -162,23 +171,6 @@ if test "x${TREXIO_DEVEL}" != "x"; then
|
||||
HAS_CPPCHECK=1
|
||||
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: ./configure --enable-maintainer-mode
|
||||
| OR |
|
||||
Download the tarball with the source code distribution.
|
||||
----------------------------------------------------------------
|
||||
])],
|
||||
[]
|
||||
)
|
||||
|
||||
fi
|
||||
|
||||
## Libm
|
||||
|
Loading…
Reference in New Issue
Block a user