blob: 68d2355d64bf36400fe0456715b1156ce72c60b1 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
David McGrewfec49dd2005-09-23 19:34:11 +00003# Generated by GNU Autoconf 2.59.
Cullen Jennings235513a2005-09-21 22:51:36 +00004#
David McGrewfec49dd2005-09-23 19:34:11 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
David McGrewfec49dd2005-09-23 19:34:11 +000022DUALCASE=1; export DUALCASE # for MKS sh
Cullen Jennings235513a2005-09-21 22:51:36 +000023
24# Support unset when possible.
David McGrewfec49dd2005-09-23 19:34:11 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Cullen Jennings235513a2005-09-21 22:51:36 +000026 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
David McGrewfec49dd2005-09-23 19:34:11 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Cullen Jennings235513a2005-09-21 22:51:36 +000045 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
David McGrewfec49dd2005-09-23 19:34:11 +0000221 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000229
230# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="srtp"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
Marcus Sundberg601cd0a2007-05-23 17:32:22 +0000312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EXE RNG_OBJS CPP EGREP GDOI_OBJS LIBOBJS LTLIBOBJS'
Cullen Jennings235513a2005-09-21 22:51:36 +0000313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
David McGrewfec49dd2005-09-23 19:34:11 +0000671 localstatedir libdir includedir oldincludedir infodir mandir
Cullen Jennings235513a2005-09-21 22:51:36 +0000672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +0000711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
David McGrewfec49dd2005-09-23 19:34:11 +0000806 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +0000807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
David McGrewfec49dd2005-09-23 19:34:11 +0000808 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +0000809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +0000847 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +0000848 --disable-debug do not compile in dynamic debugging system
849 --enable-generic-aesicm compile in changes for ISMAcryp
850 --enable-syslog use syslog for error reporting
851 --disable-stdout don't use stdout for error reporting
852 --enable-console use /dev/console for error reporting
853 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +0000854
855Some influential environment variables:
856 CC C compiler command
857 CFLAGS C compiler flags
858 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
859 nonstandard directory <lib dir>
860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
861 headers in a nonstandard directory <include dir>
862 CPP C preprocessor
863
864Use these variables to override the choices made by `configure' or to help
865it to find libraries and programs with nonstandard names/locations.
866
867_ACEOF
868fi
869
870if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
872 ac_popdir=`pwd`
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
875 ac_builddir=.
876
877if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881else
882 ac_dir_suffix= ac_top_builddir=
883fi
884
885case $srcdir in
886 .) # No --srcdir option. We are building in place.
887 ac_srcdir=.
888 if test -z "$ac_top_builddir"; then
889 ac_top_srcdir=.
890 else
891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892 fi ;;
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
896 *) # Relative path.
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
899esac
David McGrewfec49dd2005-09-23 19:34:11 +0000900
901# Do not use `cd foo && pwd` to compute absolute paths, because
902# the directories may not exist.
903case `pwd` in
904.) ac_abs_builddir="$ac_dir";;
905*)
906 case "$ac_dir" in
907 .) ac_abs_builddir=`pwd`;;
908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
910 esac;;
911esac
912case $ac_abs_builddir in
913.) ac_abs_top_builddir=${ac_top_builddir}.;;
914*)
915 case ${ac_top_builddir}. in
916 .) ac_abs_top_builddir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919 esac;;
920esac
921case $ac_abs_builddir in
922.) ac_abs_srcdir=$ac_srcdir;;
923*)
924 case $ac_srcdir in
925 .) ac_abs_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_srcdir=$ac_top_srcdir;;
932*)
933 case $ac_top_srcdir in
934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937 esac;;
938esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000939
940 cd $ac_dir
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
943 echo
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
946 echo
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
David McGrewfec49dd2005-09-23 19:34:11 +0000949 test -f $ac_srcdir/configure.in; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000950 echo
951 $ac_configure --help
952 else
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 fi
955 cd $ac_popdir
956 done
957fi
958
959test -n "$ac_init_help" && exit 0
960if $ac_init_version; then
961 cat <<\_ACEOF
962
David McGrewfec49dd2005-09-23 19:34:11 +0000963Copyright (C) 2003 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +0000964This configure script is free software; the Free Software Foundation
965gives unlimited permission to copy, distribute and modify it.
966_ACEOF
967 exit 0
968fi
969exec 5>config.log
970cat >&5 <<_ACEOF
971This file contains any messages produced by compilers while
972running configure, to aid debugging if configure makes a mistake.
973
974It was created by $as_me, which was
David McGrewfec49dd2005-09-23 19:34:11 +0000975generated by GNU Autoconf 2.59. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +0000976
977 $ $0 $@
978
979_ACEOF
980{
981cat <<_ASUNAME
982## --------- ##
983## Platform. ##
984## --------- ##
985
986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987uname -m = `(uname -m) 2>/dev/null || echo unknown`
988uname -r = `(uname -r) 2>/dev/null || echo unknown`
989uname -s = `(uname -s) 2>/dev/null || echo unknown`
990uname -v = `(uname -v) 2>/dev/null || echo unknown`
991
992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
994
995/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
996/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
999/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1000/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1001/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002
1003_ASUNAME
1004
1005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006for as_dir in $PATH
1007do
1008 IFS=$as_save_IFS
1009 test -z "$as_dir" && as_dir=.
1010 echo "PATH: $as_dir"
1011done
1012
1013} >&5
1014
1015cat >&5 <<_ACEOF
1016
1017
1018## ----------- ##
1019## Core tests. ##
1020## ----------- ##
1021
1022_ACEOF
1023
1024
1025# Keep a trace of the command line.
1026# Strip out --no-create and --no-recursion so they do not pile up.
1027# Strip out --silent because we don't want to record it for future runs.
1028# Also quote any args containing shell meta-characters.
1029# Make two passes to allow for proper duplicate-argument suppression.
1030ac_configure_args=
1031ac_configure_args0=
1032ac_configure_args1=
1033ac_sep=
1034ac_must_keep_next=false
1035for ac_pass in 1 2
1036do
1037 for ac_arg
1038 do
1039 case $ac_arg in
1040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 continue ;;
1044 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1045 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 esac
1047 case $ac_pass in
1048 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 2)
1050 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1051 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00001052 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00001053 else
David McGrewfec49dd2005-09-23 19:34:11 +00001054 case $ac_arg in
1055 *=* | --config-cache | -C | -disable-* | --disable-* \
1056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1058 | -with-* | --with-* | -without-* | --without-* | --x)
1059 case "$ac_configure_args0 " in
1060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 esac
1062 ;;
1063 -* ) ac_must_keep_next=true ;;
1064 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001065 fi
1066 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1067 # Get rid of the leading space.
1068 ac_sep=" "
1069 ;;
1070 esac
1071 done
1072done
1073$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1074$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075
1076# When interrupted or exit'd, cleanup temporary files, and complete
1077# config.log. We remove comments because anyway the quotes in there
1078# would cause problems or look ugly.
1079# WARNING: Be sure not to use single quotes in there, as some shells,
1080# such as our DU 5.0 friend, will then `close' the trap.
1081trap 'exit_status=$?
1082 # Save into config.log some information that might help in debugging.
1083 {
1084 echo
1085
1086 cat <<\_ASBOX
1087## ---------------- ##
1088## Cache variables. ##
1089## ---------------- ##
1090_ASBOX
1091 echo
1092 # The following way of writing the cache mishandles newlines in values,
1093{
1094 (set) 2>&1 |
1095 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 *ac_space=\ *)
1097 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00001098 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00001100 ;;
1101 *)
1102 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00001103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00001104 ;;
1105 esac;
1106}
1107 echo
1108
1109 cat <<\_ASBOX
1110## ----------------- ##
1111## Output variables. ##
1112## ----------------- ##
1113_ASBOX
1114 echo
1115 for ac_var in $ac_subst_vars
1116 do
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1121
1122 if test -n "$ac_subst_files"; then
1123 cat <<\_ASBOX
1124## ------------- ##
1125## Output files. ##
1126## ------------- ##
1127_ASBOX
1128 echo
1129 for ac_var in $ac_subst_files
1130 do
1131 eval ac_val=$`echo $ac_var`
David McGrewfec49dd2005-09-23 19:34:11 +00001132 echo "$ac_var='"'"'$ac_val'"'"'"
Cullen Jennings235513a2005-09-21 22:51:36 +00001133 done | sort
1134 echo
1135 fi
1136
1137 if test -s confdefs.h; then
1138 cat <<\_ASBOX
1139## ----------- ##
1140## confdefs.h. ##
1141## ----------- ##
1142_ASBOX
1143 echo
1144 sed "/^$/d" confdefs.h | sort
1145 echo
1146 fi
1147 test "$ac_signal" != 0 &&
1148 echo "$as_me: caught signal $ac_signal"
1149 echo "$as_me: exit $exit_status"
1150 } >&5
David McGrewfec49dd2005-09-23 19:34:11 +00001151 rm -f core *.core &&
Cullen Jennings235513a2005-09-21 22:51:36 +00001152 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 exit $exit_status
1154 ' 0
1155for ac_signal in 1 2 13 15; do
1156 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157done
1158ac_signal=0
1159
1160# confdefs.h avoids OS command line length limits that DEFS can exceed.
1161rm -rf conftest* confdefs.h
1162# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163echo >confdefs.h
1164
1165# Predefined preprocessor variables.
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_NAME "$PACKAGE_NAME"
1169_ACEOF
1170
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_VERSION "$PACKAGE_VERSION"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_STRING "$PACKAGE_STRING"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189_ACEOF
1190
1191
1192# Let the site file select an alternate cache file if it wants to.
1193# Prefer explicitly selected file to automatically selected ones.
1194if test -z "$CONFIG_SITE"; then
1195 if test "x$prefix" != xNONE; then
1196 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 else
1198 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 fi
1200fi
1201for ac_site_file in $CONFIG_SITE; do
1202 if test -r "$ac_site_file"; then
1203 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1204echo "$as_me: loading site script $ac_site_file" >&6;}
1205 sed 's/^/| /' "$ac_site_file" >&5
1206 . "$ac_site_file"
1207 fi
1208done
1209
1210if test -r "$cache_file"; then
1211 # Some versions of bash will fail to source /dev/null (special
1212 # files actually), so we avoid doing that.
1213 if test -f "$cache_file"; then
1214 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1215echo "$as_me: loading cache $cache_file" >&6;}
1216 case $cache_file in
1217 [\\/]* | ?:[\\/]* ) . $cache_file;;
1218 *) . ./$cache_file;;
1219 esac
1220 fi
1221else
1222 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1223echo "$as_me: creating cache $cache_file" >&6;}
1224 >$cache_file
1225fi
1226
1227# Check that the precious variables saved in the cache have kept the same
1228# value.
1229ac_cache_corrupted=false
1230for ac_var in `(set) 2>&1 |
David McGrewfec49dd2005-09-23 19:34:11 +00001231 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Cullen Jennings235513a2005-09-21 22:51:36 +00001232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1233 eval ac_new_set=\$ac_env_${ac_var}_set
1234 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1235 eval ac_new_val="\$ac_env_${ac_var}_value"
1236 case $ac_old_set,$ac_new_set in
1237 set,)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1239echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,set)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1243echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,);;
1246 *)
1247 if test "x$ac_old_val" != "x$ac_new_val"; then
David McGrewfec49dd2005-09-23 19:34:11 +00001248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001249echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00001250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001251echo "$as_me: former value: $ac_old_val" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00001252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001253echo "$as_me: current value: $ac_new_val" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00001254 ac_cache_corrupted=:
Cullen Jennings235513a2005-09-21 22:51:36 +00001255 fi;;
1256 esac
1257 # Pass precious variables to config.status.
1258 if test "$ac_new_set" = set; then
1259 case $ac_new_val in
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 *) ac_arg=$ac_var=$ac_new_val ;;
1263 esac
1264 case " $ac_configure_args " in
1265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1266 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 esac
1268 fi
1269done
1270if $ac_cache_corrupted; then
1271 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1272echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1273 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1274echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1275 { (exit 1); exit 1; }; }
1276fi
1277
1278ac_ext=c
1279ac_cpp='$CPP $CPPFLAGS'
1280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
David McGrewb67061f2005-09-28 14:23:06 +00001303if test -z "$CFLAGS"; then
1304 CFLAGS="-Wall -O4 -fexpensive-optimizations -funroll-loops"
1305fi
1306
Cullen Jennings235513a2005-09-21 22:51:36 +00001307if test -n "$ac_tool_prefix"; then
1308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1309set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1310echo "$as_me:$LINENO: checking for $ac_word" >&5
1311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1312if test "${ac_cv_prog_RANLIB+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1314else
1315 if test -n "$RANLIB"; then
1316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1317else
1318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1319for as_dir in $PATH
1320do
1321 IFS=$as_save_IFS
1322 test -z "$as_dir" && as_dir=.
1323 for ac_exec_ext in '' $ac_executable_extensions; do
1324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1327 break 2
1328 fi
1329done
1330done
1331
1332fi
1333fi
1334RANLIB=$ac_cv_prog_RANLIB
1335if test -n "$RANLIB"; then
1336 echo "$as_me:$LINENO: result: $RANLIB" >&5
1337echo "${ECHO_T}$RANLIB" >&6
1338else
1339 echo "$as_me:$LINENO: result: no" >&5
1340echo "${ECHO_T}no" >&6
1341fi
1342
1343fi
1344if test -z "$ac_cv_prog_RANLIB"; then
1345 ac_ct_RANLIB=$RANLIB
1346 # Extract the first word of "ranlib", so it can be a program name with args.
1347set dummy ranlib; ac_word=$2
1348echo "$as_me:$LINENO: checking for $ac_word" >&5
1349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352else
1353 if test -n "$ac_ct_RANLIB"; then
1354 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1355else
1356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1357for as_dir in $PATH
1358do
1359 IFS=$as_save_IFS
1360 test -z "$as_dir" && as_dir=.
1361 for ac_exec_ext in '' $ac_executable_extensions; do
1362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1363 ac_cv_prog_ac_ct_RANLIB="ranlib"
1364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1365 break 2
1366 fi
1367done
1368done
1369
1370 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1371fi
1372fi
1373ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1374if test -n "$ac_ct_RANLIB"; then
1375 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1376echo "${ECHO_T}$ac_ct_RANLIB" >&6
1377else
1378 echo "$as_me:$LINENO: result: no" >&5
1379echo "${ECHO_T}no" >&6
1380fi
1381
1382 RANLIB=$ac_ct_RANLIB
1383else
1384 RANLIB="$ac_cv_prog_RANLIB"
1385fi
1386
1387ac_ext=c
1388ac_cpp='$CPP $CPPFLAGS'
1389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1391ac_compiler_gnu=$ac_cv_c_compiler_gnu
1392if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1394set dummy ${ac_tool_prefix}gcc; ac_word=$2
1395echo "$as_me:$LINENO: checking for $ac_word" >&5
1396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397if test "${ac_cv_prog_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
1400 if test -n "$CC"; then
1401 ac_cv_prog_CC="$CC" # Let the user override the test.
1402else
1403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404for as_dir in $PATH
1405do
1406 IFS=$as_save_IFS
1407 test -z "$as_dir" && as_dir=.
1408 for ac_exec_ext in '' $ac_executable_extensions; do
1409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1412 break 2
1413 fi
1414done
1415done
1416
1417fi
1418fi
1419CC=$ac_cv_prog_CC
1420if test -n "$CC"; then
1421 echo "$as_me:$LINENO: result: $CC" >&5
1422echo "${ECHO_T}$CC" >&6
1423else
1424 echo "$as_me:$LINENO: result: no" >&5
1425echo "${ECHO_T}no" >&6
1426fi
1427
1428fi
1429if test -z "$ac_cv_prog_CC"; then
1430 ac_ct_CC=$CC
1431 # Extract the first word of "gcc", so it can be a program name with args.
1432set dummy gcc; ac_word=$2
1433echo "$as_me:$LINENO: checking for $ac_word" >&5
1434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438 if test -n "$ac_ct_CC"; then
1439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1440else
1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442for as_dir in $PATH
1443do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_ac_ct_CC="gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452done
1453done
1454
1455fi
1456fi
1457ac_ct_CC=$ac_cv_prog_ac_ct_CC
1458if test -n "$ac_ct_CC"; then
1459 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1460echo "${ECHO_T}$ac_ct_CC" >&6
1461else
1462 echo "$as_me:$LINENO: result: no" >&5
1463echo "${ECHO_T}no" >&6
1464fi
1465
1466 CC=$ac_ct_CC
1467else
1468 CC="$ac_cv_prog_CC"
1469fi
1470
1471if test -z "$CC"; then
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1474set dummy ${ac_tool_prefix}cc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_CC="${ac_tool_prefix}cc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
1495done
1496
1497fi
1498fi
1499CC=$ac_cv_prog_CC
1500if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5
1502echo "${ECHO_T}$CC" >&6
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508fi
1509if test -z "$ac_cv_prog_CC"; then
1510 ac_ct_CC=$CC
1511 # Extract the first word of "cc", so it can be a program name with args.
1512set dummy cc; ac_word=$2
1513echo "$as_me:$LINENO: checking for $ac_word" >&5
1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517else
1518 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520else
1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522for as_dir in $PATH
1523do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_ac_ct_CC="cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532done
1533done
1534
1535fi
1536fi
1537ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538if test -n "$ac_ct_CC"; then
1539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540echo "${ECHO_T}$ac_ct_CC" >&6
1541else
1542 echo "$as_me:$LINENO: result: no" >&5
1543echo "${ECHO_T}no" >&6
1544fi
1545
1546 CC=$ac_ct_CC
1547else
1548 CC="$ac_cv_prog_CC"
1549fi
1550
1551fi
1552if test -z "$CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554set dummy cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1562else
1563 ac_prog_rejected=no
1564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1572 ac_prog_rejected=yes
1573 continue
1574 fi
1575 ac_cv_prog_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
1580done
1581
1582if test $ac_prog_rejected = yes; then
1583 # We found a bogon in the path, so make sure we never use it.
1584 set dummy $ac_cv_prog_CC
1585 shift
1586 if test $# != 0; then
1587 # We chose a different compiler from the bogus one.
1588 # However, it has the same basename, so the bogon will be chosen
1589 # first if we set CC to just the basename; use the full file name.
1590 shift
1591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1592 fi
1593fi
1594fi
1595fi
1596CC=$ac_cv_prog_CC
1597if test -n "$CC"; then
1598 echo "$as_me:$LINENO: result: $CC" >&5
1599echo "${ECHO_T}$CC" >&6
1600else
1601 echo "$as_me:$LINENO: result: no" >&5
1602echo "${ECHO_T}no" >&6
1603fi
1604
1605fi
1606if test -z "$CC"; then
1607 if test -n "$ac_tool_prefix"; then
1608 for ac_prog in cl
1609 do
1610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1612echo "$as_me:$LINENO: checking for $ac_word" >&5
1613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1619else
1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621for as_dir in $PATH
1622do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1630 fi
1631done
1632done
1633
1634fi
1635fi
1636CC=$ac_cv_prog_CC
1637if test -n "$CC"; then
1638 echo "$as_me:$LINENO: result: $CC" >&5
1639echo "${ECHO_T}$CC" >&6
1640else
1641 echo "$as_me:$LINENO: result: no" >&5
1642echo "${ECHO_T}no" >&6
1643fi
1644
1645 test -n "$CC" && break
1646 done
1647fi
1648if test -z "$CC"; then
1649 ac_ct_CC=$CC
1650 for ac_prog in cl
1651do
1652 # Extract the first word of "$ac_prog", so it can be a program name with args.
1653set dummy $ac_prog; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681echo "${ECHO_T}$ac_ct_CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 test -n "$ac_ct_CC" && break
1688done
1689
1690 CC=$ac_ct_CC
1691fi
1692
1693fi
1694
1695
1696test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1697See \`config.log' for more details." >&5
1698echo "$as_me: error: no acceptable C compiler found in \$PATH
1699See \`config.log' for more details." >&2;}
1700 { (exit 1); exit 1; }; }
1701
1702# Provide some information about the compiler.
1703echo "$as_me:$LINENO:" \
1704 "checking for C compiler version" >&5
1705ac_compiler=`set X $ac_compile; echo $2`
1706{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1707 (eval $ac_compiler --version </dev/null >&5) 2>&5
1708 ac_status=$?
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1711{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1712 (eval $ac_compiler -v </dev/null >&5) 2>&5
1713 ac_status=$?
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1716{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1717 (eval $ac_compiler -V </dev/null >&5) 2>&5
1718 ac_status=$?
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1721
1722cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001723/* confdefs.h. */
1724_ACEOF
1725cat confdefs.h >>conftest.$ac_ext
1726cat >>conftest.$ac_ext <<_ACEOF
1727/* end confdefs.h. */
1728
1729int
1730main ()
1731{
1732
1733 ;
1734 return 0;
1735}
1736_ACEOF
1737ac_clean_files_save=$ac_clean_files
1738ac_clean_files="$ac_clean_files a.out a.exe b.out"
1739# Try to create an executable without -o first, disregard a.out.
1740# It will help us diagnose broken compilers, and finding out an intuition
1741# of exeext.
David McGrewfec49dd2005-09-23 19:34:11 +00001742echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1743echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00001744ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1745if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1746 (eval $ac_link_default) 2>&5
1747 ac_status=$?
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }; then
1750 # Find the output, starting from the most likely. This scheme is
1751# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1752# resort.
1753
1754# Be careful to initialize this variable, since it used to be cached.
1755# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1756ac_cv_exeext=
1757# b.out is created by i960 compilers.
1758for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1759do
1760 test -f "$ac_file" || continue
1761 case $ac_file in
1762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00001763 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001764 conftest.$ac_ext )
David McGrewfec49dd2005-09-23 19:34:11 +00001765 # This is the source file.
1766 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001767 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00001768 # We found the default executable, but exeext='' is most
1769 # certainly right.
1770 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001771 *.* )
David McGrewfec49dd2005-09-23 19:34:11 +00001772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1773 # FIXME: I believe we export ac_cv_exeext for Libtool,
1774 # but it would be cool to find out if it's true. Does anybody
1775 # maintain Libtool? --akim.
1776 export ac_cv_exeext
1777 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001778 * )
David McGrewfec49dd2005-09-23 19:34:11 +00001779 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001780 esac
1781done
1782else
1783 echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1787See \`config.log' for more details." >&5
1788echo "$as_me: error: C compiler cannot create executables
1789See \`config.log' for more details." >&2;}
1790 { (exit 77); exit 77; }; }
1791fi
1792
1793ac_exeext=$ac_cv_exeext
1794echo "$as_me:$LINENO: result: $ac_file" >&5
1795echo "${ECHO_T}$ac_file" >&6
1796
1797# Check the compiler produces executables we can run. If not, either
1798# the compiler is broken, or we cross compile.
1799echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1800echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1801# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1802# If not cross compiling, check that we can run a simple program.
1803if test "$cross_compiling" != yes; then
1804 if { ac_try='./$ac_file'
1805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1806 (eval $ac_try) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; }; then
1810 cross_compiling=no
1811 else
1812 if test "$cross_compiling" = maybe; then
1813 cross_compiling=yes
1814 else
1815 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1816If you meant to cross compile, use \`--host'.
1817See \`config.log' for more details." >&5
1818echo "$as_me: error: cannot run C compiled programs.
1819If you meant to cross compile, use \`--host'.
1820See \`config.log' for more details." >&2;}
1821 { (exit 1); exit 1; }; }
1822 fi
1823 fi
1824fi
1825echo "$as_me:$LINENO: result: yes" >&5
1826echo "${ECHO_T}yes" >&6
1827
1828rm -f a.out a.exe conftest$ac_cv_exeext b.out
1829ac_clean_files=$ac_clean_files_save
1830# Check the compiler produces executables we can run. If not, either
1831# the compiler is broken, or we cross compile.
1832echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1833echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1834echo "$as_me:$LINENO: result: $cross_compiling" >&5
1835echo "${ECHO_T}$cross_compiling" >&6
1836
1837echo "$as_me:$LINENO: checking for suffix of executables" >&5
1838echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1840 (eval $ac_link) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; then
1844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1845# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1846# work properly (i.e., refer to `conftest.exe'), while it won't with
1847# `rm'.
1848for ac_file in conftest.exe conftest conftest.*; do
1849 test -f "$ac_file" || continue
1850 case $ac_file in
1851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00001853 export ac_cv_exeext
1854 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001855 * ) break;;
1856 esac
1857done
1858else
1859 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1860See \`config.log' for more details." >&5
1861echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1862See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1864fi
1865
1866rm -f conftest$ac_cv_exeext
1867echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1868echo "${ECHO_T}$ac_cv_exeext" >&6
1869
1870rm -f conftest.$ac_ext
1871EXEEXT=$ac_cv_exeext
1872ac_exeext=$EXEEXT
1873echo "$as_me:$LINENO: checking for suffix of object files" >&5
1874echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1875if test "${ac_cv_objext+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001879/* confdefs.h. */
1880_ACEOF
1881cat confdefs.h >>conftest.$ac_ext
1882cat >>conftest.$ac_ext <<_ACEOF
1883/* end confdefs.h. */
1884
1885int
1886main ()
1887{
1888
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893rm -f conftest.o conftest.obj
1894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1895 (eval $ac_compile) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }; then
1899 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1900 case $ac_file in
1901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1903 break;;
1904 esac
1905done
1906else
1907 echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1911See \`config.log' for more details." >&5
1912echo "$as_me: error: cannot compute suffix of object files: cannot compile
1913See \`config.log' for more details." >&2;}
1914 { (exit 1); exit 1; }; }
1915fi
1916
1917rm -f conftest.$ac_cv_objext conftest.$ac_ext
1918fi
1919echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1920echo "${ECHO_T}$ac_cv_objext" >&6
1921OBJEXT=$ac_cv_objext
1922ac_objext=$OBJEXT
1923echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1924echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1925if test "${ac_cv_c_compiler_gnu+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001929/* confdefs.h. */
1930_ACEOF
1931cat confdefs.h >>conftest.$ac_ext
1932cat >>conftest.$ac_ext <<_ACEOF
1933/* end confdefs.h. */
1934
1935int
1936main ()
1937{
1938#ifndef __GNUC__
1939 choke me
1940#endif
1941
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946rm -f conftest.$ac_objext
1947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00001948 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00001949 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00001950 grep -v '^ *+' conftest.er1 >conftest.err
1951 rm -f conftest.er1
1952 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00001953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00001955 { ac_try='test -z "$ac_c_werror_flag"
1956 || test ! -s conftest.err'
1957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1958 (eval $ac_try) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; } &&
1962 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00001963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1964 (eval $ac_try) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }; }; then
1968 ac_compiler_gnu=yes
1969else
1970 echo "$as_me: failed program was:" >&5
1971sed 's/^/| /' conftest.$ac_ext >&5
1972
1973ac_compiler_gnu=no
1974fi
David McGrewfec49dd2005-09-23 19:34:11 +00001975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00001976ac_cv_c_compiler_gnu=$ac_compiler_gnu
1977
1978fi
1979echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1980echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1981GCC=`test $ac_compiler_gnu = yes && echo yes`
1982ac_test_CFLAGS=${CFLAGS+set}
1983ac_save_CFLAGS=$CFLAGS
1984CFLAGS="-g"
1985echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1986echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1987if test "${ac_cv_prog_cc_g+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001991/* confdefs.h. */
1992_ACEOF
1993cat confdefs.h >>conftest.$ac_ext
1994cat >>conftest.$ac_ext <<_ACEOF
1995/* end confdefs.h. */
1996
1997int
1998main ()
1999{
2000
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005rm -f conftest.$ac_objext
2006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002007 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002008 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002009 grep -v '^ *+' conftest.er1 >conftest.err
2010 rm -f conftest.er1
2011 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002014 { ac_try='test -z "$ac_c_werror_flag"
2015 || test ! -s conftest.err'
2016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 (eval $ac_try) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; } &&
2021 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 ac_cv_prog_cc_g=yes
2028else
2029 echo "$as_me: failed program was:" >&5
2030sed 's/^/| /' conftest.$ac_ext >&5
2031
2032ac_cv_prog_cc_g=no
2033fi
David McGrewfec49dd2005-09-23 19:34:11 +00002034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002035fi
2036echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2037echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2038if test "$ac_test_CFLAGS" = set; then
2039 CFLAGS=$ac_save_CFLAGS
2040elif test $ac_cv_prog_cc_g = yes; then
2041 if test "$GCC" = yes; then
2042 CFLAGS="-g -O2"
2043 else
2044 CFLAGS="-g"
2045 fi
2046else
2047 if test "$GCC" = yes; then
2048 CFLAGS="-O2"
2049 else
2050 CFLAGS=
2051 fi
2052fi
2053echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2054echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2055if test "${ac_cv_prog_cc_stdc+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058 ac_cv_prog_cc_stdc=no
2059ac_save_CC=$CC
2060cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002061/* confdefs.h. */
2062_ACEOF
2063cat confdefs.h >>conftest.$ac_ext
2064cat >>conftest.$ac_ext <<_ACEOF
2065/* end confdefs.h. */
2066#include <stdarg.h>
2067#include <stdio.h>
2068#include <sys/types.h>
2069#include <sys/stat.h>
2070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2071struct buf { int x; };
2072FILE * (*rcsopen) (struct buf *, struct stat *, int);
2073static char *e (p, i)
2074 char **p;
2075 int i;
2076{
2077 return p[i];
2078}
2079static char *f (char * (*g) (char **, int), char **p, ...)
2080{
2081 char *s;
2082 va_list v;
2083 va_start (v,p);
2084 s = g (p, va_arg (v,int));
2085 va_end (v);
2086 return s;
2087}
David McGrewfec49dd2005-09-23 19:34:11 +00002088
2089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2090 function prototypes and stuff, but not '\xHH' hex character constants.
2091 These don't provoke an error unfortunately, instead are silently treated
2092 as 'x'. The following induces an error, until -std1 is added to get
2093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2094 array size at least. It's necessary to write '\x00'==0 to get something
2095 that's true only with -std1. */
2096int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2097
Cullen Jennings235513a2005-09-21 22:51:36 +00002098int test (int i, double x);
2099struct s1 {int (*f) (int a);};
2100struct s2 {int (*f) (double a);};
2101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2102int argc;
2103char **argv;
2104int
2105main ()
2106{
2107return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2108 ;
2109 return 0;
2110}
2111_ACEOF
2112# Don't try gcc -ansi; that turns off useful extensions and
2113# breaks some systems' header files.
2114# AIX -qlanglvl=ansi
2115# Ultrix and OSF/1 -std1
2116# HP-UX 10.20 and later -Ae
2117# HP-UX older versions -Aa -D_HPUX_SOURCE
2118# SVR4 -Xc -D__EXTENSIONS__
2119for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2120do
2121 CC="$ac_save_CC $ac_arg"
2122 rm -f conftest.$ac_objext
2123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002124 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002125 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002126 grep -v '^ *+' conftest.er1 >conftest.err
2127 rm -f conftest.er1
2128 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002131 { ac_try='test -z "$ac_c_werror_flag"
2132 || test ! -s conftest.err'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 (eval $ac_try) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; } &&
2138 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 (eval $ac_try) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; }; then
2144 ac_cv_prog_cc_stdc=$ac_arg
2145break
2146else
2147 echo "$as_me: failed program was:" >&5
2148sed 's/^/| /' conftest.$ac_ext >&5
2149
2150fi
David McGrewfec49dd2005-09-23 19:34:11 +00002151rm -f conftest.err conftest.$ac_objext
Cullen Jennings235513a2005-09-21 22:51:36 +00002152done
2153rm -f conftest.$ac_ext conftest.$ac_objext
2154CC=$ac_save_CC
2155
2156fi
2157
2158case "x$ac_cv_prog_cc_stdc" in
2159 x|xno)
2160 echo "$as_me:$LINENO: result: none needed" >&5
2161echo "${ECHO_T}none needed" >&6 ;;
2162 *)
2163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2164echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2165 CC="$CC $ac_cv_prog_cc_stdc" ;;
2166esac
2167
2168# Some people use a C++ compiler to compile C. Since we use `exit',
2169# in C++ we need to declare it. In case someone uses the same compiler
2170# for both compiling C and C++ we need to have the C++ compiler decide
2171# the declaration of exit, since it's the most demanding environment.
2172cat >conftest.$ac_ext <<_ACEOF
2173#ifndef __cplusplus
2174 choke me
2175#endif
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002179 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002180 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002181 grep -v '^ *+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 for ac_declaration in \
David McGrewfec49dd2005-09-23 19:34:11 +00002200 '' \
Cullen Jennings235513a2005-09-21 22:51:36 +00002201 'extern "C" void std::exit (int) throw (); using std::exit;' \
2202 'extern "C" void std::exit (int); using std::exit;' \
2203 'extern "C" void exit (int) throw ();' \
2204 'extern "C" void exit (int);' \
2205 'void exit (int);'
2206do
2207 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002208/* confdefs.h. */
2209_ACEOF
2210cat confdefs.h >>conftest.$ac_ext
2211cat >>conftest.$ac_ext <<_ACEOF
2212/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002213$ac_declaration
David McGrewfec49dd2005-09-23 19:34:11 +00002214#include <stdlib.h>
Cullen Jennings235513a2005-09-21 22:51:36 +00002215int
2216main ()
2217{
2218exit (42);
2219 ;
2220 return 0;
2221}
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002225 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002226 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 :
2246else
2247 echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250continue
2251fi
David McGrewfec49dd2005-09-23 19:34:11 +00002252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002253 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259$ac_declaration
2260int
2261main ()
2262{
2263exit (42);
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268rm -f conftest.$ac_objext
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00002270 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00002271 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00002272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00002277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00002285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 break
2291else
2292 echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295fi
David McGrewfec49dd2005-09-23 19:34:11 +00002296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002297done
2298rm -f conftest*
2299if test -n "$ac_declaration"; then
2300 echo '#ifdef __cplusplus' >>confdefs.h
2301 echo $ac_declaration >>confdefs.h
2302 echo '#endif' >>confdefs.h
2303fi
2304
2305else
2306 echo "$as_me: failed program was:" >&5
2307sed 's/^/| /' conftest.$ac_ext >&5
2308
2309fi
David McGrewfec49dd2005-09-23 19:34:11 +00002310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
David McGrewb67061f2005-09-28 14:23:06 +00002317ac_aux_dir=
2318for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2319 if test -f $ac_dir/install-sh; then
2320 ac_aux_dir=$ac_dir
2321 ac_install_sh="$ac_aux_dir/install-sh -c"
2322 break
2323 elif test -f $ac_dir/install.sh; then
2324 ac_aux_dir=$ac_dir
2325 ac_install_sh="$ac_aux_dir/install.sh -c"
2326 break
2327 elif test -f $ac_dir/shtool; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/shtool install -c"
2330 break
2331 fi
2332done
2333if test -z "$ac_aux_dir"; then
2334 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2335echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2336 { (exit 1); exit 1; }; }
2337fi
2338ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2339ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2340ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Cullen Jennings235513a2005-09-21 22:51:36 +00002341
David McGrewb67061f2005-09-28 14:23:06 +00002342# Find a good install program. We prefer a C program (faster),
2343# so one script is as good as another. But avoid the broken or
2344# incompatible versions:
2345# SysV /etc/install, /usr/sbin/install
2346# SunOS /usr/etc/install
2347# IRIX /sbin/install
2348# AIX /bin/install
2349# AmigaOS /C/install, which installs bootblocks on floppy discs
2350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2353# OS/2's system install, which has a completely different semantic
2354# ./install, which can be erroneously created by make from ./install.sh.
2355echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2356echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2357if test -z "$INSTALL"; then
2358if test "${ac_cv_path_install+set}" = set; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
David McGrewb67061f2005-09-28 14:23:06 +00002361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 # Account for people who put trailing slashes in PATH elements.
2367case $as_dir/ in
2368 ./ | .// | /cC/* | \
2369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2371 /usr/ucb/* ) ;;
2372 *)
2373 # OSF1 and SCO ODT 3.0 have their own names for install.
2374 # Don't use installbsd from OSF since it installs stuff as root
2375 # by default.
2376 for ac_prog in ginstall scoinst install; do
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2379 if test $ac_prog = install &&
2380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # AIX install. It has an incompatible calling convention.
2382 :
2383 elif test $ac_prog = install &&
2384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385 # program-specific install script used by HP pwplus--don't use.
2386 :
2387 else
2388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2389 break 3
2390 fi
2391 fi
2392 done
2393 done
2394 ;;
2395esac
2396done
Cullen Jennings235513a2005-09-21 22:51:36 +00002397
Cullen Jennings235513a2005-09-21 22:51:36 +00002398
2399fi
David McGrewb67061f2005-09-28 14:23:06 +00002400 if test "${ac_cv_path_install+set}" = set; then
2401 INSTALL=$ac_cv_path_install
2402 else
2403 # As a last resort, use the slow shell script. We don't cache a
2404 # path for INSTALL within a source directory, because that will
2405 # break other packages using the cache if that directory is
2406 # removed, or if the path is relative.
2407 INSTALL=$ac_install_sh
2408 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002409fi
David McGrewb67061f2005-09-28 14:23:06 +00002410echo "$as_me:$LINENO: result: $INSTALL" >&5
2411echo "${ECHO_T}$INSTALL" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002412
David McGrewb67061f2005-09-28 14:23:06 +00002413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414# It thinks the first close brace ends the variable substitution.
2415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00002416
David McGrewb67061f2005-09-28 14:23:06 +00002417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00002420
2421
2422
Marcus Sundberg601cd0a2007-05-23 17:32:22 +00002423echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2424echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2425if test "${ac_cv_c_bigendian+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428 # See if sys/param.h defines the BYTE_ORDER macro.
2429cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h. */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h. */
2435#include <sys/types.h>
2436#include <sys/param.h>
2437
2438int
2439main ()
2440{
2441#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2442 bogus endian macros
2443#endif
2444
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 # It does; now see whether it defined to BIG_ENDIAN or not.
2472cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h. */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h. */
2478#include <sys/types.h>
2479#include <sys/param.h>
2480
2481int
2482main ()
2483{
2484#if BYTE_ORDER != BIG_ENDIAN
2485 not big endian
2486#endif
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 ac_cv_c_bigendian=yes
2515else
2516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519ac_cv_c_bigendian=no
2520fi
2521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526# It does not; compile a test program.
2527if test "$cross_compiling" = yes; then
2528 # try to guess the endianness by grepping values into an object file
2529 ac_cv_c_bigendian=unknown
2530 cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2537short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2538void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2539short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2540short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2541void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2542int
2543main ()
2544{
2545 _ascii (); _ebcdic ();
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550rm -f conftest.$ac_objext
2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2573 ac_cv_c_bigendian=yes
2574fi
2575if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2576 if test "$ac_cv_c_bigendian" = unknown; then
2577 ac_cv_c_bigendian=no
2578 else
2579 # finding both strings is unlikely to happen, but who knows?
2580 ac_cv_c_bigendian=unknown
2581 fi
2582fi
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587fi
2588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589else
2590 cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h. */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h. */
2596int
2597main ()
2598{
2599 /* Are we little or big endian? From Harbison&Steele. */
2600 union
2601 {
2602 long l;
2603 char c[sizeof (long)];
2604 } u;
2605 u.l = 1;
2606 exit (u.c[sizeof (long) - 1] == 1);
2607}
2608_ACEOF
2609rm -f conftest$ac_exeext
2610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2611 (eval $ac_link) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_cv_c_bigendian=no
2621else
2622 echo "$as_me: program exited with status $ac_status" >&5
2623echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626( exit $ac_status )
2627ac_cv_c_bigendian=yes
2628fi
2629rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2630fi
2631fi
2632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2635echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2636case $ac_cv_c_bigendian in
2637 yes)
2638
2639cat >>confdefs.h <<\_ACEOF
2640#define WORDS_BIGENDIAN 1
2641_ACEOF
2642 ;;
2643 no)
2644 ;;
2645 *)
2646 { { echo "$as_me:$LINENO: error: unknown endianness
2647presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2648echo "$as_me: error: unknown endianness
2649presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2650 { (exit 1); exit 1; }; } ;;
2651esac
2652
2653
2654# Make sure we can run config.sub.
2655$ac_config_sub sun4 >/dev/null 2>&1 ||
2656 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2657echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2658 { (exit 1); exit 1; }; }
2659
2660echo "$as_me:$LINENO: checking build system type" >&5
2661echo $ECHO_N "checking build system type... $ECHO_C" >&6
2662if test "${ac_cv_build+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 ac_cv_build_alias=$build_alias
2666test -z "$ac_cv_build_alias" &&
2667 ac_cv_build_alias=`$ac_config_guess`
2668test -z "$ac_cv_build_alias" &&
2669 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2670echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2671 { (exit 1); exit 1; }; }
2672ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2673 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2674echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2675 { (exit 1); exit 1; }; }
2676
2677fi
2678echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2679echo "${ECHO_T}$ac_cv_build" >&6
2680build=$ac_cv_build
2681build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2682build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2683build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2684
2685
2686echo "$as_me:$LINENO: checking host system type" >&5
2687echo $ECHO_N "checking host system type... $ECHO_C" >&6
2688if test "${ac_cv_host+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691 ac_cv_host_alias=$host_alias
2692test -z "$ac_cv_host_alias" &&
2693 ac_cv_host_alias=$ac_cv_build_alias
2694ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2695 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2696echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2697 { (exit 1); exit 1; }; }
2698
2699fi
2700echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2701echo "${ECHO_T}$ac_cv_host" >&6
2702host=$ac_cv_host
2703host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2704host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2705host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2706
2707
2708
2709case $host_cpu in
2710 i*86 )
2711
2712cat >>confdefs.h <<\_ACEOF
2713#define CPU_CISC 1
2714_ACEOF
2715
2716
2717cat >>confdefs.h <<\_ACEOF
2718#define HAVE_X86 1
2719_ACEOF
2720;;
2721 * )
2722 # CPU_RISC is only supported for big endian machines.
2723 if test "$ac_cv_c_bigendian" = "yes"; then
2724
2725cat >>confdefs.h <<\_ACEOF
2726#define CPU_RISC 1
2727_ACEOF
2728
2729 else
2730 cat >>confdefs.h <<\_ACEOF
2731#define CPU_CISC 1
2732_ACEOF
2733
2734 fi
2735 ;;
2736esac
2737
2738case $host_os in
2739 *cygwin*|*mingw* )
2740 EXE=.exe
2741 HOST_IS_WINDOWS=yes
2742 ;;
2743 * )
2744 EXE=""
2745 ;;
2746esac
2747 # define executable suffix; this is needed for `make clean'
2748
2749
Marcus Sundberg64536cc2005-10-03 15:23:13 +00002750# Check whether --enable-kernel-linux or --disable-kernel-linux was given.
2751if test "${enable_kernel_linux+set}" = set; then
2752 enableval="$enable_kernel_linux"
2753
2754else
2755 enable_kernel_linux=no
2756fi;
2757echo "$as_me:$LINENO: checking whether to build for Linux kernel context" >&5
2758echo $ECHO_N "checking whether to build for Linux kernel context... $ECHO_C" >&6
2759if test "$enable_kernel_linux" = "yes"; then
2760
2761cat >>confdefs.h <<\_ACEOF
2762#define SRTP_KERNEL 1
2763_ACEOF
2764
2765
2766cat >>confdefs.h <<\_ACEOF
2767#define SRTP_KERNEL_LINUX 1
2768_ACEOF
2769
2770fi
2771echo "$as_me:$LINENO: result: $enable_kernel_linux" >&5
2772echo "${ECHO_T}$enable_kernel_linux" >&6
2773
Marcus Sundberg601cd0a2007-05-23 17:32:22 +00002774if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00002775 echo "$as_me:$LINENO: checking for /dev/urandom" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002776echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6
2777if test "${ac_cv_file__dev_urandom+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 test "$cross_compiling" = yes &&
2781 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2782echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2783 { (exit 1); exit 1; }; }
2784if test -r "/dev/urandom"; then
2785 ac_cv_file__dev_urandom=yes
2786else
2787 ac_cv_file__dev_urandom=no
2788fi
2789fi
2790echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
2791echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6
2792if test $ac_cv_file__dev_urandom = yes; then
David McGrewb67061f2005-09-28 14:23:06 +00002793 DEV_URANDOM=/dev/urandom
Cullen Jennings235513a2005-09-21 22:51:36 +00002794else
David McGrewb67061f2005-09-28 14:23:06 +00002795 echo "$as_me:$LINENO: checking for /dev/random" >&5
2796echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6
2797if test "${ac_cv_file__dev_random+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800 test "$cross_compiling" = yes &&
2801 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2802echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2803 { (exit 1); exit 1; }; }
2804if test -r "/dev/random"; then
2805 ac_cv_file__dev_random=yes
2806else
2807 ac_cv_file__dev_random=no
2808fi
2809fi
2810echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5
2811echo "${ECHO_T}$ac_cv_file__dev_random" >&6
2812if test $ac_cv_file__dev_random = yes; then
2813 DEV_URANDOM=/dev/random
Cullen Jennings235513a2005-09-21 22:51:36 +00002814fi
2815
David McGrewb67061f2005-09-28 14:23:06 +00002816fi
2817
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00002818fi
David McGrewb67061f2005-09-28 14:23:06 +00002819
2820echo "$as_me:$LINENO: checking which random device to use" >&5
2821echo $ECHO_N "checking which random device to use... $ECHO_C" >&6
Marcus Sundberg64536cc2005-10-03 15:23:13 +00002822if test "$enable_kernel_linux" = "yes"; then
2823 RNG_OBJS=rand_linux_kernel.o
2824 echo "$as_me:$LINENO: result: Linux kernel builtin" >&5
2825echo "${ECHO_T}Linux kernel builtin" >&6
2826else
2827 RNG_OBJS=rand_source.o
2828 if test -n "$DEV_URANDOM"; then
David McGrewb67061f2005-09-28 14:23:06 +00002829
2830cat >>confdefs.h <<_ACEOF
2831#define DEV_URANDOM "$DEV_URANDOM"
Cullen Jennings235513a2005-09-21 22:51:36 +00002832_ACEOF
2833
Marcus Sundberg64536cc2005-10-03 15:23:13 +00002834 echo "$as_me:$LINENO: result: $DEV_URANDOM" >&5
2835echo "${ECHO_T}$DEV_URANDOM" >&6
2836 else
2837 echo "$as_me:$LINENO: result: standard rand() function..." >&5
2838echo "${ECHO_T}standard rand() function..." >&6
2839 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002840fi
2841
David McGrewb67061f2005-09-28 14:23:06 +00002842
2843
Cullen Jennings235513a2005-09-21 22:51:36 +00002844ac_ext=c
2845ac_cpp='$CPP $CPPFLAGS'
2846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2850echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2851# On Suns, sometimes $CPP names a directory.
2852if test -n "$CPP" && test -d "$CPP"; then
2853 CPP=
2854fi
2855if test -z "$CPP"; then
2856 if test "${ac_cv_prog_CPP+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 # Double quotes because CPP needs to be expanded
2860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2861 do
2862 ac_preproc_ok=false
2863for ac_c_preproc_warn_flag in '' yes
2864do
2865 # Use a header file that comes with gcc, so configuring glibc
2866 # with a fresh cross-compiler works.
2867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868 # <limits.h> exists even on freestanding compilers.
2869 # On the NeXT, cc -E runs the code through the compiler's parser,
2870 # not just through cpp. "Syntax error" is here to catch this case.
2871 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
2877#ifdef __STDC__
2878# include <limits.h>
2879#else
2880# include <assert.h>
2881#endif
David McGrewfec49dd2005-09-23 19:34:11 +00002882 Syntax error
Cullen Jennings235513a2005-09-21 22:51:36 +00002883_ACEOF
2884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00002894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00002895 else
2896 ac_cpp_err=
2897 fi
2898else
2899 ac_cpp_err=yes
2900fi
2901if test -z "$ac_cpp_err"; then
2902 :
2903else
2904 echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 # Broken: fails on valid input.
2908continue
2909fi
2910rm -f conftest.err conftest.$ac_ext
2911
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
2914 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002915/* confdefs.h. */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
2920#include <ac_nonexistent.h>
2921_ACEOF
2922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } >/dev/null; then
2930 if test -s conftest.err; then
2931 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00002932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00002933 else
2934 ac_cpp_err=
2935 fi
2936else
2937 ac_cpp_err=yes
2938fi
2939if test -z "$ac_cpp_err"; then
2940 # Broken: success on invalid input.
2941continue
2942else
2943 echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 # Passes both tests.
2947ac_preproc_ok=:
2948break
2949fi
2950rm -f conftest.err conftest.$ac_ext
2951
2952done
2953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954rm -f conftest.err conftest.$ac_ext
2955if $ac_preproc_ok; then
2956 break
2957fi
2958
2959 done
2960 ac_cv_prog_CPP=$CPP
2961
2962fi
2963 CPP=$ac_cv_prog_CPP
2964else
2965 ac_cv_prog_CPP=$CPP
2966fi
2967echo "$as_me:$LINENO: result: $CPP" >&5
2968echo "${ECHO_T}$CPP" >&6
2969ac_preproc_ok=false
2970for ac_c_preproc_warn_flag in '' yes
2971do
2972 # Use a header file that comes with gcc, so configuring glibc
2973 # with a fresh cross-compiler works.
2974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975 # <limits.h> exists even on freestanding compilers.
2976 # On the NeXT, cc -E runs the code through the compiler's parser,
2977 # not just through cpp. "Syntax error" is here to catch this case.
2978 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002979/* confdefs.h. */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h. */
2984#ifdef __STDC__
2985# include <limits.h>
2986#else
2987# include <assert.h>
2988#endif
David McGrewfec49dd2005-09-23 19:34:11 +00002989 Syntax error
Cullen Jennings235513a2005-09-21 22:51:36 +00002990_ACEOF
2991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003002 else
3003 ac_cpp_err=
3004 fi
3005else
3006 ac_cpp_err=yes
3007fi
3008if test -z "$ac_cpp_err"; then
3009 :
3010else
3011 echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 # Broken: fails on valid input.
3015continue
3016fi
3017rm -f conftest.err conftest.$ac_ext
3018
3019 # OK, works on sane cases. Now check whether non-existent headers
3020 # can be detected and how.
3021 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027#include <ac_nonexistent.h>
3028_ACEOF
3029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null; then
3037 if test -s conftest.err; then
3038 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003040 else
3041 ac_cpp_err=
3042 fi
3043else
3044 ac_cpp_err=yes
3045fi
3046if test -z "$ac_cpp_err"; then
3047 # Broken: success on invalid input.
3048continue
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Passes both tests.
3054ac_preproc_ok=:
3055break
3056fi
3057rm -f conftest.err conftest.$ac_ext
3058
3059done
3060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061rm -f conftest.err conftest.$ac_ext
3062if $ac_preproc_ok; then
3063 :
3064else
3065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3066See \`config.log' for more details." >&5
3067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3068See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3070fi
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078
3079echo "$as_me:$LINENO: checking for egrep" >&5
3080echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3081if test "${ac_cv_prog_egrep+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3085 then ac_cv_prog_egrep='grep -E'
3086 else ac_cv_prog_egrep='egrep'
3087 fi
3088fi
3089echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3090echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3091 EGREP=$ac_cv_prog_egrep
3092
3093
3094echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3095echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3096if test "${ac_cv_header_stdc+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098else
3099 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003100/* confdefs.h. */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h. */
3105#include <stdlib.h>
3106#include <stdarg.h>
3107#include <string.h>
3108#include <float.h>
3109
3110int
3111main ()
3112{
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
3119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003120 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003121 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003127 { ac_try='test -z "$ac_c_werror_flag"
3128 || test ! -s conftest.err'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 ac_cv_header_stdc=yes
3141else
3142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145ac_cv_header_stdc=no
3146fi
David McGrewfec49dd2005-09-23 19:34:11 +00003147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003148
3149if test $ac_cv_header_stdc = yes; then
3150 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3151 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003152/* confdefs.h. */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h. */
3157#include <string.h>
3158
3159_ACEOF
3160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 $EGREP "memchr" >/dev/null 2>&1; then
3162 :
3163else
3164 ac_cv_header_stdc=no
3165fi
3166rm -f conftest*
3167
3168fi
3169
3170if test $ac_cv_header_stdc = yes; then
3171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3172 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178#include <stdlib.h>
3179
3180_ACEOF
3181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 $EGREP "free" >/dev/null 2>&1; then
3183 :
3184else
3185 ac_cv_header_stdc=no
3186fi
3187rm -f conftest*
3188
3189fi
3190
3191if test $ac_cv_header_stdc = yes; then
3192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3193 if test "$cross_compiling" = yes; then
3194 :
3195else
3196 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
3202#include <ctype.h>
3203#if ((' ' & 0x0FF) == 0x020)
3204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3206#else
3207# define ISLOWER(c) \
David McGrewfec49dd2005-09-23 19:34:11 +00003208 (('a' <= (c) && (c) <= 'i') \
3209 || ('j' <= (c) && (c) <= 'r') \
3210 || ('s' <= (c) && (c) <= 'z'))
Cullen Jennings235513a2005-09-21 22:51:36 +00003211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3212#endif
3213
3214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3215int
3216main ()
3217{
3218 int i;
3219 for (i = 0; i < 256; i++)
3220 if (XOR (islower (i), ISLOWER (i))
David McGrewfec49dd2005-09-23 19:34:11 +00003221 || toupper (i) != TOUPPER (i))
Cullen Jennings235513a2005-09-21 22:51:36 +00003222 exit(2);
3223 exit (0);
3224}
3225_ACEOF
3226rm -f conftest$ac_exeext
3227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228 (eval $ac_link) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 :
3238else
3239 echo "$as_me: program exited with status $ac_status" >&5
3240echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243( exit $ac_status )
3244ac_cv_header_stdc=no
3245fi
David McGrewfec49dd2005-09-23 19:34:11 +00003246rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003247fi
3248fi
3249fi
3250echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3251echo "${ECHO_T}$ac_cv_header_stdc" >&6
3252if test $ac_cv_header_stdc = yes; then
3253
3254cat >>confdefs.h <<\_ACEOF
3255#define STDC_HEADERS 1
3256_ACEOF
3257
3258fi
3259
3260# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
David McGrewfec49dd2005-09-23 19:34:11 +00003271 inttypes.h stdint.h unistd.h
Cullen Jennings235513a2005-09-21 22:51:36 +00003272do
3273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3274echo "$as_me:$LINENO: checking for $ac_header" >&5
3275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3276if eval "test \"\${$as_ac_Header+set}\" = set"; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003280/* confdefs.h. */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h. */
3285$ac_includes_default
3286
3287#include <$ac_header>
3288_ACEOF
3289rm -f conftest.$ac_objext
3290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003291 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003292 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003298 { ac_try='test -z "$ac_c_werror_flag"
3299 || test ! -s conftest.err'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 eval "$as_ac_Header=yes"
3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316eval "$as_ac_Header=no"
3317fi
David McGrewfec49dd2005-09-23 19:34:11 +00003318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003319fi
3320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3322if test `eval echo '${'$as_ac_Header'}'` = yes; then
3323 cat >>confdefs.h <<_ACEOF
3324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3325_ACEOF
3326
3327fi
3328
3329done
3330
3331
3332
3333for ac_header in stdlib.h
3334do
3335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3336if eval "test \"\${$as_ac_Header+set}\" = set"; then
3337 echo "$as_me:$LINENO: checking for $ac_header" >&5
3338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3339if eval "test \"\${$as_ac_Header+set}\" = set"; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341fi
3342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3344else
3345 # Is the header compilable?
3346echo "$as_me:$LINENO: checking $ac_header usability" >&5
3347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3348cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354$ac_includes_default
3355#include <$ac_header>
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003359 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003360 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003366 { ac_try='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_header_compiler=yes
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384ac_header_compiler=no
3385fi
David McGrewfec49dd2005-09-23 19:34:11 +00003386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003387echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3388echo "${ECHO_T}$ac_header_compiler" >&6
3389
3390# Is the header present?
3391echo "$as_me:$LINENO: checking $ac_header presence" >&5
3392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3393cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
3399#include <$ac_header>
3400_ACEOF
3401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null; then
3409 if test -s conftest.err; then
3410 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003412 else
3413 ac_cpp_err=
3414 fi
3415else
3416 ac_cpp_err=yes
3417fi
3418if test -z "$ac_cpp_err"; then
3419 ac_header_preproc=yes
3420else
3421 echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 ac_header_preproc=no
3425fi
3426rm -f conftest.err conftest.$ac_ext
3427echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3428echo "${ECHO_T}$ac_header_preproc" >&6
3429
3430# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3432 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3437 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003438 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003439 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3443echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3447echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003452 (
3453 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003454## ------------------------------------------ ##
3455## Report this to the AC_PACKAGE_NAME lists. ##
3456## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003457_ASBOX
3458 ) |
3459 sed "s/^/$as_me: WARNING: /" >&2
3460 ;;
3461esac
3462echo "$as_me:$LINENO: checking for $ac_header" >&5
3463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3464if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466else
David McGrewfec49dd2005-09-23 19:34:11 +00003467 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003468fi
3469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3471
3472fi
3473if test `eval echo '${'$as_ac_Header'}'` = yes; then
3474 cat >>confdefs.h <<_ACEOF
3475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3476_ACEOF
3477
3478fi
3479
3480done
3481
3482
3483for ac_header in unistd.h
3484do
3485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3486if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491fi
3492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3494else
3495 # Is the header compilable?
3496echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3498cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504$ac_includes_default
3505#include <$ac_header>
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003509 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003510 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530else
3531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534ac_header_compiler=no
3535fi
David McGrewfec49dd2005-09-23 19:34:11 +00003536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540# Is the header present?
3541echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#include <$ac_header>
3550_ACEOF
3551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003562 else
3563 ac_cpp_err=
3564 fi
3565else
3566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578echo "${ECHO_T}$ac_header_preproc" >&6
3579
3580# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003588 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003589 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003602 (
3603 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003604## ------------------------------------------ ##
3605## Report this to the AC_PACKAGE_NAME lists. ##
3606## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003607_ASBOX
3608 ) |
3609 sed "s/^/$as_me: WARNING: /" >&2
3610 ;;
3611esac
3612echo "$as_me:$LINENO: checking for $ac_header" >&5
3613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
David McGrewfec49dd2005-09-23 19:34:11 +00003617 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003618fi
3619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3621
3622fi
3623if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626_ACEOF
3627
3628fi
3629
3630done
3631
3632
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00003633for ac_header in byteswap.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641fi
3642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3644else
3645 # Is the header compilable?
3646echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3648cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
3654$ac_includes_default
3655#include <$ac_header>
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684ac_header_compiler=no
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688echo "${ECHO_T}$ac_header_compiler" >&6
3689
3690# Is the header present?
3691echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3693cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
3699#include <$ac_header>
3700_ACEOF
3701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715else
3716 ac_cpp_err=yes
3717fi
3718if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3720else
3721 echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 ac_header_preproc=no
3725fi
3726rm -f conftest.err conftest.$ac_ext
3727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728echo "${ECHO_T}$ac_header_preproc" >&6
3729
3730# So? What about this header?
3731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732 yes:no: )
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3738 ;;
3739 no:yes:* )
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3752 (
3753 cat <<\_ASBOX
3754## ------------------------------------------ ##
3755## Report this to the AC_PACKAGE_NAME lists. ##
3756## ------------------------------------------ ##
3757_ASBOX
3758 ) |
3759 sed "s/^/$as_me: WARNING: /" >&2
3760 ;;
3761esac
3762echo "$as_me:$LINENO: checking for $ac_header" >&5
3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 eval "$as_ac_Header=\$ac_header_preproc"
3768fi
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771
3772fi
3773if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782
Cullen Jennings235513a2005-09-21 22:51:36 +00003783for ac_header in stdint.h
3784do
3785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3786if eval "test \"\${$as_ac_Header+set}\" = set"; then
3787 echo "$as_me:$LINENO: checking for $ac_header" >&5
3788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3789if eval "test \"\${$as_ac_Header+set}\" = set"; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791fi
3792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794else
3795 # Is the header compilable?
3796echo "$as_me:$LINENO: checking $ac_header usability" >&5
3797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3798cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003799/* confdefs.h. */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h. */
3804$ac_includes_default
3805#include <$ac_header>
3806_ACEOF
3807rm -f conftest.$ac_objext
3808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003809 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003810 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003816 { ac_try='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_header_compiler=yes
3830else
3831 echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834ac_header_compiler=no
3835fi
David McGrewfec49dd2005-09-23 19:34:11 +00003836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3838echo "${ECHO_T}$ac_header_compiler" >&6
3839
3840# Is the header present?
3841echo "$as_me:$LINENO: checking $ac_header presence" >&5
3842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3843cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h. */
3849#include <$ac_header>
3850_ACEOF
3851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00003861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00003862 else
3863 ac_cpp_err=
3864 fi
3865else
3866 ac_cpp_err=yes
3867fi
3868if test -z "$ac_cpp_err"; then
3869 ac_header_preproc=yes
3870else
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 ac_header_preproc=no
3875fi
3876rm -f conftest.err conftest.$ac_ext
3877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3878echo "${ECHO_T}$ac_header_preproc" >&6
3879
3880# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00003881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3882 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00003883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3887 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003888 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00003889 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00003890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00003900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00003902 (
3903 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00003904## ------------------------------------------ ##
3905## Report this to the AC_PACKAGE_NAME lists. ##
3906## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00003907_ASBOX
3908 ) |
3909 sed "s/^/$as_me: WARNING: /" >&2
3910 ;;
3911esac
3912echo "$as_me:$LINENO: checking for $ac_header" >&5
3913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3914if eval "test \"\${$as_ac_Header+set}\" = set"; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
David McGrewfec49dd2005-09-23 19:34:11 +00003917 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00003918fi
3919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3921
3922fi
3923if test `eval echo '${'$as_ac_Header'}'` = yes; then
3924 cat >>confdefs.h <<_ACEOF
3925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3926_ACEOF
3927
3928fi
3929
3930done
3931
3932
3933for ac_header in sys/uio.h
3934do
3935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3936if eval "test \"\${$as_ac_Header+set}\" = set"; then
3937 echo "$as_me:$LINENO: checking for $ac_header" >&5
3938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3939if eval "test \"\${$as_ac_Header+set}\" = set"; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941fi
3942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3944else
3945 # Is the header compilable?
3946echo "$as_me:$LINENO: checking $ac_header usability" >&5
3947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3948cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003949/* confdefs.h. */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h. */
3954$ac_includes_default
3955#include <$ac_header>
3956_ACEOF
3957rm -f conftest.$ac_objext
3958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00003959 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00003960 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00003961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00003966 { ac_try='test -z "$ac_c_werror_flag"
3967 || test ! -s conftest.err'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; } &&
3973 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00003974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 ac_header_compiler=yes
3980else
3981 echo "$as_me: failed program was:" >&5
3982sed 's/^/| /' conftest.$ac_ext >&5
3983
3984ac_header_compiler=no
3985fi
David McGrewfec49dd2005-09-23 19:34:11 +00003986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3988echo "${ECHO_T}$ac_header_compiler" >&6
3989
3990# Is the header present?
3991echo "$as_me:$LINENO: checking $ac_header presence" >&5
3992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3993cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00003994/* confdefs.h. */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h. */
3999#include <$ac_header>
4000_ACEOF
4001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00004011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00004012 else
4013 ac_cpp_err=
4014 fi
4015else
4016 ac_cpp_err=yes
4017fi
4018if test -z "$ac_cpp_err"; then
4019 ac_header_preproc=yes
4020else
4021 echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 ac_header_preproc=no
4025fi
4026rm -f conftest.err conftest.$ac_ext
4027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4028echo "${ECHO_T}$ac_header_preproc" >&6
4029
4030# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00004031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4032 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00004033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4037 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00004038 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004039 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00004040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004052 (
4053 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00004054## ------------------------------------------ ##
4055## Report this to the AC_PACKAGE_NAME lists. ##
4056## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00004057_ASBOX
4058 ) |
4059 sed "s/^/$as_me: WARNING: /" >&2
4060 ;;
4061esac
4062echo "$as_me:$LINENO: checking for $ac_header" >&5
4063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4064if eval "test \"\${$as_ac_Header+set}\" = set"; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
David McGrewfec49dd2005-09-23 19:34:11 +00004067 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00004068fi
4069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071
4072fi
4073if test `eval echo '${'$as_ac_Header'}'` = yes; then
4074 cat >>confdefs.h <<_ACEOF
4075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4076_ACEOF
4077
4078fi
4079
4080done
4081
4082
David McGrewd1694b52005-09-29 10:59:33 +00004083for ac_header in inttypes.h
4084do
4085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4086if eval "test \"\${$as_ac_Header+set}\" = set"; then
4087 echo "$as_me:$LINENO: checking for $ac_header" >&5
4088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4089if eval "test \"\${$as_ac_Header+set}\" = set"; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091fi
4092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4094else
4095 # Is the header compilable?
4096echo "$as_me:$LINENO: checking $ac_header usability" >&5
4097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4098cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104$ac_includes_default
4105#include <$ac_header>
4106_ACEOF
4107rm -f conftest.$ac_objext
4108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_c_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_header_compiler=yes
4130else
4131 echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134ac_header_compiler=no
4135fi
4136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4138echo "${ECHO_T}$ac_header_compiler" >&6
4139
4140# Is the header present?
4141echo "$as_me:$LINENO: checking $ac_header presence" >&5
4142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4143cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
4149#include <$ac_header>
4150_ACEOF
4151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } >/dev/null; then
4159 if test -s conftest.err; then
4160 ac_cpp_err=$ac_c_preproc_warn_flag
4161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4162 else
4163 ac_cpp_err=
4164 fi
4165else
4166 ac_cpp_err=yes
4167fi
4168if test -z "$ac_cpp_err"; then
4169 ac_header_preproc=yes
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 ac_header_preproc=no
4175fi
4176rm -f conftest.err conftest.$ac_ext
4177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4178echo "${ECHO_T}$ac_header_preproc" >&6
4179
4180# So? What about this header?
4181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4182 yes:no: )
4183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4187 ac_header_preproc=yes
4188 ;;
4189 no:yes:* )
4190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4202 (
4203 cat <<\_ASBOX
4204## ------------------------------------------ ##
4205## Report this to the AC_PACKAGE_NAME lists. ##
4206## ------------------------------------------ ##
4207_ASBOX
4208 ) |
4209 sed "s/^/$as_me: WARNING: /" >&2
4210 ;;
4211esac
4212echo "$as_me:$LINENO: checking for $ac_header" >&5
4213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4214if eval "test \"\${$as_ac_Header+set}\" = set"; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 eval "$as_ac_Header=\$ac_header_preproc"
4218fi
4219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4221
4222fi
4223if test `eval echo '${'$as_ac_Header'}'` = yes; then
4224 cat >>confdefs.h <<_ACEOF
4225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4226_ACEOF
4227
4228fi
4229
4230done
4231
4232
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004233for ac_header in sys/types.h
4234do
4235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236if eval "test \"\${$as_ac_Header+set}\" = set"; then
4237 echo "$as_me:$LINENO: checking for $ac_header" >&5
4238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4239if eval "test \"\${$as_ac_Header+set}\" = set"; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241fi
4242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4244else
4245 # Is the header compilable?
4246echo "$as_me:$LINENO: checking $ac_header usability" >&5
4247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4248cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
4254$ac_includes_default
4255#include <$ac_header>
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259 (eval $ac_compile) 2>conftest.er1
4260 ac_status=$?
4261 grep -v '^ *+' conftest.er1 >conftest.err
4262 rm -f conftest.er1
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -z "$ac_c_werror_flag"
4267 || test ! -s conftest.err'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_header_compiler=yes
4280else
4281 echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284ac_header_compiler=no
4285fi
4286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4288echo "${ECHO_T}$ac_header_compiler" >&6
4289
4290# Is the header present?
4291echo "$as_me:$LINENO: checking $ac_header presence" >&5
4292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4293cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
4299#include <$ac_header>
4300_ACEOF
4301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null; then
4309 if test -s conftest.err; then
4310 ac_cpp_err=$ac_c_preproc_warn_flag
4311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4312 else
4313 ac_cpp_err=
4314 fi
4315else
4316 ac_cpp_err=yes
4317fi
4318if test -z "$ac_cpp_err"; then
4319 ac_header_preproc=yes
4320else
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_header_preproc=no
4325fi
4326rm -f conftest.err conftest.$ac_ext
4327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4328echo "${ECHO_T}$ac_header_preproc" >&6
4329
4330# So? What about this header?
4331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4332 yes:no: )
4333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4337 ac_header_preproc=yes
4338 ;;
4339 no:yes:* )
4340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4352 (
4353 cat <<\_ASBOX
4354## ------------------------------------------ ##
4355## Report this to the AC_PACKAGE_NAME lists. ##
4356## ------------------------------------------ ##
4357_ASBOX
4358 ) |
4359 sed "s/^/$as_me: WARNING: /" >&2
4360 ;;
4361esac
4362echo "$as_me:$LINENO: checking for $ac_header" >&5
4363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 eval "$as_ac_Header=\$ac_header_preproc"
4368fi
4369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4371
4372fi
4373if test `eval echo '${'$as_ac_Header'}'` = yes; then
4374 cat >>confdefs.h <<_ACEOF
4375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376_ACEOF
4377
4378fi
4379
4380done
4381
4382
Cullen Jennings235513a2005-09-21 22:51:36 +00004383for ac_header in machine/types.h
4384do
4385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386if eval "test \"\${$as_ac_Header+set}\" = set"; then
4387 echo "$as_me:$LINENO: checking for $ac_header" >&5
4388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4389if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391fi
4392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4394else
4395 # Is the header compilable?
4396echo "$as_me:$LINENO: checking $ac_header usability" >&5
4397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4398cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004399/* confdefs.h. */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h. */
4404$ac_includes_default
4405#include <$ac_header>
4406_ACEOF
4407rm -f conftest.$ac_objext
4408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004409 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004410 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_header_compiler=yes
4430else
4431 echo "$as_me: failed program was:" >&5
4432sed 's/^/| /' conftest.$ac_ext >&5
4433
4434ac_header_compiler=no
4435fi
David McGrewfec49dd2005-09-23 19:34:11 +00004436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4438echo "${ECHO_T}$ac_header_compiler" >&6
4439
4440# Is the header present?
4441echo "$as_me:$LINENO: checking $ac_header presence" >&5
4442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4443cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449#include <$ac_header>
4450_ACEOF
4451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00004461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00004462 else
4463 ac_cpp_err=
4464 fi
4465else
4466 ac_cpp_err=yes
4467fi
4468if test -z "$ac_cpp_err"; then
4469 ac_header_preproc=yes
4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_header_preproc=no
4475fi
4476rm -f conftest.err conftest.$ac_ext
4477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4478echo "${ECHO_T}$ac_header_preproc" >&6
4479
4480# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00004481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4482 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00004483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4487 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00004488 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004489 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00004490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004502 (
4503 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00004504## ------------------------------------------ ##
4505## Report this to the AC_PACKAGE_NAME lists. ##
4506## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00004507_ASBOX
4508 ) |
4509 sed "s/^/$as_me: WARNING: /" >&2
4510 ;;
4511esac
4512echo "$as_me:$LINENO: checking for $ac_header" >&5
4513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4514if eval "test \"\${$as_ac_Header+set}\" = set"; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
David McGrewfec49dd2005-09-23 19:34:11 +00004517 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00004518fi
4519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4521
4522fi
4523if test `eval echo '${'$as_ac_Header'}'` = yes; then
4524 cat >>confdefs.h <<_ACEOF
4525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4526_ACEOF
4527
4528fi
4529
4530done
4531
4532
4533for ac_header in sys/int_types.h
4534do
4535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4536if eval "test \"\${$as_ac_Header+set}\" = set"; then
4537 echo "$as_me:$LINENO: checking for $ac_header" >&5
4538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541fi
4542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544else
4545 # Is the header compilable?
4546echo "$as_me:$LINENO: checking $ac_header usability" >&5
4547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4548cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004549/* confdefs.h. */
4550_ACEOF
4551cat confdefs.h >>conftest.$ac_ext
4552cat >>conftest.$ac_ext <<_ACEOF
4553/* end confdefs.h. */
4554$ac_includes_default
4555#include <$ac_header>
4556_ACEOF
4557rm -f conftest.$ac_objext
4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00004559 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00004560 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00004561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00004564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00004566 { ac_try='test -z "$ac_c_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00004574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_header_compiler=yes
4580else
4581 echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584ac_header_compiler=no
4585fi
David McGrewfec49dd2005-09-23 19:34:11 +00004586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4588echo "${ECHO_T}$ac_header_compiler" >&6
4589
4590# Is the header present?
4591echo "$as_me:$LINENO: checking $ac_header presence" >&5
4592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4593cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00004594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h. */
4599#include <$ac_header>
4600_ACEOF
4601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } >/dev/null; then
4609 if test -s conftest.err; then
4610 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00004611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00004612 else
4613 ac_cpp_err=
4614 fi
4615else
4616 ac_cpp_err=yes
4617fi
4618if test -z "$ac_cpp_err"; then
4619 ac_header_preproc=yes
4620else
4621 echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ac_header_preproc=no
4625fi
4626rm -f conftest.err conftest.$ac_ext
4627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4628echo "${ECHO_T}$ac_header_preproc" >&6
4629
4630# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00004631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4632 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00004633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4637 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00004638 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004639 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00004640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00004650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00004652 (
4653 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00004654## ------------------------------------------ ##
4655## Report this to the AC_PACKAGE_NAME lists. ##
4656## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00004657_ASBOX
4658 ) |
4659 sed "s/^/$as_me: WARNING: /" >&2
4660 ;;
4661esac
4662echo "$as_me:$LINENO: checking for $ac_header" >&5
4663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4664if eval "test \"\${$as_ac_Header+set}\" = set"; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
David McGrewfec49dd2005-09-23 19:34:11 +00004667 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00004668fi
4669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4671
4672fi
4673if test `eval echo '${'$as_ac_Header'}'` = yes; then
4674 cat >>confdefs.h <<_ACEOF
4675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676_ACEOF
4677
4678fi
4679
4680done
4681
4682
4683
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004684
4685
4686for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4687do
4688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689if eval "test \"\${$as_ac_Header+set}\" = set"; then
4690 echo "$as_me:$LINENO: checking for $ac_header" >&5
4691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694fi
4695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4697else
4698 # Is the header compilable?
4699echo "$as_me:$LINENO: checking $ac_header usability" >&5
4700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4701cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
4707$ac_includes_default
4708#include <$ac_header>
4709_ACEOF
4710rm -f conftest.$ac_objext
4711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_header_compiler=yes
4733else
4734 echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737ac_header_compiler=no
4738fi
4739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4741echo "${ECHO_T}$ac_header_compiler" >&6
4742
4743# Is the header present?
4744echo "$as_me:$LINENO: checking $ac_header presence" >&5
4745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4746cat >conftest.$ac_ext <<_ACEOF
4747/* confdefs.h. */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h. */
4752#include <$ac_header>
4753_ACEOF
4754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } >/dev/null; then
4762 if test -s conftest.err; then
4763 ac_cpp_err=$ac_c_preproc_warn_flag
4764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4765 else
4766 ac_cpp_err=
4767 fi
4768else
4769 ac_cpp_err=yes
4770fi
4771if test -z "$ac_cpp_err"; then
4772 ac_header_preproc=yes
4773else
4774 echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 ac_header_preproc=no
4778fi
4779rm -f conftest.err conftest.$ac_ext
4780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4781echo "${ECHO_T}$ac_header_preproc" >&6
4782
4783# So? What about this header?
4784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4785 yes:no: )
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4790 ac_header_preproc=yes
4791 ;;
4792 no:yes:* )
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4805 (
4806 cat <<\_ASBOX
4807## ------------------------------------------ ##
4808## Report this to the AC_PACKAGE_NAME lists. ##
4809## ------------------------------------------ ##
4810_ASBOX
4811 ) |
4812 sed "s/^/$as_me: WARNING: /" >&2
4813 ;;
4814esac
4815echo "$as_me:$LINENO: checking for $ac_header" >&5
4816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4817if eval "test \"\${$as_ac_Header+set}\" = set"; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819else
4820 eval "$as_ac_Header=\$ac_header_preproc"
4821fi
4822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4824
4825fi
4826if test `eval echo '${'$as_ac_Header'}'` = yes; then
4827 cat >>confdefs.h <<_ACEOF
4828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4829_ACEOF
4830
4831fi
4832
4833done
4834
4835
4836for ac_header in windows.h
4837do
4838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839if eval "test \"\${$as_ac_Header+set}\" = set"; then
4840 echo "$as_me:$LINENO: checking for $ac_header" >&5
4841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4842if eval "test \"\${$as_ac_Header+set}\" = set"; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844fi
4845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4847else
4848 # Is the header compilable?
4849echo "$as_me:$LINENO: checking $ac_header usability" >&5
4850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4851cat >conftest.$ac_ext <<_ACEOF
4852/* confdefs.h. */
4853_ACEOF
4854cat confdefs.h >>conftest.$ac_ext
4855cat >>conftest.$ac_ext <<_ACEOF
4856/* end confdefs.h. */
4857$ac_includes_default
4858#include <$ac_header>
4859_ACEOF
4860rm -f conftest.$ac_objext
4861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -z "$ac_c_werror_flag"
4870 || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_header_compiler=yes
4883else
4884 echo "$as_me: failed program was:" >&5
4885sed 's/^/| /' conftest.$ac_ext >&5
4886
4887ac_header_compiler=no
4888fi
4889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4891echo "${ECHO_T}$ac_header_compiler" >&6
4892
4893# Is the header present?
4894echo "$as_me:$LINENO: checking $ac_header presence" >&5
4895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4896cat >conftest.$ac_ext <<_ACEOF
4897/* confdefs.h. */
4898_ACEOF
4899cat confdefs.h >>conftest.$ac_ext
4900cat >>conftest.$ac_ext <<_ACEOF
4901/* end confdefs.h. */
4902#include <$ac_header>
4903_ACEOF
4904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev/null; then
4912 if test -s conftest.err; then
4913 ac_cpp_err=$ac_c_preproc_warn_flag
4914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4915 else
4916 ac_cpp_err=
4917 fi
4918else
4919 ac_cpp_err=yes
4920fi
4921if test -z "$ac_cpp_err"; then
4922 ac_header_preproc=yes
4923else
4924 echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_header_preproc=no
4928fi
4929rm -f conftest.err conftest.$ac_ext
4930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4931echo "${ECHO_T}$ac_header_preproc" >&6
4932
4933# So? What about this header?
4934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4935 yes:no: )
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4940 ac_header_preproc=yes
4941 ;;
4942 no:yes:* )
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4955 (
4956 cat <<\_ASBOX
4957## ------------------------------------------ ##
4958## Report this to the AC_PACKAGE_NAME lists. ##
4959## ------------------------------------------ ##
4960_ASBOX
4961 ) |
4962 sed "s/^/$as_me: WARNING: /" >&2
4963 ;;
4964esac
4965echo "$as_me:$LINENO: checking for $ac_header" >&5
4966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4967if eval "test \"\${$as_ac_Header+set}\" = set"; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970 eval "$as_ac_Header=\$ac_header_preproc"
4971fi
4972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4974
4975fi
4976if test `eval echo '${'$as_ac_Header'}'` = yes; then
4977 cat >>confdefs.h <<_ACEOF
4978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4979_ACEOF
4980
4981for ac_header in winsock2.h
4982do
4983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984if eval "test \"\${$as_ac_Header+set}\" = set"; then
4985 echo "$as_me:$LINENO: checking for $ac_header" >&5
4986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4987if eval "test \"\${$as_ac_Header+set}\" = set"; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989fi
4990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4992else
4993 # Is the header compilable?
4994echo "$as_me:$LINENO: checking $ac_header usability" >&5
4995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4996cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002$ac_includes_default
5003#include <$ac_header>
5004_ACEOF
5005rm -f conftest.$ac_objext
5006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 ac_header_compiler=yes
5028else
5029 echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032ac_header_compiler=no
5033fi
5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5036echo "${ECHO_T}$ac_header_compiler" >&6
5037
5038# Is the header present?
5039echo "$as_me:$LINENO: checking $ac_header presence" >&5
5040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5041cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h. */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h. */
5047#include <$ac_header>
5048_ACEOF
5049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null; then
5057 if test -s conftest.err; then
5058 ac_cpp_err=$ac_c_preproc_warn_flag
5059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5060 else
5061 ac_cpp_err=
5062 fi
5063else
5064 ac_cpp_err=yes
5065fi
5066if test -z "$ac_cpp_err"; then
5067 ac_header_preproc=yes
5068else
5069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_header_preproc=no
5073fi
5074rm -f conftest.err conftest.$ac_ext
5075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5076echo "${ECHO_T}$ac_header_preproc" >&6
5077
5078# So? What about this header?
5079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5080 yes:no: )
5081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5085 ac_header_preproc=yes
5086 ;;
5087 no:yes:* )
5088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5100 (
5101 cat <<\_ASBOX
5102## ------------------------------------------ ##
5103## Report this to the AC_PACKAGE_NAME lists. ##
5104## ------------------------------------------ ##
5105_ASBOX
5106 ) |
5107 sed "s/^/$as_me: WARNING: /" >&2
5108 ;;
5109esac
5110echo "$as_me:$LINENO: checking for $ac_header" >&5
5111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5112if eval "test \"\${$as_ac_Header+set}\" = set"; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114else
5115 eval "$as_ac_Header=\$ac_header_preproc"
5116fi
5117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5119
5120fi
5121if test `eval echo '${'$as_ac_Header'}'` = yes; then
5122 cat >>confdefs.h <<_ACEOF
5123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5124_ACEOF
5125
5126fi
5127
5128done
5129
5130fi
5131
5132done
5133
5134
5135
Cullen Jennings235513a2005-09-21 22:51:36 +00005136for ac_header in syslog.h
5137do
5138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5139if eval "test \"\${$as_ac_Header+set}\" = set"; then
5140 echo "$as_me:$LINENO: checking for $ac_header" >&5
5141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5142if eval "test \"\${$as_ac_Header+set}\" = set"; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144fi
5145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5147else
5148 # Is the header compilable?
5149echo "$as_me:$LINENO: checking $ac_header usability" >&5
5150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5151cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005152/* confdefs.h. */
5153_ACEOF
5154cat confdefs.h >>conftest.$ac_ext
5155cat >>conftest.$ac_ext <<_ACEOF
5156/* end confdefs.h. */
5157$ac_includes_default
5158#include <$ac_header>
5159_ACEOF
5160rm -f conftest.$ac_objext
5161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005162 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005163 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005164 grep -v '^ *+' conftest.er1 >conftest.err
5165 rm -f conftest.er1
5166 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005169 { ac_try='test -z "$ac_c_werror_flag"
5170 || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_header_compiler=yes
5183else
5184 echo "$as_me: failed program was:" >&5
5185sed 's/^/| /' conftest.$ac_ext >&5
5186
5187ac_header_compiler=no
5188fi
David McGrewfec49dd2005-09-23 19:34:11 +00005189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5191echo "${ECHO_T}$ac_header_compiler" >&6
5192
5193# Is the header present?
5194echo "$as_me:$LINENO: checking $ac_header presence" >&5
5195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5196cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005197/* confdefs.h. */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h. */
5202#include <$ac_header>
5203_ACEOF
5204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } >/dev/null; then
5212 if test -s conftest.err; then
5213 ac_cpp_err=$ac_c_preproc_warn_flag
David McGrewfec49dd2005-09-23 19:34:11 +00005214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Cullen Jennings235513a2005-09-21 22:51:36 +00005215 else
5216 ac_cpp_err=
5217 fi
5218else
5219 ac_cpp_err=yes
5220fi
5221if test -z "$ac_cpp_err"; then
5222 ac_header_preproc=yes
5223else
5224 echo "$as_me: failed program was:" >&5
5225sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 ac_header_preproc=no
5228fi
5229rm -f conftest.err conftest.$ac_ext
5230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5231echo "${ECHO_T}$ac_header_preproc" >&6
5232
5233# So? What about this header?
David McGrewfec49dd2005-09-23 19:34:11 +00005234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5235 yes:no: )
Cullen Jennings235513a2005-09-21 22:51:36 +00005236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00005238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5240 ac_header_preproc=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00005241 ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005242 no:yes:* )
Cullen Jennings235513a2005-09-21 22:51:36 +00005243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00005245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
David McGrewfec49dd2005-09-23 19:34:11 +00005253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005255 (
5256 cat <<\_ASBOX
David McGrewfec49dd2005-09-23 19:34:11 +00005257## ------------------------------------------ ##
5258## Report this to the AC_PACKAGE_NAME lists. ##
5259## ------------------------------------------ ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005260_ASBOX
5261 ) |
5262 sed "s/^/$as_me: WARNING: /" >&2
5263 ;;
5264esac
5265echo "$as_me:$LINENO: checking for $ac_header" >&5
5266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5267if eval "test \"\${$as_ac_Header+set}\" = set"; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
David McGrewfec49dd2005-09-23 19:34:11 +00005270 eval "$as_ac_Header=\$ac_header_preproc"
Cullen Jennings235513a2005-09-21 22:51:36 +00005271fi
5272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5274
5275fi
5276if test `eval echo '${'$as_ac_Header'}'` = yes; then
5277 cat >>confdefs.h <<_ACEOF
5278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5279_ACEOF
5280
5281fi
5282
5283done
5284
5285
David McGrewd1694b52005-09-29 10:59:33 +00005286echo "$as_me:$LINENO: checking for int8_t" >&5
5287echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
5288if test "${ac_cv_type_int8_t+set}" = set; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297$ac_includes_default
5298int
5299main ()
5300{
David McGrewd1694b52005-09-29 10:59:33 +00005301if ((int8_t *) 0)
Cullen Jennings235513a2005-09-21 22:51:36 +00005302 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00005303if (sizeof (int8_t))
Cullen Jennings235513a2005-09-21 22:51:36 +00005304 return 0;
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext
5310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00005311 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00005312 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00005313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00005318 { ac_try='test -z "$ac_c_werror_flag"
5319 || test ! -s conftest.err'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; } &&
5325 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00005326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00005331 ac_cv_type_int8_t=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00005332else
5333 echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
David McGrewd1694b52005-09-29 10:59:33 +00005336ac_cv_type_int8_t=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005337fi
David McGrewfec49dd2005-09-23 19:34:11 +00005338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005339fi
David McGrewd1694b52005-09-29 10:59:33 +00005340echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
5341echo "${ECHO_T}$ac_cv_type_int8_t" >&6
5342if test $ac_cv_type_int8_t = yes; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005343
David McGrewfec49dd2005-09-23 19:34:11 +00005344cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005345#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005346_ACEOF
5347
5348
5349fi
David McGrewd1694b52005-09-29 10:59:33 +00005350echo "$as_me:$LINENO: checking for uint8_t" >&5
5351echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5352if test "${ac_cv_type_uint8_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00005353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h. */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h. */
5361$ac_includes_default
5362int
5363main ()
5364{
David McGrewd1694b52005-09-29 10:59:33 +00005365if ((uint8_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00005366 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00005367if (sizeof (uint8_t))
David McGrewfec49dd2005-09-23 19:34:11 +00005368 return 0;
5369 ;
5370 return 0;
5371}
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -z "$ac_c_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 (eval $ac_try) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00005395 ac_cv_type_uint8_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00005396else
5397 echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
David McGrewd1694b52005-09-29 10:59:33 +00005400ac_cv_type_uint8_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00005401fi
5402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
David McGrewd1694b52005-09-29 10:59:33 +00005404echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5405echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5406if test $ac_cv_type_uint8_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00005407
5408cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005409#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005410_ACEOF
5411
5412
5413fi
David McGrewd1694b52005-09-29 10:59:33 +00005414echo "$as_me:$LINENO: checking for int16_t" >&5
5415echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5416if test "${ac_cv_type_int16_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00005417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425$ac_includes_default
5426int
5427main ()
5428{
David McGrewd1694b52005-09-29 10:59:33 +00005429if ((int16_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00005430 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00005431if (sizeof (int16_t))
David McGrewfec49dd2005-09-23 19:34:11 +00005432 return 0;
5433 ;
5434 return 0;
5435}
5436_ACEOF
5437rm -f conftest.$ac_objext
5438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00005459 ac_cv_type_int16_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00005460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
David McGrewd1694b52005-09-29 10:59:33 +00005464ac_cv_type_int16_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00005465fi
5466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5467fi
David McGrewd1694b52005-09-29 10:59:33 +00005468echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5469echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5470if test $ac_cv_type_int16_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00005471
5472cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005473#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005474_ACEOF
5475
5476
5477fi
David McGrewd1694b52005-09-29 10:59:33 +00005478echo "$as_me:$LINENO: checking for uint16_t" >&5
5479echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5480if test "${ac_cv_type_uint16_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00005481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483 cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h. */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h. */
5489$ac_includes_default
5490int
5491main ()
5492{
David McGrewd1694b52005-09-29 10:59:33 +00005493if ((uint16_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00005494 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00005495if (sizeof (uint16_t))
David McGrewfec49dd2005-09-23 19:34:11 +00005496 return 0;
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501rm -f conftest.$ac_objext
5502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503 (eval $ac_compile) 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00005523 ac_cv_type_uint16_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00005524else
5525 echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
David McGrewd1694b52005-09-29 10:59:33 +00005528ac_cv_type_uint16_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00005529fi
5530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531fi
David McGrewd1694b52005-09-29 10:59:33 +00005532echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5533echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5534if test $ac_cv_type_uint16_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00005535
5536cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005537#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005538_ACEOF
5539
5540
5541fi
David McGrewd1694b52005-09-29 10:59:33 +00005542echo "$as_me:$LINENO: checking for int32_t" >&5
5543echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5544if test "${ac_cv_type_int32_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00005545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h. */
5553$ac_includes_default
5554int
5555main ()
5556{
David McGrewd1694b52005-09-29 10:59:33 +00005557if ((int32_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00005558 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00005559if (sizeof (int32_t))
David McGrewfec49dd2005-09-23 19:34:11 +00005560 return 0;
5561 ;
5562 return 0;
5563}
5564_ACEOF
5565rm -f conftest.$ac_objext
5566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -z "$ac_c_werror_flag"
5575 || test ! -s conftest.err'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; } &&
5581 { ac_try='test -s conftest.$ac_objext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 (eval $ac_try) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00005587 ac_cv_type_int32_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00005588else
5589 echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
David McGrewd1694b52005-09-29 10:59:33 +00005592ac_cv_type_int32_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00005593fi
5594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5595fi
David McGrewd1694b52005-09-29 10:59:33 +00005596echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5597echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5598if test $ac_cv_type_int32_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00005599
5600cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005601#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005602_ACEOF
5603
5604
5605fi
David McGrewd1694b52005-09-29 10:59:33 +00005606echo "$as_me:$LINENO: checking for uint32_t" >&5
5607echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5608if test "${ac_cv_type_uint32_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00005609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617$ac_includes_default
5618int
5619main ()
5620{
David McGrewd1694b52005-09-29 10:59:33 +00005621if ((uint32_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00005622 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00005623if (sizeof (uint32_t))
David McGrewfec49dd2005-09-23 19:34:11 +00005624 return 0;
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext
5630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -z "$ac_c_werror_flag"
5639 || test ! -s conftest.err'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00005651 ac_cv_type_uint32_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00005652else
5653 echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
David McGrewd1694b52005-09-29 10:59:33 +00005656ac_cv_type_uint32_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00005657fi
5658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659fi
David McGrewd1694b52005-09-29 10:59:33 +00005660echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5661echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5662if test $ac_cv_type_uint32_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00005663
5664cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005665#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005666_ACEOF
5667
5668
5669fi
David McGrewd1694b52005-09-29 10:59:33 +00005670echo "$as_me:$LINENO: checking for uint64_t" >&5
5671echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5672if test "${ac_cv_type_uint64_t+set}" = set; then
David McGrewfec49dd2005-09-23 19:34:11 +00005673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675 cat >conftest.$ac_ext <<_ACEOF
5676/* confdefs.h. */
5677_ACEOF
5678cat confdefs.h >>conftest.$ac_ext
5679cat >>conftest.$ac_ext <<_ACEOF
5680/* end confdefs.h. */
5681$ac_includes_default
5682int
5683main ()
5684{
David McGrewd1694b52005-09-29 10:59:33 +00005685if ((uint64_t *) 0)
David McGrewfec49dd2005-09-23 19:34:11 +00005686 return 0;
David McGrewd1694b52005-09-29 10:59:33 +00005687if (sizeof (uint64_t))
David McGrewfec49dd2005-09-23 19:34:11 +00005688 return 0;
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext
5694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_c_werror_flag"
5703 || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
David McGrewd1694b52005-09-29 10:59:33 +00005715 ac_cv_type_uint64_t=yes
David McGrewfec49dd2005-09-23 19:34:11 +00005716else
5717 echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
David McGrewd1694b52005-09-29 10:59:33 +00005720ac_cv_type_uint64_t=no
David McGrewfec49dd2005-09-23 19:34:11 +00005721fi
5722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723fi
David McGrewd1694b52005-09-29 10:59:33 +00005724echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5725echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5726if test $ac_cv_type_uint64_t = yes; then
David McGrewfec49dd2005-09-23 19:34:11 +00005727
5728cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005729#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005730_ACEOF
5731
5732
5733fi
5734
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005735echo "$as_me:$LINENO: checking for unsigned long" >&5
5736echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
5737if test "${ac_cv_type_unsigned_long+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740 cat >conftest.$ac_ext <<_ACEOF
5741/* confdefs.h. */
5742_ACEOF
5743cat confdefs.h >>conftest.$ac_ext
5744cat >>conftest.$ac_ext <<_ACEOF
5745/* end confdefs.h. */
5746$ac_includes_default
5747int
5748main ()
5749{
5750if ((unsigned long *) 0)
5751 return 0;
5752if (sizeof (unsigned long))
5753 return 0;
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_type_unsigned_long=yes
5781else
5782 echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785ac_cv_type_unsigned_long=no
5786fi
5787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788fi
5789echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
5790echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
5791
5792echo "$as_me:$LINENO: checking size of unsigned long" >&5
5793echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
5794if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 if test "$ac_cv_type_unsigned_long" = yes; then
5798 # The cast to unsigned long works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 if test "$cross_compiling" = yes; then
5803 # Depending upon the size, compute the lo and hi bounds.
5804cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h. */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
5810$ac_includes_default
5811int
5812main ()
5813{
5814static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
5815test_array [0] = 0
5816
5817 ;
5818 return 0;
5819}
5820_ACEOF
5821rm -f conftest.$ac_objext
5822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_lo=0 ac_mid=0
5844 while :; do
5845 cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h. */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h. */
5851$ac_includes_default
5852int
5853main ()
5854{
5855static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
5856test_array [0] = 0
5857
5858 ;
5859 return 0;
5860}
5861_ACEOF
5862rm -f conftest.$ac_objext
5863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_hi=$ac_mid; break
5885else
5886 echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889ac_lo=`expr $ac_mid + 1`
5890 if test $ac_lo -le $ac_mid; then
5891 ac_lo= ac_hi=
5892 break
5893 fi
5894 ac_mid=`expr 2 '*' $ac_mid + 1`
5895fi
5896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898else
5899 echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */
5908$ac_includes_default
5909int
5910main ()
5911{
5912static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
5913test_array [0] = 0
5914
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_hi=-1 ac_mid=-1
5942 while :; do
5943 cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
5949$ac_includes_default
5950int
5951main ()
5952{
5953static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
5954test_array [0] = 0
5955
5956 ;
5957 return 0;
5958}
5959_ACEOF
5960rm -f conftest.$ac_objext
5961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -z "$ac_c_werror_flag"
5970 || test ! -s conftest.err'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest.$ac_objext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 ac_lo=$ac_mid; break
5983else
5984 echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987ac_hi=`expr '(' $ac_mid ')' - 1`
5988 if test $ac_mid -le $ac_hi; then
5989 ac_lo= ac_hi=
5990 break
5991 fi
5992 ac_mid=`expr 2 '*' $ac_mid`
5993fi
5994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5995 done
5996else
5997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000ac_lo= ac_hi=
6001fi
6002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003fi
6004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6005# Binary search between lo and hi bounds.
6006while test "x$ac_lo" != "x$ac_hi"; do
6007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6008 cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014$ac_includes_default
6015int
6016main ()
6017{
6018static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
6019test_array [0] = 0
6020
6021 ;
6022 return 0;
6023}
6024_ACEOF
6025rm -f conftest.$ac_objext
6026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -z "$ac_c_werror_flag"
6035 || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_hi=$ac_mid
6048else
6049 echo "$as_me: failed program was:" >&5
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052ac_lo=`expr '(' $ac_mid ')' + 1`
6053fi
6054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6055done
6056case $ac_lo in
6057?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
6058'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
6059See \`config.log' for more details." >&5
6060echo "$as_me: error: cannot compute sizeof (unsigned long), 77
6061See \`config.log' for more details." >&2;}
6062 { (exit 1); exit 1; }; } ;;
6063esac
6064else
6065 if test "$cross_compiling" = yes; then
6066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6067See \`config.log' for more details." >&5
6068echo "$as_me: error: cannot run test program while cross compiling
6069See \`config.log' for more details." >&2;}
6070 { (exit 1); exit 1; }; }
6071else
6072 cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h. */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h. */
6078$ac_includes_default
6079long longval () { return (long) (sizeof (unsigned long)); }
6080unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
6081#include <stdio.h>
6082#include <stdlib.h>
6083int
6084main ()
6085{
6086
6087 FILE *f = fopen ("conftest.val", "w");
6088 if (! f)
6089 exit (1);
6090 if (((long) (sizeof (unsigned long))) < 0)
6091 {
6092 long i = longval ();
6093 if (i != ((long) (sizeof (unsigned long))))
6094 exit (1);
6095 fprintf (f, "%ld\n", i);
6096 }
6097 else
6098 {
6099 unsigned long i = ulongval ();
6100 if (i != ((long) (sizeof (unsigned long))))
6101 exit (1);
6102 fprintf (f, "%lu\n", i);
6103 }
6104 exit (ferror (f) || fclose (f) != 0);
6105
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest$ac_exeext
6111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 ac_cv_sizeof_unsigned_long=`cat conftest.val`
6122else
6123 echo "$as_me: program exited with status $ac_status" >&5
6124echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127( exit $ac_status )
6128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
6129See \`config.log' for more details." >&5
6130echo "$as_me: error: cannot compute sizeof (unsigned long), 77
6131See \`config.log' for more details." >&2;}
6132 { (exit 1); exit 1; }; }
6133fi
6134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6135fi
6136fi
6137rm -f conftest.val
6138else
6139 ac_cv_sizeof_unsigned_long=0
6140fi
6141fi
6142echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
6143echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
6144cat >>confdefs.h <<_ACEOF
6145#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
6146_ACEOF
6147
David McGrewfec49dd2005-09-23 19:34:11 +00006148
6149echo "$as_me:$LINENO: checking for unsigned long long" >&5
6150echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6151if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154 cat >conftest.$ac_ext <<_ACEOF
6155/* confdefs.h. */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h. */
6160$ac_includes_default
6161int
6162main ()
6163{
6164if ((unsigned long long *) 0)
6165 return 0;
6166if (sizeof (unsigned long long))
6167 return 0;
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172rm -f conftest.$ac_objext
6173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6174 (eval $ac_compile) 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag"
6182 || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_cv_type_unsigned_long_long=yes
6195else
6196 echo "$as_me: failed program was:" >&5
6197sed 's/^/| /' conftest.$ac_ext >&5
6198
6199ac_cv_type_unsigned_long_long=no
6200fi
6201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202fi
6203echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6204echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006205
6206echo "$as_me:$LINENO: checking size of unsigned long long" >&5
6207echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
6208if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
David McGrewfec49dd2005-09-23 19:34:11 +00006210else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006211 if test "$ac_cv_type_unsigned_long_long" = yes; then
6212 # The cast to unsigned long works around a bug in the HP C Compiler
6213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6215 # This bug is HP SR number 8606223364.
6216 if test "$cross_compiling" = yes; then
6217 # Depending upon the size, compute the lo and hi bounds.
6218cat >conftest.$ac_ext <<_ACEOF
6219/* confdefs.h. */
6220_ACEOF
6221cat confdefs.h >>conftest.$ac_ext
6222cat >>conftest.$ac_ext <<_ACEOF
6223/* end confdefs.h. */
6224$ac_includes_default
6225int
6226main ()
6227{
6228static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
6229test_array [0] = 0
6230
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext
6236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_lo=0 ac_mid=0
6258 while :; do
6259 cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h. */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h. */
6265$ac_includes_default
6266int
6267main ()
6268{
6269static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
6270test_array [0] = 0
6271
6272 ;
6273 return 0;
6274}
6275_ACEOF
6276rm -f conftest.$ac_objext
6277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_hi=$ac_mid; break
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303ac_lo=`expr $ac_mid + 1`
6304 if test $ac_lo -le $ac_mid; then
6305 ac_lo= ac_hi=
6306 break
6307 fi
6308 ac_mid=`expr 2 '*' $ac_mid + 1`
David McGrewfec49dd2005-09-23 19:34:11 +00006309fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6311 done
6312else
6313 echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
David McGrewfec49dd2005-09-23 19:34:11 +00006315
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006316cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322$ac_includes_default
6323int
6324main ()
6325{
6326static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
6327test_array [0] = 0
David McGrewfec49dd2005-09-23 19:34:11 +00006328
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006329 ;
6330 return 0;
6331}
6332_ACEOF
6333rm -f conftest.$ac_objext
6334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_hi=-1 ac_mid=-1
6356 while :; do
6357 cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h. */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h. */
6363$ac_includes_default
6364int
6365main ()
6366{
6367static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
6368test_array [0] = 0
6369
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374rm -f conftest.$ac_objext
6375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } &&
6383 { ac_try='test -z "$ac_c_werror_flag"
6384 || test ! -s conftest.err'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_lo=$ac_mid; break
6397else
6398 echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401ac_hi=`expr '(' $ac_mid ')' - 1`
6402 if test $ac_mid -le $ac_hi; then
6403 ac_lo= ac_hi=
6404 break
6405 fi
6406 ac_mid=`expr 2 '*' $ac_mid`
6407fi
6408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409 done
6410else
6411 echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414ac_lo= ac_hi=
6415fi
6416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417fi
6418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419# Binary search between lo and hi bounds.
6420while test "x$ac_lo" != "x$ac_hi"; do
6421 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6422 cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
6428$ac_includes_default
6429int
6430main ()
6431{
6432static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
6433test_array [0] = 0
6434
6435 ;
6436 return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext
6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_hi=$ac_mid
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466ac_lo=`expr '(' $ac_mid ')' + 1`
6467fi
6468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469done
6470case $ac_lo in
6471?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
6472'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
6473See \`config.log' for more details." >&5
6474echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
6475See \`config.log' for more details." >&2;}
6476 { (exit 1); exit 1; }; } ;;
6477esac
6478else
6479 if test "$cross_compiling" = yes; then
6480 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6481See \`config.log' for more details." >&5
6482echo "$as_me: error: cannot run test program while cross compiling
6483See \`config.log' for more details." >&2;}
6484 { (exit 1); exit 1; }; }
6485else
6486 cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h. */
6492$ac_includes_default
6493long longval () { return (long) (sizeof (unsigned long long)); }
6494unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
6495#include <stdio.h>
6496#include <stdlib.h>
6497int
6498main ()
6499{
6500
6501 FILE *f = fopen ("conftest.val", "w");
6502 if (! f)
6503 exit (1);
6504 if (((long) (sizeof (unsigned long long))) < 0)
6505 {
6506 long i = longval ();
6507 if (i != ((long) (sizeof (unsigned long long))))
6508 exit (1);
6509 fprintf (f, "%ld\n", i);
6510 }
6511 else
6512 {
6513 unsigned long i = ulongval ();
6514 if (i != ((long) (sizeof (unsigned long long))))
6515 exit (1);
6516 fprintf (f, "%lu\n", i);
6517 }
6518 exit (ferror (f) || fclose (f) != 0);
6519
6520 ;
6521 return 0;
6522}
6523_ACEOF
6524rm -f conftest$ac_exeext
6525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6526 (eval $ac_link) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
6536else
6537 echo "$as_me: program exited with status $ac_status" >&5
6538echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
6541( exit $ac_status )
6542{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
6543See \`config.log' for more details." >&5
6544echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
6545See \`config.log' for more details." >&2;}
6546 { (exit 1); exit 1; }; }
6547fi
6548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6549fi
6550fi
6551rm -f conftest.val
6552else
6553 ac_cv_sizeof_unsigned_long_long=0
6554fi
6555fi
6556echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
6557echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
6558cat >>confdefs.h <<_ACEOF
6559#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00006560_ACEOF
6561
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006562
Cullen Jennings235513a2005-09-21 22:51:36 +00006563
6564echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6565echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6566if test "${ac_cv_c_const+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
6575
6576int
6577main ()
6578{
6579/* FIXME: Include the comments suggested by Paul. */
6580#ifndef __cplusplus
6581 /* Ultrix mips cc rejects this. */
6582 typedef int charset[2];
6583 const charset x;
6584 /* SunOS 4.1.1 cc rejects this. */
6585 char const *const *ccp;
6586 char **p;
6587 /* NEC SVR4.0.2 mips cc rejects this. */
6588 struct point {int x, y;};
6589 static struct point const zero = {0,0};
6590 /* AIX XL C 1.02.0.0 rejects this.
6591 It does not let you subtract one const X* pointer from another in
6592 an arm of an if-expression whose if-part is not a constant
6593 expression */
6594 const char *g = "string";
6595 ccp = &g + (g ? g-g : 0);
6596 /* HPUX 7.0 cc rejects these. */
6597 ++ccp;
6598 p = (char**) ccp;
6599 ccp = (char const *const *) p;
6600 { /* SCO 3.2v4 cc rejects this. */
6601 char *t;
6602 char const *s = 0 ? (char *) 0 : (char const *) 0;
6603
6604 *t++ = 0;
6605 }
6606 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6607 int x[] = {25, 17};
6608 const int *foo = &x[0];
6609 ++foo;
6610 }
6611 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6612 typedef const int *iptr;
6613 iptr p = 0;
6614 ++p;
6615 }
6616 { /* AIX XL C 1.02.0.0 rejects this saying
6617 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6618 struct s { int j; const int *ap[3]; };
6619 struct s *b; b->j = 5;
6620 }
6621 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6622 const int foo = 10;
6623 }
6624#endif
6625
6626 ;
6627 return 0;
6628}
6629_ACEOF
6630rm -f conftest.$ac_objext
6631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00006632 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00006633 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00006634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00006639 { ac_try='test -z "$ac_c_werror_flag"
6640 || test ! -s conftest.err'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; } &&
6646 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00006647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6652 ac_cv_c_const=yes
6653else
6654 echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
6657ac_cv_c_const=no
6658fi
David McGrewfec49dd2005-09-23 19:34:11 +00006659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00006660fi
6661echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6662echo "${ECHO_T}$ac_cv_c_const" >&6
6663if test $ac_cv_c_const = no; then
6664
6665cat >>confdefs.h <<\_ACEOF
6666#define const
6667_ACEOF
6668
6669fi
6670
6671echo "$as_me:$LINENO: checking for inline" >&5
6672echo $ECHO_N "checking for inline... $ECHO_C" >&6
6673if test "${ac_cv_c_inline+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676 ac_cv_c_inline=no
6677for ac_kw in inline __inline__ __inline; do
6678 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006679/* confdefs.h. */
6680_ACEOF
6681cat confdefs.h >>conftest.$ac_ext
6682cat >>conftest.$ac_ext <<_ACEOF
6683/* end confdefs.h. */
6684#ifndef __cplusplus
6685typedef int foo_t;
6686static $ac_kw foo_t static_foo () {return 0; }
6687$ac_kw foo_t foo () {return 0; }
6688#endif
6689
6690_ACEOF
6691rm -f conftest.$ac_objext
6692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00006693 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00006694 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00006695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00006700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00006708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_c_inline=$ac_kw; break
6714else
6715 echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718fi
David McGrewfec49dd2005-09-23 19:34:11 +00006719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00006720done
6721
6722fi
6723echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6724echo "${ECHO_T}$ac_cv_c_inline" >&6
David McGrewfec49dd2005-09-23 19:34:11 +00006725
6726
Cullen Jennings235513a2005-09-21 22:51:36 +00006727case $ac_cv_c_inline in
6728 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00006729 *)
6730 case $ac_cv_c_inline in
6731 no) ac_val=;;
6732 *) ac_val=$ac_cv_c_inline;;
6733 esac
6734 cat >>confdefs.h <<_ACEOF
6735#ifndef __cplusplus
6736#define inline $ac_val
6737#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00006738_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00006739 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006740esac
6741
6742echo "$as_me:$LINENO: checking for size_t" >&5
6743echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6744if test "${ac_cv_type_size_t+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006748/* confdefs.h. */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h. */
6753$ac_includes_default
6754int
6755main ()
6756{
6757if ((size_t *) 0)
6758 return 0;
6759if (sizeof (size_t))
6760 return 0;
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765rm -f conftest.$ac_objext
6766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00006767 (eval $ac_compile) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00006768 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00006769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00006774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
Cullen Jennings235513a2005-09-21 22:51:36 +00006782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_type_size_t=yes
6788else
6789 echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792ac_cv_type_size_t=no
6793fi
David McGrewfec49dd2005-09-23 19:34:11 +00006794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00006795fi
6796echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6797echo "${ECHO_T}$ac_cv_type_size_t" >&6
6798if test $ac_cv_type_size_t = yes; then
6799 :
6800else
6801
6802cat >>confdefs.h <<_ACEOF
6803#define size_t unsigned
6804_ACEOF
6805
6806fi
6807
6808
David McGrewfec49dd2005-09-23 19:34:11 +00006809
Cullen Jennings235513a2005-09-21 22:51:36 +00006810
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006811
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00006812
6813for ac_func in socket inet_aton usleep sigaction
Cullen Jennings235513a2005-09-21 22:51:36 +00006814do
6815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6816echo "$as_me:$LINENO: checking for $ac_func" >&5
6817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6818if eval "test \"\${$as_ac_var+set}\" = set"; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 cat >conftest.$ac_ext <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006822/* confdefs.h. */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h. */
David McGrewfec49dd2005-09-23 19:34:11 +00006827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6829#define $ac_func innocuous_$ac_func
6830
Cullen Jennings235513a2005-09-21 22:51:36 +00006831/* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func (); below.
6833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 <limits.h> exists even on freestanding compilers. */
David McGrewfec49dd2005-09-23 19:34:11 +00006835
Cullen Jennings235513a2005-09-21 22:51:36 +00006836#ifdef __STDC__
6837# include <limits.h>
6838#else
6839# include <assert.h>
6840#endif
David McGrewfec49dd2005-09-23 19:34:11 +00006841
6842#undef $ac_func
6843
Cullen Jennings235513a2005-09-21 22:51:36 +00006844/* Override any gcc2 internal prototype to avoid an error. */
6845#ifdef __cplusplus
6846extern "C"
6847{
6848#endif
6849/* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851char $ac_func ();
6852/* The GNU C library defines this for functions which it implements
6853 to always fail with ENOSYS. Some functions are actually named
6854 something starting with __ and the normal name is an alias. */
6855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6856choke me
6857#else
6858char (*f) () = $ac_func;
6859#endif
6860#ifdef __cplusplus
6861}
6862#endif
6863
6864int
6865main ()
6866{
6867return f != $ac_func;
6868 ;
6869 return 0;
6870}
6871_ACEOF
6872rm -f conftest.$ac_objext conftest$ac_exeext
6873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
David McGrewfec49dd2005-09-23 19:34:11 +00006874 (eval $ac_link) 2>conftest.er1
Cullen Jennings235513a2005-09-21 22:51:36 +00006875 ac_status=$?
David McGrewfec49dd2005-09-23 19:34:11 +00006876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
David McGrewfec49dd2005-09-23 19:34:11 +00006881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest$ac_exeext'
Cullen Jennings235513a2005-09-21 22:51:36 +00006889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6895else
6896 echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899eval "$as_ac_var=no"
6900fi
David McGrewfec49dd2005-09-23 19:34:11 +00006901rm -f conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00006903fi
6904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6906if test `eval echo '${'$as_ac_var'}'` = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6909_ACEOF
6910
6911fi
6912done
6913
6914
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006915if test "x$ac_cv_func_socket" = "xno"; then
David McGrewb67061f2005-09-28 14:23:06 +00006916
6917echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6918echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6919if test "${ac_cv_lib_socket_socket+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922 ac_check_lib_save_LIBS=$LIBS
6923LIBS="-lsocket $LIBS"
6924cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
6930
6931/* Override any gcc2 internal prototype to avoid an error. */
6932#ifdef __cplusplus
6933extern "C"
6934#endif
6935/* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6937char socket ();
6938int
6939main ()
6940{
6941socket ();
6942 ;
6943 return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext conftest$ac_exeext
6947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest$ac_exeext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_lib_socket_socket=yes
6969else
6970 echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973ac_cv_lib_socket_socket=no
6974fi
6975rm -f conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977LIBS=$ac_check_lib_save_LIBS
6978fi
6979echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6980echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6981if test $ac_cv_lib_socket_socket = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983#define HAVE_LIBSOCKET 1
6984_ACEOF
6985
6986 LIBS="-lsocket $LIBS"
6987
6988fi
6989
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00006990 echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
6991echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
6992 SAVELIBS="$LIBS"
6993 LIBS="$LIBS -lwsock32"
6994 cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
7000
7001#include <winsock2.h>
7002
7003int
7004main ()
7005{
7006
7007socket(0, 0, 0);
7008
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext conftest$ac_exeext
7014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest$ac_exeext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 ac_cv_func_socket=yes
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038else
7039 echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
7042LIBS="$SAVELIBS"
7043 echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6
7045fi
7046rm -f conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048fi
David McGrewb67061f2005-09-28 14:23:06 +00007049
David McGrewb67061f2005-09-28 14:23:06 +00007050echo "$as_me:$LINENO: checking whether to compile in debugging" >&5
7051echo $ECHO_N "checking whether to compile in debugging... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007052# Check whether --enable-debug or --disable-debug was given.
7053if test "${enable_debug+set}" = set; then
7054 enableval="$enable_debug"
Cullen Jennings235513a2005-09-21 22:51:36 +00007055
David McGrewb67061f2005-09-28 14:23:06 +00007056else
7057 enable_debug=yes
7058fi;
7059if test "$enable_debug" = "yes"; then
7060
7061cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007062#define ENABLE_DEBUGGING 1
7063_ACEOF
7064
7065fi
David McGrewb67061f2005-09-28 14:23:06 +00007066echo "$as_me:$LINENO: result: $enable_debug" >&5
7067echo "${ECHO_T}$enable_debug" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007068
David McGrewb67061f2005-09-28 14:23:06 +00007069echo "$as_me:$LINENO: checking whether to use ISMAcryp code" >&5
7070echo $ECHO_N "checking whether to use ISMAcryp code... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007071# Check whether --enable-generic-aesicm or --disable-generic-aesicm was given.
7072if test "${enable_generic_aesicm+set}" = set; then
7073 enableval="$enable_generic_aesicm"
Cullen Jennings235513a2005-09-21 22:51:36 +00007074
David McGrewb67061f2005-09-28 14:23:06 +00007075else
7076 enable_generic_aesicm=no
7077fi;
7078if test "$enable_generic_aesicm" = "yes"; then
7079
7080cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007081#define GENERIC_AESICM 1
7082_ACEOF
7083
7084fi
David McGrewb67061f2005-09-28 14:23:06 +00007085echo "$as_me:$LINENO: result: $enable_generic_aesicm" >&5
7086echo "${ECHO_T}$enable_generic_aesicm" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007087
David McGrewb67061f2005-09-28 14:23:06 +00007088echo "$as_me:$LINENO: checking whether to use syslog for error reporting" >&5
7089echo $ECHO_N "checking whether to use syslog for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007090# Check whether --enable-syslog or --disable-syslog was given.
7091if test "${enable_syslog+set}" = set; then
7092 enableval="$enable_syslog"
Cullen Jennings235513a2005-09-21 22:51:36 +00007093
David McGrewb67061f2005-09-28 14:23:06 +00007094else
7095 enable_syslog=no
7096fi;
7097if test "$enable_syslog" = "yes"; then
7098
7099cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007100#define USE_SYSLOG 1
7101_ACEOF
7102
7103fi
David McGrewb67061f2005-09-28 14:23:06 +00007104echo "$as_me:$LINENO: result: $enable_syslog" >&5
7105echo "${ECHO_T}$enable_syslog" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007106
David McGrewb67061f2005-09-28 14:23:06 +00007107echo "$as_me:$LINENO: checking whether to use stdout for error reporting" >&5
7108echo $ECHO_N "checking whether to use stdout for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007109# Check whether --enable-stdout or --disable-stdout was given.
7110if test "${enable_stdout+set}" = set; then
7111 enableval="$enable_stdout"
Cullen Jennings235513a2005-09-21 22:51:36 +00007112
David McGrewb67061f2005-09-28 14:23:06 +00007113else
7114 enable_stdout=yes
7115fi;
7116if test "$enable_stdout" = "yes"; then
7117
7118cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007119#define ERR_REPORTING_STDOUT 1
7120_ACEOF
7121
7122fi
David McGrewb67061f2005-09-28 14:23:06 +00007123echo "$as_me:$LINENO: result: $enable_stdout" >&5
7124echo "${ECHO_T}$enable_stdout" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007125
David McGrewb67061f2005-09-28 14:23:06 +00007126echo "$as_me:$LINENO: checking whether to use /dev/console for error reporting" >&5
7127echo $ECHO_N "checking whether to use /dev/console for error reporting... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007128# Check whether --enable-console or --disable-console was given.
7129if test "${enable_console+set}" = set; then
7130 enableval="$enable_console"
Cullen Jennings235513a2005-09-21 22:51:36 +00007131
David McGrewb67061f2005-09-28 14:23:06 +00007132else
7133 enable_console=no
7134fi;
7135if test "$enable_console" = "yes"; then
7136
7137cat >>confdefs.h <<\_ACEOF
7138#define USE_ERR_REPORTING_FILE 1
7139_ACEOF
7140
7141
7142cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007143#define ERR_REPORTING_FILE "/dev/console"
7144_ACEOF
7145
7146fi
David McGrewb67061f2005-09-28 14:23:06 +00007147echo "$as_me:$LINENO: result: $enable_console" >&5
7148echo "${ECHO_T}$enable_console" >&6
7149
7150echo "$as_me:$LINENO: checking whether to use GDOI key management" >&5
7151echo $ECHO_N "checking whether to use GDOI key management... $ECHO_C" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007152# Check whether --enable-gdoi or --disable-gdoi was given.
7153if test "${enable_gdoi+set}" = set; then
7154 enableval="$enable_gdoi"
Cullen Jennings235513a2005-09-21 22:51:36 +00007155
David McGrewb67061f2005-09-28 14:23:06 +00007156else
7157 enable_gdoi=no
7158fi;
7159if test "$enable_gdoi" = "yes"; then
7160
7161cat >>confdefs.h <<\_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007162#define SRTP_GDOI 1
7163_ACEOF
7164
7165 GDOI_OBJS=gdoi/srtp+gdoi.o
7166
7167fi
David McGrewb67061f2005-09-28 14:23:06 +00007168echo "$as_me:$LINENO: result: $enable_gdoi" >&5
7169echo "${ECHO_T}$enable_gdoi" >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00007170
David McGrewfec49dd2005-09-23 19:34:11 +00007171 ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00007172
7173
Marcus Sundbergfffdbfe2005-09-29 13:30:54 +00007174 ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
Cullen Jennings235513a2005-09-21 22:51:36 +00007175cat >confcache <<\_ACEOF
7176# This file is a shell script that caches the results of configure
7177# tests run on this system so they can be shared between configure
7178# scripts and configure runs, see configure's option --config-cache.
7179# It is not useful on other systems. If it contains results you don't
7180# want to keep, you may remove or edit it.
7181#
7182# config.status only pays attention to the cache file if you give it
7183# the --recheck option to rerun configure.
7184#
7185# `ac_cv_env_foo' variables (set or unset) will be overridden when
7186# loading this file, other *unset* `ac_cv_foo' will be assigned the
7187# following values.
7188
7189_ACEOF
7190
7191# The following way of writing the cache mishandles newlines in values,
7192# but we know of no workaround that is simple, portable, and efficient.
7193# So, don't put newlines in cache variables' values.
7194# Ultrix sh set writes to stderr and can't be redirected directly,
7195# and sets the high bit in the cache file unless we assign to the vars.
7196{
7197 (set) 2>&1 |
7198 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7199 *ac_space=\ *)
7200 # `set' does not quote correctly, so add quotes (double-quote
7201 # substitution turns \\\\ into \\, and sed turns \\ into \).
7202 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00007203 "s/'/'\\\\''/g;
7204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00007205 ;;
7206 *)
7207 # `set' quotes correctly as required by POSIX, so do not add quotes.
7208 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00007209 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00007210 ;;
7211 esac;
7212} |
7213 sed '
7214 t clear
7215 : clear
7216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7217 t end
7218 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7219 : end' >>confcache
7220if diff $cache_file confcache >/dev/null 2>&1; then :; else
7221 if test -w $cache_file; then
7222 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7223 cat confcache >$cache_file
7224 else
7225 echo "not updating unwritable cache $cache_file"
7226 fi
7227fi
7228rm -f confcache
7229
7230test "x$prefix" = xNONE && prefix=$ac_default_prefix
7231# Let make expand exec_prefix.
7232test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7233
7234# VPATH may cause trouble with some makes, so we remove $(srcdir),
7235# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7236# trailing colons and then remove the whole line if VPATH becomes empty
7237# (actually we leave an empty line to preserve line numbers).
7238if test "x$srcdir" = x.; then
David McGrewfec49dd2005-09-23 19:34:11 +00007239 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Cullen Jennings235513a2005-09-21 22:51:36 +00007240s/:*\$(srcdir):*/:/;
7241s/:*\${srcdir}:*/:/;
7242s/:*@srcdir@:*/:/;
David McGrewfec49dd2005-09-23 19:34:11 +00007243s/^\([^=]*=[ ]*\):*/\1/;
Cullen Jennings235513a2005-09-21 22:51:36 +00007244s/:*$//;
David McGrewfec49dd2005-09-23 19:34:11 +00007245s/^[^=]*=[ ]*$//;
Cullen Jennings235513a2005-09-21 22:51:36 +00007246}'
7247fi
7248
7249DEFS=-DHAVE_CONFIG_H
7250
7251ac_libobjs=
7252ac_ltlibobjs=
7253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7254 # 1. Remove the extension, and $U if already installed.
7255 ac_i=`echo "$ac_i" |
David McGrewfec49dd2005-09-23 19:34:11 +00007256 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Cullen Jennings235513a2005-09-21 22:51:36 +00007257 # 2. Add them.
7258 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7259 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7260done
7261LIBOBJS=$ac_libobjs
7262
7263LTLIBOBJS=$ac_ltlibobjs
7264
7265
7266
7267: ${CONFIG_STATUS=./config.status}
7268ac_clean_files_save=$ac_clean_files
7269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7270{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7271echo "$as_me: creating $CONFIG_STATUS" >&6;}
7272cat >$CONFIG_STATUS <<_ACEOF
7273#! $SHELL
7274# Generated by $as_me.
7275# Run this file to recreate the current configuration.
7276# Compiler output produced by configure, useful for debugging
7277# configure, is in config.log if it exists.
7278
7279debug=false
7280ac_cs_recheck=false
7281ac_cs_silent=false
7282SHELL=\${CONFIG_SHELL-$SHELL}
7283_ACEOF
7284
7285cat >>$CONFIG_STATUS <<\_ACEOF
7286## --------------------- ##
7287## M4sh Initialization. ##
7288## --------------------- ##
7289
7290# Be Bourne compatible
7291if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7292 emulate sh
7293 NULLCMD=:
7294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7295 # is contrary to our usage. Disable this feature.
7296 alias -g '${1+"$@"}'='"$@"'
7297elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7298 set -o posix
7299fi
David McGrewfec49dd2005-09-23 19:34:11 +00007300DUALCASE=1; export DUALCASE # for MKS sh
Cullen Jennings235513a2005-09-21 22:51:36 +00007301
7302# Support unset when possible.
David McGrewfec49dd2005-09-23 19:34:11 +00007303if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Cullen Jennings235513a2005-09-21 22:51:36 +00007304 as_unset=unset
7305else
7306 as_unset=false
7307fi
7308
7309
7310# Work around bugs in pre-3.0 UWIN ksh.
7311$as_unset ENV MAIL MAILPATH
7312PS1='$ '
7313PS2='> '
7314PS4='+ '
7315
7316# NLS nuisances.
7317for as_var in \
7318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7320 LC_TELEPHONE LC_TIME
7321do
David McGrewfec49dd2005-09-23 19:34:11 +00007322 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Cullen Jennings235513a2005-09-21 22:51:36 +00007323 eval $as_var=C; export $as_var
7324 else
7325 $as_unset $as_var
7326 fi
7327done
7328
7329# Required to use basename.
7330if expr a : '\(a\)' >/dev/null 2>&1; then
7331 as_expr=expr
7332else
7333 as_expr=false
7334fi
7335
7336if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7337 as_basename=basename
7338else
7339 as_basename=false
7340fi
7341
7342
7343# Name of the executable.
7344as_me=`$as_basename "$0" ||
7345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7346 X"$0" : 'X\(//\)$' \| \
7347 X"$0" : 'X\(/\)$' \| \
7348 . : '\(.\)' 2>/dev/null ||
7349echo X/"$0" |
7350 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7351 /^X\/\(\/\/\)$/{ s//\1/; q; }
7352 /^X\/\(\/\).*/{ s//\1/; q; }
7353 s/.*/./; q'`
7354
7355
7356# PATH needs CR, and LINENO needs CR and PATH.
7357# Avoid depending upon Character Ranges.
7358as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7359as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7360as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7361as_cr_digits='0123456789'
7362as_cr_alnum=$as_cr_Letters$as_cr_digits
7363
7364# The user is always right.
7365if test "${PATH_SEPARATOR+set}" != set; then
7366 echo "#! /bin/sh" >conf$$.sh
7367 echo "exit 0" >>conf$$.sh
7368 chmod +x conf$$.sh
7369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7370 PATH_SEPARATOR=';'
7371 else
7372 PATH_SEPARATOR=:
7373 fi
7374 rm -f conf$$.sh
7375fi
7376
7377
7378 as_lineno_1=$LINENO
7379 as_lineno_2=$LINENO
7380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7381 test "x$as_lineno_1" != "x$as_lineno_2" &&
7382 test "x$as_lineno_3" = "x$as_lineno_2" || {
7383 # Find who we are. Look in the path if we contain no path at all
7384 # relative or not.
7385 case $0 in
7386 *[\\/]* ) as_myself=$0 ;;
7387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7393done
7394
7395 ;;
7396 esac
7397 # We did not find ourselves, most probably we were run as `sh COMMAND'
7398 # in which case we are not to be found in the path.
7399 if test "x$as_myself" = x; then
7400 as_myself=$0
7401 fi
7402 if test ! -f "$as_myself"; then
7403 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7404echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7405 { (exit 1); exit 1; }; }
7406 fi
7407 case $CONFIG_SHELL in
7408 '')
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7411do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for as_base in sh bash ksh sh5; do
7415 case $as_dir in
7416 /*)
7417 if ("$as_dir/$as_base" -c '
7418 as_lineno_1=$LINENO
7419 as_lineno_2=$LINENO
7420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7421 test "x$as_lineno_1" != "x$as_lineno_2" &&
7422 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7423 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7424 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7425 CONFIG_SHELL=$as_dir/$as_base
7426 export CONFIG_SHELL
7427 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7428 fi;;
7429 esac
7430 done
7431done
7432;;
7433 esac
7434
7435 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7436 # uniformly replaced by the line number. The first 'sed' inserts a
7437 # line-number line before each line; the second 'sed' does the real
7438 # work. The second script uses 'N' to pair each line-number line
7439 # with the numbered line, and appends trailing '-' during
7440 # substitution so that $LINENO is not a special case at line end.
7441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7442 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7443 sed '=' <$as_myself |
7444 sed '
7445 N
7446 s,$,-,
7447 : loop
7448 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7449 t loop
7450 s,-$,,
7451 s,^['$as_cr_digits']*\n,,
7452 ' >$as_me.lineno &&
7453 chmod +x $as_me.lineno ||
7454 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7455echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7456 { (exit 1); exit 1; }; }
7457
7458 # Don't try to exec as it changes $[0], causing all sort of problems
7459 # (the dirname of $[0] is not the place where we might find the
7460 # original and so on. Autoconf is especially sensible to this).
7461 . ./$as_me.lineno
7462 # Exit status is that of the last command.
7463 exit
7464}
7465
7466
7467case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7468 *c*,-n*) ECHO_N= ECHO_C='
7469' ECHO_T=' ' ;;
7470 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7471 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7472esac
7473
7474if expr a : '\(a\)' >/dev/null 2>&1; then
7475 as_expr=expr
7476else
7477 as_expr=false
7478fi
7479
7480rm -f conf$$ conf$$.exe conf$$.file
7481echo >conf$$.file
7482if ln -s conf$$.file conf$$ 2>/dev/null; then
7483 # We could just check for DJGPP; but this test a) works b) is more generic
7484 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7485 if test -f conf$$.exe; then
7486 # Don't use ln at all; we don't have any links
7487 as_ln_s='cp -p'
7488 else
7489 as_ln_s='ln -s'
7490 fi
7491elif ln conf$$.file conf$$ 2>/dev/null; then
7492 as_ln_s=ln
7493else
7494 as_ln_s='cp -p'
7495fi
7496rm -f conf$$ conf$$.exe conf$$.file
7497
7498if mkdir -p . 2>/dev/null; then
7499 as_mkdir_p=:
7500else
David McGrewfec49dd2005-09-23 19:34:11 +00007501 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00007502 as_mkdir_p=false
7503fi
7504
7505as_executable_p="test -f"
7506
7507# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00007508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00007509
7510# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00007511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00007512
7513
7514# IFS
7515# We need space, tab and new line, in precisely that order.
7516as_nl='
7517'
7518IFS=" $as_nl"
7519
7520# CDPATH.
7521$as_unset CDPATH
7522
7523exec 6>&1
7524
7525# Open the log real soon, to keep \$[0] and so on meaningful, and to
7526# report actual input values of CONFIG_FILES etc. instead of their
7527# values after options handling. Logging --version etc. is OK.
7528exec 5>>config.log
7529{
7530 echo
7531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7532## Running $as_me. ##
7533_ASBOX
7534} >&5
7535cat >&5 <<_CSEOF
7536
7537This file was extended by $as_me, which was
David McGrewfec49dd2005-09-23 19:34:11 +00007538generated by GNU Autoconf 2.59. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00007539
7540 CONFIG_FILES = $CONFIG_FILES
7541 CONFIG_HEADERS = $CONFIG_HEADERS
7542 CONFIG_LINKS = $CONFIG_LINKS
7543 CONFIG_COMMANDS = $CONFIG_COMMANDS
7544 $ $0 $@
7545
7546_CSEOF
7547echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7548echo >&5
7549_ACEOF
7550
7551# Files that config.status was made for.
7552if test -n "$ac_config_files"; then
7553 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7554fi
7555
7556if test -n "$ac_config_headers"; then
7557 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7558fi
7559
7560if test -n "$ac_config_links"; then
7561 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7562fi
7563
7564if test -n "$ac_config_commands"; then
7565 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7566fi
7567
7568cat >>$CONFIG_STATUS <<\_ACEOF
7569
7570ac_cs_usage="\
7571\`$as_me' instantiates files from templates according to the
7572current configuration.
7573
7574Usage: $0 [OPTIONS] [FILE]...
7575
7576 -h, --help print this help, then exit
7577 -V, --version print version number, then exit
7578 -q, --quiet do not print progress messages
7579 -d, --debug don't remove temporary files
7580 --recheck update $as_me by reconfiguring in the same conditions
7581 --file=FILE[:TEMPLATE]
David McGrewfec49dd2005-09-23 19:34:11 +00007582 instantiate the configuration file FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00007583 --header=FILE[:TEMPLATE]
David McGrewfec49dd2005-09-23 19:34:11 +00007584 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00007585
7586Configuration files:
7587$config_files
7588
7589Configuration headers:
7590$config_headers
7591
7592Report bugs to <bug-autoconf@gnu.org>."
7593_ACEOF
7594
7595cat >>$CONFIG_STATUS <<_ACEOF
7596ac_cs_version="\\
7597config.status
David McGrewfec49dd2005-09-23 19:34:11 +00007598configured by $0, generated by GNU Autoconf 2.59,
Cullen Jennings235513a2005-09-21 22:51:36 +00007599 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7600
David McGrewfec49dd2005-09-23 19:34:11 +00007601Copyright (C) 2003 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00007602This config.status script is free software; the Free Software Foundation
7603gives unlimited permission to copy, distribute and modify it."
7604srcdir=$srcdir
David McGrewb67061f2005-09-28 14:23:06 +00007605INSTALL="$INSTALL"
Cullen Jennings235513a2005-09-21 22:51:36 +00007606_ACEOF
7607
7608cat >>$CONFIG_STATUS <<\_ACEOF
7609# If no file are specified by the user, then we need to provide default
7610# value. By we need to know if files were specified by the user.
7611ac_need_defaults=:
7612while test $# != 0
7613do
7614 case $1 in
7615 --*=*)
7616 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7617 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7618 ac_shift=:
7619 ;;
7620 -*)
7621 ac_option=$1
7622 ac_optarg=$2
7623 ac_shift=shift
7624 ;;
7625 *) # This is not an option, so the user has probably given explicit
7626 # arguments.
7627 ac_option=$1
7628 ac_need_defaults=false;;
7629 esac
7630
7631 case $ac_option in
7632 # Handling of the options.
7633_ACEOF
7634cat >>$CONFIG_STATUS <<\_ACEOF
7635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7636 ac_cs_recheck=: ;;
7637 --version | --vers* | -V )
7638 echo "$ac_cs_version"; exit 0 ;;
7639 --he | --h)
7640 # Conflict between --help and --header
7641 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7642Try \`$0 --help' for more information." >&5
7643echo "$as_me: error: ambiguous option: $1
7644Try \`$0 --help' for more information." >&2;}
7645 { (exit 1); exit 1; }; };;
7646 --help | --hel | -h )
7647 echo "$ac_cs_usage"; exit 0 ;;
7648 --debug | --d* | -d )
7649 debug=: ;;
7650 --file | --fil | --fi | --f )
7651 $ac_shift
7652 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7653 ac_need_defaults=false;;
7654 --header | --heade | --head | --hea )
7655 $ac_shift
7656 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7657 ac_need_defaults=false;;
7658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7660 ac_cs_silent=: ;;
7661
7662 # This is an error.
7663 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7664Try \`$0 --help' for more information." >&5
7665echo "$as_me: error: unrecognized option: $1
7666Try \`$0 --help' for more information." >&2;}
7667 { (exit 1); exit 1; }; } ;;
7668
7669 *) ac_config_targets="$ac_config_targets $1" ;;
7670
7671 esac
7672 shift
7673done
7674
7675ac_configure_extra_args=
7676
7677if $ac_cs_silent; then
7678 exec 6>/dev/null
7679 ac_configure_extra_args="$ac_configure_extra_args --silent"
7680fi
7681
7682_ACEOF
7683cat >>$CONFIG_STATUS <<_ACEOF
7684if \$ac_cs_recheck; then
7685 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7686 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7687fi
7688
7689_ACEOF
7690
7691
7692
7693
7694
7695cat >>$CONFIG_STATUS <<\_ACEOF
7696for ac_config_target in $ac_config_targets
7697do
7698 case "$ac_config_target" in
7699 # Handling of arguments.
7700 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Marcus Sundbergfffdbfe2005-09-29 13:30:54 +00007701 "crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
7702 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
David McGrewfec49dd2005-09-23 19:34:11 +00007703 "crypto/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007704 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7705echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7706 { (exit 1); exit 1; }; };;
7707 esac
7708done
7709
7710# If the user did not use the arguments to specify the items to instantiate,
7711# then the envvar interface is used. Set only those that are not.
7712# We use the long form for the default assignment because of an extremely
7713# bizarre bug on SunOS 4.1.3.
7714if $ac_need_defaults; then
7715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7717fi
7718
7719# Have a temporary directory for convenience. Make it in the build tree
7720# simply because there is no reason to put it here, and in addition,
7721# creating and moving files from /tmp can sometimes cause problems.
7722# Create a temporary directory, and hook for its removal unless debugging.
7723$debug ||
7724{
7725 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7726 trap '{ (exit 1); exit 1; }' 1 2 13 15
7727}
7728
7729# Create a (secure) tmp directory for tmp files.
7730
7731{
7732 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7733 test -n "$tmp" && test -d "$tmp"
7734} ||
7735{
7736 tmp=./confstat$$-$RANDOM
7737 (umask 077 && mkdir $tmp)
7738} ||
7739{
7740 echo "$me: cannot create a temporary directory in ." >&2
7741 { (exit 1); exit 1; }
7742}
7743
7744_ACEOF
7745
7746cat >>$CONFIG_STATUS <<_ACEOF
7747
7748#
7749# CONFIG_FILES section.
7750#
7751
7752# No need to generate the scripts if there are no CONFIG_FILES.
7753# This happens for instance when ./config.status config.h
7754if test -n "\$CONFIG_FILES"; then
7755 # Protect against being on the right side of a sed subst in config.status.
7756 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7757 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7758s,@SHELL@,$SHELL,;t t
7759s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7760s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7761s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7762s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7763s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7764s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7765s,@exec_prefix@,$exec_prefix,;t t
7766s,@prefix@,$prefix,;t t
7767s,@program_transform_name@,$program_transform_name,;t t
7768s,@bindir@,$bindir,;t t
7769s,@sbindir@,$sbindir,;t t
7770s,@libexecdir@,$libexecdir,;t t
7771s,@datadir@,$datadir,;t t
7772s,@sysconfdir@,$sysconfdir,;t t
7773s,@sharedstatedir@,$sharedstatedir,;t t
7774s,@localstatedir@,$localstatedir,;t t
7775s,@libdir@,$libdir,;t t
7776s,@includedir@,$includedir,;t t
7777s,@oldincludedir@,$oldincludedir,;t t
7778s,@infodir@,$infodir,;t t
7779s,@mandir@,$mandir,;t t
7780s,@build_alias@,$build_alias,;t t
7781s,@host_alias@,$host_alias,;t t
7782s,@target_alias@,$target_alias,;t t
7783s,@DEFS@,$DEFS,;t t
7784s,@ECHO_C@,$ECHO_C,;t t
7785s,@ECHO_N@,$ECHO_N,;t t
7786s,@ECHO_T@,$ECHO_T,;t t
7787s,@LIBS@,$LIBS,;t t
7788s,@RANLIB@,$RANLIB,;t t
7789s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7790s,@CC@,$CC,;t t
7791s,@CFLAGS@,$CFLAGS,;t t
7792s,@LDFLAGS@,$LDFLAGS,;t t
7793s,@CPPFLAGS@,$CPPFLAGS,;t t
7794s,@ac_ct_CC@,$ac_ct_CC,;t t
7795s,@EXEEXT@,$EXEEXT,;t t
7796s,@OBJEXT@,$OBJEXT,;t t
David McGrewb67061f2005-09-28 14:23:06 +00007797s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7798s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7799s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00007800s,@build@,$build,;t t
7801s,@build_cpu@,$build_cpu,;t t
7802s,@build_vendor@,$build_vendor,;t t
7803s,@build_os@,$build_os,;t t
7804s,@host@,$host,;t t
7805s,@host_cpu@,$host_cpu,;t t
7806s,@host_vendor@,$host_vendor,;t t
7807s,@host_os@,$host_os,;t t
7808s,@EXE@,$EXE,;t t
Marcus Sundberg601cd0a2007-05-23 17:32:22 +00007809s,@RNG_OBJS@,$RNG_OBJS,;t t
7810s,@CPP@,$CPP,;t t
7811s,@EGREP@,$EGREP,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00007812s,@GDOI_OBJS@,$GDOI_OBJS,;t t
David McGrewb67061f2005-09-28 14:23:06 +00007813s,@LIBOBJS@,$LIBOBJS,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00007814s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7815CEOF
7816
7817_ACEOF
7818
7819 cat >>$CONFIG_STATUS <<\_ACEOF
7820 # Split the substitutions into bite-sized pieces for seds with
7821 # small command number limits, like on Digital OSF/1 and HP-UX.
7822 ac_max_sed_lines=48
7823 ac_sed_frag=1 # Number of current file.
7824 ac_beg=1 # First line for current file.
7825 ac_end=$ac_max_sed_lines # Line after last line for current file.
7826 ac_more_lines=:
7827 ac_sed_cmds=
7828 while $ac_more_lines; do
7829 if test $ac_beg -gt 1; then
7830 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7831 else
7832 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7833 fi
7834 if test ! -s $tmp/subs.frag; then
7835 ac_more_lines=false
7836 else
7837 # The purpose of the label and of the branching condition is to
7838 # speed up the sed processing (if there are no `@' at all, there
7839 # is no need to browse any of the substitutions).
7840 # These are the two extra sed commands mentioned above.
7841 (echo ':t
7842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7843 if test -z "$ac_sed_cmds"; then
David McGrewfec49dd2005-09-23 19:34:11 +00007844 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Cullen Jennings235513a2005-09-21 22:51:36 +00007845 else
David McGrewfec49dd2005-09-23 19:34:11 +00007846 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Cullen Jennings235513a2005-09-21 22:51:36 +00007847 fi
7848 ac_sed_frag=`expr $ac_sed_frag + 1`
7849 ac_beg=$ac_end
7850 ac_end=`expr $ac_end + $ac_max_sed_lines`
7851 fi
7852 done
7853 if test -z "$ac_sed_cmds"; then
7854 ac_sed_cmds=cat
7855 fi
7856fi # test -n "$CONFIG_FILES"
7857
7858_ACEOF
7859cat >>$CONFIG_STATUS <<\_ACEOF
7860for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7861 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7862 case $ac_file in
7863 - | *:- | *:-:* ) # input from stdin
David McGrewfec49dd2005-09-23 19:34:11 +00007864 cat >$tmp/stdin
7865 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007867 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
David McGrewfec49dd2005-09-23 19:34:11 +00007868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007869 * ) ac_file_in=$ac_file.in ;;
7870 esac
7871
7872 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7873 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7874$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007875 X"$ac_file" : 'X\(//\)[^/]' \| \
7876 X"$ac_file" : 'X\(//\)$' \| \
7877 X"$ac_file" : 'X\(/\)' \| \
7878 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007879echo X"$ac_file" |
7880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7882 /^X\(\/\/\)$/{ s//\1/; q; }
7883 /^X\(\/\).*/{ s//\1/; q; }
7884 s/.*/./; q'`
7885 { if $as_mkdir_p; then
7886 mkdir -p "$ac_dir"
7887 else
7888 as_dir="$ac_dir"
7889 as_dirs=
7890 while test ! -d "$as_dir"; do
7891 as_dirs="$as_dir $as_dirs"
7892 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7893$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007894 X"$as_dir" : 'X\(//\)[^/]' \| \
7895 X"$as_dir" : 'X\(//\)$' \| \
7896 X"$as_dir" : 'X\(/\)' \| \
7897 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007898echo X"$as_dir" |
7899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7901 /^X\(\/\/\)$/{ s//\1/; q; }
7902 /^X\(\/\).*/{ s//\1/; q; }
7903 s/.*/./; q'`
7904 done
7905 test ! -n "$as_dirs" || mkdir $as_dirs
7906 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7907echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7908 { (exit 1); exit 1; }; }; }
7909
7910 ac_builddir=.
7911
7912if test "$ac_dir" != .; then
7913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7914 # A "../" for each directory in $ac_dir_suffix.
7915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7916else
7917 ac_dir_suffix= ac_top_builddir=
7918fi
7919
7920case $srcdir in
7921 .) # No --srcdir option. We are building in place.
7922 ac_srcdir=.
7923 if test -z "$ac_top_builddir"; then
7924 ac_top_srcdir=.
7925 else
7926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7927 fi ;;
7928 [\\/]* | ?:[\\/]* ) # Absolute path.
7929 ac_srcdir=$srcdir$ac_dir_suffix;
7930 ac_top_srcdir=$srcdir ;;
7931 *) # Relative path.
7932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7934esac
David McGrewfec49dd2005-09-23 19:34:11 +00007935
7936# Do not use `cd foo && pwd` to compute absolute paths, because
7937# the directories may not exist.
7938case `pwd` in
7939.) ac_abs_builddir="$ac_dir";;
7940*)
7941 case "$ac_dir" in
7942 .) ac_abs_builddir=`pwd`;;
7943 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7944 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7945 esac;;
7946esac
7947case $ac_abs_builddir in
7948.) ac_abs_top_builddir=${ac_top_builddir}.;;
7949*)
7950 case ${ac_top_builddir}. in
7951 .) ac_abs_top_builddir=$ac_abs_builddir;;
7952 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7953 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7954 esac;;
7955esac
7956case $ac_abs_builddir in
7957.) ac_abs_srcdir=$ac_srcdir;;
7958*)
7959 case $ac_srcdir in
7960 .) ac_abs_srcdir=$ac_abs_builddir;;
7961 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7962 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7963 esac;;
7964esac
7965case $ac_abs_builddir in
7966.) ac_abs_top_srcdir=$ac_top_srcdir;;
7967*)
7968 case $ac_top_srcdir in
7969 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7970 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7971 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7972 esac;;
7973esac
Cullen Jennings235513a2005-09-21 22:51:36 +00007974
7975
David McGrewb67061f2005-09-28 14:23:06 +00007976 case $INSTALL in
7977 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7978 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7979 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00007980
7981 if test x"$ac_file" != x-; then
7982 { echo "$as_me:$LINENO: creating $ac_file" >&5
7983echo "$as_me: creating $ac_file" >&6;}
7984 rm -f "$ac_file"
7985 fi
7986 # Let's still pretend it is `configure' which instantiates (i.e., don't
7987 # use $as_me), people would be surprised to read:
7988 # /* config.h. Generated by config.status. */
7989 if test x"$ac_file" = x-; then
7990 configure_input=
7991 else
7992 configure_input="$ac_file. "
7993 fi
7994 configure_input=$configure_input"Generated from `echo $ac_file_in |
David McGrewfec49dd2005-09-23 19:34:11 +00007995 sed 's,.*/,,'` by configure."
Cullen Jennings235513a2005-09-21 22:51:36 +00007996
7997 # First look for the input files in the build tree, otherwise in the
7998 # src tree.
7999 ac_file_inputs=`IFS=:
8000 for f in $ac_file_in; do
8001 case $f in
8002 -) echo $tmp/stdin ;;
8003 [\\/$]*)
David McGrewfec49dd2005-09-23 19:34:11 +00008004 # Absolute (can't be DOS-style, as IFS=:)
8005 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00008006echo "$as_me: error: cannot find input file: $f" >&2;}
8007 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00008008 echo "$f";;
Cullen Jennings235513a2005-09-21 22:51:36 +00008009 *) # Relative
David McGrewfec49dd2005-09-23 19:34:11 +00008010 if test -f "$f"; then
8011 # Build tree
8012 echo "$f"
8013 elif test -f "$srcdir/$f"; then
8014 # Source tree
8015 echo "$srcdir/$f"
8016 else
8017 # /dev/null tree
8018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00008019echo "$as_me: error: cannot find input file: $f" >&2;}
8020 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00008021 fi;;
Cullen Jennings235513a2005-09-21 22:51:36 +00008022 esac
8023 done` || { (exit 1); exit 1; }
8024_ACEOF
8025cat >>$CONFIG_STATUS <<_ACEOF
8026 sed "$ac_vpsub
8027$extrasub
8028_ACEOF
8029cat >>$CONFIG_STATUS <<\_ACEOF
8030:t
8031/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8032s,@configure_input@,$configure_input,;t t
8033s,@srcdir@,$ac_srcdir,;t t
8034s,@abs_srcdir@,$ac_abs_srcdir,;t t
8035s,@top_srcdir@,$ac_top_srcdir,;t t
8036s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8037s,@builddir@,$ac_builddir,;t t
8038s,@abs_builddir@,$ac_abs_builddir,;t t
8039s,@top_builddir@,$ac_top_builddir,;t t
8040s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
David McGrewb67061f2005-09-28 14:23:06 +00008041s,@INSTALL@,$ac_INSTALL,;t t
Cullen Jennings235513a2005-09-21 22:51:36 +00008042" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8043 rm -f $tmp/stdin
8044 if test x"$ac_file" != x-; then
8045 mv $tmp/out $ac_file
8046 else
8047 cat $tmp/out
8048 rm -f $tmp/out
8049 fi
8050
8051done
8052_ACEOF
8053cat >>$CONFIG_STATUS <<\_ACEOF
8054
8055#
8056# CONFIG_HEADER section.
8057#
8058
8059# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8060# NAME is the cpp macro being defined and VALUE is the value it is being given.
8061#
8062# ac_d sets the value in "#define NAME VALUE" lines.
David McGrewfec49dd2005-09-23 19:34:11 +00008063ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8064ac_dB='[ ].*$,\1#\2'
Cullen Jennings235513a2005-09-21 22:51:36 +00008065ac_dC=' '
8066ac_dD=',;t'
8067# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
David McGrewfec49dd2005-09-23 19:34:11 +00008068ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Cullen Jennings235513a2005-09-21 22:51:36 +00008069ac_uB='$,\1#\2define\3'
8070ac_uC=' '
8071ac_uD=',;t'
8072
8073for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8075 case $ac_file in
8076 - | *:- | *:-:* ) # input from stdin
David McGrewfec49dd2005-09-23 19:34:11 +00008077 cat >$tmp/stdin
8078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00008080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
David McGrewfec49dd2005-09-23 19:34:11 +00008081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00008082 * ) ac_file_in=$ac_file.in ;;
8083 esac
8084
8085 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8086echo "$as_me: creating $ac_file" >&6;}
8087
8088 # First look for the input files in the build tree, otherwise in the
8089 # src tree.
8090 ac_file_inputs=`IFS=:
8091 for f in $ac_file_in; do
8092 case $f in
8093 -) echo $tmp/stdin ;;
8094 [\\/$]*)
David McGrewfec49dd2005-09-23 19:34:11 +00008095 # Absolute (can't be DOS-style, as IFS=:)
8096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00008097echo "$as_me: error: cannot find input file: $f" >&2;}
8098 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00008099 # Do quote $f, to prevent DOS paths from being IFS'd.
8100 echo "$f";;
Cullen Jennings235513a2005-09-21 22:51:36 +00008101 *) # Relative
David McGrewfec49dd2005-09-23 19:34:11 +00008102 if test -f "$f"; then
8103 # Build tree
8104 echo "$f"
8105 elif test -f "$srcdir/$f"; then
8106 # Source tree
8107 echo "$srcdir/$f"
8108 else
8109 # /dev/null tree
8110 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00008111echo "$as_me: error: cannot find input file: $f" >&2;}
8112 { (exit 1); exit 1; }; }
David McGrewfec49dd2005-09-23 19:34:11 +00008113 fi;;
Cullen Jennings235513a2005-09-21 22:51:36 +00008114 esac
8115 done` || { (exit 1); exit 1; }
8116 # Remove the trailing spaces.
David McGrewfec49dd2005-09-23 19:34:11 +00008117 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Cullen Jennings235513a2005-09-21 22:51:36 +00008118
8119_ACEOF
8120
8121# Transform confdefs.h into two sed scripts, `conftest.defines' and
8122# `conftest.undefs', that substitutes the proper values into
8123# config.h.in to produce config.h. The first handles `#define'
8124# templates, and the second `#undef' templates.
8125# And first: Protect against being on the right side of a sed subst in
8126# config.status. Protect against being in an unquoted here document
8127# in config.status.
8128rm -f conftest.defines conftest.undefs
8129# Using a here document instead of a string reduces the quoting nightmare.
8130# Putting comments in sed scripts is not portable.
8131#
8132# `end' is used to avoid that the second main sed command (meant for
8133# 0-ary CPP macros) applies to n-ary macro definitions.
8134# See the Autoconf documentation for `clear'.
8135cat >confdef2sed.sed <<\_ACEOF
8136s/[\\&,]/\\&/g
8137s,[\\$`],\\&,g
8138t clear
8139: clear
David McGrewfec49dd2005-09-23 19:34:11 +00008140s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Cullen Jennings235513a2005-09-21 22:51:36 +00008141t end
David McGrewfec49dd2005-09-23 19:34:11 +00008142s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Cullen Jennings235513a2005-09-21 22:51:36 +00008143: end
8144_ACEOF
8145# If some macros were called several times there might be several times
8146# the same #defines, which is useless. Nevertheless, we may not want to
8147# sort them, since we want the *last* AC-DEFINE to be honored.
8148uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8149sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8150rm -f confdef2sed.sed
8151
8152# This sed command replaces #undef with comments. This is necessary, for
8153# example, in the case of _POSIX_SOURCE, which is predefined and required
8154# on some systems where configure will not decide to define it.
8155cat >>conftest.undefs <<\_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00008156s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Cullen Jennings235513a2005-09-21 22:51:36 +00008157_ACEOF
8158
8159# Break up conftest.defines because some shells have a limit on the size
8160# of here documents, and old seds have small limits too (100 cmds).
8161echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
David McGrewfec49dd2005-09-23 19:34:11 +00008162echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00008163echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8164echo ' :' >>$CONFIG_STATUS
8165rm -f conftest.tail
8166while grep . conftest.defines >/dev/null
8167do
8168 # Write a limited-size here document to $tmp/defines.sed.
8169 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8170 # Speed up: don't consider the non `#define' lines.
David McGrewfec49dd2005-09-23 19:34:11 +00008171 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00008172 # Work around the forget-to-reset-the-flag bug.
8173 echo 't clr' >>$CONFIG_STATUS
8174 echo ': clr' >>$CONFIG_STATUS
8175 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8176 echo 'CEOF
8177 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8178 rm -f $tmp/in
8179 mv $tmp/out $tmp/in
8180' >>$CONFIG_STATUS
8181 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8182 rm -f conftest.defines
8183 mv conftest.tail conftest.defines
8184done
8185rm -f conftest.defines
8186echo ' fi # grep' >>$CONFIG_STATUS
8187echo >>$CONFIG_STATUS
8188
8189# Break up conftest.undefs because some shells have a limit on the size
8190# of here documents, and old seds have small limits too (100 cmds).
8191echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8192rm -f conftest.tail
8193while grep . conftest.undefs >/dev/null
8194do
8195 # Write a limited-size here document to $tmp/undefs.sed.
8196 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8197 # Speed up: don't consider the non `#undef'
David McGrewfec49dd2005-09-23 19:34:11 +00008198 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Cullen Jennings235513a2005-09-21 22:51:36 +00008199 # Work around the forget-to-reset-the-flag bug.
8200 echo 't clr' >>$CONFIG_STATUS
8201 echo ': clr' >>$CONFIG_STATUS
8202 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8203 echo 'CEOF
8204 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8205 rm -f $tmp/in
8206 mv $tmp/out $tmp/in
8207' >>$CONFIG_STATUS
8208 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8209 rm -f conftest.undefs
8210 mv conftest.tail conftest.undefs
8211done
8212rm -f conftest.undefs
8213
8214cat >>$CONFIG_STATUS <<\_ACEOF
8215 # Let's still pretend it is `configure' which instantiates (i.e., don't
8216 # use $as_me), people would be surprised to read:
8217 # /* config.h. Generated by config.status. */
8218 if test x"$ac_file" = x-; then
8219 echo "/* Generated by configure. */" >$tmp/config.h
8220 else
8221 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8222 fi
8223 cat $tmp/in >>$tmp/config.h
8224 rm -f $tmp/in
8225 if test x"$ac_file" != x-; then
8226 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8227 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8228echo "$as_me: $ac_file is unchanged" >&6;}
8229 else
8230 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8231$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00008232 X"$ac_file" : 'X\(//\)[^/]' \| \
8233 X"$ac_file" : 'X\(//\)$' \| \
8234 X"$ac_file" : 'X\(/\)' \| \
8235 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00008236echo X"$ac_file" |
8237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8239 /^X\(\/\/\)$/{ s//\1/; q; }
8240 /^X\(\/\).*/{ s//\1/; q; }
8241 s/.*/./; q'`
8242 { if $as_mkdir_p; then
8243 mkdir -p "$ac_dir"
8244 else
8245 as_dir="$ac_dir"
8246 as_dirs=
8247 while test ! -d "$as_dir"; do
8248 as_dirs="$as_dir $as_dirs"
8249 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00008251 X"$as_dir" : 'X\(//\)[^/]' \| \
8252 X"$as_dir" : 'X\(//\)$' \| \
8253 X"$as_dir" : 'X\(/\)' \| \
8254 . : '\(.\)' 2>/dev/null ||
Cullen Jennings235513a2005-09-21 22:51:36 +00008255echo X"$as_dir" |
8256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8258 /^X\(\/\/\)$/{ s//\1/; q; }
8259 /^X\(\/\).*/{ s//\1/; q; }
8260 s/.*/./; q'`
8261 done
8262 test ! -n "$as_dirs" || mkdir $as_dirs
8263 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8264echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8265 { (exit 1); exit 1; }; }; }
8266
8267 rm -f $ac_file
8268 mv $tmp/config.h $ac_file
8269 fi
8270 else
8271 cat $tmp/config.h
8272 rm -f $tmp/config.h
8273 fi
8274done
8275_ACEOF
8276
8277cat >>$CONFIG_STATUS <<\_ACEOF
8278
8279{ (exit 0); exit 0; }
8280_ACEOF
8281chmod +x $CONFIG_STATUS
8282ac_clean_files=$ac_clean_files_save
8283
8284
8285# configure is writing to config.log, and then calls config.status.
8286# config.status does its own redirection, appending to config.log.
8287# Unfortunately, on DOS this fails, as config.log is still kept open
8288# by configure, so config.status won't be able to write to it; its
8289# output is simply discarded. So we exec the FD to /dev/null,
8290# effectively closing config.log, so it can be properly (re)opened and
8291# appended to by config.status. When coming back to configure, we
8292# need to make the FD available again.
8293if test "$no_create" != yes; then
8294 ac_cs_success=:
8295 ac_config_status_args=
8296 test "$silent" = yes &&
8297 ac_config_status_args="$ac_config_status_args --quiet"
8298 exec 5>/dev/null
8299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8300 exec 5>>config.log
8301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8302 # would make configure fail if this is the last instruction.
8303 $ac_cs_success || { (exit 1); exit 1; }
8304fi
8305
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00008306
8307# This is needed when building outside the source dir.
8308{ if $as_mkdir_p; then
8309 mkdir -p crypto/ae_xfm
8310 else
8311 as_dir=crypto/ae_xfm
8312 as_dirs=
8313 while test ! -d "$as_dir"; do
8314 as_dirs="$as_dir $as_dirs"
8315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8317 X"$as_dir" : 'X\(//\)[^/]' \| \
8318 X"$as_dir" : 'X\(//\)$' \| \
8319 X"$as_dir" : 'X\(/\)' \| \
8320 . : '\(.\)' 2>/dev/null ||
8321echo X"$as_dir" |
8322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8324 /^X\(\/\/\)$/{ s//\1/; q; }
8325 /^X\(\/\).*/{ s//\1/; q; }
8326 s/.*/./; q'`
8327 done
8328 test ! -n "$as_dirs" || mkdir $as_dirs
8329 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/ae_xfm" >&5
8330echo "$as_me: error: cannot create directory crypto/ae_xfm" >&2;}
8331 { (exit 1); exit 1; }; }; }
8332
8333{ if $as_mkdir_p; then
8334 mkdir -p crypto/cipher
8335 else
8336 as_dir=crypto/cipher
8337 as_dirs=
8338 while test ! -d "$as_dir"; do
8339 as_dirs="$as_dir $as_dirs"
8340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8342 X"$as_dir" : 'X\(//\)[^/]' \| \
8343 X"$as_dir" : 'X\(//\)$' \| \
8344 X"$as_dir" : 'X\(/\)' \| \
8345 . : '\(.\)' 2>/dev/null ||
8346echo X"$as_dir" |
8347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8349 /^X\(\/\/\)$/{ s//\1/; q; }
8350 /^X\(\/\).*/{ s//\1/; q; }
8351 s/.*/./; q'`
8352 done
8353 test ! -n "$as_dirs" || mkdir $as_dirs
8354 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/cipher" >&5
8355echo "$as_me: error: cannot create directory crypto/cipher" >&2;}
8356 { (exit 1); exit 1; }; }; }
8357
8358{ if $as_mkdir_p; then
8359 mkdir -p crypto/hash
8360 else
8361 as_dir=crypto/hash
8362 as_dirs=
8363 while test ! -d "$as_dir"; do
8364 as_dirs="$as_dir $as_dirs"
8365 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8367 X"$as_dir" : 'X\(//\)[^/]' \| \
8368 X"$as_dir" : 'X\(//\)$' \| \
8369 X"$as_dir" : 'X\(/\)' \| \
8370 . : '\(.\)' 2>/dev/null ||
8371echo X"$as_dir" |
8372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8374 /^X\(\/\/\)$/{ s//\1/; q; }
8375 /^X\(\/\).*/{ s//\1/; q; }
8376 s/.*/./; q'`
8377 done
8378 test ! -n "$as_dirs" || mkdir $as_dirs
8379 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/hash" >&5
8380echo "$as_me: error: cannot create directory crypto/hash" >&2;}
8381 { (exit 1); exit 1; }; }; }
8382
8383{ if $as_mkdir_p; then
8384 mkdir -p crypto/kernel
8385 else
8386 as_dir=crypto/kernel
8387 as_dirs=
8388 while test ! -d "$as_dir"; do
8389 as_dirs="$as_dir $as_dirs"
8390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8392 X"$as_dir" : 'X\(//\)[^/]' \| \
8393 X"$as_dir" : 'X\(//\)$' \| \
8394 X"$as_dir" : 'X\(/\)' \| \
8395 . : '\(.\)' 2>/dev/null ||
8396echo X"$as_dir" |
8397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8399 /^X\(\/\/\)$/{ s//\1/; q; }
8400 /^X\(\/\).*/{ s//\1/; q; }
8401 s/.*/./; q'`
8402 done
8403 test ! -n "$as_dirs" || mkdir $as_dirs
8404 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/kernel" >&5
8405echo "$as_me: error: cannot create directory crypto/kernel" >&2;}
8406 { (exit 1); exit 1; }; }; }
8407
8408{ if $as_mkdir_p; then
8409 mkdir -p crypto/math
8410 else
8411 as_dir=crypto/math
8412 as_dirs=
8413 while test ! -d "$as_dir"; do
8414 as_dirs="$as_dir $as_dirs"
8415 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8417 X"$as_dir" : 'X\(//\)[^/]' \| \
8418 X"$as_dir" : 'X\(//\)$' \| \
8419 X"$as_dir" : 'X\(/\)' \| \
8420 . : '\(.\)' 2>/dev/null ||
8421echo X"$as_dir" |
8422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8424 /^X\(\/\/\)$/{ s//\1/; q; }
8425 /^X\(\/\).*/{ s//\1/; q; }
8426 s/.*/./; q'`
8427 done
8428 test ! -n "$as_dirs" || mkdir $as_dirs
8429 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/math" >&5
8430echo "$as_me: error: cannot create directory crypto/math" >&2;}
8431 { (exit 1); exit 1; }; }; }
8432
8433{ if $as_mkdir_p; then
8434 mkdir -p crypto/replay
8435 else
8436 as_dir=crypto/replay
8437 as_dirs=
8438 while test ! -d "$as_dir"; do
8439 as_dirs="$as_dir $as_dirs"
8440 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8442 X"$as_dir" : 'X\(//\)[^/]' \| \
8443 X"$as_dir" : 'X\(//\)$' \| \
8444 X"$as_dir" : 'X\(/\)' \| \
8445 . : '\(.\)' 2>/dev/null ||
8446echo X"$as_dir" |
8447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8449 /^X\(\/\/\)$/{ s//\1/; q; }
8450 /^X\(\/\).*/{ s//\1/; q; }
8451 s/.*/./; q'`
8452 done
8453 test ! -n "$as_dirs" || mkdir $as_dirs
8454 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/replay" >&5
8455echo "$as_me: error: cannot create directory crypto/replay" >&2;}
8456 { (exit 1); exit 1; }; }; }
8457
8458{ if $as_mkdir_p; then
8459 mkdir -p crypto/rng
8460 else
8461 as_dir=crypto/rng
8462 as_dirs=
8463 while test ! -d "$as_dir"; do
8464 as_dirs="$as_dir $as_dirs"
8465 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8466$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8467 X"$as_dir" : 'X\(//\)[^/]' \| \
8468 X"$as_dir" : 'X\(//\)$' \| \
8469 X"$as_dir" : 'X\(/\)' \| \
8470 . : '\(.\)' 2>/dev/null ||
8471echo X"$as_dir" |
8472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8474 /^X\(\/\/\)$/{ s//\1/; q; }
8475 /^X\(\/\).*/{ s//\1/; q; }
8476 s/.*/./; q'`
8477 done
8478 test ! -n "$as_dirs" || mkdir $as_dirs
8479 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/rng" >&5
8480echo "$as_me: error: cannot create directory crypto/rng" >&2;}
8481 { (exit 1); exit 1; }; }; }
8482
8483{ if $as_mkdir_p; then
8484 mkdir -p crypto/test
8485 else
8486 as_dir=crypto/test
8487 as_dirs=
8488 while test ! -d "$as_dir"; do
8489 as_dirs="$as_dir $as_dirs"
8490 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8492 X"$as_dir" : 'X\(//\)[^/]' \| \
8493 X"$as_dir" : 'X\(//\)$' \| \
8494 X"$as_dir" : 'X\(/\)' \| \
8495 . : '\(.\)' 2>/dev/null ||
8496echo X"$as_dir" |
8497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8499 /^X\(\/\/\)$/{ s//\1/; q; }
8500 /^X\(\/\).*/{ s//\1/; q; }
8501 s/.*/./; q'`
8502 done
8503 test ! -n "$as_dirs" || mkdir $as_dirs
8504 fi || { { echo "$as_me:$LINENO: error: cannot create directory crypto/test" >&5
8505echo "$as_me: error: cannot create directory crypto/test" >&2;}
8506 { (exit 1); exit 1; }; }; }
8507
8508{ if $as_mkdir_p; then
8509 mkdir -p doc
8510 else
8511 as_dir=doc
8512 as_dirs=
8513 while test ! -d "$as_dir"; do
8514 as_dirs="$as_dir $as_dirs"
8515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8517 X"$as_dir" : 'X\(//\)[^/]' \| \
8518 X"$as_dir" : 'X\(//\)$' \| \
8519 X"$as_dir" : 'X\(/\)' \| \
8520 . : '\(.\)' 2>/dev/null ||
8521echo X"$as_dir" |
8522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8524 /^X\(\/\/\)$/{ s//\1/; q; }
8525 /^X\(\/\).*/{ s//\1/; q; }
8526 s/.*/./; q'`
8527 done
8528 test ! -n "$as_dirs" || mkdir $as_dirs
8529 fi || { { echo "$as_me:$LINENO: error: cannot create directory doc" >&5
8530echo "$as_me: error: cannot create directory doc" >&2;}
8531 { (exit 1); exit 1; }; }; }
8532
8533{ if $as_mkdir_p; then
8534 mkdir -p srtp
8535 else
8536 as_dir=srtp
8537 as_dirs=
8538 while test ! -d "$as_dir"; do
8539 as_dirs="$as_dir $as_dirs"
8540 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8541$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8542 X"$as_dir" : 'X\(//\)[^/]' \| \
8543 X"$as_dir" : 'X\(//\)$' \| \
8544 X"$as_dir" : 'X\(/\)' \| \
8545 . : '\(.\)' 2>/dev/null ||
8546echo X"$as_dir" |
8547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8549 /^X\(\/\/\)$/{ s//\1/; q; }
8550 /^X\(\/\).*/{ s//\1/; q; }
8551 s/.*/./; q'`
8552 done
8553 test ! -n "$as_dirs" || mkdir $as_dirs
8554 fi || { { echo "$as_me:$LINENO: error: cannot create directory srtp" >&5
8555echo "$as_me: error: cannot create directory srtp" >&2;}
8556 { (exit 1); exit 1; }; }; }
8557
8558{ if $as_mkdir_p; then
8559 mkdir -p tables
8560 else
8561 as_dir=tables
8562 as_dirs=
8563 while test ! -d "$as_dir"; do
8564 as_dirs="$as_dir $as_dirs"
8565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8567 X"$as_dir" : 'X\(//\)[^/]' \| \
8568 X"$as_dir" : 'X\(//\)$' \| \
8569 X"$as_dir" : 'X\(/\)' \| \
8570 . : '\(.\)' 2>/dev/null ||
8571echo X"$as_dir" |
8572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8574 /^X\(\/\/\)$/{ s//\1/; q; }
8575 /^X\(\/\).*/{ s//\1/; q; }
8576 s/.*/./; q'`
8577 done
8578 test ! -n "$as_dirs" || mkdir $as_dirs
8579 fi || { { echo "$as_me:$LINENO: error: cannot create directory tables" >&5
8580echo "$as_me: error: cannot create directory tables" >&2;}
8581 { (exit 1); exit 1; }; }; }
8582
8583{ if $as_mkdir_p; then
8584 mkdir -p test
8585 else
8586 as_dir=test
8587 as_dirs=
8588 while test ! -d "$as_dir"; do
8589 as_dirs="$as_dir $as_dirs"
8590 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8591$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8592 X"$as_dir" : 'X\(//\)[^/]' \| \
8593 X"$as_dir" : 'X\(//\)$' \| \
8594 X"$as_dir" : 'X\(/\)' \| \
8595 . : '\(.\)' 2>/dev/null ||
8596echo X"$as_dir" |
8597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8599 /^X\(\/\/\)$/{ s//\1/; q; }
8600 /^X\(\/\).*/{ s//\1/; q; }
8601 s/.*/./; q'`
8602 done
8603 test ! -n "$as_dirs" || mkdir $as_dirs
8604 fi || { { echo "$as_me:$LINENO: error: cannot create directory test" >&5
8605echo "$as_me: error: cannot create directory test" >&2;}
8606 { (exit 1); exit 1; }; }; }
8607