ctlseqs/INSTALL.org

2.0 KiB

Installation Guidelines

Copy Library Code to Your Project

This is the recommended way to use this library. Just copy ctlseqs.h and ctlseqs.c (and optionally the C++ wrapper ctlseqs.hh) to your project and build it alongside with other code.

No precautions need to be taken, as ctlseqs has no third-party dependencies and does not require any fancy compiler flags or CPP macros. An ISO C99 and POSIX.1-2008 compliant C implementation would suffice.

Build and Install From Source

Alternatively, You may want a systemwide installation of the library and link it to your project. Some scripts are provided to help you with that.

GNU Autoconf, Automake, Libtool and Autoconf Archive is required.

Generate and execute configure script. There are no custom configuration options available for this library, just builtin ones.

  autoreconf --install
  ./configure --prefix=$HOME CFLAGS='-O0 -g'

Compile the library source code, as well as examples and test suites. Optionally, you can run the test suite (requires DejaGnu), install the binary and man pages to your prefix.

  make && make check && make install

Finally, link it to your project with the -lctlseqs (or similar) flag.

Install From a Package Manager

We maintain unofficial repositories for a few package managers, so that the ctlseqs library can be installed from them.

However, there is no guarantee that any of those repositories will be actively maintained in the future.

Homebrew

  brew tap CismonX/repos
  brew install ctlseqs