Tue May 5 15:29:46 2009 UTC ()
Don't bother searching for assert.h, it's not needed any more


(agc)
diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/configure
diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/configure.ac
diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/src/lib/config.h
diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/src/lib/config.h.in
diff -r1.7 -r1.8 src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c
diff -r1.6 -r1.7 src/crypto/external/bsd/netpgp/dist/src/lib/packet-parse.c
diff -r1.4 -r1.5 src/crypto/external/bsd/netpgp/dist/src/lib/validate.c

cvs diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/configure (switch to unified diff)

--- src/crypto/external/bsd/netpgp/dist/configure 2009/04/25 01:29:14 1.2
+++ src/crypto/external/bsd/netpgp/dist/configure 2009/05/05 15:29:46 1.3
@@ -1,2357 +1,2357 @@ @@ -1,2357 +1,2357 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for netpgp 20090423. 3# Generated by GNU Autoconf 2.63 for netpgp 20090423.
4# 4#
5# Report bugs to <"Alistair Crooks agc@netbsd.org c0596823">. 5# Report bugs to <Alistair Crooks <agc@netbsd.org> c0596823>.
6# 6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ## 11## --------------------- ##
12## M4sh Initialization. ## 12## M4sh Initialization. ##
13## --------------------- ## 13## --------------------- ##
14 14
15# Be more Bourne compatible 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh 16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh 18 emulate sh
19 NULLCMD=: 19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature. 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"' 22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST 23 setopt NO_GLOB_SUBST
24else 24else
25 case `(set -o) 2>/dev/null` in 25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;; 26 *posix*) set -o posix ;;
27esac 27esac
28 28
29fi 29fi
30 30
31 31
32 32
33 33
34# PATH needs CR 34# PATH needs CR
35# Avoid depending upon Character Ranges. 35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789' 39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits 40as_cr_alnum=$as_cr_Letters$as_cr_digits
41 41
42as_nl=' 42as_nl='
43' 43'
44export as_nl 44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf. 45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n' 50 as_echo='printf %s\n'
51 as_echo_n='printf %s' 51 as_echo_n='printf %s'
52else 52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n' 55 as_echo_n='/usr/ucb/echo -n'
56 else 56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval 58 as_echo_n_body='eval
59 arg=$1; 59 arg=$1;
60 case $arg in 60 case $arg in
61 *"$as_nl"*) 61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac; 64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 ' 66 '
67 export as_echo_n_body 67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo' 68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi 69 fi
70 export as_echo_body 70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo' 71 as_echo='sh -c $as_echo_body as_echo'
72fi 72fi
73 73
74# The user is always right. 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then 75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=: 76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
80 } 80 }
81fi 81fi
82 82
83# Support unset when possible. 83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset 85 as_unset=unset
86else 86else
87 as_unset=false 87 as_unset=false
88fi 88fi
89 89
90 90
91# IFS 91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is 92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab. 93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.) 95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl" 96IFS=" "" $as_nl"
97 97
98# Find who we are. Look in the path if we contain no directory separator. 98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in 99case $0 in
100 *[\\/]* ) as_myself=$0 ;; 100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH 102for as_dir in $PATH
103do 103do
104 IFS=$as_save_IFS 104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=. 105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done 107done
108IFS=$as_save_IFS 108IFS=$as_save_IFS
109 109
110 ;; 110 ;;
111esac 111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND' 112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path. 113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then 114if test "x$as_myself" = x; then
115 as_myself=$0 115 as_myself=$0
116fi 116fi
117if test ! -f "$as_myself"; then 117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; } 119 { (exit 1); exit 1; }
120fi 120fi
121 121
122# Work around bugs in pre-3.0 UWIN ksh. 122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done 125done
126PS1='$ ' 126PS1='$ '
127PS2='> ' 127PS2='> '
128PS4='+ ' 128PS4='+ '
129 129
130# NLS nuisances. 130# NLS nuisances.
131LC_ALL=C 131LC_ALL=C
132export LC_ALL 132export LC_ALL
133LANGUAGE=C 133LANGUAGE=C
134export LANGUAGE 134export LANGUAGE
135 135
136# Required to use basename. 136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 && 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr 139 as_expr=expr
140else 140else
141 as_expr=false 141 as_expr=false
142fi 142fi
143 143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename 145 as_basename=basename
146else 146else
147 as_basename=false 147 as_basename=false
148fi 148fi
149 149
150 150
151# Name of the executable. 151# Name of the executable.
152as_me=`$as_basename -- "$0" || 152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \ 154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" | 156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/ 158 s//\1/
159 q 159 q
160 } 160 }
161 /^X\/\(\/\/\)$/{ 161 /^X\/\(\/\/\)$/{
162 s//\1/ 162 s//\1/
163 q 163 q
164 } 164 }
165 /^X\/\(\/\).*/{ 165 /^X\/\(\/\).*/{
166 s//\1/ 166 s//\1/
167 q 167 q
168 } 168 }
169 s/.*/./; q'` 169 s/.*/./; q'`
170 170
171# CDPATH. 171# CDPATH.
172$as_unset CDPATH 172$as_unset CDPATH
173 173
174 174
175if test "x$CONFIG_SHELL" = x; then 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then 176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes 177 as_have_required=yes
178else 178else
179 as_have_required=no 179 as_have_required=no
180fi 180fi
181 181
182 if test $as_have_required = yes && (eval ": 182 if test $as_have_required = yes && (eval ":
183(as_func_return () { 183(as_func_return () {
184 (exit \$1) 184 (exit \$1)
185} 185}
186as_func_success () { 186as_func_success () {
187 as_func_return 0 187 as_func_return 0
188} 188}
189as_func_failure () { 189as_func_failure () {
190 as_func_return 1 190 as_func_return 1
191} 191}
192as_func_ret_success () { 192as_func_ret_success () {
193 return 0 193 return 0
194} 194}
195as_func_ret_failure () { 195as_func_ret_failure () {
196 return 1 196 return 1
197} 197}
198 198
199exitcode=0 199exitcode=0
200if as_func_success; then 200if as_func_success; then
201 : 201 :
202else 202else
203 exitcode=1 203 exitcode=1
204 echo as_func_success failed. 204 echo as_func_success failed.
205fi 205fi
206 206
207if as_func_failure; then 207if as_func_failure; then
208 exitcode=1 208 exitcode=1
209 echo as_func_failure succeeded. 209 echo as_func_failure succeeded.
210fi 210fi
211 211
212if as_func_ret_success; then 212if as_func_ret_success; then
213 : 213 :
214else 214else
215 exitcode=1 215 exitcode=1
216 echo as_func_ret_success failed. 216 echo as_func_ret_success failed.
217fi 217fi
218 218
219if as_func_ret_failure; then 219if as_func_ret_failure; then
220 exitcode=1 220 exitcode=1
221 echo as_func_ret_failure succeeded. 221 echo as_func_ret_failure succeeded.
222fi 222fi
223 223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 : 225 :
226else 226else
227 exitcode=1 227 exitcode=1
228 echo positional parameters were not saved. 228 echo positional parameters were not saved.
229fi 229fi
230 230
231test \$exitcode = 0) || { (exit 1); exit 1; } 231test \$exitcode = 0) || { (exit 1); exit 1; }
232 232
233( 233(
234 as_lineno_1=\$LINENO 234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO 235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then 238") 2> /dev/null; then
239 : 239 :
240else 240else
241 as_candidate_shells= 241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do 244do
245 IFS=$as_save_IFS 245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=. 246 test -z "$as_dir" && as_dir=.
247 case $as_dir in 247 case $as_dir in
248 /*) 248 /*)
249 for as_base in sh bash ksh sh5; do 249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;; 251 done;;
252 esac 252 esac
253done 253done
254IFS=$as_save_IFS 254IFS=$as_save_IFS
255 255
256 256
257 for as_shell in $as_candidate_shells $SHELL; do 257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks. 258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF 260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh 262 emulate sh
263 NULLCMD=: 263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature. 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"' 266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST 267 setopt NO_GLOB_SUBST
268else 268else
269 case `(set -o) 2>/dev/null` in 269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;; 270 *posix*) set -o posix ;;
271esac 271esac
272 272
273fi 273fi
274 274
275 275
276: 276:
277_ASEOF 277_ASEOF
278}; then 278}; then
279 CONFIG_SHELL=$as_shell 279 CONFIG_SHELL=$as_shell
280 as_have_required=yes 280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF 281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh 283 emulate sh
284 NULLCMD=: 284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature. 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"' 287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST 288 setopt NO_GLOB_SUBST
289else 289else
290 case `(set -o) 2>/dev/null` in 290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;; 291 *posix*) set -o posix ;;
292esac 292esac
293 293
294fi 294fi
295 295
296 296
297: 297:
298(as_func_return () { 298(as_func_return () {
299 (exit $1) 299 (exit $1)
300} 300}
301as_func_success () { 301as_func_success () {
302 as_func_return 0 302 as_func_return 0
303} 303}
304as_func_failure () { 304as_func_failure () {
305 as_func_return 1 305 as_func_return 1
306} 306}
307as_func_ret_success () { 307as_func_ret_success () {
308 return 0 308 return 0
309} 309}
310as_func_ret_failure () { 310as_func_ret_failure () {
311 return 1 311 return 1
312} 312}
313 313
314exitcode=0 314exitcode=0
315if as_func_success; then 315if as_func_success; then
316 : 316 :
317else 317else
318 exitcode=1 318 exitcode=1
319 echo as_func_success failed. 319 echo as_func_success failed.
320fi 320fi
321 321
322if as_func_failure; then 322if as_func_failure; then
323 exitcode=1 323 exitcode=1
324 echo as_func_failure succeeded. 324 echo as_func_failure succeeded.
325fi 325fi
326 326
327if as_func_ret_success; then 327if as_func_ret_success; then
328 : 328 :
329else 329else
330 exitcode=1 330 exitcode=1
331 echo as_func_ret_success failed. 331 echo as_func_ret_success failed.
332fi 332fi
333 333
334if as_func_ret_failure; then 334if as_func_ret_failure; then
335 exitcode=1 335 exitcode=1
336 echo as_func_ret_failure succeeded. 336 echo as_func_ret_failure succeeded.
337fi 337fi
338 338
339if ( set x; as_func_ret_success y && test x = "$1" ); then 339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 : 340 :
341else 341else
342 exitcode=1 342 exitcode=1
343 echo positional parameters were not saved. 343 echo positional parameters were not saved.
344fi 344fi
345 345
346test $exitcode = 0) || { (exit 1); exit 1; } 346test $exitcode = 0) || { (exit 1); exit 1; }
347 347
348( 348(
349 as_lineno_1=$LINENO 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO 350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" && 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353 353
354_ASEOF 354_ASEOF
355}; then 355}; then
356 break 356 break
357fi 357fi
358 358
359fi 359fi
360 360
361 done 361 done
362 362
363 if test "x$CONFIG_SHELL" != x; then 363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV 364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done 366 done
367 export CONFIG_SHELL 367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi 369fi
370 370
371 371
372 if test $as_have_required = no; then 372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the 373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a 374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a 375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one. 376 echo shell if you do have one.
377 { (exit 1); exit 1; } 377 { (exit 1); exit 1; }
378fi 378fi
379 379
380 380
381fi 381fi
382 382
383fi 383fi
384 384
385 385
386 386
387(eval "as_func_return () { 387(eval "as_func_return () {
388 (exit \$1) 388 (exit \$1)
389} 389}
390as_func_success () { 390as_func_success () {
391 as_func_return 0 391 as_func_return 0
392} 392}
393as_func_failure () { 393as_func_failure () {
394 as_func_return 1 394 as_func_return 1
395} 395}
396as_func_ret_success () { 396as_func_ret_success () {
397 return 0 397 return 0
398} 398}
399as_func_ret_failure () { 399as_func_ret_failure () {
400 return 1 400 return 1
401} 401}
402 402
403exitcode=0 403exitcode=0
404if as_func_success; then 404if as_func_success; then
405 : 405 :
406else 406else
407 exitcode=1 407 exitcode=1
408 echo as_func_success failed. 408 echo as_func_success failed.
409fi 409fi
410 410
411if as_func_failure; then 411if as_func_failure; then
412 exitcode=1 412 exitcode=1
413 echo as_func_failure succeeded. 413 echo as_func_failure succeeded.
414fi 414fi
415 415
416if as_func_ret_success; then 416if as_func_ret_success; then
417 : 417 :
418else 418else
419 exitcode=1 419 exitcode=1
420 echo as_func_ret_success failed. 420 echo as_func_ret_success failed.
421fi 421fi
422 422
423if as_func_ret_failure; then 423if as_func_ret_failure; then
424 exitcode=1 424 exitcode=1
425 echo as_func_ret_failure succeeded. 425 echo as_func_ret_failure succeeded.
426fi 426fi
427 427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 : 429 :
430else 430else
431 exitcode=1 431 exitcode=1
432 echo positional parameters were not saved. 432 echo positional parameters were not saved.
433fi 433fi
434 434
435test \$exitcode = 0") || { 435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions. 436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system, 437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message. 438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions. 439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions. 440 echo Configuration will now proceed without shell functions.
441} 441}
442 442
443 443
444 444
445 as_lineno_1=$LINENO 445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO 446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" && 447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449 449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a 451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed' 452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each 453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends 454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special 455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end. 456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee 458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-) 459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n ' 460 sed -n '
461 p 461 p
462 /[$]LINENO/= 462 /[$]LINENO/=
463 ' <$as_myself | 463 ' <$as_myself |
464 sed ' 464 sed '
465 s/[$]LINENO.*/&-/ 465 s/[$]LINENO.*/&-/
466 t lineno 466 t lineno
467 b 467 b
468 :lineno 468 :lineno
469 N 469 N
470 :loop 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop 472 t loop
473 s/-\n.*// 473 s/-\n.*//
474 ' >$as_me.lineno && 474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" || 475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; } 477 { (exit 1); exit 1; }; }
478 478
479 # Don't try to exec as it changes $[0], causing all sort of problems 479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the 480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this). 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno" 482 . "./$as_me.lineno"
483 # Exit status is that of the last command. 483 # Exit status is that of the last command.
484 exit 484 exit
485} 485}
486 486
487 487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname 489 as_dirname=dirname
490else 490else
491 as_dirname=false 491 as_dirname=false
492fi 492fi
493 493
494ECHO_C= ECHO_N= ECHO_T= 494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in 495case `echo -n x` in
496-n*) 496-n*)
497 case `echo 'x\c'` in 497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';; 499 *) ECHO_C='\c';;
500 esac;; 500 esac;;
501*) 501*)
502 ECHO_N='-n';; 502 ECHO_N='-n';;
503esac 503esac
504if expr a : '\(a\)' >/dev/null 2>&1 && 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr 506 as_expr=expr
507else 507else
508 as_expr=false 508 as_expr=false
509fi 509fi
510 510
511rm -f conf$$ conf$$.exe conf$$.file 511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file 513 rm -f conf$$.dir/conf$$.file
514else 514else
515 rm -f conf$$.dir 515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null 516 mkdir conf$$.dir 2>/dev/null
517fi 517fi
518if (echo >conf$$.file) 2>/dev/null; then 518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s' 520 as_ln_s='ln -s'
521 # ... but there are two gotchas: 521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'. 524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p' 526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then 527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln 528 as_ln_s=ln
529 else 529 else
530 as_ln_s='cp -p' 530 as_ln_s='cp -p'
531 fi 531 fi
532else 532else
533 as_ln_s='cp -p' 533 as_ln_s='cp -p'
534fi 534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null 536rmdir conf$$.dir 2>/dev/null
537 537
538if mkdir -p . 2>/dev/null; then 538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=: 539 as_mkdir_p=:
540else 540else
541 test -d ./-p && rmdir ./-p 541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false 542 as_mkdir_p=false
543fi 543fi
544 544
545if test -x / >/dev/null 2>&1; then 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x' 546 as_test_x='test -x'
547else 547else
548 if ls -dL / >/dev/null 2>&1; then 548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L 549 as_ls_L_option=L
550 else 550 else
551 as_ls_L_option= 551 as_ls_L_option=
552 fi 552 fi
553 as_test_x=' 553 as_test_x='
554 eval sh -c '\'' 554 eval sh -c '\''
555 if test -d "$1"; then 555 if test -d "$1"; then
556 test -d "$1/."; 556 test -d "$1/.";
557 else 557 else
558 case $1 in 558 case $1 in
559 -*)set "./$1";; 559 -*)set "./$1";;
560 esac; 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi 562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh 563 '\'' sh
564 ' 564 '
565fi 565fi
566as_executable_p=$as_test_x 566as_executable_p=$as_test_x
567 567
568# Sed expression to map a string onto a valid CPP name. 568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570 570
571# Sed expression to map a string onto a valid variable name. 571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573 573
574 574
575 575
576exec 7<&0 </dev/null 6>&1 576exec 7<&0 </dev/null 6>&1
577 577
578# Name of the host. 578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too. 580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 582
583# 583#
584# Initializations. 584# Initializations.
585# 585#
586ac_default_prefix=/usr/local 586ac_default_prefix=/usr/local
587ac_clean_files= 587ac_clean_files=
588ac_config_libobj_dir=. 588ac_config_libobj_dir=.
589LIBOBJS= 589LIBOBJS=
590cross_compiling=no 590cross_compiling=no
591subdirs= 591subdirs=
592MFLAGS= 592MFLAGS=
593MAKEFLAGS= 593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh} 594SHELL=${CONFIG_SHELL-/bin/sh}
595 595
596# Identity of this package. 596# Identity of this package.
597PACKAGE_NAME='netpgp' 597PACKAGE_NAME='netpgp'
598PACKAGE_TARNAME='netpgp' 598PACKAGE_TARNAME='netpgp'
599PACKAGE_VERSION='20090423' 599PACKAGE_VERSION='20090423'
600PACKAGE_STRING='netpgp 20090423' 600PACKAGE_STRING='netpgp 20090423'
601PACKAGE_BUGREPORT='"Alistair Crooks agc@netbsd.org c0596823"' 601PACKAGE_BUGREPORT='Alistair Crooks <agc@netbsd.org> c0596823'
602 602
603ac_unique_file="src/bin/netpgp.c" 603ac_unique_file="src/bin/netpgp.c"
604# Factoring default headers for most tests. 604# Factoring default headers for most tests.
605ac_includes_default="\ 605ac_includes_default="\
606#include <stdio.h> 606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H 607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h> 608# include <sys/types.h>
609#endif 609#endif
610#ifdef HAVE_SYS_STAT_H 610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h> 611# include <sys/stat.h>
612#endif 612#endif
613#ifdef STDC_HEADERS 613#ifdef STDC_HEADERS
614# include <stdlib.h> 614# include <stdlib.h>
615# include <stddef.h> 615# include <stddef.h>
616#else 616#else
617# ifdef HAVE_STDLIB_H 617# ifdef HAVE_STDLIB_H
618# include <stdlib.h> 618# include <stdlib.h>
619# endif 619# endif
620#endif 620#endif
621#ifdef HAVE_STRING_H 621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h> 623# include <memory.h>
624# endif 624# endif
625# include <string.h> 625# include <string.h>
626#endif 626#endif
627#ifdef HAVE_STRINGS_H 627#ifdef HAVE_STRINGS_H
628# include <strings.h> 628# include <strings.h>
629#endif 629#endif
630#ifdef HAVE_INTTYPES_H 630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h> 631# include <inttypes.h>
632#endif 632#endif
633#ifdef HAVE_STDINT_H 633#ifdef HAVE_STDINT_H
634# include <stdint.h> 634# include <stdint.h>
635#endif 635#endif
636#ifdef HAVE_UNISTD_H 636#ifdef HAVE_UNISTD_H
637# include <unistd.h> 637# include <unistd.h>
638#endif" 638#endif"
639 639
640ac_subst_vars='LTLIBOBJS 640ac_subst_vars='LTLIBOBJS
641LIBOBJS 641LIBOBJS
642EGREP 642EGREP
643GREP 643GREP
644CPP 644CPP
645AUTOHEADER 645AUTOHEADER
646AUTOCONF 646AUTOCONF
647LN_S 647LN_S
648INSTALL_DATA 648INSTALL_DATA
649INSTALL_SCRIPT 649INSTALL_SCRIPT
650INSTALL_PROGRAM 650INSTALL_PROGRAM
651OBJEXT 651OBJEXT
652EXEEXT 652EXEEXT
653ac_ct_CC 653ac_ct_CC
654CPPFLAGS 654CPPFLAGS
655LDFLAGS 655LDFLAGS
656CFLAGS 656CFLAGS
657CC 657CC
658AWK 658AWK
659SET_MAKE 659SET_MAKE
660CANONICAL_HOST 660CANONICAL_HOST
661host_os 661host_os
662host_vendor 662host_vendor
663host_cpu 663host_cpu
664host 664host
665build_os 665build_os
666build_vendor 666build_vendor
667build_cpu 667build_cpu
668build 668build
669target_alias 669target_alias
670host_alias 670host_alias
671build_alias 671build_alias
672LIBS 672LIBS
673ECHO_T 673ECHO_T
674ECHO_N 674ECHO_N
675ECHO_C 675ECHO_C
676DEFS 676DEFS
677mandir 677mandir
678localedir 678localedir
679libdir 679libdir
680psdir 680psdir
681pdfdir 681pdfdir
682dvidir 682dvidir
683htmldir 683htmldir
684infodir 684infodir
685docdir 685docdir
686oldincludedir 686oldincludedir
687includedir 687includedir
688localstatedir 688localstatedir
689sharedstatedir 689sharedstatedir
690sysconfdir 690sysconfdir
691datadir 691datadir
692datarootdir 692datarootdir
693libexecdir 693libexecdir
694sbindir 694sbindir
695bindir 695bindir
696program_transform_name 696program_transform_name
697prefix 697prefix
698exec_prefix 698exec_prefix
699PACKAGE_BUGREPORT 699PACKAGE_BUGREPORT
700PACKAGE_STRING 700PACKAGE_STRING
701PACKAGE_VERSION 701PACKAGE_VERSION
702PACKAGE_TARNAME 702PACKAGE_TARNAME
703PACKAGE_NAME 703PACKAGE_NAME
704PATH_SEPARATOR 704PATH_SEPARATOR
705SHELL' 705SHELL'
706ac_subst_files='' 706ac_subst_files=''
707ac_user_opts=' 707ac_user_opts='
708enable_option_checking 708enable_option_checking
709' 709'
710 ac_precious_vars='build_alias 710 ac_precious_vars='build_alias
711host_alias 711host_alias
712target_alias 712target_alias
713CC 713CC
714CFLAGS 714CFLAGS
715LDFLAGS 715LDFLAGS
716LIBS 716LIBS
717CPPFLAGS 717CPPFLAGS
718CPP' 718CPP'
719 719
720 720
721# Initialize some variables set by options. 721# Initialize some variables set by options.
722ac_init_help= 722ac_init_help=
723ac_init_version=false 723ac_init_version=false
724ac_unrecognized_opts= 724ac_unrecognized_opts=
725ac_unrecognized_sep= 725ac_unrecognized_sep=
726# The variables have the same names as the options, with 726# The variables have the same names as the options, with
727# dashes changed to underlines. 727# dashes changed to underlines.
728cache_file=/dev/null 728cache_file=/dev/null
729exec_prefix=NONE 729exec_prefix=NONE
730no_create= 730no_create=
731no_recursion= 731no_recursion=
732prefix=NONE 732prefix=NONE
733program_prefix=NONE 733program_prefix=NONE
734program_suffix=NONE 734program_suffix=NONE
735program_transform_name=s,x,x, 735program_transform_name=s,x,x,
736silent= 736silent=
737site= 737site=
738srcdir= 738srcdir=
739verbose= 739verbose=
740x_includes=NONE 740x_includes=NONE
741x_libraries=NONE 741x_libraries=NONE
742 742
743# Installation directory options. 743# Installation directory options.
744# These are left unexpanded so users can "make install exec_prefix=/foo" 744# These are left unexpanded so users can "make install exec_prefix=/foo"
745# and all the variables that are supposed to be based on exec_prefix 745# and all the variables that are supposed to be based on exec_prefix
746# by default will actually change. 746# by default will actually change.
747# Use braces instead of parens because sh, perl, etc. also accept them. 747# Use braces instead of parens because sh, perl, etc. also accept them.
748# (The list follows the same order as the GNU Coding Standards.) 748# (The list follows the same order as the GNU Coding Standards.)
749bindir='${exec_prefix}/bin' 749bindir='${exec_prefix}/bin'
750sbindir='${exec_prefix}/sbin' 750sbindir='${exec_prefix}/sbin'
751libexecdir='${exec_prefix}/libexec' 751libexecdir='${exec_prefix}/libexec'
752datarootdir='${prefix}/share' 752datarootdir='${prefix}/share'
753datadir='${datarootdir}' 753datadir='${datarootdir}'
754sysconfdir='${prefix}/etc' 754sysconfdir='${prefix}/etc'
755sharedstatedir='${prefix}/com' 755sharedstatedir='${prefix}/com'
756localstatedir='${prefix}/var' 756localstatedir='${prefix}/var'
757includedir='${prefix}/include' 757includedir='${prefix}/include'
758oldincludedir='/usr/include' 758oldincludedir='/usr/include'
759docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 759docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
760infodir='${datarootdir}/info' 760infodir='${datarootdir}/info'
761htmldir='${docdir}' 761htmldir='${docdir}'
762dvidir='${docdir}' 762dvidir='${docdir}'
763pdfdir='${docdir}' 763pdfdir='${docdir}'
764psdir='${docdir}' 764psdir='${docdir}'
765libdir='${exec_prefix}/lib' 765libdir='${exec_prefix}/lib'
766localedir='${datarootdir}/locale' 766localedir='${datarootdir}/locale'
767mandir='${datarootdir}/man' 767mandir='${datarootdir}/man'
768 768
769ac_prev= 769ac_prev=
770ac_dashdash= 770ac_dashdash=
771for ac_option 771for ac_option
772do 772do
773 # If the previous option needs an argument, assign it. 773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then 774 if test -n "$ac_prev"; then
775 eval $ac_prev=\$ac_option 775 eval $ac_prev=\$ac_option
776 ac_prev= 776 ac_prev=
777 continue 777 continue
778 fi 778 fi
779 779
780 case $ac_option in 780 case $ac_option in
781 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 781 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 *) ac_optarg=yes ;; 782 *) ac_optarg=yes ;;
783 esac 783 esac
784 784
785 # Accept the important Cygnus configure options, so we can diagnose typos. 785 # Accept the important Cygnus configure options, so we can diagnose typos.
786 786
787 case $ac_dashdash$ac_option in 787 case $ac_dashdash$ac_option in
788 --) 788 --)
789 ac_dashdash=yes ;; 789 ac_dashdash=yes ;;
790 790
791 -bindir | --bindir | --bindi | --bind | --bin | --bi) 791 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 ac_prev=bindir ;; 792 ac_prev=bindir ;;
793 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 793 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794 bindir=$ac_optarg ;; 794 bindir=$ac_optarg ;;
795 795
796 -build | --build | --buil | --bui | --bu) 796 -build | --build | --buil | --bui | --bu)
797 ac_prev=build_alias ;; 797 ac_prev=build_alias ;;
798 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 798 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799 build_alias=$ac_optarg ;; 799 build_alias=$ac_optarg ;;
800 800
801 -cache-file | --cache-file | --cache-fil | --cache-fi \ 801 -cache-file | --cache-file | --cache-fil | --cache-fi \
802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803 ac_prev=cache_file ;; 803 ac_prev=cache_file ;;
804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806 cache_file=$ac_optarg ;; 806 cache_file=$ac_optarg ;;
807 807
808 --config-cache | -C) 808 --config-cache | -C)
809 cache_file=config.cache ;; 809 cache_file=config.cache ;;
810 810
811 -datadir | --datadir | --datadi | --datad) 811 -datadir | --datadir | --datadi | --datad)
812 ac_prev=datadir ;; 812 ac_prev=datadir ;;
813 -datadir=* | --datadir=* | --datadi=* | --datad=*) 813 -datadir=* | --datadir=* | --datadi=* | --datad=*)
814 datadir=$ac_optarg ;; 814 datadir=$ac_optarg ;;
815 815
816 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 816 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817 | --dataroo | --dataro | --datar) 817 | --dataroo | --dataro | --datar)
818 ac_prev=datarootdir ;; 818 ac_prev=datarootdir ;;
819 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 819 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 820 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821 datarootdir=$ac_optarg ;; 821 datarootdir=$ac_optarg ;;
822 822
823 -disable-* | --disable-*) 823 -disable-* | --disable-*)
824 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 824 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 # Reject names that are not valid shell variable names. 825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 827 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
828 { (exit 1); exit 1; }; } 828 { (exit 1); exit 1; }; }
829 ac_useropt_orig=$ac_useropt 829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in 831 case $ac_user_opts in
832 *" 832 *"
833"enable_$ac_useropt" 833"enable_$ac_useropt"
834"*) ;; 834"*) ;;
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';; 836 ac_unrecognized_sep=', ';;
837 esac 837 esac
838 eval enable_$ac_useropt=no ;; 838 eval enable_$ac_useropt=no ;;
839 839
840 -docdir | --docdir | --docdi | --doc | --do) 840 -docdir | --docdir | --docdi | --doc | --do)
841 ac_prev=docdir ;; 841 ac_prev=docdir ;;
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 docdir=$ac_optarg ;; 843 docdir=$ac_optarg ;;
844 844
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 ac_prev=dvidir ;; 846 ac_prev=dvidir ;;
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 dvidir=$ac_optarg ;; 848 dvidir=$ac_optarg ;;
849 849
850 -enable-* | --enable-*) 850 -enable-* | --enable-*)
851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names. 852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 854 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
855 { (exit 1); exit 1; }; } 855 { (exit 1); exit 1; }; }
856 ac_useropt_orig=$ac_useropt 856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in 858 case $ac_user_opts in
859 *" 859 *"
860"enable_$ac_useropt" 860"enable_$ac_useropt"
861"*) ;; 861"*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';; 863 ac_unrecognized_sep=', ';;
864 esac 864 esac
865 eval enable_$ac_useropt=\$ac_optarg ;; 865 eval enable_$ac_useropt=\$ac_optarg ;;
866 866
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex) 869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;; 870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*) 873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;; 874 exec_prefix=$ac_optarg ;;
875 875
876 -gas | --gas | --ga | --g) 876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas. 877 # Obsolete; use --with-gas.
878 with_gas=yes ;; 878 with_gas=yes ;;
879 879
880 -help | --help | --hel | --he | -h) 880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;; 881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;; 883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;; 885 ac_init_help=short ;;
886 886
887 -host | --host | --hos | --ho) 887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;; 888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*) 889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;; 890 host_alias=$ac_optarg ;;
891 891
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;; 893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*) 895 | --ht=*)
896 htmldir=$ac_optarg ;; 896 htmldir=$ac_optarg ;;
897 897
898 -includedir | --includedir | --includedi | --included | --include \ 898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc) 899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;; 900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*) 902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;; 903 includedir=$ac_optarg ;;
904 904
905 -infodir | --infodir | --infodi | --infod | --info | --inf) 905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;; 906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;; 908 infodir=$ac_optarg ;;
909 909
910 -libdir | --libdir | --libdi | --libd) 910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;; 911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*) 912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 libdir=$ac_optarg ;; 913 libdir=$ac_optarg ;;
914 914
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe) 916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;; 917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*) 919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;; 920 libexecdir=$ac_optarg ;;
921 921
922 -localedir | --localedir | --localedi | --localed | --locale) 922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;; 923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;; 925 localedir=$ac_optarg ;;
926 926
927 -localstatedir | --localstatedir | --localstatedi | --localstated \ 927 -localstatedir | --localstatedir | --localstatedi | --localstated \
928 | --localstate | --localstat | --localsta | --localst | --locals) 928 | --localstate | --localstat | --localsta | --localst | --locals)
929 ac_prev=localstatedir ;; 929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932 localstatedir=$ac_optarg ;; 932 localstatedir=$ac_optarg ;;
933 933
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;; 935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 mandir=$ac_optarg ;; 937 mandir=$ac_optarg ;;
938 938
939 -nfp | --nfp | --nf) 939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp. 940 # Obsolete; use --without-fp.
941 with_fp=no ;; 941 with_fp=no ;;
942 942
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c | -n) 944 | --no-cr | --no-c | -n)
945 no_create=yes ;; 945 no_create=yes ;;
946 946
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;; 949 no_recursion=yes ;;
950 950
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o) 953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;; 954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;; 958 oldincludedir=$ac_optarg ;;
959 959
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;; 961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 prefix=$ac_optarg ;; 963 prefix=$ac_optarg ;;
964 964
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p) 966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;; 967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;; 970 program_prefix=$ac_optarg ;;
971 971
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s) 973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;; 974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;; 977 program_suffix=$ac_optarg ;;
978 978
979 -program-transform-name | --program-transform-name \ 979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \ 980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \ 981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \ 982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \ 983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \ 984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t) 985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;; 986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \ 987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \ 988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \ 989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \ 990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \ 991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \ 992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*) 993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;; 994 program_transform_name=$ac_optarg ;;
995 995
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;; 997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;; 999 pdfdir=$ac_optarg ;;
1000 1000
1001 -psdir | --psdir | --psdi | --psd | --ps) 1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;; 1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;; 1004 psdir=$ac_optarg ;;
1005 1005
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil) 1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;; 1008 silent=yes ;;
1009 1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;; 1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*) 1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;; 1014 sbindir=$ac_optarg ;;
1015 1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \ 1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh) 1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;; 1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*) 1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;; 1025 sharedstatedir=$ac_optarg ;;
1026 1026
1027 -site | --site | --sit) 1027 -site | --site | --sit)
1028 ac_prev=site ;; 1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*) 1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;; 1030 site=$ac_optarg ;;
1031 1031
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;; 1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;; 1035 srcdir=$ac_optarg ;;
1036 1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy) 1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;; 1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;; 1042 sysconfdir=$ac_optarg ;;
1043 1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t) 1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;; 1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;; 1047 target_alias=$ac_optarg ;;
1048 1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;; 1050 verbose=yes ;;
1051 1051
1052 -version | --version | --versio | --versi | --vers | -V) 1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;; 1053 ac_init_version=: ;;
1054 1054
1055 -with-* | --with-*) 1055 -with-* | --with-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names. 1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1059 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1060 { (exit 1); exit 1; }; } 1060 { (exit 1); exit 1; }; }
1061 ac_useropt_orig=$ac_useropt 1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in 1063 case $ac_user_opts in
1064 *" 1064 *"
1065"with_$ac_useropt" 1065"with_$ac_useropt"
1066"*) ;; 1066"*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';; 1068 ac_unrecognized_sep=', ';;
1069 esac 1069 esac
1070 eval with_$ac_useropt=\$ac_optarg ;; 1070 eval with_$ac_useropt=\$ac_optarg ;;
1071 1071
1072 -without-* | --without-*) 1072 -without-* | --without-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names. 1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1076 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1077 { (exit 1); exit 1; }; } 1077 { (exit 1); exit 1; }; }
1078 ac_useropt_orig=$ac_useropt 1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in 1080 case $ac_user_opts in
1081 *" 1081 *"
1082"with_$ac_useropt" 1082"with_$ac_useropt"
1083"*) ;; 1083"*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';; 1085 ac_unrecognized_sep=', ';;
1086 esac 1086 esac
1087 eval with_$ac_useropt=no ;; 1087 eval with_$ac_useropt=no ;;
1088 1088
1089 --x) 1089 --x)
1090 # Obsolete; use --with-x. 1090 # Obsolete; use --with-x.
1091 with_x=yes ;; 1091 with_x=yes ;;
1092 1092
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i) 1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;; 1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;; 1098 x_includes=$ac_optarg ;;
1099 1099
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;; 1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;; 1105 x_libraries=$ac_optarg ;;
1106 1106
1107 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1107 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1108Try \`$0 --help' for more information." >&2 1108Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; } 1109 { (exit 1); exit 1; }; }
1110 ;; 1110 ;;
1111 1111
1112 *=*) 1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names. 1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1116 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1116 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; } 1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\$ac_optarg 1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;; 1119 export $ac_envvar ;;
1120 1120
1121 *) 1121 *)
1122 # FIXME: should be removed in autoconf 3.0. 1122 # FIXME: should be removed in autoconf 3.0.
1123 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1123 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1125 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 ;; 1127 ;;
1128 1128
1129 esac 1129 esac
1130done 1130done
1131 1131
1132if test -n "$ac_prev"; then 1132if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1134 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; } 1135 { (exit 1); exit 1; }; }
1136fi 1136fi
1137 1137
1138if test -n "$ac_unrecognized_opts"; then 1138if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in 1139 case $enable_option_checking in
1140 no) ;; 1140 no) ;;
1141 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1141 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1142 { (exit 1); exit 1; }; } ;; 1142 { (exit 1); exit 1; }; } ;;
1143 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1143 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144 esac 1144 esac
1145fi 1145fi
1146 1146
1147# Check all directory arguments for consistency. 1147# Check all directory arguments for consistency.
1148for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1148for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \ 1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir 1151 libdir localedir mandir
1152do 1152do
1153 eval ac_val=\$$ac_var 1153 eval ac_val=\$$ac_var
1154 # Remove trailing slashes. 1154 # Remove trailing slashes.
1155 case $ac_val in 1155 case $ac_val in
1156 */ ) 1156 */ )
1157 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1157 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1158 eval $ac_var=\$ac_val;; 1158 eval $ac_var=\$ac_val;;
1159 esac 1159 esac
1160 # Be sure to have absolute directory names. 1160 # Be sure to have absolute directory names.
1161 case $ac_val in 1161 case $ac_val in
1162 [\\/$]* | ?:[\\/]* ) continue;; 1162 [\\/$]* | ?:[\\/]* ) continue;;
1163 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1163 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164 esac 1164 esac
1165 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1165 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1166 { (exit 1); exit 1; }; } 1166 { (exit 1); exit 1; }; }
1167done 1167done
1168 1168
1169# There might be people who depend on the old broken behavior: `$host' 1169# There might be people who depend on the old broken behavior: `$host'
1170# used to hold the argument of --host etc. 1170# used to hold the argument of --host etc.
1171# FIXME: To remove some day. 1171# FIXME: To remove some day.
1172build=$build_alias 1172build=$build_alias
1173host=$host_alias 1173host=$host_alias
1174target=$target_alias 1174target=$target_alias
1175 1175
1176# FIXME: To remove some day. 1176# FIXME: To remove some day.
1177if test "x$host_alias" != x; then 1177if test "x$host_alias" != x; then
1178 if test "x$build_alias" = x; then 1178 if test "x$build_alias" = x; then
1179 cross_compiling=maybe 1179 cross_compiling=maybe
1180 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1180 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1181 If a cross compiler is detected then cross compile mode will be used." >&2 1181 If a cross compiler is detected then cross compile mode will be used." >&2
1182 elif test "x$build_alias" != "x$host_alias"; then 1182 elif test "x$build_alias" != "x$host_alias"; then
1183 cross_compiling=yes 1183 cross_compiling=yes
1184 fi 1184 fi
1185fi 1185fi
1186 1186
1187ac_tool_prefix= 1187ac_tool_prefix=
1188test -n "$host_alias" && ac_tool_prefix=$host_alias- 1188test -n "$host_alias" && ac_tool_prefix=$host_alias-
1189 1189
1190test "$silent" = yes && exec 6>/dev/null 1190test "$silent" = yes && exec 6>/dev/null
1191 1191
1192 1192
1193ac_pwd=`pwd` && test -n "$ac_pwd" && 1193ac_pwd=`pwd` && test -n "$ac_pwd" &&
1194ac_ls_di=`ls -di .` && 1194ac_ls_di=`ls -di .` &&
1195ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1195ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1196 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1196 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1197 { (exit 1); exit 1; }; } 1197 { (exit 1); exit 1; }; }
1198test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1198test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1199 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1199 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1200 { (exit 1); exit 1; }; } 1200 { (exit 1); exit 1; }; }
1201 1201
1202 1202
1203# Find the source files, if location was not specified. 1203# Find the source files, if location was not specified.
1204if test -z "$srcdir"; then 1204if test -z "$srcdir"; then
1205 ac_srcdir_defaulted=yes 1205 ac_srcdir_defaulted=yes
1206 # Try the directory containing this script, then the parent directory. 1206 # Try the directory containing this script, then the parent directory.
1207 ac_confdir=`$as_dirname -- "$as_myself" || 1207 ac_confdir=`$as_dirname -- "$as_myself" ||
1208$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1208$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1209 X"$as_myself" : 'X\(//\)[^/]' \| \ 1209 X"$as_myself" : 'X\(//\)[^/]' \| \
1210 X"$as_myself" : 'X\(//\)$' \| \ 1210 X"$as_myself" : 'X\(//\)$' \| \
1211 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1211 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1212$as_echo X"$as_myself" | 1212$as_echo X"$as_myself" |
1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1214 s//\1/ 1214 s//\1/
1215 q 1215 q
1216 } 1216 }
1217 /^X\(\/\/\)[^/].*/{ 1217 /^X\(\/\/\)[^/].*/{
1218 s//\1/ 1218 s//\1/
1219 q 1219 q
1220 } 1220 }
1221 /^X\(\/\/\)$/{ 1221 /^X\(\/\/\)$/{
1222 s//\1/ 1222 s//\1/
1223 q 1223 q
1224 } 1224 }
1225 /^X\(\/\).*/{ 1225 /^X\(\/\).*/{
1226 s//\1/ 1226 s//\1/
1227 q 1227 q
1228 } 1228 }
1229 s/.*/./; q'` 1229 s/.*/./; q'`
1230 srcdir=$ac_confdir 1230 srcdir=$ac_confdir
1231 if test ! -r "$srcdir/$ac_unique_file"; then 1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 srcdir=.. 1232 srcdir=..
1233 fi 1233 fi
1234else 1234else
1235 ac_srcdir_defaulted=no 1235 ac_srcdir_defaulted=no
1236fi 1236fi
1237if test ! -r "$srcdir/$ac_unique_file"; then 1237if test ! -r "$srcdir/$ac_unique_file"; then
1238 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1238 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1239 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1239 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1240 { (exit 1); exit 1; }; } 1240 { (exit 1); exit 1; }; }
1241fi 1241fi
1242ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1242ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243ac_abs_confdir=`( 1243ac_abs_confdir=`(
1244 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1244 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1245 { (exit 1); exit 1; }; } 1245 { (exit 1); exit 1; }; }
1246 pwd)` 1246 pwd)`
1247# When building in place, set srcdir=. 1247# When building in place, set srcdir=.
1248if test "$ac_abs_confdir" = "$ac_pwd"; then 1248if test "$ac_abs_confdir" = "$ac_pwd"; then
1249 srcdir=. 1249 srcdir=.
1250fi 1250fi
1251# Remove unnecessary trailing slashes from srcdir. 1251# Remove unnecessary trailing slashes from srcdir.
1252# Double slashes in file names in object file debugging info 1252# Double slashes in file names in object file debugging info
1253# mess up M-x gdb in Emacs. 1253# mess up M-x gdb in Emacs.
1254case $srcdir in 1254case $srcdir in
1255*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1255*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256esac 1256esac
1257for ac_var in $ac_precious_vars; do 1257for ac_var in $ac_precious_vars; do
1258 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1258 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_env_${ac_var}_value=\$${ac_var} 1259 eval ac_env_${ac_var}_value=\$${ac_var}
1260 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1260 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1261 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1261 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1262done 1262done
1263 1263
1264# 1264#
1265# Report the --help message. 1265# Report the --help message.
1266# 1266#
1267if test "$ac_init_help" = "long"; then 1267if test "$ac_init_help" = "long"; then
1268 # Omit some internal or obsolete options to make the list less imposing. 1268 # Omit some internal or obsolete options to make the list less imposing.
1269 # This message is too long to be a string in the A/UX 3.1 sh. 1269 # This message is too long to be a string in the A/UX 3.1 sh.
1270 cat <<_ACEOF 1270 cat <<_ACEOF
1271\`configure' configures netpgp 20090423 to adapt to many kinds of systems. 1271\`configure' configures netpgp 20090423 to adapt to many kinds of systems.
1272 1272
1273Usage: $0 [OPTION]... [VAR=VALUE]... 1273Usage: $0 [OPTION]... [VAR=VALUE]...
1274 1274
1275To assign environment variables (e.g., CC, CFLAGS...), specify them as 1275To assign environment variables (e.g., CC, CFLAGS...), specify them as
1276VAR=VALUE. See below for descriptions of some of the useful variables. 1276VAR=VALUE. See below for descriptions of some of the useful variables.
1277 1277
1278Defaults for the options are specified in brackets. 1278Defaults for the options are specified in brackets.
1279 1279
1280Configuration: 1280Configuration:
1281 -h, --help display this help and exit 1281 -h, --help display this help and exit
1282 --help=short display options specific to this package 1282 --help=short display options specific to this package
1283 --help=recursive display the short help of all the included packages 1283 --help=recursive display the short help of all the included packages
1284 -V, --version display version information and exit 1284 -V, --version display version information and exit
1285 -q, --quiet, --silent do not print \`checking...' messages 1285 -q, --quiet, --silent do not print \`checking...' messages
1286 --cache-file=FILE cache test results in FILE [disabled] 1286 --cache-file=FILE cache test results in FILE [disabled]
1287 -C, --config-cache alias for \`--cache-file=config.cache' 1287 -C, --config-cache alias for \`--cache-file=config.cache'
1288 -n, --no-create do not create output files 1288 -n, --no-create do not create output files
1289 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1289 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1290 1290
1291Installation directories: 1291Installation directories:
1292 --prefix=PREFIX install architecture-independent files in PREFIX 1292 --prefix=PREFIX install architecture-independent files in PREFIX
1293 [$ac_default_prefix] 1293 [$ac_default_prefix]
1294 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1294 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1295 [PREFIX] 1295 [PREFIX]
1296 1296
1297By default, \`make install' will install all the files in 1297By default, \`make install' will install all the files in
1298\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1298\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1299an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1299an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1300for instance \`--prefix=\$HOME'. 1300for instance \`--prefix=\$HOME'.
1301 1301
1302For better control, use the options below. 1302For better control, use the options below.
1303 1303
1304Fine tuning of the installation directories: 1304Fine tuning of the installation directories:
1305 --bindir=DIR user executables [EPREFIX/bin] 1305 --bindir=DIR user executables [EPREFIX/bin]
1306 --sbindir=DIR system admin executables [EPREFIX/sbin] 1306 --sbindir=DIR system admin executables [EPREFIX/sbin]
1307 --libexecdir=DIR program executables [EPREFIX/libexec] 1307 --libexecdir=DIR program executables [EPREFIX/libexec]
1308 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1308 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1309 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1309 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1310 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1310 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1311 --libdir=DIR object code libraries [EPREFIX/lib] 1311 --libdir=DIR object code libraries [EPREFIX/lib]
1312 --includedir=DIR C header files [PREFIX/include] 1312 --includedir=DIR C header files [PREFIX/include]
1313 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1313 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1314 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1314 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1315 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1315 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1316 --infodir=DIR info documentation [DATAROOTDIR/info] 1316 --infodir=DIR info documentation [DATAROOTDIR/info]
1317 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1317 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1318 --mandir=DIR man documentation [DATAROOTDIR/man] 1318 --mandir=DIR man documentation [DATAROOTDIR/man]
1319 --docdir=DIR documentation root [DATAROOTDIR/doc/netpgp] 1319 --docdir=DIR documentation root [DATAROOTDIR/doc/netpgp]
1320 --htmldir=DIR html documentation [DOCDIR] 1320 --htmldir=DIR html documentation [DOCDIR]
1321 --dvidir=DIR dvi documentation [DOCDIR] 1321 --dvidir=DIR dvi documentation [DOCDIR]
1322 --pdfdir=DIR pdf documentation [DOCDIR] 1322 --pdfdir=DIR pdf documentation [DOCDIR]
1323 --psdir=DIR ps documentation [DOCDIR] 1323 --psdir=DIR ps documentation [DOCDIR]
1324_ACEOF 1324_ACEOF
1325 1325
1326 cat <<\_ACEOF 1326 cat <<\_ACEOF
1327 1327
1328Program names: 1328Program names:
1329 --program-prefix=PREFIX prepend PREFIX to installed program names 1329 --program-prefix=PREFIX prepend PREFIX to installed program names
1330 --program-suffix=SUFFIX append SUFFIX to installed program names 1330 --program-suffix=SUFFIX append SUFFIX to installed program names
1331 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1331 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1332 1332
1333System types: 1333System types:
1334 --build=BUILD configure for building on BUILD [guessed] 1334 --build=BUILD configure for building on BUILD [guessed]
1335 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1335 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1336_ACEOF 1336_ACEOF
1337fi 1337fi
1338 1338
1339if test -n "$ac_init_help"; then 1339if test -n "$ac_init_help"; then
1340 case $ac_init_help in 1340 case $ac_init_help in
1341 short | recursive ) echo "Configuration of netpgp 20090423:";; 1341 short | recursive ) echo "Configuration of netpgp 20090423:";;
1342 esac 1342 esac
1343 cat <<\_ACEOF 1343 cat <<\_ACEOF
1344 1344
1345Some influential environment variables: 1345Some influential environment variables:
1346 CC C compiler command 1346 CC C compiler command
1347 CFLAGS C compiler flags 1347 CFLAGS C compiler flags
1348 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1348 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1349 nonstandard directory <lib dir> 1349 nonstandard directory <lib dir>
1350 LIBS libraries to pass to the linker, e.g. -l<library> 1350 LIBS libraries to pass to the linker, e.g. -l<library>
1351 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1351 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1352 you have headers in a nonstandard directory <include dir> 1352 you have headers in a nonstandard directory <include dir>
1353 CPP C preprocessor 1353 CPP C preprocessor
1354 1354
1355Use these variables to override the choices made by `configure' or to help 1355Use these variables to override the choices made by `configure' or to help
1356it to find libraries and programs with nonstandard names/locations. 1356it to find libraries and programs with nonstandard names/locations.
1357 1357
1358Report bugs to <"Alistair Crooks agc@netbsd.org c0596823">. 1358Report bugs to <Alistair Crooks <agc@netbsd.org> c0596823>.
1359_ACEOF 1359_ACEOF
1360ac_status=$? 1360ac_status=$?
1361fi 1361fi
1362 1362
1363if test "$ac_init_help" = "recursive"; then 1363if test "$ac_init_help" = "recursive"; then
1364 # If there are subdirs, report their specific --help. 1364 # If there are subdirs, report their specific --help.
1365 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1365 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1366 test -d "$ac_dir" || 1366 test -d "$ac_dir" ||
1367 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1367 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1368 continue 1368 continue
1369 ac_builddir=. 1369 ac_builddir=.
1370 1370
1371case "$ac_dir" in 1371case "$ac_dir" in
1372.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1372.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373*) 1373*)
1374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1375 # A ".." for each directory in $ac_dir_suffix. 1375 # A ".." for each directory in $ac_dir_suffix.
1376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1377 case $ac_top_builddir_sub in 1377 case $ac_top_builddir_sub in
1378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1380 esac ;; 1380 esac ;;
1381esac 1381esac
1382ac_abs_top_builddir=$ac_pwd 1382ac_abs_top_builddir=$ac_pwd
1383ac_abs_builddir=$ac_pwd$ac_dir_suffix 1383ac_abs_builddir=$ac_pwd$ac_dir_suffix
1384# for backward compatibility: 1384# for backward compatibility:
1385ac_top_builddir=$ac_top_build_prefix 1385ac_top_builddir=$ac_top_build_prefix
1386 1386
1387case $srcdir in 1387case $srcdir in
1388 .) # We are building in place. 1388 .) # We are building in place.
1389 ac_srcdir=. 1389 ac_srcdir=.
1390 ac_top_srcdir=$ac_top_builddir_sub 1390 ac_top_srcdir=$ac_top_builddir_sub
1391 ac_abs_top_srcdir=$ac_pwd ;; 1391 ac_abs_top_srcdir=$ac_pwd ;;
1392 [\\/]* | ?:[\\/]* ) # Absolute name. 1392 [\\/]* | ?:[\\/]* ) # Absolute name.
1393 ac_srcdir=$srcdir$ac_dir_suffix; 1393 ac_srcdir=$srcdir$ac_dir_suffix;
1394 ac_top_srcdir=$srcdir 1394 ac_top_srcdir=$srcdir
1395 ac_abs_top_srcdir=$srcdir ;; 1395 ac_abs_top_srcdir=$srcdir ;;
1396 *) # Relative name. 1396 *) # Relative name.
1397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1398 ac_top_srcdir=$ac_top_build_prefix$srcdir 1398 ac_top_srcdir=$ac_top_build_prefix$srcdir
1399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400esac 1400esac
1401ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1401ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1402 1402
1403 cd "$ac_dir" || { ac_status=$?; continue; } 1403 cd "$ac_dir" || { ac_status=$?; continue; }
1404 # Check for guested configure. 1404 # Check for guested configure.
1405 if test -f "$ac_srcdir/configure.gnu"; then 1405 if test -f "$ac_srcdir/configure.gnu"; then
1406 echo && 1406 echo &&
1407 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1407 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1408 elif test -f "$ac_srcdir/configure"; then 1408 elif test -f "$ac_srcdir/configure"; then
1409 echo && 1409 echo &&
1410 $SHELL "$ac_srcdir/configure" --help=recursive 1410 $SHELL "$ac_srcdir/configure" --help=recursive
1411 else 1411 else
1412 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1412 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1413 fi || ac_status=$? 1413 fi || ac_status=$?
1414 cd "$ac_pwd" || { ac_status=$?; break; } 1414 cd "$ac_pwd" || { ac_status=$?; break; }
1415 done 1415 done
1416fi 1416fi
1417 1417
1418test -n "$ac_init_help" && exit $ac_status 1418test -n "$ac_init_help" && exit $ac_status
1419if $ac_init_version; then 1419if $ac_init_version; then
1420 cat <<\_ACEOF 1420 cat <<\_ACEOF
1421netpgp configure 20090423 1421netpgp configure 20090423
1422generated by GNU Autoconf 2.63 1422generated by GNU Autoconf 2.63
1423 1423
1424Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1424Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14252002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 14252002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1426This configure script is free software; the Free Software Foundation 1426This configure script is free software; the Free Software Foundation
1427gives unlimited permission to copy, distribute and modify it. 1427gives unlimited permission to copy, distribute and modify it.
1428_ACEOF 1428_ACEOF
1429 exit 1429 exit
1430fi 1430fi
1431cat >config.log <<_ACEOF 1431cat >config.log <<_ACEOF
1432This file contains any messages produced by compilers while 1432This file contains any messages produced by compilers while
1433running configure, to aid debugging if configure makes a mistake. 1433running configure, to aid debugging if configure makes a mistake.
1434 1434
1435It was created by netpgp $as_me 20090423, which was 1435It was created by netpgp $as_me 20090423, which was
1436generated by GNU Autoconf 2.63. Invocation command line was 1436generated by GNU Autoconf 2.63. Invocation command line was
1437 1437
1438 $ $0 $@ 1438 $ $0 $@
1439 1439
1440_ACEOF 1440_ACEOF
1441exec 5>>config.log 1441exec 5>>config.log
1442{ 1442{
1443cat <<_ASUNAME 1443cat <<_ASUNAME
1444## --------- ## 1444## --------- ##
1445## Platform. ## 1445## Platform. ##
1446## --------- ## 1446## --------- ##
1447 1447
1448hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1448hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1449uname -m = `(uname -m) 2>/dev/null || echo unknown` 1449uname -m = `(uname -m) 2>/dev/null || echo unknown`
1450uname -r = `(uname -r) 2>/dev/null || echo unknown` 1450uname -r = `(uname -r) 2>/dev/null || echo unknown`
1451uname -s = `(uname -s) 2>/dev/null || echo unknown` 1451uname -s = `(uname -s) 2>/dev/null || echo unknown`
1452uname -v = `(uname -v) 2>/dev/null || echo unknown` 1452uname -v = `(uname -v) 2>/dev/null || echo unknown`
1453 1453
1454/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1454/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1455/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1455/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1456 1456
1457/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1457/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1458/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1458/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1459/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1459/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1460/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1460/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1461/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1461/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1462/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1462/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1463/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1463/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1464 1464
1465_ASUNAME 1465_ASUNAME
1466 1466
1467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468for as_dir in $PATH 1468for as_dir in $PATH
1469do 1469do
1470 IFS=$as_save_IFS 1470 IFS=$as_save_IFS
1471 test -z "$as_dir" && as_dir=. 1471 test -z "$as_dir" && as_dir=.
1472 $as_echo "PATH: $as_dir" 1472 $as_echo "PATH: $as_dir"
1473done 1473done
1474IFS=$as_save_IFS 1474IFS=$as_save_IFS
1475 1475
1476} >&5 1476} >&5
1477 1477
1478cat >&5 <<_ACEOF 1478cat >&5 <<_ACEOF
1479 1479
1480 1480
1481## ----------- ## 1481## ----------- ##
1482## Core tests. ## 1482## Core tests. ##
1483## ----------- ## 1483## ----------- ##
1484 1484
1485_ACEOF 1485_ACEOF
1486 1486
1487 1487
1488# Keep a trace of the command line. 1488# Keep a trace of the command line.
1489# Strip out --no-create and --no-recursion so they do not pile up. 1489# Strip out --no-create and --no-recursion so they do not pile up.
1490# Strip out --silent because we don't want to record it for future runs. 1490# Strip out --silent because we don't want to record it for future runs.
1491# Also quote any args containing shell meta-characters. 1491# Also quote any args containing shell meta-characters.
1492# Make two passes to allow for proper duplicate-argument suppression. 1492# Make two passes to allow for proper duplicate-argument suppression.
1493ac_configure_args= 1493ac_configure_args=
1494ac_configure_args0= 1494ac_configure_args0=
1495ac_configure_args1= 1495ac_configure_args1=
1496ac_must_keep_next=false 1496ac_must_keep_next=false
1497for ac_pass in 1 2 1497for ac_pass in 1 2
1498do 1498do
1499 for ac_arg 1499 for ac_arg
1500 do 1500 do
1501 case $ac_arg in 1501 case $ac_arg in
1502 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1502 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1504 | -silent | --silent | --silen | --sile | --sil) 1504 | -silent | --silent | --silen | --sile | --sil)
1505 continue ;; 1505 continue ;;
1506 *\'*) 1506 *\'*)
1507 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1507 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1508 esac 1508 esac
1509 case $ac_pass in 1509 case $ac_pass in
1510 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1510 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1511 2) 1511 2)
1512 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1512 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1513 if test $ac_must_keep_next = true; then 1513 if test $ac_must_keep_next = true; then
1514 ac_must_keep_next=false # Got value, back to normal. 1514 ac_must_keep_next=false # Got value, back to normal.
1515 else 1515 else
1516 case $ac_arg in 1516 case $ac_arg in
1517 *=* | --config-cache | -C | -disable-* | --disable-* \ 1517 *=* | --config-cache | -C | -disable-* | --disable-* \
1518 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1518 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1519 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1519 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1520 | -with-* | --with-* | -without-* | --without-* | --x) 1520 | -with-* | --with-* | -without-* | --without-* | --x)
1521 case "$ac_configure_args0 " in 1521 case "$ac_configure_args0 " in
1522 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1522 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1523 esac 1523 esac
1524 ;; 1524 ;;
1525 -* ) ac_must_keep_next=true ;; 1525 -* ) ac_must_keep_next=true ;;
1526 esac 1526 esac
1527 fi 1527 fi
1528 ac_configure_args="$ac_configure_args '$ac_arg'" 1528 ac_configure_args="$ac_configure_args '$ac_arg'"
1529 ;; 1529 ;;
1530 esac 1530 esac
1531 done 1531 done
1532done 1532done
1533$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1533$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1534$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1534$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1535 1535
1536# When interrupted or exit'd, cleanup temporary files, and complete 1536# When interrupted or exit'd, cleanup temporary files, and complete
1537# config.log. We remove comments because anyway the quotes in there 1537# config.log. We remove comments because anyway the quotes in there
1538# would cause problems or look ugly. 1538# would cause problems or look ugly.
1539# WARNING: Use '\'' to represent an apostrophe within the trap. 1539# WARNING: Use '\'' to represent an apostrophe within the trap.
1540# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1540# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1541trap 'exit_status=$? 1541trap 'exit_status=$?
1542 # Save into config.log some information that might help in debugging. 1542 # Save into config.log some information that might help in debugging.
1543 { 1543 {
1544 echo 1544 echo
1545 1545
1546 cat <<\_ASBOX 1546 cat <<\_ASBOX
1547## ---------------- ## 1547## ---------------- ##
1548## Cache variables. ## 1548## Cache variables. ##
1549## ---------------- ## 1549## ---------------- ##
1550_ASBOX 1550_ASBOX
1551 echo 1551 echo
1552 # The following way of writing the cache mishandles newlines in values, 1552 # The following way of writing the cache mishandles newlines in values,
1553( 1553(
1554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1555 eval ac_val=\$$ac_var 1555 eval ac_val=\$$ac_var
1556 case $ac_val in #( 1556 case $ac_val in #(
1557 *${as_nl}*) 1557 *${as_nl}*)
1558 case $ac_var in #( 1558 case $ac_var in #(
1559 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1559 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1560$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1560$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1561 esac 1561 esac
1562 case $ac_var in #( 1562 case $ac_var in #(
1563 _ | IFS | as_nl) ;; #( 1563 _ | IFS | as_nl) ;; #(
1564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1565 *) $as_unset $ac_var ;; 1565 *) $as_unset $ac_var ;;
1566 esac ;; 1566 esac ;;
1567 esac 1567 esac
1568 done 1568 done
1569 (set) 2>&1 | 1569 (set) 2>&1 |
1570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1571 *${as_nl}ac_space=\ *) 1571 *${as_nl}ac_space=\ *)
1572 sed -n \ 1572 sed -n \
1573 "s/'\''/'\''\\\\'\'''\''/g; 1573 "s/'\''/'\''\\\\'\'''\''/g;
1574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1575 ;; #( 1575 ;; #(
1576 *) 1576 *)
1577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1578 ;; 1578 ;;
1579 esac | 1579 esac |
1580 sort 1580 sort
1581) 1581)
1582 echo 1582 echo
1583 1583
1584 cat <<\_ASBOX 1584 cat <<\_ASBOX
1585## ----------------- ## 1585## ----------------- ##
1586## Output variables. ## 1586## Output variables. ##
1587## ----------------- ## 1587## ----------------- ##
1588_ASBOX 1588_ASBOX
1589 echo 1589 echo
1590 for ac_var in $ac_subst_vars 1590 for ac_var in $ac_subst_vars
1591 do 1591 do
1592 eval ac_val=\$$ac_var 1592 eval ac_val=\$$ac_var
1593 case $ac_val in 1593 case $ac_val in
1594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1595 esac 1595 esac
1596 $as_echo "$ac_var='\''$ac_val'\''" 1596 $as_echo "$ac_var='\''$ac_val'\''"
1597 done | sort 1597 done | sort
1598 echo 1598 echo
1599 1599
1600 if test -n "$ac_subst_files"; then 1600 if test -n "$ac_subst_files"; then
1601 cat <<\_ASBOX 1601 cat <<\_ASBOX
1602## ------------------- ## 1602## ------------------- ##
1603## File substitutions. ## 1603## File substitutions. ##
1604## ------------------- ## 1604## ------------------- ##
1605_ASBOX 1605_ASBOX
1606 echo 1606 echo
1607 for ac_var in $ac_subst_files 1607 for ac_var in $ac_subst_files
1608 do 1608 do
1609 eval ac_val=\$$ac_var 1609 eval ac_val=\$$ac_var
1610 case $ac_val in 1610 case $ac_val in
1611 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1611 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 esac 1612 esac
1613 $as_echo "$ac_var='\''$ac_val'\''" 1613 $as_echo "$ac_var='\''$ac_val'\''"
1614 done | sort 1614 done | sort
1615 echo 1615 echo
1616 fi 1616 fi
1617 1617
1618 if test -s confdefs.h; then 1618 if test -s confdefs.h; then
1619 cat <<\_ASBOX 1619 cat <<\_ASBOX
1620## ----------- ## 1620## ----------- ##
1621## confdefs.h. ## 1621## confdefs.h. ##
1622## ----------- ## 1622## ----------- ##
1623_ASBOX 1623_ASBOX
1624 echo 1624 echo
1625 cat confdefs.h 1625 cat confdefs.h
1626 echo 1626 echo
1627 fi 1627 fi
1628 test "$ac_signal" != 0 && 1628 test "$ac_signal" != 0 &&
1629 $as_echo "$as_me: caught signal $ac_signal" 1629 $as_echo "$as_me: caught signal $ac_signal"
1630 $as_echo "$as_me: exit $exit_status" 1630 $as_echo "$as_me: exit $exit_status"
1631 } >&5 1631 } >&5
1632 rm -f core *.core core.conftest.* && 1632 rm -f core *.core core.conftest.* &&
1633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1634 exit $exit_status 1634 exit $exit_status
1635' 0 1635' 0
1636for ac_signal in 1 2 13 15; do 1636for ac_signal in 1 2 13 15; do
1637 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1637 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1638done 1638done
1639ac_signal=0 1639ac_signal=0
1640 1640
1641# confdefs.h avoids OS command line length limits that DEFS can exceed. 1641# confdefs.h avoids OS command line length limits that DEFS can exceed.
1642rm -f -r conftest* confdefs.h 1642rm -f -r conftest* confdefs.h
1643 1643
1644# Predefined preprocessor variables. 1644# Predefined preprocessor variables.
1645 1645
1646cat >>confdefs.h <<_ACEOF 1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_NAME "$PACKAGE_NAME" 1647#define PACKAGE_NAME "$PACKAGE_NAME"
1648_ACEOF 1648_ACEOF
1649 1649
1650 1650
1651cat >>confdefs.h <<_ACEOF 1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1652#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1653_ACEOF 1653_ACEOF
1654 1654
1655 1655
1656cat >>confdefs.h <<_ACEOF 1656cat >>confdefs.h <<_ACEOF
1657#define PACKAGE_VERSION "$PACKAGE_VERSION" 1657#define PACKAGE_VERSION "$PACKAGE_VERSION"
1658_ACEOF 1658_ACEOF
1659 1659
1660 1660
1661cat >>confdefs.h <<_ACEOF 1661cat >>confdefs.h <<_ACEOF
1662#define PACKAGE_STRING "$PACKAGE_STRING" 1662#define PACKAGE_STRING "$PACKAGE_STRING"
1663_ACEOF 1663_ACEOF
1664 1664
1665 1665
1666cat >>confdefs.h <<_ACEOF 1666cat >>confdefs.h <<_ACEOF
1667#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1667#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1668_ACEOF 1668_ACEOF
1669 1669
1670 1670
1671# Let the site file select an alternate cache file if it wants to. 1671# Let the site file select an alternate cache file if it wants to.
1672# Prefer an explicitly selected file to automatically selected ones. 1672# Prefer an explicitly selected file to automatically selected ones.
1673ac_site_file1=NONE 1673ac_site_file1=NONE
1674ac_site_file2=NONE 1674ac_site_file2=NONE
1675if test -n "$CONFIG_SITE"; then 1675if test -n "$CONFIG_SITE"; then
1676 ac_site_file1=$CONFIG_SITE 1676 ac_site_file1=$CONFIG_SITE
1677elif test "x$prefix" != xNONE; then 1677elif test "x$prefix" != xNONE; then
1678 ac_site_file1=$prefix/share/config.site 1678 ac_site_file1=$prefix/share/config.site
1679 ac_site_file2=$prefix/etc/config.site 1679 ac_site_file2=$prefix/etc/config.site
1680else 1680else
1681 ac_site_file1=$ac_default_prefix/share/config.site 1681 ac_site_file1=$ac_default_prefix/share/config.site
1682 ac_site_file2=$ac_default_prefix/etc/config.site 1682 ac_site_file2=$ac_default_prefix/etc/config.site
1683fi 1683fi
1684for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1684for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1685do 1685do
1686 test "x$ac_site_file" = xNONE && continue 1686 test "x$ac_site_file" = xNONE && continue
1687 if test -r "$ac_site_file"; then 1687 if test -r "$ac_site_file"; then
1688 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1688 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1689$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5 1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file" 1691 . "$ac_site_file"
1692 fi 1692 fi
1693done 1693done
1694 1694
1695if test -r "$cache_file"; then 1695if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special 1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that. 1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then 1698 if test -f "$cache_file"; then
1699 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1699 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700$as_echo "$as_me: loading cache $cache_file" >&6;} 1700$as_echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in 1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";; 1703 *) . "./$cache_file";;
1704 esac 1704 esac
1705 fi 1705 fi
1706else 1706else
1707 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1707 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708$as_echo "$as_me: creating cache $cache_file" >&6;} 1708$as_echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file 1709 >$cache_file
1710fi 1710fi
1711 1711
1712# Check that the precious variables saved in the cache have kept the same 1712# Check that the precious variables saved in the cache have kept the same
1713# value. 1713# value.
1714ac_cache_corrupted=false 1714ac_cache_corrupted=false
1715for ac_var in $ac_precious_vars; do 1715for ac_var in $ac_precious_vars; do
1716 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1716 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1717 eval ac_new_set=\$ac_env_${ac_var}_set 1717 eval ac_new_set=\$ac_env_${ac_var}_set
1718 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1718 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1719 eval ac_new_val=\$ac_env_${ac_var}_value 1719 eval ac_new_val=\$ac_env_${ac_var}_value
1720 case $ac_old_set,$ac_new_set in 1720 case $ac_old_set,$ac_new_set in
1721 set,) 1721 set,)
1722 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1722 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1723$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1723$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1724 ac_cache_corrupted=: ;; 1724 ac_cache_corrupted=: ;;
1725 ,set) 1725 ,set)
1726 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1726 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1727$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1727$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1728 ac_cache_corrupted=: ;; 1728 ac_cache_corrupted=: ;;
1729 ,);; 1729 ,);;
1730 *) 1730 *)
1731 if test "x$ac_old_val" != "x$ac_new_val"; then 1731 if test "x$ac_old_val" != "x$ac_new_val"; then
1732 # differences in whitespace do not lead to failure. 1732 # differences in whitespace do not lead to failure.
1733 ac_old_val_w=`echo x $ac_old_val` 1733 ac_old_val_w=`echo x $ac_old_val`
1734 ac_new_val_w=`echo x $ac_new_val` 1734 ac_new_val_w=`echo x $ac_new_val`
1735 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1735 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1736 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1736 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1737$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1738 ac_cache_corrupted=: 1738 ac_cache_corrupted=:
1739 else 1739 else
1740 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1740 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1741$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1741$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1742 eval $ac_var=\$ac_old_val 1742 eval $ac_var=\$ac_old_val
1743 fi 1743 fi
1744 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1744 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1745$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1745$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1746 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1746 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1747$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1747$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1748 fi;; 1748 fi;;
1749 esac 1749 esac
1750 # Pass precious variables to config.status. 1750 # Pass precious variables to config.status.
1751 if test "$ac_new_set" = set; then 1751 if test "$ac_new_set" = set; then
1752 case $ac_new_val in 1752 case $ac_new_val in
1753 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1753 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 *) ac_arg=$ac_var=$ac_new_val ;; 1754 *) ac_arg=$ac_var=$ac_new_val ;;
1755 esac 1755 esac
1756 case " $ac_configure_args " in 1756 case " $ac_configure_args " in
1757 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1757 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1758 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1758 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1759 esac 1759 esac
1760 fi 1760 fi
1761done 1761done
1762if $ac_cache_corrupted; then 1762if $ac_cache_corrupted; then
1763 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1763 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1765 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1765 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1766$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1767 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1768$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; } 1769 { (exit 1); exit 1; }; }
1770fi 1770fi
1771 1771
1772 1772
1773 1773
1774 1774
1775 1775
1776 1776
1777 1777
1778 1778
1779 1779
1780 1780
1781 1781
1782 1782
1783 1783
1784 1784
1785 1785
1786 1786
1787 1787
1788 1788
1789 1789
1790 1790
1791 1791
1792 1792
1793 1793
1794 1794
1795 1795
1796ac_ext=c 1796ac_ext=c
1797ac_cpp='$CPP $CPPFLAGS' 1797ac_cpp='$CPP $CPPFLAGS'
1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu 1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801 1801
1802 1802
1803 1803
1804ac_config_headers="$ac_config_headers src/lib/config.h" 1804ac_config_headers="$ac_config_headers src/lib/config.h"
1805 1805
1806test "$program_prefix" != NONE && 1806test "$program_prefix" != NONE &&
1807 program_transform_name="s&^&$program_prefix&;$program_transform_name" 1807 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1808# Use a double $ so make ignores it. 1808# Use a double $ so make ignores it.
1809test "$program_suffix" != NONE && 1809test "$program_suffix" != NONE &&
1810 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1810 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1811# Double any \ or $. 1811# Double any \ or $.
1812# By default was `s,x,x', remove it if useless. 1812# By default was `s,x,x', remove it if useless.
1813ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 1813ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1814program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 1814program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1815 1815
1816 1816
1817ac_aux_dir= 1817ac_aux_dir=
1818for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1818for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1819 if test -f "$ac_dir/install-sh"; then 1819 if test -f "$ac_dir/install-sh"; then
1820 ac_aux_dir=$ac_dir 1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/install-sh -c" 1821 ac_install_sh="$ac_aux_dir/install-sh -c"
1822 break 1822 break
1823 elif test -f "$ac_dir/install.sh"; then 1823 elif test -f "$ac_dir/install.sh"; then
1824 ac_aux_dir=$ac_dir 1824 ac_aux_dir=$ac_dir
1825 ac_install_sh="$ac_aux_dir/install.sh -c" 1825 ac_install_sh="$ac_aux_dir/install.sh -c"
1826 break 1826 break
1827 elif test -f "$ac_dir/shtool"; then 1827 elif test -f "$ac_dir/shtool"; then
1828 ac_aux_dir=$ac_dir 1828 ac_aux_dir=$ac_dir
1829 ac_install_sh="$ac_aux_dir/shtool install -c" 1829 ac_install_sh="$ac_aux_dir/shtool install -c"
1830 break 1830 break
1831 fi 1831 fi
1832done 1832done
1833if test -z "$ac_aux_dir"; then 1833if test -z "$ac_aux_dir"; then
1834 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1834 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1835$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1835$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1836 { (exit 1); exit 1; }; } 1836 { (exit 1); exit 1; }; }
1837fi 1837fi
1838 1838
1839# These three variables are undocumented and unsupported, 1839# These three variables are undocumented and unsupported,
1840# and are intended to be withdrawn in a future Autoconf release. 1840# and are intended to be withdrawn in a future Autoconf release.
1841# They can cause serious problems if a builder's source tree is in a directory 1841# They can cause serious problems if a builder's source tree is in a directory
1842# whose full name contains unusual characters. 1842# whose full name contains unusual characters.
1843ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1843ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1844ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1844ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1845ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1845ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1846 1846
1847 1847
1848# Make sure we can run config.sub. 1848# Make sure we can run config.sub.
1849$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1849$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1850 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1850 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1851$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1851$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1852 { (exit 1); exit 1; }; } 1852 { (exit 1); exit 1; }; }
1853 1853
1854{ $as_echo "$as_me:$LINENO: checking build system type" >&5 1854{ $as_echo "$as_me:$LINENO: checking build system type" >&5
1855$as_echo_n "checking build system type... " >&6; } 1855$as_echo_n "checking build system type... " >&6; }
1856if test "${ac_cv_build+set}" = set; then 1856if test "${ac_cv_build+set}" = set; then
1857 $as_echo_n "(cached) " >&6 1857 $as_echo_n "(cached) " >&6
1858else 1858else
1859 ac_build_alias=$build_alias 1859 ac_build_alias=$build_alias
1860test "x$ac_build_alias" = x && 1860test "x$ac_build_alias" = x &&
1861 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1861 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1862test "x$ac_build_alias" = x && 1862test "x$ac_build_alias" = x &&
1863 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1863 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1864$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1864$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1865 { (exit 1); exit 1; }; } 1865 { (exit 1); exit 1; }; }
1866ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1866ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1867 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1867 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1868$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1868$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1869 { (exit 1); exit 1; }; } 1869 { (exit 1); exit 1; }; }
1870 1870
1871fi 1871fi
1872{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1872{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1873$as_echo "$ac_cv_build" >&6; } 1873$as_echo "$ac_cv_build" >&6; }
1874case $ac_cv_build in 1874case $ac_cv_build in
1875*-*-*) ;; 1875*-*-*) ;;
1876*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1876*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1877$as_echo "$as_me: error: invalid value of canonical build" >&2;} 1877$as_echo "$as_me: error: invalid value of canonical build" >&2;}
1878 { (exit 1); exit 1; }; };; 1878 { (exit 1); exit 1; }; };;
1879esac 1879esac
1880build=$ac_cv_build 1880build=$ac_cv_build
1881ac_save_IFS=$IFS; IFS='-' 1881ac_save_IFS=$IFS; IFS='-'
1882set x $ac_cv_build 1882set x $ac_cv_build
1883shift 1883shift
1884build_cpu=$1 1884build_cpu=$1
1885build_vendor=$2 1885build_vendor=$2
1886shift; shift 1886shift; shift
1887# Remember, the first character of IFS is used to create $*, 1887# Remember, the first character of IFS is used to create $*,
1888# except with old shells: 1888# except with old shells:
1889build_os=$* 1889build_os=$*
1890IFS=$ac_save_IFS 1890IFS=$ac_save_IFS
1891case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1891case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1892 1892
1893 1893
1894{ $as_echo "$as_me:$LINENO: checking host system type" >&5 1894{ $as_echo "$as_me:$LINENO: checking host system type" >&5
1895$as_echo_n "checking host system type... " >&6; } 1895$as_echo_n "checking host system type... " >&6; }
1896if test "${ac_cv_host+set}" = set; then 1896if test "${ac_cv_host+set}" = set; then
1897 $as_echo_n "(cached) " >&6 1897 $as_echo_n "(cached) " >&6
1898else 1898else
1899 if test "x$host_alias" = x; then 1899 if test "x$host_alias" = x; then
1900 ac_cv_host=$ac_cv_build 1900 ac_cv_host=$ac_cv_build
1901else 1901else
1902 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1902 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1903 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1903 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1904$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1904$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1905 { (exit 1); exit 1; }; } 1905 { (exit 1); exit 1; }; }
1906fi 1906fi
1907 1907
1908fi 1908fi
1909{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1909{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1910$as_echo "$ac_cv_host" >&6; } 1910$as_echo "$ac_cv_host" >&6; }
1911case $ac_cv_host in 1911case $ac_cv_host in
1912*-*-*) ;; 1912*-*-*) ;;
1913*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1913*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1914$as_echo "$as_me: error: invalid value of canonical host" >&2;} 1914$as_echo "$as_me: error: invalid value of canonical host" >&2;}
1915 { (exit 1); exit 1; }; };; 1915 { (exit 1); exit 1; }; };;
1916esac 1916esac
1917host=$ac_cv_host 1917host=$ac_cv_host
1918ac_save_IFS=$IFS; IFS='-' 1918ac_save_IFS=$IFS; IFS='-'
1919set x $ac_cv_host 1919set x $ac_cv_host
1920shift 1920shift
1921host_cpu=$1 1921host_cpu=$1
1922host_vendor=$2 1922host_vendor=$2
1923shift; shift 1923shift; shift
1924# Remember, the first character of IFS is used to create $*, 1924# Remember, the first character of IFS is used to create $*,
1925# except with old shells: 1925# except with old shells:
1926host_os=$* 1926host_os=$*
1927IFS=$ac_save_IFS 1927IFS=$ac_save_IFS
1928case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1928case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1929 1929
1930 1930
1931CANONICAL_HOST=$host 1931CANONICAL_HOST=$host
1932 1932
1933 1933
1934# Checks for programs. 1934# Checks for programs.
1935{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1935{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1936$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 1936$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1937set x ${MAKE-make} 1937set x ${MAKE-make}
1938ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 1938ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1939if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 1939if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1940 $as_echo_n "(cached) " >&6 1940 $as_echo_n "(cached) " >&6
1941else 1941else
1942 cat >conftest.make <<\_ACEOF 1942 cat >conftest.make <<\_ACEOF
1943SHELL = /bin/sh 1943SHELL = /bin/sh
1944all: 1944all:
1945 @echo '@@@%%%=$(MAKE)=@@@%%%' 1945 @echo '@@@%%%=$(MAKE)=@@@%%%'
1946_ACEOF 1946_ACEOF
1947# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1947# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1948case `${MAKE-make} -f conftest.make 2>/dev/null` in 1948case `${MAKE-make} -f conftest.make 2>/dev/null` in
1949 *@@@%%%=?*=@@@%%%*) 1949 *@@@%%%=?*=@@@%%%*)
1950 eval ac_cv_prog_make_${ac_make}_set=yes;; 1950 eval ac_cv_prog_make_${ac_make}_set=yes;;
1951 *) 1951 *)
1952 eval ac_cv_prog_make_${ac_make}_set=no;; 1952 eval ac_cv_prog_make_${ac_make}_set=no;;
1953esac 1953esac
1954rm -f conftest.make 1954rm -f conftest.make
1955fi 1955fi
1956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 1956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1957 { $as_echo "$as_me:$LINENO: result: yes" >&5 1957 { $as_echo "$as_me:$LINENO: result: yes" >&5
1958$as_echo "yes" >&6; } 1958$as_echo "yes" >&6; }
1959 SET_MAKE= 1959 SET_MAKE=
1960else 1960else
1961 { $as_echo "$as_me:$LINENO: result: no" >&5 1961 { $as_echo "$as_me:$LINENO: result: no" >&5
1962$as_echo "no" >&6; } 1962$as_echo "no" >&6; }
1963 SET_MAKE="MAKE=${MAKE-make}" 1963 SET_MAKE="MAKE=${MAKE-make}"
1964fi 1964fi
1965 1965
1966for ac_prog in gawk mawk nawk awk 1966for ac_prog in gawk mawk nawk awk
1967do 1967do
1968 # Extract the first word of "$ac_prog", so it can be a program name with args. 1968 # Extract the first word of "$ac_prog", so it can be a program name with args.
1969set dummy $ac_prog; ac_word=$2 1969set dummy $ac_prog; ac_word=$2
1970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 1970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1971$as_echo_n "checking for $ac_word... " >&6; } 1971$as_echo_n "checking for $ac_word... " >&6; }
1972if test "${ac_cv_prog_AWK+set}" = set; then 1972if test "${ac_cv_prog_AWK+set}" = set; then
1973 $as_echo_n "(cached) " >&6 1973 $as_echo_n "(cached) " >&6
1974else 1974else
1975 if test -n "$AWK"; then 1975 if test -n "$AWK"; then
1976 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1977else 1977else
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH 1979for as_dir in $PATH
1980do 1980do
1981 IFS=$as_save_IFS 1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=. 1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do 1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_AWK="$ac_prog" 1985 ac_cv_prog_AWK="$ac_prog"
1986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2 1987 break 2
1988 fi 1988 fi
1989done 1989done
1990done 1990done
1991IFS=$as_save_IFS 1991IFS=$as_save_IFS
1992 1992
1993fi 1993fi
1994fi 1994fi
1995AWK=$ac_cv_prog_AWK 1995AWK=$ac_cv_prog_AWK
1996if test -n "$AWK"; then 1996if test -n "$AWK"; then
1997 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 1997 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
1998$as_echo "$AWK" >&6; } 1998$as_echo "$AWK" >&6; }
1999else 1999else
2000 { $as_echo "$as_me:$LINENO: result: no" >&5 2000 { $as_echo "$as_me:$LINENO: result: no" >&5
2001$as_echo "no" >&6; } 2001$as_echo "no" >&6; }
2002fi 2002fi
2003 2003
2004 2004
2005 test -n "$AWK" && break 2005 test -n "$AWK" && break
2006done 2006done
2007 2007
2008ac_ext=c 2008ac_ext=c
2009ac_cpp='$CPP $CPPFLAGS' 2009ac_cpp='$CPP $CPPFLAGS'
2010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012ac_compiler_gnu=$ac_cv_c_compiler_gnu 2012ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013if test -n "$ac_tool_prefix"; then 2013if test -n "$ac_tool_prefix"; then
2014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015set dummy ${ac_tool_prefix}gcc; ac_word=$2 2015set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2017$as_echo_n "checking for $ac_word... " >&6; } 2017$as_echo_n "checking for $ac_word... " >&6; }
2018if test "${ac_cv_prog_CC+set}" = set; then 2018if test "${ac_cv_prog_CC+set}" = set; then
2019 $as_echo_n "(cached) " >&6 2019 $as_echo_n "(cached) " >&6
2020else 2020else
2021 if test -n "$CC"; then 2021 if test -n "$CC"; then
2022 ac_cv_prog_CC="$CC" # Let the user override the test. 2022 ac_cv_prog_CC="$CC" # Let the user override the test.
2023else 2023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH 2025for as_dir in $PATH
2026do 2026do
2027 IFS=$as_save_IFS 2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=. 2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do 2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 break 2 2033 break 2
2034 fi 2034 fi
2035done 2035done
2036done 2036done
2037IFS=$as_save_IFS 2037IFS=$as_save_IFS
2038 2038
2039fi 2039fi
2040fi 2040fi
2041CC=$ac_cv_prog_CC 2041CC=$ac_cv_prog_CC
2042if test -n "$CC"; then 2042if test -n "$CC"; then
2043 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2043 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2044$as_echo "$CC" >&6; } 2044$as_echo "$CC" >&6; }
2045else 2045else
2046 { $as_echo "$as_me:$LINENO: result: no" >&5 2046 { $as_echo "$as_me:$LINENO: result: no" >&5
2047$as_echo "no" >&6; } 2047$as_echo "no" >&6; }
2048fi 2048fi
2049 2049
2050 2050
2051fi 2051fi
2052if test -z "$ac_cv_prog_CC"; then 2052if test -z "$ac_cv_prog_CC"; then
2053 ac_ct_CC=$CC 2053 ac_ct_CC=$CC
2054 # Extract the first word of "gcc", so it can be a program name with args. 2054 # Extract the first word of "gcc", so it can be a program name with args.
2055set dummy gcc; ac_word=$2 2055set dummy gcc; ac_word=$2
2056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2057$as_echo_n "checking for $ac_word... " >&6; } 2057$as_echo_n "checking for $ac_word... " >&6; }
2058if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2058if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059 $as_echo_n "(cached) " >&6 2059 $as_echo_n "(cached) " >&6
2060else 2060else
2061 if test -n "$ac_ct_CC"; then 2061 if test -n "$ac_ct_CC"; then
2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063else 2063else
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH 2065for as_dir in $PATH
2066do 2066do
2067 IFS=$as_save_IFS 2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=. 2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do 2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071 ac_cv_prog_ac_ct_CC="gcc" 2071 ac_cv_prog_ac_ct_CC="gcc"
2072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 break 2 2073 break 2
2074 fi 2074 fi
2075done 2075done
2076done 2076done
2077IFS=$as_save_IFS 2077IFS=$as_save_IFS
2078 2078
2079fi 2079fi
2080fi 2080fi
2081ac_ct_CC=$ac_cv_prog_ac_ct_CC 2081ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082if test -n "$ac_ct_CC"; then 2082if test -n "$ac_ct_CC"; then
2083 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2083 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084$as_echo "$ac_ct_CC" >&6; } 2084$as_echo "$ac_ct_CC" >&6; }
2085else 2085else
2086 { $as_echo "$as_me:$LINENO: result: no" >&5 2086 { $as_echo "$as_me:$LINENO: result: no" >&5
2087$as_echo "no" >&6; } 2087$as_echo "no" >&6; }
2088fi 2088fi
2089 2089
2090 if test "x$ac_ct_CC" = x; then 2090 if test "x$ac_ct_CC" = x; then
2091 CC="" 2091 CC=""
2092 else 2092 else
2093 case $cross_compiling:$ac_tool_warned in 2093 case $cross_compiling:$ac_tool_warned in
2094yes:) 2094yes:)
2095{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2095{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2097ac_tool_warned=yes ;; 2097ac_tool_warned=yes ;;
2098esac 2098esac
2099 CC=$ac_ct_CC 2099 CC=$ac_ct_CC
2100 fi 2100 fi
2101else 2101else
2102 CC="$ac_cv_prog_CC" 2102 CC="$ac_cv_prog_CC"
2103fi 2103fi
2104 2104
2105if test -z "$CC"; then 2105if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then 2106 if test -n "$ac_tool_prefix"; then
2107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2108set dummy ${ac_tool_prefix}cc; ac_word=$2 2108set dummy ${ac_tool_prefix}cc; ac_word=$2
2109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2110$as_echo_n "checking for $ac_word... " >&6; } 2110$as_echo_n "checking for $ac_word... " >&6; }
2111if test "${ac_cv_prog_CC+set}" = set; then 2111if test "${ac_cv_prog_CC+set}" = set; then
2112 $as_echo_n "(cached) " >&6 2112 $as_echo_n "(cached) " >&6
2113else 2113else
2114 if test -n "$CC"; then 2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test. 2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2116else 2116else
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH 2118for as_dir in $PATH
2119do 2119do
2120 IFS=$as_save_IFS 2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=. 2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do 2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_CC="${ac_tool_prefix}cc" 2124 ac_cv_prog_CC="${ac_tool_prefix}cc"
2125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2 2126 break 2
2127 fi 2127 fi
2128done 2128done
2129done 2129done
2130IFS=$as_save_IFS 2130IFS=$as_save_IFS
2131 2131
2132fi 2132fi
2133fi 2133fi
2134CC=$ac_cv_prog_CC 2134CC=$ac_cv_prog_CC
2135if test -n "$CC"; then 2135if test -n "$CC"; then
2136 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2136 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2137$as_echo "$CC" >&6; } 2137$as_echo "$CC" >&6; }
2138else 2138else
2139 { $as_echo "$as_me:$LINENO: result: no" >&5 2139 { $as_echo "$as_me:$LINENO: result: no" >&5
2140$as_echo "no" >&6; } 2140$as_echo "no" >&6; }
2141fi 2141fi
2142 2142
2143 2143
2144 fi 2144 fi
2145fi 2145fi
2146if test -z "$CC"; then 2146if test -z "$CC"; then
2147 # Extract the first word of "cc", so it can be a program name with args. 2147 # Extract the first word of "cc", so it can be a program name with args.
2148set dummy cc; ac_word=$2 2148set dummy cc; ac_word=$2
2149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2150$as_echo_n "checking for $ac_word... " >&6; } 2150$as_echo_n "checking for $ac_word... " >&6; }
2151if test "${ac_cv_prog_CC+set}" = set; then 2151if test "${ac_cv_prog_CC+set}" = set; then
2152 $as_echo_n "(cached) " >&6 2152 $as_echo_n "(cached) " >&6
2153else 2153else
2154 if test -n "$CC"; then 2154 if test -n "$CC"; then
2155 ac_cv_prog_CC="$CC" # Let the user override the test. 2155 ac_cv_prog_CC="$CC" # Let the user override the test.
2156else 2156else
2157 ac_prog_rejected=no 2157 ac_prog_rejected=no
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH 2159for as_dir in $PATH
2160do 2160do
2161 IFS=$as_save_IFS 2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=. 2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do 2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2166 ac_prog_rejected=yes 2166 ac_prog_rejected=yes
2167 continue 2167 continue
2168 fi 2168 fi
2169 ac_cv_prog_CC="cc" 2169 ac_cv_prog_CC="cc"
2170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2 2171 break 2
2172 fi 2172 fi
2173done 2173done
2174done 2174done
2175IFS=$as_save_IFS 2175IFS=$as_save_IFS
2176 2176
2177if test $ac_prog_rejected = yes; then 2177if test $ac_prog_rejected = yes; then
2178 # We found a bogon in the path, so make sure we never use it. 2178 # We found a bogon in the path, so make sure we never use it.
2179 set dummy $ac_cv_prog_CC 2179 set dummy $ac_cv_prog_CC
2180 shift 2180 shift
2181 if test $# != 0; then 2181 if test $# != 0; then
2182 # We chose a different compiler from the bogus one. 2182 # We chose a different compiler from the bogus one.
2183 # However, it has the same basename, so the bogon will be chosen 2183 # However, it has the same basename, so the bogon will be chosen
2184 # first if we set CC to just the basename; use the full file name. 2184 # first if we set CC to just the basename; use the full file name.
2185 shift 2185 shift
2186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2187 fi 2187 fi
2188fi 2188fi
2189fi 2189fi
2190fi 2190fi
2191CC=$ac_cv_prog_CC 2191CC=$ac_cv_prog_CC
2192if test -n "$CC"; then 2192if test -n "$CC"; then
2193 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2193 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2194$as_echo "$CC" >&6; } 2194$as_echo "$CC" >&6; }
2195else 2195else
2196 { $as_echo "$as_me:$LINENO: result: no" >&5 2196 { $as_echo "$as_me:$LINENO: result: no" >&5
2197$as_echo "no" >&6; } 2197$as_echo "no" >&6; }
2198fi 2198fi
2199 2199
2200 2200
2201fi 2201fi
2202if test -z "$CC"; then 2202if test -z "$CC"; then
2203 if test -n "$ac_tool_prefix"; then 2203 if test -n "$ac_tool_prefix"; then
2204 for ac_prog in cl.exe 2204 for ac_prog in cl.exe
2205 do 2205 do
2206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2207set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2209$as_echo_n "checking for $ac_word... " >&6; } 2209$as_echo_n "checking for $ac_word... " >&6; }
2210if test "${ac_cv_prog_CC+set}" = set; then 2210if test "${ac_cv_prog_CC+set}" = set; then
2211 $as_echo_n "(cached) " >&6 2211 $as_echo_n "(cached) " >&6
2212else 2212else
2213 if test -n "$CC"; then 2213 if test -n "$CC"; then
2214 ac_cv_prog_CC="$CC" # Let the user override the test. 2214 ac_cv_prog_CC="$CC" # Let the user override the test.
2215else 2215else
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH 2217for as_dir in $PATH
2218do 2218do
2219 IFS=$as_save_IFS 2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=. 2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do 2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2 2225 break 2
2226 fi 2226 fi
2227done 2227done
2228done 2228done
2229IFS=$as_save_IFS 2229IFS=$as_save_IFS
2230 2230
2231fi 2231fi
2232fi 2232fi
2233CC=$ac_cv_prog_CC 2233CC=$ac_cv_prog_CC
2234if test -n "$CC"; then 2234if test -n "$CC"; then
2235 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2235 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2236$as_echo "$CC" >&6; } 2236$as_echo "$CC" >&6; }
2237else 2237else
2238 { $as_echo "$as_me:$LINENO: result: no" >&5 2238 { $as_echo "$as_me:$LINENO: result: no" >&5
2239$as_echo "no" >&6; } 2239$as_echo "no" >&6; }
2240fi 2240fi
2241 2241
2242 2242
2243 test -n "$CC" && break 2243 test -n "$CC" && break
2244 done 2244 done
2245fi 2245fi
2246if test -z "$CC"; then 2246if test -z "$CC"; then
2247 ac_ct_CC=$CC 2247 ac_ct_CC=$CC
2248 for ac_prog in cl.exe 2248 for ac_prog in cl.exe
2249do 2249do
2250 # Extract the first word of "$ac_prog", so it can be a program name with args. 2250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2251set dummy $ac_prog; ac_word=$2 2251set dummy $ac_prog; ac_word=$2
2252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2253$as_echo_n "checking for $ac_word... " >&6; } 2253$as_echo_n "checking for $ac_word... " >&6; }
2254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 $as_echo_n "(cached) " >&6 2255 $as_echo_n "(cached) " >&6
2256else 2256else
2257 if test -n "$ac_ct_CC"; then 2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259else 2259else
2260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261for as_dir in $PATH 2261for as_dir in $PATH
2262do 2262do
2263 IFS=$as_save_IFS 2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=. 2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do 2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_prog_ac_ct_CC="$ac_prog" 2267 ac_cv_prog_ac_ct_CC="$ac_prog"
2268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2 2269 break 2
2270 fi 2270 fi
2271done 2271done
2272done 2272done
2273IFS=$as_save_IFS 2273IFS=$as_save_IFS
2274 2274
2275fi 2275fi
2276fi 2276fi
2277ac_ct_CC=$ac_cv_prog_ac_ct_CC 2277ac_ct_CC=$ac_cv_prog_ac_ct_CC
2278if test -n "$ac_ct_CC"; then 2278if test -n "$ac_ct_CC"; then
2279 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2279 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2280$as_echo "$ac_ct_CC" >&6; } 2280$as_echo "$ac_ct_CC" >&6; }
2281else 2281else
2282 { $as_echo "$as_me:$LINENO: result: no" >&5 2282 { $as_echo "$as_me:$LINENO: result: no" >&5
2283$as_echo "no" >&6; } 2283$as_echo "no" >&6; }
2284fi 2284fi
2285 2285
2286 2286
2287 test -n "$ac_ct_CC" && break 2287 test -n "$ac_ct_CC" && break
2288done 2288done
2289 2289
2290 if test "x$ac_ct_CC" = x; then 2290 if test "x$ac_ct_CC" = x; then
2291 CC="" 2291 CC=""
2292 else 2292 else
2293 case $cross_compiling:$ac_tool_warned in 2293 case $cross_compiling:$ac_tool_warned in
2294yes:) 2294yes:)
2295{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2295{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2297ac_tool_warned=yes ;; 2297ac_tool_warned=yes ;;
2298esac 2298esac
2299 CC=$ac_ct_CC 2299 CC=$ac_ct_CC
2300 fi 2300 fi
2301fi 2301fi
2302 2302
2303fi 2303fi
2304 2304
2305 2305
2306test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2306test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2308{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2309See \`config.log' for more details." >&5 2309See \`config.log' for more details." >&5
2310$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2310$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2311See \`config.log' for more details." >&2;} 2311See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }; } 2312 { (exit 1); exit 1; }; }; }
2313 2313
2314# Provide some information about the compiler. 2314# Provide some information about the compiler.
2315$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2315$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2316set X $ac_compile 2316set X $ac_compile
2317ac_compiler=$2 2317ac_compiler=$2
2318{ (ac_try="$ac_compiler --version >&5" 2318{ (ac_try="$ac_compiler --version >&5"
2319case "(($ac_try" in 2319case "(($ac_try" in
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;; 2321 *) ac_try_echo=$ac_try;;
2322esac 2322esac
2323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2324$as_echo "$ac_try_echo") >&5 2324$as_echo "$ac_try_echo") >&5
2325 (eval "$ac_compiler --version >&5") 2>&5 2325 (eval "$ac_compiler --version >&5") 2>&5
2326 ac_status=$? 2326 ac_status=$?
2327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } 2328 (exit $ac_status); }
2329{ (ac_try="$ac_compiler -v >&5" 2329{ (ac_try="$ac_compiler -v >&5"
2330case "(($ac_try" in 2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;; 2332 *) ac_try_echo=$ac_try;;
2333esac 2333esac
2334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2335$as_echo "$ac_try_echo") >&5 2335$as_echo "$ac_try_echo") >&5
2336 (eval "$ac_compiler -v >&5") 2>&5 2336 (eval "$ac_compiler -v >&5") 2>&5
2337 ac_status=$? 2337 ac_status=$?
2338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } 2339 (exit $ac_status); }
2340{ (ac_try="$ac_compiler -V >&5" 2340{ (ac_try="$ac_compiler -V >&5"
2341case "(($ac_try" in 2341case "(($ac_try" in
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;; 2343 *) ac_try_echo=$ac_try;;
2344esac 2344esac
2345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2346$as_echo "$ac_try_echo") >&5 2346$as_echo "$ac_try_echo") >&5
2347 (eval "$ac_compiler -V >&5") 2>&5 2347 (eval "$ac_compiler -V >&5") 2>&5
2348 ac_status=$? 2348 ac_status=$?
2349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } 2350 (exit $ac_status); }
2351 2351
2352cat >conftest.$ac_ext <<_ACEOF 2352cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h. */ 2353/* confdefs.h. */
2354_ACEOF 2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext 2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF 2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */ 2357/* end confdefs.h. */
@@ -2796,2927 +2796,2926 @@ fi @@ -2796,2927 +2796,2926 @@ fi
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797fi 2797fi
2798 2798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_c_werror_flag=$ac_save_c_werror_flag 2800 ac_c_werror_flag=$ac_save_c_werror_flag
2801fi 2801fi
2802{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2802{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803$as_echo "$ac_cv_prog_cc_g" >&6; } 2803$as_echo "$ac_cv_prog_cc_g" >&6; }
2804if test "$ac_test_CFLAGS" = set; then 2804if test "$ac_test_CFLAGS" = set; then
2805 CFLAGS=$ac_save_CFLAGS 2805 CFLAGS=$ac_save_CFLAGS
2806elif test $ac_cv_prog_cc_g = yes; then 2806elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then 2807 if test "$GCC" = yes; then
2808 CFLAGS="-g -O2" 2808 CFLAGS="-g -O2"
2809 else 2809 else
2810 CFLAGS="-g" 2810 CFLAGS="-g"
2811 fi 2811 fi
2812else 2812else
2813 if test "$GCC" = yes; then 2813 if test "$GCC" = yes; then
2814 CFLAGS="-O2" 2814 CFLAGS="-O2"
2815 else 2815 else
2816 CFLAGS= 2816 CFLAGS=
2817 fi 2817 fi
2818fi 2818fi
2819{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2819{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2820$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2820$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2821if test "${ac_cv_prog_cc_c89+set}" = set; then 2821if test "${ac_cv_prog_cc_c89+set}" = set; then
2822 $as_echo_n "(cached) " >&6 2822 $as_echo_n "(cached) " >&6
2823else 2823else
2824 ac_cv_prog_cc_c89=no 2824 ac_cv_prog_cc_c89=no
2825ac_save_CC=$CC 2825ac_save_CC=$CC
2826cat >conftest.$ac_ext <<_ACEOF 2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h. */ 2827/* confdefs.h. */
2828_ACEOF 2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext 2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF 2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h. */ 2831/* end confdefs.h. */
2832#include <stdarg.h> 2832#include <stdarg.h>
2833#include <stdio.h> 2833#include <stdio.h>
2834#include <sys/types.h> 2834#include <sys/types.h>
2835#include <sys/stat.h> 2835#include <sys/stat.h>
2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2837struct buf { int x; }; 2837struct buf { int x; };
2838FILE * (*rcsopen) (struct buf *, struct stat *, int); 2838FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839static char *e (p, i) 2839static char *e (p, i)
2840 char **p; 2840 char **p;
2841 int i; 2841 int i;
2842{ 2842{
2843 return p[i]; 2843 return p[i];
2844} 2844}
2845static char *f (char * (*g) (char **, int), char **p, ...) 2845static char *f (char * (*g) (char **, int), char **p, ...)
2846{ 2846{
2847 char *s; 2847 char *s;
2848 va_list v; 2848 va_list v;
2849 va_start (v,p); 2849 va_start (v,p);
2850 s = g (p, va_arg (v,int)); 2850 s = g (p, va_arg (v,int));
2851 va_end (v); 2851 va_end (v);
2852 return s; 2852 return s;
2853} 2853}
2854 2854
2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2856 function prototypes and stuff, but not '\xHH' hex character constants. 2856 function prototypes and stuff, but not '\xHH' hex character constants.
2857 These don't provoke an error unfortunately, instead are silently treated 2857 These don't provoke an error unfortunately, instead are silently treated
2858 as 'x'. The following induces an error, until -std is added to get 2858 as 'x'. The following induces an error, until -std is added to get
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2860 array size at least. It's necessary to write '\x00'==0 to get something 2860 array size at least. It's necessary to write '\x00'==0 to get something
2861 that's true only with -std. */ 2861 that's true only with -std. */
2862int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2863 2863
2864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2865 inside strings and character constants. */ 2865 inside strings and character constants. */
2866#define FOO(x) 'x' 2866#define FOO(x) 'x'
2867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2868 2868
2869int test (int i, double x); 2869int test (int i, double x);
2870struct s1 {int (*f) (int a);}; 2870struct s1 {int (*f) (int a);};
2871struct s2 {int (*f) (double a);}; 2871struct s2 {int (*f) (double a);};
2872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873int argc; 2873int argc;
2874char **argv; 2874char **argv;
2875int 2875int
2876main () 2876main ()
2877{ 2877{
2878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2879 ; 2879 ;
2880 return 0; 2880 return 0;
2881} 2881}
2882_ACEOF 2882_ACEOF
2883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2885do 2885do
2886 CC="$ac_save_CC $ac_arg" 2886 CC="$ac_save_CC $ac_arg"
2887 rm -f conftest.$ac_objext 2887 rm -f conftest.$ac_objext
2888if { (ac_try="$ac_compile" 2888if { (ac_try="$ac_compile"
2889case "(($ac_try" in 2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;; 2891 *) ac_try_echo=$ac_try;;
2892esac 2892esac
2893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894$as_echo "$ac_try_echo") >&5 2894$as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compile") 2>conftest.er1 2895 (eval "$ac_compile") 2>conftest.er1
2896 ac_status=$? 2896 ac_status=$?
2897 grep -v '^ *+' conftest.er1 >conftest.err 2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1 2898 rm -f conftest.er1
2899 cat conftest.err >&5 2899 cat conftest.err >&5
2900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } && { 2901 (exit $ac_status); } && {
2902 test -z "$ac_c_werror_flag" || 2902 test -z "$ac_c_werror_flag" ||
2903 test ! -s conftest.err 2903 test ! -s conftest.err
2904 } && test -s conftest.$ac_objext; then 2904 } && test -s conftest.$ac_objext; then
2905 ac_cv_prog_cc_c89=$ac_arg 2905 ac_cv_prog_cc_c89=$ac_arg
2906else 2906else
2907 $as_echo "$as_me: failed program was:" >&5 2907 $as_echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5 2908sed 's/^/| /' conftest.$ac_ext >&5
2909 2909
2910 2910
2911fi 2911fi
2912 2912
2913rm -f core conftest.err conftest.$ac_objext 2913rm -f core conftest.err conftest.$ac_objext
2914 test "x$ac_cv_prog_cc_c89" != "xno" && break 2914 test "x$ac_cv_prog_cc_c89" != "xno" && break
2915done 2915done
2916rm -f conftest.$ac_ext 2916rm -f conftest.$ac_ext
2917CC=$ac_save_CC 2917CC=$ac_save_CC
2918 2918
2919fi 2919fi
2920# AC_CACHE_VAL 2920# AC_CACHE_VAL
2921case "x$ac_cv_prog_cc_c89" in 2921case "x$ac_cv_prog_cc_c89" in
2922 x) 2922 x)
2923 { $as_echo "$as_me:$LINENO: result: none needed" >&5 2923 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2924$as_echo "none needed" >&6; } ;; 2924$as_echo "none needed" >&6; } ;;
2925 xno) 2925 xno)
2926 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 2926 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2927$as_echo "unsupported" >&6; } ;; 2927$as_echo "unsupported" >&6; } ;;
2928 *) 2928 *)
2929 CC="$CC $ac_cv_prog_cc_c89" 2929 CC="$CC $ac_cv_prog_cc_c89"
2930 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2930 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2931$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2931$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2932esac 2932esac
2933 2933
2934 2934
2935ac_ext=c 2935ac_ext=c
2936ac_cpp='$CPP $CPPFLAGS' 2936ac_cpp='$CPP $CPPFLAGS'
2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939ac_compiler_gnu=$ac_cv_c_compiler_gnu 2939ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 2940
2941# Find a good install program. We prefer a C program (faster), 2941# Find a good install program. We prefer a C program (faster),
2942# so one script is as good as another. But avoid the broken or 2942# so one script is as good as another. But avoid the broken or
2943# incompatible versions: 2943# incompatible versions:
2944# SysV /etc/install, /usr/sbin/install 2944# SysV /etc/install, /usr/sbin/install
2945# SunOS /usr/etc/install 2945# SunOS /usr/etc/install
2946# IRIX /sbin/install 2946# IRIX /sbin/install
2947# AIX /bin/install 2947# AIX /bin/install
2948# AmigaOS /C/install, which installs bootblocks on floppy discs 2948# AmigaOS /C/install, which installs bootblocks on floppy discs
2949# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2949# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2950# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2950# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2951# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2951# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2952# OS/2's system install, which has a completely different semantic 2952# OS/2's system install, which has a completely different semantic
2953# ./install, which can be erroneously created by make from ./install.sh. 2953# ./install, which can be erroneously created by make from ./install.sh.
2954# Reject install programs that cannot install multiple files. 2954# Reject install programs that cannot install multiple files.
2955{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2955{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2956$as_echo_n "checking for a BSD-compatible install... " >&6; } 2956$as_echo_n "checking for a BSD-compatible install... " >&6; }
2957if test -z "$INSTALL"; then 2957if test -z "$INSTALL"; then
2958if test "${ac_cv_path_install+set}" = set; then 2958if test "${ac_cv_path_install+set}" = set; then
2959 $as_echo_n "(cached) " >&6 2959 $as_echo_n "(cached) " >&6
2960else 2960else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH 2962for as_dir in $PATH
2963do 2963do
2964 IFS=$as_save_IFS 2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=. 2965 test -z "$as_dir" && as_dir=.
2966 # Account for people who put trailing slashes in PATH elements. 2966 # Account for people who put trailing slashes in PATH elements.
2967case $as_dir/ in 2967case $as_dir/ in
2968 ./ | .// | /cC/* | \ 2968 ./ | .// | /cC/* | \
2969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2970 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2970 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2971 /usr/ucb/* ) ;; 2971 /usr/ucb/* ) ;;
2972 *) 2972 *)
2973 # OSF1 and SCO ODT 3.0 have their own names for install. 2973 # OSF1 and SCO ODT 3.0 have their own names for install.
2974 # Don't use installbsd from OSF since it installs stuff as root 2974 # Don't use installbsd from OSF since it installs stuff as root
2975 # by default. 2975 # by default.
2976 for ac_prog in ginstall scoinst install; do 2976 for ac_prog in ginstall scoinst install; do
2977 for ac_exec_ext in '' $ac_executable_extensions; do 2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2978 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2979 if test $ac_prog = install && 2979 if test $ac_prog = install &&
2980 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2980 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981 # AIX install. It has an incompatible calling convention. 2981 # AIX install. It has an incompatible calling convention.
2982 : 2982 :
2983 elif test $ac_prog = install && 2983 elif test $ac_prog = install &&
2984 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2984 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985 # program-specific install script used by HP pwplus--don't use. 2985 # program-specific install script used by HP pwplus--don't use.
2986 : 2986 :
2987 else 2987 else
2988 rm -rf conftest.one conftest.two conftest.dir 2988 rm -rf conftest.one conftest.two conftest.dir
2989 echo one > conftest.one 2989 echo one > conftest.one
2990 echo two > conftest.two 2990 echo two > conftest.two
2991 mkdir conftest.dir 2991 mkdir conftest.dir
2992 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2992 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2993 test -s conftest.one && test -s conftest.two && 2993 test -s conftest.one && test -s conftest.two &&
2994 test -s conftest.dir/conftest.one && 2994 test -s conftest.dir/conftest.one &&
2995 test -s conftest.dir/conftest.two 2995 test -s conftest.dir/conftest.two
2996 then 2996 then
2997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2998 break 3 2998 break 3
2999 fi 2999 fi
3000 fi 3000 fi
3001 fi 3001 fi
3002 done 3002 done
3003 done 3003 done
3004 ;; 3004 ;;
3005esac 3005esac
3006 3006
3007done 3007done
3008IFS=$as_save_IFS 3008IFS=$as_save_IFS
3009 3009
3010rm -rf conftest.one conftest.two conftest.dir 3010rm -rf conftest.one conftest.two conftest.dir
3011 3011
3012fi 3012fi
3013 if test "${ac_cv_path_install+set}" = set; then 3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install 3014 INSTALL=$ac_cv_path_install
3015 else 3015 else
3016 # As a last resort, use the slow shell script. Don't cache a 3016 # As a last resort, use the slow shell script. Don't cache a
3017 # value for INSTALL within a source directory, because that will 3017 # value for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is 3018 # break other packages using the cache if that directory is
3019 # removed, or if the value is a relative name. 3019 # removed, or if the value is a relative name.
3020 INSTALL=$ac_install_sh 3020 INSTALL=$ac_install_sh
3021 fi 3021 fi
3022fi 3022fi
3023{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3023{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3024$as_echo "$INSTALL" >&6; } 3024$as_echo "$INSTALL" >&6; }
3025 3025
3026# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3026# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027# It thinks the first close brace ends the variable substitution. 3027# It thinks the first close brace ends the variable substitution.
3028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029 3029
3030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031 3031
3032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033 3033
3034{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3034{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3035$as_echo_n "checking whether ln -s works... " >&6; } 3035$as_echo_n "checking whether ln -s works... " >&6; }
3036LN_S=$as_ln_s 3036LN_S=$as_ln_s
3037if test "$LN_S" = "ln -s"; then 3037if test "$LN_S" = "ln -s"; then
3038 { $as_echo "$as_me:$LINENO: result: yes" >&5 3038 { $as_echo "$as_me:$LINENO: result: yes" >&5
3039$as_echo "yes" >&6; } 3039$as_echo "yes" >&6; }
3040else 3040else
3041 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3041 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3042$as_echo "no, using $LN_S" >&6; } 3042$as_echo "no, using $LN_S" >&6; }
3043fi 3043fi
3044 3044
3045 3045
3046AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"} 3046AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
3047 3047
3048AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"} 3048AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
3049 3049
3050 3050
3051 3051
3052ac_ext=c 3052ac_ext=c
3053ac_cpp='$CPP $CPPFLAGS' 3053ac_cpp='$CPP $CPPFLAGS'
3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056ac_compiler_gnu=$ac_cv_c_compiler_gnu 3056ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3057{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3058$as_echo_n "checking how to run the C preprocessor... " >&6; } 3058$as_echo_n "checking how to run the C preprocessor... " >&6; }
3059# On Suns, sometimes $CPP names a directory. 3059# On Suns, sometimes $CPP names a directory.
3060if test -n "$CPP" && test -d "$CPP"; then 3060if test -n "$CPP" && test -d "$CPP"; then
3061 CPP= 3061 CPP=
3062fi 3062fi
3063if test -z "$CPP"; then 3063if test -z "$CPP"; then
3064 if test "${ac_cv_prog_CPP+set}" = set; then 3064 if test "${ac_cv_prog_CPP+set}" = set; then
3065 $as_echo_n "(cached) " >&6 3065 $as_echo_n "(cached) " >&6
3066else 3066else
3067 # Double quotes because CPP needs to be expanded 3067 # Double quotes because CPP needs to be expanded
3068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3069 do 3069 do
3070 ac_preproc_ok=false 3070 ac_preproc_ok=false
3071for ac_c_preproc_warn_flag in '' yes 3071for ac_c_preproc_warn_flag in '' yes
3072do 3072do
3073 # Use a header file that comes with gcc, so configuring glibc 3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works. 3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers. 3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser, 3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case. 3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF 3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */ 3080/* confdefs.h. */
3081_ACEOF 3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext 3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF 3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */ 3084/* end confdefs.h. */
3085#ifdef __STDC__ 3085#ifdef __STDC__
3086# include <limits.h> 3086# include <limits.h>
3087#else 3087#else
3088# include <assert.h> 3088# include <assert.h>
3089#endif 3089#endif
3090 Syntax error 3090 Syntax error
3091_ACEOF 3091_ACEOF
3092if { (ac_try="$ac_cpp conftest.$ac_ext" 3092if { (ac_try="$ac_cpp conftest.$ac_ext"
3093case "(($ac_try" in 3093case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;; 3095 *) ac_try_echo=$ac_try;;
3096esac 3096esac
3097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3098$as_echo "$ac_try_echo") >&5 3098$as_echo "$ac_try_echo") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 ac_status=$? 3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err 3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1 3102 rm -f conftest.er1
3103 cat conftest.err >&5 3103 cat conftest.err >&5
3104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null && { 3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err 3107 test ! -s conftest.err
3108 }; then 3108 }; then
3109 : 3109 :
3110else 3110else
3111 $as_echo "$as_me: failed program was:" >&5 3111 $as_echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5 3112sed 's/^/| /' conftest.$ac_ext >&5
3113 3113
3114 # Broken: fails on valid input. 3114 # Broken: fails on valid input.
3115continue 3115continue
3116fi 3116fi
3117 3117
3118rm -f conftest.err conftest.$ac_ext 3118rm -f conftest.err conftest.$ac_ext
3119 3119
3120 # OK, works on sane cases. Now check whether nonexistent headers 3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how. 3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF 3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */ 3123/* confdefs.h. */
3124_ACEOF 3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext 3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF 3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */ 3127/* end confdefs.h. */
3128#include <ac_nonexistent.h> 3128#include <ac_nonexistent.h>
3129_ACEOF 3129_ACEOF
3130if { (ac_try="$ac_cpp conftest.$ac_ext" 3130if { (ac_try="$ac_cpp conftest.$ac_ext"
3131case "(($ac_try" in 3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;; 3133 *) ac_try_echo=$ac_try;;
3134esac 3134esac
3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136$as_echo "$ac_try_echo") >&5 3136$as_echo "$ac_try_echo") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 ac_status=$? 3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err 3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1 3140 rm -f conftest.er1
3141 cat conftest.err >&5 3141 cat conftest.err >&5
3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null && { 3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err 3145 test ! -s conftest.err
3146 }; then 3146 }; then
3147 # Broken: success on invalid input. 3147 # Broken: success on invalid input.
3148continue 3148continue
3149else 3149else
3150 $as_echo "$as_me: failed program was:" >&5 3150 $as_echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5 3151sed 's/^/| /' conftest.$ac_ext >&5
3152 3152
3153 # Passes both tests. 3153 # Passes both tests.
3154ac_preproc_ok=: 3154ac_preproc_ok=:
3155break 3155break
3156fi 3156fi
3157 3157
3158rm -f conftest.err conftest.$ac_ext 3158rm -f conftest.err conftest.$ac_ext
3159 3159
3160done 3160done
3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162rm -f conftest.err conftest.$ac_ext 3162rm -f conftest.err conftest.$ac_ext
3163if $ac_preproc_ok; then 3163if $ac_preproc_ok; then
3164 break 3164 break
3165fi 3165fi
3166 3166
3167 done 3167 done
3168 ac_cv_prog_CPP=$CPP 3168 ac_cv_prog_CPP=$CPP
3169 3169
3170fi 3170fi
3171 CPP=$ac_cv_prog_CPP 3171 CPP=$ac_cv_prog_CPP
3172else 3172else
3173 ac_cv_prog_CPP=$CPP 3173 ac_cv_prog_CPP=$CPP
3174fi 3174fi
3175{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3175{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3176$as_echo "$CPP" >&6; } 3176$as_echo "$CPP" >&6; }
3177ac_preproc_ok=false 3177ac_preproc_ok=false
3178for ac_c_preproc_warn_flag in '' yes 3178for ac_c_preproc_warn_flag in '' yes
3179do 3179do
3180 # Use a header file that comes with gcc, so configuring glibc 3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works. 3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers. 3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser, 3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case. 3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF 3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */ 3187/* confdefs.h. */
3188_ACEOF 3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext 3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF 3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */ 3191/* end confdefs.h. */
3192#ifdef __STDC__ 3192#ifdef __STDC__
3193# include <limits.h> 3193# include <limits.h>
3194#else 3194#else
3195# include <assert.h> 3195# include <assert.h>
3196#endif 3196#endif
3197 Syntax error 3197 Syntax error
3198_ACEOF 3198_ACEOF
3199if { (ac_try="$ac_cpp conftest.$ac_ext" 3199if { (ac_try="$ac_cpp conftest.$ac_ext"
3200case "(($ac_try" in 3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;; 3202 *) ac_try_echo=$ac_try;;
3203esac 3203esac
3204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205$as_echo "$ac_try_echo") >&5 3205$as_echo "$ac_try_echo") >&5
3206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3207 ac_status=$? 3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err 3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1 3209 rm -f conftest.er1
3210 cat conftest.err >&5 3210 cat conftest.err >&5
3211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null && { 3212 (exit $ac_status); } >/dev/null && {
3213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3214 test ! -s conftest.err 3214 test ! -s conftest.err
3215 }; then 3215 }; then
3216 : 3216 :
3217else 3217else
3218 $as_echo "$as_me: failed program was:" >&5 3218 $as_echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5 3219sed 's/^/| /' conftest.$ac_ext >&5
3220 3220
3221 # Broken: fails on valid input. 3221 # Broken: fails on valid input.
3222continue 3222continue
3223fi 3223fi
3224 3224
3225rm -f conftest.err conftest.$ac_ext 3225rm -f conftest.err conftest.$ac_ext
3226 3226
3227 # OK, works on sane cases. Now check whether nonexistent headers 3227 # OK, works on sane cases. Now check whether nonexistent headers
3228 # can be detected and how. 3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF 3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */ 3230/* confdefs.h. */
3231_ACEOF 3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext 3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF 3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */ 3234/* end confdefs.h. */
3235#include <ac_nonexistent.h> 3235#include <ac_nonexistent.h>
3236_ACEOF 3236_ACEOF
3237if { (ac_try="$ac_cpp conftest.$ac_ext" 3237if { (ac_try="$ac_cpp conftest.$ac_ext"
3238case "(($ac_try" in 3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;; 3240 *) ac_try_echo=$ac_try;;
3241esac 3241esac
3242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243$as_echo "$ac_try_echo") >&5 3243$as_echo "$ac_try_echo") >&5
3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 ac_status=$? 3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err 3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1 3247 rm -f conftest.er1
3248 cat conftest.err >&5 3248 cat conftest.err >&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null && { 3250 (exit $ac_status); } >/dev/null && {
3251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3252 test ! -s conftest.err 3252 test ! -s conftest.err
3253 }; then 3253 }; then
3254 # Broken: success on invalid input. 3254 # Broken: success on invalid input.
3255continue 3255continue
3256else 3256else
3257 $as_echo "$as_me: failed program was:" >&5 3257 $as_echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5 3258sed 's/^/| /' conftest.$ac_ext >&5
3259 3259
3260 # Passes both tests. 3260 # Passes both tests.
3261ac_preproc_ok=: 3261ac_preproc_ok=:
3262break 3262break
3263fi 3263fi
3264 3264
3265rm -f conftest.err conftest.$ac_ext 3265rm -f conftest.err conftest.$ac_ext
3266 3266
3267done 3267done
3268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3269rm -f conftest.err conftest.$ac_ext 3269rm -f conftest.err conftest.$ac_ext
3270if $ac_preproc_ok; then 3270if $ac_preproc_ok; then
3271 : 3271 :
3272else 3272else
3273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3275{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3276See \`config.log' for more details." >&5 3276See \`config.log' for more details." >&5
3277$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3277$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3278See \`config.log' for more details." >&2;} 3278See \`config.log' for more details." >&2;}
3279 { (exit 1); exit 1; }; }; } 3279 { (exit 1); exit 1; }; }; }
3280fi 3280fi
3281 3281
3282ac_ext=c 3282ac_ext=c
3283ac_cpp='$CPP $CPPFLAGS' 3283ac_cpp='$CPP $CPPFLAGS'
3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_c_compiler_gnu 3286ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287 3287
3288 3288
3289{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3289{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3290$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3290$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3291if test "${ac_cv_path_GREP+set}" = set; then 3291if test "${ac_cv_path_GREP+set}" = set; then
3292 $as_echo_n "(cached) " >&6 3292 $as_echo_n "(cached) " >&6
3293else 3293else
3294 if test -z "$GREP"; then 3294 if test -z "$GREP"; then
3295 ac_path_GREP_found=false 3295 ac_path_GREP_found=false
3296 # Loop through the user's path and test for each of PROGNAME-LIST 3296 # Loop through the user's path and test for each of PROGNAME-LIST
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3299do 3299do
3300 IFS=$as_save_IFS 3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=. 3301 test -z "$as_dir" && as_dir=.
3302 for ac_prog in grep ggrep; do 3302 for ac_prog in grep ggrep; do
3303 for ac_exec_ext in '' $ac_executable_extensions; do 3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3305 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3305 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3306# Check for GNU ac_path_GREP and select it if it is found. 3306# Check for GNU ac_path_GREP and select it if it is found.
3307 # Check for GNU $ac_path_GREP 3307 # Check for GNU $ac_path_GREP
3308case `"$ac_path_GREP" --version 2>&1` in 3308case `"$ac_path_GREP" --version 2>&1` in
3309*GNU*) 3309*GNU*)
3310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3311*) 3311*)
3312 ac_count=0 3312 ac_count=0
3313 $as_echo_n 0123456789 >"conftest.in" 3313 $as_echo_n 0123456789 >"conftest.in"
3314 while : 3314 while :
3315 do 3315 do
3316 cat "conftest.in" "conftest.in" >"conftest.tmp" 3316 cat "conftest.in" "conftest.in" >"conftest.tmp"
3317 mv "conftest.tmp" "conftest.in" 3317 mv "conftest.tmp" "conftest.in"
3318 cp "conftest.in" "conftest.nl" 3318 cp "conftest.in" "conftest.nl"
3319 $as_echo 'GREP' >> "conftest.nl" 3319 $as_echo 'GREP' >> "conftest.nl"
3320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3322 ac_count=`expr $ac_count + 1` 3322 ac_count=`expr $ac_count + 1`
3323 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3324 # Best one so far, save it but keep looking for a better one 3324 # Best one so far, save it but keep looking for a better one
3325 ac_cv_path_GREP="$ac_path_GREP" 3325 ac_cv_path_GREP="$ac_path_GREP"
3326 ac_path_GREP_max=$ac_count 3326 ac_path_GREP_max=$ac_count
3327 fi 3327 fi
3328 # 10*(2^10) chars as input seems more than enough 3328 # 10*(2^10) chars as input seems more than enough
3329 test $ac_count -gt 10 && break 3329 test $ac_count -gt 10 && break
3330 done 3330 done
3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332esac 3332esac
3333 3333
3334 $ac_path_GREP_found && break 3 3334 $ac_path_GREP_found && break 3
3335 done 3335 done
3336 done 3336 done
3337done 3337done
3338IFS=$as_save_IFS 3338IFS=$as_save_IFS
3339 if test -z "$ac_cv_path_GREP"; then 3339 if test -z "$ac_cv_path_GREP"; then
3340 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3340 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3341$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3341$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3342 { (exit 1); exit 1; }; } 3342 { (exit 1); exit 1; }; }
3343 fi 3343 fi
3344else 3344else
3345 ac_cv_path_GREP=$GREP 3345 ac_cv_path_GREP=$GREP
3346fi 3346fi
3347 3347
3348fi 3348fi
3349{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3349{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3350$as_echo "$ac_cv_path_GREP" >&6; } 3350$as_echo "$ac_cv_path_GREP" >&6; }
3351 GREP="$ac_cv_path_GREP" 3351 GREP="$ac_cv_path_GREP"
3352 3352
3353 3353
3354{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3354{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3355$as_echo_n "checking for egrep... " >&6; } 3355$as_echo_n "checking for egrep... " >&6; }
3356if test "${ac_cv_path_EGREP+set}" = set; then 3356if test "${ac_cv_path_EGREP+set}" = set; then
3357 $as_echo_n "(cached) " >&6 3357 $as_echo_n "(cached) " >&6
3358else 3358else
3359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3360 then ac_cv_path_EGREP="$GREP -E" 3360 then ac_cv_path_EGREP="$GREP -E"
3361 else 3361 else
3362 if test -z "$EGREP"; then 3362 if test -z "$EGREP"; then
3363 ac_path_EGREP_found=false 3363 ac_path_EGREP_found=false
3364 # Loop through the user's path and test for each of PROGNAME-LIST 3364 # Loop through the user's path and test for each of PROGNAME-LIST
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3367do 3367do
3368 IFS=$as_save_IFS 3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=. 3369 test -z "$as_dir" && as_dir=.
3370 for ac_prog in egrep; do 3370 for ac_prog in egrep; do
3371 for ac_exec_ext in '' $ac_executable_extensions; do 3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3372 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3373 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3373 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3374# Check for GNU ac_path_EGREP and select it if it is found. 3374# Check for GNU ac_path_EGREP and select it if it is found.
3375 # Check for GNU $ac_path_EGREP 3375 # Check for GNU $ac_path_EGREP
3376case `"$ac_path_EGREP" --version 2>&1` in 3376case `"$ac_path_EGREP" --version 2>&1` in
3377*GNU*) 3377*GNU*)
3378 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3378 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3379*) 3379*)
3380 ac_count=0 3380 ac_count=0
3381 $as_echo_n 0123456789 >"conftest.in" 3381 $as_echo_n 0123456789 >"conftest.in"
3382 while : 3382 while :
3383 do 3383 do
3384 cat "conftest.in" "conftest.in" >"conftest.tmp" 3384 cat "conftest.in" "conftest.in" >"conftest.tmp"
3385 mv "conftest.tmp" "conftest.in" 3385 mv "conftest.tmp" "conftest.in"
3386 cp "conftest.in" "conftest.nl" 3386 cp "conftest.in" "conftest.nl"
3387 $as_echo 'EGREP' >> "conftest.nl" 3387 $as_echo 'EGREP' >> "conftest.nl"
3388 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3388 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3390 ac_count=`expr $ac_count + 1` 3390 ac_count=`expr $ac_count + 1`
3391 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3391 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3392 # Best one so far, save it but keep looking for a better one 3392 # Best one so far, save it but keep looking for a better one
3393 ac_cv_path_EGREP="$ac_path_EGREP" 3393 ac_cv_path_EGREP="$ac_path_EGREP"
3394 ac_path_EGREP_max=$ac_count 3394 ac_path_EGREP_max=$ac_count
3395 fi 3395 fi
3396 # 10*(2^10) chars as input seems more than enough 3396 # 10*(2^10) chars as input seems more than enough
3397 test $ac_count -gt 10 && break 3397 test $ac_count -gt 10 && break
3398 done 3398 done
3399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3400esac 3400esac
3401 3401
3402 $ac_path_EGREP_found && break 3 3402 $ac_path_EGREP_found && break 3
3403 done 3403 done
3404 done 3404 done
3405done 3405done
3406IFS=$as_save_IFS 3406IFS=$as_save_IFS
3407 if test -z "$ac_cv_path_EGREP"; then 3407 if test -z "$ac_cv_path_EGREP"; then
3408 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3408 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3409$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3409$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3410 { (exit 1); exit 1; }; } 3410 { (exit 1); exit 1; }; }
3411 fi 3411 fi
3412else 3412else
3413 ac_cv_path_EGREP=$EGREP 3413 ac_cv_path_EGREP=$EGREP
3414fi 3414fi
3415 3415
3416 fi 3416 fi
3417fi 3417fi
3418{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3418{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3419$as_echo "$ac_cv_path_EGREP" >&6; } 3419$as_echo "$ac_cv_path_EGREP" >&6; }
3420 EGREP="$ac_cv_path_EGREP" 3420 EGREP="$ac_cv_path_EGREP"
3421 3421
3422 3422
3423{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3423{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3424$as_echo_n "checking for ANSI C header files... " >&6; } 3424$as_echo_n "checking for ANSI C header files... " >&6; }
3425if test "${ac_cv_header_stdc+set}" = set; then 3425if test "${ac_cv_header_stdc+set}" = set; then
3426 $as_echo_n "(cached) " >&6 3426 $as_echo_n "(cached) " >&6
3427else 3427else
3428 cat >conftest.$ac_ext <<_ACEOF 3428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */ 3429/* confdefs.h. */
3430_ACEOF 3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext 3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF 3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */ 3433/* end confdefs.h. */
3434#include <stdlib.h> 3434#include <stdlib.h>
3435#include <stdarg.h> 3435#include <stdarg.h>
3436#include <string.h> 3436#include <string.h>
3437#include <float.h> 3437#include <float.h>
3438 3438
3439int 3439int
3440main () 3440main ()
3441{ 3441{
3442 3442
3443 ; 3443 ;
3444 return 0; 3444 return 0;
3445} 3445}
3446_ACEOF 3446_ACEOF
3447rm -f conftest.$ac_objext 3447rm -f conftest.$ac_objext
3448if { (ac_try="$ac_compile" 3448if { (ac_try="$ac_compile"
3449case "(($ac_try" in 3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;; 3451 *) ac_try_echo=$ac_try;;
3452esac 3452esac
3453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454$as_echo "$ac_try_echo") >&5 3454$as_echo "$ac_try_echo") >&5
3455 (eval "$ac_compile") 2>conftest.er1 3455 (eval "$ac_compile") 2>conftest.er1
3456 ac_status=$? 3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err 3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1 3458 rm -f conftest.er1
3459 cat conftest.err >&5 3459 cat conftest.err >&5
3460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } && { 3461 (exit $ac_status); } && {
3462 test -z "$ac_c_werror_flag" || 3462 test -z "$ac_c_werror_flag" ||
3463 test ! -s conftest.err 3463 test ! -s conftest.err
3464 } && test -s conftest.$ac_objext; then 3464 } && test -s conftest.$ac_objext; then
3465 ac_cv_header_stdc=yes 3465 ac_cv_header_stdc=yes
3466else 3466else
3467 $as_echo "$as_me: failed program was:" >&5 3467 $as_echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5 3468sed 's/^/| /' conftest.$ac_ext >&5
3469 3469
3470 ac_cv_header_stdc=no 3470 ac_cv_header_stdc=no
3471fi 3471fi
3472 3472
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 3474
3475if test $ac_cv_header_stdc = yes; then 3475if test $ac_cv_header_stdc = yes; then
3476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3477 cat >conftest.$ac_ext <<_ACEOF 3477 cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h. */ 3478/* confdefs.h. */
3479_ACEOF 3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext 3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF 3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */ 3482/* end confdefs.h. */
3483#include <string.h> 3483#include <string.h>
3484 3484
3485_ACEOF 3485_ACEOF
3486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3487 $EGREP "memchr" >/dev/null 2>&1; then 3487 $EGREP "memchr" >/dev/null 2>&1; then
3488 : 3488 :
3489else 3489else
3490 ac_cv_header_stdc=no 3490 ac_cv_header_stdc=no
3491fi 3491fi
3492rm -f conftest* 3492rm -f conftest*
3493 3493
3494fi 3494fi
3495 3495
3496if test $ac_cv_header_stdc = yes; then 3496if test $ac_cv_header_stdc = yes; then
3497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3498 cat >conftest.$ac_ext <<_ACEOF 3498 cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */ 3499/* confdefs.h. */
3500_ACEOF 3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext 3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF 3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */ 3503/* end confdefs.h. */
3504#include <stdlib.h> 3504#include <stdlib.h>
3505 3505
3506_ACEOF 3506_ACEOF
3507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3508 $EGREP "free" >/dev/null 2>&1; then 3508 $EGREP "free" >/dev/null 2>&1; then
3509 : 3509 :
3510else 3510else
3511 ac_cv_header_stdc=no 3511 ac_cv_header_stdc=no
3512fi 3512fi
3513rm -f conftest* 3513rm -f conftest*
3514 3514
3515fi 3515fi
3516 3516
3517if test $ac_cv_header_stdc = yes; then 3517if test $ac_cv_header_stdc = yes; then
3518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3519 if test "$cross_compiling" = yes; then 3519 if test "$cross_compiling" = yes; then
3520 : 3520 :
3521else 3521else
3522 cat >conftest.$ac_ext <<_ACEOF 3522 cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h. */ 3523/* confdefs.h. */
3524_ACEOF 3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext 3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF 3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h. */ 3527/* end confdefs.h. */
3528#include <ctype.h> 3528#include <ctype.h>
3529#include <stdlib.h> 3529#include <stdlib.h>
3530#if ((' ' & 0x0FF) == 0x020) 3530#if ((' ' & 0x0FF) == 0x020)
3531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3533#else 3533#else
3534# define ISLOWER(c) \ 3534# define ISLOWER(c) \
3535 (('a' <= (c) && (c) <= 'i') \ 3535 (('a' <= (c) && (c) <= 'i') \
3536 || ('j' <= (c) && (c) <= 'r') \ 3536 || ('j' <= (c) && (c) <= 'r') \
3537 || ('s' <= (c) && (c) <= 'z')) 3537 || ('s' <= (c) && (c) <= 'z'))
3538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3539#endif 3539#endif
3540 3540
3541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3542int 3542int
3543main () 3543main ()
3544{ 3544{
3545 int i; 3545 int i;
3546 for (i = 0; i < 256; i++) 3546 for (i = 0; i < 256; i++)
3547 if (XOR (islower (i), ISLOWER (i)) 3547 if (XOR (islower (i), ISLOWER (i))
3548 || toupper (i) != TOUPPER (i)) 3548 || toupper (i) != TOUPPER (i))
3549 return 2; 3549 return 2;
3550 return 0; 3550 return 0;
3551} 3551}
3552_ACEOF 3552_ACEOF
3553rm -f conftest$ac_exeext 3553rm -f conftest$ac_exeext
3554if { (ac_try="$ac_link" 3554if { (ac_try="$ac_link"
3555case "(($ac_try" in 3555case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;; 3557 *) ac_try_echo=$ac_try;;
3558esac 3558esac
3559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3560$as_echo "$ac_try_echo") >&5 3560$as_echo "$ac_try_echo") >&5
3561 (eval "$ac_link") 2>&5 3561 (eval "$ac_link") 2>&5
3562 ac_status=$? 3562 ac_status=$?
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3565 { (case "(($ac_try" in 3565 { (case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;; 3567 *) ac_try_echo=$ac_try;;
3568esac 3568esac
3569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3570$as_echo "$ac_try_echo") >&5 3570$as_echo "$ac_try_echo") >&5
3571 (eval "$ac_try") 2>&5 3571 (eval "$ac_try") 2>&5
3572 ac_status=$? 3572 ac_status=$?
3573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then 3574 (exit $ac_status); }; }; then
3575 : 3575 :
3576else 3576else
3577 $as_echo "$as_me: program exited with status $ac_status" >&5 3577 $as_echo "$as_me: program exited with status $ac_status" >&5
3578$as_echo "$as_me: failed program was:" >&5 3578$as_echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5 3579sed 's/^/| /' conftest.$ac_ext >&5
3580 3580
3581( exit $ac_status ) 3581( exit $ac_status )
3582ac_cv_header_stdc=no 3582ac_cv_header_stdc=no
3583fi 3583fi
3584rm -rf conftest.dSYM 3584rm -rf conftest.dSYM
3585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3586fi 3586fi
3587 3587
3588 3588
3589fi 3589fi
3590fi 3590fi
3591{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3591{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3592$as_echo "$ac_cv_header_stdc" >&6; } 3592$as_echo "$ac_cv_header_stdc" >&6; }
3593if test $ac_cv_header_stdc = yes; then 3593if test $ac_cv_header_stdc = yes; then
3594 3594
3595cat >>confdefs.h <<\_ACEOF 3595cat >>confdefs.h <<\_ACEOF
3596#define STDC_HEADERS 1 3596#define STDC_HEADERS 1
3597_ACEOF 3597_ACEOF
3598 3598
3599fi 3599fi
3600 3600
3601# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3601# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3602 3602
3603 3603
3604 3604
3605 3605
3606 3606
3607 3607
3608 3608
3609 3609
3610 3610
3611for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3611for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3612 inttypes.h stdint.h unistd.h 3612 inttypes.h stdint.h unistd.h
3613do 3613do
3614as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3614as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3615{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3615{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3616$as_echo_n "checking for $ac_header... " >&6; } 3616$as_echo_n "checking for $ac_header... " >&6; }
3617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3618 $as_echo_n "(cached) " >&6 3618 $as_echo_n "(cached) " >&6
3619else 3619else
3620 cat >conftest.$ac_ext <<_ACEOF 3620 cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h. */ 3621/* confdefs.h. */
3622_ACEOF 3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext 3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF 3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h. */ 3625/* end confdefs.h. */
3626$ac_includes_default 3626$ac_includes_default
3627 3627
3628#include <$ac_header> 3628#include <$ac_header>
3629_ACEOF 3629_ACEOF
3630rm -f conftest.$ac_objext 3630rm -f conftest.$ac_objext
3631if { (ac_try="$ac_compile" 3631if { (ac_try="$ac_compile"
3632case "(($ac_try" in 3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;; 3634 *) ac_try_echo=$ac_try;;
3635esac 3635esac
3636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637$as_echo "$ac_try_echo") >&5 3637$as_echo "$ac_try_echo") >&5
3638 (eval "$ac_compile") 2>conftest.er1 3638 (eval "$ac_compile") 2>conftest.er1
3639 ac_status=$? 3639 ac_status=$?
3640 grep -v '^ *+' conftest.er1 >conftest.err 3640 grep -v '^ *+' conftest.er1 >conftest.err
3641 rm -f conftest.er1 3641 rm -f conftest.er1
3642 cat conftest.err >&5 3642 cat conftest.err >&5
3643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } && { 3644 (exit $ac_status); } && {
3645 test -z "$ac_c_werror_flag" || 3645 test -z "$ac_c_werror_flag" ||
3646 test ! -s conftest.err 3646 test ! -s conftest.err
3647 } && test -s conftest.$ac_objext; then 3647 } && test -s conftest.$ac_objext; then
3648 eval "$as_ac_Header=yes" 3648 eval "$as_ac_Header=yes"
3649else 3649else
3650 $as_echo "$as_me: failed program was:" >&5 3650 $as_echo "$as_me: failed program was:" >&5
3651sed 's/^/| /' conftest.$ac_ext >&5 3651sed 's/^/| /' conftest.$ac_ext >&5
3652 3652
3653 eval "$as_ac_Header=no" 3653 eval "$as_ac_Header=no"
3654fi 3654fi
3655 3655
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657fi 3657fi
3658ac_res=`eval 'as_val=${'$as_ac_Header'} 3658ac_res=`eval 'as_val=${'$as_ac_Header'}
3659 $as_echo "$as_val"'` 3659 $as_echo "$as_val"'`
3660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3661$as_echo "$ac_res" >&6; } 3661$as_echo "$ac_res" >&6; }
3662as_val=`eval 'as_val=${'$as_ac_Header'} 3662as_val=`eval 'as_val=${'$as_ac_Header'}
3663 $as_echo "$as_val"'` 3663 $as_echo "$as_val"'`
3664 if test "x$as_val" = x""yes; then 3664 if test "x$as_val" = x""yes; then
3665 cat >>confdefs.h <<_ACEOF 3665 cat >>confdefs.h <<_ACEOF
3666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667_ACEOF 3667_ACEOF
3668 3668
3669fi 3669fi
3670 3670
3671done 3671done
3672 3672
3673 3673
3674 3674
3675for ac_header in CommonCrypto/CommonDigest.h 3675for ac_header in CommonCrypto/CommonDigest.h
3676do 3676do
3677as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3677as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3680$as_echo_n "checking for $ac_header... " >&6; } 3680$as_echo_n "checking for $ac_header... " >&6; }
3681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3682 $as_echo_n "(cached) " >&6 3682 $as_echo_n "(cached) " >&6
3683fi 3683fi
3684ac_res=`eval 'as_val=${'$as_ac_Header'} 3684ac_res=`eval 'as_val=${'$as_ac_Header'}
3685 $as_echo "$as_val"'` 3685 $as_echo "$as_val"'`
3686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3687$as_echo "$ac_res" >&6; } 3687$as_echo "$ac_res" >&6; }
3688else 3688else
3689 # Is the header compilable? 3689 # Is the header compilable?
3690{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 3690{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
3691$as_echo_n "checking $ac_header usability... " >&6; } 3691$as_echo_n "checking $ac_header usability... " >&6; }
3692cat >conftest.$ac_ext <<_ACEOF 3692cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */ 3693/* confdefs.h. */
3694_ACEOF 3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext 3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF 3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */ 3697/* end confdefs.h. */
3698$ac_includes_default 3698$ac_includes_default
3699#include <$ac_header> 3699#include <$ac_header>
3700_ACEOF 3700_ACEOF
3701rm -f conftest.$ac_objext 3701rm -f conftest.$ac_objext
3702if { (ac_try="$ac_compile" 3702if { (ac_try="$ac_compile"
3703case "(($ac_try" in 3703case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;; 3705 *) ac_try_echo=$ac_try;;
3706esac 3706esac
3707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708$as_echo "$ac_try_echo") >&5 3708$as_echo "$ac_try_echo") >&5
3709 (eval "$ac_compile") 2>conftest.er1 3709 (eval "$ac_compile") 2>conftest.er1
3710 ac_status=$? 3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err 3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1 3712 rm -f conftest.er1
3713 cat conftest.err >&5 3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && { 3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" || 3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err 3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then 3718 } && test -s conftest.$ac_objext; then
3719 ac_header_compiler=yes 3719 ac_header_compiler=yes
3720else 3720else
3721 $as_echo "$as_me: failed program was:" >&5 3721 $as_echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5 3722sed 's/^/| /' conftest.$ac_ext >&5
3723 3723
3724 ac_header_compiler=no 3724 ac_header_compiler=no
3725fi 3725fi
3726 3726
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3728{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3729$as_echo "$ac_header_compiler" >&6; } 3729$as_echo "$ac_header_compiler" >&6; }
3730 3730
3731# Is the header present? 3731# Is the header present?
3732{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 3732{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
3733$as_echo_n "checking $ac_header presence... " >&6; } 3733$as_echo_n "checking $ac_header presence... " >&6; }
3734cat >conftest.$ac_ext <<_ACEOF 3734cat >conftest.$ac_ext <<_ACEOF
3735/* confdefs.h. */ 3735/* confdefs.h. */
3736_ACEOF 3736_ACEOF
3737cat confdefs.h >>conftest.$ac_ext 3737cat confdefs.h >>conftest.$ac_ext
3738cat >>conftest.$ac_ext <<_ACEOF 3738cat >>conftest.$ac_ext <<_ACEOF
3739/* end confdefs.h. */ 3739/* end confdefs.h. */
3740#include <$ac_header> 3740#include <$ac_header>
3741_ACEOF 3741_ACEOF
3742if { (ac_try="$ac_cpp conftest.$ac_ext" 3742if { (ac_try="$ac_cpp conftest.$ac_ext"
3743case "(($ac_try" in 3743case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;; 3745 *) ac_try_echo=$ac_try;;
3746esac 3746esac
3747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748$as_echo "$ac_try_echo") >&5 3748$as_echo "$ac_try_echo") >&5
3749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3750 ac_status=$? 3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err 3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1 3752 rm -f conftest.er1
3753 cat conftest.err >&5 3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev/null && { 3755 (exit $ac_status); } >/dev/null && {
3756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3757 test ! -s conftest.err 3757 test ! -s conftest.err
3758 }; then 3758 }; then
3759 ac_header_preproc=yes 3759 ac_header_preproc=yes
3760else 3760else
3761 $as_echo "$as_me: failed program was:" >&5 3761 $as_echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5 3762sed 's/^/| /' conftest.$ac_ext >&5
3763 3763
3764 ac_header_preproc=no 3764 ac_header_preproc=no
3765fi 3765fi
3766 3766
3767rm -f conftest.err conftest.$ac_ext 3767rm -f conftest.err conftest.$ac_ext
3768{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3768{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3769$as_echo "$ac_header_preproc" >&6; } 3769$as_echo "$ac_header_preproc" >&6; }
3770 3770
3771# So? What about this header? 3771# So? What about this header?
3772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3773 yes:no: ) 3773 yes:no: )
3774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3775$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3775$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3777$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3777$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3778 ac_header_preproc=yes 3778 ac_header_preproc=yes
3779 ;; 3779 ;;
3780 no:yes:* ) 3780 no:yes:* )
3781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3782$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3782$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3784$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3784$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3786$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3786$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3788$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3788$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3790$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3790$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3792$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3792$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3793 ( cat <<\_ASBOX 3793 ( cat <<\_ASBOX
3794## -------------------------------------------------------- ## 3794## -------------------------------------------------------- ##
3795## Report this to "Alistair Crooks agc@netbsd.org c0596823" ## 3795## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ##
3796## -------------------------------------------------------- ## 3796## -------------------------------------------------------- ##
3797_ASBOX 3797_ASBOX
3798 ) | sed "s/^/$as_me: WARNING: /" >&2 3798 ) | sed "s/^/$as_me: WARNING: /" >&2
3799 ;; 3799 ;;
3800esac 3800esac
3801{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3801{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3802$as_echo_n "checking for $ac_header... " >&6; } 3802$as_echo_n "checking for $ac_header... " >&6; }
3803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3804 $as_echo_n "(cached) " >&6 3804 $as_echo_n "(cached) " >&6
3805else 3805else
3806 eval "$as_ac_Header=\$ac_header_preproc" 3806 eval "$as_ac_Header=\$ac_header_preproc"
3807fi 3807fi
3808ac_res=`eval 'as_val=${'$as_ac_Header'} 3808ac_res=`eval 'as_val=${'$as_ac_Header'}
3809 $as_echo "$as_val"'` 3809 $as_echo "$as_val"'`
3810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3811$as_echo "$ac_res" >&6; } 3811$as_echo "$ac_res" >&6; }
3812 3812
3813fi 3813fi
3814as_val=`eval 'as_val=${'$as_ac_Header'} 3814as_val=`eval 'as_val=${'$as_ac_Header'}
3815 $as_echo "$as_val"'` 3815 $as_echo "$as_val"'`
3816 if test "x$as_val" = x""yes; then 3816 if test "x$as_val" = x""yes; then
3817 cat >>confdefs.h <<_ACEOF 3817 cat >>confdefs.h <<_ACEOF
3818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819_ACEOF 3819_ACEOF
3820 3820
3821fi 3821fi
3822 3822
3823done 3823done
3824 3824
3825 3825
3826 3826
3827 3827
3828 3828
3829 3829
3830 3830for ac_header in bzlib.h dmalloc.h direct.h errno.h fcntl.h
3831for ac_header in assert.h bzlib.h dmalloc.h direct.h errno.h fcntl.h 
3832do 3831do
3833as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3832as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3836$as_echo_n "checking for $ac_header... " >&6; } 3835$as_echo_n "checking for $ac_header... " >&6; }
3837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3838 $as_echo_n "(cached) " >&6 3837 $as_echo_n "(cached) " >&6
3839fi 3838fi
3840ac_res=`eval 'as_val=${'$as_ac_Header'} 3839ac_res=`eval 'as_val=${'$as_ac_Header'}
3841 $as_echo "$as_val"'` 3840 $as_echo "$as_val"'`
3842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3843$as_echo "$ac_res" >&6; } 3842$as_echo "$ac_res" >&6; }
3844else 3843else
3845 # Is the header compilable? 3844 # Is the header compilable?
3846{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 3845{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
3847$as_echo_n "checking $ac_header usability... " >&6; } 3846$as_echo_n "checking $ac_header usability... " >&6; }
3848cat >conftest.$ac_ext <<_ACEOF 3847cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h. */ 3848/* confdefs.h. */
3850_ACEOF 3849_ACEOF
3851cat confdefs.h >>conftest.$ac_ext 3850cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF 3851cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */ 3852/* end confdefs.h. */
3854$ac_includes_default 3853$ac_includes_default
3855#include <$ac_header> 3854#include <$ac_header>
3856_ACEOF 3855_ACEOF
3857rm -f conftest.$ac_objext 3856rm -f conftest.$ac_objext
3858if { (ac_try="$ac_compile" 3857if { (ac_try="$ac_compile"
3859case "(($ac_try" in 3858case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;; 3860 *) ac_try_echo=$ac_try;;
3862esac 3861esac
3863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864$as_echo "$ac_try_echo") >&5 3863$as_echo "$ac_try_echo") >&5
3865 (eval "$ac_compile") 2>conftest.er1 3864 (eval "$ac_compile") 2>conftest.er1
3866 ac_status=$? 3865 ac_status=$?
3867 grep -v '^ *+' conftest.er1 >conftest.err 3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 rm -f conftest.er1 3867 rm -f conftest.er1
3869 cat conftest.err >&5 3868 cat conftest.err >&5
3870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && { 3870 (exit $ac_status); } && {
3872 test -z "$ac_c_werror_flag" || 3871 test -z "$ac_c_werror_flag" ||
3873 test ! -s conftest.err 3872 test ! -s conftest.err
3874 } && test -s conftest.$ac_objext; then 3873 } && test -s conftest.$ac_objext; then
3875 ac_header_compiler=yes 3874 ac_header_compiler=yes
3876else 3875else
3877 $as_echo "$as_me: failed program was:" >&5 3876 $as_echo "$as_me: failed program was:" >&5
3878sed 's/^/| /' conftest.$ac_ext >&5 3877sed 's/^/| /' conftest.$ac_ext >&5
3879 3878
3880 ac_header_compiler=no 3879 ac_header_compiler=no
3881fi 3880fi
3882 3881
3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3883{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3885$as_echo "$ac_header_compiler" >&6; } 3884$as_echo "$ac_header_compiler" >&6; }
3886 3885
3887# Is the header present? 3886# Is the header present?
3888{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 3887{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
3889$as_echo_n "checking $ac_header presence... " >&6; } 3888$as_echo_n "checking $ac_header presence... " >&6; }
3890cat >conftest.$ac_ext <<_ACEOF 3889cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h. */ 3890/* confdefs.h. */
3892_ACEOF 3891_ACEOF
3893cat confdefs.h >>conftest.$ac_ext 3892cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF 3893cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */ 3894/* end confdefs.h. */
3896#include <$ac_header> 3895#include <$ac_header>
3897_ACEOF 3896_ACEOF
3898if { (ac_try="$ac_cpp conftest.$ac_ext" 3897if { (ac_try="$ac_cpp conftest.$ac_ext"
3899case "(($ac_try" in 3898case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;; 3900 *) ac_try_echo=$ac_try;;
3902esac 3901esac
3903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904$as_echo "$ac_try_echo") >&5 3903$as_echo "$ac_try_echo") >&5
3905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3906 ac_status=$? 3905 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err 3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1 3907 rm -f conftest.er1
3909 cat conftest.err >&5 3908 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev/null && { 3910 (exit $ac_status); } >/dev/null && {
3912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3913 test ! -s conftest.err 3912 test ! -s conftest.err
3914 }; then 3913 }; then
3915 ac_header_preproc=yes 3914 ac_header_preproc=yes
3916else 3915else
3917 $as_echo "$as_me: failed program was:" >&5 3916 $as_echo "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5 3917sed 's/^/| /' conftest.$ac_ext >&5
3919 3918
3920 ac_header_preproc=no 3919 ac_header_preproc=no
3921fi 3920fi
3922 3921
3923rm -f conftest.err conftest.$ac_ext 3922rm -f conftest.err conftest.$ac_ext
3924{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3923{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3925$as_echo "$ac_header_preproc" >&6; } 3924$as_echo "$ac_header_preproc" >&6; }
3926 3925
3927# So? What about this header? 3926# So? What about this header?
3928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3929 yes:no: ) 3928 yes:no: )
3930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3931$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3930$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3933$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3932$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3934 ac_header_preproc=yes 3933 ac_header_preproc=yes
3935 ;; 3934 ;;
3936 no:yes:* ) 3935 no:yes:* )
3937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3938$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3937$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3940$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3939$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3942$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3941$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3944$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3943$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3946$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3945$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3948$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3947$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3949 ( cat <<\_ASBOX 3948 ( cat <<\_ASBOX
3950## -------------------------------------------------------- ## 3949## -------------------------------------------------------- ##
3951## Report this to "Alistair Crooks agc@netbsd.org c0596823" ## 3950## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ##
3952## -------------------------------------------------------- ## 3951## -------------------------------------------------------- ##
3953_ASBOX 3952_ASBOX
3954 ) | sed "s/^/$as_me: WARNING: /" >&2 3953 ) | sed "s/^/$as_me: WARNING: /" >&2
3955 ;; 3954 ;;
3956esac 3955esac
3957{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3956{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3958$as_echo_n "checking for $ac_header... " >&6; } 3957$as_echo_n "checking for $ac_header... " >&6; }
3959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3960 $as_echo_n "(cached) " >&6 3959 $as_echo_n "(cached) " >&6
3961else 3960else
3962 eval "$as_ac_Header=\$ac_header_preproc" 3961 eval "$as_ac_Header=\$ac_header_preproc"
3963fi 3962fi
3964ac_res=`eval 'as_val=${'$as_ac_Header'} 3963ac_res=`eval 'as_val=${'$as_ac_Header'}
3965 $as_echo "$as_val"'` 3964 $as_echo "$as_val"'`
3966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3967$as_echo "$ac_res" >&6; } 3966$as_echo "$ac_res" >&6; }
3968 3967
3969fi 3968fi
3970as_val=`eval 'as_val=${'$as_ac_Header'} 3969as_val=`eval 'as_val=${'$as_ac_Header'}
3971 $as_echo "$as_val"'` 3970 $as_echo "$as_val"'`
3972 if test "x$as_val" = x""yes; then 3971 if test "x$as_val" = x""yes; then
3973 cat >>confdefs.h <<_ACEOF 3972 cat >>confdefs.h <<_ACEOF
3974#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975_ACEOF 3974_ACEOF
3976 3975
3977fi 3976fi
3978 3977
3979done 3978done
3980 3979
3981 3980
3982 3981
3983 3982
3984 3983
3985for ac_header in inttypes.h libgen.h limits.h malloc.h 3984for ac_header in inttypes.h libgen.h limits.h malloc.h
3986do 3985do
3987as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3986as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3990$as_echo_n "checking for $ac_header... " >&6; } 3989$as_echo_n "checking for $ac_header... " >&6; }
3991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3992 $as_echo_n "(cached) " >&6 3991 $as_echo_n "(cached) " >&6
3993fi 3992fi
3994ac_res=`eval 'as_val=${'$as_ac_Header'} 3993ac_res=`eval 'as_val=${'$as_ac_Header'}
3995 $as_echo "$as_val"'` 3994 $as_echo "$as_val"'`
3996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3997$as_echo "$ac_res" >&6; } 3996$as_echo "$ac_res" >&6; }
3998else 3997else
3999 # Is the header compilable? 3998 # Is the header compilable?
4000{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 3999{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4001$as_echo_n "checking $ac_header usability... " >&6; } 4000$as_echo_n "checking $ac_header usability... " >&6; }
4002cat >conftest.$ac_ext <<_ACEOF 4001cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h. */ 4002/* confdefs.h. */
4004_ACEOF 4003_ACEOF
4005cat confdefs.h >>conftest.$ac_ext 4004cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF 4005cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */ 4006/* end confdefs.h. */
4008$ac_includes_default 4007$ac_includes_default
4009#include <$ac_header> 4008#include <$ac_header>
4010_ACEOF 4009_ACEOF
4011rm -f conftest.$ac_objext 4010rm -f conftest.$ac_objext
4012if { (ac_try="$ac_compile" 4011if { (ac_try="$ac_compile"
4013case "(($ac_try" in 4012case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;; 4014 *) ac_try_echo=$ac_try;;
4016esac 4015esac
4017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4018$as_echo "$ac_try_echo") >&5 4017$as_echo "$ac_try_echo") >&5
4019 (eval "$ac_compile") 2>conftest.er1 4018 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$? 4019 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err 4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1 4021 rm -f conftest.er1
4023 cat conftest.err >&5 4022 cat conftest.err >&5
4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && { 4024 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" || 4025 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err 4026 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then 4027 } && test -s conftest.$ac_objext; then
4029 ac_header_compiler=yes 4028 ac_header_compiler=yes
4030else 4029else
4031 $as_echo "$as_me: failed program was:" >&5 4030 $as_echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5 4031sed 's/^/| /' conftest.$ac_ext >&5
4033 4032
4034 ac_header_compiler=no 4033 ac_header_compiler=no
4035fi 4034fi
4036 4035
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4037{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4039$as_echo "$ac_header_compiler" >&6; } 4038$as_echo "$ac_header_compiler" >&6; }
4040 4039
4041# Is the header present? 4040# Is the header present?
4042{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4041{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4043$as_echo_n "checking $ac_header presence... " >&6; } 4042$as_echo_n "checking $ac_header presence... " >&6; }
4044cat >conftest.$ac_ext <<_ACEOF 4043cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h. */ 4044/* confdefs.h. */
4046_ACEOF 4045_ACEOF
4047cat confdefs.h >>conftest.$ac_ext 4046cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF 4047cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */ 4048/* end confdefs.h. */
4050#include <$ac_header> 4049#include <$ac_header>
4051_ACEOF 4050_ACEOF
4052if { (ac_try="$ac_cpp conftest.$ac_ext" 4051if { (ac_try="$ac_cpp conftest.$ac_ext"
4053case "(($ac_try" in 4052case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;; 4054 *) ac_try_echo=$ac_try;;
4056esac 4055esac
4057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058$as_echo "$ac_try_echo") >&5 4057$as_echo "$ac_try_echo") >&5
4059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4060 ac_status=$? 4059 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err 4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1 4061 rm -f conftest.er1
4063 cat conftest.err >&5 4062 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } >/dev/null && { 4064 (exit $ac_status); } >/dev/null && {
4066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4067 test ! -s conftest.err 4066 test ! -s conftest.err
4068 }; then 4067 }; then
4069 ac_header_preproc=yes 4068 ac_header_preproc=yes
4070else 4069else
4071 $as_echo "$as_me: failed program was:" >&5 4070 $as_echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5 4071sed 's/^/| /' conftest.$ac_ext >&5
4073 4072
4074 ac_header_preproc=no 4073 ac_header_preproc=no
4075fi 4074fi
4076 4075
4077rm -f conftest.err conftest.$ac_ext 4076rm -f conftest.err conftest.$ac_ext
4078{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4077{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4079$as_echo "$ac_header_preproc" >&6; } 4078$as_echo "$ac_header_preproc" >&6; }
4080 4079
4081# So? What about this header? 4080# So? What about this header?
4082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4083 yes:no: ) 4082 yes:no: )
4084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4085$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4084$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4087$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4086$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4088 ac_header_preproc=yes 4087 ac_header_preproc=yes
4089 ;; 4088 ;;
4090 no:yes:* ) 4089 no:yes:* )
4091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4092$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4091$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4094$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4093$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4096$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4095$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4098$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4097$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4100$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4099$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4102$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4101$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4103 ( cat <<\_ASBOX 4102 ( cat <<\_ASBOX
4104## -------------------------------------------------------- ## 4103## -------------------------------------------------------- ##
4105## Report this to "Alistair Crooks agc@netbsd.org c0596823" ## 4104## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ##
4106## -------------------------------------------------------- ## 4105## -------------------------------------------------------- ##
4107_ASBOX 4106_ASBOX
4108 ) | sed "s/^/$as_me: WARNING: /" >&2 4107 ) | sed "s/^/$as_me: WARNING: /" >&2
4109 ;; 4108 ;;
4110esac 4109esac
4111{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4110{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4112$as_echo_n "checking for $ac_header... " >&6; } 4111$as_echo_n "checking for $ac_header... " >&6; }
4113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4114 $as_echo_n "(cached) " >&6 4113 $as_echo_n "(cached) " >&6
4115else 4114else
4116 eval "$as_ac_Header=\$ac_header_preproc" 4115 eval "$as_ac_Header=\$ac_header_preproc"
4117fi 4116fi
4118ac_res=`eval 'as_val=${'$as_ac_Header'} 4117ac_res=`eval 'as_val=${'$as_ac_Header'}
4119 $as_echo "$as_val"'` 4118 $as_echo "$as_val"'`
4120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4121$as_echo "$ac_res" >&6; } 4120$as_echo "$ac_res" >&6; }
4122 4121
4123fi 4122fi
4124as_val=`eval 'as_val=${'$as_ac_Header'} 4123as_val=`eval 'as_val=${'$as_ac_Header'}
4125 $as_echo "$as_val"'` 4124 $as_echo "$as_val"'`
4126 if test "x$as_val" = x""yes; then 4125 if test "x$as_val" = x""yes; then
4127 cat >>confdefs.h <<_ACEOF 4126 cat >>confdefs.h <<_ACEOF
4128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4127#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129_ACEOF 4128_ACEOF
4130 4129
4131fi 4130fi
4132 4131
4133done 4132done
4134 4133
4135 4134
4136 4135
4137for ac_header in stdbool.h zlib.h 4136for ac_header in stdbool.h zlib.h
4138do 4137do
4139as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4138as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4142$as_echo_n "checking for $ac_header... " >&6; } 4141$as_echo_n "checking for $ac_header... " >&6; }
4143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4144 $as_echo_n "(cached) " >&6 4143 $as_echo_n "(cached) " >&6
4145fi 4144fi
4146ac_res=`eval 'as_val=${'$as_ac_Header'} 4145ac_res=`eval 'as_val=${'$as_ac_Header'}
4147 $as_echo "$as_val"'` 4146 $as_echo "$as_val"'`
4148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4149$as_echo "$ac_res" >&6; } 4148$as_echo "$ac_res" >&6; }
4150else 4149else
4151 # Is the header compilable? 4150 # Is the header compilable?
4152{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4151{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4153$as_echo_n "checking $ac_header usability... " >&6; } 4152$as_echo_n "checking $ac_header usability... " >&6; }
4154cat >conftest.$ac_ext <<_ACEOF 4153cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */ 4154/* confdefs.h. */
4156_ACEOF 4155_ACEOF
4157cat confdefs.h >>conftest.$ac_ext 4156cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF 4157cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */ 4158/* end confdefs.h. */
4160$ac_includes_default 4159$ac_includes_default
4161#include <$ac_header> 4160#include <$ac_header>
4162_ACEOF 4161_ACEOF
4163rm -f conftest.$ac_objext 4162rm -f conftest.$ac_objext
4164if { (ac_try="$ac_compile" 4163if { (ac_try="$ac_compile"
4165case "(($ac_try" in 4164case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;; 4166 *) ac_try_echo=$ac_try;;
4168esac 4167esac
4169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4170$as_echo "$ac_try_echo") >&5 4169$as_echo "$ac_try_echo") >&5
4171 (eval "$ac_compile") 2>conftest.er1 4170 (eval "$ac_compile") 2>conftest.er1
4172 ac_status=$? 4171 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err 4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1 4173 rm -f conftest.er1
4175 cat conftest.err >&5 4174 cat conftest.err >&5
4176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } && { 4176 (exit $ac_status); } && {
4178 test -z "$ac_c_werror_flag" || 4177 test -z "$ac_c_werror_flag" ||
4179 test ! -s conftest.err 4178 test ! -s conftest.err
4180 } && test -s conftest.$ac_objext; then 4179 } && test -s conftest.$ac_objext; then
4181 ac_header_compiler=yes 4180 ac_header_compiler=yes
4182else 4181else
4183 $as_echo "$as_me: failed program was:" >&5 4182 $as_echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5 4183sed 's/^/| /' conftest.$ac_ext >&5
4185 4184
4186 ac_header_compiler=no 4185 ac_header_compiler=no
4187fi 4186fi
4188 4187
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4189{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4191$as_echo "$ac_header_compiler" >&6; } 4190$as_echo "$ac_header_compiler" >&6; }
4192 4191
4193# Is the header present? 4192# Is the header present?
4194{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4193{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4195$as_echo_n "checking $ac_header presence... " >&6; } 4194$as_echo_n "checking $ac_header presence... " >&6; }
4196cat >conftest.$ac_ext <<_ACEOF 4195cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h. */ 4196/* confdefs.h. */
4198_ACEOF 4197_ACEOF
4199cat confdefs.h >>conftest.$ac_ext 4198cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF 4199cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h. */ 4200/* end confdefs.h. */
4202#include <$ac_header> 4201#include <$ac_header>
4203_ACEOF 4202_ACEOF
4204if { (ac_try="$ac_cpp conftest.$ac_ext" 4203if { (ac_try="$ac_cpp conftest.$ac_ext"
4205case "(($ac_try" in 4204case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;; 4206 *) ac_try_echo=$ac_try;;
4208esac 4207esac
4209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4210$as_echo "$ac_try_echo") >&5 4209$as_echo "$ac_try_echo") >&5
4211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4212 ac_status=$? 4211 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err 4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1 4213 rm -f conftest.er1
4215 cat conftest.err >&5 4214 cat conftest.err >&5
4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev/null && { 4216 (exit $ac_status); } >/dev/null && {
4218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4219 test ! -s conftest.err 4218 test ! -s conftest.err
4220 }; then 4219 }; then
4221 ac_header_preproc=yes 4220 ac_header_preproc=yes
4222else 4221else
4223 $as_echo "$as_me: failed program was:" >&5 4222 $as_echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5 4223sed 's/^/| /' conftest.$ac_ext >&5
4225 4224
4226 ac_header_preproc=no 4225 ac_header_preproc=no
4227fi 4226fi
4228 4227
4229rm -f conftest.err conftest.$ac_ext 4228rm -f conftest.err conftest.$ac_ext
4230{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4229{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4231$as_echo "$ac_header_preproc" >&6; } 4230$as_echo "$ac_header_preproc" >&6; }
4232 4231
4233# So? What about this header? 4232# So? What about this header?
4234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4235 yes:no: ) 4234 yes:no: )
4236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4237$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4236$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4239$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4238$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4240 ac_header_preproc=yes 4239 ac_header_preproc=yes
4241 ;; 4240 ;;
4242 no:yes:* ) 4241 no:yes:* )
4243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4244$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4243$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4246$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4245$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4248$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4247$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4250$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4249$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4252$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4251$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4254$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4253$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4255 ( cat <<\_ASBOX 4254 ( cat <<\_ASBOX
4256## -------------------------------------------------------- ## 4255## -------------------------------------------------------- ##
4257## Report this to "Alistair Crooks agc@netbsd.org c0596823" ## 4256## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ##
4258## -------------------------------------------------------- ## 4257## -------------------------------------------------------- ##
4259_ASBOX 4258_ASBOX
4260 ) | sed "s/^/$as_me: WARNING: /" >&2 4259 ) | sed "s/^/$as_me: WARNING: /" >&2
4261 ;; 4260 ;;
4262esac 4261esac
4263{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4262{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4264$as_echo_n "checking for $ac_header... " >&6; } 4263$as_echo_n "checking for $ac_header... " >&6; }
4265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4266 $as_echo_n "(cached) " >&6 4265 $as_echo_n "(cached) " >&6
4267else 4266else
4268 eval "$as_ac_Header=\$ac_header_preproc" 4267 eval "$as_ac_Header=\$ac_header_preproc"
4269fi 4268fi
4270ac_res=`eval 'as_val=${'$as_ac_Header'} 4269ac_res=`eval 'as_val=${'$as_ac_Header'}
4271 $as_echo "$as_val"'` 4270 $as_echo "$as_val"'`
4272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4273$as_echo "$ac_res" >&6; } 4272$as_echo "$ac_res" >&6; }
4274 4273
4275fi 4274fi
4276as_val=`eval 'as_val=${'$as_ac_Header'} 4275as_val=`eval 'as_val=${'$as_ac_Header'}
4277 $as_echo "$as_val"'` 4276 $as_echo "$as_val"'`
4278 if test "x$as_val" = x""yes; then 4277 if test "x$as_val" = x""yes; then
4279 cat >>confdefs.h <<_ACEOF 4278 cat >>confdefs.h <<_ACEOF
4280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281_ACEOF 4280_ACEOF
4282 4281
4283fi 4282fi
4284 4283
4285done 4284done
4286 4285
4287 4286
4288 4287
4289 4288
4290 4289
4291 4290
4292for ac_header in openssl/aes.h openssl/bn.h openssl/cast.h openssl/des.h openssl/dsa.h 4291for ac_header in openssl/aes.h openssl/bn.h openssl/cast.h openssl/des.h openssl/dsa.h
4293do 4292do
4294as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4293as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4297$as_echo_n "checking for $ac_header... " >&6; } 4296$as_echo_n "checking for $ac_header... " >&6; }
4298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4299 $as_echo_n "(cached) " >&6 4298 $as_echo_n "(cached) " >&6
4300fi 4299fi
4301ac_res=`eval 'as_val=${'$as_ac_Header'} 4300ac_res=`eval 'as_val=${'$as_ac_Header'}
4302 $as_echo "$as_val"'` 4301 $as_echo "$as_val"'`
4303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4304$as_echo "$ac_res" >&6; } 4303$as_echo "$ac_res" >&6; }
4305else 4304else
4306 # Is the header compilable? 4305 # Is the header compilable?
4307{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4306{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4308$as_echo_n "checking $ac_header usability... " >&6; } 4307$as_echo_n "checking $ac_header usability... " >&6; }
4309cat >conftest.$ac_ext <<_ACEOF 4308cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h. */ 4309/* confdefs.h. */
4311_ACEOF 4310_ACEOF
4312cat confdefs.h >>conftest.$ac_ext 4311cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF 4312cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */ 4313/* end confdefs.h. */
4315$ac_includes_default 4314$ac_includes_default
4316#include <$ac_header> 4315#include <$ac_header>
4317_ACEOF 4316_ACEOF
4318rm -f conftest.$ac_objext 4317rm -f conftest.$ac_objext
4319if { (ac_try="$ac_compile" 4318if { (ac_try="$ac_compile"
4320case "(($ac_try" in 4319case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;; 4321 *) ac_try_echo=$ac_try;;
4323esac 4322esac
4324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4325$as_echo "$ac_try_echo") >&5 4324$as_echo "$ac_try_echo") >&5
4326 (eval "$ac_compile") 2>conftest.er1 4325 (eval "$ac_compile") 2>conftest.er1
4327 ac_status=$? 4326 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err 4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1 4328 rm -f conftest.er1
4330 cat conftest.err >&5 4329 cat conftest.err >&5
4331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && { 4331 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" || 4332 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err 4333 test ! -s conftest.err
4335 } && test -s conftest.$ac_objext; then 4334 } && test -s conftest.$ac_objext; then
4336 ac_header_compiler=yes 4335 ac_header_compiler=yes
4337else 4336else
4338 $as_echo "$as_me: failed program was:" >&5 4337 $as_echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5 4338sed 's/^/| /' conftest.$ac_ext >&5
4340 4339
4341 ac_header_compiler=no 4340 ac_header_compiler=no
4342fi 4341fi
4343 4342
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4344{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4346$as_echo "$ac_header_compiler" >&6; } 4345$as_echo "$ac_header_compiler" >&6; }
4347 4346
4348# Is the header present? 4347# Is the header present?
4349{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4348{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4350$as_echo_n "checking $ac_header presence... " >&6; } 4349$as_echo_n "checking $ac_header presence... " >&6; }
4351cat >conftest.$ac_ext <<_ACEOF 4350cat >conftest.$ac_ext <<_ACEOF
4352/* confdefs.h. */ 4351/* confdefs.h. */
4353_ACEOF 4352_ACEOF
4354cat confdefs.h >>conftest.$ac_ext 4353cat confdefs.h >>conftest.$ac_ext
4355cat >>conftest.$ac_ext <<_ACEOF 4354cat >>conftest.$ac_ext <<_ACEOF
4356/* end confdefs.h. */ 4355/* end confdefs.h. */
4357#include <$ac_header> 4356#include <$ac_header>
4358_ACEOF 4357_ACEOF
4359if { (ac_try="$ac_cpp conftest.$ac_ext" 4358if { (ac_try="$ac_cpp conftest.$ac_ext"
4360case "(($ac_try" in 4359case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;; 4361 *) ac_try_echo=$ac_try;;
4363esac 4362esac
4364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4365$as_echo "$ac_try_echo") >&5 4364$as_echo "$ac_try_echo") >&5
4366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4367 ac_status=$? 4366 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err 4367 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1 4368 rm -f conftest.er1
4370 cat conftest.err >&5 4369 cat conftest.err >&5
4371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } >/dev/null && { 4371 (exit $ac_status); } >/dev/null && {
4373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4374 test ! -s conftest.err 4373 test ! -s conftest.err
4375 }; then 4374 }; then
4376 ac_header_preproc=yes 4375 ac_header_preproc=yes
4377else 4376else
4378 $as_echo "$as_me: failed program was:" >&5 4377 $as_echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5 4378sed 's/^/| /' conftest.$ac_ext >&5
4380 4379
4381 ac_header_preproc=no 4380 ac_header_preproc=no
4382fi 4381fi
4383 4382
4384rm -f conftest.err conftest.$ac_ext 4383rm -f conftest.err conftest.$ac_ext
4385{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4384{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4386$as_echo "$ac_header_preproc" >&6; } 4385$as_echo "$ac_header_preproc" >&6; }
4387 4386
4388# So? What about this header? 4387# So? What about this header?
4389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4390 yes:no: ) 4389 yes:no: )
4391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4392$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4391$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4394$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4393$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4395 ac_header_preproc=yes 4394 ac_header_preproc=yes
4396 ;; 4395 ;;
4397 no:yes:* ) 4396 no:yes:* )
4398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4399$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4398$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4401$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4400$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4403$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4402$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4405$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4404$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4407$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4406$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4409$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4408$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4410 ( cat <<\_ASBOX 4409 ( cat <<\_ASBOX
4411## -------------------------------------------------------- ## 4410## -------------------------------------------------------- ##
4412## Report this to "Alistair Crooks agc@netbsd.org c0596823" ## 4411## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ##
4413## -------------------------------------------------------- ## 4412## -------------------------------------------------------- ##
4414_ASBOX 4413_ASBOX
4415 ) | sed "s/^/$as_me: WARNING: /" >&2 4414 ) | sed "s/^/$as_me: WARNING: /" >&2
4416 ;; 4415 ;;
4417esac 4416esac
4418{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4417{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4419$as_echo_n "checking for $ac_header... " >&6; } 4418$as_echo_n "checking for $ac_header... " >&6; }
4420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4421 $as_echo_n "(cached) " >&6 4420 $as_echo_n "(cached) " >&6
4422else 4421else
4423 eval "$as_ac_Header=\$ac_header_preproc" 4422 eval "$as_ac_Header=\$ac_header_preproc"
4424fi 4423fi
4425ac_res=`eval 'as_val=${'$as_ac_Header'} 4424ac_res=`eval 'as_val=${'$as_ac_Header'}
4426 $as_echo "$as_val"'` 4425 $as_echo "$as_val"'`
4427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4428$as_echo "$ac_res" >&6; } 4427$as_echo "$ac_res" >&6; }
4429 4428
4430fi 4429fi
4431as_val=`eval 'as_val=${'$as_ac_Header'} 4430as_val=`eval 'as_val=${'$as_ac_Header'}
4432 $as_echo "$as_val"'` 4431 $as_echo "$as_val"'`
4433 if test "x$as_val" = x""yes; then 4432 if test "x$as_val" = x""yes; then
4434 cat >>confdefs.h <<_ACEOF 4433 cat >>confdefs.h <<_ACEOF
4435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436_ACEOF 4435_ACEOF
4437 4436
4438fi 4437fi
4439 4438
4440done 4439done
4441 4440
4442 4441
4443 4442
4444 4443
4445 4444
4446 4445
4447 4446
4448for ac_header in openssl/err.h openssl/idea.h openssl/md5.h openssl/rand.h openssl/rsa.h openssl/sha.h 4447for ac_header in openssl/err.h openssl/idea.h openssl/md5.h openssl/rand.h openssl/rsa.h openssl/sha.h
4449do 4448do
4450as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4449as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4452 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4453$as_echo_n "checking for $ac_header... " >&6; } 4452$as_echo_n "checking for $ac_header... " >&6; }
4454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4455 $as_echo_n "(cached) " >&6 4454 $as_echo_n "(cached) " >&6
4456fi 4455fi
4457ac_res=`eval 'as_val=${'$as_ac_Header'} 4456ac_res=`eval 'as_val=${'$as_ac_Header'}
4458 $as_echo "$as_val"'` 4457 $as_echo "$as_val"'`
4459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4460$as_echo "$ac_res" >&6; } 4459$as_echo "$ac_res" >&6; }
4461else 4460else
4462 # Is the header compilable? 4461 # Is the header compilable?
4463{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4462{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4464$as_echo_n "checking $ac_header usability... " >&6; } 4463$as_echo_n "checking $ac_header usability... " >&6; }
4465cat >conftest.$ac_ext <<_ACEOF 4464cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */ 4465/* confdefs.h. */
4467_ACEOF 4466_ACEOF
4468cat confdefs.h >>conftest.$ac_ext 4467cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF 4468cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */ 4469/* end confdefs.h. */
4471$ac_includes_default 4470$ac_includes_default
4472#include <$ac_header> 4471#include <$ac_header>
4473_ACEOF 4472_ACEOF
4474rm -f conftest.$ac_objext 4473rm -f conftest.$ac_objext
4475if { (ac_try="$ac_compile" 4474if { (ac_try="$ac_compile"
4476case "(($ac_try" in 4475case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;; 4477 *) ac_try_echo=$ac_try;;
4479esac 4478esac
4480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4481$as_echo "$ac_try_echo") >&5 4480$as_echo "$ac_try_echo") >&5
4482 (eval "$ac_compile") 2>conftest.er1 4481 (eval "$ac_compile") 2>conftest.er1
4483 ac_status=$? 4482 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err 4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1 4484 rm -f conftest.er1
4486 cat conftest.err >&5 4485 cat conftest.err >&5
4487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && { 4487 (exit $ac_status); } && {
4489 test -z "$ac_c_werror_flag" || 4488 test -z "$ac_c_werror_flag" ||
4490 test ! -s conftest.err 4489 test ! -s conftest.err
4491 } && test -s conftest.$ac_objext; then 4490 } && test -s conftest.$ac_objext; then
4492 ac_header_compiler=yes 4491 ac_header_compiler=yes
4493else 4492else
4494 $as_echo "$as_me: failed program was:" >&5 4493 $as_echo "$as_me: failed program was:" >&5
4495sed 's/^/| /' conftest.$ac_ext >&5 4494sed 's/^/| /' conftest.$ac_ext >&5
4496 4495
4497 ac_header_compiler=no 4496 ac_header_compiler=no
4498fi 4497fi
4499 4498
4500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4500{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4502$as_echo "$ac_header_compiler" >&6; } 4501$as_echo "$ac_header_compiler" >&6; }
4503 4502
4504# Is the header present? 4503# Is the header present?
4505{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4504{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4506$as_echo_n "checking $ac_header presence... " >&6; } 4505$as_echo_n "checking $ac_header presence... " >&6; }
4507cat >conftest.$ac_ext <<_ACEOF 4506cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h. */ 4507/* confdefs.h. */
4509_ACEOF 4508_ACEOF
4510cat confdefs.h >>conftest.$ac_ext 4509cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF 4510cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */ 4511/* end confdefs.h. */
4513#include <$ac_header> 4512#include <$ac_header>
4514_ACEOF 4513_ACEOF
4515if { (ac_try="$ac_cpp conftest.$ac_ext" 4514if { (ac_try="$ac_cpp conftest.$ac_ext"
4516case "(($ac_try" in 4515case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;; 4517 *) ac_try_echo=$ac_try;;
4519esac 4518esac
4520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4521$as_echo "$ac_try_echo") >&5 4520$as_echo "$ac_try_echo") >&5
4522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4523 ac_status=$? 4522 ac_status=$?
4524 grep -v '^ *+' conftest.er1 >conftest.err 4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1 4524 rm -f conftest.er1
4526 cat conftest.err >&5 4525 cat conftest.err >&5
4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } >/dev/null && { 4527 (exit $ac_status); } >/dev/null && {
4529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4530 test ! -s conftest.err 4529 test ! -s conftest.err
4531 }; then 4530 }; then
4532 ac_header_preproc=yes 4531 ac_header_preproc=yes
4533else 4532else
4534 $as_echo "$as_me: failed program was:" >&5 4533 $as_echo "$as_me: failed program was:" >&5
4535sed 's/^/| /' conftest.$ac_ext >&5 4534sed 's/^/| /' conftest.$ac_ext >&5
4536 4535
4537 ac_header_preproc=no 4536 ac_header_preproc=no
4538fi 4537fi
4539 4538
4540rm -f conftest.err conftest.$ac_ext 4539rm -f conftest.err conftest.$ac_ext
4541{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4540{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4542$as_echo "$ac_header_preproc" >&6; } 4541$as_echo "$ac_header_preproc" >&6; }
4543 4542
4544# So? What about this header? 4543# So? What about this header?
4545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4546 yes:no: ) 4545 yes:no: )
4547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4548$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4547$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4550$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4549$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4551 ac_header_preproc=yes 4550 ac_header_preproc=yes
4552 ;; 4551 ;;
4553 no:yes:* ) 4552 no:yes:* )
4554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4555$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4554$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4557$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4556$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4559$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4558$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4561$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4560$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4563$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4562$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4565$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4564$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4566 ( cat <<\_ASBOX 4565 ( cat <<\_ASBOX
4567## -------------------------------------------------------- ## 4566## -------------------------------------------------------- ##
4568## Report this to "Alistair Crooks agc@netbsd.org c0596823" ## 4567## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ##
4569## -------------------------------------------------------- ## 4568## -------------------------------------------------------- ##
4570_ASBOX 4569_ASBOX
4571 ) | sed "s/^/$as_me: WARNING: /" >&2 4570 ) | sed "s/^/$as_me: WARNING: /" >&2
4572 ;; 4571 ;;
4573esac 4572esac
4574{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4573{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4575$as_echo_n "checking for $ac_header... " >&6; } 4574$as_echo_n "checking for $ac_header... " >&6; }
4576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4577 $as_echo_n "(cached) " >&6 4576 $as_echo_n "(cached) " >&6
4578else 4577else
4579 eval "$as_ac_Header=\$ac_header_preproc" 4578 eval "$as_ac_Header=\$ac_header_preproc"
4580fi 4579fi
4581ac_res=`eval 'as_val=${'$as_ac_Header'} 4580ac_res=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'` 4581 $as_echo "$as_val"'`
4583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4584$as_echo "$ac_res" >&6; } 4583$as_echo "$ac_res" >&6; }
4585 4584
4586fi 4585fi
4587as_val=`eval 'as_val=${'$as_ac_Header'} 4586as_val=`eval 'as_val=${'$as_ac_Header'}
4588 $as_echo "$as_val"'` 4587 $as_echo "$as_val"'`
4589 if test "x$as_val" = x""yes; then 4588 if test "x$as_val" = x""yes; then
4590 cat >>confdefs.h <<_ACEOF 4589 cat >>confdefs.h <<_ACEOF
4591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4590#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592_ACEOF 4591_ACEOF
4593 4592
4594fi 4593fi
4595 4594
4596done 4595done
4597 4596
4598 4597
4599 4598
4600 4599
4601 4600
4602 4601
4603for ac_header in sys/cdefs.h sys/file.h sys/mman.h sys/param.h sys/uio.h 4602for ac_header in sys/cdefs.h sys/file.h sys/mman.h sys/param.h sys/uio.h
4604do 4603do
4605as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4604as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4608$as_echo_n "checking for $ac_header... " >&6; } 4607$as_echo_n "checking for $ac_header... " >&6; }
4609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4610 $as_echo_n "(cached) " >&6 4609 $as_echo_n "(cached) " >&6
4611fi 4610fi
4612ac_res=`eval 'as_val=${'$as_ac_Header'} 4611ac_res=`eval 'as_val=${'$as_ac_Header'}
4613 $as_echo "$as_val"'` 4612 $as_echo "$as_val"'`
4614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4615$as_echo "$ac_res" >&6; } 4614$as_echo "$ac_res" >&6; }
4616else 4615else
4617 # Is the header compilable? 4616 # Is the header compilable?
4618{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4617{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4619$as_echo_n "checking $ac_header usability... " >&6; } 4618$as_echo_n "checking $ac_header usability... " >&6; }
4620cat >conftest.$ac_ext <<_ACEOF 4619cat >conftest.$ac_ext <<_ACEOF
4621/* confdefs.h. */ 4620/* confdefs.h. */
4622_ACEOF 4621_ACEOF
4623cat confdefs.h >>conftest.$ac_ext 4622cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF 4623cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h. */ 4624/* end confdefs.h. */
4626$ac_includes_default 4625$ac_includes_default
4627#include <$ac_header> 4626#include <$ac_header>
4628_ACEOF 4627_ACEOF
4629rm -f conftest.$ac_objext 4628rm -f conftest.$ac_objext
4630if { (ac_try="$ac_compile" 4629if { (ac_try="$ac_compile"
4631case "(($ac_try" in 4630case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;; 4632 *) ac_try_echo=$ac_try;;
4634esac 4633esac
4635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636$as_echo "$ac_try_echo") >&5 4635$as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compile") 2>conftest.er1 4636 (eval "$ac_compile") 2>conftest.er1
4638 ac_status=$? 4637 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err 4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1 4639 rm -f conftest.er1
4641 cat conftest.err >&5 4640 cat conftest.err >&5
4642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && { 4642 (exit $ac_status); } && {
4644 test -z "$ac_c_werror_flag" || 4643 test -z "$ac_c_werror_flag" ||
4645 test ! -s conftest.err 4644 test ! -s conftest.err
4646 } && test -s conftest.$ac_objext; then 4645 } && test -s conftest.$ac_objext; then
4647 ac_header_compiler=yes 4646 ac_header_compiler=yes
4648else 4647else
4649 $as_echo "$as_me: failed program was:" >&5 4648 $as_echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5 4649sed 's/^/| /' conftest.$ac_ext >&5
4651 4650
4652 ac_header_compiler=no 4651 ac_header_compiler=no
4653fi 4652fi
4654 4653
4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4655{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4657$as_echo "$ac_header_compiler" >&6; } 4656$as_echo "$ac_header_compiler" >&6; }
4658 4657
4659# Is the header present? 4658# Is the header present?
4660{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4659{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4661$as_echo_n "checking $ac_header presence... " >&6; } 4660$as_echo_n "checking $ac_header presence... " >&6; }
4662cat >conftest.$ac_ext <<_ACEOF 4661cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */ 4662/* confdefs.h. */
4664_ACEOF 4663_ACEOF
4665cat confdefs.h >>conftest.$ac_ext 4664cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF 4665cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */ 4666/* end confdefs.h. */
4668#include <$ac_header> 4667#include <$ac_header>
4669_ACEOF 4668_ACEOF
4670if { (ac_try="$ac_cpp conftest.$ac_ext" 4669if { (ac_try="$ac_cpp conftest.$ac_ext"
4671case "(($ac_try" in 4670case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;; 4672 *) ac_try_echo=$ac_try;;
4674esac 4673esac
4675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676$as_echo "$ac_try_echo") >&5 4675$as_echo "$ac_try_echo") >&5
4677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4678 ac_status=$? 4677 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err 4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1 4679 rm -f conftest.er1
4681 cat conftest.err >&5 4680 cat conftest.err >&5
4682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } >/dev/null && { 4682 (exit $ac_status); } >/dev/null && {
4684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4685 test ! -s conftest.err 4684 test ! -s conftest.err
4686 }; then 4685 }; then
4687 ac_header_preproc=yes 4686 ac_header_preproc=yes
4688else 4687else
4689 $as_echo "$as_me: failed program was:" >&5 4688 $as_echo "$as_me: failed program was:" >&5
4690sed 's/^/| /' conftest.$ac_ext >&5 4689sed 's/^/| /' conftest.$ac_ext >&5
4691 4690
4692 ac_header_preproc=no 4691 ac_header_preproc=no
4693fi 4692fi
4694 4693
4695rm -f conftest.err conftest.$ac_ext 4694rm -f conftest.err conftest.$ac_ext
4696{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4695{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4697$as_echo "$ac_header_preproc" >&6; } 4696$as_echo "$ac_header_preproc" >&6; }
4698 4697
4699# So? What about this header? 4698# So? What about this header?
4700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4701 yes:no: ) 4700 yes:no: )
4702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4703$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4702$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4705$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4704$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4706 ac_header_preproc=yes 4705 ac_header_preproc=yes
4707 ;; 4706 ;;
4708 no:yes:* ) 4707 no:yes:* )
4709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4710$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4709$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4712$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4711$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4714$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4713$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4716$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4715$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4718$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4717$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4720$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4719$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4721 ( cat <<\_ASBOX 4720 ( cat <<\_ASBOX
4722## -------------------------------------------------------- ## 4721## -------------------------------------------------------- ##
4723## Report this to "Alistair Crooks agc@netbsd.org c0596823" ## 4722## Report this to Alistair Crooks <agc@netbsd.org> c0596823 ##
4724## -------------------------------------------------------- ## 4723## -------------------------------------------------------- ##
4725_ASBOX 4724_ASBOX
4726 ) | sed "s/^/$as_me: WARNING: /" >&2 4725 ) | sed "s/^/$as_me: WARNING: /" >&2
4727 ;; 4726 ;;
4728esac 4727esac
4729{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4728{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4730$as_echo_n "checking for $ac_header... " >&6; } 4729$as_echo_n "checking for $ac_header... " >&6; }
4731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4732 $as_echo_n "(cached) " >&6 4731 $as_echo_n "(cached) " >&6
4733else 4732else
4734 eval "$as_ac_Header=\$ac_header_preproc" 4733 eval "$as_ac_Header=\$ac_header_preproc"
4735fi 4734fi
4736ac_res=`eval 'as_val=${'$as_ac_Header'} 4735ac_res=`eval 'as_val=${'$as_ac_Header'}
4737 $as_echo "$as_val"'` 4736 $as_echo "$as_val"'`
4738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4739$as_echo "$ac_res" >&6; } 4738$as_echo "$ac_res" >&6; }
4740 4739
4741fi 4740fi
4742as_val=`eval 'as_val=${'$as_ac_Header'} 4741as_val=`eval 'as_val=${'$as_ac_Header'}
4743 $as_echo "$as_val"'` 4742 $as_echo "$as_val"'`
4744 if test "x$as_val" = x""yes; then 4743 if test "x$as_val" = x""yes; then
4745 cat >>confdefs.h <<_ACEOF 4744 cat >>confdefs.h <<_ACEOF
4746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747_ACEOF 4746_ACEOF
4748 4747
4749fi 4748fi
4750 4749
4751done 4750done
4752 4751
4753 4752
4754 4753
4755 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 4754 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
4756$as_echo_n "checking for uint8_t... " >&6; } 4755$as_echo_n "checking for uint8_t... " >&6; }
4757if test "${ac_cv_c_uint8_t+set}" = set; then 4756if test "${ac_cv_c_uint8_t+set}" = set; then
4758 $as_echo_n "(cached) " >&6 4757 $as_echo_n "(cached) " >&6
4759else 4758else
4760 ac_cv_c_uint8_t=no 4759 ac_cv_c_uint8_t=no
4761 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ 4760 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
4762 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 4761 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4763 cat >conftest.$ac_ext <<_ACEOF 4762 cat >conftest.$ac_ext <<_ACEOF
4764/* confdefs.h. */ 4763/* confdefs.h. */
4765_ACEOF 4764_ACEOF
4766cat confdefs.h >>conftest.$ac_ext 4765cat confdefs.h >>conftest.$ac_ext
4767cat >>conftest.$ac_ext <<_ACEOF 4766cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h. */ 4767/* end confdefs.h. */
4769$ac_includes_default 4768$ac_includes_default
4770int 4769int
4771main () 4770main ()
4772{ 4771{
4773static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; 4772static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
4774test_array [0] = 0 4773test_array [0] = 0
4775 4774
4776 ; 4775 ;
4777 return 0; 4776 return 0;
4778} 4777}
4779_ACEOF 4778_ACEOF
4780rm -f conftest.$ac_objext 4779rm -f conftest.$ac_objext
4781if { (ac_try="$ac_compile" 4780if { (ac_try="$ac_compile"
4782case "(($ac_try" in 4781case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;; 4783 *) ac_try_echo=$ac_try;;
4785esac 4784esac
4786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787$as_echo "$ac_try_echo") >&5 4786$as_echo "$ac_try_echo") >&5
4788 (eval "$ac_compile") 2>conftest.er1 4787 (eval "$ac_compile") 2>conftest.er1
4789 ac_status=$? 4788 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err 4789 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1 4790 rm -f conftest.er1
4792 cat conftest.err >&5 4791 cat conftest.err >&5
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && { 4793 (exit $ac_status); } && {
4795 test -z "$ac_c_werror_flag" || 4794 test -z "$ac_c_werror_flag" ||
4796 test ! -s conftest.err 4795 test ! -s conftest.err
4797 } && test -s conftest.$ac_objext; then 4796 } && test -s conftest.$ac_objext; then
4798 case $ac_type in 4797 case $ac_type in
4799 uint8_t) ac_cv_c_uint8_t=yes ;; 4798 uint8_t) ac_cv_c_uint8_t=yes ;;
4800 *) ac_cv_c_uint8_t=$ac_type ;; 4799 *) ac_cv_c_uint8_t=$ac_type ;;
4801esac 4800esac
4802 4801
4803else 4802else
4804 $as_echo "$as_me: failed program was:" >&5 4803 $as_echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5 4804sed 's/^/| /' conftest.$ac_ext >&5
4806 4805
4807 4806
4808fi 4807fi
4809 4808
4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 test "$ac_cv_c_uint8_t" != no && break 4810 test "$ac_cv_c_uint8_t" != no && break
4812 done 4811 done
4813fi 4812fi
4814{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 4813{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
4815$as_echo "$ac_cv_c_uint8_t" >&6; } 4814$as_echo "$ac_cv_c_uint8_t" >&6; }
4816 case $ac_cv_c_uint8_t in #( 4815 case $ac_cv_c_uint8_t in #(
4817 no|yes) ;; #( 4816 no|yes) ;; #(
4818 *) 4817 *)
4819 4818
4820cat >>confdefs.h <<\_ACEOF 4819cat >>confdefs.h <<\_ACEOF
4821#define _UINT8_T 1 4820#define _UINT8_T 1
4822_ACEOF 4821_ACEOF
4823 4822
4824 4823
4825cat >>confdefs.h <<_ACEOF 4824cat >>confdefs.h <<_ACEOF
4826#define uint8_t $ac_cv_c_uint8_t 4825#define uint8_t $ac_cv_c_uint8_t
4827_ACEOF 4826_ACEOF
4828;; 4827;;
4829 esac 4828 esac
4830 4829
4831 4830
4832 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 4831 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
4833$as_echo_n "checking for uint16_t... " >&6; } 4832$as_echo_n "checking for uint16_t... " >&6; }
4834if test "${ac_cv_c_uint16_t+set}" = set; then 4833if test "${ac_cv_c_uint16_t+set}" = set; then
4835 $as_echo_n "(cached) " >&6 4834 $as_echo_n "(cached) " >&6
4836else 4835else
4837 ac_cv_c_uint16_t=no 4836 ac_cv_c_uint16_t=no
4838 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ 4837 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
4839 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 4838 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4840 cat >conftest.$ac_ext <<_ACEOF 4839 cat >conftest.$ac_ext <<_ACEOF
4841/* confdefs.h. */ 4840/* confdefs.h. */
4842_ACEOF 4841_ACEOF
4843cat confdefs.h >>conftest.$ac_ext 4842cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF 4843cat >>conftest.$ac_ext <<_ACEOF
4845/* end confdefs.h. */ 4844/* end confdefs.h. */
4846$ac_includes_default 4845$ac_includes_default
4847int 4846int
4848main () 4847main ()
4849{ 4848{
4850static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; 4849static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
4851test_array [0] = 0 4850test_array [0] = 0
4852 4851
4853 ; 4852 ;
4854 return 0; 4853 return 0;
4855} 4854}
4856_ACEOF 4855_ACEOF
4857rm -f conftest.$ac_objext 4856rm -f conftest.$ac_objext
4858if { (ac_try="$ac_compile" 4857if { (ac_try="$ac_compile"
4859case "(($ac_try" in 4858case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;; 4860 *) ac_try_echo=$ac_try;;
4862esac 4861esac
4863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4864$as_echo "$ac_try_echo") >&5 4863$as_echo "$ac_try_echo") >&5
4865 (eval "$ac_compile") 2>conftest.er1 4864 (eval "$ac_compile") 2>conftest.er1
4866 ac_status=$? 4865 ac_status=$?
4867 grep -v '^ *+' conftest.er1 >conftest.err 4866 grep -v '^ *+' conftest.er1 >conftest.err
4868 rm -f conftest.er1 4867 rm -f conftest.er1
4869 cat conftest.err >&5 4868 cat conftest.err >&5
4870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } && { 4870 (exit $ac_status); } && {
4872 test -z "$ac_c_werror_flag" || 4871 test -z "$ac_c_werror_flag" ||
4873 test ! -s conftest.err 4872 test ! -s conftest.err
4874 } && test -s conftest.$ac_objext; then 4873 } && test -s conftest.$ac_objext; then
4875 case $ac_type in 4874 case $ac_type in
4876 uint16_t) ac_cv_c_uint16_t=yes ;; 4875 uint16_t) ac_cv_c_uint16_t=yes ;;
4877 *) ac_cv_c_uint16_t=$ac_type ;; 4876 *) ac_cv_c_uint16_t=$ac_type ;;
4878esac 4877esac
4879 4878
4880else 4879else
4881 $as_echo "$as_me: failed program was:" >&5 4880 $as_echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5 4881sed 's/^/| /' conftest.$ac_ext >&5
4883 4882
4884 4883
4885fi 4884fi
4886 4885
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 test "$ac_cv_c_uint16_t" != no && break 4887 test "$ac_cv_c_uint16_t" != no && break
4889 done 4888 done
4890fi 4889fi
4891{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 4890{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
4892$as_echo "$ac_cv_c_uint16_t" >&6; } 4891$as_echo "$ac_cv_c_uint16_t" >&6; }
4893 case $ac_cv_c_uint16_t in #( 4892 case $ac_cv_c_uint16_t in #(
4894 no|yes) ;; #( 4893 no|yes) ;; #(
4895 *) 4894 *)
4896 4895
4897 4896
4898cat >>confdefs.h <<_ACEOF 4897cat >>confdefs.h <<_ACEOF
4899#define uint16_t $ac_cv_c_uint16_t 4898#define uint16_t $ac_cv_c_uint16_t
4900_ACEOF 4899_ACEOF
4901;; 4900;;
4902 esac 4901 esac
4903 4902
4904 4903
4905 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 4904 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
4906$as_echo_n "checking for uint32_t... " >&6; } 4905$as_echo_n "checking for uint32_t... " >&6; }
4907if test "${ac_cv_c_uint32_t+set}" = set; then 4906if test "${ac_cv_c_uint32_t+set}" = set; then
4908 $as_echo_n "(cached) " >&6 4907 $as_echo_n "(cached) " >&6
4909else 4908else
4910 ac_cv_c_uint32_t=no 4909 ac_cv_c_uint32_t=no
4911 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ 4910 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
4912 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 4911 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4913 cat >conftest.$ac_ext <<_ACEOF 4912 cat >conftest.$ac_ext <<_ACEOF
4914/* confdefs.h. */ 4913/* confdefs.h. */
4915_ACEOF 4914_ACEOF
4916cat confdefs.h >>conftest.$ac_ext 4915cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF 4916cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */ 4917/* end confdefs.h. */
4919$ac_includes_default 4918$ac_includes_default
4920int 4919int
4921main () 4920main ()
4922{ 4921{
4923static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; 4922static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
4924test_array [0] = 0 4923test_array [0] = 0
4925 4924
4926 ; 4925 ;
4927 return 0; 4926 return 0;
4928} 4927}
4929_ACEOF 4928_ACEOF
4930rm -f conftest.$ac_objext 4929rm -f conftest.$ac_objext
4931if { (ac_try="$ac_compile" 4930if { (ac_try="$ac_compile"
4932case "(($ac_try" in 4931case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;; 4933 *) ac_try_echo=$ac_try;;
4935esac 4934esac
4936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4937$as_echo "$ac_try_echo") >&5 4936$as_echo "$ac_try_echo") >&5
4938 (eval "$ac_compile") 2>conftest.er1 4937 (eval "$ac_compile") 2>conftest.er1
4939 ac_status=$? 4938 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err 4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1 4940 rm -f conftest.er1
4942 cat conftest.err >&5 4941 cat conftest.err >&5
4943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { 4943 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" || 4944 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err 4945 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then 4946 } && test -s conftest.$ac_objext; then
4948 case $ac_type in 4947 case $ac_type in
4949 uint32_t) ac_cv_c_uint32_t=yes ;; 4948 uint32_t) ac_cv_c_uint32_t=yes ;;
4950 *) ac_cv_c_uint32_t=$ac_type ;; 4949 *) ac_cv_c_uint32_t=$ac_type ;;
4951esac 4950esac
4952 4951
4953else 4952else
4954 $as_echo "$as_me: failed program was:" >&5 4953 $as_echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5 4954sed 's/^/| /' conftest.$ac_ext >&5
4956 4955
4957 4956
4958fi 4957fi
4959 4958
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 test "$ac_cv_c_uint32_t" != no && break 4960 test "$ac_cv_c_uint32_t" != no && break
4962 done 4961 done
4963fi 4962fi
4964{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 4963{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
4965$as_echo "$ac_cv_c_uint32_t" >&6; } 4964$as_echo "$ac_cv_c_uint32_t" >&6; }
4966 case $ac_cv_c_uint32_t in #( 4965 case $ac_cv_c_uint32_t in #(
4967 no|yes) ;; #( 4966 no|yes) ;; #(
4968 *) 4967 *)
4969 4968
4970cat >>confdefs.h <<\_ACEOF 4969cat >>confdefs.h <<\_ACEOF
4971#define _UINT32_T 1 4970#define _UINT32_T 1
4972_ACEOF 4971_ACEOF
4973 4972
4974 4973
4975cat >>confdefs.h <<_ACEOF 4974cat >>confdefs.h <<_ACEOF
4976#define uint32_t $ac_cv_c_uint32_t 4975#define uint32_t $ac_cv_c_uint32_t
4977_ACEOF 4976_ACEOF
4978;; 4977;;
4979 esac 4978 esac
4980 4979
4981 4980
4982 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 4981 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
4983$as_echo_n "checking for uint64_t... " >&6; } 4982$as_echo_n "checking for uint64_t... " >&6; }
4984if test "${ac_cv_c_uint64_t+set}" = set; then 4983if test "${ac_cv_c_uint64_t+set}" = set; then
4985 $as_echo_n "(cached) " >&6 4984 $as_echo_n "(cached) " >&6
4986else 4985else
4987 ac_cv_c_uint64_t=no 4986 ac_cv_c_uint64_t=no
4988 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ 4987 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
4989 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 4988 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4990 cat >conftest.$ac_ext <<_ACEOF 4989 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */ 4990/* confdefs.h. */
4992_ACEOF 4991_ACEOF
4993cat confdefs.h >>conftest.$ac_ext 4992cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF 4993cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */ 4994/* end confdefs.h. */
4996$ac_includes_default 4995$ac_includes_default
4997int 4996int
4998main () 4997main ()
4999{ 4998{
5000static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; 4999static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
5001test_array [0] = 0 5000test_array [0] = 0
5002 5001
5003 ; 5002 ;
5004 return 0; 5003 return 0;
5005} 5004}
5006_ACEOF 5005_ACEOF
5007rm -f conftest.$ac_objext 5006rm -f conftest.$ac_objext
5008if { (ac_try="$ac_compile" 5007if { (ac_try="$ac_compile"
5009case "(($ac_try" in 5008case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;; 5010 *) ac_try_echo=$ac_try;;
5012esac 5011esac
5013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014$as_echo "$ac_try_echo") >&5 5013$as_echo "$ac_try_echo") >&5
5015 (eval "$ac_compile") 2>conftest.er1 5014 (eval "$ac_compile") 2>conftest.er1
5016 ac_status=$? 5015 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err 5016 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1 5017 rm -f conftest.er1
5019 cat conftest.err >&5 5018 cat conftest.err >&5
5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } && { 5020 (exit $ac_status); } && {
5022 test -z "$ac_c_werror_flag" || 5021 test -z "$ac_c_werror_flag" ||
5023 test ! -s conftest.err 5022 test ! -s conftest.err
5024 } && test -s conftest.$ac_objext; then 5023 } && test -s conftest.$ac_objext; then
5025 case $ac_type in 5024 case $ac_type in
5026 uint64_t) ac_cv_c_uint64_t=yes ;; 5025 uint64_t) ac_cv_c_uint64_t=yes ;;
5027 *) ac_cv_c_uint64_t=$ac_type ;; 5026 *) ac_cv_c_uint64_t=$ac_type ;;
5028esac 5027esac
5029 5028
5030else 5029else
5031 $as_echo "$as_me: failed program was:" >&5 5030 $as_echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5 5031sed 's/^/| /' conftest.$ac_ext >&5
5033 5032
5034 5033
5035fi 5034fi
5036 5035
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 test "$ac_cv_c_uint64_t" != no && break 5037 test "$ac_cv_c_uint64_t" != no && break
5039 done 5038 done
5040fi 5039fi
5041{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 5040{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
5042$as_echo "$ac_cv_c_uint64_t" >&6; } 5041$as_echo "$ac_cv_c_uint64_t" >&6; }
5043 case $ac_cv_c_uint64_t in #( 5042 case $ac_cv_c_uint64_t in #(
5044 no|yes) ;; #( 5043 no|yes) ;; #(
5045 *) 5044 *)
5046 5045
5047cat >>confdefs.h <<\_ACEOF 5046cat >>confdefs.h <<\_ACEOF
5048#define _UINT64_T 1 5047#define _UINT64_T 1
5049_ACEOF 5048_ACEOF
5050 5049
5051 5050
5052cat >>confdefs.h <<_ACEOF 5051cat >>confdefs.h <<_ACEOF
5053#define uint64_t $ac_cv_c_uint64_t 5052#define uint64_t $ac_cv_c_uint64_t
5054_ACEOF 5053_ACEOF
5055;; 5054;;
5056 esac 5055 esac
5057 5056
5058 5057
5059# check for libraries 5058# check for libraries
5060 5059
5061{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 5060{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
5062$as_echo_n "checking for gzopen in -lz... " >&6; } 5061$as_echo_n "checking for gzopen in -lz... " >&6; }
5063if test "${ac_cv_lib_z_gzopen+set}" = set; then 5062if test "${ac_cv_lib_z_gzopen+set}" = set; then
5064 $as_echo_n "(cached) " >&6 5063 $as_echo_n "(cached) " >&6
5065else 5064else
5066 ac_check_lib_save_LIBS=$LIBS 5065 ac_check_lib_save_LIBS=$LIBS
5067LIBS="-lz $LIBS" 5066LIBS="-lz $LIBS"
5068cat >conftest.$ac_ext <<_ACEOF 5067cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h. */ 5068/* confdefs.h. */
5070_ACEOF 5069_ACEOF
5071cat confdefs.h >>conftest.$ac_ext 5070cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF 5071cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h. */ 5072/* end confdefs.h. */
5074 5073
5075/* Override any GCC internal prototype to avoid an error. 5074/* Override any GCC internal prototype to avoid an error.
5076 Use char because int might match the return type of a GCC 5075 Use char because int might match the return type of a GCC
5077 builtin and then its argument prototype would still apply. */ 5076 builtin and then its argument prototype would still apply. */
5078#ifdef __cplusplus 5077#ifdef __cplusplus
5079extern "C" 5078extern "C"
5080#endif 5079#endif
5081char gzopen (); 5080char gzopen ();
5082int 5081int
5083main () 5082main ()
5084{ 5083{
5085return gzopen (); 5084return gzopen ();
5086 ; 5085 ;
5087 return 0; 5086 return 0;
5088} 5087}
5089_ACEOF 5088_ACEOF
5090rm -f conftest.$ac_objext conftest$ac_exeext 5089rm -f conftest.$ac_objext conftest$ac_exeext
5091if { (ac_try="$ac_link" 5090if { (ac_try="$ac_link"
5092case "(($ac_try" in 5091case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;; 5093 *) ac_try_echo=$ac_try;;
5095esac 5094esac
5096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5097$as_echo "$ac_try_echo") >&5 5096$as_echo "$ac_try_echo") >&5
5098 (eval "$ac_link") 2>conftest.er1 5097 (eval "$ac_link") 2>conftest.er1
5099 ac_status=$? 5098 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err 5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1 5100 rm -f conftest.er1
5102 cat conftest.err >&5 5101 cat conftest.err >&5
5103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && { 5103 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" || 5104 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err 5105 test ! -s conftest.err
5107 } && test -s conftest$ac_exeext && { 5106 } && test -s conftest$ac_exeext && {
5108 test "$cross_compiling" = yes || 5107 test "$cross_compiling" = yes ||
5109 $as_test_x conftest$ac_exeext 5108 $as_test_x conftest$ac_exeext
5110 }; then 5109 }; then
5111 ac_cv_lib_z_gzopen=yes 5110 ac_cv_lib_z_gzopen=yes
5112else 5111else
5113 $as_echo "$as_me: failed program was:" >&5 5112 $as_echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5 5113sed 's/^/| /' conftest.$ac_ext >&5
5115 5114
5116 ac_cv_lib_z_gzopen=no 5115 ac_cv_lib_z_gzopen=no
5117fi 5116fi
5118 5117
5119rm -rf conftest.dSYM 5118rm -rf conftest.dSYM
5120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5121 conftest$ac_exeext conftest.$ac_ext 5120 conftest$ac_exeext conftest.$ac_ext
5122LIBS=$ac_check_lib_save_LIBS 5121LIBS=$ac_check_lib_save_LIBS
5123fi 5122fi
5124{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 5123{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
5125$as_echo "$ac_cv_lib_z_gzopen" >&6; } 5124$as_echo "$ac_cv_lib_z_gzopen" >&6; }
5126if test "x$ac_cv_lib_z_gzopen" = x""yes; then 5125if test "x$ac_cv_lib_z_gzopen" = x""yes; then
5127 cat >>confdefs.h <<_ACEOF 5126 cat >>confdefs.h <<_ACEOF
5128#define HAVE_LIBZ 1 5127#define HAVE_LIBZ 1
5129_ACEOF 5128_ACEOF
5130 5129
5131 LIBS="-lz $LIBS" 5130 LIBS="-lz $LIBS"
5132 5131
5133fi 5132fi
5134 5133
5135 5134
5136{ $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5 5135{ $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
5137$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } 5136$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
5138if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then 5137if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
5139 $as_echo_n "(cached) " >&6 5138 $as_echo_n "(cached) " >&6
5140else 5139else
5141 ac_check_lib_save_LIBS=$LIBS 5140 ac_check_lib_save_LIBS=$LIBS
5142LIBS="-lbz2 $LIBS" 5141LIBS="-lbz2 $LIBS"
5143cat >conftest.$ac_ext <<_ACEOF 5142cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h. */ 5143/* confdefs.h. */
5145_ACEOF 5144_ACEOF
5146cat confdefs.h >>conftest.$ac_ext 5145cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF 5146cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h. */ 5147/* end confdefs.h. */
5149 5148
5150/* Override any GCC internal prototype to avoid an error. 5149/* Override any GCC internal prototype to avoid an error.
5151 Use char because int might match the return type of a GCC 5150 Use char because int might match the return type of a GCC
5152 builtin and then its argument prototype would still apply. */ 5151 builtin and then its argument prototype would still apply. */
5153#ifdef __cplusplus 5152#ifdef __cplusplus
5154extern "C" 5153extern "C"
5155#endif 5154#endif
5156char BZ2_bzDecompress (); 5155char BZ2_bzDecompress ();
5157int 5156int
5158main () 5157main ()
5159{ 5158{
5160return BZ2_bzDecompress (); 5159return BZ2_bzDecompress ();
5161 ; 5160 ;
5162 return 0; 5161 return 0;
5163} 5162}
5164_ACEOF 5163_ACEOF
5165rm -f conftest.$ac_objext conftest$ac_exeext 5164rm -f conftest.$ac_objext conftest$ac_exeext
5166if { (ac_try="$ac_link" 5165if { (ac_try="$ac_link"
5167case "(($ac_try" in 5166case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;; 5168 *) ac_try_echo=$ac_try;;
5170esac 5169esac
5171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5172$as_echo "$ac_try_echo") >&5 5171$as_echo "$ac_try_echo") >&5
5173 (eval "$ac_link") 2>conftest.er1 5172 (eval "$ac_link") 2>conftest.er1
5174 ac_status=$? 5173 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err 5174 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1 5175 rm -f conftest.er1
5177 cat conftest.err >&5 5176 cat conftest.err >&5
5178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && { 5178 (exit $ac_status); } && {
5180 test -z "$ac_c_werror_flag" || 5179 test -z "$ac_c_werror_flag" ||
5181 test ! -s conftest.err 5180 test ! -s conftest.err
5182 } && test -s conftest$ac_exeext && { 5181 } && test -s conftest$ac_exeext && {
5183 test "$cross_compiling" = yes || 5182 test "$cross_compiling" = yes ||
5184 $as_test_x conftest$ac_exeext 5183 $as_test_x conftest$ac_exeext
5185 }; then 5184 }; then
5186 ac_cv_lib_bz2_BZ2_bzDecompress=yes 5185 ac_cv_lib_bz2_BZ2_bzDecompress=yes
5187else 5186else
5188 $as_echo "$as_me: failed program was:" >&5 5187 $as_echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5 5188sed 's/^/| /' conftest.$ac_ext >&5
5190 5189
5191 ac_cv_lib_bz2_BZ2_bzDecompress=no 5190 ac_cv_lib_bz2_BZ2_bzDecompress=no
5192fi 5191fi
5193 5192
5194rm -rf conftest.dSYM 5193rm -rf conftest.dSYM
5195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5196 conftest$ac_exeext conftest.$ac_ext 5195 conftest$ac_exeext conftest.$ac_ext
5197LIBS=$ac_check_lib_save_LIBS 5196LIBS=$ac_check_lib_save_LIBS
5198fi 5197fi
5199{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 5198{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
5200$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } 5199$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
5201if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then 5200if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
5202 cat >>confdefs.h <<_ACEOF 5201 cat >>confdefs.h <<_ACEOF
5203#define HAVE_LIBBZ2 1 5202#define HAVE_LIBBZ2 1
5204_ACEOF 5203_ACEOF
5205 5204
5206 LIBS="-lbz2 $LIBS" 5205 LIBS="-lbz2 $LIBS"
5207 5206
5208fi 5207fi
5209 5208
5210 5209
5211{ $as_echo "$as_me:$LINENO: checking for RSA_public_encrypt in -lcrypto" >&5 5210{ $as_echo "$as_me:$LINENO: checking for RSA_public_encrypt in -lcrypto" >&5
5212$as_echo_n "checking for RSA_public_encrypt in -lcrypto... " >&6; } 5211$as_echo_n "checking for RSA_public_encrypt in -lcrypto... " >&6; }
5213if test "${ac_cv_lib_crypto_RSA_public_encrypt+set}" = set; then 5212if test "${ac_cv_lib_crypto_RSA_public_encrypt+set}" = set; then
5214 $as_echo_n "(cached) " >&6 5213 $as_echo_n "(cached) " >&6
5215else 5214else
5216 ac_check_lib_save_LIBS=$LIBS 5215 ac_check_lib_save_LIBS=$LIBS
5217LIBS="-lcrypto $LIBS" 5216LIBS="-lcrypto $LIBS"
5218cat >conftest.$ac_ext <<_ACEOF 5217cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h. */ 5218/* confdefs.h. */
5220_ACEOF 5219_ACEOF
5221cat confdefs.h >>conftest.$ac_ext 5220cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF 5221cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */ 5222/* end confdefs.h. */
5224 5223
5225/* Override any GCC internal prototype to avoid an error. 5224/* Override any GCC internal prototype to avoid an error.
5226 Use char because int might match the return type of a GCC 5225 Use char because int might match the return type of a GCC
5227 builtin and then its argument prototype would still apply. */ 5226 builtin and then its argument prototype would still apply. */
5228#ifdef __cplusplus 5227#ifdef __cplusplus
5229extern "C" 5228extern "C"
5230#endif 5229#endif
5231char RSA_public_encrypt (); 5230char RSA_public_encrypt ();
5232int 5231int
5233main () 5232main ()
5234{ 5233{
5235return RSA_public_encrypt (); 5234return RSA_public_encrypt ();
5236 ; 5235 ;
5237 return 0; 5236 return 0;
5238} 5237}
5239_ACEOF 5238_ACEOF
5240rm -f conftest.$ac_objext conftest$ac_exeext 5239rm -f conftest.$ac_objext conftest$ac_exeext
5241if { (ac_try="$ac_link" 5240if { (ac_try="$ac_link"
5242case "(($ac_try" in 5241case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;; 5243 *) ac_try_echo=$ac_try;;
5245esac 5244esac
5246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5247$as_echo "$ac_try_echo") >&5 5246$as_echo "$ac_try_echo") >&5
5248 (eval "$ac_link") 2>conftest.er1 5247 (eval "$ac_link") 2>conftest.er1
5249 ac_status=$? 5248 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err 5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1 5250 rm -f conftest.er1
5252 cat conftest.err >&5 5251 cat conftest.err >&5
5253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } && { 5253 (exit $ac_status); } && {
5255 test -z "$ac_c_werror_flag" || 5254 test -z "$ac_c_werror_flag" ||
5256 test ! -s conftest.err 5255 test ! -s conftest.err
5257 } && test -s conftest$ac_exeext && { 5256 } && test -s conftest$ac_exeext && {
5258 test "$cross_compiling" = yes || 5257 test "$cross_compiling" = yes ||
5259 $as_test_x conftest$ac_exeext 5258 $as_test_x conftest$ac_exeext
5260 }; then 5259 }; then
5261 ac_cv_lib_crypto_RSA_public_encrypt=yes 5260 ac_cv_lib_crypto_RSA_public_encrypt=yes
5262else 5261else
5263 $as_echo "$as_me: failed program was:" >&5 5262 $as_echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5 5263sed 's/^/| /' conftest.$ac_ext >&5
5265 5264
5266 ac_cv_lib_crypto_RSA_public_encrypt=no 5265 ac_cv_lib_crypto_RSA_public_encrypt=no
5267fi 5266fi
5268 5267
5269rm -rf conftest.dSYM 5268rm -rf conftest.dSYM
5270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5271 conftest$ac_exeext conftest.$ac_ext 5270 conftest$ac_exeext conftest.$ac_ext
5272LIBS=$ac_check_lib_save_LIBS 5271LIBS=$ac_check_lib_save_LIBS
5273fi 5272fi
5274{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_public_encrypt" >&5 5273{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_public_encrypt" >&5
5275$as_echo "$ac_cv_lib_crypto_RSA_public_encrypt" >&6; } 5274$as_echo "$ac_cv_lib_crypto_RSA_public_encrypt" >&6; }
5276if test "x$ac_cv_lib_crypto_RSA_public_encrypt" = x""yes; then 5275if test "x$ac_cv_lib_crypto_RSA_public_encrypt" = x""yes; then
5277 cat >>confdefs.h <<_ACEOF 5276 cat >>confdefs.h <<_ACEOF
5278#define HAVE_LIBCRYPTO 1 5277#define HAVE_LIBCRYPTO 1
5279_ACEOF 5278_ACEOF
5280 5279
5281 LIBS="-lcrypto $LIBS" 5280 LIBS="-lcrypto $LIBS"
5282 5281
5283fi 5282fi
5284 5283
5285 5284
5286# Checks for library functions. 5285# Checks for library functions.
5287 5286
5288# write it out 5287# write it out
5289ac_config_files="$ac_config_files Makefile src/lib/Makefile src/bin/Makefile" 5288ac_config_files="$ac_config_files Makefile src/lib/Makefile src/bin/Makefile"
5290 5289
5291cat >confcache <<\_ACEOF 5290cat >confcache <<\_ACEOF
5292# This file is a shell script that caches the results of configure 5291# This file is a shell script that caches the results of configure
5293# tests run on this system so they can be shared between configure 5292# tests run on this system so they can be shared between configure
5294# scripts and configure runs, see configure's option --config-cache. 5293# scripts and configure runs, see configure's option --config-cache.
5295# It is not useful on other systems. If it contains results you don't 5294# It is not useful on other systems. If it contains results you don't
5296# want to keep, you may remove or edit it. 5295# want to keep, you may remove or edit it.
5297# 5296#
5298# config.status only pays attention to the cache file if you give it 5297# config.status only pays attention to the cache file if you give it
5299# the --recheck option to rerun configure. 5298# the --recheck option to rerun configure.
5300# 5299#
5301# `ac_cv_env_foo' variables (set or unset) will be overridden when 5300# `ac_cv_env_foo' variables (set or unset) will be overridden when
5302# loading this file, other *unset* `ac_cv_foo' will be assigned the 5301# loading this file, other *unset* `ac_cv_foo' will be assigned the
5303# following values. 5302# following values.
5304 5303
5305_ACEOF 5304_ACEOF
5306 5305
5307# The following way of writing the cache mishandles newlines in values, 5306# The following way of writing the cache mishandles newlines in values,
5308# but we know of no workaround that is simple, portable, and efficient. 5307# but we know of no workaround that is simple, portable, and efficient.
5309# So, we kill variables containing newlines. 5308# So, we kill variables containing newlines.
5310# Ultrix sh set writes to stderr and can't be redirected directly, 5309# Ultrix sh set writes to stderr and can't be redirected directly,
5311# and sets the high bit in the cache file unless we assign to the vars. 5310# and sets the high bit in the cache file unless we assign to the vars.
5312( 5311(
5313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5314 eval ac_val=\$$ac_var 5313 eval ac_val=\$$ac_var
5315 case $ac_val in #( 5314 case $ac_val in #(
5316 *${as_nl}*) 5315 *${as_nl}*)
5317 case $ac_var in #( 5316 case $ac_var in #(
5318 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 5317 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5319$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5320 esac 5319 esac
5321 case $ac_var in #( 5320 case $ac_var in #(
5322 _ | IFS | as_nl) ;; #( 5321 _ | IFS | as_nl) ;; #(
5323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5324 *) $as_unset $ac_var ;; 5323 *) $as_unset $ac_var ;;
5325 esac ;; 5324 esac ;;
5326 esac 5325 esac
5327 done 5326 done
5328 5327
5329 (set) 2>&1 | 5328 (set) 2>&1 |
5330 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5329 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5331 *${as_nl}ac_space=\ *) 5330 *${as_nl}ac_space=\ *)
5332 # `set' does not quote correctly, so add quotes (double-quote 5331 # `set' does not quote correctly, so add quotes (double-quote
5333 # substitution turns \\\\ into \\, and sed turns \\ into \). 5332 # substitution turns \\\\ into \\, and sed turns \\ into \).
5334 sed -n \ 5333 sed -n \
5335 "s/'/'\\\\''/g; 5334 "s/'/'\\\\''/g;
5336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5337 ;; #( 5336 ;; #(
5338 *) 5337 *)
5339 # `set' quotes correctly as required by POSIX, so do not add quotes. 5338 # `set' quotes correctly as required by POSIX, so do not add quotes.
5340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5341 ;; 5340 ;;
5342 esac | 5341 esac |
5343 sort 5342 sort
5344) | 5343) |
5345 sed ' 5344 sed '
5346 /^ac_cv_env_/b end 5345 /^ac_cv_env_/b end
5347 t clear 5346 t clear
5348 :clear 5347 :clear
5349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5350 t end 5349 t end
5351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5350 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5352 :end' >>confcache 5351 :end' >>confcache
5353if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5352if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5354 if test -w "$cache_file"; then 5353 if test -w "$cache_file"; then
5355 test "x$cache_file" != "x/dev/null" && 5354 test "x$cache_file" != "x/dev/null" &&
5356 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 5355 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5357$as_echo "$as_me: updating cache $cache_file" >&6;} 5356$as_echo "$as_me: updating cache $cache_file" >&6;}
5358 cat confcache >$cache_file 5357 cat confcache >$cache_file
5359 else 5358 else
5360 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 5359 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5361$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5360$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5362 fi 5361 fi
5363fi 5362fi
5364rm -f confcache 5363rm -f confcache
5365 5364
5366test "x$prefix" = xNONE && prefix=$ac_default_prefix 5365test "x$prefix" = xNONE && prefix=$ac_default_prefix
5367# Let make expand exec_prefix. 5366# Let make expand exec_prefix.
5368test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5367test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5369 5368
5370DEFS=-DHAVE_CONFIG_H 5369DEFS=-DHAVE_CONFIG_H
5371 5370
5372ac_libobjs= 5371ac_libobjs=
5373ac_ltlibobjs= 5372ac_ltlibobjs=
5374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5373for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5375 # 1. Remove the extension, and $U if already installed. 5374 # 1. Remove the extension, and $U if already installed.
5376 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5377 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5376 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5378 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5379 # will be set to the directory where LIBOBJS objects are built. 5378 # will be set to the directory where LIBOBJS objects are built.
5380 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5379 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5381 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 5380 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5382done 5381done
5383LIBOBJS=$ac_libobjs 5382LIBOBJS=$ac_libobjs
5384 5383
5385LTLIBOBJS=$ac_ltlibobjs 5384LTLIBOBJS=$ac_ltlibobjs
5386 5385
5387 5386
5388 5387
5389: ${CONFIG_STATUS=./config.status} 5388: ${CONFIG_STATUS=./config.status}
5390ac_write_fail=0 5389ac_write_fail=0
5391ac_clean_files_save=$ac_clean_files 5390ac_clean_files_save=$ac_clean_files
5392ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5391ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5393{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5392{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5394$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5393$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5395cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5394cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5396#! $SHELL 5395#! $SHELL
5397# Generated by $as_me. 5396# Generated by $as_me.
5398# Run this file to recreate the current configuration. 5397# Run this file to recreate the current configuration.
5399# Compiler output produced by configure, useful for debugging 5398# Compiler output produced by configure, useful for debugging
5400# configure, is in config.log if it exists. 5399# configure, is in config.log if it exists.
5401 5400
5402debug=false 5401debug=false
5403ac_cs_recheck=false 5402ac_cs_recheck=false
5404ac_cs_silent=false 5403ac_cs_silent=false
5405SHELL=\${CONFIG_SHELL-$SHELL} 5404SHELL=\${CONFIG_SHELL-$SHELL}
5406_ACEOF 5405_ACEOF
5407 5406
5408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5409## --------------------- ## 5408## --------------------- ##
5410## M4sh Initialization. ## 5409## M4sh Initialization. ##
5411## --------------------- ## 5410## --------------------- ##
5412 5411
5413# Be more Bourne compatible 5412# Be more Bourne compatible
5414DUALCASE=1; export DUALCASE # for MKS sh 5413DUALCASE=1; export DUALCASE # for MKS sh
5415if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5414if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5416 emulate sh 5415 emulate sh
5417 NULLCMD=: 5416 NULLCMD=:
5418 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5419 # is contrary to our usage. Disable this feature. 5418 # is contrary to our usage. Disable this feature.
5420 alias -g '${1+"$@"}'='"$@"' 5419 alias -g '${1+"$@"}'='"$@"'
5421 setopt NO_GLOB_SUBST 5420 setopt NO_GLOB_SUBST
5422else 5421else
5423 case `(set -o) 2>/dev/null` in 5422 case `(set -o) 2>/dev/null` in
5424 *posix*) set -o posix ;; 5423 *posix*) set -o posix ;;
5425esac 5424esac
5426 5425
5427fi 5426fi
5428 5427
5429 5428
5430 5429
5431 5430
5432# PATH needs CR 5431# PATH needs CR
5433# Avoid depending upon Character Ranges. 5432# Avoid depending upon Character Ranges.
5434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5437as_cr_digits='0123456789' 5436as_cr_digits='0123456789'
5438as_cr_alnum=$as_cr_Letters$as_cr_digits 5437as_cr_alnum=$as_cr_Letters$as_cr_digits
5439 5438
5440as_nl=' 5439as_nl='
5441' 5440'
5442export as_nl 5441export as_nl
5443# Printing a long string crashes Solaris 7 /usr/bin/printf. 5442# Printing a long string crashes Solaris 7 /usr/bin/printf.
5444as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5443as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5445as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5444as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5446as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5445as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5447if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5446if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5448 as_echo='printf %s\n' 5447 as_echo='printf %s\n'
5449 as_echo_n='printf %s' 5448 as_echo_n='printf %s'
5450else 5449else
5451 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5452 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5453 as_echo_n='/usr/ucb/echo -n' 5452 as_echo_n='/usr/ucb/echo -n'
5454 else 5453 else
5455 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5456 as_echo_n_body='eval 5455 as_echo_n_body='eval
5457 arg=$1; 5456 arg=$1;
5458 case $arg in 5457 case $arg in
5459 *"$as_nl"*) 5458 *"$as_nl"*)
5460 expr "X$arg" : "X\\(.*\\)$as_nl"; 5459 expr "X$arg" : "X\\(.*\\)$as_nl";
5461 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5462 esac; 5461 esac;
5463 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5464 ' 5463 '
5465 export as_echo_n_body 5464 export as_echo_n_body
5466 as_echo_n='sh -c $as_echo_n_body as_echo' 5465 as_echo_n='sh -c $as_echo_n_body as_echo'
5467 fi 5466 fi
5468 export as_echo_body 5467 export as_echo_body
5469 as_echo='sh -c $as_echo_body as_echo' 5468 as_echo='sh -c $as_echo_body as_echo'
5470fi 5469fi
5471 5470
5472# The user is always right. 5471# The user is always right.
5473if test "${PATH_SEPARATOR+set}" != set; then 5472if test "${PATH_SEPARATOR+set}" != set; then
5474 PATH_SEPARATOR=: 5473 PATH_SEPARATOR=:
5475 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5476 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5477 PATH_SEPARATOR=';' 5476 PATH_SEPARATOR=';'
5478 } 5477 }
5479fi 5478fi
5480 5479
5481# Support unset when possible. 5480# Support unset when possible.
5482if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5481if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5483 as_unset=unset 5482 as_unset=unset
5484else 5483else
5485 as_unset=false 5484 as_unset=false
5486fi 5485fi
5487 5486
5488 5487
5489# IFS 5488# IFS
5490# We need space, tab and new line, in precisely that order. Quoting is 5489# We need space, tab and new line, in precisely that order. Quoting is
5491# there to prevent editors from complaining about space-tab. 5490# there to prevent editors from complaining about space-tab.
5492# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5491# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5493# splitting by setting IFS to empty value.) 5492# splitting by setting IFS to empty value.)
5494IFS=" "" $as_nl" 5493IFS=" "" $as_nl"
5495 5494
5496# Find who we are. Look in the path if we contain no directory separator. 5495# Find who we are. Look in the path if we contain no directory separator.
5497case $0 in 5496case $0 in
5498 *[\\/]* ) as_myself=$0 ;; 5497 *[\\/]* ) as_myself=$0 ;;
5499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500for as_dir in $PATH 5499for as_dir in $PATH
5501do 5500do
5502 IFS=$as_save_IFS 5501 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=. 5502 test -z "$as_dir" && as_dir=.
5504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5505done 5504done
5506IFS=$as_save_IFS 5505IFS=$as_save_IFS
5507 5506
5508 ;; 5507 ;;
5509esac 5508esac
5510# We did not find ourselves, most probably we were run as `sh COMMAND' 5509# We did not find ourselves, most probably we were run as `sh COMMAND'
5511# in which case we are not to be found in the path. 5510# in which case we are not to be found in the path.
5512if test "x$as_myself" = x; then 5511if test "x$as_myself" = x; then
5513 as_myself=$0 5512 as_myself=$0
5514fi 5513fi
5515if test ! -f "$as_myself"; then 5514if test ! -f "$as_myself"; then
5516 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5515 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5517 { (exit 1); exit 1; } 5516 { (exit 1); exit 1; }
5518fi 5517fi
5519 5518
5520# Work around bugs in pre-3.0 UWIN ksh. 5519# Work around bugs in pre-3.0 UWIN ksh.
5521for as_var in ENV MAIL MAILPATH 5520for as_var in ENV MAIL MAILPATH
5522do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5521do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5523done 5522done
5524PS1='$ ' 5523PS1='$ '
5525PS2='> ' 5524PS2='> '
5526PS4='+ ' 5525PS4='+ '
5527 5526
5528# NLS nuisances. 5527# NLS nuisances.
5529LC_ALL=C 5528LC_ALL=C
5530export LC_ALL 5529export LC_ALL
5531LANGUAGE=C 5530LANGUAGE=C
5532export LANGUAGE 5531export LANGUAGE
5533 5532
5534# Required to use basename. 5533# Required to use basename.
5535if expr a : '\(a\)' >/dev/null 2>&1 && 5534if expr a : '\(a\)' >/dev/null 2>&1 &&
5536 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5537 as_expr=expr 5536 as_expr=expr
5538else 5537else
5539 as_expr=false 5538 as_expr=false
5540fi 5539fi
5541 5540
5542if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5541if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5543 as_basename=basename 5542 as_basename=basename
5544else 5543else
5545 as_basename=false 5544 as_basename=false
5546fi 5545fi
5547 5546
5548 5547
5549# Name of the executable. 5548# Name of the executable.
5550as_me=`$as_basename -- "$0" || 5549as_me=`$as_basename -- "$0" ||
5551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5552 X"$0" : 'X\(//\)$' \| \ 5551 X"$0" : 'X\(//\)$' \| \
5553 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5554$as_echo X/"$0" | 5553$as_echo X/"$0" |
5555 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5554 sed '/^.*\/\([^/][^/]*\)\/*$/{
5556 s//\1/ 5555 s//\1/
5557 q 5556 q
5558 } 5557 }
5559 /^X\/\(\/\/\)$/{ 5558 /^X\/\(\/\/\)$/{
5560 s//\1/ 5559 s//\1/
5561 q 5560 q
5562 } 5561 }
5563 /^X\/\(\/\).*/{ 5562 /^X\/\(\/\).*/{
5564 s//\1/ 5563 s//\1/
5565 q 5564 q
5566 } 5565 }
5567 s/.*/./; q'` 5566 s/.*/./; q'`
5568 5567
5569# CDPATH. 5568# CDPATH.
5570$as_unset CDPATH 5569$as_unset CDPATH
5571 5570
5572 5571
5573 5572
5574 as_lineno_1=$LINENO 5573 as_lineno_1=$LINENO
5575 as_lineno_2=$LINENO 5574 as_lineno_2=$LINENO
5576 test "x$as_lineno_1" != "x$as_lineno_2" && 5575 test "x$as_lineno_1" != "x$as_lineno_2" &&
5577 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 5576 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5578 5577
5579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5580 # uniformly replaced by the line number. The first 'sed' inserts a 5579 # uniformly replaced by the line number. The first 'sed' inserts a
5581 # line-number line after each line using $LINENO; the second 'sed' 5580 # line-number line after each line using $LINENO; the second 'sed'
5582 # does the real work. The second script uses 'N' to pair each 5581 # does the real work. The second script uses 'N' to pair each
5583 # line-number line with the line containing $LINENO, and appends 5582 # line-number line with the line containing $LINENO, and appends
5584 # trailing '-' during substitution so that $LINENO is not a special 5583 # trailing '-' during substitution so that $LINENO is not a special
5585 # case at line end. 5584 # case at line end.
5586 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5587 # scripts with optimization help from Paolo Bonzini. Blame Lee 5586 # scripts with optimization help from Paolo Bonzini. Blame Lee
5588 # E. McMahon (1931-1989) for sed's syntax. :-) 5587 # E. McMahon (1931-1989) for sed's syntax. :-)
5589 sed -n ' 5588 sed -n '
5590 p 5589 p
5591 /[$]LINENO/= 5590 /[$]LINENO/=
5592 ' <$as_myself | 5591 ' <$as_myself |
5593 sed ' 5592 sed '
5594 s/[$]LINENO.*/&-/ 5593 s/[$]LINENO.*/&-/
5595 t lineno 5594 t lineno
5596 b 5595 b
5597 :lineno 5596 :lineno
5598 N 5597 N
5599 :loop 5598 :loop
5600 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5599 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5601 t loop 5600 t loop
5602 s/-\n.*// 5601 s/-\n.*//
5603 ' >$as_me.lineno && 5602 ' >$as_me.lineno &&
5604 chmod +x "$as_me.lineno" || 5603 chmod +x "$as_me.lineno" ||
5605 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 5604 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5606 { (exit 1); exit 1; }; } 5605 { (exit 1); exit 1; }; }
5607 5606
5608 # Don't try to exec as it changes $[0], causing all sort of problems 5607 # Don't try to exec as it changes $[0], causing all sort of problems
5609 # (the dirname of $[0] is not the place where we might find the 5608 # (the dirname of $[0] is not the place where we might find the
5610 # original and so on. Autoconf is especially sensitive to this). 5609 # original and so on. Autoconf is especially sensitive to this).
5611 . "./$as_me.lineno" 5610 . "./$as_me.lineno"
5612 # Exit status is that of the last command. 5611 # Exit status is that of the last command.
5613 exit 5612 exit
5614} 5613}
5615 5614
5616 5615
5617if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5616if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5618 as_dirname=dirname 5617 as_dirname=dirname
5619else 5618else
5620 as_dirname=false 5619 as_dirname=false
5621fi 5620fi
5622 5621
5623ECHO_C= ECHO_N= ECHO_T= 5622ECHO_C= ECHO_N= ECHO_T=
5624case `echo -n x` in 5623case `echo -n x` in
5625-n*) 5624-n*)
5626 case `echo 'x\c'` in 5625 case `echo 'x\c'` in
5627 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5626 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5628 *) ECHO_C='\c';; 5627 *) ECHO_C='\c';;
5629 esac;; 5628 esac;;
5630*) 5629*)
5631 ECHO_N='-n';; 5630 ECHO_N='-n';;
5632esac 5631esac
5633if expr a : '\(a\)' >/dev/null 2>&1 && 5632if expr a : '\(a\)' >/dev/null 2>&1 &&
5634 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5633 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5635 as_expr=expr 5634 as_expr=expr
5636else 5635else
5637 as_expr=false 5636 as_expr=false
5638fi 5637fi
5639 5638
5640rm -f conf$$ conf$$.exe conf$$.file 5639rm -f conf$$ conf$$.exe conf$$.file
5641if test -d conf$$.dir; then 5640if test -d conf$$.dir; then
5642 rm -f conf$$.dir/conf$$.file 5641 rm -f conf$$.dir/conf$$.file
5643else 5642else
5644 rm -f conf$$.dir 5643 rm -f conf$$.dir
5645 mkdir conf$$.dir 2>/dev/null 5644 mkdir conf$$.dir 2>/dev/null
5646fi 5645fi
5647if (echo >conf$$.file) 2>/dev/null; then 5646if (echo >conf$$.file) 2>/dev/null; then
5648 if ln -s conf$$.file conf$$ 2>/dev/null; then 5647 if ln -s conf$$.file conf$$ 2>/dev/null; then
5649 as_ln_s='ln -s' 5648 as_ln_s='ln -s'
5650 # ... but there are two gotchas: 5649 # ... but there are two gotchas:
5651 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5650 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5652 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5651 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5653 # In both cases, we have to default to `cp -p'. 5652 # In both cases, we have to default to `cp -p'.
5654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5653 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5655 as_ln_s='cp -p' 5654 as_ln_s='cp -p'
5656 elif ln conf$$.file conf$$ 2>/dev/null; then 5655 elif ln conf$$.file conf$$ 2>/dev/null; then
5657 as_ln_s=ln 5656 as_ln_s=ln
5658 else 5657 else
5659 as_ln_s='cp -p' 5658 as_ln_s='cp -p'
5660 fi 5659 fi
5661else 5660else
5662 as_ln_s='cp -p' 5661 as_ln_s='cp -p'
5663fi 5662fi
5664rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5663rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5665rmdir conf$$.dir 2>/dev/null 5664rmdir conf$$.dir 2>/dev/null
5666 5665
5667if mkdir -p . 2>/dev/null; then 5666if mkdir -p . 2>/dev/null; then
5668 as_mkdir_p=: 5667 as_mkdir_p=:
5669else 5668else
5670 test -d ./-p && rmdir ./-p 5669 test -d ./-p && rmdir ./-p
5671 as_mkdir_p=false 5670 as_mkdir_p=false
5672fi 5671fi
5673 5672
5674if test -x / >/dev/null 2>&1; then 5673if test -x / >/dev/null 2>&1; then
5675 as_test_x='test -x' 5674 as_test_x='test -x'
5676else 5675else
5677 if ls -dL / >/dev/null 2>&1; then 5676 if ls -dL / >/dev/null 2>&1; then
5678 as_ls_L_option=L 5677 as_ls_L_option=L
5679 else 5678 else
5680 as_ls_L_option= 5679 as_ls_L_option=
5681 fi 5680 fi
5682 as_test_x=' 5681 as_test_x='
5683 eval sh -c '\'' 5682 eval sh -c '\''
5684 if test -d "$1"; then 5683 if test -d "$1"; then
5685 test -d "$1/."; 5684 test -d "$1/.";
5686 else 5685 else
5687 case $1 in 5686 case $1 in
5688 -*)set "./$1";; 5687 -*)set "./$1";;
5689 esac; 5688 esac;
5690 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5689 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5691 ???[sx]*):;;*)false;;esac;fi 5690 ???[sx]*):;;*)false;;esac;fi
5692 '\'' sh 5691 '\'' sh
5693 ' 5692 '
5694fi 5693fi
5695as_executable_p=$as_test_x 5694as_executable_p=$as_test_x
5696 5695
5697# Sed expression to map a string onto a valid CPP name. 5696# Sed expression to map a string onto a valid CPP name.
5698as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5697as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5699 5698
5700# Sed expression to map a string onto a valid variable name. 5699# Sed expression to map a string onto a valid variable name.
5701as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5700as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5702 5701
5703 5702
5704exec 6>&1 5703exec 6>&1
5705 5704
5706# Save the log message, to keep $[0] and so on meaningful, and to 5705# Save the log message, to keep $[0] and so on meaningful, and to
5707# report actual input values of CONFIG_FILES etc. instead of their 5706# report actual input values of CONFIG_FILES etc. instead of their
5708# values after options handling. 5707# values after options handling.
5709ac_log=" 5708ac_log="
5710This file was extended by netpgp $as_me 20090423, which was 5709This file was extended by netpgp $as_me 20090423, which was
5711generated by GNU Autoconf 2.63. Invocation command line was 5710generated by GNU Autoconf 2.63. Invocation command line was
5712 5711
5713 CONFIG_FILES = $CONFIG_FILES 5712 CONFIG_FILES = $CONFIG_FILES
5714 CONFIG_HEADERS = $CONFIG_HEADERS 5713 CONFIG_HEADERS = $CONFIG_HEADERS
5715 CONFIG_LINKS = $CONFIG_LINKS 5714 CONFIG_LINKS = $CONFIG_LINKS
5716 CONFIG_COMMANDS = $CONFIG_COMMANDS 5715 CONFIG_COMMANDS = $CONFIG_COMMANDS
5717 $ $0 $@ 5716 $ $0 $@
5718 5717
5719on `(hostname || uname -n) 2>/dev/null | sed 1q` 5718on `(hostname || uname -n) 2>/dev/null | sed 1q`
5720" 5719"
5721 5720
5722_ACEOF 5721_ACEOF

cvs diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/configure.ac (switch to unified diff)

--- src/crypto/external/bsd/netpgp/dist/configure.ac 2009/04/25 01:29:14 1.2
+++ src/crypto/external/bsd/netpgp/dist/configure.ac 2009/05/05 15:29:46 1.3
@@ -1,49 +1,49 @@ @@ -1,49 +1,49 @@
1dnl $Id: configure.ac,v 1.2 2009/04/25 01:29:14 agc Exp $ 1dnl $Id: configure.ac,v 1.3 2009/05/05 15:29:46 agc Exp $
2dnl Process this file with autoconf to produce a configure script. 2dnl Process this file with autoconf to produce a configure script.
3AC_PREREQ(2.57) 3AC_PREREQ(2.57)
4AC_INIT([netpgp],[20090423],[Alistair Crooks <agc@netbsd.org> c0596823]) 4AC_INIT([netpgp],[20090423],[Alistair Crooks <agc@netbsd.org> c0596823])
5AC_CONFIG_SRCDIR([src/bin/netpgp.c]) 5AC_CONFIG_SRCDIR([src/bin/netpgp.c])
6AC_CONFIG_HEADER(src/lib/config.h) 6AC_CONFIG_HEADER(src/lib/config.h)
7AC_ARG_PROGRAM 7AC_ARG_PROGRAM
8 8
9AC_CANONICAL_HOST 9AC_CANONICAL_HOST
10CANONICAL_HOST=$host 10CANONICAL_HOST=$host
11AC_SUBST(CANONICAL_HOST) 11AC_SUBST(CANONICAL_HOST)
12 12
13# Checks for programs. 13# Checks for programs.
14AC_PROG_MAKE_SET 14AC_PROG_MAKE_SET
15AC_PROG_AWK 15AC_PROG_AWK
16AC_PROG_CC 16AC_PROG_CC
17AC_PROG_INSTALL 17AC_PROG_INSTALL
18AC_PROG_LN_S 18AC_PROG_LN_S
19 19
20AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"} 20AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
21AC_SUBST(AUTOCONF) 21AC_SUBST(AUTOCONF)
22AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"} 22AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
23AC_SUBST(AUTOHEADER) 23AC_SUBST(AUTOHEADER)
24 24
25dnl Checks for header files. 25dnl Checks for header files.
26AC_HEADER_STDC 26AC_HEADER_STDC
27AC_CHECK_HEADERS([CommonCrypto/CommonDigest.h]) 27AC_CHECK_HEADERS([CommonCrypto/CommonDigest.h])
28AC_CHECK_HEADERS([assert.h bzlib.h dmalloc.h direct.h errno.h fcntl.h]) 28AC_CHECK_HEADERS([bzlib.h dmalloc.h direct.h errno.h fcntl.h])
29AC_CHECK_HEADERS([inttypes.h libgen.h limits.h malloc.h]) 29AC_CHECK_HEADERS([inttypes.h libgen.h limits.h malloc.h])
30AC_CHECK_HEADERS([stdbool.h zlib.h]) 30AC_CHECK_HEADERS([stdbool.h zlib.h])
31AC_CHECK_HEADERS([openssl/aes.h openssl/bn.h openssl/cast.h openssl/des.h openssl/dsa.h]) 31AC_CHECK_HEADERS([openssl/aes.h openssl/bn.h openssl/cast.h openssl/des.h openssl/dsa.h])
32AC_CHECK_HEADERS([openssl/err.h openssl/idea.h openssl/md5.h openssl/rand.h openssl/rsa.h openssl/sha.h]) 32AC_CHECK_HEADERS([openssl/err.h openssl/idea.h openssl/md5.h openssl/rand.h openssl/rsa.h openssl/sha.h])
33AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/mman.h sys/param.h sys/uio.h]) 33AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/mman.h sys/param.h sys/uio.h])
34 34
35AC_TYPE_UINT8_T 35AC_TYPE_UINT8_T
36AC_TYPE_UINT16_T 36AC_TYPE_UINT16_T
37AC_TYPE_UINT32_T 37AC_TYPE_UINT32_T
38AC_TYPE_UINT64_T 38AC_TYPE_UINT64_T
39 39
40# check for libraries 40# check for libraries
41AC_CHECK_LIB(z, gzopen) 41AC_CHECK_LIB(z, gzopen)
42AC_CHECK_LIB(bz2, BZ2_bzDecompress) 42AC_CHECK_LIB(bz2, BZ2_bzDecompress)
43AC_CHECK_LIB(crypto, RSA_public_encrypt) 43AC_CHECK_LIB(crypto, RSA_public_encrypt)
44 44
45# Checks for library functions. 45# Checks for library functions.
46 46
47# write it out 47# write it out
48AC_CONFIG_FILES([Makefile src/lib/Makefile src/bin/Makefile]) 48AC_CONFIG_FILES([Makefile src/lib/Makefile src/bin/Makefile])
49AC_OUTPUT 49AC_OUTPUT

cvs diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/src/lib/Attic/config.h (switch to unified diff)

--- src/crypto/external/bsd/netpgp/dist/src/lib/Attic/config.h 2009/04/25 01:29:15 1.2
+++ src/crypto/external/bsd/netpgp/dist/src/lib/Attic/config.h 2009/05/05 15:29:46 1.3
@@ -1,171 +1,168 @@ @@ -1,171 +1,168 @@
1/* src/lib/config.h. Generated from config.h.in by configure. */ 1/* src/lib/config.h. Generated from config.h.in by configure. */
2/* src/lib/config.h.in. Generated from configure.ac by autoheader. */ 2/* src/lib/config.h.in. Generated from configure.ac by autoheader. */
3 3
4/* Define to 1 if you have the <assert.h> header file. */ 
5#define HAVE_ASSERT_H 1 
6 
7/* Define to 1 if you have the <bzlib.h> header file. */ 4/* Define to 1 if you have the <bzlib.h> header file. */
8#define HAVE_BZLIB_H 1 5#define HAVE_BZLIB_H 1
9 6
10/* Define to 1 if you have the <CommonCrypto/CommonDigest.h> header file. */ 7/* Define to 1 if you have the <CommonCrypto/CommonDigest.h> header file. */
11/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ 8/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */
12 9
13/* Define to 1 if you have the <direct.h> header file. */ 10/* Define to 1 if you have the <direct.h> header file. */
14/* #undef HAVE_DIRECT_H */ 11/* #undef HAVE_DIRECT_H */
15 12
16/* Define to 1 if you have the <dmalloc.h> header file. */ 13/* Define to 1 if you have the <dmalloc.h> header file. */
17/* #undef HAVE_DMALLOC_H */ 14/* #undef HAVE_DMALLOC_H */
18 15
19/* Define to 1 if you have the <errno.h> header file. */ 16/* Define to 1 if you have the <errno.h> header file. */
20#define HAVE_ERRNO_H 1 17#define HAVE_ERRNO_H 1
21 18
22/* Define to 1 if you have the <fcntl.h> header file. */ 19/* Define to 1 if you have the <fcntl.h> header file. */
23#define HAVE_FCNTL_H 1 20#define HAVE_FCNTL_H 1
24 21
25/* Define to 1 if you have the <inttypes.h> header file. */ 22/* Define to 1 if you have the <inttypes.h> header file. */
26#define HAVE_INTTYPES_H 1 23#define HAVE_INTTYPES_H 1
27 24
28/* Define to 1 if you have the `bz2' library (-lbz2). */ 25/* Define to 1 if you have the `bz2' library (-lbz2). */
29#define HAVE_LIBBZ2 1 26#define HAVE_LIBBZ2 1
30 27
31/* Define to 1 if you have the `crypto' library (-lcrypto). */ 28/* Define to 1 if you have the `crypto' library (-lcrypto). */
32#define HAVE_LIBCRYPTO 1 29#define HAVE_LIBCRYPTO 1
33 30
34/* Define to 1 if you have the <libgen.h> header file. */ 31/* Define to 1 if you have the <libgen.h> header file. */
35#define HAVE_LIBGEN_H 1 32#define HAVE_LIBGEN_H 1
36 33
37/* Define to 1 if you have the `z' library (-lz). */ 34/* Define to 1 if you have the `z' library (-lz). */
38#define HAVE_LIBZ 1 35#define HAVE_LIBZ 1
39 36
40/* Define to 1 if you have the <limits.h> header file. */ 37/* Define to 1 if you have the <limits.h> header file. */
41#define HAVE_LIMITS_H 1 38#define HAVE_LIMITS_H 1
42 39
43/* Define to 1 if you have the <malloc.h> header file. */ 40/* Define to 1 if you have the <malloc.h> header file. */
44#define HAVE_MALLOC_H 1 41#define HAVE_MALLOC_H 1
45 42
46/* Define to 1 if you have the <memory.h> header file. */ 43/* Define to 1 if you have the <memory.h> header file. */
47#define HAVE_MEMORY_H 1 44#define HAVE_MEMORY_H 1
48 45
49/* Define to 1 if you have the <openssl/aes.h> header file. */ 46/* Define to 1 if you have the <openssl/aes.h> header file. */
50#define HAVE_OPENSSL_AES_H 1 47#define HAVE_OPENSSL_AES_H 1
51 48
52/* Define to 1 if you have the <openssl/bn.h> header file. */ 49/* Define to 1 if you have the <openssl/bn.h> header file. */
53#define HAVE_OPENSSL_BN_H 1 50#define HAVE_OPENSSL_BN_H 1
54 51
55/* Define to 1 if you have the <openssl/cast.h> header file. */ 52/* Define to 1 if you have the <openssl/cast.h> header file. */
56#define HAVE_OPENSSL_CAST_H 1 53#define HAVE_OPENSSL_CAST_H 1
57 54
58/* Define to 1 if you have the <openssl/des.h> header file. */ 55/* Define to 1 if you have the <openssl/des.h> header file. */
59#define HAVE_OPENSSL_DES_H 1 56#define HAVE_OPENSSL_DES_H 1
60 57
61/* Define to 1 if you have the <openssl/dsa.h> header file. */ 58/* Define to 1 if you have the <openssl/dsa.h> header file. */
62#define HAVE_OPENSSL_DSA_H 1 59#define HAVE_OPENSSL_DSA_H 1
63 60
64/* Define to 1 if you have the <openssl/err.h> header file. */ 61/* Define to 1 if you have the <openssl/err.h> header file. */
65#define HAVE_OPENSSL_ERR_H 1 62#define HAVE_OPENSSL_ERR_H 1
66 63
67/* Define to 1 if you have the <openssl/idea.h> header file. */ 64/* Define to 1 if you have the <openssl/idea.h> header file. */
68#define HAVE_OPENSSL_IDEA_H 1 65#define HAVE_OPENSSL_IDEA_H 1
69 66
70/* Define to 1 if you have the <openssl/md5.h> header file. */ 67/* Define to 1 if you have the <openssl/md5.h> header file. */
71#define HAVE_OPENSSL_MD5_H 1 68#define HAVE_OPENSSL_MD5_H 1
72 69
73/* Define to 1 if you have the <openssl/rand.h> header file. */ 70/* Define to 1 if you have the <openssl/rand.h> header file. */
74#define HAVE_OPENSSL_RAND_H 1 71#define HAVE_OPENSSL_RAND_H 1
75 72
76/* Define to 1 if you have the <openssl/rsa.h> header file. */ 73/* Define to 1 if you have the <openssl/rsa.h> header file. */
77#define HAVE_OPENSSL_RSA_H 1 74#define HAVE_OPENSSL_RSA_H 1
78 75
79/* Define to 1 if you have the <openssl/sha.h> header file. */ 76/* Define to 1 if you have the <openssl/sha.h> header file. */
80#define HAVE_OPENSSL_SHA_H 1 77#define HAVE_OPENSSL_SHA_H 1
81 78
82/* Define to 1 if you have the <stdbool.h> header file. */ 79/* Define to 1 if you have the <stdbool.h> header file. */
83#define HAVE_STDBOOL_H 1 80#define HAVE_STDBOOL_H 1
84 81
85/* Define to 1 if you have the <stdint.h> header file. */ 82/* Define to 1 if you have the <stdint.h> header file. */
86#define HAVE_STDINT_H 1 83#define HAVE_STDINT_H 1
87 84
88/* Define to 1 if you have the <stdlib.h> header file. */ 85/* Define to 1 if you have the <stdlib.h> header file. */
89#define HAVE_STDLIB_H 1 86#define HAVE_STDLIB_H 1
90 87
91/* Define to 1 if you have the <strings.h> header file. */ 88/* Define to 1 if you have the <strings.h> header file. */
92#define HAVE_STRINGS_H 1 89#define HAVE_STRINGS_H 1
93 90
94/* Define to 1 if you have the <string.h> header file. */ 91/* Define to 1 if you have the <string.h> header file. */
95#define HAVE_STRING_H 1 92#define HAVE_STRING_H 1
96 93
97/* Define to 1 if you have the <sys/cdefs.h> header file. */ 94/* Define to 1 if you have the <sys/cdefs.h> header file. */
98#define HAVE_SYS_CDEFS_H 1 95#define HAVE_SYS_CDEFS_H 1
99 96
100/* Define to 1 if you have the <sys/file.h> header file. */ 97/* Define to 1 if you have the <sys/file.h> header file. */
101#define HAVE_SYS_FILE_H 1 98#define HAVE_SYS_FILE_H 1
102 99
103/* Define to 1 if you have the <sys/mman.h> header file. */ 100/* Define to 1 if you have the <sys/mman.h> header file. */
104#define HAVE_SYS_MMAN_H 1 101#define HAVE_SYS_MMAN_H 1
105 102
106/* Define to 1 if you have the <sys/param.h> header file. */ 103/* Define to 1 if you have the <sys/param.h> header file. */
107#define HAVE_SYS_PARAM_H 1 104#define HAVE_SYS_PARAM_H 1
108 105
109/* Define to 1 if you have the <sys/stat.h> header file. */ 106/* Define to 1 if you have the <sys/stat.h> header file. */
110#define HAVE_SYS_STAT_H 1 107#define HAVE_SYS_STAT_H 1
111 108
112/* Define to 1 if you have the <sys/types.h> header file. */ 109/* Define to 1 if you have the <sys/types.h> header file. */
113#define HAVE_SYS_TYPES_H 1 110#define HAVE_SYS_TYPES_H 1
114 111
115/* Define to 1 if you have the <sys/uio.h> header file. */ 112/* Define to 1 if you have the <sys/uio.h> header file. */
116#define HAVE_SYS_UIO_H 1 113#define HAVE_SYS_UIO_H 1
117 114
118/* Define to 1 if you have the <unistd.h> header file. */ 115/* Define to 1 if you have the <unistd.h> header file. */
119#define HAVE_UNISTD_H 1 116#define HAVE_UNISTD_H 1
120 117
121/* Define to 1 if you have the <zlib.h> header file. */ 118/* Define to 1 if you have the <zlib.h> header file. */
122#define HAVE_ZLIB_H 1 119#define HAVE_ZLIB_H 1
123 120
124/* Define to the address where bug reports for this package should be sent. */ 121/* Define to the address where bug reports for this package should be sent. */
125#define PACKAGE_BUGREPORT "Alistair Crooks agc@netbsd.org c0596823" 122#define PACKAGE_BUGREPORT "Alistair Crooks <agc@netbsd.org> c0596823"
126 123
127/* Define to the full name of this package. */ 124/* Define to the full name of this package. */
128#define PACKAGE_NAME "netpgp" 125#define PACKAGE_NAME "netpgp"
129 126
130/* Define to the full name and version of this package. */ 127/* Define to the full name and version of this package. */
131#define PACKAGE_STRING "netpgp 20090423" 128#define PACKAGE_STRING "netpgp 20090423"
132 129
133/* Define to the one symbol short name of this package. */ 130/* Define to the one symbol short name of this package. */
134#define PACKAGE_TARNAME "netpgp" 131#define PACKAGE_TARNAME "netpgp"
135 132
136/* Define to the version of this package. */ 133/* Define to the version of this package. */
137#define PACKAGE_VERSION "20090423" 134#define PACKAGE_VERSION "20090423"
138 135
139/* Define to 1 if you have the ANSI C header files. */ 136/* Define to 1 if you have the ANSI C header files. */
140#define STDC_HEADERS 1 137#define STDC_HEADERS 1
141 138
142/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>, 139/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
143 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 140 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
144 #define below would cause a syntax error. */ 141 #define below would cause a syntax error. */
145/* #undef _UINT32_T */ 142/* #undef _UINT32_T */
146 143
147/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>, 144/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
148 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 145 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
149 #define below would cause a syntax error. */ 146 #define below would cause a syntax error. */
150/* #undef _UINT64_T */ 147/* #undef _UINT64_T */
151 148
152/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>, 149/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
153 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 150 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
154 #define below would cause a syntax error. */ 151 #define below would cause a syntax error. */
155/* #undef _UINT8_T */ 152/* #undef _UINT8_T */
156 153
157/* Define to the type of an unsigned integer type of width exactly 16 bits if 154/* Define to the type of an unsigned integer type of width exactly 16 bits if
158 such a type exists and the standard includes do not define it. */ 155 such a type exists and the standard includes do not define it. */
159/* #undef uint16_t */ 156/* #undef uint16_t */
160 157
161/* Define to the type of an unsigned integer type of width exactly 32 bits if 158/* Define to the type of an unsigned integer type of width exactly 32 bits if
162 such a type exists and the standard includes do not define it. */ 159 such a type exists and the standard includes do not define it. */
163/* #undef uint32_t */ 160/* #undef uint32_t */
164 161
165/* Define to the type of an unsigned integer type of width exactly 64 bits if 162/* Define to the type of an unsigned integer type of width exactly 64 bits if
166 such a type exists and the standard includes do not define it. */ 163 such a type exists and the standard includes do not define it. */
167/* #undef uint64_t */ 164/* #undef uint64_t */
168 165
169/* Define to the type of an unsigned integer type of width exactly 8 bits if 166/* Define to the type of an unsigned integer type of width exactly 8 bits if
170 such a type exists and the standard includes do not define it. */ 167 such a type exists and the standard includes do not define it. */
171/* #undef uint8_t */ 168/* #undef uint8_t */

cvs diff -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/src/lib/config.h.in (switch to unified diff)

--- src/crypto/external/bsd/netpgp/dist/src/lib/config.h.in 2009/04/25 01:29:15 1.2
+++ src/crypto/external/bsd/netpgp/dist/src/lib/config.h.in 2009/05/05 15:29:46 1.3
@@ -1,170 +1,167 @@ @@ -1,170 +1,167 @@
1/* src/lib/config.h.in. Generated from configure.ac by autoheader. */ 1/* src/lib/config.h.in. Generated from configure.ac by autoheader. */
2 2
3/* Define to 1 if you have the <assert.h> header file. */ 
4#undef HAVE_ASSERT_H 
5 
6/* Define to 1 if you have the <bzlib.h> header file. */ 3/* Define to 1 if you have the <bzlib.h> header file. */
7#undef HAVE_BZLIB_H 4#undef HAVE_BZLIB_H
8 5
9/* Define to 1 if you have the <CommonCrypto/CommonDigest.h> header file. */ 6/* Define to 1 if you have the <CommonCrypto/CommonDigest.h> header file. */
10#undef HAVE_COMMONCRYPTO_COMMONDIGEST_H 7#undef HAVE_COMMONCRYPTO_COMMONDIGEST_H
11 8
12/* Define to 1 if you have the <direct.h> header file. */ 9/* Define to 1 if you have the <direct.h> header file. */
13#undef HAVE_DIRECT_H 10#undef HAVE_DIRECT_H
14 11
15/* Define to 1 if you have the <dmalloc.h> header file. */ 12/* Define to 1 if you have the <dmalloc.h> header file. */
16#undef HAVE_DMALLOC_H 13#undef HAVE_DMALLOC_H
17 14
18/* Define to 1 if you have the <errno.h> header file. */ 15/* Define to 1 if you have the <errno.h> header file. */
19#undef HAVE_ERRNO_H 16#undef HAVE_ERRNO_H
20 17
21/* Define to 1 if you have the <fcntl.h> header file. */ 18/* Define to 1 if you have the <fcntl.h> header file. */
22#undef HAVE_FCNTL_H 19#undef HAVE_FCNTL_H
23 20
24/* Define to 1 if you have the <inttypes.h> header file. */ 21/* Define to 1 if you have the <inttypes.h> header file. */
25#undef HAVE_INTTYPES_H 22#undef HAVE_INTTYPES_H
26 23
27/* Define to 1 if you have the `bz2' library (-lbz2). */ 24/* Define to 1 if you have the `bz2' library (-lbz2). */
28#undef HAVE_LIBBZ2 25#undef HAVE_LIBBZ2
29 26
30/* Define to 1 if you have the `crypto' library (-lcrypto). */ 27/* Define to 1 if you have the `crypto' library (-lcrypto). */
31#undef HAVE_LIBCRYPTO 28#undef HAVE_LIBCRYPTO
32 29
33/* Define to 1 if you have the <libgen.h> header file. */ 30/* Define to 1 if you have the <libgen.h> header file. */
34#undef HAVE_LIBGEN_H 31#undef HAVE_LIBGEN_H
35 32
36/* Define to 1 if you have the `z' library (-lz). */ 33/* Define to 1 if you have the `z' library (-lz). */
37#undef HAVE_LIBZ 34#undef HAVE_LIBZ
38 35
39/* Define to 1 if you have the <limits.h> header file. */ 36/* Define to 1 if you have the <limits.h> header file. */
40#undef HAVE_LIMITS_H 37#undef HAVE_LIMITS_H
41 38
42/* Define to 1 if you have the <malloc.h> header file. */ 39/* Define to 1 if you have the <malloc.h> header file. */
43#undef HAVE_MALLOC_H 40#undef HAVE_MALLOC_H
44 41
45/* Define to 1 if you have the <memory.h> header file. */ 42/* Define to 1 if you have the <memory.h> header file. */
46#undef HAVE_MEMORY_H 43#undef HAVE_MEMORY_H
47 44
48/* Define to 1 if you have the <openssl/aes.h> header file. */ 45/* Define to 1 if you have the <openssl/aes.h> header file. */
49#undef HAVE_OPENSSL_AES_H 46#undef HAVE_OPENSSL_AES_H
50 47
51/* Define to 1 if you have the <openssl/bn.h> header file. */ 48/* Define to 1 if you have the <openssl/bn.h> header file. */
52#undef HAVE_OPENSSL_BN_H 49#undef HAVE_OPENSSL_BN_H
53 50
54/* Define to 1 if you have the <openssl/cast.h> header file. */ 51/* Define to 1 if you have the <openssl/cast.h> header file. */
55#undef HAVE_OPENSSL_CAST_H 52#undef HAVE_OPENSSL_CAST_H
56 53
57/* Define to 1 if you have the <openssl/des.h> header file. */ 54/* Define to 1 if you have the <openssl/des.h> header file. */
58#undef HAVE_OPENSSL_DES_H 55#undef HAVE_OPENSSL_DES_H
59 56
60/* Define to 1 if you have the <openssl/dsa.h> header file. */ 57/* Define to 1 if you have the <openssl/dsa.h> header file. */
61#undef HAVE_OPENSSL_DSA_H 58#undef HAVE_OPENSSL_DSA_H
62 59
63/* Define to 1 if you have the <openssl/err.h> header file. */ 60/* Define to 1 if you have the <openssl/err.h> header file. */
64#undef HAVE_OPENSSL_ERR_H 61#undef HAVE_OPENSSL_ERR_H
65 62
66/* Define to 1 if you have the <openssl/idea.h> header file. */ 63/* Define to 1 if you have the <openssl/idea.h> header file. */
67#undef HAVE_OPENSSL_IDEA_H 64#undef HAVE_OPENSSL_IDEA_H
68 65
69/* Define to 1 if you have the <openssl/md5.h> header file. */ 66/* Define to 1 if you have the <openssl/md5.h> header file. */
70#undef HAVE_OPENSSL_MD5_H 67#undef HAVE_OPENSSL_MD5_H
71 68
72/* Define to 1 if you have the <openssl/rand.h> header file. */ 69/* Define to 1 if you have the <openssl/rand.h> header file. */
73#undef HAVE_OPENSSL_RAND_H 70#undef HAVE_OPENSSL_RAND_H
74 71
75/* Define to 1 if you have the <openssl/rsa.h> header file. */ 72/* Define to 1 if you have the <openssl/rsa.h> header file. */
76#undef HAVE_OPENSSL_RSA_H 73#undef HAVE_OPENSSL_RSA_H
77 74
78/* Define to 1 if you have the <openssl/sha.h> header file. */ 75/* Define to 1 if you have the <openssl/sha.h> header file. */
79#undef HAVE_OPENSSL_SHA_H 76#undef HAVE_OPENSSL_SHA_H
80 77
81/* Define to 1 if you have the <stdbool.h> header file. */ 78/* Define to 1 if you have the <stdbool.h> header file. */
82#undef HAVE_STDBOOL_H 79#undef HAVE_STDBOOL_H
83 80
84/* Define to 1 if you have the <stdint.h> header file. */ 81/* Define to 1 if you have the <stdint.h> header file. */
85#undef HAVE_STDINT_H 82#undef HAVE_STDINT_H
86 83
87/* Define to 1 if you have the <stdlib.h> header file. */ 84/* Define to 1 if you have the <stdlib.h> header file. */
88#undef HAVE_STDLIB_H 85#undef HAVE_STDLIB_H
89 86
90/* Define to 1 if you have the <strings.h> header file. */ 87/* Define to 1 if you have the <strings.h> header file. */
91#undef HAVE_STRINGS_H 88#undef HAVE_STRINGS_H
92 89
93/* Define to 1 if you have the <string.h> header file. */ 90/* Define to 1 if you have the <string.h> header file. */
94#undef HAVE_STRING_H 91#undef HAVE_STRING_H
95 92
96/* Define to 1 if you have the <sys/cdefs.h> header file. */ 93/* Define to 1 if you have the <sys/cdefs.h> header file. */
97#undef HAVE_SYS_CDEFS_H 94#undef HAVE_SYS_CDEFS_H
98 95
99/* Define to 1 if you have the <sys/file.h> header file. */ 96/* Define to 1 if you have the <sys/file.h> header file. */
100#undef HAVE_SYS_FILE_H 97#undef HAVE_SYS_FILE_H
101 98
102/* Define to 1 if you have the <sys/mman.h> header file. */ 99/* Define to 1 if you have the <sys/mman.h> header file. */
103#undef HAVE_SYS_MMAN_H 100#undef HAVE_SYS_MMAN_H
104 101
105/* Define to 1 if you have the <sys/param.h> header file. */ 102/* Define to 1 if you have the <sys/param.h> header file. */
106#undef HAVE_SYS_PARAM_H 103#undef HAVE_SYS_PARAM_H
107 104
108/* Define to 1 if you have the <sys/stat.h> header file. */ 105/* Define to 1 if you have the <sys/stat.h> header file. */
109#undef HAVE_SYS_STAT_H 106#undef HAVE_SYS_STAT_H
110 107
111/* Define to 1 if you have the <sys/types.h> header file. */ 108/* Define to 1 if you have the <sys/types.h> header file. */
112#undef HAVE_SYS_TYPES_H 109#undef HAVE_SYS_TYPES_H
113 110
114/* Define to 1 if you have the <sys/uio.h> header file. */ 111/* Define to 1 if you have the <sys/uio.h> header file. */
115#undef HAVE_SYS_UIO_H 112#undef HAVE_SYS_UIO_H
116 113
117/* Define to 1 if you have the <unistd.h> header file. */ 114/* Define to 1 if you have the <unistd.h> header file. */
118#undef HAVE_UNISTD_H 115#undef HAVE_UNISTD_H
119 116
120/* Define to 1 if you have the <zlib.h> header file. */ 117/* Define to 1 if you have the <zlib.h> header file. */
121#undef HAVE_ZLIB_H 118#undef HAVE_ZLIB_H
122 119
123/* Define to the address where bug reports for this package should be sent. */ 120/* Define to the address where bug reports for this package should be sent. */
124#undef PACKAGE_BUGREPORT 121#undef PACKAGE_BUGREPORT
125 122
126/* Define to the full name of this package. */ 123/* Define to the full name of this package. */
127#undef PACKAGE_NAME 124#undef PACKAGE_NAME
128 125
129/* Define to the full name and version of this package. */ 126/* Define to the full name and version of this package. */
130#undef PACKAGE_STRING 127#undef PACKAGE_STRING
131 128
132/* Define to the one symbol short name of this package. */ 129/* Define to the one symbol short name of this package. */
133#undef PACKAGE_TARNAME 130#undef PACKAGE_TARNAME
134 131
135/* Define to the version of this package. */ 132/* Define to the version of this package. */
136#undef PACKAGE_VERSION 133#undef PACKAGE_VERSION
137 134
138/* Define to 1 if you have the ANSI C header files. */ 135/* Define to 1 if you have the ANSI C header files. */
139#undef STDC_HEADERS 136#undef STDC_HEADERS
140 137
141/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>, 138/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
142 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 139 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
143 #define below would cause a syntax error. */ 140 #define below would cause a syntax error. */
144#undef _UINT32_T 141#undef _UINT32_T
145 142
146/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>, 143/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
147 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 144 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
148 #define below would cause a syntax error. */ 145 #define below would cause a syntax error. */
149#undef _UINT64_T 146#undef _UINT64_T
150 147
151/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>, 148/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
152 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 149 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
153 #define below would cause a syntax error. */ 150 #define below would cause a syntax error. */
154#undef _UINT8_T 151#undef _UINT8_T
155 152
156/* Define to the type of an unsigned integer type of width exactly 16 bits if 153/* Define to the type of an unsigned integer type of width exactly 16 bits if
157 such a type exists and the standard includes do not define it. */ 154 such a type exists and the standard includes do not define it. */
158#undef uint16_t 155#undef uint16_t
159 156
160/* Define to the type of an unsigned integer type of width exactly 32 bits if 157/* Define to the type of an unsigned integer type of width exactly 32 bits if
161 such a type exists and the standard includes do not define it. */ 158 such a type exists and the standard includes do not define it. */
162#undef uint32_t 159#undef uint32_t
163 160
164/* Define to the type of an unsigned integer type of width exactly 64 bits if 161/* Define to the type of an unsigned integer type of width exactly 64 bits if
165 such a type exists and the standard includes do not define it. */ 162 such a type exists and the standard includes do not define it. */
166#undef uint64_t 163#undef uint64_t
167 164
168/* Define to the type of an unsigned integer type of width exactly 8 bits if 165/* Define to the type of an unsigned integer type of width exactly 8 bits if
169 such a type exists and the standard includes do not define it. */ 166 such a type exists and the standard includes do not define it. */
170#undef uint8_t 167#undef uint8_t

cvs diff -r1.7 -r1.8 src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c (switch to unified diff)

--- src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c 2009/05/05 01:28:15 1.7
+++ src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c 2009/05/05 15:29:46 1.8
@@ -1,557 +1,553 @@ @@ -1,557 +1,553 @@
1/*- 1/*-
2 * Copyright (c) 2009 The NetBSD Foundation, Inc. 2 * Copyright (c) 2009 The NetBSD Foundation, Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This code is derived from software contributed to The NetBSD Foundation 5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Alistair Crooks (agc@netbsd.org) 6 * by Alistair Crooks (agc@netbsd.org)
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the 14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution. 15 * documentation and/or other materials provided with the distribution.
16 * 16 *
17 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE. 27 * POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29#include "config.h" 29#include "config.h"
30 30
31#include <sys/types.h> 31#include <sys/types.h>
32#include <sys/stat.h> 32#include <sys/stat.h>
33#include <sys/param.h> 33#include <sys/param.h>
34#include <sys/mman.h> 34#include <sys/mman.h>
35 35
36#ifdef HAVE_OPENSSL_CAST_H 36#ifdef HAVE_OPENSSL_CAST_H
37#include <openssl/cast.h> 37#include <openssl/cast.h>
38#endif 38#endif
39 39
40#include <netpgp.h> 40#include <netpgp.h>
41 41
42#include "packet.h" 42#include "packet.h"
43#include "packet-parse.h" 43#include "packet-parse.h"
44#include "keyring.h" 44#include "keyring.h"
45#include "errors.h" 45#include "errors.h"
46#include "packet-show.h" 46#include "packet-show.h"
47#include "create.h" 47#include "create.h"
48#include "netpgpsdk.h" 48#include "netpgpsdk.h"
49#include "memory.h" 49#include "memory.h"
50#include "validate.h" 50#include "validate.h"
51#include "readerwriter.h" 51#include "readerwriter.h"
52#include "netpgpdefs.h" 52#include "netpgpdefs.h"
53#include "parse_local.h" 53#include "parse_local.h"
54 54
55#ifdef HAVE_ASSERT_H 
56#include <assert.h> 
57#endif 
58 
59#ifdef HAVE_FCNTL_H 55#ifdef HAVE_FCNTL_H
60#include <fcntl.h> 56#include <fcntl.h>
61#endif 57#endif
62 58
63#include <regex.h> 59#include <regex.h>
64#include <stdarg.h> 60#include <stdarg.h>
65#include <stdlib.h> 61#include <stdlib.h>
66#include <string.h> 62#include <string.h>
67#include <time.h> 63#include <time.h>
68 64
69#ifdef HAVE_UNISTD_H 65#ifdef HAVE_UNISTD_H
70#include <unistd.h> 66#include <unistd.h>
71#endif 67#endif
72 68
73#include <errno.h> 69#include <errno.h>
74 70
75#ifdef HAVE_LIMITS_H 71#ifdef HAVE_LIMITS_H
76#include <limits.h> 72#include <limits.h>
77#endif 73#endif
78 74
79enum { 75enum {
80 MAX_ID_LENGTH = 128, 76 MAX_ID_LENGTH = 128,
81 MAX_PASSPHRASE_LENGTH = 256 77 MAX_PASSPHRASE_LENGTH = 256
82}; 78};
83 79
84/* read any gpg config file */ 80/* read any gpg config file */
85static int 81static int
86conffile(char *homedir, char *userid, size_t length, int verbose) 82conffile(char *homedir, char *userid, size_t length, int verbose)
87{ 83{
88 regmatch_t matchv[10]; 84 regmatch_t matchv[10];
89 regex_t r; 85 regex_t r;
90 char buf[BUFSIZ]; 86 char buf[BUFSIZ];
91 FILE *fp; 87 FILE *fp;
92 88
93 (void) snprintf(buf, sizeof(buf), "%s/.gnupg/gpg.conf", homedir); 89 (void) snprintf(buf, sizeof(buf), "%s/.gnupg/gpg.conf", homedir);
94 if ((fp = fopen(buf, "r")) == NULL) { 90 if ((fp = fopen(buf, "r")) == NULL) {
95 return 0; 91 return 0;
96 } 92 }
97 (void) regcomp(&r, "^[ \t]*default-key[ \t]+([0-9a-zA-F]+)", 93 (void) regcomp(&r, "^[ \t]*default-key[ \t]+([0-9a-zA-F]+)",
98 REG_EXTENDED); 94 REG_EXTENDED);
99 while (fgets(buf, sizeof(buf), fp) != NULL) { 95 while (fgets(buf, sizeof(buf), fp) != NULL) {
100 if (regexec(&r, buf, 10, matchv, 0) == 0) { 96 if (regexec(&r, buf, 10, matchv, 0) == 0) {
101 (void) memcpy(userid, &buf[(int)matchv[1].rm_so], 97 (void) memcpy(userid, &buf[(int)matchv[1].rm_so],
102 MIN((unsigned)(matchv[1].rm_eo - matchv[1].rm_so), length)); 98 MIN((unsigned)(matchv[1].rm_eo - matchv[1].rm_so), length));
103 if (verbose) { 99 if (verbose) {
104 printf("setting default key to \"%.*s\"\n", 100 printf("setting default key to \"%.*s\"\n",
105 (int)(matchv[1].rm_eo - matchv[1].rm_so), 101 (int)(matchv[1].rm_eo - matchv[1].rm_so),
106 &buf[(int)matchv[1].rm_so]); 102 &buf[(int)matchv[1].rm_so]);
107 } 103 }
108 } 104 }
109 } 105 }
110 (void) fclose(fp); 106 (void) fclose(fp);
111 return 1; 107 return 1;
112} 108}
113 109
114/* wrapper to get a pass phrase from the user */ 110/* wrapper to get a pass phrase from the user */
115static void 111static void
116get_pass_phrase(char *phrase, size_t size) 112get_pass_phrase(char *phrase, size_t size)
117{ 113{
118 char *p; 114 char *p;
119 115
120 while ((p = getpass("netpgp passphrase: ")) == NULL) { 116 while ((p = getpass("netpgp passphrase: ")) == NULL) {
121 } 117 }
122 (void) snprintf(phrase, size, "%s", p); 118 (void) snprintf(phrase, size, "%s", p);
123} 119}
124 120
125/* small function to pretty print an 8-character raw userid */ 121/* small function to pretty print an 8-character raw userid */
126static char * 122static char *
127userid_to_id(const unsigned char *userid, char *id) 123userid_to_id(const unsigned char *userid, char *id)
128{ 124{
129 static const char *hexes = "0123456789ABCDEF"; 125 static const char *hexes = "0123456789ABCDEF";
130 int i; 126 int i;
131 127
132 for (i = 0; i < 8 ; i++) { 128 for (i = 0; i < 8 ; i++) {
133 id[i * 2] = hexes[(unsigned)(userid[i] & 0xf0) >> 4]; 129 id[i * 2] = hexes[(unsigned)(userid[i] & 0xf0) >> 4];
134 id[(i * 2) + 1] = hexes[userid[i] & 0xf]; 130 id[(i * 2) + 1] = hexes[userid[i] & 0xf];
135 } 131 }
136 id[8 * 2] = 0x0; 132 id[8 * 2] = 0x0;
137 return id; 133 return id;
138} 134}
139 135
140/* print out the successful signature information */ 136/* print out the successful signature information */
141static void 137static void
142psuccess(char *f, __ops_validation_t *results, __ops_keyring_t *pubring) 138psuccess(char *f, __ops_validation_t *results, __ops_keyring_t *pubring)
143{ 139{
144 const __ops_keydata_t *pubkey; 140 const __ops_keydata_t *pubkey;
145 unsigned i; 141 unsigned i;
146 char id[MAX_ID_LENGTH + 1]; 142 char id[MAX_ID_LENGTH + 1];
147 143
148 for (i = 0; i < results->validc; i++) { 144 for (i = 0; i < results->validc; i++) {
149 printf("Good signature for %s made %susing %s key %s\n", 145 printf("Good signature for %s made %susing %s key %s\n",
150 f, 146 f,
151 ctime(&results->valid_sigs[i].creation_time), 147 ctime(&results->valid_sigs[i].creation_time),
152 __ops_show_pka(results->valid_sigs[i].key_algorithm), 148 __ops_show_pka(results->valid_sigs[i].key_algorithm),
153 userid_to_id(results->valid_sigs[i].signer_id, id)); 149 userid_to_id(results->valid_sigs[i].signer_id, id));
154 pubkey = __ops_keyring_find_key_by_id(pubring, 150 pubkey = __ops_keyring_find_key_by_id(pubring,
155 (const unsigned char *) 151 (const unsigned char *)
156 results->valid_sigs[i].signer_id); 152 results->valid_sigs[i].signer_id);
157 __ops_print_public_keydata(pubkey); 153 __ops_print_public_keydata(pubkey);
158 } 154 }
159} 155}
160 156
161/* sign a file, and put the signature in a separate file */ 157/* sign a file, and put the signature in a separate file */
162static int 158static int
163sign_detached(char *f, char *sigfile, __ops_secret_key_t *seckey, 159sign_detached(char *f, char *sigfile, __ops_secret_key_t *seckey,
164 const char *hashstr) 160 const char *hashstr)
165{ 161{
166 __ops_create_signature_t *sig; 162 __ops_create_signature_t *sig;
167 __ops_hash_algorithm_t alg; 163 __ops_hash_algorithm_t alg;
168 __ops_create_info_t *info; 164 __ops_create_info_t *info;
169 unsigned char keyid[OPS_KEY_ID_SIZE]; 165 unsigned char keyid[OPS_KEY_ID_SIZE];
170 unsigned char *mmapped; 166 unsigned char *mmapped;
171 struct stat st; 167 struct stat st;
172 time_t t; 168 time_t t;
173 char fname[MAXPATHLEN]; 169 char fname[MAXPATHLEN];
174 int fd; 170 int fd;
175 171
176 /* find out which hash algorithm to use */ 172 /* find out which hash algorithm to use */
177 alg = __ops_hash_algorithm_from_text(hashstr); 173 alg = __ops_hash_algorithm_from_text(hashstr);
178 if (alg == OPS_HASH_UNKNOWN) { 174 if (alg == OPS_HASH_UNKNOWN) {
179 (void) fprintf(stderr,"Unknown hash algorithm: %s\n", hashstr); 175 (void) fprintf(stderr,"Unknown hash algorithm: %s\n", hashstr);
180 return 0; 176 return 0;
181 } 177 }
182 178
183 /* create a new signature */ 179 /* create a new signature */
184 sig = __ops_create_signature_new(); 180 sig = __ops_create_signature_new();
185 __ops_signature_start_cleartext_signature(sig, seckey, alg, 181 __ops_signature_start_cleartext_signature(sig, seckey, alg,
186 OPS_SIG_BINARY); 182 OPS_SIG_BINARY);
187 183
188 /* read the contents of 'f' */ 184 /* read the contents of 'f' */
189 fd = open(f, O_RDONLY); 185 fd = open(f, O_RDONLY);
190 if (fd < 0) { 186 if (fd < 0) {
191 (void) fprintf(stderr, "can't open file \"%s\" to sign\n", 187 (void) fprintf(stderr, "can't open file \"%s\" to sign\n",
192 f); 188 f);
193 return 0; 189 return 0;
194 } 190 }
195 /* attempt to mmap(2) the file - if that fails, fall back to 191 /* attempt to mmap(2) the file - if that fails, fall back to
196 * standard read(2) */ 192 * standard read(2) */
197 mmapped = MAP_FAILED; 193 mmapped = MAP_FAILED;
198 if (fstat(fd, &st) == 0) { 194 if (fstat(fd, &st) == 0) {
199 mmapped = mmap(NULL, (size_t)st.st_size, PROT_READ, 195 mmapped = mmap(NULL, (size_t)st.st_size, PROT_READ,
200 MAP_FILE | MAP_PRIVATE, fd, 0); 196 MAP_FILE | MAP_PRIVATE, fd, 0);
201 } 197 }
202 if (mmapped == MAP_FAILED) { 198 if (mmapped == MAP_FAILED) {
203 for (;;) { 199 for (;;) {
204 unsigned char buf[8192]; 200 unsigned char buf[8192];
205 int n; 201 int n;
206 202
207 if ((n = read(fd, buf, sizeof(buf))) == 0) { 203 if ((n = read(fd, buf, sizeof(buf))) == 0) {
208 break; 204 break;
209 } 205 }
210 if (n < 0) { 206 if (n < 0) {
211 (void) fprintf(stderr, "short read \"%s\"\n", 207 (void) fprintf(stderr, "short read \"%s\"\n",
212 f); 208 f);
213 (void) close(fd); 209 (void) close(fd);
214 return 0; 210 return 0;
215 } 211 }
216 __ops_signature_add_data(sig, buf, (unsigned)n); 212 __ops_signature_add_data(sig, buf, (unsigned)n);
217 } 213 }
218 } else { 214 } else {
219 __ops_signature_add_data(sig, mmapped, (unsigned)st.st_size); 215 __ops_signature_add_data(sig, mmapped, (unsigned)st.st_size);
220 (void) munmap(mmapped, (unsigned)st.st_size); 216 (void) munmap(mmapped, (unsigned)st.st_size);
221 } 217 }
222 (void) close(fd); 218 (void) close(fd);
223 219
224 /* calculate the signature */ 220 /* calculate the signature */
225 t = time(NULL); 221 t = time(NULL);
226 __ops_signature_add_creation_time(sig, t); 222 __ops_signature_add_creation_time(sig, t);
227 __ops_keyid(keyid, OPS_KEY_ID_SIZE, OPS_KEY_ID_SIZE, 223 __ops_keyid(keyid, OPS_KEY_ID_SIZE, OPS_KEY_ID_SIZE,
228 &seckey->pubkey); 224 &seckey->pubkey);
229 __ops_signature_add_issuer_key_id(sig, keyid); 225 __ops_signature_add_issuer_key_id(sig, keyid);
230 __ops_signature_hashed_subpackets_end(sig); 226 __ops_signature_hashed_subpackets_end(sig);
231 227
232 /* write the signature to the detached file */ 228 /* write the signature to the detached file */
233 if (sigfile == NULL) { 229 if (sigfile == NULL) {
234 (void) snprintf(fname, sizeof(fname), "%s.sig", f); 230 (void) snprintf(fname, sizeof(fname), "%s.sig", f);
235 sigfile = fname; 231 sigfile = fname;
236 } 232 }
237 fd = open(sigfile, O_CREAT|O_TRUNC|O_WRONLY, 0666); 233 fd = open(sigfile, O_CREAT|O_TRUNC|O_WRONLY, 0666);
238 if (fd < 0) { 234 if (fd < 0) {
239 (void) fprintf(stderr, "can't write signature to \"%s\"\n", 235 (void) fprintf(stderr, "can't write signature to \"%s\"\n",
240 sigfile); 236 sigfile);
241 return 0; 237 return 0;
242 } 238 }
243 239
244 info = __ops_create_info_new(); 240 info = __ops_create_info_new();
245 __ops_writer_set_fd(info, fd); 241 __ops_writer_set_fd(info, fd);
246 __ops_write_signature(sig, &seckey->pubkey, seckey, info); 242 __ops_write_signature(sig, &seckey->pubkey, seckey, info);
247 __ops_secret_key_free(seckey); 243 __ops_secret_key_free(seckey);
248 (void) close(fd); 244 (void) close(fd);
249 245
250 return 1; 246 return 1;
251} 247}
252 248
253/***************************************************************************/ 249/***************************************************************************/
254/* exported functions start here */ 250/* exported functions start here */
255/***************************************************************************/ 251/***************************************************************************/
256 252
257/* initialise a netpgp_t structure */ 253/* initialise a netpgp_t structure */
258int 254int
259netpgp_init(netpgp_t *netpgp, char *userid, char *pubring, char *secring) 255netpgp_init(netpgp_t *netpgp, char *userid, char *pubring, char *secring)
260{ 256{
261 __ops_keyring_t *keyring; 257 __ops_keyring_t *keyring;
262 char *homedir; 258 char *homedir;
263 char ringname[MAXPATHLEN]; 259 char ringname[MAXPATHLEN];
264 char id[MAX_ID_LENGTH]; 260 char id[MAX_ID_LENGTH];
265 261
266 (void) memset(netpgp, 0x0, sizeof(*netpgp)); 262 (void) memset(netpgp, 0x0, sizeof(*netpgp));
267 homedir = getenv("HOME"); 263 homedir = getenv("HOME");
268 if (userid == NULL) { 264 if (userid == NULL) {
269 (void) memset(id, 0x0, sizeof(id)); 265 (void) memset(id, 0x0, sizeof(id));
270 conffile(homedir, id, sizeof(id), 1); 266 conffile(homedir, id, sizeof(id), 1);
271 if (id[0] != 0x0) { 267 if (id[0] != 0x0) {
272 userid = id; 268 userid = id;
273 } 269 }
274 } 270 }
275 if (userid == NULL) { 271 if (userid == NULL) {
276 (void) fprintf(stderr, "Cannot find user id\n"); 272 (void) fprintf(stderr, "Cannot find user id\n");
277 return 0; 273 return 0;
278 } 274 }
279 if (pubring == NULL) { 275 if (pubring == NULL) {
280 (void) snprintf(ringname, sizeof(ringname), "%s/.gnupg/pubring.gpg", homedir); 276 (void) snprintf(ringname, sizeof(ringname), "%s/.gnupg/pubring.gpg", homedir);
281 pubring = ringname; 277 pubring = ringname;
282 } 278 }
283 keyring = calloc(1, sizeof(*keyring)); 279 keyring = calloc(1, sizeof(*keyring));
284 if (!__ops_keyring_read_from_file(keyring, false, pubring)) { 280 if (!__ops_keyring_read_from_file(keyring, false, pubring)) {
285 (void) fprintf(stderr, "Cannot read pub keyring %s\n", pubring); 281 (void) fprintf(stderr, "Cannot read pub keyring %s\n", pubring);
286 return 0; 282 return 0;
287 } 283 }
288 netpgp->pubring = keyring; 284 netpgp->pubring = keyring;
289 netpgp->pubringfile = strdup(pubring); 285 netpgp->pubringfile = strdup(pubring);
290 if (secring == NULL) { 286 if (secring == NULL) {
291 (void) snprintf(ringname, sizeof(ringname), "%s/.gnupg/secring.gpg", homedir); 287 (void) snprintf(ringname, sizeof(ringname), "%s/.gnupg/secring.gpg", homedir);
292 secring = ringname; 288 secring = ringname;
293 } 289 }
294 keyring = calloc(1, sizeof(*keyring)); 290 keyring = calloc(1, sizeof(*keyring));
295 if (!__ops_keyring_read_from_file(keyring, false, secring)) { 291 if (!__ops_keyring_read_from_file(keyring, false, secring)) {
296 (void) fprintf(stderr, "Cannot read sec keyring %s\n", secring); 292 (void) fprintf(stderr, "Cannot read sec keyring %s\n", secring);
297 return 0; 293 return 0;
298 } 294 }
299 netpgp->secring = keyring; 295 netpgp->secring = keyring;
300 netpgp->secringfile = strdup(secring); 296 netpgp->secringfile = strdup(secring);
301 netpgp->userid = strdup(userid); 297 netpgp->userid = strdup(userid);
302 return 1; 298 return 1;
303} 299}
304 300
305/* finish off with the netpgp_t struct */ 301/* finish off with the netpgp_t struct */
306int 302int
307netpgp_end(netpgp_t *netpgp) 303netpgp_end(netpgp_t *netpgp)
308{ 304{
309 if (netpgp->pubring != NULL) { 305 if (netpgp->pubring != NULL) {
310 __ops_keyring_free(netpgp->pubring); 306 __ops_keyring_free(netpgp->pubring);
311 } 307 }
312 if (netpgp->pubringfile != NULL) { 308 if (netpgp->pubringfile != NULL) {
313 (void) free(netpgp->pubringfile); 309 (void) free(netpgp->pubringfile);
314 } 310 }
315 if (netpgp->secring != NULL) { 311 if (netpgp->secring != NULL) {
316 __ops_keyring_free(netpgp->secring); 312 __ops_keyring_free(netpgp->secring);
317 } 313 }
318 if (netpgp->secringfile != NULL) { 314 if (netpgp->secringfile != NULL) {
319 (void) free(netpgp->secringfile); 315 (void) free(netpgp->secringfile);
320 } 316 }
321 (void) free(netpgp->userid); 317 (void) free(netpgp->userid);
322 return 1; 318 return 1;
323} 319}
324 320
325/* list the keys in a keyring */ 321/* list the keys in a keyring */
326int 322int
327netpgp_list_keys(netpgp_t *netpgp) 323netpgp_list_keys(netpgp_t *netpgp)
328{ 324{
329 __ops_keyring_list(netpgp->pubring); 325 __ops_keyring_list(netpgp->pubring);
330 return 1; 326 return 1;
331} 327}
332 328
333/* find a key in a keyring */ 329/* find a key in a keyring */
334int 330int
335netpgp_find_key(netpgp_t *netpgp, char *id) 331netpgp_find_key(netpgp_t *netpgp, char *id)
336{ 332{
337 if (id == NULL) { 333 if (id == NULL) {
338 (void) fprintf(stderr, "NULL id to search for\n"); 334 (void) fprintf(stderr, "NULL id to search for\n");
339 return 0; 335 return 0;
340 } 336 }
341 return __ops_keyring_find_key_by_userid(netpgp->pubring, id) != NULL; 337 return __ops_keyring_find_key_by_userid(netpgp->pubring, id) != NULL;
342} 338}
343 339
344/* export a given key */ 340/* export a given key */
345int 341int
346netpgp_export_key(netpgp_t *netpgp, char *userid) 342netpgp_export_key(netpgp_t *netpgp, char *userid)
347{ 343{
348 const __ops_keydata_t *keypair; 344 const __ops_keydata_t *keypair;
349 345
350 if (userid == NULL) { 346 if (userid == NULL) {
351 userid = netpgp->userid; 347 userid = netpgp->userid;
352 } 348 }
353 if ((keypair = __ops_keyring_find_key_by_userid(netpgp->pubring, userid)) == NULL) { 349 if ((keypair = __ops_keyring_find_key_by_userid(netpgp->pubring, userid)) == NULL) {
354 (void) fprintf(stderr, "Cannot find own key \"%s\" in keyring\n", userid); 350 (void) fprintf(stderr, "Cannot find own key \"%s\" in keyring\n", userid);
355 return 0; 351 return 0;
356 } 352 }
357 __ops_export_key(keypair, NULL); 353 __ops_export_key(keypair, NULL);
358 return 1; 354 return 1;
359} 355}
360 356
361/* import a key into our keyring */ 357/* import a key into our keyring */
362int 358int
363netpgp_import_key(netpgp_t *netpgp, char *f) 359netpgp_import_key(netpgp_t *netpgp, char *f)
364{ 360{
365 int done; 361 int done;
366 362
367 if ((done = __ops_keyring_read_from_file(netpgp->pubring, false, f)) == 0) { 363 if ((done = __ops_keyring_read_from_file(netpgp->pubring, false, f)) == 0) {
368 done = __ops_keyring_read_from_file(netpgp->pubring, true, f); 364 done = __ops_keyring_read_from_file(netpgp->pubring, true, f);
369 } 365 }
370 if (!done) { 366 if (!done) {
371 (void) fprintf(stderr, "Cannot import key from file %s\n", f); 367 (void) fprintf(stderr, "Cannot import key from file %s\n", f);
372 return 0; 368 return 0;
373 } 369 }
374 __ops_keyring_list(netpgp->pubring); 370 __ops_keyring_list(netpgp->pubring);
375 return 1; 371 return 1;
376} 372}
377 373
378/* generate a new key */ 374/* generate a new key */
379int 375int
380netpgp_generate_key(netpgp_t *netpgp, char *id, int numbits) 376netpgp_generate_key(netpgp_t *netpgp, char *id, int numbits)
381{ 377{
382 __ops_create_info_t *create; 378 __ops_create_info_t *create;
383 __ops_keydata_t *keypair; 379 __ops_keydata_t *keypair;
384 __ops_user_id_t uid; 380 __ops_user_id_t uid;
385 int fd; 381 int fd;
386 382
387 (void) memset(&uid, 0x0, sizeof(uid)); 383 (void) memset(&uid, 0x0, sizeof(uid));
388 uid.user_id = (unsigned char *) id; 384 uid.user_id = (unsigned char *) id;
389 if ((keypair = __ops_rsa_create_selfsigned_keypair(numbits, (const unsigned long)65537, &uid)) == NULL) { 385 if ((keypair = __ops_rsa_create_selfsigned_keypair(numbits, (const unsigned long)65537, &uid)) == NULL) {
390 (void) fprintf(stderr, "Cannot generate key\n"); 386 (void) fprintf(stderr, "Cannot generate key\n");
391 return 0; 387 return 0;
392 } 388 }
393 /* write public key */ 389 /* write public key */
394 fd = __ops_setup_file_append(&create, netpgp->pubringfile); 390 fd = __ops_setup_file_append(&create, netpgp->pubringfile);
395 __ops_write_transferable_public_key(keypair, false, create); 391 __ops_write_transferable_public_key(keypair, false, create);
396 __ops_teardown_file_write(create, fd); 392 __ops_teardown_file_write(create, fd);
397 __ops_keyring_free(netpgp->pubring); 393 __ops_keyring_free(netpgp->pubring);
398 if (!__ops_keyring_read_from_file(netpgp->pubring, false, netpgp->pubringfile)) { 394 if (!__ops_keyring_read_from_file(netpgp->pubring, false, netpgp->pubringfile)) {
399 (void) fprintf(stderr, "Cannot re-read keyring %s\n", netpgp->pubringfile); 395 (void) fprintf(stderr, "Cannot re-read keyring %s\n", netpgp->pubringfile);
400 return 0; 396 return 0;
401 } 397 }
402 /* write secret key */ 398 /* write secret key */
403 fd = __ops_setup_file_append(&create, netpgp->secringfile); 399 fd = __ops_setup_file_append(&create, netpgp->secringfile);
404 __ops_write_transferable_secret_key(keypair, NULL, 0, false, create); 400 __ops_write_transferable_secret_key(keypair, NULL, 0, false, create);
405 __ops_teardown_file_write(create, fd); 401 __ops_teardown_file_write(create, fd);
406 __ops_keyring_free(netpgp->secring); 402 __ops_keyring_free(netpgp->secring);
407 if (!__ops_keyring_read_from_file(netpgp->secring, false, netpgp->secringfile)) { 403 if (!__ops_keyring_read_from_file(netpgp->secring, false, netpgp->secringfile)) {
408 fprintf(stderr, "Cannot re-read keyring %s\n", netpgp->secringfile); 404 fprintf(stderr, "Cannot re-read keyring %s\n", netpgp->secringfile);
409 return 0; 405 return 0;
410 } 406 }
411 __ops_keydata_free(keypair); 407 __ops_keydata_free(keypair);
412 return 1; 408 return 1;
413} 409}
414 410
415/* encrypt a file */ 411/* encrypt a file */
416int 412int
417netpgp_encrypt_file(netpgp_t *netpgp, char *userid, char *f, char *out, int armored) 413netpgp_encrypt_file(netpgp_t *netpgp, char *userid, char *f, char *out, int armored)
418{ 414{
419 const __ops_keydata_t *keypair; 415 const __ops_keydata_t *keypair;
420 const char *suffix; 416 const char *suffix;
421 char outname[MAXPATHLEN]; 417 char outname[MAXPATHLEN];
422 418
423 if (userid == NULL) { 419 if (userid == NULL) {
424 userid = netpgp->userid; 420 userid = netpgp->userid;
425 } 421 }
426 suffix = (armored) ? ".asc" : ".gpg"; 422 suffix = (armored) ? ".asc" : ".gpg";
427 if ((keypair = __ops_keyring_find_key_by_userid(netpgp->pubring, userid)) == NULL) { 423 if ((keypair = __ops_keyring_find_key_by_userid(netpgp->pubring, userid)) == NULL) {
428 (void) fprintf(stderr, "Userid '%s' not found in keyring\n", userid); 424 (void) fprintf(stderr, "Userid '%s' not found in keyring\n", userid);
429 return 0; 425 return 0;
430 } 426 }
431 if (out == NULL) { 427 if (out == NULL) {
432 (void) snprintf(outname, sizeof(outname), "%s%s", f, suffix); 428 (void) snprintf(outname, sizeof(outname), "%s%s", f, suffix);
433 out = outname; 429 out = outname;
434 } 430 }
435 __ops_encrypt_file(f, out, keypair, armored, true); 431 __ops_encrypt_file(f, out, keypair, armored, true);
436 return 1; 432 return 1;
437} 433}
438 434
439/* decrypt a file */ 435/* decrypt a file */
440int 436int
441netpgp_decrypt_file(netpgp_t *netpgp, char *f, char *out, int armored) 437netpgp_decrypt_file(netpgp_t *netpgp, char *f, char *out, int armored)
442{ 438{
443 __ops_decrypt_file(f, out, netpgp->secring, armored, true, 439 __ops_decrypt_file(f, out, netpgp->secring, armored, true,
444 get_passphrase_cb); 440 get_passphrase_cb);
445 return 1; 441 return 1;
446} 442}
447 443
448/* sign a file */ 444/* sign a file */
449int 445int
450netpgp_sign_file(netpgp_t *netpgp, char *userid, char *f, char *out, 446netpgp_sign_file(netpgp_t *netpgp, char *userid, char *f, char *out,
451 int armored, int cleartext, int detached) 447 int armored, int cleartext, int detached)
452{ 448{
453 const __ops_keydata_t *keypair; 449 const __ops_keydata_t *keypair;
454 __ops_secret_key_t *seckey; 450 __ops_secret_key_t *seckey;
455 char passphrase[MAX_PASSPHRASE_LENGTH]; 451 char passphrase[MAX_PASSPHRASE_LENGTH];
456 452
457 if (userid == NULL) { 453 if (userid == NULL) {
458 userid = netpgp->userid; 454 userid = netpgp->userid;
459 } 455 }
460 /* get key with which to sign */ 456 /* get key with which to sign */
461 keypair = __ops_keyring_find_key_by_userid(netpgp->secring, userid); 457 keypair = __ops_keyring_find_key_by_userid(netpgp->secring, userid);
462 if (keypair == NULL) { 458 if (keypair == NULL) {
463 (void) fprintf(stderr, "Userid '%s' not found in keyring\n", 459 (void) fprintf(stderr, "Userid '%s' not found in keyring\n",
464 userid); 460 userid);
465 return 0; 461 return 0;
466 } 462 }
467 do { 463 do {
468 /* print out the user id */ 464 /* print out the user id */
469 __ops_print_public_keydata(keypair); 465 __ops_print_public_keydata(keypair);
470 /* get the passphrase */ 466 /* get the passphrase */
471 get_pass_phrase(passphrase, sizeof(passphrase)); 467 get_pass_phrase(passphrase, sizeof(passphrase));
472 /* now decrypt key */ 468 /* now decrypt key */
473 seckey = __ops_decrypt_secret_key_from_data(keypair, 469 seckey = __ops_decrypt_secret_key_from_data(keypair,
474 passphrase); 470 passphrase);
475 if (seckey == NULL) { 471 if (seckey == NULL) {
476 (void) fprintf(stderr, "Bad passphrase\n"); 472 (void) fprintf(stderr, "Bad passphrase\n");
477 } 473 }
478 } while (seckey == NULL); 474 } while (seckey == NULL);
479 /* sign file */ 475 /* sign file */
480 if (cleartext) { 476 if (cleartext) {
481 __ops_sign_file_as_cleartext(f, out, seckey, true); 477 __ops_sign_file_as_cleartext(f, out, seckey, true);
482 } else if (detached) { 478 } else if (detached) {
483 sign_detached(f, out, seckey, "SHA1"); 479 sign_detached(f, out, seckey, "SHA1");
484 } else { 480 } else {
485 __ops_sign_file(f, out, seckey, armored, true); 481 __ops_sign_file(f, out, seckey, armored, true);
486 } 482 }
487 (void) memset(passphrase, 0x0, sizeof(passphrase)); 483 (void) memset(passphrase, 0x0, sizeof(passphrase));
488 return 1; 484 return 1;
489} 485}
490 486
491/* verify a file */ 487/* verify a file */
492int 488int
493netpgp_verify_file(netpgp_t *netpgp, char *f, int armored) 489netpgp_verify_file(netpgp_t *netpgp, char *f, int armored)
494{ 490{
495 __ops_validation_t result; 491 __ops_validation_t result;
496 492
497 (void) memset(&result, 0x0, sizeof(result)); 493 (void) memset(&result, 0x0, sizeof(result));
498 if (__ops_validate_file(&result, f, armored, netpgp->pubring)) { 494 if (__ops_validate_file(&result, f, armored, netpgp->pubring)) {
499 psuccess(f, &result, netpgp->pubring); 495 psuccess(f, &result, netpgp->pubring);
500 return 1; 496 return 1;
501 } 497 }
502 if (result.validc + result.invalidc + result.unknownc == 0) { 498 if (result.validc + result.invalidc + result.unknownc == 0) {
503 (void) fprintf(stderr, "\"%s\": No signatures found - is this a signed file?\n", f); 499 (void) fprintf(stderr, "\"%s\": No signatures found - is this a signed file?\n", f);
504 return 0; 500 return 0;
505 } 501 }
506 (void) fprintf(stderr, "\"%s\": verification failure: %d invalid signatures, %d unknown signatures\n", 502 (void) fprintf(stderr, "\"%s\": verification failure: %d invalid signatures, %d unknown signatures\n",
507 f, result.invalidc, result.unknownc); 503 f, result.invalidc, result.unknownc);
508 return 0; 504 return 0;
509} 505}
510 506
511/* wrappers for the ops_debug_level functions we added to openpgpsdk */ 507/* wrappers for the ops_debug_level functions we added to openpgpsdk */
512 508
513/* set the debugging level per filename */ 509/* set the debugging level per filename */
514int 510int
515netpgp_set_debug(const char *f) 511netpgp_set_debug(const char *f)
516{ 512{
517 return __ops_set_debug_level(f); 513 return __ops_set_debug_level(f);
518} 514}
519 515
520/* get the debugging level per filename */ 516/* get the debugging level per filename */
521int 517int
522netpgp_get_debug(const char *f) 518netpgp_get_debug(const char *f)
523{ 519{
524 return __ops_get_debug_level(f); 520 return __ops_get_debug_level(f);
525} 521}
526 522
527/* return the version for the library */ 523/* return the version for the library */
528const char * 524const char *
529netpgp_get_info(const char *type) 525netpgp_get_info(const char *type)
530{ 526{
531 return __ops_get_info(type); 527 return __ops_get_info(type);
532} 528}
533 529
534int 530int
535netpgp_list_packets(netpgp_t *netpgp, char *f, int armour, char *pubringname) 531netpgp_list_packets(netpgp_t *netpgp, char *f, int armour, char *pubringname)
536{ 532{
537 __ops_keyring_t *keyring; 533 __ops_keyring_t *keyring;
538 char ringname[MAXPATHLEN]; 534 char ringname[MAXPATHLEN];
539 char *homedir; 535 char *homedir;
540 536
541 homedir = getenv("HOME"); 537 homedir = getenv("HOME");
542 if (pubringname == NULL) { 538 if (pubringname == NULL) {
543 (void) snprintf(ringname, sizeof(ringname), 539 (void) snprintf(ringname, sizeof(ringname),
544 "%s/.gnupg/pubring.gpg", homedir); 540 "%s/.gnupg/pubring.gpg", homedir);
545 pubringname = ringname; 541 pubringname = ringname;
546 } 542 }
547 keyring = calloc(1, sizeof(*keyring)); 543 keyring = calloc(1, sizeof(*keyring));
548 if (!__ops_keyring_read_from_file(keyring, false, pubringname)) { 544 if (!__ops_keyring_read_from_file(keyring, false, pubringname)) {
549 (void) fprintf(stderr, "Cannot read pub keyring %s\n", 545 (void) fprintf(stderr, "Cannot read pub keyring %s\n",
550 pubringname); 546 pubringname);
551 return 0; 547 return 0;
552 } 548 }
553 netpgp->pubring = keyring; 549 netpgp->pubring = keyring;
554 netpgp->pubringfile = strdup(pubringname); 550 netpgp->pubringfile = strdup(pubringname);
555 __ops_list_packets(f, armour, keyring, get_passphrase_cb); 551 __ops_list_packets(f, armour, keyring, get_passphrase_cb);
556 return 1; 552 return 1;
557} 553}

cvs diff -r1.6 -r1.7 src/crypto/external/bsd/netpgp/dist/src/lib/packet-parse.c (switch to unified diff)

--- src/crypto/external/bsd/netpgp/dist/src/lib/packet-parse.c 2009/05/05 15:25:27 1.6
+++ src/crypto/external/bsd/netpgp/dist/src/lib/packet-parse.c 2009/05/05 15:29:46 1.7
@@ -1,1044 +1,1040 @@ @@ -1,1044 +1,1040 @@
1/* 1/*
2 * Copyright (c) 2005-2008 Nominet UK (www.nic.uk) 2 * Copyright (c) 2005-2008 Nominet UK (www.nic.uk)
3 * All rights reserved. 3 * All rights reserved.
4 * Contributors: Ben Laurie, Rachel Willmer. The Contributors have asserted 4 * Contributors: Ben Laurie, Rachel Willmer. The Contributors have asserted
5 * their moral rights under the UK Copyright Design and Patents Act 1988 to 5 * their moral rights under the UK Copyright Design and Patents Act 1988 to
6 * be recorded as the authors of this copyright work. 6 * be recorded as the authors of this copyright work.
7 * 7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 8 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
9 * use this file except in compliance with the License. 9 * use this file except in compliance with the License.
10 * 10 *
11 * You may obtain a copy of the License at 11 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0 12 * http://www.apache.org/licenses/LICENSE-2.0
13 * 13 *
14 * Unless required by applicable law or agreed to in writing, software 14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, 15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * 17 *
18 * See the License for the specific language governing permissions and 18 * See the License for the specific language governing permissions and
19 * limitations under the License. 19 * limitations under the License.
20 */ 20 */
21 21
22/** \file 22/** \file
23 * \brief Parser for OpenPGP packets 23 * \brief Parser for OpenPGP packets
24 */ 24 */
25#include "config.h" 25#include "config.h"
26 26
27#ifdef HAVE_OPENSSL_CAST_H 27#ifdef HAVE_OPENSSL_CAST_H
28#include <openssl/cast.h> 28#include <openssl/cast.h>
29#endif 29#endif
30 30
31#include "packet.h" 31#include "packet.h"
32#include "packet-parse.h" 32#include "packet-parse.h"
33#include "keyring.h" 33#include "keyring.h"
34#include "errors.h" 34#include "errors.h"
35#include "packet-show.h" 35#include "packet-show.h"
36#include "create.h" 36#include "create.h"
37 37
38#include "readerwriter.h" 38#include "readerwriter.h"
39#include "netpgpdefs.h" 39#include "netpgpdefs.h"
40#include "parse_local.h" 40#include "parse_local.h"
41 41
42#ifdef HAVE_ASSERT_H 
43#include <assert.h> 
44#endif 
45 
46#include <stdarg.h> 42#include <stdarg.h>
47#include <stdlib.h> 43#include <stdlib.h>
48#include <string.h> 44#include <string.h>
49 45
50#ifdef HAVE_UNISTD_H 46#ifdef HAVE_UNISTD_H
51#include <unistd.h> 47#include <unistd.h>
52#endif 48#endif
53 49
54#include <errno.h> 50#include <errno.h>
55 51
56#ifdef HAVE_LIMITS_H 52#ifdef HAVE_LIMITS_H
57#include <limits.h> 53#include <limits.h>
58#endif 54#endif
59 55
60#define ERRP(cbinfo, cont, err) do { \ 56#define ERRP(cbinfo, cont, err) do { \
61 cont.u.error.error = err; \ 57 cont.u.error.error = err; \
62 CALLBACK(cbinfo, OPS_PARSER_ERROR, &cont); \ 58 CALLBACK(cbinfo, OPS_PARSER_ERROR, &cont); \
63 return false; \ 59 return false; \
64 /*NOTREACHED*/ \ 60 /*NOTREACHED*/ \
65} while(/*CONSTCOND*/0) 61} while(/*CONSTCOND*/0)
66 62
67/** 63/**
68 * limited_read_data reads the specified amount of the subregion's data 64 * limited_read_data reads the specified amount of the subregion's data
69 * into a data_t structure 65 * into a data_t structure
70 * 66 *
71 * \param data Empty structure which will be filled with data 67 * \param data Empty structure which will be filled with data
72 * \param len Number of octets to read 68 * \param len Number of octets to read
73 * \param subregion 69 * \param subregion
74 * \param pinfo How to parse 70 * \param pinfo How to parse
75 * 71 *
76 * \return 1 on success, 0 on failure 72 * \return 1 on success, 0 on failure
77 */ 73 */
78static int  74static int
79limited_read_data(__ops_data_t * data, unsigned int len, 75limited_read_data(__ops_data_t * data, unsigned int len,
80 __ops_region_t * subregion, __ops_parse_info_t * pinfo) 76 __ops_region_t * subregion, __ops_parse_info_t * pinfo)
81{ 77{
82 data->len = len; 78 data->len = len;
83 79
84 if (subregion->length - subregion->length_read < len) { 80 if (subregion->length - subregion->length_read < len) {
85 (void) fprintf(stderr, "limited_data_read: bad length\n"); 81 (void) fprintf(stderr, "limited_data_read: bad length\n");
86 return 0; 82 return 0;
87 } 83 }
88 84
89 data->contents = calloc(1, data->len); 85 data->contents = calloc(1, data->len);
90 if (!data->contents) 86 if (!data->contents)
91 return 0; 87 return 0;
92 88
93 if (!__ops_limited_read(data->contents, data->len, subregion, &pinfo->errors, 89 if (!__ops_limited_read(data->contents, data->len, subregion, &pinfo->errors,
94 &pinfo->rinfo, &pinfo->cbinfo)) 90 &pinfo->rinfo, &pinfo->cbinfo))
95 return 0; 91 return 0;
96 92
97 return 1; 93 return 1;
98} 94}
99 95
100/** 96/**
101 * read_data reads the remainder of the subregion's data 97 * read_data reads the remainder of the subregion's data
102 * into a data_t structure 98 * into a data_t structure
103 * 99 *
104 * \param data 100 * \param data
105 * \param subregion 101 * \param subregion
106 * \param pinfo 102 * \param pinfo
107 * 103 *
108 * \return 1 on success, 0 on failure 104 * \return 1 on success, 0 on failure
109 */ 105 */
110static int  106static int
111read_data(__ops_data_t * data, __ops_region_t * subregion, 107read_data(__ops_data_t * data, __ops_region_t * subregion,
112 __ops_parse_info_t * pinfo) 108 __ops_parse_info_t * pinfo)
113{ 109{
114 int len; 110 int len;
115 111
116 len = subregion->length - subregion->length_read; 112 len = subregion->length - subregion->length_read;
117 113
118 if (len >= 0) { 114 if (len >= 0) {
119 return (limited_read_data(data, (unsigned)len, subregion, pinfo)); 115 return (limited_read_data(data, (unsigned)len, subregion, pinfo));
120 } 116 }
121 return 0; 117 return 0;
122} 118}
123 119
124/** 120/**
125 * Reads the remainder of the subregion as a string. 121 * Reads the remainder of the subregion as a string.
126 * It is the user's responsibility to free the memory allocated here. 122 * It is the user's responsibility to free the memory allocated here.
127 */ 123 */
128 124
129static int  125static int
130read_unsigned_string(unsigned char **str, __ops_region_t * subregion, 126read_unsigned_string(unsigned char **str, __ops_region_t * subregion,
131 __ops_parse_info_t * pinfo) 127 __ops_parse_info_t * pinfo)
132{ 128{
133 size_t len = 0; 129 size_t len = 0;
134 130
135 len = subregion->length - subregion->length_read; 131 len = subregion->length - subregion->length_read;
136 132
137 *str = calloc(1, len + 1); 133 *str = calloc(1, len + 1);
138 if (!(*str)) 134 if (!(*str))
139 return 0; 135 return 0;
140 136
141 if (len && !__ops_limited_read(*str, len, subregion, &pinfo->errors, 137 if (len && !__ops_limited_read(*str, len, subregion, &pinfo->errors,
142 &pinfo->rinfo, &pinfo->cbinfo)) 138 &pinfo->rinfo, &pinfo->cbinfo))
143 return 0; 139 return 0;
144 140
145 /* ! ensure the string is NULL-terminated */ 141 /* ! ensure the string is NULL-terminated */
146 142
147 (*str)[len] = '\0'; 143 (*str)[len] = '\0';
148 144
149 return 1; 145 return 1;
150} 146}
151 147
152static int  148static int
153read_string(char **str, __ops_region_t * subregion, __ops_parse_info_t * pinfo) 149read_string(char **str, __ops_region_t * subregion, __ops_parse_info_t * pinfo)
154{ 150{
155 return (read_unsigned_string((unsigned char **) str, subregion, pinfo)); 151 return (read_unsigned_string((unsigned char **) str, subregion, pinfo));
156} 152}
157 153
158void  154void
159__ops_init_subregion(__ops_region_t * subregion, __ops_region_t * region) 155__ops_init_subregion(__ops_region_t * subregion, __ops_region_t * region)
160{ 156{
161 (void) memset(subregion, 0x0, sizeof(*subregion)); 157 (void) memset(subregion, 0x0, sizeof(*subregion));
162 subregion->parent = region; 158 subregion->parent = region;
163} 159}
164 160
165/* 161/*
166 * XXX: replace __ops_ptag_t with something more appropriate for limiting reads 162 * XXX: replace __ops_ptag_t with something more appropriate for limiting reads
167 */ 163 */
168 164
169/** 165/**
170 * low-level function to read data from reader function 166 * low-level function to read data from reader function
171 * 167 *
172 * Use this function, rather than calling the reader directly. 168 * Use this function, rather than calling the reader directly.
173 * 169 *
174 * If the accumulate flag is set in *pinfo, the function 170 * If the accumulate flag is set in *pinfo, the function
175 * adds the read data to the accumulated data, and updates 171 * adds the read data to the accumulated data, and updates
176 * the accumulated length. This is useful if, for example, 172 * the accumulated length. This is useful if, for example,
177 * the application wants access to the raw data as well as the 173 * the application wants access to the raw data as well as the
178 * parsed data. 174 * parsed data.
179 * 175 *
180 * This function will also try to read the entire amount asked for, but not 176 * This function will also try to read the entire amount asked for, but not
181 * if it is over INT_MAX. Obviously many callers will know that they 177 * if it is over INT_MAX. Obviously many callers will know that they
182 * never ask for that much and so can avoid the extra complexity of 178 * never ask for that much and so can avoid the extra complexity of
183 * dealing with return codes and filled-in lengths. 179 * dealing with return codes and filled-in lengths.
184 * 180 *
185 * \param *dest 181 * \param *dest
186 * \param *plength 182 * \param *plength
187 * \param flags 183 * \param flags
188 * \param *pinfo 184 * \param *pinfo
189 * 185 *
190 * \return OPS_R_OK 186 * \return OPS_R_OK
191 * \return OPS_R_PARTIAL_READ 187 * \return OPS_R_PARTIAL_READ
192 * \return OPS_R_EOF 188 * \return OPS_R_EOF
193 * \return OPS_R_EARLY_EOF 189 * \return OPS_R_EARLY_EOF
194 * 190 *
195 * \sa #__ops_reader_ret_t for details of return codes 191 * \sa #__ops_reader_ret_t for details of return codes
196 */ 192 */
197 193
198static int  194static int
199sub_base_read(void *dest, size_t length, __ops_error_t ** errors, 195sub_base_read(void *dest, size_t length, __ops_error_t ** errors,
200 __ops_reader_info_t * rinfo, __ops_parse_cb_info_t * cbinfo) 196 __ops_reader_info_t * rinfo, __ops_parse_cb_info_t * cbinfo)
201{ 197{
202 size_t n; 198 size_t n;
203 199
204 /* reading more than this would look like an error */ 200 /* reading more than this would look like an error */
205 if (length > INT_MAX) 201 if (length > INT_MAX)
206 length = INT_MAX; 202 length = INT_MAX;
207 203
208 for (n = 0; n < length;) { 204 for (n = 0; n < length;) {
209 int r = rinfo->reader((char *) dest + n, length - n, errors, rinfo, cbinfo); 205 int r = rinfo->reader((char *) dest + n, length - n, errors, rinfo, cbinfo);
210 206
211 if (r > (int) (length - n)) { 207 if (r > (int) (length - n)) {
212 (void) fprintf(stderr, "sub_base_read: bad read\n"); 208 (void) fprintf(stderr, "sub_base_read: bad read\n");
213 return 0; 209 return 0;
214 } 210 }
215 211
216 /* 212 /*
217 * XXX: should we save the error and return what was read so 213 * XXX: should we save the error and return what was read so
218 * far? 214 * far?
219 */ 215 */
220 if (r < 0) 216 if (r < 0)
221 return r; 217 return r;
222 218
223 if (r == 0) 219 if (r == 0)
224 break; 220 break;
225 221
226 n += r; 222 n += r;
227 } 223 }
228 224
229 if (n == 0) 225 if (n == 0)
230 return 0; 226 return 0;
231 227
232 if (rinfo->accumulate) { 228 if (rinfo->accumulate) {
233 if (rinfo->asize < rinfo->alength) { 229 if (rinfo->asize < rinfo->alength) {
234 (void) fprintf(stderr, "sub_base_read: bad size\n"); 230 (void) fprintf(stderr, "sub_base_read: bad size\n");
235 return 0; 231 return 0;
236 } 232 }
237 if (rinfo->alength + n > rinfo->asize) { 233 if (rinfo->alength + n > rinfo->asize) {
238 rinfo->asize = rinfo->asize * 2 + n; 234 rinfo->asize = rinfo->asize * 2 + n;
239 rinfo->accumulated = realloc(rinfo->accumulated, rinfo->asize); 235 rinfo->accumulated = realloc(rinfo->accumulated, rinfo->asize);
240 } 236 }
241 if (rinfo->asize < rinfo->alength + n) { 237 if (rinfo->asize < rinfo->alength + n) {
242 (void) fprintf(stderr, "sub_base_read: bad realloc\n"); 238 (void) fprintf(stderr, "sub_base_read: bad realloc\n");
243 return 0; 239 return 0;
244 } 240 }
245 (void) memcpy(rinfo->accumulated + rinfo->alength, dest, n); 241 (void) memcpy(rinfo->accumulated + rinfo->alength, dest, n);
246 } 242 }
247 /* we track length anyway, because it is used for packet offsets */ 243 /* we track length anyway, because it is used for packet offsets */
248 rinfo->alength += n; 244 rinfo->alength += n;
249 /* and also the position */ 245 /* and also the position */
250 rinfo->position += n; 246 rinfo->position += n;
251 247
252 return n; 248 return n;
253} 249}
254 250
255int  251int
256__ops_stacked_read(void *dest, size_t length, __ops_error_t ** errors, 252__ops_stacked_read(void *dest, size_t length, __ops_error_t ** errors,
257 __ops_reader_info_t * rinfo, __ops_parse_cb_info_t * cbinfo) 253 __ops_reader_info_t * rinfo, __ops_parse_cb_info_t * cbinfo)
258{ 254{
259 return sub_base_read(dest, length, errors, rinfo->next, cbinfo); 255 return sub_base_read(dest, length, errors, rinfo->next, cbinfo);
260} 256}
261 257
262/* This will do a full read so long as length < MAX_INT */ 258/* This will do a full read so long as length < MAX_INT */
263static int  259static int
264base_read(unsigned char *dest, size_t length, 260base_read(unsigned char *dest, size_t length,
265 __ops_parse_info_t * pinfo) 261 __ops_parse_info_t * pinfo)
266{ 262{
267 return sub_base_read(dest, length, &pinfo->errors, &pinfo->rinfo, 263 return sub_base_read(dest, length, &pinfo->errors, &pinfo->rinfo,
268 &pinfo->cbinfo); 264 &pinfo->cbinfo);
269} 265}
270 266
271/* 267/*
272 * Read a full size_t's worth. If the return is < than length, then 268 * Read a full size_t's worth. If the return is < than length, then
273 * *last_read tells you why - < 0 for an error, == 0 for EOF 269 * *last_read tells you why - < 0 for an error, == 0 for EOF
274 */ 270 */
275 271
276static size_t  272static size_t
277full_read(unsigned char *dest, size_t length, int *last_read, 273full_read(unsigned char *dest, size_t length, int *last_read,
278 __ops_error_t ** errors, __ops_reader_info_t * rinfo, 274 __ops_error_t ** errors, __ops_reader_info_t * rinfo,
279 __ops_parse_cb_info_t * cbinfo) 275 __ops_parse_cb_info_t * cbinfo)
280{ 276{
281 size_t t; 277 size_t t;
282 int r = 0; /* preset in case some loon calls with length 278 int r = 0; /* preset in case some loon calls with length
283 * == 0 */ 279 * == 0 */
284 280
285 for (t = 0; t < length;) { 281 for (t = 0; t < length;) {
286 r = sub_base_read(dest + t, length - t, errors, rinfo, cbinfo); 282 r = sub_base_read(dest + t, length - t, errors, rinfo, cbinfo);
287 283
288 if (r <= 0) { 284 if (r <= 0) {
289 *last_read = r; 285 *last_read = r;
290 return t; 286 return t;
291 } 287 }
292 t += r; 288 t += r;
293 } 289 }
294 290
295 *last_read = r; 291 *last_read = r;
296 292
297 return t; 293 return t;
298} 294}
299 295
300 296
301 297
302/** Read a scalar value of selected length from reader. 298/** Read a scalar value of selected length from reader.
303 * 299 *
304 * Read an unsigned scalar value from reader in Big Endian representation. 300 * Read an unsigned scalar value from reader in Big Endian representation.
305 * 301 *
306 * This function does not know or care about packet boundaries. It 302 * This function does not know or care about packet boundaries. It
307 * also assumes that an EOF is an error. 303 * also assumes that an EOF is an error.
308 * 304 *
309 * \param *result The scalar value is stored here 305 * \param *result The scalar value is stored here
310 * \param *reader Our reader 306 * \param *reader Our reader
311 * \param length How many bytes to read 307 * \param length How many bytes to read
312 * \return true on success, false on failure 308 * \return true on success, false on failure
313 */ 309 */
314static bool  310static bool
315_read_scalar(unsigned *result, unsigned length, 311_read_scalar(unsigned *result, unsigned length,
316 __ops_parse_info_t * pinfo) 312 __ops_parse_info_t * pinfo)
317{ 313{
318 unsigned t = 0; 314 unsigned t = 0;
319 315
320 if (length > sizeof(*result)) { 316 if (length > sizeof(*result)) {
321 (void) fprintf(stderr, "_read_scalar: bad length\n"); 317 (void) fprintf(stderr, "_read_scalar: bad length\n");
322 return 0; 318 return 0;
323 } 319 }
324 320
325 while (length--) { 321 while (length--) {
326 unsigned char c[1]; 322 unsigned char c[1];
327 int r; 323 int r;
328 324
329 r = base_read(c, 1, pinfo); 325 r = base_read(c, 1, pinfo);
330 if (r != 1) 326 if (r != 1)
331 return false; 327 return false;
332 t = (t << 8) + c[0]; 328 t = (t << 8) + c[0];
333 } 329 }
334 330
335 *result = t; 331 *result = t;
336 return true; 332 return true;
337} 333}
338 334
339/** 335/**
340 * \ingroup Core_ReadPackets 336 * \ingroup Core_ReadPackets
341 * \brief Read bytes from a region within the packet. 337 * \brief Read bytes from a region within the packet.
342 * 338 *
343 * Read length bytes into the buffer pointed to by *dest. 339 * Read length bytes into the buffer pointed to by *dest.
344 * Make sure we do not read over the packet boundary. 340 * Make sure we do not read over the packet boundary.
345 * Updates the Packet Tag's __ops_ptag_t::length_read. 341 * Updates the Packet Tag's __ops_ptag_t::length_read.
346 * 342 *
347 * If length would make us read over the packet boundary, or if 343 * If length would make us read over the packet boundary, or if
348 * reading fails, we call the callback with an error. 344 * reading fails, we call the callback with an error.
349 * 345 *
350 * Note that if the region is indeterminate, this can return a short 346 * Note that if the region is indeterminate, this can return a short
351 * read - check region->last_read for the length. EOF is indicated by 347 * read - check region->last_read for the length. EOF is indicated by
352 * a success return and region->last_read == 0 in this case (for a 348 * a success return and region->last_read == 0 in this case (for a
353 * region of known length, EOF is an error). 349 * region of known length, EOF is an error).
354 * 350 *
355 * This function makes sure to respect packet boundaries. 351 * This function makes sure to respect packet boundaries.
356 * 352 *
357 * \param dest The destination buffer 353 * \param dest The destination buffer
358 * \param length How many bytes to read 354 * \param length How many bytes to read
359 * \param region Pointer to packet region 355 * \param region Pointer to packet region
360 * \param errors Error stack 356 * \param errors Error stack
361 * \param rinfo Reader info 357 * \param rinfo Reader info
362 * \param cbinfo Callback info 358 * \param cbinfo Callback info
363 * \return true on success, false on error 359 * \return true on success, false on error
364 */ 360 */
365bool  361bool
366__ops_limited_read(unsigned char *dest, size_t length, 362__ops_limited_read(unsigned char *dest, size_t length,
367 __ops_region_t * region, __ops_error_t ** errors, 363 __ops_region_t * region, __ops_error_t ** errors,
368 __ops_reader_info_t * rinfo, 364 __ops_reader_info_t * rinfo,
369 __ops_parse_cb_info_t * cbinfo) 365 __ops_parse_cb_info_t * cbinfo)
370{ 366{
371 size_t r; 367 size_t r;
372 int lr; 368 int lr;
373 369
374 if (!region->indeterminate && region->length_read + length > region->length) { 370 if (!region->indeterminate && region->length_read + length > region->length) {
375 OPS_ERROR(errors, OPS_E_P_NOT_ENOUGH_DATA, "Not enough data"); 371 OPS_ERROR(errors, OPS_E_P_NOT_ENOUGH_DATA, "Not enough data");
376 return false; 372 return false;
377 } 373 }
378 r = full_read(dest, length, &lr, errors, rinfo, cbinfo); 374 r = full_read(dest, length, &lr, errors, rinfo, cbinfo);
379 375
380 if (lr < 0) { 376 if (lr < 0) {
381 OPS_ERROR(errors, OPS_E_R_READ_FAILED, "Read failed"); 377 OPS_ERROR(errors, OPS_E_R_READ_FAILED, "Read failed");
382 return false; 378 return false;
383 } 379 }
384 if (!region->indeterminate && r != length) { 380 if (!region->indeterminate && r != length) {
385 OPS_ERROR(errors, OPS_E_R_READ_FAILED, "Read failed"); 381 OPS_ERROR(errors, OPS_E_R_READ_FAILED, "Read failed");
386 return false; 382 return false;
387 } 383 }
388 region->last_read = r; 384 region->last_read = r;
389 do { 385 do {
390 region->length_read += r; 386 region->length_read += r;
391 if (region->parent && region->length > region->parent->length) { 387 if (region->parent && region->length > region->parent->length) {
392 (void) fprintf(stderr, 388 (void) fprintf(stderr,
393 "ops_limited_read: bad length\n"); 389 "ops_limited_read: bad length\n");
394 return false; 390 return false;
395 } 391 }
396 } while ((region = region->parent) != NULL); 392 } while ((region = region->parent) != NULL);
397 return true; 393 return true;
398} 394}
399 395
400/** 396/**
401 \ingroup Core_ReadPackets 397 \ingroup Core_ReadPackets
402 \brief Call __ops_limited_read on next in stack 398 \brief Call __ops_limited_read on next in stack
403*/ 399*/
404bool  400bool
405__ops_stacked_limited_read(unsigned char *dest, unsigned length, 401__ops_stacked_limited_read(unsigned char *dest, unsigned length,
406 __ops_region_t * region, 402 __ops_region_t * region,
407 __ops_error_t ** errors, 403 __ops_error_t ** errors,
408 __ops_reader_info_t * rinfo, 404 __ops_reader_info_t * rinfo,
409 __ops_parse_cb_info_t * cbinfo) 405 __ops_parse_cb_info_t * cbinfo)
410{ 406{
411 return __ops_limited_read(dest, length, region, errors, rinfo->next, cbinfo); 407 return __ops_limited_read(dest, length, region, errors, rinfo->next, cbinfo);
412} 408}
413 409
414static bool  410static bool
415limited_read(unsigned char *dest, unsigned length, 411limited_read(unsigned char *dest, unsigned length,
416 __ops_region_t * region, __ops_parse_info_t * info) 412 __ops_region_t * region, __ops_parse_info_t * info)
417{ 413{
418 return __ops_limited_read(dest, length, region, &info->errors, 414 return __ops_limited_read(dest, length, region, &info->errors,
419 &info->rinfo, &info->cbinfo); 415 &info->rinfo, &info->cbinfo);
420} 416}
421 417
422static bool  418static bool
423exact_limited_read(unsigned char *dest, unsigned length, 419exact_limited_read(unsigned char *dest, unsigned length,
424 __ops_region_t * region, 420 __ops_region_t * region,
425 __ops_parse_info_t * pinfo) 421 __ops_parse_info_t * pinfo)
426{ 422{
427 bool ret; 423 bool ret;
428 424
429 pinfo->exact_read = true; 425 pinfo->exact_read = true;
430 ret = limited_read(dest, length, region, pinfo); 426 ret = limited_read(dest, length, region, pinfo);
431 pinfo->exact_read = false; 427 pinfo->exact_read = false;
432 428
433 return ret; 429 return ret;
434} 430}
435 431
436/** Skip over length bytes of this packet. 432/** Skip over length bytes of this packet.
437 * 433 *
438 * Calls limited_read() to skip over some data. 434 * Calls limited_read() to skip over some data.
439 * 435 *
440 * This function makes sure to respect packet boundaries. 436 * This function makes sure to respect packet boundaries.
441 * 437 *
442 * \param length How many bytes to skip 438 * \param length How many bytes to skip
443 * \param *region Pointer to packet region 439 * \param *region Pointer to packet region
444 * \param *pinfo How to parse 440 * \param *pinfo How to parse
445 * \return 1 on success, 0 on error (calls the cb with OPS_PARSER_ERROR in limited_read()). 441 * \return 1 on success, 0 on error (calls the cb with OPS_PARSER_ERROR in limited_read()).
446 */ 442 */
447static int  443static int
448limited_skip(unsigned length, __ops_region_t * region, 444limited_skip(unsigned length, __ops_region_t * region,
449 __ops_parse_info_t * pinfo) 445 __ops_parse_info_t * pinfo)
450{ 446{
451 unsigned char buf[NETPGP_BUFSIZ]; 447 unsigned char buf[NETPGP_BUFSIZ];
452 448
453 while (length) { 449 while (length) {
454 unsigned n = length % NETPGP_BUFSIZ; 450 unsigned n = length % NETPGP_BUFSIZ;
455 451
456 if (!limited_read(buf, n, region, pinfo)) 452 if (!limited_read(buf, n, region, pinfo))
457 return 0; 453 return 0;
458 length -= n; 454 length -= n;
459 } 455 }
460 return 1; 456 return 1;
461} 457}
462 458
463/** Read a scalar. 459/** Read a scalar.
464 * 460 *
465 * Read a big-endian scalar of length bytes, respecting packet 461 * Read a big-endian scalar of length bytes, respecting packet
466 * boundaries (by calling limited_read() to read the raw data). 462 * boundaries (by calling limited_read() to read the raw data).
467 * 463 *
468 * This function makes sure to respect packet boundaries. 464 * This function makes sure to respect packet boundaries.
469 * 465 *
470 * \param *dest The scalar value is stored here 466 * \param *dest The scalar value is stored here
471 * \param length How many bytes make up this scalar (at most 4) 467 * \param length How many bytes make up this scalar (at most 4)
472 * \param *region Pointer to current packet region 468 * \param *region Pointer to current packet region
473 * \param *pinfo How to parse 469 * \param *pinfo How to parse
474 * \param *cb The callback 470 * \param *cb The callback
475 * \return 1 on success, 0 on error (calls the cb with OPS_PARSER_ERROR in limited_read()). 471 * \return 1 on success, 0 on error (calls the cb with OPS_PARSER_ERROR in limited_read()).
476 * 472 *
477 * \see RFC4880 3.1 473 * \see RFC4880 3.1
478 */ 474 */
479static int  475static int
480limited_read_scalar(unsigned *dest, unsigned length, 476limited_read_scalar(unsigned *dest, unsigned length,
481 __ops_region_t * region, 477 __ops_region_t * region,
482 __ops_parse_info_t * pinfo) 478 __ops_parse_info_t * pinfo)
483{ 479{
484 unsigned char c[4] = ""; 480 unsigned char c[4] = "";
485 unsigned t; 481 unsigned t;
486 unsigned n; 482 unsigned n;
487 483
488 if (length > 4) { 484 if (length > 4) {
489 (void) fprintf(stderr, "limited_read_scalar: bad length\n"); 485 (void) fprintf(stderr, "limited_read_scalar: bad length\n");
490 return 0; 486 return 0;
491 } 487 }
492 /*LINTED*/ 488 /*LINTED*/
493 if (/*CONSTCOND*/sizeof(*dest) < 4) { 489 if (/*CONSTCOND*/sizeof(*dest) < 4) {
494 (void) fprintf(stderr, "limited_read_scalar: bad dest\n"); 490 (void) fprintf(stderr, "limited_read_scalar: bad dest\n");
495 return 0; 491 return 0;
496 } 492 }
497 if (!limited_read(c, length, region, pinfo)) 493 if (!limited_read(c, length, region, pinfo))
498 return 0; 494 return 0;
499 495
500 for (t = 0, n = 0; n < length; ++n) 496 for (t = 0, n = 0; n < length; ++n)
501 t = (t << 8) + c[n]; 497 t = (t << 8) + c[n];
502 *dest = t; 498 *dest = t;
503 499
504 return 1; 500 return 1;
505} 501}
506 502
507/** Read a scalar. 503/** Read a scalar.
508 * 504 *
509 * Read a big-endian scalar of length bytes, respecting packet 505 * Read a big-endian scalar of length bytes, respecting packet
510 * boundaries (by calling limited_read() to read the raw data). 506 * boundaries (by calling limited_read() to read the raw data).
511 * 507 *
512 * The value read is stored in a size_t, which is a different size 508 * The value read is stored in a size_t, which is a different size
513 * from an unsigned on some platforms. 509 * from an unsigned on some platforms.
514 * 510 *
515 * This function makes sure to respect packet boundaries. 511 * This function makes sure to respect packet boundaries.
516 * 512 *
517 * \param *dest The scalar value is stored here 513 * \param *dest The scalar value is stored here
518 * \param length How many bytes make up this scalar (at most 4) 514 * \param length How many bytes make up this scalar (at most 4)
519 * \param *region Pointer to current packet region 515 * \param *region Pointer to current packet region
520 * \param *pinfo How to parse 516 * \param *pinfo How to parse
521 * \param *cb The callback 517 * \param *cb The callback
522 * \return 1 on success, 0 on error (calls the cb with OPS_PARSER_ERROR in limited_read()). 518 * \return 1 on success, 0 on error (calls the cb with OPS_PARSER_ERROR in limited_read()).
523 * 519 *
524 * \see RFC4880 3.1 520 * \see RFC4880 3.1
525 */ 521 */
526static int  522static int
527limited_read_size_t_scalar(size_t * dest, unsigned length, 523limited_read_size_t_scalar(size_t * dest, unsigned length,
528 __ops_region_t * region, 524 __ops_region_t * region,
529 __ops_parse_info_t * pinfo) 525 __ops_parse_info_t * pinfo)
530{ 526{
531 unsigned tmp; 527 unsigned tmp;
532 528
533 /* 529 /*
534 * Note that because the scalar is at most 4 bytes, we don't care if 530 * Note that because the scalar is at most 4 bytes, we don't care if
535 * size_t is bigger than usigned 531 * size_t is bigger than usigned
536 */ 532 */
537 if (!limited_read_scalar(&tmp, length, region, pinfo)) 533 if (!limited_read_scalar(&tmp, length, region, pinfo))
538 return 0; 534 return 0;
539 535
540 *dest = tmp; 536 *dest = tmp;
541 return 1; 537 return 1;
542} 538}
543 539
544/** Read a timestamp. 540/** Read a timestamp.
545 * 541 *
546 * Timestamps in OpenPGP are unix time, i.e. seconds since The Epoch (1.1.1970). They are stored in an unsigned scalar 542 * Timestamps in OpenPGP are unix time, i.e. seconds since The Epoch (1.1.1970). They are stored in an unsigned scalar
547 * of 4 bytes. 543 * of 4 bytes.
548 * 544 *
549 * This function reads the timestamp using limited_read_scalar(). 545 * This function reads the timestamp using limited_read_scalar().
550 * 546 *
551 * This function makes sure to respect packet boundaries. 547 * This function makes sure to respect packet boundaries.
552 * 548 *
553 * \param *dest The timestamp is stored here 549 * \param *dest The timestamp is stored here
554 * \param *ptag Pointer to current packet's Packet Tag. 550 * \param *ptag Pointer to current packet's Packet Tag.
555 * \param *reader Our reader 551 * \param *reader Our reader
556 * \param *cb The callback 552 * \param *cb The callback
557 * \return see limited_read_scalar() 553 * \return see limited_read_scalar()
558 * 554 *
559 * \see RFC4880 3.5 555 * \see RFC4880 3.5
560 */ 556 */
561static int  557static int
562limited_read_time(time_t *dest, __ops_region_t * region, 558limited_read_time(time_t *dest, __ops_region_t * region,
563 __ops_parse_info_t * pinfo) 559 __ops_parse_info_t * pinfo)
564{ 560{
565 unsigned char c[1]; 561 unsigned char c[1];
566 time_t mytime = 0; 562 time_t mytime = 0;
567 int i = 0; 563 int i = 0;
568 564
569 /* 565 /*
570 * Cannot assume that time_t is 4 octets long - 566 * Cannot assume that time_t is 4 octets long -
571 * SunOS 5.10 and NetBSD both have 64-bit time_ts. 567 * SunOS 5.10 and NetBSD both have 64-bit time_ts.
572 */ 568 */
573 if (/* CONSTCOND */sizeof(time_t) == 4) { 569 if (/* CONSTCOND */sizeof(time_t) == 4) {
574 return limited_read_scalar((unsigned *)(void *)dest, 4, region, pinfo); 570 return limited_read_scalar((unsigned *)(void *)dest, 4, region, pinfo);
575 } 571 }
576 for (i = 0; i < 4; i++) { 572 for (i = 0; i < 4; i++) {
577 if (!limited_read(c, 1, region, pinfo)) 573 if (!limited_read(c, 1, region, pinfo))
578 return 0; 574 return 0;
579 mytime = (mytime << 8) + c[0]; 575 mytime = (mytime << 8) + c[0];
580 } 576 }
581 *dest = mytime; 577 *dest = mytime;
582 return 1; 578 return 1;
583} 579}
584 580
585/** 581/**
586 * \ingroup Core_MPI 582 * \ingroup Core_MPI
587 * Read a multiprecision integer. 583 * Read a multiprecision integer.
588 * 584 *
589 * Large numbers (multiprecision integers, MPI) are stored in OpenPGP in two parts. First there is a 2 byte scalar 585 * Large numbers (multiprecision integers, MPI) are stored in OpenPGP in two parts. First there is a 2 byte scalar
590 * indicating the length of the following MPI in Bits. Then follow the bits that make up the actual number, most 586 * indicating the length of the following MPI in Bits. Then follow the bits that make up the actual number, most
591 * significant bits first (Big Endian). The most significant bit in the MPI is supposed to be 1 (unless the MPI is 587 * significant bits first (Big Endian). The most significant bit in the MPI is supposed to be 1 (unless the MPI is
592 * encrypted - then it may be different as the bit count refers to the plain text but the bits are encrypted). 588 * encrypted - then it may be different as the bit count refers to the plain text but the bits are encrypted).
593 * 589 *
594 * Unused bits (i.e. those filling up the most significant byte from the left to the first bits that counts) are 590 * Unused bits (i.e. those filling up the most significant byte from the left to the first bits that counts) are
595 * supposed to be cleared - I guess. XXX - does anything actually say so? 591 * supposed to be cleared - I guess. XXX - does anything actually say so?
596 * 592 *
597 * This function makes sure to respect packet boundaries. 593 * This function makes sure to respect packet boundaries.
598 * 594 *
599 * \param **pgn return the integer there - the BIGNUM is created by BN_bin2bn() and probably needs to be freed 595 * \param **pgn return the integer there - the BIGNUM is created by BN_bin2bn() and probably needs to be freed
600 * by the caller XXX right ben? 596 * by the caller XXX right ben?
601 * \param *ptag Pointer to current packet's Packet Tag. 597 * \param *ptag Pointer to current packet's Packet Tag.
602 * \param *reader Our reader 598 * \param *reader Our reader
603 * \param *cb The callback 599 * \param *cb The callback
604 * \return 1 on success, 0 on error (by limited_read_scalar() or limited_read() or if the MPI is not properly formed (XXX 600 * \return 1 on success, 0 on error (by limited_read_scalar() or limited_read() or if the MPI is not properly formed (XXX
605 * see comment below - the callback is called with a OPS_PARSER_ERROR in case of an error) 601 * see comment below - the callback is called with a OPS_PARSER_ERROR in case of an error)
606 * 602 *
607 * \see RFC4880 3.2 603 * \see RFC4880 3.2
608 */ 604 */
609static int  605static int
610limited_read_mpi(BIGNUM ** pbn, __ops_region_t * region, 606limited_read_mpi(BIGNUM ** pbn, __ops_region_t * region,
611 __ops_parse_info_t * pinfo) 607 __ops_parse_info_t * pinfo)
612{ 608{
613 unsigned char buf[NETPGP_BUFSIZ] = ""; 609 unsigned char buf[NETPGP_BUFSIZ] = "";
614 /* an MPI has a 2 byte length part. 610 /* an MPI has a 2 byte length part.
615 * Length is given in bits, so the 611 * Length is given in bits, so the
616 * largest we should ever need for 612 * largest we should ever need for
617 * the buffer is NETPGP_BUFSIZ bytes. */ 613 * the buffer is NETPGP_BUFSIZ bytes. */
618 unsigned length; 614 unsigned length;
619 unsigned nonzero; 615 unsigned nonzero;
620 bool ret; 616 bool ret;
621 617
622 pinfo->reading_mpi_length = true; 618 pinfo->reading_mpi_length = true;
623 ret = limited_read_scalar(&length, 2, region, pinfo); 619 ret = limited_read_scalar(&length, 2, region, pinfo);
624 620
625 pinfo->reading_mpi_length = false; 621 pinfo->reading_mpi_length = false;
626 if (!ret) 622 if (!ret)
627 return 0; 623 return 0;
628 624
629 nonzero = length & 7; /* there should be this many zero bits in the 625 nonzero = length & 7; /* there should be this many zero bits in the
630 * MS byte */ 626 * MS byte */
631 if (!nonzero) 627 if (!nonzero)
632 nonzero = 8; 628 nonzero = 8;
633 length = (length + 7) / 8; 629 length = (length + 7) / 8;
634 630
635 if (length == 0) { 631 if (length == 0) {
636 /* if we try to read a length of 0, then fail */ 632 /* if we try to read a length of 0, then fail */
637 if (__ops_get_debug_level(__FILE__)) { 633 if (__ops_get_debug_level(__FILE__)) {
638 (void) fprintf(stderr, "limited_read_mpi: 0 length\n"); 634 (void) fprintf(stderr, "limited_read_mpi: 0 length\n");
639 } 635 }
640 return 0; 636 return 0;
641 } 637 }
642 if (length > NETPGP_BUFSIZ) { 638 if (length > NETPGP_BUFSIZ) {
643 (void) fprintf(stderr, "limited_read_mpi: bad length\n"); 639 (void) fprintf(stderr, "limited_read_mpi: bad length\n");
644 return 0; 640 return 0;
645 } 641 }
646 if (!limited_read(buf, length, region, pinfo)) 642 if (!limited_read(buf, length, region, pinfo))
647 return 0; 643 return 0;
648 644
649 if (((unsigned)buf[0] >> nonzero) != 0 || 645 if (((unsigned)buf[0] >> nonzero) != 0 ||
650 !((unsigned)buf[0] & (1U << (nonzero - 1U)))) { 646 !((unsigned)buf[0] & (1U << (nonzero - 1U)))) {
651 OPS_ERROR(&pinfo->errors, OPS_E_P_MPI_FORMAT_ERROR, "MPI Format error"); 647 OPS_ERROR(&pinfo->errors, OPS_E_P_MPI_FORMAT_ERROR, "MPI Format error");
652 /* XXX: Ben, one part of 648 /* XXX: Ben, one part of
653 * this constraint does 649 * this constraint does
654 * not apply to 650 * not apply to
655 * encrypted MPIs the 651 * encrypted MPIs the
656 * draft says. -- peter */ 652 * draft says. -- peter */
657 return 0; 653 return 0;
658 } 654 }
659 *pbn = BN_bin2bn(buf, (int)length, NULL); 655 *pbn = BN_bin2bn(buf, (int)length, NULL);
660 return 1; 656 return 1;
661} 657}
662 658
663/** Read some data with a New-Format length from reader. 659/** Read some data with a New-Format length from reader.
664 * 660 *
665 * \sa Internet-Draft RFC4880.txt Section 4.2.2 661 * \sa Internet-Draft RFC4880.txt Section 4.2.2
666 * 662 *
667 * \param *length Where the decoded length will be put 663 * \param *length Where the decoded length will be put
668 * \param *pinfo How to parse 664 * \param *pinfo How to parse
669 * \return true if OK, else false 665 * \return true if OK, else false
670 * 666 *
671 */ 667 */
672 668
673static bool  669static bool
674read_new_length(unsigned *length, __ops_parse_info_t * pinfo) 670read_new_length(unsigned *length, __ops_parse_info_t * pinfo)
675{ 671{
676 unsigned char c[1]; 672 unsigned char c[1];
677 673
678 if (base_read(c, 1, pinfo) != 1) 674 if (base_read(c, 1, pinfo) != 1)
679 return false; 675 return false;
680 if (c[0] < 192) { 676 if (c[0] < 192) {
681 /* 1. One-octet packet */ 677 /* 1. One-octet packet */
682 *length = c[0]; 678 *length = c[0];
683 return true; 679 return true;
684 } else if (c[0] >= 192 && c[0] <= 223) { 680 } else if (c[0] >= 192 && c[0] <= 223) {
685 /* 2. Two-octet packet */ 681 /* 2. Two-octet packet */
686 unsigned t = (c[0] - 192) << 8; 682 unsigned t = (c[0] - 192) << 8;
687 683
688 if (base_read(c, 1, pinfo) != 1) 684 if (base_read(c, 1, pinfo) != 1)
689 return false; 685 return false;
690 *length = t + c[0] + 192; 686 *length = t + c[0] + 192;
691 return true; 687 return true;
692 } else if (c[0] == 255) { 688 } else if (c[0] == 255) {
693 /* 3. Five-Octet packet */ 689 /* 3. Five-Octet packet */
694 return _read_scalar(length, 4, pinfo); 690 return _read_scalar(length, 4, pinfo);
695 } else if (c[0] >= 224 && c[0] < 255) { 691 } else if (c[0] >= 224 && c[0] < 255) {
696 /* 4. Partial Body Length */ 692 /* 4. Partial Body Length */
697 /* XXX - agc - gpg multi-recipient encryption uses this */ 693 /* XXX - agc - gpg multi-recipient encryption uses this */
698 OPS_ERROR(&pinfo->errors, OPS_E_UNIMPLEMENTED, 694 OPS_ERROR(&pinfo->errors, OPS_E_UNIMPLEMENTED,
699 "New format Partial Body Length fields not yet implemented"); 695 "New format Partial Body Length fields not yet implemented");
700 return false; 696 return false;
701 } 697 }
702 return false; 698 return false;
703} 699}
704 700
705/** Read the length information for a new format Packet Tag. 701/** Read the length information for a new format Packet Tag.
706 * 702 *
707 * New style Packet Tags encode the length in one to five octets. This function reads the right amount of bytes and 703 * New style Packet Tags encode the length in one to five octets. This function reads the right amount of bytes and
708 * decodes it to the proper length information. 704 * decodes it to the proper length information.
709 * 705 *
710 * This function makes sure to respect packet boundaries. 706 * This function makes sure to respect packet boundaries.
711 * 707 *
712 * \param *length return the length here 708 * \param *length return the length here
713 * \param *ptag Pointer to current packet's Packet Tag. 709 * \param *ptag Pointer to current packet's Packet Tag.
714 * \param *reader Our reader 710 * \param *reader Our reader
715 * \param *cb The callback 711 * \param *cb The callback
716 * \return 1 on success, 0 on error (by limited_read_scalar() or limited_read() or if the MPI is not properly formed (XXX 712 * \return 1 on success, 0 on error (by limited_read_scalar() or limited_read() or if the MPI is not properly formed (XXX
717 * see comment below) 713 * see comment below)
718 * 714 *
719 * \see RFC4880 4.2.2 715 * \see RFC4880 4.2.2
720 * \see __ops_ptag_t 716 * \see __ops_ptag_t
721 */ 717 */
722static int  718static int
723limited_read_new_length(unsigned *length, __ops_region_t * region, 719limited_read_new_length(unsigned *length, __ops_region_t * region,
724 __ops_parse_info_t * pinfo) 720 __ops_parse_info_t * pinfo)
725{ 721{
726 unsigned char c[1] = ""; 722 unsigned char c[1] = "";
727 723
728 if (!limited_read(c, 1, region, pinfo)) 724 if (!limited_read(c, 1, region, pinfo))
729 return 0; 725 return 0;
730 if (c[0] < 192) { 726 if (c[0] < 192) {
731 *length = c[0]; 727 *length = c[0];
732 return 1; 728 return 1;
733 } 729 }
734 if (c[0] < 255) { 730 if (c[0] < 255) {
735 unsigned t = (c[0] - 192) << 8; 731 unsigned t = (c[0] - 192) << 8;
736 732
737 if (!limited_read(c, 1, region, pinfo)) 733 if (!limited_read(c, 1, region, pinfo))
738 return 0; 734 return 0;
739 *length = t + c[0] + 192; 735 *length = t + c[0] + 192;
740 return 1; 736 return 1;
741 } 737 }
742 return limited_read_scalar(length, 4, region, pinfo); 738 return limited_read_scalar(length, 4, region, pinfo);
743} 739}
744 740
745/** 741/**
746\ingroup Core_Create 742\ingroup Core_Create
747\brief Free allocated memory 743\brief Free allocated memory
748*/ 744*/
749static void  745static void
750data_free(__ops_data_t * data) 746data_free(__ops_data_t * data)
751{ 747{
752 free(data->contents); 748 free(data->contents);
753 data->contents = NULL; 749 data->contents = NULL;
754 data->len = 0; 750 data->len = 0;
755} 751}
756 752
757/** 753/**
758\ingroup Core_Create 754\ingroup Core_Create
759\brief Free allocated memory 755\brief Free allocated memory
760*/ 756*/
761static void  757static void
762string_free(char **str) 758string_free(char **str)
763{ 759{
764 free(*str); 760 free(*str);
765 *str = NULL; 761 *str = NULL;
766} 762}
767 763
768/** 764/**
769\ingroup Core_Create 765\ingroup Core_Create
770\brief Free allocated memory 766\brief Free allocated memory
771*/ 767*/
772/* ! Free packet memory, set pointer to NULL */ 768/* ! Free packet memory, set pointer to NULL */
773void  769void
774__ops_subpacket_free(__ops_subpacket_t *packet) 770__ops_subpacket_free(__ops_subpacket_t *packet)
775{ 771{
776 (void) free(packet->raw); 772 (void) free(packet->raw);
777 packet->raw = NULL; 773 packet->raw = NULL;
778} 774}
779 775
780/** 776/**
781\ingroup Core_Create 777\ingroup Core_Create
782\brief Free allocated memory 778\brief Free allocated memory
783*/ 779*/
784static void  780static void
785__ops_headers_free(__ops_headers_t * headers) 781__ops_headers_free(__ops_headers_t * headers)
786{ 782{
787 unsigned n; 783 unsigned n;
788 784
789 for (n = 0; n < headers->nheaders; ++n) { 785 for (n = 0; n < headers->nheaders; ++n) {
790 free(headers->headers[n].key); 786 free(headers->headers[n].key);
791 free(headers->headers[n].value); 787 free(headers->headers[n].value);
792 } 788 }
793 free(headers->headers); 789 free(headers->headers);
794 headers->headers = NULL; 790 headers->headers = NULL;
795} 791}
796 792
797/** 793/**
798\ingroup Core_Create 794\ingroup Core_Create
799\brief Free allocated memory 795\brief Free allocated memory
800*/ 796*/
801static void  797static void
802signed_cleartext_trailer_free(__ops_signed_cleartext_trailer_t * trailer) 798signed_cleartext_trailer_free(__ops_signed_cleartext_trailer_t * trailer)
803{ 799{
804 free(trailer->hash); 800 free(trailer->hash);
805 trailer->hash = NULL; 801 trailer->hash = NULL;
806} 802}
807 803
808/** 804/**
809\ingroup Core_Create 805\ingroup Core_Create
810\brief Free allocated memory 806\brief Free allocated memory
811*/ 807*/
812static void  808static void
813__ops_cmd_get_passphrase_free(__ops_secret_key_passphrase_t * skp) 809__ops_cmd_get_passphrase_free(__ops_secret_key_passphrase_t * skp)
814{ 810{
815 if (skp->passphrase && *skp->passphrase) { 811 if (skp->passphrase && *skp->passphrase) {
816 free(*skp->passphrase); 812 free(*skp->passphrase);
817 *skp->passphrase = NULL; 813 *skp->passphrase = NULL;
818 } 814 }
819} 815}
820 816
821/** 817/**
822 \ingroup Core_Create 818 \ingroup Core_Create
823 \brief Free the memory used when parsing this signature sub-packet type 819 \brief Free the memory used when parsing this signature sub-packet type
824*/ 820*/
825static void  821static void
826ss_userdefined_free(__ops_ss_userdefined_t * ss_userdefined) 822ss_userdefined_free(__ops_ss_userdefined_t * ss_userdefined)
827{ 823{
828 data_free(&ss_userdefined->data); 824 data_free(&ss_userdefined->data);
829} 825}
830 826
831/** 827/**
832 \ingroup Core_Create 828 \ingroup Core_Create
833 \brief Free the memory used when parsing this signature sub-packet type 829 \brief Free the memory used when parsing this signature sub-packet type
834*/ 830*/
835static void  831static void
836ss_reserved_free(__ops_ss_unknown_t * ss_unknown) 832ss_reserved_free(__ops_ss_unknown_t * ss_unknown)
837{ 833{
838 data_free(&ss_unknown->data); 834 data_free(&ss_unknown->data);
839} 835}
840 836
841/** 837/**
842 \ingroup Core_Create 838 \ingroup Core_Create
843 \brief Free the memory used when parsing this packet type 839 \brief Free the memory used when parsing this packet type
844*/ 840*/
845static void  841static void
846trust_free(__ops_trust_t * trust) 842trust_free(__ops_trust_t * trust)
847{ 843{
848 data_free(&trust->data); 844 data_free(&trust->data);
849} 845}
850 846
851/** 847/**
852 * \ingroup Core_Create 848 * \ingroup Core_Create
853 * \brief Free the memory used when parsing a private/experimental PKA signature 849 * \brief Free the memory used when parsing a private/experimental PKA signature
854 * \param unknown_sig 850 * \param unknown_sig
855 */ 851 */
856static void  852static void
857free_unknown_sig_pka(__ops_unknown_signature_t * unknown_sig) 853free_unknown_sig_pka(__ops_unknown_signature_t * unknown_sig)
858{ 854{
859 data_free(&unknown_sig->data); 855 data_free(&unknown_sig->data);
860} 856}
861 857
862/** 858/**
863\ingroup Core_Create 859\ingroup Core_Create
864\brief Free allocated memory 860\brief Free allocated memory
865*/ 861*/
866static void  862static void
867free_BN(BIGNUM ** pp) 863free_BN(BIGNUM ** pp)
868{ 864{
869 BN_free(*pp); 865 BN_free(*pp);
870 *pp = NULL; 866 *pp = NULL;
871} 867}
872 868
873/** 869/**
874 * \ingroup Core_Create 870 * \ingroup Core_Create
875 * \brief Free the memory used when parsing a signature 871 * \brief Free the memory used when parsing a signature
876 * \param sig 872 * \param sig
877 */ 873 */
878static void  874static void
879signature_free(__ops_signature_t * sig) 875signature_free(__ops_signature_t * sig)
880{ 876{
881 switch (sig->info.key_algorithm) { 877 switch (sig->info.key_algorithm) {
882 case OPS_PKA_RSA: 878 case OPS_PKA_RSA:
883 case OPS_PKA_RSA_SIGN_ONLY: 879 case OPS_PKA_RSA_SIGN_ONLY:
884 free_BN(&sig->info.signature.rsa.sig); 880 free_BN(&sig->info.signature.rsa.sig);
885 break; 881 break;
886 882
887 case OPS_PKA_DSA: 883 case OPS_PKA_DSA:
888 free_BN(&sig->info.signature.dsa.r); 884 free_BN(&sig->info.signature.dsa.r);
889 free_BN(&sig->info.signature.dsa.s); 885 free_BN(&sig->info.signature.dsa.s);
890 break; 886 break;
891 887
892 case OPS_PKA_ELGAMAL_ENCRYPT_OR_SIGN: 888 case OPS_PKA_ELGAMAL_ENCRYPT_OR_SIGN:
893 free_BN(&sig->info.signature.elgamal.r); 889 free_BN(&sig->info.signature.elgamal.r);
894 free_BN(&sig->info.signature.elgamal.s); 890 free_BN(&sig->info.signature.elgamal.s);
895 break; 891 break;
896 892
897 case OPS_PKA_PRIVATE00: 893 case OPS_PKA_PRIVATE00:
898 case OPS_PKA_PRIVATE01: 894 case OPS_PKA_PRIVATE01:
899 case OPS_PKA_PRIVATE02: 895 case OPS_PKA_PRIVATE02:
900 case OPS_PKA_PRIVATE03: 896 case OPS_PKA_PRIVATE03:
901 case OPS_PKA_PRIVATE04: 897 case OPS_PKA_PRIVATE04:
902 case OPS_PKA_PRIVATE05: 898 case OPS_PKA_PRIVATE05:
903 case OPS_PKA_PRIVATE06: 899 case OPS_PKA_PRIVATE06:
904 case OPS_PKA_PRIVATE07: 900 case OPS_PKA_PRIVATE07:
905 case OPS_PKA_PRIVATE08: 901 case OPS_PKA_PRIVATE08:
906 case OPS_PKA_PRIVATE09: 902 case OPS_PKA_PRIVATE09:
907 case OPS_PKA_PRIVATE10: 903 case OPS_PKA_PRIVATE10:
908 free_unknown_sig_pka(&sig->info.signature.unknown); 904 free_unknown_sig_pka(&sig->info.signature.unknown);
909 break; 905 break;
910 906
911 default: 907 default:
912 (void) fprintf(stderr, "signature_free: bad sig type\n"); 908 (void) fprintf(stderr, "signature_free: bad sig type\n");
913 } 909 }
914} 910}
915 911
916/** 912/**
917 \ingroup Core_Create 913 \ingroup Core_Create
918 \brief Free the memory used when parsing this signature sub-packet type 914 \brief Free the memory used when parsing this signature sub-packet type
919 \param ss_preferred_ska 915 \param ss_preferred_ska
920*/ 916*/
921static void  917static void
922ss_preferred_ska_free(__ops_ss_preferred_ska_t *ss_preferred_ska) 918ss_preferred_ska_free(__ops_ss_preferred_ska_t *ss_preferred_ska)
923{ 919{
924 data_free(&ss_preferred_ska->data); 920 data_free(&ss_preferred_ska->data);
925} 921}
926 922
927/** 923/**
928 \ingroup Core_Create 924 \ingroup Core_Create
929 \brief Free the memory used when parsing this signature sub-packet type 925 \brief Free the memory used when parsing this signature sub-packet type
930 \param ss_preferred_hash 926 \param ss_preferred_hash
931*/ 927*/
932static void  928static void
933ss_preferred_hash_free(__ops_ss_preferred_hash_t *ss_preferred_hash) 929ss_preferred_hash_free(__ops_ss_preferred_hash_t *ss_preferred_hash)
934{ 930{
935 data_free(&ss_preferred_hash->data); 931 data_free(&ss_preferred_hash->data);
936} 932}
937 933
938/** 934/**
939 \ingroup Core_Create 935 \ingroup Core_Create
940 \brief Free the memory used when parsing this signature sub-packet type 936 \brief Free the memory used when parsing this signature sub-packet type
941*/ 937*/
942static void  938static void
943ss_preferred_compression_free(__ops_ss_preferred_compression_t *ss_preferred_compression) 939ss_preferred_compression_free(__ops_ss_preferred_compression_t *ss_preferred_compression)
944{ 940{
945 data_free(&ss_preferred_compression->data); 941 data_free(&ss_preferred_compression->data);
946} 942}
947 943
948/** 944/**
949 \ingroup Core_Create 945 \ingroup Core_Create
950 \brief Free the memory used when parsing this signature sub-packet type 946 \brief Free the memory used when parsing this signature sub-packet type
951*/ 947*/
952static void  948static void
953ss_key_flags_free(__ops_ss_key_flags_t *ss_key_flags) 949ss_key_flags_free(__ops_ss_key_flags_t *ss_key_flags)
954{ 950{
955 data_free(&ss_key_flags->data); 951 data_free(&ss_key_flags->data);
956} 952}
957 953
958/** 954/**
959 \ingroup Core_Create 955 \ingroup Core_Create
960 \brief Free the memory used when parsing this signature sub-packet type 956 \brief Free the memory used when parsing this signature sub-packet type
961*/ 957*/
962static void  958static void
963ss_key_server_prefs_free(__ops_ss_key_server_prefs_t *ss_key_server_prefs) 959ss_key_server_prefs_free(__ops_ss_key_server_prefs_t *ss_key_server_prefs)
964{ 960{
965 data_free(&ss_key_server_prefs->data); 961 data_free(&ss_key_server_prefs->data);
966} 962}
967 963
968/** 964/**
969 \ingroup Core_Create 965 \ingroup Core_Create
970 \brief Free the memory used when parsing this signature sub-packet type 966 \brief Free the memory used when parsing this signature sub-packet type
971*/ 967*/
972static void  968static void
973ss_features_free(__ops_ss_features_t *ss_features) 969ss_features_free(__ops_ss_features_t *ss_features)
974{ 970{
975 data_free(&ss_features->data); 971 data_free(&ss_features->data);
976} 972}
977 973
978/** 974/**
979 \ingroup Core_Create 975 \ingroup Core_Create
980 \brief Free the memory used when parsing this signature sub-packet type 976 \brief Free the memory used when parsing this signature sub-packet type
981*/ 977*/
982static void  978static void
983ss_notation_data_free(__ops_ss_notation_data_t *ss_notation_data) 979ss_notation_data_free(__ops_ss_notation_data_t *ss_notation_data)
984{ 980{
985 data_free(&ss_notation_data->name); 981 data_free(&ss_notation_data->name);
986 data_free(&ss_notation_data->value); 982 data_free(&ss_notation_data->value);
987} 983}
988 984
989/** 985/**
990\ingroup Core_Create 986\ingroup Core_Create
991\brief Free allocated memory 987\brief Free allocated memory
992*/ 988*/
993/* ! Free the memory used when parsing this signature sub-packet type */ 989/* ! Free the memory used when parsing this signature sub-packet type */
994static void  990static void
995ss_regexp_free(__ops_ss_regexp_t *regexp) 991ss_regexp_free(__ops_ss_regexp_t *regexp)
996{ 992{
997 string_free(&regexp->text); 993 string_free(&regexp->text);
998} 994}
999 995
1000/** 996/**
1001\ingroup Core_Create 997\ingroup Core_Create
1002\brief Free allocated memory 998\brief Free allocated memory
1003*/ 999*/
1004/* ! Free the memory used when parsing this signature sub-packet type */ 1000/* ! Free the memory used when parsing this signature sub-packet type */
1005static void  1001static void
1006ss_policy_url_free(__ops_ss_policy_url_t *policy_url) 1002ss_policy_url_free(__ops_ss_policy_url_t *policy_url)
1007{ 1003{
1008 string_free(&policy_url->text); 1004 string_free(&policy_url->text);
1009} 1005}
1010 1006
1011/** 1007/**
1012\ingroup Core_Create 1008\ingroup Core_Create
1013\brief Free allocated memory 1009\brief Free allocated memory
1014*/ 1010*/
1015/* ! Free the memory used when parsing this signature sub-packet type */ 1011/* ! Free the memory used when parsing this signature sub-packet type */
1016static void  1012static void
1017ss_preferred_key_server_free(__ops_ss_preferred_key_server_t *preferred_key_server) 1013ss_preferred_key_server_free(__ops_ss_preferred_key_server_t *preferred_key_server)
1018{ 1014{
1019 string_free(&preferred_key_server->text); 1015 string_free(&preferred_key_server->text);
1020} 1016}
1021 1017
1022/** 1018/**
1023 \ingroup Core_Create 1019 \ingroup Core_Create
1024 \brief Free the memory used when parsing this signature sub-packet type 1020 \brief Free the memory used when parsing this signature sub-packet type
1025*/ 1021*/
1026static void  1022static void
1027ss_revocation_reason_free(__ops_ss_revocation_reason_t *ss_revocation_reason) 1023ss_revocation_reason_free(__ops_ss_revocation_reason_t *ss_revocation_reason)
1028{ 1024{
1029 string_free(&ss_revocation_reason->text); 1025 string_free(&ss_revocation_reason->text);
1030} 1026}
1031 1027
1032static void  1028static void
1033ss_embedded_signature_free(__ops_ss_embedded_signature_t *ss_embedded_signature) 1029ss_embedded_signature_free(__ops_ss_embedded_signature_t *ss_embedded_signature)
1034{ 1030{
1035 data_free(&ss_embedded_signature->sig); 1031 data_free(&ss_embedded_signature->sig);
1036} 1032}
1037 1033
1038/** 1034/**
1039\ingroup Core_Create 1035\ingroup Core_Create
1040\brief Free allocated memory 1036\brief Free allocated memory
1041*/ 1037*/
1042/* ! Free any memory allocated when parsing the packet content */ 1038/* ! Free any memory allocated when parsing the packet content */
1043void  1039void
1044__ops_parser_content_free(__ops_packet_t * c) 1040__ops_parser_content_free(__ops_packet_t * c)

cvs diff -r1.4 -r1.5 src/crypto/external/bsd/netpgp/dist/src/lib/validate.c (switch to unified diff)

--- src/crypto/external/bsd/netpgp/dist/src/lib/validate.c 2009/05/05 01:28:15 1.4
+++ src/crypto/external/bsd/netpgp/dist/src/lib/validate.c 2009/05/05 15:29:46 1.5
@@ -1,716 +1,712 @@ @@ -1,716 +1,712 @@
1/* 1/*
2 * Copyright (c) 2005-2008 Nominet UK (www.nic.uk) 2 * Copyright (c) 2005-2008 Nominet UK (www.nic.uk)
3 * All rights reserved. 3 * All rights reserved.
4 * Contributors: Ben Laurie, Rachel Willmer. The Contributors have asserted 4 * Contributors: Ben Laurie, Rachel Willmer. The Contributors have asserted
5 * their moral rights under the UK Copyright Design and Patents Act 1988 to 5 * their moral rights under the UK Copyright Design and Patents Act 1988 to
6 * be recorded as the authors of this copyright work. 6 * be recorded as the authors of this copyright work.
7 * 7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 8 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
9 * use this file except in compliance with the License. 9 * use this file except in compliance with the License.
10 * 10 *
11 * You may obtain a copy of the License at 11 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0 12 * http://www.apache.org/licenses/LICENSE-2.0
13 * 13 *
14 * Unless required by applicable law or agreed to in writing, software 14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, 15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * 17 *
18 * See the License for the specific language governing permissions and 18 * See the License for the specific language governing permissions and
19 * limitations under the License. 19 * limitations under the License.
20 */ 20 */
21#include "config.h" 21#include "config.h"
22 22
23#include "packet-parse.h" 23#include "packet-parse.h"
24#include "packet-show.h" 24#include "packet-show.h"
25#include "keyring.h" 25#include "keyring.h"
26#include "signature.h" 26#include "signature.h"
27#include "netpgpsdk.h" 27#include "netpgpsdk.h"
28 28
29#include "readerwriter.h" 29#include "readerwriter.h"
30#include "netpgpdefs.h" 30#include "netpgpdefs.h"
31#include "memory.h" 31#include "memory.h"
32#include "keyring_local.h" 32#include "keyring_local.h"
33#include "parse_local.h" 33#include "parse_local.h"
34#include "validate.h" 34#include "validate.h"
35 35
36#include <sys/types.h> 36#include <sys/types.h>
37#include <sys/param.h> 37#include <sys/param.h>
38#include <sys/stat.h> 38#include <sys/stat.h>
39 39
40#ifdef HAVE_ASSERT_H 
41#include <assert.h> 
42#endif 
43 
44#include <string.h> 40#include <string.h>
45#include <stdio.h> 41#include <stdio.h>
46 42
47 43
48/* Does the signed hash match the given hash? */ 44/* Does the signed hash match the given hash? */
49static bool 45static bool
50check_binary_signature(const unsigned len, 46check_binary_signature(const unsigned len,
51 const unsigned char *data, 47 const unsigned char *data,
52 const __ops_signature_t * sig, 48 const __ops_signature_t * sig,
53 const __ops_public_key_t * signer __attribute__((unused))) 49 const __ops_public_key_t * signer __attribute__((unused)))
54{ 50{
55 unsigned char hashout[OPS_MAX_HASH_SIZE]; 51 unsigned char hashout[OPS_MAX_HASH_SIZE];
56 unsigned char trailer[6]; 52 unsigned char trailer[6];
57 unsigned int hashedlen; 53 unsigned int hashedlen;
58 __ops_hash_t hash; 54 __ops_hash_t hash;
59 unsigned n = 0; 55 unsigned n = 0;
60 56
61 __ops_hash_any(&hash, sig->info.hash_algorithm); 57 __ops_hash_any(&hash, sig->info.hash_algorithm);
62 hash.init(&hash); 58 hash.init(&hash);
63 hash.add(&hash, data, len); 59 hash.add(&hash, data, len);
64 switch (sig->info.version) { 60 switch (sig->info.version) {
65 case OPS_V3: 61 case OPS_V3:
66 trailer[0] = sig->info.type; 62 trailer[0] = sig->info.type;
67 trailer[1] = (unsigned)(sig->info.creation_time) >> 24; 63 trailer[1] = (unsigned)(sig->info.creation_time) >> 24;
68 trailer[2] = (unsigned)(sig->info.creation_time) >> 16; 64 trailer[2] = (unsigned)(sig->info.creation_time) >> 16;
69 trailer[3] = (unsigned)(sig->info.creation_time) >> 8; 65 trailer[3] = (unsigned)(sig->info.creation_time) >> 8;
70 trailer[4] = (unsigned char)(sig->info.creation_time); 66 trailer[4] = (unsigned char)(sig->info.creation_time);
71 hash.add(&hash, &trailer[0], 5); 67 hash.add(&hash, &trailer[0], 5);
72 break; 68 break;
73 69
74 case OPS_V4: 70 case OPS_V4:
75 hash.add(&hash, sig->info.v4_hashed_data, 71 hash.add(&hash, sig->info.v4_hashed_data,
76 sig->info.v4_hashed_data_length); 72 sig->info.v4_hashed_data_length);
77 trailer[0] = 0x04; /* version */ 73 trailer[0] = 0x04; /* version */
78 trailer[1] = 0xFF; 74 trailer[1] = 0xFF;
79 hashedlen = sig->info.v4_hashed_data_length; 75 hashedlen = sig->info.v4_hashed_data_length;
80 trailer[2] = hashedlen >> 24; 76 trailer[2] = hashedlen >> 24;
81 trailer[3] = hashedlen >> 16; 77 trailer[3] = hashedlen >> 16;
82 trailer[4] = hashedlen >> 8; 78 trailer[4] = hashedlen >> 8;
83 trailer[5] = hashedlen; 79 trailer[5] = hashedlen;
84 hash.add(&hash, &trailer[0], 6); 80 hash.add(&hash, &trailer[0], 6);
85 break; 81 break;
86 82
87 default: 83 default:
88 fprintf(stderr, "Invalid signature version %d\n", 84 fprintf(stderr, "Invalid signature version %d\n",
89 sig->info.version); 85 sig->info.version);
90 return false; 86 return false;
91 } 87 }
92 88
93 n = hash.finish(&hash, hashout); 89 n = hash.finish(&hash, hashout);
94 if (__ops_get_debug_level(__FILE__)) { 90 if (__ops_get_debug_level(__FILE__)) {
95 printf("check_binary_signature: hash length %" PRIsize "u\n", 91 printf("check_binary_signature: hash length %" PRIsize "u\n",
96 hash.size); 92 hash.size);
97 } 93 }
98 return __ops_check_signature(hashout, n, sig, signer); 94 return __ops_check_signature(hashout, n, sig, signer);
99} 95}
100 96
101static int  97static int
102keydata_reader(void *dest, size_t length, __ops_error_t ** errors, 98keydata_reader(void *dest, size_t length, __ops_error_t ** errors,
103 __ops_reader_info_t * rinfo, 99 __ops_reader_info_t * rinfo,
104 __ops_parse_cb_info_t * cbinfo) 100 __ops_parse_cb_info_t * cbinfo)
105{ 101{
106 validate_reader_t *reader = __ops_reader_get_arg(rinfo); 102 validate_reader_t *reader = __ops_reader_get_arg(rinfo);
107 103
108 OPS_USED(errors); 104 OPS_USED(errors);
109 OPS_USED(cbinfo); 105 OPS_USED(cbinfo);
110 if (reader->offset == reader->key->packets[reader->packet].length) { 106 if (reader->offset == reader->key->packets[reader->packet].length) {
111 reader->packet += 1; 107 reader->packet += 1;
112 reader->offset = 0; 108 reader->offset = 0;
113 } 109 }
114 if (reader->packet == reader->key->npackets) { 110 if (reader->packet == reader->key->npackets) {
115 return 0; 111 return 0;
116 } 112 }
117 113
118 /* 114 /*
119 * we should never be asked to cross a packet boundary in a single 115 * we should never be asked to cross a packet boundary in a single
120 * read 116 * read
121 */ 117 */
122 if (reader->key->packets[reader->packet].length < 118 if (reader->key->packets[reader->packet].length <
123 reader->offset + length) { 119 reader->offset + length) {
124 (void) fprintf(stderr, "keydata_reader: weird length\n"); 120 (void) fprintf(stderr, "keydata_reader: weird length\n");
125 return 0; 121 return 0;
126 } 122 }
127 123
128 (void) memcpy(dest, 124 (void) memcpy(dest,
129 &reader->key->packets[reader->packet].raw[reader->offset], 125 &reader->key->packets[reader->packet].raw[reader->offset],
130 length); 126 length);
131 reader->offset += length; 127 reader->offset += length;
132 128
133 return length; 129 return length;
134} 130}
135 131
136static void  132static void
137free_signature_info(__ops_signature_info_t * sig) 133free_signature_info(__ops_signature_info_t * sig)
138{ 134{
139 (void) free(sig->v4_hashed_data); 135 (void) free(sig->v4_hashed_data);
140 (void) free(sig); 136 (void) free(sig);
141} 137}
142 138
143static void  139static void
144copy_signature_info(__ops_signature_info_t * dst, 140copy_signature_info(__ops_signature_info_t * dst,
145 const __ops_signature_info_t * src) 141 const __ops_signature_info_t * src)
146{ 142{
147 (void) memcpy(dst, src, sizeof(*src)); 143 (void) memcpy(dst, src, sizeof(*src));
148 dst->v4_hashed_data = calloc(1, src->v4_hashed_data_length); 144 dst->v4_hashed_data = calloc(1, src->v4_hashed_data_length);
149 (void) memcpy(dst->v4_hashed_data, src->v4_hashed_data, 145 (void) memcpy(dst->v4_hashed_data, src->v4_hashed_data,
150 src->v4_hashed_data_length); 146 src->v4_hashed_data_length);
151} 147}
152 148
153static void  149static void
154add_sig_to_list(const __ops_signature_info_t *sig, 150add_sig_to_list(const __ops_signature_info_t *sig,
155 __ops_signature_info_t **sigs, 151 __ops_signature_info_t **sigs,
156 unsigned *count) 152 unsigned *count)
157{ 153{
158 if (*count == 0) { 154 if (*count == 0) {
159 *sigs = calloc(*count + 1, sizeof(__ops_signature_info_t)); 155 *sigs = calloc(*count + 1, sizeof(__ops_signature_info_t));
160 } else { 156 } else {
161 *sigs = realloc(*sigs, 157 *sigs = realloc(*sigs,
162 (*count + 1) * sizeof(__ops_signature_info_t)); 158 (*count + 1) * sizeof(__ops_signature_info_t));
163 } 159 }
164 copy_signature_info(&(*sigs)[*count], sig); 160 copy_signature_info(&(*sigs)[*count], sig);
165 *count += 1; 161 *count += 1;
166} 162}
167 163
168 164
169__ops_parse_cb_return_t 165__ops_parse_cb_return_t
170__ops_validate_key_cb(const __ops_packet_t * contents, 166__ops_validate_key_cb(const __ops_packet_t * contents,
171 __ops_parse_cb_info_t * cbinfo) 167 __ops_parse_cb_info_t * cbinfo)
172{ 168{
173 const __ops_parser_content_union_t *content = &contents->u; 169 const __ops_parser_content_union_t *content = &contents->u;
174 const __ops_keydata_t *signer; 170 const __ops_keydata_t *signer;
175 validate_key_cb_t *key = __ops_parse_cb_get_arg(cbinfo); 171 validate_key_cb_t *key = __ops_parse_cb_get_arg(cbinfo);
176 __ops_error_t **errors = __ops_parse_cb_get_errors(cbinfo); 172 __ops_error_t **errors = __ops_parse_cb_get_errors(cbinfo);
177 bool valid = false; 173 bool valid = false;
178 174
179 if (__ops_get_debug_level(__FILE__)) { 175 if (__ops_get_debug_level(__FILE__)) {
180 printf("%s\n", __ops_show_packet_tag(contents->tag)); 176 printf("%s\n", __ops_show_packet_tag(contents->tag));
181 } 177 }
182 178
183 switch (contents->tag) { 179 switch (contents->tag) {
184 case OPS_PTAG_CT_PUBLIC_KEY: 180 case OPS_PTAG_CT_PUBLIC_KEY:
185 if (key->pkey.version != 0) { 181 if (key->pkey.version != 0) {
186 (void) fprintf(stderr, 182 (void) fprintf(stderr,
187 "__ops_validate_key_cb: version bad\n"); 183 "__ops_validate_key_cb: version bad\n");
188 return OPS_FINISHED; 184 return OPS_FINISHED;
189 } 185 }
190 key->pkey = content->pubkey; 186 key->pkey = content->pubkey;
191 return OPS_KEEP_MEMORY; 187 return OPS_KEEP_MEMORY;
192 188
193 case OPS_PTAG_CT_PUBLIC_SUBKEY: 189 case OPS_PTAG_CT_PUBLIC_SUBKEY:
194 if (key->subkey.version) 190 if (key->subkey.version)
195 __ops_public_key_free(&key->subkey); 191 __ops_public_key_free(&key->subkey);
196 key->subkey = content->pubkey; 192 key->subkey = content->pubkey;
197 return OPS_KEEP_MEMORY; 193 return OPS_KEEP_MEMORY;
198 194
199 case OPS_PTAG_CT_SECRET_KEY: 195 case OPS_PTAG_CT_SECRET_KEY:
200 key->skey = content->secret_key; 196 key->skey = content->secret_key;
201 key->pkey = key->skey.pubkey; 197 key->pkey = key->skey.pubkey;
202 return OPS_KEEP_MEMORY; 198 return OPS_KEEP_MEMORY;
203 199
204 case OPS_PTAG_CT_USER_ID: 200 case OPS_PTAG_CT_USER_ID:
205 if (key->user_id.user_id) 201 if (key->user_id.user_id)
206 __ops_user_id_free(&key->user_id); 202 __ops_user_id_free(&key->user_id);
207 key->user_id = content->user_id; 203 key->user_id = content->user_id;
208 key->last_seen = ID; 204 key->last_seen = ID;
209 return OPS_KEEP_MEMORY; 205 return OPS_KEEP_MEMORY;
210 206
211 case OPS_PTAG_CT_USER_ATTRIBUTE: 207 case OPS_PTAG_CT_USER_ATTRIBUTE:
212 if (content->user_attribute.data.len == 0) { 208 if (content->user_attribute.data.len == 0) {
213 (void) fprintf(stderr, 209 (void) fprintf(stderr,
214"__ops_validate_key_cb: user attribute length 0"); 210"__ops_validate_key_cb: user attribute length 0");
215 return OPS_FINISHED; 211 return OPS_FINISHED;
216 } 212 }
217 printf("user attribute, length=%d\n", 213 printf("user attribute, length=%d\n",
218 (int) content->user_attribute.data.len); 214 (int) content->user_attribute.data.len);
219 if (key->user_attribute.data.len) 215 if (key->user_attribute.data.len)
220 __ops_user_attribute_free(&key->user_attribute); 216 __ops_user_attribute_free(&key->user_attribute);
221 key->user_attribute = content->user_attribute; 217 key->user_attribute = content->user_attribute;
222 key->last_seen = ATTRIBUTE; 218 key->last_seen = ATTRIBUTE;
223 return OPS_KEEP_MEMORY; 219 return OPS_KEEP_MEMORY;
224 220
225 case OPS_PTAG_CT_SIGNATURE: /* V3 sigs */ 221 case OPS_PTAG_CT_SIGNATURE: /* V3 sigs */
226 case OPS_PTAG_CT_SIGNATURE_FOOTER: /* V4 sigs */ 222 case OPS_PTAG_CT_SIGNATURE_FOOTER: /* V4 sigs */
227 223
228 signer = __ops_keyring_find_key_by_id(key->keyring, 224 signer = __ops_keyring_find_key_by_id(key->keyring,
229 content->signature.info.signer_id); 225 content->signature.info.signer_id);
230 if (!signer) { 226 if (!signer) {
231 add_sig_to_list(&content->signature.info, 227 add_sig_to_list(&content->signature.info,
232 &key->result->unknown_sigs, 228 &key->result->unknown_sigs,
233 &key->result->unknownc); 229 &key->result->unknownc);
234 break; 230 break;
235 } 231 }
236 switch (content->signature.info.type) { 232 switch (content->signature.info.type) {
237 case OPS_CERT_GENERIC: 233 case OPS_CERT_GENERIC:
238 case OPS_CERT_PERSONA: 234 case OPS_CERT_PERSONA:
239 case OPS_CERT_CASUAL: 235 case OPS_CERT_CASUAL:
240 case OPS_CERT_POSITIVE: 236 case OPS_CERT_POSITIVE:
241 case OPS_SIG_REV_CERT: 237 case OPS_SIG_REV_CERT:
242 if (key->last_seen == ID) 238 if (key->last_seen == ID)
243 valid = __ops_check_useridcert_sig(&key->pkey, 239 valid = __ops_check_useridcert_sig(&key->pkey,
244 &key->user_id, 240 &key->user_id,
245 &content->signature, 241 &content->signature,
246 __ops_get_public_key_from_data(signer), 242 __ops_get_public_key_from_data(signer),
247 key->rarg->key->packets[key->rarg->packet].raw); 243 key->rarg->key->packets[key->rarg->packet].raw);
248 else 244 else
249 valid = __ops_check_userattrcert_sig(&key->pkey, 245 valid = __ops_check_userattrcert_sig(&key->pkey,
250 &key->user_attribute, 246 &key->user_attribute,
251 &content->signature, 247 &content->signature,
252 __ops_get_public_key_from_data(signer), 248 __ops_get_public_key_from_data(signer),
253 key->rarg->key->packets[key->rarg->packet].raw); 249 key->rarg->key->packets[key->rarg->packet].raw);
254 250
255 break; 251 break;
256 252
257 case OPS_SIG_SUBKEY: 253 case OPS_SIG_SUBKEY:
258 /* 254 /*
259 * XXX: we should also check that the signer is the 255 * XXX: we should also check that the signer is the
260 * key we are validating, I think. 256 * key we are validating, I think.
261 */ 257 */
262 valid = __ops_check_subkey_signature(&key->pkey, &key->subkey, 258 valid = __ops_check_subkey_signature(&key->pkey, &key->subkey,
263 &content->signature, 259 &content->signature,
264 __ops_get_public_key_from_data(signer), 260 __ops_get_public_key_from_data(signer),
265 key->rarg->key->packets[key->rarg->packet].raw); 261 key->rarg->key->packets[key->rarg->packet].raw);
266 break; 262 break;
267 263
268 case OPS_SIG_DIRECT: 264 case OPS_SIG_DIRECT:
269 valid = __ops_check_direct_signature(&key->pkey, &content->signature, 265 valid = __ops_check_direct_signature(&key->pkey, &content->signature,
270 __ops_get_public_key_from_data(signer), 266 __ops_get_public_key_from_data(signer),
271 key->rarg->key->packets[key->rarg->packet].raw); 267 key->rarg->key->packets[key->rarg->packet].raw);
272 break; 268 break;
273 269
274 case OPS_SIG_STANDALONE: 270 case OPS_SIG_STANDALONE:
275 case OPS_SIG_PRIMARY: 271 case OPS_SIG_PRIMARY:
276 case OPS_SIG_REV_KEY: 272 case OPS_SIG_REV_KEY:
277 case OPS_SIG_REV_SUBKEY: 273 case OPS_SIG_REV_SUBKEY:
278 case OPS_SIG_TIMESTAMP: 274 case OPS_SIG_TIMESTAMP:
279 case OPS_SIG_3RD_PARTY: 275 case OPS_SIG_3RD_PARTY:
280 OPS_ERROR_1(errors, OPS_E_UNIMPLEMENTED, 276 OPS_ERROR_1(errors, OPS_E_UNIMPLEMENTED,
281 "Sig Verification type 0x%02x not done yet\n", 277 "Sig Verification type 0x%02x not done yet\n",
282 content->signature.info.type); 278 content->signature.info.type);
283 break; 279 break;
284 280
285 default: 281 default:
286 OPS_ERROR_1(errors, OPS_E_UNIMPLEMENTED, 282 OPS_ERROR_1(errors, OPS_E_UNIMPLEMENTED,
287 "Unexpected signature type 0x%02x\n", 283 "Unexpected signature type 0x%02x\n",
288 content->signature.info.type); 284 content->signature.info.type);
289 } 285 }
290 286
291 if (valid) { 287 if (valid) {
292 add_sig_to_list(&content->signature.info, 288 add_sig_to_list(&content->signature.info,
293 &key->result->valid_sigs, 289 &key->result->valid_sigs,
294 &key->result->validc); 290 &key->result->validc);
295 } else { 291 } else {
296 OPS_ERROR(errors, OPS_E_V_BAD_SIGNATURE, "Bad Sig"); 292 OPS_ERROR(errors, OPS_E_V_BAD_SIGNATURE, "Bad Sig");
297 add_sig_to_list(&content->signature.info, 293 add_sig_to_list(&content->signature.info,
298 &key->result->invalid_sigs, 294 &key->result->invalid_sigs,
299 &key->result->invalidc); 295 &key->result->invalidc);
300 } 296 }
301 break; 297 break;
302 298
303 /* ignore these */ 299 /* ignore these */
304 case OPS_PARSER_PTAG: 300 case OPS_PARSER_PTAG:
305 case OPS_PTAG_CT_SIGNATURE_HEADER: 301 case OPS_PTAG_CT_SIGNATURE_HEADER:
306 case OPS_PARSER_PACKET_END: 302 case OPS_PARSER_PACKET_END:
307 break; 303 break;
308 304
309 case OPS_PARSER_CMD_GET_SK_PASSPHRASE: 305 case OPS_PARSER_CMD_GET_SK_PASSPHRASE:
310 if (key->cb_get_passphrase) { 306 if (key->cb_get_passphrase) {
311 return key->cb_get_passphrase(contents, cbinfo); 307 return key->cb_get_passphrase(contents, cbinfo);
312 } 308 }
313 break; 309 break;
314 310
315 default: 311 default:
316 (void) fprintf(stderr, "unexpected tag=0x%x\n", contents->tag); 312 (void) fprintf(stderr, "unexpected tag=0x%x\n", contents->tag);
317 return OPS_FINISHED; 313 return OPS_FINISHED;
318 } 314 }
319 return OPS_RELEASE_MEMORY; 315 return OPS_RELEASE_MEMORY;
320} 316}
321 317
322__ops_parse_cb_return_t 318__ops_parse_cb_return_t
323validate_data_cb(const __ops_packet_t * contents, 319validate_data_cb(const __ops_packet_t * contents,
324 __ops_parse_cb_info_t * cbinfo) 320 __ops_parse_cb_info_t * cbinfo)
325{ 321{
326 const __ops_parser_content_union_t *content = &contents->u; 322 const __ops_parser_content_union_t *content = &contents->u;
327 const __ops_keydata_t *signer; 323 const __ops_keydata_t *signer;
328 validate_data_cb_t *data = __ops_parse_cb_get_arg(cbinfo); 324 validate_data_cb_t *data = __ops_parse_cb_get_arg(cbinfo);
329 __ops_error_t **errors = __ops_parse_cb_get_errors(cbinfo); 325 __ops_error_t **errors = __ops_parse_cb_get_errors(cbinfo);
330 bool valid = false; 326 bool valid = false;
331 327
332 if (__ops_get_debug_level(__FILE__)) { 328 if (__ops_get_debug_level(__FILE__)) {
333 printf("validate_data_cb: %s\n", 329 printf("validate_data_cb: %s\n",
334 __ops_show_packet_tag(contents->tag)); 330 __ops_show_packet_tag(contents->tag));
335 } 331 }
336 switch (contents->tag) { 332 switch (contents->tag) {
337 case OPS_PTAG_CT_SIGNED_CLEARTEXT_HEADER: 333 case OPS_PTAG_CT_SIGNED_CLEARTEXT_HEADER:
338 /* 334 /*
339 * ignore - this gives us the "Armor Header" line "Hash: 335 * ignore - this gives us the "Armor Header" line "Hash:
340 * SHA1" or similar 336 * SHA1" or similar
341 */ 337 */
342 break; 338 break;
343 339
344 case OPS_PTAG_CT_LITERAL_DATA_HEADER: 340 case OPS_PTAG_CT_LITERAL_DATA_HEADER:
345 /* ignore */ 341 /* ignore */
346 break; 342 break;
347 343
348 case OPS_PTAG_CT_LITERAL_DATA_BODY: 344 case OPS_PTAG_CT_LITERAL_DATA_BODY:
349 data->data.literal_data_body = content->literal_data_body; 345 data->data.literal_data_body = content->literal_data_body;
350 data->use = LITERAL_DATA; 346 data->use = LITERAL_DATA;
351 __ops_memory_add(data->mem, data->data.literal_data_body.data, 347 __ops_memory_add(data->mem, data->data.literal_data_body.data,
352 data->data.literal_data_body.length); 348 data->data.literal_data_body.length);
353 return OPS_KEEP_MEMORY; 349 return OPS_KEEP_MEMORY;
354 350
355 case OPS_PTAG_CT_SIGNED_CLEARTEXT_BODY: 351 case OPS_PTAG_CT_SIGNED_CLEARTEXT_BODY:
356 data->data.signed_cleartext_body = content->signed_cleartext_body; 352 data->data.signed_cleartext_body = content->signed_cleartext_body;
357 data->use = SIGNED_CLEARTEXT; 353 data->use = SIGNED_CLEARTEXT;
358 __ops_memory_add(data->mem, data->data.literal_data_body.data, 354 __ops_memory_add(data->mem, data->data.literal_data_body.data,
359 data->data.literal_data_body.length); 355 data->data.literal_data_body.length);
360 return OPS_KEEP_MEMORY; 356 return OPS_KEEP_MEMORY;
361 357
362 case OPS_PTAG_CT_SIGNED_CLEARTEXT_TRAILER: 358 case OPS_PTAG_CT_SIGNED_CLEARTEXT_TRAILER:
363 /* this gives us an __ops_hash_t struct */ 359 /* this gives us an __ops_hash_t struct */
364 break; 360 break;
365 361
366 case OPS_PTAG_CT_SIGNATURE: /* V3 sigs */ 362 case OPS_PTAG_CT_SIGNATURE: /* V3 sigs */
367 case OPS_PTAG_CT_SIGNATURE_FOOTER: /* V4 sigs */ 363 case OPS_PTAG_CT_SIGNATURE_FOOTER: /* V4 sigs */
368 if (__ops_get_debug_level(__FILE__)) { 364 if (__ops_get_debug_level(__FILE__)) {
369 unsigned i = 0; 365 unsigned i = 0;
370 366
371 printf("\n*** hashed data:\n"); 367 printf("\n*** hashed data:\n");
372 for (i = 0; 368 for (i = 0;
373 i < content->signature.info.v4_hashed_data_length; 369 i < content->signature.info.v4_hashed_data_length;
374 i++) { 370 i++) {
375 printf("0x%02x ", 371 printf("0x%02x ",
376 content->signature.info.v4_hashed_data[i]); 372 content->signature.info.v4_hashed_data[i]);
377 } 373 }
378 printf("\n"); 374 printf("\n");
379 printf(" type=%02x signer_id=", 375 printf(" type=%02x signer_id=",
380 content->signature.info.type); 376 content->signature.info.type);
381 hexdump(content->signature.info.signer_id, 377 hexdump(content->signature.info.signer_id,
382 sizeof(content->signature.info.signer_id), ""); 378 sizeof(content->signature.info.signer_id), "");
383 printf("\n"); 379 printf("\n");
384 } 380 }
385 signer = __ops_keyring_find_key_by_id(data->keyring, 381 signer = __ops_keyring_find_key_by_id(data->keyring,
386 content->signature.info.signer_id); 382 content->signature.info.signer_id);
387 if (!signer) { 383 if (!signer) {
388 OPS_ERROR(errors, OPS_E_V_UNKNOWN_SIGNER, 384 OPS_ERROR(errors, OPS_E_V_UNKNOWN_SIGNER,
389 "Unknown Signer"); 385 "Unknown Signer");
390 add_sig_to_list(&content->signature.info, 386 add_sig_to_list(&content->signature.info,
391 &data->result->unknown_sigs, 387 &data->result->unknown_sigs,
392 &data->result->unknownc); 388 &data->result->unknownc);
393 break; 389 break;
394 } 390 }
395 switch (content->signature.info.type) { 391 switch (content->signature.info.type) {
396 case OPS_SIG_BINARY: 392 case OPS_SIG_BINARY:
397 case OPS_SIG_TEXT: 393 case OPS_SIG_TEXT:
398 valid = check_binary_signature( 394 valid = check_binary_signature(
399 __ops_memory_get_length(data->mem), 395 __ops_memory_get_length(data->mem),
400 __ops_memory_get_data(data->mem), 396 __ops_memory_get_data(data->mem),
401 &content->signature, 397 &content->signature,
402 __ops_get_public_key_from_data(signer)); 398 __ops_get_public_key_from_data(signer));
403 break; 399 break;
404 400
405 default: 401 default:
406 OPS_ERROR_1(errors, OPS_E_UNIMPLEMENTED, 402 OPS_ERROR_1(errors, OPS_E_UNIMPLEMENTED,
407 "No Sig Verification type 0x%02x yet\n", 403 "No Sig Verification type 0x%02x yet\n",
408 content->signature.info.type); 404 content->signature.info.type);
409 break; 405 break;
410 406
411 } 407 }
412 408
413 __ops_memory_free(data->mem); 409 __ops_memory_free(data->mem);
414 410
415 if (valid) { 411 if (valid) {
416 add_sig_to_list(&content->signature.info, 412 add_sig_to_list(&content->signature.info,
417 &data->result->valid_sigs, 413 &data->result->valid_sigs,
418 &data->result->validc); 414 &data->result->validc);
419 } else { 415 } else {
420 OPS_ERROR(errors, OPS_E_V_BAD_SIGNATURE, 416 OPS_ERROR(errors, OPS_E_V_BAD_SIGNATURE,
421 "Bad Signature"); 417 "Bad Signature");
422 add_sig_to_list(&content->signature.info, 418 add_sig_to_list(&content->signature.info,
423 &data->result->invalid_sigs, 419 &data->result->invalid_sigs,
424 &data->result->invalidc); 420 &data->result->invalidc);
425 } 421 }
426 break; 422 break;
427 423
428 /* ignore these */ 424 /* ignore these */
429 case OPS_PARSER_PTAG: 425 case OPS_PARSER_PTAG:
430 case OPS_PTAG_CT_SIGNATURE_HEADER: 426 case OPS_PTAG_CT_SIGNATURE_HEADER:
431 case OPS_PTAG_CT_ARMOUR_HEADER: 427 case OPS_PTAG_CT_ARMOUR_HEADER:
432 case OPS_PTAG_CT_ARMOUR_TRAILER: 428 case OPS_PTAG_CT_ARMOUR_TRAILER:
433 case OPS_PTAG_CT_ONE_PASS_SIGNATURE: 429 case OPS_PTAG_CT_ONE_PASS_SIGNATURE:
434 case OPS_PARSER_PACKET_END: 430 case OPS_PARSER_PACKET_END:
435 break; 431 break;
436 432
437 default: 433 default:
438 OPS_ERROR(errors, OPS_E_V_NO_SIGNATURE, "No signature"); 434 OPS_ERROR(errors, OPS_E_V_NO_SIGNATURE, "No signature");
439 break; 435 break;
440 } 436 }
441 return OPS_RELEASE_MEMORY; 437 return OPS_RELEASE_MEMORY;
442} 438}
443 439
444static void  440static void
445keydata_destroyer(__ops_reader_info_t * rinfo) 441keydata_destroyer(__ops_reader_info_t * rinfo)
446{ 442{
447 free(__ops_reader_get_arg(rinfo)); 443 free(__ops_reader_get_arg(rinfo));
448} 444}
449 445
450void  446void
451__ops_keydata_reader_set(__ops_parse_info_t *pinfo, 447__ops_keydata_reader_set(__ops_parse_info_t *pinfo,
452 const __ops_keydata_t *key) 448 const __ops_keydata_t *key)
453{ 449{
454 validate_reader_t *data = calloc(1, sizeof(*data)); 450 validate_reader_t *data = calloc(1, sizeof(*data));
455 451
456 data->key = key; 452 data->key = key;
457 data->packet = 0; 453 data->packet = 0;
458 data->offset = 0; 454 data->offset = 0;
459 455
460 __ops_reader_set(pinfo, keydata_reader, keydata_destroyer, data); 456 __ops_reader_set(pinfo, keydata_reader, keydata_destroyer, data);
461} 457}
462 458
463/** 459/**
464 * \ingroup HighLevel_Verify 460 * \ingroup HighLevel_Verify
465 * \brief Indicicates whether any errors were found 461 * \brief Indicicates whether any errors were found
466 * \param result Validation result to check 462 * \param result Validation result to check
467 * \return false if any invalid signatures or unknown signers 463 * \return false if any invalid signatures or unknown signers
468 or no valid signatures; else true 464 or no valid signatures; else true
469 */ 465 */
470static bool  466static bool
471validate_result_status(__ops_validation_t *val) 467validate_result_status(__ops_validation_t *val)
472{ 468{
473 return val->validc && !val->invalidc && !val->unknownc; 469 return val->validc && !val->invalidc && !val->unknownc;
474} 470}
475 471
476/** 472/**
477 * \ingroup HighLevel_Verify 473 * \ingroup HighLevel_Verify
478 * \brief Validate all signatures on a single key against the given keyring 474 * \brief Validate all signatures on a single key against the given keyring
479 * \param result Where to put the result 475 * \param result Where to put the result
480 * \param key Key to validate 476 * \param key Key to validate
481 * \param keyring Keyring to use for validation 477 * \param keyring Keyring to use for validation
482 * \param cb_get_passphrase Callback to use to get passphrase 478 * \param cb_get_passphrase Callback to use to get passphrase
483 * \return true if all signatures OK; else false 479 * \return true if all signatures OK; else false
484 * \note It is the caller's responsiblity to free result after use. 480 * \note It is the caller's responsiblity to free result after use.
485 * \sa __ops_validate_result_free() 481 * \sa __ops_validate_result_free()
486 */ 482 */
487bool  483bool
488__ops_validate_key_signatures(__ops_validation_t * result, 484__ops_validate_key_signatures(__ops_validation_t * result,
489 const __ops_keydata_t * key, 485 const __ops_keydata_t * key,
490 const __ops_keyring_t * keyring, 486 const __ops_keyring_t * keyring,
491 __ops_parse_cb_return_t cb_get_passphrase(const __ops_packet_t *, __ops_parse_cb_info_t *) 487 __ops_parse_cb_return_t cb_get_passphrase(const __ops_packet_t *, __ops_parse_cb_info_t *)
492) 488)
493{ 489{
494 __ops_parse_info_t *pinfo; 490 __ops_parse_info_t *pinfo;
495 validate_key_cb_t carg; 491 validate_key_cb_t carg;
496 492
497 (void) memset(&carg, 0x0, sizeof(carg)); 493 (void) memset(&carg, 0x0, sizeof(carg));
498 carg.result = result; 494 carg.result = result;
499 carg.cb_get_passphrase = cb_get_passphrase; 495 carg.cb_get_passphrase = cb_get_passphrase;
500 496
501 pinfo = __ops_parse_info_new(); 497 pinfo = __ops_parse_info_new();
502 /* __ops_parse_options(&opt,OPS_PTAG_CT_SIGNATURE,OPS_PARSE_PARSED); */ 498 /* __ops_parse_options(&opt,OPS_PTAG_CT_SIGNATURE,OPS_PARSE_PARSED); */
503 499
504 carg.keyring = keyring; 500 carg.keyring = keyring;
505 501
506 __ops_parse_cb_set(pinfo, __ops_validate_key_cb, &carg); 502 __ops_parse_cb_set(pinfo, __ops_validate_key_cb, &carg);
507 pinfo->rinfo.accumulate = true; 503 pinfo->rinfo.accumulate = true;
508 __ops_keydata_reader_set(pinfo, key); 504 __ops_keydata_reader_set(pinfo, key);
509 505
510 /* Note: Coverity incorrectly reports an error that carg.rarg */ 506 /* Note: Coverity incorrectly reports an error that carg.rarg */
511 /* is never used. */ 507 /* is never used. */
512 carg.rarg = pinfo->rinfo.arg; 508 carg.rarg = pinfo->rinfo.arg;
513 509
514 __ops_parse(pinfo, 0); 510 __ops_parse(pinfo, 0);
515 511
516 __ops_public_key_free(&carg.pkey); 512 __ops_public_key_free(&carg.pkey);
517 if (carg.subkey.version) 513 if (carg.subkey.version)
518 __ops_public_key_free(&carg.subkey); 514 __ops_public_key_free(&carg.subkey);
519 __ops_user_id_free(&carg.user_id); 515 __ops_user_id_free(&carg.user_id);
520 __ops_user_attribute_free(&carg.user_attribute); 516 __ops_user_attribute_free(&carg.user_attribute);
521 517
522 __ops_parse_info_delete(pinfo); 518 __ops_parse_info_delete(pinfo);
523 519
524 if (result->invalidc || result->unknownc || !result->validc) 520 if (result->invalidc || result->unknownc || !result->validc)
525 return false; 521 return false;
526 else 522 else
527 return true; 523 return true;
528} 524}
529 525
530/** 526/**
531 \ingroup HighLevel_Verify 527 \ingroup HighLevel_Verify
532 \param result Where to put the result 528 \param result Where to put the result
533 \param ring Keyring to use 529 \param ring Keyring to use
534 \param cb_get_passphrase Callback to use to get passphrase 530 \param cb_get_passphrase Callback to use to get passphrase
535 \note It is the caller's responsibility to free result after use. 531 \note It is the caller's responsibility to free result after use.
536 \sa __ops_validate_result_free() 532 \sa __ops_validate_result_free()
537*/ 533*/
538bool  534bool
539__ops_validate_all_signatures(__ops_validation_t * result, 535__ops_validate_all_signatures(__ops_validation_t * result,
540 const __ops_keyring_t * ring, 536 const __ops_keyring_t * ring,
541 __ops_parse_cb_return_t cb_get_passphrase(const __ops_packet_t *, __ops_parse_cb_info_t *) 537 __ops_parse_cb_return_t cb_get_passphrase(const __ops_packet_t *, __ops_parse_cb_info_t *)
542) 538)
543{ 539{
544 int n; 540 int n;
545 541
546 (void) memset(result, 0x0, sizeof(*result)); 542 (void) memset(result, 0x0, sizeof(*result));
547 for (n = 0; n < ring->nkeys; ++n) { 543 for (n = 0; n < ring->nkeys; ++n) {
548 __ops_validate_key_signatures(result, &ring->keys[n], ring, 544 __ops_validate_key_signatures(result, &ring->keys[n], ring,
549 cb_get_passphrase); 545 cb_get_passphrase);
550 } 546 }
551 return validate_result_status(result); 547 return validate_result_status(result);
552} 548}
553 549
554/** 550/**
555 \ingroup HighLevel_Verify 551 \ingroup HighLevel_Verify
556 \brief Frees validation result and associated memory 552 \brief Frees validation result and associated memory
557 \param result Struct to be freed 553 \param result Struct to be freed
558 \note Must be called after validation functions 554 \note Must be called after validation functions
559*/ 555*/
560void  556void
561__ops_validate_result_free(__ops_validation_t *result) 557__ops_validate_result_free(__ops_validation_t *result)
562{ 558{
563 if (result != NULL) { 559 if (result != NULL) {
564 if (result->valid_sigs) { 560 if (result->valid_sigs) {
565 free_signature_info(result->valid_sigs); 561 free_signature_info(result->valid_sigs);
566 } 562 }
567 if (result->invalid_sigs) { 563 if (result->invalid_sigs) {
568 free_signature_info(result->invalid_sigs); 564 free_signature_info(result->invalid_sigs);
569 } 565 }
570 if (result->unknown_sigs) { 566 if (result->unknown_sigs) {
571 free_signature_info(result->unknown_sigs); 567 free_signature_info(result->unknown_sigs);
572 } 568 }
573 (void) free(result); 569 (void) free(result);
574 result = NULL; 570 result = NULL;
575 } 571 }
576} 572}
577 573
578/** 574/**
579 \ingroup HighLevel_Verify 575 \ingroup HighLevel_Verify
580 \brief Verifies the signatures in a signed file 576 \brief Verifies the signatures in a signed file
581 \param result Where to put the result 577 \param result Where to put the result
582 \param filename Name of file to be validated 578 \param filename Name of file to be validated
583 \param armoured Treat file as armoured, if set 579 \param armoured Treat file as armoured, if set
584 \param keyring Keyring to use 580 \param keyring Keyring to use
585 \return true if signatures validate successfully; 581 \return true if signatures validate successfully;
586 false if signatures fail or there are no signatures 582 false if signatures fail or there are no signatures
587 \note After verification, result holds the details of all keys which 583 \note After verification, result holds the details of all keys which
588 have passed, failed and not been recognised. 584 have passed, failed and not been recognised.
589 \note It is the caller's responsiblity to call 585 \note It is the caller's responsiblity to call
590 __ops_validate_result_free(result) after use. 586 __ops_validate_result_free(result) after use.
591*/ 587*/
592bool  588bool
593__ops_validate_file(__ops_validation_t *result, 589__ops_validate_file(__ops_validation_t *result,
594 const char *filename, 590 const char *filename,
595 const int armoured, 591 const int armoured,
596 const __ops_keyring_t *keyring) 592 const __ops_keyring_t *keyring)
597{ 593{
598 __ops_parse_info_t *pinfo = NULL; 594 __ops_parse_info_t *pinfo = NULL;
599 validate_data_cb_t validation; 595 validate_data_cb_t validation;
600 struct stat st; 596 struct stat st;
601 int64_t origsize; 597 int64_t origsize;
602 char origfile[MAXPATHLEN]; 598 char origfile[MAXPATHLEN];
603 int fd; 599 int fd;
604 int cc; 600 int cc;
605 601
606#define SIG_OVERHEAD 284 /* depends on sig size */ 602#define SIG_OVERHEAD 284 /* depends on sig size */
607 603
608 if (stat(filename, &st) < 0) { 604 if (stat(filename, &st) < 0) {
609 (void) fprintf(stderr, "can't validate \"%s\"\n", filename); 605 (void) fprintf(stderr, "can't validate \"%s\"\n", filename);
610 return false; 606 return false;
611 } 607 }
612 origsize = st.st_size; 608 origsize = st.st_size;
613 cc = snprintf(origfile, sizeof(origfile), "%s", filename); 609 cc = snprintf(origfile, sizeof(origfile), "%s", filename);
614 if (strcmp(&origfile[cc - 4], ".sig") == 0) { 610 if (strcmp(&origfile[cc - 4], ".sig") == 0) {
615 origfile[cc - 4] = 0x0; 611 origfile[cc - 4] = 0x0;
616 if (stat(origfile, &st) == 0 && 612 if (stat(origfile, &st) == 0 &&
617 st.st_size - SIG_OVERHEAD < origsize) { 613 st.st_size - SIG_OVERHEAD < origsize) {
618 /* XXX - agc */ 614 /* XXX - agc */
619 pinfo->synthlit = __UNCONST(filename); 615 pinfo->synthlit = __UNCONST(filename);
620 } 616 }
621 } 617 }
622 618
623 fd = __ops_setup_file_read(&pinfo, filename, &validation, 619 fd = __ops_setup_file_read(&pinfo, filename, &validation,
624 validate_data_cb, true); 620 validate_data_cb, true);
625 if (fd < 0) { 621 if (fd < 0) {
626 return false; 622 return false;
627 } 623 }
628 624
629 /* Set verification reader and handling options */ 625 /* Set verification reader and handling options */
630 (void) memset(&validation, 0x0, sizeof(validation)); 626 (void) memset(&validation, 0x0, sizeof(validation));
631 validation.result = result; 627 validation.result = result;
632 validation.keyring = keyring; 628 validation.keyring = keyring;
633 validation.mem = __ops_memory_new(); 629 validation.mem = __ops_memory_new();
634 __ops_memory_init(validation.mem, 128); 630 __ops_memory_init(validation.mem, 128);
635 /* Note: Coverity incorrectly reports an error that carg.rarg */ 631 /* Note: Coverity incorrectly reports an error that carg.rarg */
636 /* is never used. */ 632 /* is never used. */
637 validation.rarg = pinfo->rinfo.arg; 633 validation.rarg = pinfo->rinfo.arg;
638 634
639 if (armoured) { 635 if (armoured) {
640 __ops_reader_push_dearmour(pinfo); 636 __ops_reader_push_dearmour(pinfo);
641 } 637 }
642 638
643 /* Do the verification */ 639 /* Do the verification */
644 __ops_parse(pinfo, 0); 640 __ops_parse(pinfo, 0);
645 641
646 if (__ops_get_debug_level(__FILE__)) { 642 if (__ops_get_debug_level(__FILE__)) {
647 printf("valid=%d, invalid=%d, unknown=%d\n", 643 printf("valid=%d, invalid=%d, unknown=%d\n",
648 result->validc, 644 result->validc,
649 result->invalidc, 645 result->invalidc,
650 result->unknownc); 646 result->unknownc);
651 } 647 }
652 648
653 /* Tidy up */ 649 /* Tidy up */
654 if (armoured) { 650 if (armoured) {
655 __ops_reader_pop_dearmour(pinfo); 651 __ops_reader_pop_dearmour(pinfo);
656 } 652 }
657 __ops_teardown_file_read(pinfo, fd); 653 __ops_teardown_file_read(pinfo, fd);
658 654
659 return validate_result_status(result); 655 return validate_result_status(result);
660} 656}
661 657
662/** 658/**
663 \ingroup HighLevel_Verify 659 \ingroup HighLevel_Verify
664 \brief Verifies the signatures in a __ops_memory_t struct 660 \brief Verifies the signatures in a __ops_memory_t struct
665 \param result Where to put the result 661 \param result Where to put the result
666 \param mem Memory to be validated 662 \param mem Memory to be validated
667 \param armoured Treat data as armoured, if set 663 \param armoured Treat data as armoured, if set
668 \param keyring Keyring to use 664 \param keyring Keyring to use
669 \return true if signature validates successfully; false if not 665 \return true if signature validates successfully; false if not
670 \note After verification, result holds the details of all keys which 666 \note After verification, result holds the details of all keys which
671 have passed, failed and not been recognised. 667 have passed, failed and not been recognised.
672 \note It is the caller's responsiblity to call 668 \note It is the caller's responsiblity to call
673 __ops_validate_result_free(result) after use. 669 __ops_validate_result_free(result) after use.
674*/ 670*/
675 671
676bool  672bool
677__ops_validate_mem(__ops_validation_t *result, __ops_memory_t *mem, 673__ops_validate_mem(__ops_validation_t *result, __ops_memory_t *mem,
678 const int armoured, const __ops_keyring_t *keyring) 674 const int armoured, const __ops_keyring_t *keyring)
679{ 675{
680 __ops_parse_info_t *pinfo = NULL; 676 __ops_parse_info_t *pinfo = NULL;
681 validate_data_cb_t validation; 677 validate_data_cb_t validation;
682 678
683 __ops_setup_memory_read(&pinfo, mem, &validation, validate_data_cb, 679 __ops_setup_memory_read(&pinfo, mem, &validation, validate_data_cb,
684 true); 680 true);
685 681
686 /* Set verification reader and handling options */ 682 /* Set verification reader and handling options */
687 (void) memset(&validation, 0x0, sizeof(validation)); 683 (void) memset(&validation, 0x0, sizeof(validation));
688 validation.result = result; 684 validation.result = result;
689 validation.keyring = keyring; 685 validation.keyring = keyring;
690 validation.mem = __ops_memory_new(); 686 validation.mem = __ops_memory_new();
691 __ops_memory_init(validation.mem, 128); 687 __ops_memory_init(validation.mem, 128);
692 /* Note: Coverity incorrectly reports an error that carg.rarg */ 688 /* Note: Coverity incorrectly reports an error that carg.rarg */
693 /* is never used. */ 689 /* is never used. */
694 validation.rarg = pinfo->rinfo.arg; 690 validation.rarg = pinfo->rinfo.arg;
695 691
696 if (armoured) { 692 if (armoured) {
697 __ops_reader_push_dearmour(pinfo); 693 __ops_reader_push_dearmour(pinfo);
698 } 694 }
699 695
700 /* Do the verification */ 696 /* Do the verification */
701 __ops_parse(pinfo, 0); 697 __ops_parse(pinfo, 0);
702 if (__ops_get_debug_level(__FILE__)) { 698 if (__ops_get_debug_level(__FILE__)) {
703 printf("valid=%d, invalid=%d, unknown=%d\n", 699 printf("valid=%d, invalid=%d, unknown=%d\n",
704 result->validc, 700 result->validc,
705 result->invalidc, 701 result->invalidc,
706 result->unknownc); 702 result->unknownc);
707 } 703 }
708 704
709 /* Tidy up */ 705 /* Tidy up */
710 if (armoured) { 706 if (armoured) {
711 __ops_reader_pop_dearmour(pinfo); 707 __ops_reader_pop_dearmour(pinfo);
712 } 708 }
713 __ops_teardown_memory_read(pinfo, mem); 709 __ops_teardown_memory_read(pinfo, mem);
714 710
715 return validate_result_status(result); 711 return validate_result_status(result);
716} 712}