Commit 2964ba8c authored by Richard Levitte's avatar Richard Levitte
Browse files

If the user said 'shared' and we haven't included support for shared libraries,

warn him or her.
Reminder by Andrew Marlow <apm35@student.open.ac.uk>
parent c0cc5c30
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -966,6 +966,8 @@ my $shared_extension = $fields[$idx_shared_extension];
my $ranlib = $fields[$idx_ranlib];
my $ranlib = $fields[$idx_ranlib];
my $arflags = $fields[$idx_arflags];
my $arflags = $fields[$idx_arflags];


my $no_shared_warn=0;

$cflags="$flags$cflags" if ($flags ne "");
$cflags="$flags$cflags" if ($flags ne "");


# Kerberos settings.  The flavor must be provided from outside, either through
# Kerberos settings.  The flavor must be provided from outside, either through
@@ -1117,6 +1119,7 @@ if ($zlib)
my $shared_mark = "";
my $shared_mark = "";
if ($shared_target eq "")
if ($shared_target eq "")
	{
	{
	$no_shared_warn = 1 if !$no_shared;
	$no_shared = 1;
	$no_shared = 1;
	}
	}
if (!$no_shared)
if (!$no_shared)
@@ -1600,6 +1603,15 @@ applications as the compiler options required on this system are not known.
See file INSTALL for details if you need multi-threading.
See file INSTALL for details if you need multi-threading.
EOF
EOF


print <<\EOF if ($no_shared_warn);

You gave the option 'shared'.  Normally, that would give you shared libraries.
Unfortunately, the OpenSSL configuration doesn't include shared library support
for this platform yet, so it will pretend you gave the option 'no-shared'.  If
you can inform the developpers (openssl-dev\@openssl.org) how to support shared
libraries on this platform, they will at least look at it and try their best.
EOF

exit(0);
exit(0);


sub usage
sub usage