GitLab maintenance scheduled for Today, 2019-04-24, from 12:00 to 13:00 CDT - Services will be unavailable during this time.

Commit a8937eb2 authored by Swann Perarnau's avatar Swann Perarnau

[refactor] Convert repository to autotools

Use standard tools to deal with compile/headers and so on. Autotools are
not necessary easy to use, but everyone knows how to interact with them.

This commit is incomplete:
 - make check doesn't work right now
 - config.h is not used/configured properly
parent 5ffbcad3
This diff is collapsed.
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
EXTRA_DIST = autogen.sh README.markdown
#!/bin/sh
autoreconf --verbose --install --force
# see semver.org for version info
AC_INIT([argo-nodeos],[0.0.1],[swann@anl.gov])
# are we in the right source dir ?
AC_CONFIG_SRCDIR([src/argo_nodeos_config.cpp])
# build artefacts in separate dir
AC_CONFIG_AUX_DIR([m4])
AC_CONFIG_MACRO_DIR([m4])
# automake should fail on any error
AM_INIT_AUTOMAKE([-Wall -Werror foreign 1.12])
AM_PROG_AR
# check for libtool
LT_INIT
# check for programs
AC_LANG([C++])
AC_PROG_CXX
# support for testing with valgrind
AC_ARG_ENABLE(valgrind,
[AS_HELP_STRING([--enable-valgrind],[Also valgrind on checks (default is no).])],
[valgrind=true],[valgrind=false])
if [[ "x$valgrind" = xtrue ]]; then
AC_PATH_PROG(VALGRIND, valgrind, no)
if [[ "x$VALGRIND" = xno ]]; then
AC_MSG_ERROR([Valgrind not found in PATH. ])
fi
fi
AM_CONDITIONAL([TEST_VALGRIND],[test "x$valgrind" = xtrue])
# dependencies
#config, outputs
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT
AM_CXXFLAGS = -ggdb -O0
bin_PROGRAMS = argo_nodeos_config
argo_nodeos_config_SOURCES = argo_nodeos_config.cpp config_reader.cpp node_settup_changer.cpp \
node_setup_reader.cpp argo_container.cpp container_manager.cpp \
utils.cpp acl.hpp ilogger.cpp stderrlogger.cpp filelogger.cpp \
syslogger.cpp aggregatelogger.cpp log_option_parser.cpp \
resource_locker.cpp trace.cpp \
iresource_controller.cpp\
iresource_controller_status.cpp\
string_parser.cpp\
int_list_parser.cpp\
nodeos_exceptions.cpp\
config_reader.hpp node_setup_changer.hpp node_setup_reader.hpp \
argo_container.hpp container_manager.hpp utils.hpp acl.cpp \
common.hpp defaults.hpp ilogger.hpp stderrlogger.hpp filelogger.hpp \
syslogger.hpp aggregatelogger.hpp headers.hpp log_option_parser.hpp \
trace.hpp resource_locker.hpp \
iresource_controller.hpp\
iresource_controller.hpp\
resource_controller_type.hpp\
string_parser.hpp\
int_list_parser.hpp\
nodeos_exceptions.hpp\
resource_ownership.hpp
thirdparty/jsonxx/jsonxx.cc thirdparty/jsonxx/jsonxx.h
# suid
install-exec-hook:
chmod u+s $(DESTDIR)$(bindir)/argo_nodeos_config$(EXEEXT)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment