~ubuntu-branches/ubuntu/lucid/ntp/lucid

« back to all changes in this revision

Viewing changes to debian/patches/ipv6-gnu-source.patch

  • Committer: Bazaar Package Importer
  • Author(s): Matt LaPlante
  • Date: 2008-12-04 00:39:51 UTC
  • Revision ID: james.westby@ubuntu.com-20081204003951-k3l3y5ega1mlg57p
Tags: 1:4.2.4p4+dfsg-7ubuntu2
Add ipv6-gnu-source.patch: Define _GNU_SOURCE to make IPv6 work. 
(LP: #305043)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: ntp-4.2.4p4+dfsg/configure
 
2
===================================================================
 
3
--- ntp-4.2.4p4+dfsg.orig/configure     2008-12-04 10:53:53.755460796 -0600
 
4
+++ ntp-4.2.4p4+dfsg/configure  2008-12-04 10:54:08.300533538 -0600
 
5
@@ -2619,6 +2619,11 @@
 
6
 
 
7
 iCFLAGS="$CFLAGS"
 
8
 
 
9
+cat >>confdefs.h <<\_ACEOF
 
10
+#define _GNU_SOURCE 1
 
11
+_ACEOF
 
12
+
 
13
+
 
14
 DEPDIR="${am__leading_dot}deps"
 
15
 
 
16
 ac_config_commands="$ac_config_commands depfiles"
 
17
@@ -15798,7 +15803,7 @@
 
18
   ;;
 
19
 *-*-irix6*)
 
20
   # Find out which ABI we are using.
 
21
-  echo '#line 15801 "configure"' > conftest.$ac_ext
 
22
+  echo '#line 15806 "configure"' > conftest.$ac_ext
 
23
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24
   (eval $ac_compile) 2>&5
 
25
   ac_status=$?
 
26
@@ -18377,11 +18382,11 @@
 
27
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
28
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
29
    -e 's:$: $lt_compiler_flag:'`
 
30
-   (eval echo "\"\$as_me:18380: $lt_compile\"" >&5)
 
31
+   (eval echo "\"\$as_me:18385: $lt_compile\"" >&5)
 
32
    (eval "$lt_compile" 2>conftest.err)
 
33
    ac_status=$?
 
34
    cat conftest.err >&5
 
35
-   echo "$as_me:18384: \$? = $ac_status" >&5
 
36
+   echo "$as_me:18389: \$? = $ac_status" >&5
 
37
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
38
      # The compiler can only warn and ignore the option if not recognized
 
39
      # So say no if there are warnings other than the usual output.
 
40
@@ -18667,11 +18672,11 @@
 
41
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
42
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
43
    -e 's:$: $lt_compiler_flag:'`
 
44
-   (eval echo "\"\$as_me:18670: $lt_compile\"" >&5)
 
45
+   (eval echo "\"\$as_me:18675: $lt_compile\"" >&5)
 
46
    (eval "$lt_compile" 2>conftest.err)
 
47
    ac_status=$?
 
48
    cat conftest.err >&5
 
49
-   echo "$as_me:18674: \$? = $ac_status" >&5
 
50
+   echo "$as_me:18679: \$? = $ac_status" >&5
 
51
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
52
      # The compiler can only warn and ignore the option if not recognized
 
53
      # So say no if there are warnings other than the usual output.
 
54
@@ -18771,11 +18776,11 @@
 
55
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
56
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
57
    -e 's:$: $lt_compiler_flag:'`
 
58
-   (eval echo "\"\$as_me:18774: $lt_compile\"" >&5)
 
59
+   (eval echo "\"\$as_me:18779: $lt_compile\"" >&5)
 
60
    (eval "$lt_compile" 2>out/conftest.err)
 
61
    ac_status=$?
 
62
    cat out/conftest.err >&5
 
63
-   echo "$as_me:18778: \$? = $ac_status" >&5
 
64
+   echo "$as_me:18783: \$? = $ac_status" >&5
 
65
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
66
    then
 
67
      # The compiler can only warn and ignore the option if not recognized
 
68
@@ -21148,7 +21153,7 @@
 
69
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
70
   lt_status=$lt_dlunknown
 
71
   cat > conftest.$ac_ext <<EOF
 
72
-#line 21151 "configure"
 
73
+#line 21156 "configure"
 
74
 #include "confdefs.h"
 
75
 
 
76
 #if HAVE_DLFCN_H
 
77
@@ -21248,7 +21253,7 @@
 
78
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
79
   lt_status=$lt_dlunknown
 
80
   cat > conftest.$ac_ext <<EOF
 
81
-#line 21251 "configure"
 
82
+#line 21256 "configure"
 
83
 #include "confdefs.h"
 
84
 
 
85
 #if HAVE_DLFCN_H
 
86
@@ -23649,11 +23654,11 @@
 
87
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
88
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
89
    -e 's:$: $lt_compiler_flag:'`
 
90
-   (eval echo "\"\$as_me:23652: $lt_compile\"" >&5)
 
91
+   (eval echo "\"\$as_me:23657: $lt_compile\"" >&5)
 
92
    (eval "$lt_compile" 2>conftest.err)
 
93
    ac_status=$?
 
94
    cat conftest.err >&5
 
95
-   echo "$as_me:23656: \$? = $ac_status" >&5
 
96
+   echo "$as_me:23661: \$? = $ac_status" >&5
 
