aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.pl b/configure.pl
index 27624b9be..dc50604a5 100755
--- a/configure.pl
+++ b/configure.pl
@@ -984,6 +984,13 @@ sub load_modules {
$defines .= "#define BOTAN_TARGET_CPU_IS_$submodel\n";
}
+ my $os = $$config{'os'};
+ if($os ne 'generic') {
+ $os = uc $os;
+ $submodel =~ s/-/_/g;
+ $defines .= "#define BOTAN_TARGET_OS_IS_$os\n";
+ }
+
my $unaligned_ok = 0;
if(defined($endian)) {