summaryrefslogtreecommitdiff
path: root/security/botan/patches/patch-aa
blob: eaefb6b6d89c660126bf4bc6ea7ed490eff8bb54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
$NetBSD: patch-aa,v 1.3 2006/03/01 00:33:30 joerg Exp $

--- configure.pl.orig	2006-01-01 01:02:28.000000000 +0000
+++ configure.pl
@@ -74,7 +74,6 @@ my %DOCS = (
    'deprecated.txt' => $DOC_DIR,
    'license.txt' => $DOC_DIR,
    'log.txt' => $DOC_DIR,
-   'rngs.txt' => $DOC_DIR,
    'thanks.txt' => $DOC_DIR,
    'todo.txt' => $DOC_DIR
    );
@@ -278,6 +277,7 @@ my %OS_SUPPORTS_ARCH = (
    'darwin'     => [ 'ia32', 'ppc', 'ppc64', ],
    'freebsd'    => [ 'alpha', 'amd64', 'ia32', 'ia64', 'powerpc', 'sparc64', 
                      ],
+   'dragonfly'  => [ 'amd64', 'ia32', 'ia64' ],
    'hpux'       => [ 'hppa', 'ia64', ],
    'irix'       => [ 'mips32', 'mips64', ],
    'linux'      => [ 'alpha', 'amd64', 'arm', 'hppa', 'ia32', 'ia64', 'm68k', 
@@ -298,6 +298,7 @@ my %OS_SUPPORTS_SHARED = (
    'beos'       => [ 'all', ],
    'darwin'     => [ 'all', ],
    'freebsd'    => [ 'all', ],
+   'dragonfly'  => [ 'all', ],
    'hpux'       => [ 'all', ],
    'irix'       => [ 'all', ],
    'linux'      => [ 'all', ],
@@ -314,6 +315,7 @@ my %OS_TYPE = (
    'cygwin'         => 'unix',
    'darwin'         => 'unix',
    'freebsd'        => 'unix',
+   'dragonfly'      => 'unix',
    'hpux'           => 'unix',
    'irix'           => 'unix',
    'linux'          => 'unix',
@@ -387,6 +389,9 @@ my %INSTALL_INFO = (
    'freebsd'    => {
       'group'      => 'wheel',
       },
+   'dragonfly'    => {
+      'group'      => 'wheel',
+      },
    'netbsd'     => {
       'group'      => 'wheel',
       },
@@ -406,7 +411,7 @@ my %CC_SUPPORTS_OS = (
    'bcc'        => [ 'windows', ],
    'compaq'     => [ 'linux', 'tru64', ],
    'ekopath'    => [ 'linux', ],
-   'gcc'        => [ 'aix', 'beos', 'cygwin', 'darwin', 'freebsd', 'hpux', 'irix', 
+   'gcc'        => [ 'aix', 'beos', 'cygwin', 'dragonfly', 'darwin', 'freebsd', 'hpux', 'irix', 
                      'linux', 'netbsd', 'openbsd', 'qnx', 'solaris', 'tru64', 
                      'windows', ],
    'hpcc'       => [ 'hpux', ],
@@ -663,6 +668,7 @@ my %CC_ABI_FLAGS = (
    'gcc'        => {
       'amd64'      => '-m64',
       'freebsd'    => '-pthread',
+      'dragonfly'  => '-pthread',
       'mips32'     => '-mabi=n32',
       'mips64'     => '-mabi=64',
       'netbsd'     => '-pthread',
@@ -772,6 +778,7 @@ my %REALNAME = (
    'darwin'         => 'Darwin / MacOS X',
    'ekopath'        => 'PathScale EKOPath C++',
    'freebsd'        => 'FreeBSD',
+   'dragonfly'      => 'DragonFly',
    'gcc'            => 'GNU C++',
    'hpcc'           => 'HP-UX C++',
    'hppa'           => 'HP-PA',
@@ -1696,12 +1703,6 @@ sub guess_triple
         my @CCS = ('gcc', 'icc', 'compaq', 'kai'); # Skips several, oh well...
 
         # First try the CC enviornmental variable, if it's set
-        if(defined($ENV{CC}))
-        {
-            my @new_CCS = ($ENV{CC});
-            foreach my $cc (@CCS) { push @new_CCS, $cc; }
-            @CCS = @new_CCS;
-        }
 
         my $cc = '';
         foreach (@CCS)
@@ -2040,8 +2041,12 @@ sub print_unix_makefile {
    my $link_to = "-lm";
    foreach my $lib (@{ $lib_list })
    {
+       if ($lib =~ m/pthread/) {
+	    $link_to .= " -" . $lib;
+       } else {
        $link_to .= " -l" . $lib;
    }
+   }
 
    ##################################################
    # Generate a few variables                       #
@@ -2279,12 +2284,12 @@ $__TAB__\@for i in \$(HEADERS); do \\
 $__TAB__   \$(INSTALL_CMD_DATA) \$\$i \$(HEADERDIR); \\
 $__TAB__ done
 $__TAB__\@\$(INSTALL_CMD_DATA) \$(STATIC_LIB) \$(LIBDIR)
-$__TAB__\@\$(INSTALL_CMD_EXEC) \$(CONFIG_SCRIPT) \$(BINDIR)
+$__TAB__\@\${BSD_INSTALL_SCRIPT} \$(CONFIG_SCRIPT) \$(BINDIR)
 END_OF_INSTALL_SCRIPTS
 
    if($make_shared) {
       print $makefile <<END_OF_SYMLINKS;
-$__TAB__\@\$(INSTALL_CMD_EXEC) \$(SHARED_LIB) \$(LIBDIR)
+$__TAB__\@\${BSD_INSTALL_LIB} \$(SHARED_LIB) \$(LIBDIR)
 $__TAB__\$(CD) \$(LIBDIR); \$(LN) \$(SYMLINK0) \$(SYMLINK1)
 $__TAB__\$(CD) \$(LIBDIR); \$(LN) \$(SYMLINK1) \$(SYMLINK2)
 $__TAB__\$(CD) \$(LIBDIR); \$(LN) \$(SYMLINK2) \$(SYMLINK3)