add "configure" script

Issue #145 resolved
Aurelien Bouteiller created an issue

A configure script for PaRSEC

This is a proposal. I'll start working on this only if some interest is shown.

Problem

The configure scripts in contrib are hackish. On the other hand, configuring a CMake projects is not user friendly.

Proposed solution

Addition of a configure script, that takes --with-hwloc=DIR type of options and --enable-feature, so that it feels like an autoconf configure.

The script will do no detection of software, but only translate "configure like" options into -DCMAKE_WITH_FEATURE arguments to the cmake call.

Refinements ##

  1. The script will produce a config.log and config.status so that one can reconfigure with the same options and still blow up the CMake cache.
  2. The script will take as input "platform" files, like Open MPI. The existing contrib/config.titan will become platform files, with a bunch of assignments, rather than direct callable scripts.

Comments (4)

  1. Aurelien Bouteiller reporter

    I did an initial study about using autoconf to create a stub but it spiraled out of control. The complexity was not worth the feature.

    I'll revive a more realistic effort using getopt to set default values for --with-xxx and --disable-yyy that will set some values for the cmake invocation.

  2. Log in to comment