AENET with CMake
================

Configure PIMD with -DAENET=ON, then build normally. CMake downloads the
upstream AENET 2.0.3 GitHub source at pinned commit
99b000c8dadca66585fb05e26c6eb1f507df46e4, checks its SHA256, and applies the
PIMD patch. This avoids the original release server's certificate problems.
The source files used by the patch match the original 2.0.3 release.

Archives, extracted sources, patched sources and libraries stay in the build
tree under lib/aenet. Invalid cached archives are removed and downloaded again.
To prepare an offline build, place a verified copy of
  aenet-99b000c8dadca66585fb05e26c6eb1f507df46e4.tar.gz
in <build>/lib/aenet/aenetlib/ before configuring. Expected SHA256:
  b0eb861778afd3eb2a2703f9f6074700ff71c40150105034c99a21e526c331db

AENET_SOURCE_DIR can select a different PIMD-compatible CMake wrapper directory;
it is not the path to an unmodified upstream AENET checkout.

For the legacy makefile, copy the original AENET src/ and lib/ here, run
apply_patch.sh, build the AENET and L-BFGS-B libraries, and enable the aenet flag.