97
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
98
      # The compiler can only warn and ignore the option if not recognized
 
99
      # So say no if there are warnings other than the usual output.
 
100
@@ -23753,11 +23758,11 @@
 
101
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
102
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
103
    -e 's:$: $lt_compiler_flag:'`
 
104
-   (eval echo "\"\$as_me:23756: $lt_compile\"" >&5)
 
105
+   (eval echo "\"\$as_me:23761: $lt_compile\"" >&5)
 
106
    (eval "$lt_compile" 2>out/conftest.err)
 
107
    ac_status=$?
 
108
    cat out/conftest.err >&5
 
109
-   echo "$as_me:23760: \$? = $ac_status" >&5
 
110
+   echo "$as_me:23765: \$? = $ac_status" >&5
 
111
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
112
    then
 
113
      # The compiler can only warn and ignore the option if not recognized
 
114
@@ -25351,11 +25356,11 @@
 
115
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
116
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
117
    -e 's:$: $lt_compiler_flag:'`
 
118
-   (eval echo "\"\$as_me:25354: $lt_compile\"" >&5)
 
119
+   (eval echo "\"\$as_me:25359: $lt_compile\"" >&5)
 
120
    (eval "$lt_compile" 2>conftest.err)
 
121
    ac_status=$?
 
122
    cat conftest.err >&5
 
123
-   echo "$as_me:25358: \$? = $ac_status" >&5
 
124
+   echo "$as_me:25363: \$? = $ac_status" >&5
 
125
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
126
      # The compiler can only warn and ignore the option if not recognized
 
127
      # So say no if there are warnings other than the usual output.
 
128
@@ -25455,11 +25460,11 @@
 
129
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
130
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
131
    -e 's:$: $lt_compiler_flag:'`
 
132
-   (eval echo "\"\$as_me:25458: $lt_compile\"" >&5)
 
133
+   (eval echo "\"\$as_me:25463: $lt_compile\"" >&5)
 
134
    (eval "$lt_compile" 2>out/conftest.err)
 
135
    ac_status=$?
 
136
    cat out/conftest.err >&5
 
137
-   echo "$as_me:25462: \$? = $ac_status" >&5
 
138
+   echo "$as_me:25467: \$? = $ac_status" >&5
 
139
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
140
    then
 
141
      # The compiler can only warn and ignore the option if not recognized
 
142
@@ -27675,11 +27680,11 @@
 
143
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
144
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
145
    -e 's:$: $lt_compiler_flag:'`
 
146
-   (eval echo "\"\$as_me:27678: $lt_compile\"" >&5)
 
147
+   (eval echo "\"\$as_me:27683: $lt_compile\"" >&5)
 
148
    (eval "$lt_compile" 2>conftest.err)
 
149
    ac_status=$?
 
150
    cat conftest.err >&5
 
151
-   echo "$as_me:27682: \$? = $ac_status" >&5
 
152
+   echo "$as_me:27687: \$? = $ac_status" >&5
 
153
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
154
      # The compiler can only warn and ignore the option if not recognized
 
155
      # So say no if there are warnings other than the usual output.
 
156
@@ -27965,11 +27970,11 @@
 
157
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
158
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
159
    -e 's:$: $lt_compiler_flag:'`
 
160
-   (eval echo "\"\$as_me:27968: $lt_compile\"" >&5)
 
161
+   (eval echo "\"\$as_me:27973: $lt_compile\"" >&5)
 
162
    (eval "$lt_compile" 2>conftest.err)
 
163
    ac_status=$?
 
164
    cat conftest.err >&5
 
165
-   echo "$as_me:27972: \$? = $ac_status" >&5
 
166
+   echo "$as_me:27977: \$? = $ac_status" >&5
 
167
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
168
      # The compiler can only warn and ignore the option if not recognized
 
169
      # So say no if there are warnings other than the usual output.
 
170
@@ -28069,11 +28074,11 @@
 
171
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
172
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
173
    -e 's:$: $lt_compiler_flag:'`
 
174
-   (eval echo "\"\$as_me:28072: $lt_compile\"" >&5)
 
175
+   (eval echo "\"\$as_me:28077: $lt_compile\"" >&5)
 
176
    (eval "$lt_compile" 2>out/conftest.err)
 
177
    ac_status=$?
 
178
    cat out/conftest.err >&5
 
179
-   echo "$as_me:28076: \$? = $ac_status" >&5
 
180
+   echo "$as_me:28081: \$? = $ac_status" >&5
 
181
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
182
    then
 
183
      # The compiler can only warn and ignore the option if not recognized
 
184
Index: ntp-4.2.4p4+dfsg/configure.ac
 
185
===================================================================
 
186
--- ntp-4.2.4p4+dfsg.orig/configure.ac  2008-12-04 10:52:42.242180500 -0600
 
187
+++ ntp-4.2.4p4+dfsg/configure.ac       2008-12-04 10:53:12.412406268 -0600
 
188
@@ -20,6 +20,9 @@
 
189
 dnl Grab any initial CFLAGS so we can pick better defaults.
 
190
 iCFLAGS="$CFLAGS"
 
191
 
 
192
+dnl Define _GNU_SOURCE, this should be done before any feature test.
 
193
+AC_DEFINE(_GNU_SOURCE)
 
194
+
 
195
 dnl check these early to avoid autoconf warnings
 
196
 AC_AIX
 
197
 AC_MINIX