aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-05 14:38:54 +0000
committerlloyd <[email protected]>2008-09-05 14:38:54 +0000
commit039c92a128f9f2fda6a8132421694a19edbfad6c (patch)
treeb96ccf8a7fbbf2f2260d953fde624617b6fed6a5
parent54831c8b6a18236b5371b000993b830d036d3416 (diff)
Add new build.h macro BOTAN_TARGET_OS_IS_XXX
-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)) {