Option "no-symlinks" to configure without creating the links (e.g.
[openssl.git] / Configure
index 6b5accc4de2750fd1f77096505b58dc94ad83e1e..31221bb3386be9e8efcb1ff4d858a86ec416f70e 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -435,6 +435,7 @@ my $openssl_other_defines="";
 my $libs="";
 my $target="";
 my $options="";
 my $libs="";
 my $target="";
 my $options="";
+my $symlink=1;
 foreach (@ARGV)
        {
        s /^-no-/no-/; # some people just can't read the instructions
 foreach (@ARGV)
        {
        s /^-no-/no-/; # some people just can't read the instructions
@@ -450,6 +451,8 @@ foreach (@ARGV)
                { $no_threads=1; }
        elsif (/^threads$/)
                { $threads=1; }
                { $no_threads=1; }
        elsif (/^threads$/)
                { $threads=1; }
+       elsif (/^no-symlinks$/)
+               { $symlink=0; }
        elsif (/^no-(.+)$/)
                {
                my $algo=$1;
        elsif (/^no-(.+)$/)
                {
                my $algo=$1;
@@ -895,7 +898,8 @@ if($IsWindows) {
 EOF
        close(OUT);
 } else {
 EOF
        close(OUT);
 } else {
-       (system "make -f Makefile.ssl PERL=\'$perl\' links") == 0 or exit $?;
+       (system "make -f Makefile.ssl PERL=\'$perl\' links") == 0 or exit $?
+               if $symlink;
        ### (system 'make depend') == 0 or exit $? if $depflags ne "";
        # Run "make depend" manually if you want to be able to delete
        # the source code files of ciphers you left out.
        ### (system 'make depend') == 0 or exit $? if $depflags ne "";
        # Run "make depend" manually if you want to be able to delete
        # the source code files of ciphers you left out.