NAME

Alien::OpenMP::configure - Install time configuration helper

DESCRIPTION

Internal helper for identifying the C compiler configured into the running Perl and supplying the OpenMP flags used by Alien::OpenMP. Compiler family is detected from predefined compiler macros rather than executable names, so versioned and target-prefixed GCC drivers are handled without special cases.

The running Perl's $Config{cc} is authoritative. ENV{CC} is deliberately not used to switch toolchains because normal XS and Inline::C builds inherit Perl's configured compiler and ABI settings.

METHODS

auto_include

Return the OpenMP include inserted for Inline::C.

cflags

Return compiler flags that enable OpenMP.

compiler_family

Return gcc, clang, or unknown for the configured compiler.

is_known

Return true when this compiler/platform has a known OpenMP configuration. The subsequent compile/link probe remains the final capability check.

lddlflags

A synonym for "libs".

libs

Return link flags needed for the OpenMP runtime.

unsupported

Report an unsupported compiler/platform combination.

version_from_preprocessor

Parse #define _OPENMP from preprocessor output and return both its dated value and the corresponding OpenMP specification version. This indicates the specification date advertised by the compiler; it is not a guarantee that every feature in that specification is implemented.