|
PPL Prolog Language Interface 2.0
|
When the Parma Polyhedra Library is configured, it checks the selected Prolog runtimes, their foreign-interface development files and the build tools needed by each interface. Put the intended runtime and its tools on PATH before configuring. The runtime, PPL and GMP must use compatible architectures and linking conventions. See the runtime-specific sections in System-Dependent Features and the corresponding README files under interfaces/Prolog/.
Installation uses the directories selected by configure:
bindir, normally prefix/bin, contains installed PPL-enhanced interpreters, when provided by the selected interface and build.libdir, normally prefix/lib, contains the core PPL libraries.pkglibdir is libdir/ppl. It contains the GNU Prolog, SWI-Prolog and YAP native adapters, and the Ciao and SICStus module files installed with their native resources.pkgdatadir is datadir/ppl, normally prefix/share/ppl. It contains GNU Prolog's foreign declarations, the generated SWI-Prolog and YAP loader scripts, and XSB's compiled module and companion native module.Use the actual configured directories in the examples, including any --bindir, --libdir or --datadir overrides. The SWI-Prolog and YAP scripts locate their native modules relative to their own installed location, using the layout selected during the build. Keep that relative layout when relocating an installation. DESTDIR is an installation staging directory and is not part of the final loader paths.
The operating-system loader must also be able to find any shared PPL, GMP and Prolog runtime libraries. On GNU/Linux, man ld.so and man ldconfig describe the system's library search configuration. Run make installcheck to check the installed clients and loaders supported by the selected interfaces. If installation used DESTDIR, use the same staging directory for this check.
Numerical-domain, MIP problem and PIP problem handles are always checked for native type and live ownership. Powerset iterators and borrowed domain and solver views are also checked against their owner and current generation. These checks are part of every build and require no extra compiler option.
Delete owned objects and iterator objects explicitly when they are no longer required. Prolog garbage collection and backtracking do not release them. Finalization releases all remaining numerical domains, MIP and PIP problems and iterator objects. Subsequent initialization does not revive old handles.