changed cipher option default value to aes-ctr
[anytun.git] / openvpn / configure
blob7295ff1ded6f55e551044775ed45f72cdfc5d125
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for OpenVPN 2.0.9.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='OpenVPN'
271 PACKAGE_TARNAME='openvpn'
272 PACKAGE_VERSION='2.0.9'
273 PACKAGE_STRING='OpenVPN 2.0.9'
274 PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net'
276 ac_unique_file="syshead.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_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 IFCONFIG IPROUTE ROUTE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures OpenVPN 2.0.9 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845 _ACEOF
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of OpenVPN 2.0.9:";;
851 esac
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-lzo Disable LZO compression support
858 --disable-crypto Disable OpenSSL crypto support
859 --disable-ssl Disable OpenSSL SSL support for TLS-based key exchange
860 --disable-multi Disable client/server support (--mode server + client mode)
861 --disable-server Disable server support only (but retain client support)
862 --disable-plugins Disable plug-in support
863 --disable-management Disable management server support
864 --disable-socks Disable Socks support
865 --disable-http Disable HTTP proxy support
866 --disable-fragment Disable internal fragmentation support (--fragment)
867 --disable-debug Disable debugging support (disable gremlin and verb 7+ messages)
868 --enable-small Enable smaller executable size (disable OCC, usage message, and verb 4 parm list)
869 --enable-pthread Enable pthread support (Experimental for OpenVPN 2.0)
870 --enable-password-save Allow --askpass and --auth-user-pass passwords to be read from a file
871 --enable-iproute2 Enable support for iproute2
872 --enable-strict Enable strict compiler warnings (debugging option)
873 --enable-pedantic Enable pedantic compiler warnings, will not generate a working executable (debugging option)
874 --enable-profiling Enable profiling (debugging option)
875 --enable-strict-options Enable strict options check between peers (debugging option)
876 --disable-dependency-tracking speeds up one-time build
877 --enable-dependency-tracking do not reject slow dependency extractors
879 Optional Packages:
880 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
881 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
882 --with-ssl-headers=DIR Crypto/SSL Include files location
883 --with-ssl-lib=DIR Crypto/SSL Library location
884 --with-lzo-headers=DIR LZO Include files location
885 --with-lzo-lib=DIR LZO Library location
886 --with-ifconfig-path=PATH Path to ifconfig tool
887 --with-iproute-path=PATH Path to iproute tool
888 --with-route-path=PATH Path to route tool
889 --with-mem-check=TYPE Build with debug memory checking, TYPE = dmalloc or valgrind
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 Report bugs to <openvpn-users@lists.sourceforge.net>.
904 _ACEOF
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
909 ac_popdir=`pwd`
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
912 ac_builddir=.
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 else
919 ac_dir_suffix= ac_top_builddir=
922 case $srcdir in
923 .) # No --srcdir option. We are building in place.
924 ac_srcdir=.
925 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=.
927 else
928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 fi ;;
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
933 *) # Relative path.
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
936 esac
938 # Do not use `cd foo && pwd` to compute absolute paths, because
939 # the directories may not exist.
940 case `pwd` in
941 .) ac_abs_builddir="$ac_dir";;
943 case "$ac_dir" in
944 .) ac_abs_builddir=`pwd`;;
945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
952 case ${ac_top_builddir}. in
953 .) ac_abs_top_builddir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_srcdir=$ac_srcdir;;
961 case $ac_srcdir in
962 .) ac_abs_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
970 case $ac_top_srcdir in
971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 esac;;
975 esac
977 cd $ac_dir
978 # Check for guested configure; otherwise get Cygnus style configure.
979 if test -f $ac_srcdir/configure.gnu; then
980 echo
981 $SHELL $ac_srcdir/configure.gnu --help=recursive
982 elif test -f $ac_srcdir/configure; then
983 echo
984 $SHELL $ac_srcdir/configure --help=recursive
985 elif test -f $ac_srcdir/configure.ac ||
986 test -f $ac_srcdir/configure.in; then
987 echo
988 $ac_configure --help
989 else
990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 cd $ac_popdir
993 done
996 test -n "$ac_init_help" && exit 0
997 if $ac_init_version; then
998 cat <<\_ACEOF
999 OpenVPN configure 2.0.9
1000 generated by GNU Autoconf 2.59
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006 exit 0
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by OpenVPN $as_me 2.0.9, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1016 $ $0 $@
1018 _ACEOF
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042 _ASUNAME
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050 done
1052 } >&5
1054 cat >&5 <<_ACEOF
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1061 _ACEOF
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1076 for ac_arg
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1109 esac
1110 done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1123 echo
1125 cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 esac;
1146 echo
1148 cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1245 . "$ac_site_file"
1247 done
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1260 else
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1308 done
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1349 ac_config_headers="$ac_config_headers config.h"
1353 # Check whether --enable-lzo or --disable-lzo was given.
1354 if test "${enable_lzo+set}" = set; then
1355 enableval="$enable_lzo"
1356 LZO="$enableval"
1357 else
1358 LZO="yes"
1362 # Check whether --enable-crypto or --disable-crypto was given.
1363 if test "${enable_crypto+set}" = set; then
1364 enableval="$enable_crypto"
1365 CRYPTO="$enableval"
1366 else
1367 CRYPTO="yes"
1371 # Check whether --enable-ssl or --disable-ssl was given.
1372 if test "${enable_ssl+set}" = set; then
1373 enableval="$enable_ssl"
1374 SSL="$enableval"
1375 else
1376 SSL="yes"
1380 # Check whether --enable-multi or --disable-multi was given.
1381 if test "${enable_multi+set}" = set; then
1382 enableval="$enable_multi"
1383 MULTI="$enableval"
1384 else
1385 MULTI="yes"
1389 # Check whether --enable-server or --disable-server was given.
1390 if test "${enable_server+set}" = set; then
1391 enableval="$enable_server"
1392 MULTI_SERVER="$enableval"
1393 else
1394 MULTI_SERVER="yes"
1398 # Check whether --enable-plugins or --disable-plugins was given.
1399 if test "${enable_plugins+set}" = set; then
1400 enableval="$enable_plugins"
1401 PLUGINS="$enableval"
1402 else
1403 PLUGINS="yes"
1407 # Check whether --enable-management or --disable-management was given.
1408 if test "${enable_management+set}" = set; then
1409 enableval="$enable_management"
1410 MANAGEMENT="$enableval"
1411 else
1412 MANAGEMENT="yes"
1416 # Check whether --enable-socks or --disable-socks was given.
1417 if test "${enable_socks+set}" = set; then
1418 enableval="$enable_socks"
1419 SOCKS="$enableval"
1420 else
1421 SOCKS="yes"
1425 # Check whether --enable-http or --disable-http was given.
1426 if test "${enable_http+set}" = set; then
1427 enableval="$enable_http"
1428 HTTP_PROXY="$enableval"
1429 else
1430 HTTP_PROXY="yes"
1434 # Check whether --enable-fragment or --disable-fragment was given.
1435 if test "${enable_fragment+set}" = set; then
1436 enableval="$enable_fragment"
1437 FRAGMENT="$enableval"
1438 else
1439 FRAGMENT="yes"
1443 # Check whether --enable-debug or --disable-debug was given.
1444 if test "${enable_debug+set}" = set; then
1445 enableval="$enable_debug"
1446 DEBUG="$enableval"
1447 else
1448 DEBUG="yes"
1452 # Check whether --enable-small or --disable-small was given.
1453 if test "${enable_small+set}" = set; then
1454 enableval="$enable_small"
1455 SMALL="$enableval"
1456 else
1457 SMALL="no"
1461 # Check whether --enable-pthread or --disable-pthread was given.
1462 if test "${enable_pthread+set}" = set; then
1463 enableval="$enable_pthread"
1464 PTHREAD="$enableval"
1465 else
1466 PTHREAD="no"
1470 # Check whether --enable-password-save or --disable-password-save was given.
1471 if test "${enable_password_save+set}" = set; then
1472 enableval="$enable_password_save"
1473 PASSWORD_SAVE="$enableval"
1474 else
1475 PASSWORD_SAVE="no"
1479 # Check whether --enable-iproute2 or --disable-iproute2 was given.
1480 if test "${enable_iproute2+set}" = set; then
1481 enableval="$enable_iproute2"
1483 cat >>confdefs.h <<\_ACEOF
1484 #define CONFIG_FEATURE_IPROUTE 1
1485 _ACEOF
1490 # Check whether --enable-strict or --disable-strict was given.
1491 if test "${enable_strict+set}" = set; then
1492 enableval="$enable_strict"
1493 STRICT="$enableval"
1494 else
1495 STRICT="no"
1499 # Check whether --enable-pedantic or --disable-pedantic was given.
1500 if test "${enable_pedantic+set}" = set; then
1501 enableval="$enable_pedantic"
1502 PEDANTIC="$enableval"
1503 else
1504 PEDANTIC="no"
1508 # Check whether --enable-profiling or --disable-profiling was given.
1509 if test "${enable_profiling+set}" = set; then
1510 enableval="$enable_profiling"
1511 PROFILE="$enableval"
1512 else
1513 PROFILE="no"
1517 # Check whether --enable-strict-options or --disable-strict-options was given.
1518 if test "${enable_strict_options+set}" = set; then
1519 enableval="$enable_strict_options"
1520 STRICT_OPTIONS="$enableval"
1521 else
1522 STRICT_OPTIONS="no"
1527 # Check whether --with-ssl-headers or --without-ssl-headers was given.
1528 if test "${with_ssl_headers+set}" = set; then
1529 withval="$with_ssl_headers"
1530 CS_HDR_DIR="$withval"
1531 CPPFLAGS="$CPPFLAGS -I$withval"
1536 # Check whether --with-ssl-lib or --without-ssl-lib was given.
1537 if test "${with_ssl_lib+set}" = set; then
1538 withval="$with_ssl_lib"
1539 LDFLAGS="$LDFLAGS -L$withval"
1544 # Check whether --with-lzo-headers or --without-lzo-headers was given.
1545 if test "${with_lzo_headers+set}" = set; then
1546 withval="$with_lzo_headers"
1547 LZO_HDR_DIR="$withval"
1548 CPPFLAGS="$CPPFLAGS -I$withval"
1553 # Check whether --with-lzo-lib or --without-lzo-lib was given.
1554 if test "${with_lzo_lib+set}" = set; then
1555 withval="$with_lzo_lib"
1556 LDFLAGS="$LDFLAGS -L$withval"
1561 # Check whether --with-ifconfig-path or --without-ifconfig-path was given.
1562 if test "${with_ifconfig_path+set}" = set; then
1563 withval="$with_ifconfig_path"
1564 IFCONFIG="$withval"
1565 else
1566 # Extract the first word of "ifconfig", so it can be a program name with args.
1567 set dummy ifconfig; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_path_IFCONFIG+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573 case $IFCONFIG in
1574 [\\/]* | ?:[\\/]*)
1575 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
1580 for as_dir in $as_dummy
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 break 2
1590 done
1591 done
1593 test -z "$ac_cv_path_IFCONFIG" && ac_cv_path_IFCONFIG="ifconfig"
1595 esac
1597 IFCONFIG=$ac_cv_path_IFCONFIG
1599 if test -n "$IFCONFIG"; then
1600 echo "$as_me:$LINENO: result: $IFCONFIG" >&5
1601 echo "${ECHO_T}$IFCONFIG" >&6
1602 else
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1610 cat >>confdefs.h <<_ACEOF
1611 #define IFCONFIG_PATH "$IFCONFIG"
1612 _ACEOF
1616 # Check whether --with-iproute-path or --without-iproute-path was given.
1617 if test "${with_iproute_path+set}" = set; then
1618 withval="$with_iproute_path"
1619 IPROUTE="$withval"
1620 else
1621 # Extract the first word of "ip", so it can be a program name with args.
1622 set dummy ip; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_path_IPROUTE+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 case $IPROUTE in
1629 [\\/]* | ?:[\\/]*)
1630 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
1635 for as_dir in $as_dummy
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1645 done
1646 done
1648 test -z "$ac_cv_path_IPROUTE" && ac_cv_path_IPROUTE="ip"
1650 esac
1652 IPROUTE=$ac_cv_path_IPROUTE
1654 if test -n "$IPROUTE"; then
1655 echo "$as_me:$LINENO: result: $IPROUTE" >&5
1656 echo "${ECHO_T}$IPROUTE" >&6
1657 else
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1665 cat >>confdefs.h <<_ACEOF
1666 #define IPROUTE_PATH "$IPROUTE"
1667 _ACEOF
1672 # Check whether --with-route-path or --without-route-path was given.
1673 if test "${with_route_path+set}" = set; then
1674 withval="$with_route_path"
1675 ROUTE="$withval"
1676 else
1677 # Extract the first word of "route", so it can be a program name with args.
1678 set dummy route; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_path_ROUTE+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 case $ROUTE in
1685 [\\/]* | ?:[\\/]*)
1686 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
1691 for as_dir in $as_dummy
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1704 test -z "$ac_cv_path_ROUTE" && ac_cv_path_ROUTE="route"
1706 esac
1708 ROUTE=$ac_cv_path_ROUTE
1710 if test -n "$ROUTE"; then
1711 echo "$as_me:$LINENO: result: $ROUTE" >&5
1712 echo "${ECHO_T}$ROUTE" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1721 cat >>confdefs.h <<_ACEOF
1722 #define ROUTE_PATH "$ROUTE"
1723 _ACEOF
1727 # Check whether --with-mem-check or --without-mem-check was given.
1728 if test "${with_mem_check+set}" = set; then
1729 withval="$with_mem_check"
1730 MEMCHECK="$withval"
1734 ac_aux_dir=
1735 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1736 if test -f $ac_dir/install-sh; then
1737 ac_aux_dir=$ac_dir
1738 ac_install_sh="$ac_aux_dir/install-sh -c"
1739 break
1740 elif test -f $ac_dir/install.sh; then
1741 ac_aux_dir=$ac_dir
1742 ac_install_sh="$ac_aux_dir/install.sh -c"
1743 break
1744 elif test -f $ac_dir/shtool; then
1745 ac_aux_dir=$ac_dir
1746 ac_install_sh="$ac_aux_dir/shtool install -c"
1747 break
1749 done
1750 if test -z "$ac_aux_dir"; then
1751 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1752 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1753 { (exit 1); exit 1; }; }
1755 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1756 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1757 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1759 # Make sure we can run config.sub.
1760 $ac_config_sub sun4 >/dev/null 2>&1 ||
1761 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: checking build system type" >&5
1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767 if test "${ac_cv_build+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 ac_cv_build_alias=$build_alias
1771 test -z "$ac_cv_build_alias" &&
1772 ac_cv_build_alias=`$ac_config_guess`
1773 test -z "$ac_cv_build_alias" &&
1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776 { (exit 1); exit 1; }; }
1777 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784 echo "${ECHO_T}$ac_cv_build" >&6
1785 build=$ac_cv_build
1786 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791 echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1793 if test "${ac_cv_host+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 ac_cv_host_alias=$host_alias
1797 test -z "$ac_cv_host_alias" &&
1798 ac_cv_host_alias=$ac_cv_build_alias
1799 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1800 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1801 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1802 { (exit 1); exit 1; }; }
1805 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1806 echo "${ECHO_T}$ac_cv_host" >&6
1807 host=$ac_cv_host
1808 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813 echo "$as_me:$LINENO: checking target system type" >&5
1814 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1815 if test "${ac_cv_target+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 ac_cv_target_alias=$target_alias
1819 test "x$ac_cv_target_alias" = "x" &&
1820 ac_cv_target_alias=$ac_cv_host_alias
1821 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1822 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1823 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1827 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1828 echo "${ECHO_T}$ac_cv_target" >&6
1829 target=$ac_cv_target
1830 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1831 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1832 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1835 # The aliases save the names the user supplied, while $host etc.
1836 # will get canonicalized.
1837 test -n "$target_alias" &&
1838 test "$program_prefix$program_suffix$program_transform_name" = \
1839 NONENONEs,x,x, &&
1840 program_prefix=${target_alias}-
1841 am__api_version="1.8"
1842 # Find a good install program. We prefer a C program (faster),
1843 # so one script is as good as another. But avoid the broken or
1844 # incompatible versions:
1845 # SysV /etc/install, /usr/sbin/install
1846 # SunOS /usr/etc/install
1847 # IRIX /sbin/install
1848 # AIX /bin/install
1849 # AmigaOS /C/install, which installs bootblocks on floppy discs
1850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1853 # OS/2's system install, which has a completely different semantic
1854 # ./install, which can be erroneously created by make from ./install.sh.
1855 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1856 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1857 if test -z "$INSTALL"; then
1858 if test "${ac_cv_path_install+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 # Account for people who put trailing slashes in PATH elements.
1867 case $as_dir/ in
1868 ./ | .// | /cC/* | \
1869 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1870 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1871 /usr/ucb/* ) ;;
1873 # OSF1 and SCO ODT 3.0 have their own names for install.
1874 # Don't use installbsd from OSF since it installs stuff as root
1875 # by default.
1876 for ac_prog in ginstall scoinst install; do
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1879 if test $ac_prog = install &&
1880 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1881 # AIX install. It has an incompatible calling convention.
1883 elif test $ac_prog = install &&
1884 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1885 # program-specific install script used by HP pwplus--don't use.
1887 else
1888 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1889 break 3
1892 done
1893 done
1895 esac
1896 done
1900 if test "${ac_cv_path_install+set}" = set; then
1901 INSTALL=$ac_cv_path_install
1902 else
1903 # As a last resort, use the slow shell script. We don't cache a
1904 # path for INSTALL within a source directory, because that will
1905 # break other packages using the cache if that directory is
1906 # removed, or if the path is relative.
1907 INSTALL=$ac_install_sh
1910 echo "$as_me:$LINENO: result: $INSTALL" >&5
1911 echo "${ECHO_T}$INSTALL" >&6
1913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1914 # It thinks the first close brace ends the variable substitution.
1915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1922 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1923 # Just in case
1924 sleep 1
1925 echo timestamp > conftest.file
1926 # Do `set' in a subshell so we don't clobber the current shell's
1927 # arguments. Must try -L first in case configure is actually a
1928 # symlink; some systems play weird games with the mod time of symlinks
1929 # (eg FreeBSD returns the mod time of the symlink's containing
1930 # directory).
1931 if (
1932 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1933 if test "$*" = "X"; then
1934 # -L didn't work.
1935 set X `ls -t $srcdir/configure conftest.file`
1937 rm -f conftest.file
1938 if test "$*" != "X $srcdir/configure conftest.file" \
1939 && test "$*" != "X conftest.file $srcdir/configure"; then
1941 # If neither matched, then we have a broken ls. This can happen
1942 # if, for instance, CONFIG_SHELL is bash and it inherits a
1943 # broken ls alias from the environment. This has actually
1944 # happened. Such a system could not be considered "sane".
1945 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1946 alias in your environment" >&5
1947 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1948 alias in your environment" >&2;}
1949 { (exit 1); exit 1; }; }
1952 test "$2" = conftest.file
1954 then
1955 # Ok.
1957 else
1958 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1959 Check your system clock" >&5
1960 echo "$as_me: error: newly created file is older than distributed files!
1961 Check your system clock" >&2;}
1962 { (exit 1); exit 1; }; }
1964 echo "$as_me:$LINENO: result: yes" >&5
1965 echo "${ECHO_T}yes" >&6
1966 test "$program_prefix" != NONE &&
1967 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1968 # Use a double $ so make ignores it.
1969 test "$program_suffix" != NONE &&
1970 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1971 # Double any \ or $. echo might interpret backslashes.
1972 # By default was `s,x,x', remove it if useless.
1973 cat <<\_ACEOF >conftest.sed
1974 s/[\\$]/&&/g;s/;s,x,x,$//
1975 _ACEOF
1976 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1977 rm conftest.sed
1979 # expand $ac_aux_dir to an absolute path
1980 am_aux_dir=`cd $ac_aux_dir && pwd`
1982 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1983 # Use eval to expand $SHELL
1984 if eval "$MISSING --run true"; then
1985 am_missing_run="$MISSING --run "
1986 else
1987 am_missing_run=
1988 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1989 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1992 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1993 # Keeping the `.' argument allows $(mkdir_p) to be used without
1994 # argument. Indeed, we sometimes output rules like
1995 # $(mkdir_p) $(somedir)
1996 # where $(somedir) is conditionally defined.
1997 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1998 # expensive solution, as it forces Make to start a sub-shell.)
1999 mkdir_p='mkdir -p -- .'
2000 else
2001 # On NextStep and OpenStep, the `mkdir' command does not
2002 # recognize any option. It will interpret all options as
2003 # directories to create, and then abort because `.' already
2004 # exists.
2005 for d in ./-p ./--version;
2007 test -d $d && rmdir $d
2008 done
2009 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2010 if test -f "$ac_aux_dir/mkinstalldirs"; then
2011 mkdir_p='$(mkinstalldirs)'
2012 else
2013 mkdir_p='$(install_sh) -d'
2017 for ac_prog in gawk mawk nawk awk
2019 # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy $ac_prog; ac_word=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_AWK+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 if test -n "$AWK"; then
2027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_AWK="$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2040 done
2041 done
2045 AWK=$ac_cv_prog_AWK
2046 if test -n "$AWK"; then
2047 echo "$as_me:$LINENO: result: $AWK" >&5
2048 echo "${ECHO_T}$AWK" >&6
2049 else
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2054 test -n "$AWK" && break
2055 done
2057 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2058 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2059 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2060 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 cat >conftest.make <<\_ACEOF
2064 all:
2065 @echo 'ac_maketemp="$(MAKE)"'
2066 _ACEOF
2067 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2068 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2069 if test -n "$ac_maketemp"; then
2070 eval ac_cv_prog_make_${ac_make}_set=yes
2071 else
2072 eval ac_cv_prog_make_${ac_make}_set=no
2074 rm -f conftest.make
2076 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2077 echo "$as_me:$LINENO: result: yes" >&5
2078 echo "${ECHO_T}yes" >&6
2079 SET_MAKE=
2080 else
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 SET_MAKE="MAKE=${MAKE-make}"
2086 rm -rf .tst 2>/dev/null
2087 mkdir .tst 2>/dev/null
2088 if test -d .tst; then
2089 am__leading_dot=.
2090 else
2091 am__leading_dot=_
2093 rmdir .tst 2>/dev/null
2095 # test to see if srcdir already configured
2096 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2097 test -f $srcdir/config.status; then
2098 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2099 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2100 { (exit 1); exit 1; }; }
2103 # test whether we have cygpath
2104 if test -z "$CYGPATH_W"; then
2105 if (cygpath --version) >/dev/null 2>/dev/null; then
2106 CYGPATH_W='cygpath -w'
2107 else
2108 CYGPATH_W=echo
2113 # Define the identity of the package.
2114 PACKAGE=openvpn
2115 VERSION=$PACKAGE_VERSION
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE "$PACKAGE"
2120 _ACEOF
2123 cat >>confdefs.h <<_ACEOF
2124 #define VERSION "$VERSION"
2125 _ACEOF
2127 # Some tools Automake needs.
2129 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2132 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2135 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2138 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2141 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2144 AMTAR=${AMTAR-"${am_missing_run}tar"}
2146 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2148 # Installed binaries are usually stripped using `strip' when the user
2149 # run `make install-strip'. However `strip' might not be the right
2150 # tool to use in cross-compilation environments, therefore Automake
2151 # will honor the `STRIP' environment variable to overrule this program.
2152 if test "$cross_compiling" != no; then
2153 if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2155 set dummy ${ac_tool_prefix}strip; ac_word=$2
2156 echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_STRIP+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 if test -n "$STRIP"; then
2162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2175 done
2176 done
2180 STRIP=$ac_cv_prog_STRIP
2181 if test -n "$STRIP"; then
2182 echo "$as_me:$LINENO: result: $STRIP" >&5
2183 echo "${ECHO_T}$STRIP" >&6
2184 else
2185 echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2190 if test -z "$ac_cv_prog_STRIP"; then
2191 ac_ct_STRIP=$STRIP
2192 # Extract the first word of "strip", so it can be a program name with args.
2193 set dummy strip; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 if test -n "$ac_ct_STRIP"; then
2200 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_ac_ct_STRIP="strip"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2213 done
2214 done
2216 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2220 if test -n "$ac_ct_STRIP"; then
2221 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2222 echo "${ECHO_T}$ac_ct_STRIP" >&6
2223 else
2224 echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2228 STRIP=$ac_ct_STRIP
2229 else
2230 STRIP="$ac_cv_prog_STRIP"
2234 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2236 # We need awk for the "check" target. The system "awk" is bad on
2237 # some platforms.
2242 CPPFLAGS="$CPPFLAGS -I${srcdir}"
2244 openvpn_target=$target
2245 if test $target_alias; then
2246 openvpn_target=$target_alias
2249 cat >>confdefs.h <<_ACEOF
2250 #define TARGET_ALIAS "$openvpn_target"
2251 _ACEOF
2253 case "$target" in
2254 *linux*)
2256 cat >>confdefs.h <<\_ACEOF
2257 #define TARGET_LINUX 1
2258 _ACEOF
2260 if test -z $CS_HDR_DIR && test "$CRYPTO" = "yes"; then
2261 CPPFLAGS="$CPPFLAGS $(pkg-config --cflags openssl 2>/dev/null)"
2264 *solaris*)
2266 cat >>confdefs.h <<\_ACEOF
2267 #define TARGET_SOLARIS 1
2268 _ACEOF
2271 *openbsd*)
2273 cat >>confdefs.h <<\_ACEOF
2274 #define TARGET_OPENBSD 1
2275 _ACEOF
2278 *freebsd*)
2280 cat >>confdefs.h <<\_ACEOF
2281 #define TARGET_FREEBSD 1
2282 _ACEOF
2285 *netbsd*)
2287 cat >>confdefs.h <<\_ACEOF
2288 #define TARGET_NETBSD 1
2289 _ACEOF
2292 *darwin*)
2294 cat >>confdefs.h <<\_ACEOF
2295 #define TARGET_DARWIN 1
2296 _ACEOF
2298 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
2300 *mingw*)
2301 echo "$as_me:$LINENO: result: WARNING: configure support for mingw is incomplete" >&5
2302 echo "${ECHO_T}WARNING: configure support for mingw is incomplete" >&6
2303 echo "$as_me:$LINENO: result: WARNING: use makefile.w32 instead" >&5
2304 echo "${ECHO_T}WARNING: use makefile.w32 instead" >&6
2306 LIBS="-lgdi32 $LIBS"
2309 LIBS="-lwsock32 $LIBS"
2313 esac
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2342 done
2343 done
2347 CC=$ac_cv_prog_CC
2348 if test -n "$CC"; then
2349 echo "$as_me:$LINENO: result: $CC" >&5
2350 echo "${ECHO_T}$CC" >&6
2351 else
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2357 if test -z "$ac_cv_prog_CC"; then
2358 ac_ct_CC=$CC
2359 # Extract the first word of "gcc", so it can be a program name with args.
2360 set dummy gcc; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$ac_ct_CC"; then
2367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_ac_ct_CC="gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2386 if test -n "$ac_ct_CC"; then
2387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2388 echo "${ECHO_T}$ac_ct_CC" >&6
2389 else
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 CC=$ac_ct_CC
2395 else
2396 CC="$ac_cv_prog_CC"
2399 if test -z "$CC"; then
2400 if test -n "$ac_tool_prefix"; then
2401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2402 set dummy ${ac_tool_prefix}cc; ac_word=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 ac_cv_prog_CC="${ac_tool_prefix}cc"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2422 done
2423 done
2427 CC=$ac_cv_prog_CC
2428 if test -n "$CC"; then
2429 echo "$as_me:$LINENO: result: $CC" >&5
2430 echo "${ECHO_T}$CC" >&6
2431 else
2432 echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2437 if test -z "$ac_cv_prog_CC"; then
2438 ac_ct_CC=$CC
2439 # Extract the first word of "cc", so it can be a program name with args.
2440 set dummy cc; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_ac_ct_CC="cc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2460 done
2461 done
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6
2469 else
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2474 CC=$ac_ct_CC
2475 else
2476 CC="$ac_cv_prog_CC"
2480 if test -z "$CC"; then
2481 # Extract the first word of "cc", so it can be a program name with args.
2482 set dummy cc; ac_word=$2
2483 echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485 if test "${ac_cv_prog_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC="$CC" # Let the user override the test.
2490 else
2491 ac_prog_rejected=no
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2500 ac_prog_rejected=yes
2501 continue
2503 ac_cv_prog_CC="cc"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2507 done
2508 done
2510 if test $ac_prog_rejected = yes; then
2511 # We found a bogon in the path, so make sure we never use it.
2512 set dummy $ac_cv_prog_CC
2513 shift
2514 if test $# != 0; then
2515 # We chose a different compiler from the bogus one.
2516 # However, it has the same basename, so the bogon will be chosen
2517 # first if we set CC to just the basename; use the full file name.
2518 shift
2519 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2524 CC=$ac_cv_prog_CC
2525 if test -n "$CC"; then
2526 echo "$as_me:$LINENO: result: $CC" >&5
2527 echo "${ECHO_T}$CC" >&6
2528 else
2529 echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6
2534 if test -z "$CC"; then
2535 if test -n "$ac_tool_prefix"; then
2536 for ac_prog in cl
2538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2559 done
2560 done
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566 echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6
2568 else
2569 echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2573 test -n "$CC" && break
2574 done
2576 if test -z "$CC"; then
2577 ac_ct_CC=$CC
2578 for ac_prog in cl
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 if test -n "$ac_ct_CC"; then
2588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_ac_ct_CC="$ac_prog"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2609 echo "${ECHO_T}$ac_ct_CC" >&6
2610 else
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 test -n "$ac_ct_CC" && break
2616 done
2618 CC=$ac_ct_CC
2624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: no acceptable C compiler found in \$PATH
2627 See \`config.log' for more details." >&2;}
2628 { (exit 1); exit 1; }; }
2630 # Provide some information about the compiler.
2631 echo "$as_me:$LINENO:" \
2632 "checking for C compiler version" >&5
2633 ac_compiler=`set X $ac_compile; echo $2`
2634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2635 (eval $ac_compiler --version </dev/null >&5) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }
2639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2640 (eval $ac_compiler -v </dev/null >&5) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }
2644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2645 (eval $ac_compiler -V </dev/null >&5) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2658 main ()
2662 return 0;
2664 _ACEOF
2665 ac_clean_files_save=$ac_clean_files
2666 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2667 # Try to create an executable without -o first, disregard a.out.
2668 # It will help us diagnose broken compilers, and finding out an intuition
2669 # of exeext.
2670 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2671 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2672 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2673 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2674 (eval $ac_link_default) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 # Find the output, starting from the most likely. This scheme is
2679 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2680 # resort.
2682 # Be careful to initialize this variable, since it used to be cached.
2683 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2684 ac_cv_exeext=
2685 # b.out is created by i960 compilers.
2686 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2688 test -f "$ac_file" || continue
2689 case $ac_file in
2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2692 conftest.$ac_ext )
2693 # This is the source file.
2695 [ab].out )
2696 # We found the default executable, but exeext='' is most
2697 # certainly right.
2698 break;;
2699 *.* )
2700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 # FIXME: I believe we export ac_cv_exeext for Libtool,
2702 # but it would be cool to find out if it's true. Does anybody
2703 # maintain Libtool? --akim.
2704 export ac_cv_exeext
2705 break;;
2707 break;;
2708 esac
2709 done
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: C compiler cannot create executables
2717 See \`config.log' for more details." >&2;}
2718 { (exit 77); exit 77; }; }
2721 ac_exeext=$ac_cv_exeext
2722 echo "$as_me:$LINENO: result: $ac_file" >&5
2723 echo "${ECHO_T}$ac_file" >&6
2725 # Check the compiler produces executables we can run. If not, either
2726 # the compiler is broken, or we cross compile.
2727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2730 # If not cross compiling, check that we can run a simple program.
2731 if test "$cross_compiling" != yes; then
2732 if { ac_try='./$ac_file'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 cross_compiling=no
2739 else
2740 if test "$cross_compiling" = maybe; then
2741 cross_compiling=yes
2742 else
2743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2744 If you meant to cross compile, use \`--host'.
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: cannot run C compiled programs.
2747 If you meant to cross compile, use \`--host'.
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }
2753 echo "$as_me:$LINENO: result: yes" >&5
2754 echo "${ECHO_T}yes" >&6
2756 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2757 ac_clean_files=$ac_clean_files_save
2758 # Check the compiler produces executables we can run. If not, either
2759 # the compiler is broken, or we cross compile.
2760 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2762 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2763 echo "${ECHO_T}$cross_compiling" >&6
2765 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768 (eval $ac_link) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2774 # work properly (i.e., refer to `conftest.exe'), while it won't with
2775 # `rm'.
2776 for ac_file in conftest.exe conftest conftest.*; do
2777 test -f "$ac_file" || continue
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781 export ac_cv_exeext
2782 break;;
2783 * ) break;;
2784 esac
2785 done
2786 else
2787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2790 See \`config.log' for more details." >&2;}
2791 { (exit 1); exit 1; }; }
2794 rm -f conftest$ac_cv_exeext
2795 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2796 echo "${ECHO_T}$ac_cv_exeext" >&6
2798 rm -f conftest.$ac_ext
2799 EXEEXT=$ac_cv_exeext
2800 ac_exeext=$EXEEXT
2801 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2803 if test "${ac_cv_objext+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2814 main ()
2818 return 0;
2820 _ACEOF
2821 rm -f conftest.o conftest.obj
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2828 case $ac_file in
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2831 break;;
2832 esac
2833 done
2834 else
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2841 See \`config.log' for more details." >&2;}
2842 { (exit 1); exit 1; }; }
2845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2847 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2848 echo "${ECHO_T}$ac_cv_objext" >&6
2849 OBJEXT=$ac_cv_objext
2850 ac_objext=$OBJEXT
2851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h. */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2864 main ()
2866 #ifndef __GNUC__
2867 choke me
2868 #endif
2871 return 0;
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 ac_compiler_gnu=yes
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 ac_compiler_gnu=no
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2907 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2909 GCC=`test $ac_compiler_gnu = yes && echo yes`
2910 ac_test_CFLAGS=${CFLAGS+set}
2911 ac_save_CFLAGS=$CFLAGS
2912 CFLAGS="-g"
2913 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2915 if test "${ac_cv_prog_cc_g+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h. */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2926 main ()
2930 return 0;
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 ac_cv_prog_cc_g=yes
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 ac_cv_prog_cc_g=no
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2966 if test "$ac_test_CFLAGS" = set; then
2967 CFLAGS=$ac_save_CFLAGS
2968 elif test $ac_cv_prog_cc_g = yes; then
2969 if test "$GCC" = yes; then
2970 CFLAGS="-g -O2"
2971 else
2972 CFLAGS="-g"
2974 else
2975 if test "$GCC" = yes; then
2976 CFLAGS="-O2"
2977 else
2978 CFLAGS=
2981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 ac_cv_prog_cc_stdc=no
2987 ac_save_CC=$CC
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994 #include <stdarg.h>
2995 #include <stdio.h>
2996 #include <sys/types.h>
2997 #include <sys/stat.h>
2998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999 struct buf { int x; };
3000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001 static char *e (p, i)
3002 char **p;
3003 int i;
3005 return p[i];
3007 static char *f (char * (*g) (char **, int), char **p, ...)
3009 char *s;
3010 va_list v;
3011 va_start (v,p);
3012 s = g (p, va_arg (v,int));
3013 va_end (v);
3014 return s;
3017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3018 function prototypes and stuff, but not '\xHH' hex character constants.
3019 These don't provoke an error unfortunately, instead are silently treated
3020 as 'x'. The following induces an error, until -std1 is added to get
3021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3022 array size at least. It's necessary to write '\x00'==0 to get something
3023 that's true only with -std1. */
3024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3026 int test (int i, double x);
3027 struct s1 {int (*f) (int a);};
3028 struct s2 {int (*f) (double a);};
3029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3030 int argc;
3031 char **argv;
3033 main ()
3035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3037 return 0;
3039 _ACEOF
3040 # Don't try gcc -ansi; that turns off useful extensions and
3041 # breaks some systems' header files.
3042 # AIX -qlanglvl=ansi
3043 # Ultrix and OSF/1 -std1
3044 # HP-UX 10.20 and later -Ae
3045 # HP-UX older versions -Aa -D_HPUX_SOURCE
3046 # SVR4 -Xc -D__EXTENSIONS__
3047 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3049 CC="$ac_save_CC $ac_arg"
3050 rm -f conftest.$ac_objext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052 (eval $ac_compile) 2>conftest.er1
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_c_werror_flag"
3060 || test ! -s conftest.err'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_prog_cc_stdc=$ac_arg
3073 break
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3079 rm -f conftest.err conftest.$ac_objext
3080 done
3081 rm -f conftest.$ac_ext conftest.$ac_objext
3082 CC=$ac_save_CC
3086 case "x$ac_cv_prog_cc_stdc" in
3087 x|xno)
3088 echo "$as_me:$LINENO: result: none needed" >&5
3089 echo "${ECHO_T}none needed" >&6 ;;
3091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3093 CC="$CC $ac_cv_prog_cc_stdc" ;;
3094 esac
3096 # Some people use a C++ compiler to compile C. Since we use `exit',
3097 # in C++ we need to declare it. In case someone uses the same compiler
3098 # for both compiling C and C++ we need to have the C++ compiler decide
3099 # the declaration of exit, since it's the most demanding environment.
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #ifndef __cplusplus
3102 choke me
3103 #endif
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_c_werror_flag"
3115 || test ! -s conftest.err'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 for ac_declaration in \
3128 '' \
3129 'extern "C" void std::exit (int) throw (); using std::exit;' \
3130 'extern "C" void std::exit (int); using std::exit;' \
3131 'extern "C" void exit (int) throw ();' \
3132 'extern "C" void exit (int);' \
3133 'void exit (int);'
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h. */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3141 $ac_declaration
3142 #include <stdlib.h>
3144 main ()
3146 exit (42);
3148 return 0;
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_c_werror_flag"
3161 || test ! -s conftest.err'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 (eval $ac_try) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 (eval $ac_try) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3174 else
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 continue
3180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3181 cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 $ac_declaration
3189 main ()
3191 exit (42);
3193 return 0;
3195 _ACEOF
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag"
3206 || test ! -s conftest.err'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 (eval $ac_try) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 break
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3225 done
3226 rm -f conftest*
3227 if test -n "$ac_declaration"; then
3228 echo '#ifdef __cplusplus' >>confdefs.h
3229 echo $ac_declaration >>confdefs.h
3230 echo '#endif' >>confdefs.h
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 DEPDIR="${am__leading_dot}deps"
3246 ac_config_commands="$ac_config_commands depfiles"
3249 am_make=${MAKE-make}
3250 cat > confinc << 'END'
3251 am__doit:
3252 @echo done
3253 .PHONY: am__doit
3255 # If we don't find an include directive, just comment out the code.
3256 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3257 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3258 am__include="#"
3259 am__quote=
3260 _am_result=none
3261 # First try GNU make style include.
3262 echo "include confinc" > confmf
3263 # We grep out `Entering directory' and `Leaving directory'
3264 # messages which can occur if `w' ends up in MAKEFLAGS.
3265 # In particular we don't look at `^make:' because GNU make might
3266 # be invoked under some other name (usually "gmake"), in which
3267 # case it prints its new name instead of `make'.
3268 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3269 am__include=include
3270 am__quote=
3271 _am_result=GNU
3273 # Now try BSD make style include.
3274 if test "$am__include" = "#"; then
3275 echo '.include "confinc"' > confmf
3276 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3277 am__include=.include
3278 am__quote="\""
3279 _am_result=BSD
3284 echo "$as_me:$LINENO: result: $_am_result" >&5
3285 echo "${ECHO_T}$_am_result" >&6
3286 rm -f confinc confmf
3288 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3289 if test "${enable_dependency_tracking+set}" = set; then
3290 enableval="$enable_dependency_tracking"
3293 if test "x$enable_dependency_tracking" != xno; then
3294 am_depcomp="$ac_aux_dir/depcomp"
3295 AMDEPBACKSLASH='\'
3299 if test "x$enable_dependency_tracking" != xno; then
3300 AMDEP_TRUE=
3301 AMDEP_FALSE='#'
3302 else
3303 AMDEP_TRUE='#'
3304 AMDEP_FALSE=
3310 depcc="$CC" am_compiler_list=
3312 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3313 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3314 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3318 # We make a subdir and do the tests there. Otherwise we can end up
3319 # making bogus files that we don't know about and never remove. For
3320 # instance it was reported that on HP-UX the gcc test will end up
3321 # making a dummy file named `D' -- because `-MD' means `put the output
3322 # in D'.
3323 mkdir conftest.dir
3324 # Copy depcomp to subdir because otherwise we won't find it if we're
3325 # using a relative directory.
3326 cp "$am_depcomp" conftest.dir
3327 cd conftest.dir
3328 # We will build objects and dependencies in a subdirectory because
3329 # it helps to detect inapplicable dependency modes. For instance
3330 # both Tru64's cc and ICC support -MD to output dependencies as a
3331 # side effect of compilation, but ICC will put the dependencies in
3332 # the current directory while Tru64 will put them in the object
3333 # directory.
3334 mkdir sub
3336 am_cv_CC_dependencies_compiler_type=none
3337 if test "$am_compiler_list" = ""; then
3338 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3340 for depmode in $am_compiler_list; do
3341 # Setup a source with many dependencies, because some compilers
3342 # like to wrap large dependency lists on column 80 (with \), and
3343 # we should not choose a depcomp mode which is confused by this.
3345 # We need to recreate these files for each test, as the compiler may
3346 # overwrite some of them when testing with obscure command lines.
3347 # This happens at least with the AIX C compiler.
3348 : > sub/conftest.c
3349 for i in 1 2 3 4 5 6; do
3350 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3352 # Solaris 8's {/usr,}/bin/sh.
3353 touch sub/conftst$i.h
3354 done
3355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3357 case $depmode in
3358 nosideeffect)
3359 # after this tag, mechanisms are not by side-effect, so they'll
3360 # only be used when explicitly requested
3361 if test "x$enable_dependency_tracking" = xyes; then
3362 continue
3363 else
3364 break
3367 none) break ;;
3368 esac
3369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3370 # mode. It turns out that the SunPro C++ compiler does not properly
3371 # handle `-M -o', and we need to detect this.
3372 if depmode=$depmode \
3373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3376 >/dev/null 2>conftest.err &&
3377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3380 # icc doesn't choke on unknown options, it will just issue warnings
3381 # (even with -Werror). So we grep stderr for any message
3382 # that says an option was ignored.
3383 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3384 am_cv_CC_dependencies_compiler_type=$depmode
3385 break
3388 done
3390 cd ..
3391 rm -rf conftest.dir
3392 else
3393 am_cv_CC_dependencies_compiler_type=none
3397 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3398 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3399 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3404 test "x$enable_dependency_tracking" != xno \
3405 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3406 am__fastdepCC_TRUE=
3407 am__fastdepCC_FALSE='#'
3408 else
3409 am__fastdepCC_TRUE='#'
3410 am__fastdepCC_FALSE=
3414 # Find a good install program. We prefer a C program (faster),
3415 # so one script is as good as another. But avoid the broken or
3416 # incompatible versions:
3417 # SysV /etc/install, /usr/sbin/install
3418 # SunOS /usr/etc/install
3419 # IRIX /sbin/install
3420 # AIX /bin/install
3421 # AmigaOS /C/install, which installs bootblocks on floppy discs
3422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3425 # OS/2's system install, which has a completely different semantic
3426 # ./install, which can be erroneously created by make from ./install.sh.
3427 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3428 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3429 if test -z "$INSTALL"; then
3430 if test "${ac_cv_path_install+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 # Account for people who put trailing slashes in PATH elements.
3439 case $as_dir/ in
3440 ./ | .// | /cC/* | \
3441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3442 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3443 /usr/ucb/* ) ;;
3445 # OSF1 and SCO ODT 3.0 have their own names for install.
3446 # Don't use installbsd from OSF since it installs stuff as root
3447 # by default.
3448 for ac_prog in ginstall scoinst install; do
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3451 if test $ac_prog = install &&
3452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3453 # AIX install. It has an incompatible calling convention.
3455 elif test $ac_prog = install &&
3456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3457 # program-specific install script used by HP pwplus--don't use.
3459 else
3460 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3461 break 3
3464 done
3465 done
3467 esac
3468 done
3472 if test "${ac_cv_path_install+set}" = set; then
3473 INSTALL=$ac_cv_path_install
3474 else
3475 # As a last resort, use the slow shell script. We don't cache a
3476 # path for INSTALL within a source directory, because that will
3477 # break other packages using the cache if that directory is
3478 # removed, or if the path is relative.
3479 INSTALL=$ac_install_sh
3482 echo "$as_me:$LINENO: result: $INSTALL" >&5
3483 echo "${ECHO_T}$INSTALL" >&6
3485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3486 # It thinks the first close brace ends the variable substitution.
3487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3494 ac_ext=c
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3500 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3501 # On Suns, sometimes $CPP names a directory.
3502 if test -n "$CPP" && test -d "$CPP"; then
3503 CPP=
3505 if test -z "$CPP"; then
3506 if test "${ac_cv_prog_CPP+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 # Double quotes because CPP needs to be expanded
3510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3512 ac_preproc_ok=false
3513 for ac_c_preproc_warn_flag in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #ifdef __STDC__
3528 # include <limits.h>
3529 #else
3530 # include <assert.h>
3531 #endif
3532 Syntax error
3533 _ACEOF
3534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545 else
3546 ac_cpp_err=
3548 else
3549 ac_cpp_err=yes
3551 if test -z "$ac_cpp_err"; then
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 # Broken: fails on valid input.
3558 continue
3560 rm -f conftest.err conftest.$ac_ext
3562 # OK, works on sane cases. Now check whether non-existent headers
3563 # can be detected and how.
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <ac_nonexistent.h>
3571 _ACEOF
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583 else
3584 ac_cpp_err=
3586 else
3587 ac_cpp_err=yes
3589 if test -z "$ac_cpp_err"; then
3590 # Broken: success on invalid input.
3591 continue
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 # Passes both tests.
3597 ac_preproc_ok=:
3598 break
3600 rm -f conftest.err conftest.$ac_ext
3602 done
3603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604 rm -f conftest.err conftest.$ac_ext
3605 if $ac_preproc_ok; then
3606 break
3609 done
3610 ac_cv_prog_CPP=$CPP
3613 CPP=$ac_cv_prog_CPP
3614 else
3615 ac_cv_prog_CPP=$CPP
3617 echo "$as_me:$LINENO: result: $CPP" >&5
3618 echo "${ECHO_T}$CPP" >&6
3619 ac_preproc_ok=false
3620 for ac_c_preproc_warn_flag in '' yes
3622 # Use a header file that comes with gcc, so configuring glibc
3623 # with a fresh cross-compiler works.
3624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3625 # <limits.h> exists even on freestanding compilers.
3626 # On the NeXT, cc -E runs the code through the compiler's parser,
3627 # not just through cpp. "Syntax error" is here to catch this case.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #ifdef __STDC__
3635 # include <limits.h>
3636 #else
3637 # include <assert.h>
3638 #endif
3639 Syntax error
3640 _ACEOF
3641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev/null; then
3649 if test -s conftest.err; then
3650 ac_cpp_err=$ac_c_preproc_warn_flag
3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3652 else
3653 ac_cpp_err=
3655 else
3656 ac_cpp_err=yes
3658 if test -z "$ac_cpp_err"; then
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 # Broken: fails on valid input.
3665 continue
3667 rm -f conftest.err conftest.$ac_ext
3669 # OK, works on sane cases. Now check whether non-existent headers
3670 # can be detected and how.
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h. */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 #include <ac_nonexistent.h>
3678 _ACEOF
3679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null; then
3687 if test -s conftest.err; then
3688 ac_cpp_err=$ac_c_preproc_warn_flag
3689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3690 else
3691 ac_cpp_err=
3693 else
3694 ac_cpp_err=yes
3696 if test -z "$ac_cpp_err"; then
3697 # Broken: success on invalid input.
3698 continue
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 # Passes both tests.
3704 ac_preproc_ok=:
3705 break
3707 rm -f conftest.err conftest.$ac_ext
3709 done
3710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3711 rm -f conftest.err conftest.$ac_ext
3712 if $ac_preproc_ok; then
3714 else
3715 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3716 See \`config.log' for more details." >&5
3717 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3718 See \`config.log' for more details." >&2;}
3719 { (exit 1); exit 1; }; }
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729 echo "$as_me:$LINENO: checking for egrep" >&5
3730 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3731 if test "${ac_cv_prog_egrep+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3735 then ac_cv_prog_egrep='grep -E'
3736 else ac_cv_prog_egrep='egrep'
3739 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3740 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3741 EGREP=$ac_cv_prog_egrep
3744 if test $ac_cv_c_compiler_gnu = yes; then
3745 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3746 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3747 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 ac_pattern="Autoconf.*'x'"
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <sgtty.h>
3758 Autoconf TIOCGETP
3759 _ACEOF
3760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3761 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3762 ac_cv_prog_gcc_traditional=yes
3763 else
3764 ac_cv_prog_gcc_traditional=no
3766 rm -f conftest*
3769 if test $ac_cv_prog_gcc_traditional = no; then
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <termio.h>
3777 Autoconf TCGETA
3778 _ACEOF
3779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3781 ac_cv_prog_gcc_traditional=yes
3783 rm -f conftest*
3787 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3788 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3789 if test $ac_cv_prog_gcc_traditional = yes; then
3790 CC="$CC -traditional"
3795 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3796 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3797 if test "${ac_cv_header_stdc+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h. */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <stdlib.h>
3807 #include <stdarg.h>
3808 #include <string.h>
3809 #include <float.h>
3812 main ()
3816 return 0;
3818 _ACEOF
3819 rm -f conftest.$ac_objext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3821 (eval $ac_compile) 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -z "$ac_c_werror_flag"
3829 || test ! -s conftest.err'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; } &&
3835 { ac_try='test -s conftest.$ac_objext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_cv_header_stdc=yes
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 ac_cv_header_stdc=no
3848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3850 if test $ac_cv_header_stdc = yes; then
3851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <string.h>
3860 _ACEOF
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 $EGREP "memchr" >/dev/null 2>&1; then
3864 else
3865 ac_cv_header_stdc=no
3867 rm -f conftest*
3871 if test $ac_cv_header_stdc = yes; then
3872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 #include <stdlib.h>
3881 _ACEOF
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883 $EGREP "free" >/dev/null 2>&1; then
3885 else
3886 ac_cv_header_stdc=no
3888 rm -f conftest*
3892 if test $ac_cv_header_stdc = yes; then
3893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3894 if test "$cross_compiling" = yes; then
3896 else
3897 cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h. */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 #include <ctype.h>
3904 #if ((' ' & 0x0FF) == 0x020)
3905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3907 #else
3908 # define ISLOWER(c) \
3909 (('a' <= (c) && (c) <= 'i') \
3910 || ('j' <= (c) && (c) <= 'r') \
3911 || ('s' <= (c) && (c) <= 'z'))
3912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913 #endif
3915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917 main ()
3919 int i;
3920 for (i = 0; i < 256; i++)
3921 if (XOR (islower (i), ISLOWER (i))
3922 || toupper (i) != TOUPPER (i))
3923 exit(2);
3924 exit (0);
3926 _ACEOF
3927 rm -f conftest$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3939 else
3940 echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ( exit $ac_status )
3945 ac_cv_header_stdc=no
3947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3951 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3952 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3953 if test $ac_cv_header_stdc = yes; then
3955 cat >>confdefs.h <<\_ACEOF
3956 #define STDC_HEADERS 1
3957 _ACEOF
3962 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3963 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3964 if test "${ac_cv_c_const+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 main ()
3977 /* FIXME: Include the comments suggested by Paul. */
3978 #ifndef __cplusplus
3979 /* Ultrix mips cc rejects this. */
3980 typedef int charset[2];
3981 const charset x;
3982 /* SunOS 4.1.1 cc rejects this. */
3983 char const *const *ccp;
3984 char **p;
3985 /* NEC SVR4.0.2 mips cc rejects this. */
3986 struct point {int x, y;};
3987 static struct point const zero = {0,0};
3988 /* AIX XL C 1.02.0.0 rejects this.
3989 It does not let you subtract one const X* pointer from another in
3990 an arm of an if-expression whose if-part is not a constant
3991 expression */
3992 const char *g = "string";
3993 ccp = &g + (g ? g-g : 0);
3994 /* HPUX 7.0 cc rejects these. */
3995 ++ccp;
3996 p = (char**) ccp;
3997 ccp = (char const *const *) p;
3998 { /* SCO 3.2v4 cc rejects this. */
3999 char *t;
4000 char const *s = 0 ? (char *) 0 : (char const *) 0;
4002 *t++ = 0;
4004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4005 int x[] = {25, 17};
4006 const int *foo = &x[0];
4007 ++foo;
4009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4010 typedef const int *iptr;
4011 iptr p = 0;
4012 ++p;
4014 { /* AIX XL C 1.02.0.0 rejects this saying
4015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4016 struct s { int j; const int *ap[3]; };
4017 struct s *b; b->j = 5;
4019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4020 const int foo = 10;
4022 #endif
4025 return 0;
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag"
4038 || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 (eval $ac_try) 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 ac_cv_c_const=yes
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 ac_cv_c_const=no
4057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4059 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4060 echo "${ECHO_T}$ac_cv_c_const" >&6
4061 if test $ac_cv_c_const = no; then
4063 cat >>confdefs.h <<\_ACEOF
4064 #define const
4065 _ACEOF
4069 echo "$as_me:$LINENO: checking for inline" >&5
4070 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4071 if test "${ac_cv_c_inline+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 ac_cv_c_inline=no
4075 for ac_kw in inline __inline__ __inline; do
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 #ifndef __cplusplus
4083 typedef int foo_t;
4084 static $ac_kw foo_t static_foo () {return 0; }
4085 $ac_kw foo_t foo () {return 0; }
4086 #endif
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_c_werror_flag"
4099 || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_cv_c_inline=$ac_kw; break
4112 else
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118 done
4121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4122 echo "${ECHO_T}$ac_cv_c_inline" >&6
4125 case $ac_cv_c_inline in
4126 inline | yes) ;;
4128 case $ac_cv_c_inline in
4129 no) ac_val=;;
4130 *) ac_val=$ac_cv_c_inline;;
4131 esac
4132 cat >>confdefs.h <<_ACEOF
4133 #ifndef __cplusplus
4134 #define inline $ac_val
4135 #endif
4136 _ACEOF
4138 esac
4140 echo "$as_me:$LINENO: checking for working volatile" >&5
4141 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4142 if test "${ac_cv_c_volatile+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h. */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4153 main ()
4156 volatile int x;
4157 int * volatile y;
4159 return 0;
4161 _ACEOF
4162 rm -f conftest.$ac_objext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_c_volatile=yes
4185 else
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_c_volatile=no
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4194 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4195 if test $ac_cv_c_volatile = no; then
4197 cat >>confdefs.h <<\_ACEOF
4198 #define volatile
4199 _ACEOF
4203 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4213 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4214 inttypes.h stdint.h unistd.h
4216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4217 echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 $ac_includes_default
4230 #include <$ac_header>
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_c_werror_flag"
4242 || test ! -s conftest.err'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; } &&
4248 { ac_try='test -s conftest.$ac_objext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 eval "$as_ac_Header=yes"
4255 else
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 eval "$as_ac_Header=no"
4261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4266 cat >>confdefs.h <<_ACEOF
4267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4268 _ACEOF
4272 done
4275 echo "$as_me:$LINENO: checking for off_t" >&5
4276 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4277 if test "${ac_cv_type_off_t+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4288 main ()
4290 if ((off_t *) 0)
4291 return 0;
4292 if (sizeof (off_t))
4293 return 0;
4295 return 0;
4297 _ACEOF
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag"
4308 || test ! -s conftest.err'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_cv_type_off_t=yes
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 ac_cv_type_off_t=no
4327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4329 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4330 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4331 if test $ac_cv_type_off_t = yes; then
4333 else
4335 cat >>confdefs.h <<_ACEOF
4336 #define off_t long
4337 _ACEOF
4341 echo "$as_me:$LINENO: checking for pid_t" >&5
4342 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4343 if test "${ac_cv_type_pid_t+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4354 main ()
4356 if ((pid_t *) 0)
4357 return 0;
4358 if (sizeof (pid_t))
4359 return 0;
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_type_pid_t=yes
4387 else
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 ac_cv_type_pid_t=no
4393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4396 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4397 if test $ac_cv_type_pid_t = yes; then
4399 else
4401 cat >>confdefs.h <<_ACEOF
4402 #define pid_t int
4403 _ACEOF
4407 echo "$as_me:$LINENO: checking for size_t" >&5
4408 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4409 if test "${ac_cv_type_size_t+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4420 main ()
4422 if ((size_t *) 0)
4423 return 0;
4424 if (sizeof (size_t))
4425 return 0;
4427 return 0;
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_type_size_t=yes
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 ac_cv_type_size_t=no
4459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4461 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4462 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4463 if test $ac_cv_type_size_t = yes; then
4465 else
4467 cat >>confdefs.h <<_ACEOF
4468 #define size_t unsigned
4469 _ACEOF
4473 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4474 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4475 if test "${ac_cv_type_uid_t+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h. */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <sys/types.h>
4486 _ACEOF
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 $EGREP "uid_t" >/dev/null 2>&1; then
4489 ac_cv_type_uid_t=yes
4490 else
4491 ac_cv_type_uid_t=no
4493 rm -f conftest*
4496 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4497 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4498 if test $ac_cv_type_uid_t = no; then
4500 cat >>confdefs.h <<\_ACEOF
4501 #define uid_t int
4502 _ACEOF
4505 cat >>confdefs.h <<\_ACEOF
4506 #define gid_t int
4507 _ACEOF
4511 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4512 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4513 if test "${ac_cv_header_time+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 #include <sys/types.h>
4523 #include <sys/time.h>
4524 #include <time.h>
4527 main ()
4529 if ((struct tm *) 0)
4530 return 0;
4532 return 0;
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_header_time=yes
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 ac_cv_header_time=no
4564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4566 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4567 echo "${ECHO_T}$ac_cv_header_time" >&6
4568 if test $ac_cv_header_time = yes; then
4570 cat >>confdefs.h <<\_ACEOF
4571 #define TIME_WITH_SYS_TIME 1
4572 _ACEOF
4576 echo "$as_me:$LINENO: checking for ISO C 1999 vararg macro support" >&5
4577 echo $ECHO_N "checking for ISO C 1999 vararg macro support... $ECHO_C" >&6
4578 if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 cat >conftest.$ac_ext <<_ACEOF
4583 #define macro(a, ...) func(a, __VA_ARGS__)
4584 int func(int a, int b, int c);
4585 int test() { return macro(1, 2, 3); }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag"
4598 || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ax_cv_cpp_vararg_macro_iso=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 ax_cv_cpp_vararg_macro_iso=no
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619 echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_iso" >&5
4620 echo "${ECHO_T}$ax_cv_cpp_vararg_macro_iso" >&6
4621 if test $ax_cv_cpp_vararg_macro_iso = yes ; then
4623 cat >>confdefs.h <<\_ACEOF
4624 #define HAVE_CPP_VARARG_MACRO_ISO 1
4625 _ACEOF
4629 echo "$as_me:$LINENO: checking for GNU GCC vararg macro support" >&5
4630 echo $ECHO_N "checking for GNU GCC vararg macro support... $ECHO_C" >&6
4631 if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 cat >conftest.$ac_ext <<_ACEOF
4636 #define macro(a, b...) func(a, b)
4637 int func(int a, int b, int c);
4638 int test() { return macro(1, 2, 3); }
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ax_cv_cpp_vararg_macro_gcc=yes
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 ax_cv_cpp_vararg_macro_gcc=no
4670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4672 echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_gcc" >&5
4673 echo "${ECHO_T}$ax_cv_cpp_vararg_macro_gcc" >&6
4674 if test $ax_cv_cpp_vararg_macro_gcc = yes ; then
4676 cat >>confdefs.h <<\_ACEOF
4677 #define HAVE_CPP_VARARG_MACRO_GCC 1
4678 _ACEOF
4683 echo "$as_me:$LINENO: result: checking for C compiler empty array support" >&5
4684 echo "${ECHO_T}checking for C compiler empty array support" >&6
4685 cat >conftest.$ac_ext <<_ACEOF
4687 struct { int foo; int bar[0]; } mystruct;
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4714 cat >>confdefs.h <<_ACEOF
4715 #define EMPTY_ARRAY_SIZE 0
4716 _ACEOF
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4724 cat >conftest.$ac_ext <<_ACEOF
4726 struct { int foo; int bar[]; } mystruct;
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4753 cat >>confdefs.h <<_ACEOF
4754 #define EMPTY_ARRAY_SIZE
4755 _ACEOF
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4763 { { echo "$as_me:$LINENO: error: C compiler is unable to creaty empty arrays" >&5
4764 echo "$as_me: error: C compiler is unable to creaty empty arrays" >&2;}
4765 { (exit 1); exit 1; }; }
4768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4776 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4777 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <sys/types.h>
4787 #include <sys/wait.h>
4788 #ifndef WEXITSTATUS
4789 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4790 #endif
4791 #ifndef WIFEXITED
4792 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4793 #endif
4796 main ()
4798 int s;
4799 wait (&s);
4800 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4802 return 0;
4804 _ACEOF
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -z "$ac_c_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_header_sys_wait_h=yes
4828 else
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4832 ac_cv_header_sys_wait_h=no
4834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4837 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4838 if test $ac_cv_header_sys_wait_h = yes; then
4840 cat >>confdefs.h <<\_ACEOF
4841 #define HAVE_SYS_WAIT_H 1
4842 _ACEOF
4884 for ac_header in sys/time.h sys/socket.h sys/ioctl.h sys/stat.h sys/mman.h fcntl.h sys/file.h stdlib.h stdint.h stdarg.h unistd.h signal.h stdio.h string.h strings.h ctype.h errno.h syslog.h pwd.h grp.h net/if_tun.h net/if.h stropts.h sys/sockio.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/if_ether.h netinet/tcp.h resolv.h arpa/inet.h netdb.h sys/uio.h linux/if_tun.h linux/sockios.h linux/types.h sys/poll.h sys/epoll.h
4886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4895 else
4896 # Is the header compilable?
4897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4905 $ac_includes_default
4906 #include <$ac_header>
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_header_compiler=yes
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 ac_header_compiler=no
4937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4939 echo "${ECHO_T}$ac_header_compiler" >&6
4941 # Is the header present?
4942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h. */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <$ac_header>
4951 _ACEOF
4952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null; then
4960 if test -s conftest.err; then
4961 ac_cpp_err=$ac_c_preproc_warn_flag
4962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4963 else
4964 ac_cpp_err=
4966 else
4967 ac_cpp_err=yes
4969 if test -z "$ac_cpp_err"; then
4970 ac_header_preproc=yes
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 ac_header_preproc=no
4977 rm -f conftest.err conftest.$ac_ext
4978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4979 echo "${ECHO_T}$ac_header_preproc" >&6
4981 # So? What about this header?
4982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4983 yes:no: )
4984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4988 ac_header_preproc=yes
4990 no:yes:* )
4992 esac
4993 echo "$as_me:$LINENO: checking for $ac_header" >&5
4994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 eval "$as_ac_Header=\$ac_header_preproc"
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5005 cat >>confdefs.h <<_ACEOF
5006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 _ACEOF
5011 done
5014 for ac_header in linux/errqueue.h
5016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 echo "$as_me:$LINENO: checking for $ac_header" >&5
5018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #ifdef HAVE_LINUX_TYPES_H
5029 # include <linux/types.h>
5030 #endif
5033 #include <$ac_header>
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 eval "$as_ac_Header=yes"
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 eval "$as_ac_Header=no"
5064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5069 cat >>confdefs.h <<_ACEOF
5070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5071 _ACEOF
5075 done
5077 cat >confcache <<\_ACEOF
5078 # This file is a shell script that caches the results of configure
5079 # tests run on this system so they can be shared between configure
5080 # scripts and configure runs, see configure's option --config-cache.
5081 # It is not useful on other systems. If it contains results you don't
5082 # want to keep, you may remove or edit it.
5084 # config.status only pays attention to the cache file if you give it
5085 # the --recheck option to rerun configure.
5087 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5088 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5089 # following values.
5091 _ACEOF
5093 # The following way of writing the cache mishandles newlines in values,
5094 # but we know of no workaround that is simple, portable, and efficient.
5095 # So, don't put newlines in cache variables' values.
5096 # Ultrix sh set writes to stderr and can't be redirected directly,
5097 # and sets the high bit in the cache file unless we assign to the vars.
5099 (set) 2>&1 |
5100 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5101 *ac_space=\ *)
5102 # `set' does not quote correctly, so add quotes (double-quote
5103 # substitution turns \\\\ into \\, and sed turns \\ into \).
5104 sed -n \
5105 "s/'/'\\\\''/g;
5106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5109 # `set' quotes correctly as required by POSIX, so do not add quotes.
5110 sed -n \
5111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5113 esac;
5115 sed '
5116 t clear
5117 : clear
5118 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5119 t end
5120 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5121 : end' >>confcache
5122 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5123 if test -w $cache_file; then
5124 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5125 cat confcache >$cache_file
5126 else
5127 echo "not updating unwritable cache $cache_file"
5130 rm -f confcache
5132 echo "$as_me:$LINENO: checking for in_addr_t" >&5
5133 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
5134 if test "${ac_cv_type_in_addr_t+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include "syshead.h"
5146 main ()
5148 if ((in_addr_t *) 0)
5149 return 0;
5150 if (sizeof (in_addr_t))
5151 return 0;
5153 return 0;
5155 _ACEOF
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>conftest.er1
5159 ac_status=$?
5160 grep -v '^ *+' conftest.er1 >conftest.err
5161 rm -f conftest.er1
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -z "$ac_c_werror_flag"
5166 || test ! -s conftest.err'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; } &&
5172 { ac_try='test -s conftest.$ac_objext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5178 ac_cv_type_in_addr_t=yes
5179 else
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5183 ac_cv_type_in_addr_t=no
5185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
5188 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
5189 if test $ac_cv_type_in_addr_t = yes; then
5191 else
5193 cat >>confdefs.h <<\_ACEOF
5194 #define in_addr_t uint32_t
5195 _ACEOF
5200 echo "$as_me:$LINENO: checking for uint8_t" >&5
5201 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5202 if test "${ac_cv_type_uint8_t+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 #include "syshead.h"
5214 main ()
5216 if ((uint8_t *) 0)
5217 return 0;
5218 if (sizeof (uint8_t))
5219 return 0;
5221 return 0;
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226 (eval $ac_compile) 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -z "$ac_c_werror_flag"
5234 || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try='test -s conftest.$ac_objext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 (eval $ac_try) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 ac_cv_type_uint8_t=yes
5247 else
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 ac_cv_type_uint8_t=no
5253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5256 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5257 if test $ac_cv_type_uint8_t = yes; then
5259 else
5261 cat >>confdefs.h <<\_ACEOF
5262 #define uint8_t unsigned char
5263 _ACEOF
5267 echo "$as_me:$LINENO: checking for uint16_t" >&5
5268 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5269 if test "${ac_cv_type_uint16_t+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include "syshead.h"
5281 main ()
5283 if ((uint16_t *) 0)
5284 return 0;
5285 if (sizeof (uint16_t))
5286 return 0;
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_type_uint16_t=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_type_uint16_t=no
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5323 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5324 if test $ac_cv_type_uint16_t = yes; then
5326 else
5328 cat >>confdefs.h <<\_ACEOF
5329 #define uint16_t unsigned char
5330 _ACEOF
5334 echo "$as_me:$LINENO: checking for uint32_t" >&5
5335 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5336 if test "${ac_cv_type_uint32_t+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include "syshead.h"
5348 main ()
5350 if ((uint32_t *) 0)
5351 return 0;
5352 if (sizeof (uint32_t))
5353 return 0;
5355 return 0;
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_type_uint32_t=yes
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_cv_type_uint32_t=no
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5390 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5391 if test $ac_cv_type_uint32_t = yes; then
5393 else
5395 cat >>confdefs.h <<\_ACEOF
5396 #define uint32_t unsigned long
5397 _ACEOF
5402 echo "$as_me:$LINENO: checking for struct tun_pi" >&5
5403 echo $ECHO_N "checking for struct tun_pi... $ECHO_C" >&6
5404 if test "${ac_cv_type_struct_tun_pi+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include "syshead.h"
5416 main ()
5418 if ((struct tun_pi *) 0)
5419 return 0;
5420 if (sizeof (struct tun_pi))
5421 return 0;
5423 return 0;
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428 (eval $ac_compile) 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag"
5436 || test ! -s conftest.err'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; } &&
5442 { ac_try='test -s conftest.$ac_objext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_type_struct_tun_pi=yes
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 ac_cv_type_struct_tun_pi=no
5455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tun_pi" >&5
5458 echo "${ECHO_T}$ac_cv_type_struct_tun_pi" >&6
5459 if test $ac_cv_type_struct_tun_pi = yes; then
5461 cat >>confdefs.h <<\_ACEOF
5462 #define HAVE_TUN_PI 1
5463 _ACEOF
5467 echo "$as_me:$LINENO: checking for struct iphdr" >&5
5468 echo $ECHO_N "checking for struct iphdr... $ECHO_C" >&6
5469 if test "${ac_cv_type_struct_iphdr+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #include "syshead.h"
5481 main ()
5483 if ((struct iphdr *) 0)
5484 return 0;
5485 if (sizeof (struct iphdr))
5486 return 0;
5488 return 0;
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_cv_type_struct_iphdr=yes
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_cv_type_struct_iphdr=no
5520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5522 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iphdr" >&5
5523 echo "${ECHO_T}$ac_cv_type_struct_iphdr" >&6
5524 if test $ac_cv_type_struct_iphdr = yes; then
5526 cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_IPHDR 1
5528 _ACEOF
5532 echo "$as_me:$LINENO: checking for struct iovec" >&5
5533 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
5534 if test "${ac_cv_type_struct_iovec+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 #include "syshead.h"
5546 main ()
5548 if ((struct iovec *) 0)
5549 return 0;
5550 if (sizeof (struct iovec))
5551 return 0;
5553 return 0;
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_type_struct_iovec=yes
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_cv_type_struct_iovec=no
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
5588 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
5589 if test $ac_cv_type_struct_iovec = yes; then
5591 cat >>confdefs.h <<\_ACEOF
5592 #define HAVE_IOVEC 1
5593 _ACEOF
5598 echo "$as_me:$LINENO: checking for struct sock_extended_err" >&5
5599 echo $ECHO_N "checking for struct sock_extended_err... $ECHO_C" >&6
5600 if test "${ac_cv_type_struct_sock_extended_err+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include "syshead.h"
5612 main ()
5614 if ((struct sock_extended_err *) 0)
5615 return 0;
5616 if (sizeof (struct sock_extended_err))
5617 return 0;
5619 return 0;
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest.$ac_objext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_type_struct_sock_extended_err=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_cv_type_struct_sock_extended_err=no
5651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sock_extended_err" >&5
5654 echo "${ECHO_T}$ac_cv_type_struct_sock_extended_err" >&6
5655 if test $ac_cv_type_struct_sock_extended_err = yes; then
5657 cat >>confdefs.h <<\_ACEOF
5658 #define HAVE_SOCK_EXTENDED_ERR 1
5659 _ACEOF
5663 echo "$as_me:$LINENO: checking for struct msghdr" >&5
5664 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
5665 if test "${ac_cv_type_struct_msghdr+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include "syshead.h"
5677 main ()
5679 if ((struct msghdr *) 0)
5680 return 0;
5681 if (sizeof (struct msghdr))
5682 return 0;
5684 return 0;
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5709 ac_cv_type_struct_msghdr=yes
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_cv_type_struct_msghdr=no
5716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5718 echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
5719 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
5720 if test $ac_cv_type_struct_msghdr = yes; then
5722 cat >>confdefs.h <<\_ACEOF
5723 #define HAVE_MSGHDR 1
5724 _ACEOF
5728 echo "$as_me:$LINENO: checking for struct cmsghdr" >&5
5729 echo $ECHO_N "checking for struct cmsghdr... $ECHO_C" >&6
5730 if test "${ac_cv_type_struct_cmsghdr+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #include "syshead.h"
5742 main ()
5744 if ((struct cmsghdr *) 0)
5745 return 0;
5746 if (sizeof (struct cmsghdr))
5747 return 0;
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5774 ac_cv_type_struct_cmsghdr=yes
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_cv_type_struct_cmsghdr=no
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsghdr" >&5
5784 echo "${ECHO_T}$ac_cv_type_struct_cmsghdr" >&6
5785 if test $ac_cv_type_struct_cmsghdr = yes; then
5787 cat >>confdefs.h <<\_ACEOF
5788 #define HAVE_CMSGHDR 1
5789 _ACEOF
5794 echo "$as_me:$LINENO: checking for unsigned int" >&5
5795 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
5796 if test "${ac_cv_type_unsigned_int+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5807 main ()
5809 if ((unsigned int *) 0)
5810 return 0;
5811 if (sizeof (unsigned int))
5812 return 0;
5814 return 0;
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_type_unsigned_int=yes
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 ac_cv_type_unsigned_int=no
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
5849 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
5851 echo "$as_me:$LINENO: checking size of unsigned int" >&5
5852 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
5853 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 if test "$ac_cv_type_unsigned_int" = yes; then
5857 # The cast to unsigned long works around a bug in the HP C Compiler
5858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5860 # This bug is HP SR number 8606223364.
5861 if test "$cross_compiling" = yes; then
5862 # Depending upon the size, compute the lo and hi bounds.
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5871 main ()
5873 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
5874 test_array [0] = 0
5877 return 0;
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_lo=0 ac_mid=0
5903 while :; do
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5912 main ()
5914 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
5915 test_array [0] = 0
5918 return 0;
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_hi=$ac_mid; break
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_lo=`expr $ac_mid + 1`
5949 if test $ac_lo -le $ac_mid; then
5950 ac_lo= ac_hi=
5951 break
5953 ac_mid=`expr 2 '*' $ac_mid + 1`
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 done
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5969 main ()
5971 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
5972 test_array [0] = 0
5975 return 0;
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_hi=-1 ac_mid=-1
6001 while :; do
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6010 main ()
6012 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
6013 test_array [0] = 0
6016 return 0;
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6041 ac_lo=$ac_mid; break
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 ac_hi=`expr '(' $ac_mid ')' - 1`
6047 if test $ac_mid -le $ac_hi; then
6048 ac_lo= ac_hi=
6049 break
6051 ac_mid=`expr 2 '*' $ac_mid`
6053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6054 done
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 ac_lo= ac_hi=
6061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6064 # Binary search between lo and hi bounds.
6065 while test "x$ac_lo" != "x$ac_hi"; do
6066 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 $ac_includes_default
6075 main ()
6077 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
6078 test_array [0] = 0
6081 return 0;
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_c_werror_flag"
6094 || test ! -s conftest.err'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; } &&
6100 { ac_try='test -s conftest.$ac_objext'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_hi=$ac_mid
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_lo=`expr '(' $ac_mid ')' + 1`
6113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114 done
6115 case $ac_lo in
6116 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
6117 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
6118 See \`config.log' for more details." >&5
6119 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
6120 See \`config.log' for more details." >&2;}
6121 { (exit 1); exit 1; }; } ;;
6122 esac
6123 else
6124 if test "$cross_compiling" = yes; then
6125 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6126 See \`config.log' for more details." >&5
6127 echo "$as_me: error: cannot run test program while cross compiling
6128 See \`config.log' for more details." >&2;}
6129 { (exit 1); exit 1; }; }
6130 else
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 $ac_includes_default
6138 long longval () { return (long) (sizeof (unsigned int)); }
6139 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
6140 #include <stdio.h>
6141 #include <stdlib.h>
6143 main ()
6146 FILE *f = fopen ("conftest.val", "w");
6147 if (! f)
6148 exit (1);
6149 if (((long) (sizeof (unsigned int))) < 0)
6151 long i = longval ();
6152 if (i != ((long) (sizeof (unsigned int))))
6153 exit (1);
6154 fprintf (f, "%ld\n", i);
6156 else
6158 unsigned long i = ulongval ();
6159 if (i != ((long) (sizeof (unsigned int))))
6160 exit (1);
6161 fprintf (f, "%lu\n", i);
6163 exit (ferror (f) || fclose (f) != 0);
6166 return 0;
6168 _ACEOF
6169 rm -f conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_sizeof_unsigned_int=`cat conftest.val`
6181 else
6182 echo "$as_me: program exited with status $ac_status" >&5
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ( exit $ac_status )
6187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
6188 See \`config.log' for more details." >&5
6189 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
6190 See \`config.log' for more details." >&2;}
6191 { (exit 1); exit 1; }; }
6193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6196 rm -f conftest.val
6197 else
6198 ac_cv_sizeof_unsigned_int=0
6201 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
6202 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
6203 cat >>confdefs.h <<_ACEOF
6204 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
6205 _ACEOF
6208 echo "$as_me:$LINENO: checking for unsigned long" >&5
6209 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
6210 if test "${ac_cv_type_unsigned_long+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6221 main ()
6223 if ((unsigned long *) 0)
6224 return 0;
6225 if (sizeof (unsigned long))
6226 return 0;
6228 return 0;
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_type_unsigned_long=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_cv_type_unsigned_long=no
6260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
6263 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
6265 echo "$as_me:$LINENO: checking size of unsigned long" >&5
6266 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
6267 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 if test "$ac_cv_type_unsigned_long" = yes; then
6271 # The cast to unsigned long works around a bug in the HP C Compiler
6272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6274 # This bug is HP SR number 8606223364.
6275 if test "$cross_compiling" = yes; then
6276 # Depending upon the size, compute the lo and hi bounds.
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6285 main ()
6287 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
6288 test_array [0] = 0
6291 return 0;
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -z "$ac_c_werror_flag"
6304 || test ! -s conftest.err'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_lo=0 ac_mid=0
6317 while :; do
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6326 main ()
6328 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
6329 test_array [0] = 0
6332 return 0;
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try='test -z "$ac_c_werror_flag"
6345 || test ! -s conftest.err'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try='test -s conftest.$ac_objext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_hi=$ac_mid; break
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_lo=`expr $ac_mid + 1`
6363 if test $ac_lo -le $ac_mid; then
6364 ac_lo= ac_hi=
6365 break
6367 ac_mid=`expr 2 '*' $ac_mid + 1`
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 done
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6383 main ()
6385 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
6386 test_array [0] = 0
6389 return 0;
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_hi=-1 ac_mid=-1
6415 while :; do
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6424 main ()
6426 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
6427 test_array [0] = 0
6430 return 0;
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6455 ac_lo=$ac_mid; break
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 ac_hi=`expr '(' $ac_mid ')' - 1`
6461 if test $ac_mid -le $ac_hi; then
6462 ac_lo= ac_hi=
6463 break
6465 ac_mid=`expr 2 '*' $ac_mid`
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6468 done
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_lo= ac_hi=
6475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478 # Binary search between lo and hi bounds.
6479 while test "x$ac_lo" != "x$ac_hi"; do
6480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 $ac_includes_default
6489 main ()
6491 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
6492 test_array [0] = 0
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_hi=$ac_mid
6521 else
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_lo=`expr '(' $ac_mid ')' + 1`
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 done
6529 case $ac_lo in
6530 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
6531 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
6532 See \`config.log' for more details." >&5
6533 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
6534 See \`config.log' for more details." >&2;}
6535 { (exit 1); exit 1; }; } ;;
6536 esac
6537 else
6538 if test "$cross_compiling" = yes; then
6539 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6540 See \`config.log' for more details." >&5
6541 echo "$as_me: error: cannot run test program while cross compiling
6542 See \`config.log' for more details." >&2;}
6543 { (exit 1); exit 1; }; }
6544 else
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6552 long longval () { return (long) (sizeof (unsigned long)); }
6553 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
6554 #include <stdio.h>
6555 #include <stdlib.h>
6557 main ()
6560 FILE *f = fopen ("conftest.val", "w");
6561 if (! f)
6562 exit (1);
6563 if (((long) (sizeof (unsigned long))) < 0)
6565 long i = longval ();
6566 if (i != ((long) (sizeof (unsigned long))))
6567 exit (1);
6568 fprintf (f, "%ld\n", i);
6570 else
6572 unsigned long i = ulongval ();
6573 if (i != ((long) (sizeof (unsigned long))))
6574 exit (1);
6575 fprintf (f, "%lu\n", i);
6577 exit (ferror (f) || fclose (f) != 0);
6580 return 0;
6582 _ACEOF
6583 rm -f conftest$ac_exeext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585 (eval $ac_link) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_sizeof_unsigned_long=`cat conftest.val`
6595 else
6596 echo "$as_me: program exited with status $ac_status" >&5
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ( exit $ac_status )
6601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
6602 See \`config.log' for more details." >&5
6603 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
6604 See \`config.log' for more details." >&2;}
6605 { (exit 1); exit 1; }; }
6607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6610 rm -f conftest.val
6611 else
6612 ac_cv_sizeof_unsigned_long=0
6615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
6616 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
6617 cat >>confdefs.h <<_ACEOF
6618 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
6619 _ACEOF
6623 cat >confcache <<\_ACEOF
6624 # This file is a shell script that caches the results of configure
6625 # tests run on this system so they can be shared between configure
6626 # scripts and configure runs, see configure's option --config-cache.
6627 # It is not useful on other systems. If it contains results you don't
6628 # want to keep, you may remove or edit it.
6630 # config.status only pays attention to the cache file if you give it
6631 # the --recheck option to rerun configure.
6633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6635 # following values.
6637 _ACEOF
6639 # The following way of writing the cache mishandles newlines in values,
6640 # but we know of no workaround that is simple, portable, and efficient.
6641 # So, don't put newlines in cache variables' values.
6642 # Ultrix sh set writes to stderr and can't be redirected directly,
6643 # and sets the high bit in the cache file unless we assign to the vars.
6645 (set) 2>&1 |
6646 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6647 *ac_space=\ *)
6648 # `set' does not quote correctly, so add quotes (double-quote
6649 # substitution turns \\\\ into \\, and sed turns \\ into \).
6650 sed -n \
6651 "s/'/'\\\\''/g;
6652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6655 # `set' quotes correctly as required by POSIX, so do not add quotes.
6656 sed -n \
6657 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6659 esac;
6661 sed '
6662 t clear
6663 : clear
6664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6665 t end
6666 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6667 : end' >>confcache
6668 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6669 if test -w $cache_file; then
6670 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6671 cat confcache >$cache_file
6672 else
6673 echo "not updating unwritable cache $cache_file"
6676 rm -f confcache
6679 echo "$as_me:$LINENO: checking for socklen_t" >&5
6680 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6681 if test "${ac_cv_type_socklen_t+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 #include <sys/types.h>
6691 #include <sys/socket.h>
6694 main ()
6696 if ((socklen_t *) 0)
6697 return 0;
6698 if (sizeof (socklen_t))
6699 return 0;
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -z "$ac_c_werror_flag"
6714 || test ! -s conftest.err'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 (eval $ac_try) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; } &&
6720 { ac_try='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_cv_type_socklen_t=yes
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_cv_type_socklen_t=no
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6735 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6736 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6737 if test $ac_cv_type_socklen_t = yes; then
6739 else
6741 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
6742 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
6743 if test "${curl_cv_socklen_t_equiv+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6747 # Systems have either "struct sockaddr *" or
6748 # "void *" as the second argument to getpeername
6749 curl_cv_socklen_t_equiv=
6750 for arg2 in "struct sockaddr" void; do
6751 for t in int size_t unsigned long "unsigned long"; do
6752 cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6759 #include <sys/types.h>
6760 #include <sys/socket.h>
6762 int getpeername (int, $arg2 *, $t *);
6765 main ()
6768 $t len;
6769 getpeername(0,0,&len);
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 (eval $ac_compile) 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try='test -z "$ac_c_werror_flag"
6785 || test ! -s conftest.err'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 (eval $ac_try) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try='test -s conftest.$ac_objext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6798 curl_cv_socklen_t_equiv="$t"
6799 break
6801 else
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807 done
6808 done
6810 if test "x$curl_cv_socklen_t_equiv" = x; then
6811 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
6812 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
6813 { (exit 1); exit 1; }; }
6818 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
6819 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
6821 cat >>confdefs.h <<_ACEOF
6822 #define socklen_t $curl_cv_socklen_t_equiv
6823 _ACEOF
6828 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6829 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6830 if test "${ac_cv_type_signal+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <sys/types.h>
6840 #include <signal.h>
6841 #ifdef signal
6842 # undef signal
6843 #endif
6844 #ifdef __cplusplus
6845 extern "C" void (*signal (int, void (*)(int)))(int);
6846 #else
6847 void (*signal ()) ();
6848 #endif
6851 main ()
6853 int i;
6855 return 0;
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_cv_type_signal=void
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_cv_type_signal=int
6887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6889 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6890 echo "${ECHO_T}$ac_cv_type_signal" >&6
6892 cat >>confdefs.h <<_ACEOF
6893 #define RETSIGTYPE $ac_cv_type_signal
6894 _ACEOF
6898 echo "$as_me:$LINENO: checking for library containing socket" >&5
6899 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6900 if test "${ac_cv_search_socket+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903 ac_func_search_save_LIBS=$LIBS
6904 ac_cv_search_socket=no
6905 cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h. */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6912 /* Override any gcc2 internal prototype to avoid an error. */
6913 #ifdef __cplusplus
6914 extern "C"
6915 #endif
6916 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6918 char socket ();
6920 main ()
6922 socket ();
6924 return 0;
6926 _ACEOF
6927 rm -f conftest.$ac_objext conftest$ac_exeext
6928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>conftest.er1
6930 ac_status=$?
6931 grep -v '^ *+' conftest.er1 >conftest.err
6932 rm -f conftest.er1
6933 cat conftest.err >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -z "$ac_c_werror_flag"
6937 || test ! -s conftest.err'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 (eval $ac_try) 2>&5
6940 ac_status=$?
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; } &&
6943 { ac_try='test -s conftest$ac_exeext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 (eval $ac_try) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6949 ac_cv_search_socket="none required"
6950 else
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6955 rm -f conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957 if test "$ac_cv_search_socket" = no; then
6958 for ac_lib in socket; do
6959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6967 /* Override any gcc2 internal prototype to avoid an error. */
6968 #ifdef __cplusplus
6969 extern "C"
6970 #endif
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6973 char socket ();
6975 main ()
6977 socket ();
6979 return 0;
6981 _ACEOF
6982 rm -f conftest.$ac_objext conftest$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -z "$ac_c_werror_flag"
6992 || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest$ac_exeext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_search_socket="-l$ac_lib"
7005 break
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7011 rm -f conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 done
7015 LIBS=$ac_func_search_save_LIBS
7017 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7018 echo "${ECHO_T}$ac_cv_search_socket" >&6
7019 if test "$ac_cv_search_socket" != no; then
7020 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7025 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7026 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
7027 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 ac_func_search_save_LIBS=$LIBS
7031 ac_cv_search_inet_ntoa=no
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7039 /* Override any gcc2 internal prototype to avoid an error. */
7040 #ifdef __cplusplus
7041 extern "C"
7042 #endif
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7045 char inet_ntoa ();
7047 main ()
7049 inet_ntoa ();
7051 return 0;
7053 _ACEOF
7054 rm -f conftest.$ac_objext conftest$ac_exeext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest$ac_exeext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_search_inet_ntoa="none required"
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7082 rm -f conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext conftest.$ac_ext
7084 if test "$ac_cv_search_inet_ntoa" = no; then
7085 for ac_lib in nsl; do
7086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 #ifdef __cplusplus
7096 extern "C"
7097 #endif
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7100 char inet_ntoa ();
7102 main ()
7104 inet_ntoa ();
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_search_inet_ntoa="-l$ac_lib"
7132 break
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7138 rm -f conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7140 done
7142 LIBS=$ac_func_search_save_LIBS
7144 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7145 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
7146 if test "$ac_cv_search_inet_ntoa" != no; then
7147 test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS"
7152 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7153 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7154 if test "${ac_cv_search_gethostbyname+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157 ac_func_search_save_LIBS=$LIBS
7158 ac_cv_search_gethostbyname=no
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7166 /* Override any gcc2 internal prototype to avoid an error. */
7167 #ifdef __cplusplus
7168 extern "C"
7169 #endif
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172 char gethostbyname ();
7174 main ()
7176 gethostbyname ();
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_search_gethostbyname="none required"
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7209 rm -f conftest.err conftest.$ac_objext \
7210 conftest$ac_exeext conftest.$ac_ext
7211 if test "$ac_cv_search_gethostbyname" = no; then
7212 for ac_lib in resolv nsl; do
7213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7221 /* Override any gcc2 internal prototype to avoid an error. */
7222 #ifdef __cplusplus
7223 extern "C"
7224 #endif
7225 /* We use char because int might match the return type of a gcc2
7226 builtin and then its argument prototype would still apply. */
7227 char gethostbyname ();
7229 main ()
7231 gethostbyname ();
7233 return 0;
7235 _ACEOF
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 ac_cv_search_gethostbyname="-l$ac_lib"
7259 break
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7265 rm -f conftest.err conftest.$ac_objext \
7266 conftest$ac_exeext conftest.$ac_ext
7267 done
7269 LIBS=$ac_func_search_save_LIBS
7271 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7272 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7273 if test "$ac_cv_search_gethostbyname" != no; then
7274 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7281 for ac_header in unistd.h vfork.h
7283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7285 echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7292 else
7293 # Is the header compilable?
7294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h. */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 $ac_includes_default
7303 #include <$ac_header>
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7307 (eval $ac_compile) 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try='test -z "$ac_c_werror_flag"
7315 || test ! -s conftest.err'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 ac_header_compiler=yes
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_header_compiler=no
7334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7336 echo "${ECHO_T}$ac_header_compiler" >&6
7338 # Is the header present?
7339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <$ac_header>
7348 _ACEOF
7349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } >/dev/null; then
7357 if test -s conftest.err; then
7358 ac_cpp_err=$ac_c_preproc_warn_flag
7359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7360 else
7361 ac_cpp_err=
7363 else
7364 ac_cpp_err=yes
7366 if test -z "$ac_cpp_err"; then
7367 ac_header_preproc=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_header_preproc=no
7374 rm -f conftest.err conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7376 echo "${ECHO_T}$ac_header_preproc" >&6
7378 # So? What about this header?
7379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7380 yes:no: )
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7385 ac_header_preproc=yes
7387 no:yes:* )
7389 esac
7390 echo "$as_me:$LINENO: checking for $ac_header" >&5
7391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 eval "$as_ac_Header=\$ac_header_preproc"
7397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402 cat >>confdefs.h <<_ACEOF
7403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 _ACEOF
7408 done
7412 for ac_func in fork vfork
7414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7415 echo "$as_me:$LINENO: checking for $ac_func" >&5
7416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7417 if eval "test \"\${$as_ac_var+set}\" = set"; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7428 #define $ac_func innocuous_$ac_func
7430 /* System header to define __stub macros and hopefully few prototypes,
7431 which can conflict with char $ac_func (); below.
7432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 <limits.h> exists even on freestanding compilers. */
7435 #ifdef __STDC__
7436 # include <limits.h>
7437 #else
7438 # include <assert.h>
7439 #endif
7441 #undef $ac_func
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 #ifdef __cplusplus
7445 extern "C"
7447 #endif
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7450 char $ac_func ();
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7455 choke me
7456 #else
7457 char (*f) () = $ac_func;
7458 #endif
7459 #ifdef __cplusplus
7461 #endif
7464 main ()
7466 return f != $ac_func;
7468 return 0;
7470 _ACEOF
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7473 (eval $ac_link) 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try='test -z "$ac_c_werror_flag"
7481 || test ! -s conftest.err'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; } &&
7487 { ac_try='test -s conftest$ac_exeext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 eval "$as_ac_var=yes"
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 eval "$as_ac_var=no"
7500 rm -f conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7505 if test `eval echo '${'$as_ac_var'}'` = yes; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7508 _ACEOF
7511 done
7513 if test "x$ac_cv_func_fork" = xyes; then
7514 echo "$as_me:$LINENO: checking for working fork" >&5
7515 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7516 if test "${ac_cv_func_fork_works+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 if test "$cross_compiling" = yes; then
7520 ac_cv_func_fork_works=cross
7521 else
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* By Ruediger Kuhlmann. */
7524 #include <sys/types.h>
7525 #if HAVE_UNISTD_H
7526 # include <unistd.h>
7527 #endif
7528 /* Some systems only have a dummy stub for fork() */
7529 int main ()
7531 if (fork() < 0)
7532 exit (1);
7533 exit (0);
7535 _ACEOF
7536 rm -f conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_func_fork_works=yes
7548 else
7549 echo "$as_me: program exited with status $ac_status" >&5
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 ( exit $ac_status )
7554 ac_cv_func_fork_works=no
7556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7559 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7560 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7562 else
7563 ac_cv_func_fork_works=$ac_cv_func_fork
7565 if test "x$ac_cv_func_fork_works" = xcross; then
7566 case $host in
7567 *-*-amigaos* | *-*-msdosdjgpp*)
7568 # Override, as these systems have only a dummy fork() stub
7569 ac_cv_func_fork_works=no
7572 ac_cv_func_fork_works=yes
7574 esac
7575 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7576 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7578 ac_cv_func_vfork_works=$ac_cv_func_vfork
7579 if test "x$ac_cv_func_vfork" = xyes; then
7580 echo "$as_me:$LINENO: checking for working vfork" >&5
7581 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7582 if test "${ac_cv_func_vfork_works+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 if test "$cross_compiling" = yes; then
7586 ac_cv_func_vfork_works=cross
7587 else
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 /* Thanks to Paul Eggert for this test. */
7595 #include <stdio.h>
7596 #include <stdlib.h>
7597 #include <sys/types.h>
7598 #include <sys/stat.h>
7599 #include <sys/wait.h>
7600 #if HAVE_UNISTD_H
7601 # include <unistd.h>
7602 #endif
7603 #if HAVE_VFORK_H
7604 # include <vfork.h>
7605 #endif
7606 /* On some sparc systems, changes by the child to local and incoming
7607 argument registers are propagated back to the parent. The compiler
7608 is told about this with #include <vfork.h>, but some compilers
7609 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7610 static variable whose address is put into a register that is
7611 clobbered by the vfork. */
7612 static void
7613 #ifdef __cplusplus
7614 sparc_address_test (int arg)
7615 # else
7616 sparc_address_test (arg) int arg;
7617 #endif
7619 static pid_t child;
7620 if (!child) {
7621 child = vfork ();
7622 if (child < 0) {
7623 perror ("vfork");
7624 _exit(2);
7626 if (!child) {
7627 arg = getpid();
7628 write(-1, "", 0);
7629 _exit (arg);
7635 main ()
7637 pid_t parent = getpid ();
7638 pid_t child;
7640 sparc_address_test (0);
7642 child = vfork ();
7644 if (child == 0) {
7645 /* Here is another test for sparc vfork register problems. This
7646 test uses lots of local variables, at least as many local
7647 variables as main has allocated so far including compiler
7648 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7649 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7650 reuse the register of parent for one of the local variables,
7651 since it will think that parent can't possibly be used any more
7652 in this routine. Assigning to the local variable will thus
7653 munge parent in the parent process. */
7654 pid_t
7655 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7656 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7657 /* Convince the compiler that p..p7 are live; otherwise, it might
7658 use the same hardware register for all 8 local variables. */
7659 if (p != p1 || p != p2 || p != p3 || p != p4
7660 || p != p5 || p != p6 || p != p7)
7661 _exit(1);
7663 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7664 from child file descriptors. If the child closes a descriptor
7665 before it execs or exits, this munges the parent's descriptor
7666 as well. Test for this by closing stdout in the child. */
7667 _exit(close(fileno(stdout)) != 0);
7668 } else {
7669 int status;
7670 struct stat st;
7672 while (wait(&status) != child)
7674 exit(
7675 /* Was there some problem with vforking? */
7676 child < 0
7678 /* Did the child fail? (This shouldn't happen.) */
7679 || status
7681 /* Did the vfork/compiler bug occur? */
7682 || parent != getpid()
7684 /* Did the file descriptor bug occur? */
7685 || fstat(fileno(stdout), &st) != 0
7689 _ACEOF
7690 rm -f conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 ac_cv_func_vfork_works=yes
7702 else
7703 echo "$as_me: program exited with status $ac_status" >&5
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ( exit $ac_status )
7708 ac_cv_func_vfork_works=no
7710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7713 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7714 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7717 if test "x$ac_cv_func_fork_works" = xcross; then
7718 ac_cv_func_vfork_works=$ac_cv_func_vfork
7719 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7720 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7723 if test "x$ac_cv_func_vfork_works" = xyes; then
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_WORKING_VFORK 1
7727 _ACEOF
7729 else
7731 cat >>confdefs.h <<\_ACEOF
7732 #define vfork fork
7733 _ACEOF
7736 if test "x$ac_cv_func_fork_works" = xyes; then
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_WORKING_FORK 1
7740 _ACEOF
7776 for ac_func in daemon chroot getpwnam setuid nice system getpid dup dup2 getpass strerror syslog openlog mlockall getgrnam setgid setgroups stat flock readv writev setsockopt getsockopt setsid chdir gettimeofday putenv getpeername unlink poll chsize ftruncate
7778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 echo "$as_me:$LINENO: checking for $ac_func" >&5
7780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_var+set}\" = set"; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7792 #define $ac_func innocuous_$ac_func
7794 /* System header to define __stub macros and hopefully few prototypes,
7795 which can conflict with char $ac_func (); below.
7796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7797 <limits.h> exists even on freestanding compilers. */
7799 #ifdef __STDC__
7800 # include <limits.h>
7801 #else
7802 # include <assert.h>
7803 #endif
7805 #undef $ac_func
7807 /* Override any gcc2 internal prototype to avoid an error. */
7808 #ifdef __cplusplus
7809 extern "C"
7811 #endif
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7814 char $ac_func ();
7815 /* The GNU C library defines this for functions which it implements
7816 to always fail with ENOSYS. Some functions are actually named
7817 something starting with __ and the normal name is an alias. */
7818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7819 choke me
7820 #else
7821 char (*f) () = $ac_func;
7822 #endif
7823 #ifdef __cplusplus
7825 #endif
7828 main ()
7830 return f != $ac_func;
7832 return 0;
7834 _ACEOF
7835 rm -f conftest.$ac_objext conftest$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try='test -z "$ac_c_werror_flag"
7845 || test ! -s conftest.err'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 eval "$as_ac_var=yes"
7858 else
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7862 eval "$as_ac_var=no"
7864 rm -f conftest.err conftest.$ac_objext \
7865 conftest$ac_exeext conftest.$ac_ext
7867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7869 if test `eval echo '${'$as_ac_var'}'` = yes; then
7870 cat >>confdefs.h <<_ACEOF
7871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7872 _ACEOF
7875 done
7877 cat >confcache <<\_ACEOF
7878 # This file is a shell script that caches the results of configure
7879 # tests run on this system so they can be shared between configure
7880 # scripts and configure runs, see configure's option --config-cache.
7881 # It is not useful on other systems. If it contains results you don't
7882 # want to keep, you may remove or edit it.
7884 # config.status only pays attention to the cache file if you give it
7885 # the --recheck option to rerun configure.
7887 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7888 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7889 # following values.
7891 _ACEOF
7893 # The following way of writing the cache mishandles newlines in values,
7894 # but we know of no workaround that is simple, portable, and efficient.
7895 # So, don't put newlines in cache variables' values.
7896 # Ultrix sh set writes to stderr and can't be redirected directly,
7897 # and sets the high bit in the cache file unless we assign to the vars.
7899 (set) 2>&1 |
7900 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7901 *ac_space=\ *)
7902 # `set' does not quote correctly, so add quotes (double-quote
7903 # substitution turns \\\\ into \\, and sed turns \\ into \).
7904 sed -n \
7905 "s/'/'\\\\''/g;
7906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7909 # `set' quotes correctly as required by POSIX, so do not add quotes.
7910 sed -n \
7911 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7913 esac;
7915 sed '
7916 t clear
7917 : clear
7918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7919 t end
7920 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7921 : end' >>confcache
7922 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7923 if test -w $cache_file; then
7924 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7925 cat confcache >$cache_file
7926 else
7927 echo "not updating unwritable cache $cache_file"
7930 rm -f confcache
7932 echo "$as_me:$LINENO: checking for working memcmp" >&5
7933 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
7934 if test "${ac_cv_func_memcmp_working+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 if test "$cross_compiling" = yes; then
7938 ac_cv_func_memcmp_working=no
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7948 main ()
7951 /* Some versions of memcmp are not 8-bit clean. */
7952 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7953 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7954 exit (1);
7956 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7957 or more and with at least one buffer not starting on a 4-byte boundary.
7958 William Lewis provided this test program. */
7960 char foo[21];
7961 char bar[21];
7962 int i;
7963 for (i = 0; i < 4; i++)
7965 char *a = foo + i;
7966 char *b = bar + i;
7967 strcpy (a, "--------01111111");
7968 strcpy (b, "--------10000000");
7969 if (memcmp (a, b, 16) >= 0)
7970 exit (1);
7972 exit (0);
7976 return 0;
7978 _ACEOF
7979 rm -f conftest$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 (eval $ac_try) 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 ac_cv_func_memcmp_working=yes
7991 else
7992 echo "$as_me: program exited with status $ac_status" >&5
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ( exit $ac_status )
7997 ac_cv_func_memcmp_working=no
7999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8002 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8003 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8004 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
8005 "memcmp.$ac_objext" | \
8006 *" memcmp.$ac_objext" | \
8007 "memcmp.$ac_objext "* | \
8008 *" memcmp.$ac_objext "* ) ;;
8009 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
8010 esac
8030 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa time ctime memset vsnprintf
8032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8033 echo "$as_me:$LINENO: checking for $ac_func" >&5
8034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8035 if eval "test \"\${$as_ac_var+set}\" = set"; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038 cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h. */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8046 #define $ac_func innocuous_$ac_func
8048 /* System header to define __stub macros and hopefully few prototypes,
8049 which can conflict with char $ac_func (); below.
8050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8051 <limits.h> exists even on freestanding compilers. */
8053 #ifdef __STDC__
8054 # include <limits.h>
8055 #else
8056 # include <assert.h>
8057 #endif
8059 #undef $ac_func
8061 /* Override any gcc2 internal prototype to avoid an error. */
8062 #ifdef __cplusplus
8063 extern "C"
8065 #endif
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8068 char $ac_func ();
8069 /* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8073 choke me
8074 #else
8075 char (*f) () = $ac_func;
8076 #endif
8077 #ifdef __cplusplus
8079 #endif
8082 main ()
8084 return f != $ac_func;
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 eval "$as_ac_var=yes"
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 eval "$as_ac_var=no"
8118 rm -f conftest.err conftest.$ac_objext \
8119 conftest$ac_exeext conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8123 if test `eval echo '${'$as_ac_var'}'` = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8126 _ACEOF
8128 else
8129 { { echo "$as_me:$LINENO: error: Required library function not found" >&5
8130 echo "$as_me: error: Required library function not found" >&2;}
8131 { (exit 1); exit 1; }; }
8133 done
8137 { echo "$as_me:$LINENO: checking for working epoll implementation..." >&5
8138 echo "$as_me: checking for working epoll implementation..." >&6;}
8139 OLDLDFLAGS="$LDFLAGS"
8140 LDFLAGS="$LDFLAGS -Wl,--fatal-warnings"
8142 for ac_func in epoll_create
8144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8145 echo "$as_me:$LINENO: checking for $ac_func" >&5
8146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_var+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8158 #define $ac_func innocuous_$ac_func
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char $ac_func (); below.
8162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163 <limits.h> exists even on freestanding compilers. */
8165 #ifdef __STDC__
8166 # include <limits.h>
8167 #else
8168 # include <assert.h>
8169 #endif
8171 #undef $ac_func
8173 /* Override any gcc2 internal prototype to avoid an error. */
8174 #ifdef __cplusplus
8175 extern "C"
8177 #endif
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char $ac_func ();
8181 /* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8185 choke me
8186 #else
8187 char (*f) () = $ac_func;
8188 #endif
8189 #ifdef __cplusplus
8191 #endif
8194 main ()
8196 return f != $ac_func;
8198 return 0;
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 eval "$as_ac_var=yes"
8224 else
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 eval "$as_ac_var=no"
8230 rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8235 if test `eval echo '${'$as_ac_var'}'` = yes; then
8236 cat >>confdefs.h <<_ACEOF
8237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8238 _ACEOF
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_EPOLL_CREATE 1
8241 _ACEOF
8244 done
8246 LDFLAGS="$OLDLDFLAGS"
8249 if test "$MEMCHECK" = "valgrind"; then
8250 { echo "$as_me:$LINENO: checking for valgrind tool and Header files..." >&5
8251 echo "$as_me: checking for valgrind tool and Header files..." >&6;}
8252 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
8253 echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
8254 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
8255 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
8259 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
8260 else
8261 # Is the header compilable?
8262 echo "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
8263 echo $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h. */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 $ac_includes_default
8271 #include <valgrind/memcheck.h>
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag"
8283 || test ! -s conftest.err'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest.$ac_objext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_header_compiler=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 ac_header_compiler=no
8302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8304 echo "${ECHO_T}$ac_header_compiler" >&6
8306 # Is the header present?
8307 echo "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
8308 echo $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 #include <valgrind/memcheck.h>
8316 _ACEOF
8317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } >/dev/null; then
8325 if test -s conftest.err; then
8326 ac_cpp_err=$ac_c_preproc_warn_flag
8327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8328 else
8329 ac_cpp_err=
8331 else
8332 ac_cpp_err=yes
8334 if test -z "$ac_cpp_err"; then
8335 ac_header_preproc=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_header_preproc=no
8342 rm -f conftest.err conftest.$ac_ext
8343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8344 echo "${ECHO_T}$ac_header_preproc" >&6
8346 # So? What about this header?
8347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8348 yes:no: )
8349 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
8350 echo "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8351 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
8352 echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
8353 ac_header_preproc=yes
8355 no:yes:* )
8357 esac
8358 echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
8359 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
8360 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 ac_cv_header_valgrind_memcheck_h=$ac_header_preproc
8365 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
8366 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
8369 if test $ac_cv_header_valgrind_memcheck_h = yes; then
8372 cat >>confdefs.h <<\_ACEOF
8373 #define USE_VALGRIND 1
8374 _ACEOF
8376 CFLAGS="-g -fno-inline"
8378 else
8379 { { echo "$as_me:$LINENO: error: valgrind headers not found." >&5
8380 echo "$as_me: error: valgrind headers not found." >&2;}
8381 { (exit 1); exit 1; }; }
8389 if test "$PTHREAD" = "yes"; then
8390 { echo "$as_me:$LINENO: checking for pthread support..." >&5
8391 echo "$as_me: checking for pthread support..." >&6;}
8392 echo "$as_me:$LINENO: result: ********* WARNING: pthread support is experimental for OpenVPN 2.0" >&5
8393 echo "${ECHO_T}********* WARNING: pthread support is experimental for OpenVPN 2.0" >&6
8396 acx_pthread_ok=no
8398 # We used to check for pthread.h first, but this fails if pthread.h
8399 # requires special compiler flags (e.g. on True64 or Sequent).
8400 # It gets checked for in the link test anyway.
8402 # First of all, check if the user has set any of the PTHREAD_LIBS,
8403 # etcetera environment variables, and if threads linking works using
8404 # them:
8405 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8406 save_CFLAGS="$CFLAGS"
8407 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8408 save_LIBS="$LIBS"
8409 LIBS="$PTHREAD_LIBS $LIBS"
8410 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8411 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8419 /* Override any gcc2 internal prototype to avoid an error. */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char pthread_join ();
8427 main ()
8429 pthread_join ();
8431 return 0;
8433 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -z "$ac_c_werror_flag"
8444 || test ! -s conftest.err'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 acx_pthread_ok=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8462 rm -f conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
8465 echo "${ECHO_T}$acx_pthread_ok" >&6
8466 if test x"$acx_pthread_ok" = xno; then
8467 PTHREAD_LIBS=""
8468 PTHREAD_CFLAGS=""
8470 LIBS="$save_LIBS"
8471 CFLAGS="$save_CFLAGS"
8474 # We must check for the threads library under a number of different
8475 # names; the ordering is very important because some systems
8476 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8477 # libraries is broken (non-POSIX).
8479 # Create a list of thread flags to try. Items starting with a "-" are
8480 # C compiler flags, and other items are library names, except for "none"
8481 # which indicates that we try without any flags at all.
8483 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
8485 # The ordering *is* (sometimes) important. Some notes on the
8486 # individual items follow:
8488 # pthreads: AIX (must check this before -lpthread)
8489 # none: in case threads are in libc; should be tried before -Kthread and
8490 # other compiler flags to prevent continual compiler warnings
8491 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8492 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8493 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8494 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8495 # -pthreads: Solaris/gcc
8496 # -mthreads: Mingw32/gcc, Lynx/gcc
8497 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8498 # doesn't hurt to check since this sometimes defines pthreads too;
8499 # also defines -D_REENTRANT)
8500 # pthread: Linux, etcetera
8501 # --thread-safe: KAI C++
8503 case "$target" in
8504 *solaris*)
8506 # On Solaris (at least, for some versions), libc contains stubbed
8507 # (non-functional) versions of the pthreads routines, so link-based
8508 # tests will erroneously succeed. (We need to link with -pthread or
8509 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8510 # a function called by this macro, so we could check for that, but
8511 # who knows whether they'll stub that too in a future libc.) So,
8512 # we'll just look for -pthreads and -lpthread first:
8514 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
8516 esac
8518 if test x"$acx_pthread_ok" = xno; then
8519 for flag in $acx_pthread_flags; do
8521 case $flag in
8522 none)
8523 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
8524 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
8528 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
8529 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
8530 PTHREAD_CFLAGS="$flag"
8534 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
8535 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
8536 PTHREAD_LIBS="-l$flag"
8538 esac
8540 save_LIBS="$LIBS"
8541 save_CFLAGS="$CFLAGS"
8542 LIBS="$PTHREAD_LIBS $LIBS"
8543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8545 # Check for various functions. We must include pthread.h,
8546 # since some functions may be macros. (On the Sequent, we
8547 # need a special flag -Kthread to make this header compile.)
8548 # We check for pthread_join because it is in -lpthread on IRIX
8549 # while pthread_create is in libc. We check for pthread_attr_init
8550 # due to DEC craziness with -lpthreads. We check for
8551 # pthread_cleanup_push because it is one of the few pthread
8552 # functions on Solaris that doesn't have a non-functional libc stub.
8553 # We try pthread_create on general principles.
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h. */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 #include <pthread.h>
8562 main ()
8564 pthread_t th; pthread_join(th, 0);
8565 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8566 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8568 return 0;
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 acx_pthread_ok=yes
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8599 rm -f conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8602 LIBS="$save_LIBS"
8603 CFLAGS="$save_CFLAGS"
8605 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
8606 echo "${ECHO_T}$acx_pthread_ok" >&6
8607 if test "x$acx_pthread_ok" = xyes; then
8608 break;
8611 PTHREAD_LIBS=""
8612 PTHREAD_CFLAGS=""
8613 done
8616 # Various other checks:
8617 if test "x$acx_pthread_ok" = xyes; then
8618 save_LIBS="$LIBS"
8619 LIBS="$PTHREAD_LIBS $LIBS"
8620 save_CFLAGS="$CFLAGS"
8621 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8623 # Detect AIX lossage: threads are created detached by default
8624 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
8625 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
8626 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 #include <pthread.h>
8635 main ()
8637 int attr=PTHREAD_CREATE_JOINABLE;
8639 return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext conftest$ac_exeext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644 (eval $ac_link) 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ok=PTHREAD_CREATE_JOINABLE
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ok=unknown
8671 rm -f conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 if test x"$ok" = xunknown; then
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 #include <pthread.h>
8682 main ()
8684 int attr=PTHREAD_CREATE_UNDETACHED;
8686 return 0;
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ok=PTHREAD_CREATE_UNDETACHED
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ok=unknown
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8721 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
8723 cat >>confdefs.h <<\_ACEOF
8724 #define PTHREAD_CREATE_JOINABLE $ok
8725 _ACEOF
8728 echo "$as_me:$LINENO: result: ${ok}" >&5
8729 echo "${ECHO_T}${ok}" >&6
8730 if test x"$ok" = xunknown; then
8731 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
8732 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
8735 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
8736 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
8737 flag=no
8738 case "$target" in
8739 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
8740 *solaris* | alpha*-osf* | *linux*) flag="-D_REENTRANT";;
8741 esac
8742 echo "$as_me:$LINENO: result: ${flag}" >&5
8743 echo "${ECHO_T}${flag}" >&6
8744 if test "x$flag" != xno; then
8745 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8748 LIBS="$save_LIBS"
8749 CFLAGS="$save_CFLAGS"
8751 # More AIX lossage: must compile with cc_r
8752 # Extract the first word of "cc_r", so it can be a program name with args.
8753 set dummy cc_r; ac_word=$2
8754 echo "$as_me:$LINENO: checking for $ac_word" >&5
8755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8756 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 if test -n "$PTHREAD_CC"; then
8760 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8761 else
8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 for as_dir in $PATH
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
8767 for ac_exec_ext in '' $ac_executable_extensions; do
8768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769 ac_cv_prog_PTHREAD_CC="cc_r"
8770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 break 2
8773 done
8774 done
8776 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
8779 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8780 if test -n "$PTHREAD_CC"; then
8781 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
8782 echo "${ECHO_T}$PTHREAD_CC" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6
8788 else
8789 PTHREAD_CC="$CC"
8796 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8797 if test x"$acx_pthread_ok" = xyes; then
8799 case "$target" in
8800 *openbsd*)
8801 echo "$as_me:$LINENO: result: WARNING: pthread support on OpenBSD is unstable!" >&5
8802 echo "${ECHO_T}WARNING: pthread support on OpenBSD is unstable!" >&6
8803 CFLAGS="$CFLAGS -pthread"
8805 esac
8806 LIBS="$PTHREAD_LIBS $LIBS"
8807 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8808 CC="$PTHREAD_CC"
8810 cat >>confdefs.h <<\_ACEOF
8811 #define USE_PTHREAD 1
8812 _ACEOF
8816 else
8817 acx_pthread_ok=no
8819 echo "$as_me:$LINENO: result: I don't know how to build with pthread support on this platform." >&5
8820 echo "${ECHO_T}I don't know how to build with pthread support on this platform." >&6
8821 { { echo "$as_me:$LINENO: error: try ./configure --disable-pthread" >&5
8822 echo "$as_me: error: try ./configure --disable-pthread" >&2;}
8823 { (exit 1); exit 1; }; }
8831 if test "$MEMCHECK" = "dmalloc"; then
8832 { echo "$as_me:$LINENO: checking for dmalloc Library and Header files..." >&5
8833 echo "$as_me: checking for dmalloc Library and Header files..." >&6;}
8834 if test "${ac_cv_header_dmalloc_h+set}" = set; then
8835 echo "$as_me:$LINENO: checking for dmalloc.h" >&5
8836 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
8837 if test "${ac_cv_header_dmalloc_h+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
8841 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
8842 else
8843 # Is the header compilable?
8844 echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
8845 echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 $ac_includes_default
8853 #include <dmalloc.h>
8854 _ACEOF
8855 rm -f conftest.$ac_objext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>conftest.er1
8858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try='test -z "$ac_c_werror_flag"
8865 || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 ac_header_compiler=yes
8878 else
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8882 ac_header_compiler=no
8884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8886 echo "${ECHO_T}$ac_header_compiler" >&6
8888 # Is the header present?
8889 echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
8890 echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 #include <dmalloc.h>
8898 _ACEOF
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } >/dev/null; then
8907 if test -s conftest.err; then
8908 ac_cpp_err=$ac_c_preproc_warn_flag
8909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8910 else
8911 ac_cpp_err=
8913 else
8914 ac_cpp_err=yes
8916 if test -z "$ac_cpp_err"; then
8917 ac_header_preproc=yes
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_header_preproc=no
8924 rm -f conftest.err conftest.$ac_ext
8925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8926 echo "${ECHO_T}$ac_header_preproc" >&6
8928 # So? What about this header?
8929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8930 yes:no: )
8931 { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
8932 echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8933 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
8934 echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
8935 ac_header_preproc=yes
8937 no:yes:* )
8939 esac
8940 echo "$as_me:$LINENO: checking for dmalloc.h" >&5
8941 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
8942 if test "${ac_cv_header_dmalloc_h+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 ac_cv_header_dmalloc_h=$ac_header_preproc
8947 echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
8948 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
8951 if test $ac_cv_header_dmalloc_h = yes; then
8952 echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8953 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
8954 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957 ac_check_lib_save_LIBS=$LIBS
8958 LIBS="-ldmalloc $LIBS"
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8972 char malloc ();
8974 main ()
8976 malloc ();
8978 return 0;
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_lib_dmalloc_malloc=yes
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 ac_cv_lib_dmalloc_malloc=no
9010 rm -f conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LIBS=$ac_check_lib_save_LIBS
9014 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
9015 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
9016 if test $ac_cv_lib_dmalloc_malloc = yes; then
9018 if test "$PTHREAD" = "yes"; then
9020 LIBS="-ldmallocth $LIBS"
9022 else
9024 LIBS="-ldmalloc $LIBS"
9028 cat >>confdefs.h <<\_ACEOF
9029 #define DMALLOC 1
9030 _ACEOF
9033 else
9034 { { echo "$as_me:$LINENO: error: dmalloc library not found." >&5
9035 echo "$as_me: error: dmalloc library not found." >&2;}
9036 { (exit 1); exit 1; }; }
9040 else
9041 { { echo "$as_me:$LINENO: error: dmalloc headers not found." >&5
9042 echo "$as_me: error: dmalloc headers not found." >&2;}
9043 { (exit 1); exit 1; }; }
9050 if test "$PLUGINS" = "yes"; then
9051 { echo "$as_me:$LINENO: checking for libdl Library and Header files..." >&5
9052 echo "$as_me: checking for libdl Library and Header files..." >&6;}
9053 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9054 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9055 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9056 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9060 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9061 else
9062 # Is the header compilable?
9063 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9064 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 $ac_includes_default
9072 #include <dlfcn.h>
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag"
9084 || test ! -s conftest.err'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest.$ac_objext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_header_compiler=yes
9097 else
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_header_compiler=no
9103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9105 echo "${ECHO_T}$ac_header_compiler" >&6
9107 # Is the header present?
9108 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9109 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116 #include <dlfcn.h>
9117 _ACEOF
9118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } >/dev/null; then
9126 if test -s conftest.err; then
9127 ac_cpp_err=$ac_c_preproc_warn_flag
9128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9129 else
9130 ac_cpp_err=
9132 else
9133 ac_cpp_err=yes
9135 if test -z "$ac_cpp_err"; then
9136 ac_header_preproc=yes
9137 else
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_header_preproc=no
9143 rm -f conftest.err conftest.$ac_ext
9144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9145 echo "${ECHO_T}$ac_header_preproc" >&6
9147 # So? What about this header?
9148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9149 yes:no: )
9150 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9151 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9153 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9154 ac_header_preproc=yes
9156 no:yes:* )
9158 esac
9159 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9160 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9161 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 ac_cv_header_dlfcn_h=$ac_header_preproc
9166 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9167 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9170 if test $ac_cv_header_dlfcn_h = yes; then
9171 echo "$as_me:$LINENO: checking for dlopen" >&5
9172 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9173 if test "${ac_cv_func_dlopen+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9184 #define dlopen innocuous_dlopen
9186 /* System header to define __stub macros and hopefully few prototypes,
9187 which can conflict with char dlopen (); below.
9188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9189 <limits.h> exists even on freestanding compilers. */
9191 #ifdef __STDC__
9192 # include <limits.h>
9193 #else
9194 # include <assert.h>
9195 #endif
9197 #undef dlopen
9199 /* Override any gcc2 internal prototype to avoid an error. */
9200 #ifdef __cplusplus
9201 extern "C"
9203 #endif
9204 /* We use char because int might match the return type of a gcc2
9205 builtin and then its argument prototype would still apply. */
9206 char dlopen ();
9207 /* The GNU C library defines this for functions which it implements
9208 to always fail with ENOSYS. Some functions are actually named
9209 something starting with __ and the normal name is an alias. */
9210 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9211 choke me
9212 #else
9213 char (*f) () = dlopen;
9214 #endif
9215 #ifdef __cplusplus
9217 #endif
9220 main ()
9222 return f != dlopen;
9224 return 0;
9226 _ACEOF
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_func_dlopen=yes
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_cv_func_dlopen=no
9256 rm -f conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9259 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9260 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9261 if test $ac_cv_func_dlopen = yes; then
9263 cat >>confdefs.h <<\_ACEOF
9264 #define USE_LIBDL 1
9265 _ACEOF
9267 else
9268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 ac_check_lib_save_LIBS=$LIBS
9274 LIBS="-ldl $LIBS"
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 #ifdef __cplusplus
9284 extern "C"
9285 #endif
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9288 char dlopen ();
9290 main ()
9292 dlopen ();
9294 return 0;
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_lib_dl_dlopen=yes
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 ac_cv_lib_dl_dlopen=no
9326 rm -f conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9330 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9332 if test $ac_cv_lib_dl_dlopen = yes; then
9335 LIBS="-ldl $LIBS"
9338 cat >>confdefs.h <<\_ACEOF
9339 #define USE_LIBDL 1
9340 _ACEOF
9343 else
9344 echo "$as_me:$LINENO: result: libdl library not found." >&5
9345 echo "${ECHO_T}libdl library not found." >&6
9351 else
9352 echo "$as_me:$LINENO: result: libdl headers not found." >&5
9353 echo "${ECHO_T}libdl headers not found." >&6
9361 if test "$LZO" = "yes"; then
9362 LZO_H=""
9363 { echo "$as_me:$LINENO: checking for LZO Library and Header files..." >&5
9364 echo "$as_me: checking for LZO Library and Header files..." >&6;}
9365 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
9366 echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
9367 echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6
9368 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
9372 echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6
9373 else
9374 # Is the header compilable?
9375 echo "$as_me:$LINENO: checking lzo/lzo1x.h usability" >&5
9376 echo $ECHO_N "checking lzo/lzo1x.h usability... $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 $ac_includes_default
9384 #include <lzo/lzo1x.h>
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_header_compiler=yes
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_header_compiler=no
9415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417 echo "${ECHO_T}$ac_header_compiler" >&6
9419 # Is the header present?
9420 echo "$as_me:$LINENO: checking lzo/lzo1x.h presence" >&5
9421 echo $ECHO_N "checking lzo/lzo1x.h presence... $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 #include <lzo/lzo1x.h>
9429 _ACEOF
9430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } >/dev/null; then
9438 if test -s conftest.err; then
9439 ac_cpp_err=$ac_c_preproc_warn_flag
9440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9441 else
9442 ac_cpp_err=
9444 else
9445 ac_cpp_err=yes
9447 if test -z "$ac_cpp_err"; then
9448 ac_header_preproc=yes
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_header_preproc=no
9455 rm -f conftest.err conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9457 echo "${ECHO_T}$ac_header_preproc" >&6
9459 # So? What about this header?
9460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9461 yes:no: )
9462 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
9463 echo "$as_me: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&5
9465 echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&2;}
9466 ac_header_preproc=yes
9468 no:yes:* )
9470 esac
9471 echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
9472 echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6
9473 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 ac_cv_header_lzo_lzo1x_h=$ac_header_preproc
9478 echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
9479 echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6
9482 if test $ac_cv_header_lzo_lzo1x_h = yes; then
9483 LZO_H="2"
9484 lzolibs="lzo2 lzo"
9486 cat >>confdefs.h <<\_ACEOF
9487 #define LZO_HEADER_DIR 1
9488 _ACEOF
9491 else
9492 if test "${ac_cv_header_lzo1x_h+set}" = set; then
9493 echo "$as_me:$LINENO: checking for lzo1x.h" >&5
9494 echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6
9495 if test "${ac_cv_header_lzo1x_h+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
9499 echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6
9500 else
9501 # Is the header compilable?
9502 echo "$as_me:$LINENO: checking lzo1x.h usability" >&5
9503 echo $ECHO_N "checking lzo1x.h usability... $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 $ac_includes_default
9511 #include <lzo1x.h>
9512 _ACEOF
9513 rm -f conftest.$ac_objext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag"
9523 || test ! -s conftest.err'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 (eval $ac_try) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_header_compiler=yes
9536 else
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_header_compiler=no
9542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544 echo "${ECHO_T}$ac_header_compiler" >&6
9546 # Is the header present?
9547 echo "$as_me:$LINENO: checking lzo1x.h presence" >&5
9548 echo $ECHO_N "checking lzo1x.h presence... $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 #include <lzo1x.h>
9556 _ACEOF
9557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } >/dev/null; then
9565 if test -s conftest.err; then
9566 ac_cpp_err=$ac_c_preproc_warn_flag
9567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9568 else
9569 ac_cpp_err=
9571 else
9572 ac_cpp_err=yes
9574 if test -z "$ac_cpp_err"; then
9575 ac_header_preproc=yes
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_header_preproc=no
9582 rm -f conftest.err conftest.$ac_ext
9583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9584 echo "${ECHO_T}$ac_header_preproc" >&6
9586 # So? What about this header?
9587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9588 yes:no: )
9589 { echo "$as_me:$LINENO: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
9590 echo "$as_me: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9591 { echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the compiler's result" >&5
9592 echo "$as_me: WARNING: lzo1x.h: proceeding with the compiler's result" >&2;}
9593 ac_header_preproc=yes
9595 no:yes:* )
9597 esac
9598 echo "$as_me:$LINENO: checking for lzo1x.h" >&5
9599 echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6
9600 if test "${ac_cv_header_lzo1x_h+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603 ac_cv_header_lzo1x_h=$ac_header_preproc
9605 echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
9606 echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6
9609 if test $ac_cv_header_lzo1x_h = yes; then
9610 LZO_H="1" ; lzolibs=lzo
9619 if test -n "$LZO_H"; then
9620 havelzolib=0
9621 for i in $lzolibs ; do
9622 if test $havelzolib = 1 ; then break ; fi
9623 as_ac_Lib=`echo "ac_cv_lib_$i''_lzo1x_1_15_compress" | $as_tr_sh`
9624 echo "$as_me:$LINENO: checking for lzo1x_1_15_compress in -l$i" >&5
9625 echo $ECHO_N "checking for lzo1x_1_15_compress in -l$i... $ECHO_C" >&6
9626 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 ac_check_lib_save_LIBS=$LIBS
9630 LIBS="-l$i $LIBS"
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9638 /* Override any gcc2 internal prototype to avoid an error. */
9639 #ifdef __cplusplus
9640 extern "C"
9641 #endif
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char lzo1x_1_15_compress ();
9646 main ()
9648 lzo1x_1_15_compress ();
9650 return 0;
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655 (eval $ac_link) 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag"
9663 || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 eval "$as_ac_Lib=yes"
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 eval "$as_ac_Lib=no"
9682 rm -f conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
9684 LIBS=$ac_check_lib_save_LIBS
9686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9687 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9688 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9691 LIBS="-l$i $LIBS"
9694 cat >>confdefs.h <<\_ACEOF
9695 #define USE_LZO 1
9696 _ACEOF
9698 havelzolib=1
9703 done
9704 if test $havelzolib = 0 ; then
9705 { { echo "$as_me:$LINENO: error: LZO headers were found but LZO library was not found" >&5
9706 echo "$as_me: error: LZO headers were found but LZO library was not found" >&2;}
9707 { (exit 1); exit 1; }; }
9709 else
9710 echo "$as_me:$LINENO: result: LZO headers were not found" >&5
9711 echo "${ECHO_T}LZO headers were not found" >&6
9712 echo "$as_me:$LINENO: result: LZO library available from http://www.oberhumer.com/opensource/lzo/" >&5
9713 echo "${ECHO_T}LZO library available from http://www.oberhumer.com/opensource/lzo/" >&6
9714 { { echo "$as_me:$LINENO: error: Or try ./configure --disable-lzo" >&5
9715 echo "$as_me: error: Or try ./configure --disable-lzo" >&2;}
9716 { (exit 1); exit 1; }; }
9721 if test "$CRYPTO" = "yes"; then
9722 { echo "$as_me:$LINENO: checking for OpenSSL Crypto Library and Header files..." >&5
9723 echo "$as_me: checking for OpenSSL Crypto Library and Header files..." >&6;}
9724 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9725 echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9726 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
9727 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9731 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
9732 else
9733 # Is the header compilable?
9734 echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
9735 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9743 #include <openssl/evp.h>
9744 _ACEOF
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_header_compiler=yes
9768 else
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_header_compiler=no
9774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9776 echo "${ECHO_T}$ac_header_compiler" >&6
9778 # Is the header present?
9779 echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
9780 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 #include <openssl/evp.h>
9788 _ACEOF
9789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev/null; then
9797 if test -s conftest.err; then
9798 ac_cpp_err=$ac_c_preproc_warn_flag
9799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9800 else
9801 ac_cpp_err=
9803 else
9804 ac_cpp_err=yes
9806 if test -z "$ac_cpp_err"; then
9807 ac_header_preproc=yes
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_header_preproc=no
9814 rm -f conftest.err conftest.$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9816 echo "${ECHO_T}$ac_header_preproc" >&6
9818 # So? What about this header?
9819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9820 yes:no: )
9821 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9822 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
9824 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
9825 ac_header_preproc=yes
9827 no:yes:* )
9829 esac
9830 echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9831 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
9832 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 ac_cv_header_openssl_evp_h=$ac_header_preproc
9837 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9838 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
9841 if test $ac_cv_header_openssl_evp_h = yes; then
9842 echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_init in -lcrypto" >&5
9843 echo $ECHO_N "checking for EVP_CIPHER_CTX_init in -lcrypto... $ECHO_C" >&6
9844 if test "${ac_cv_lib_crypto_EVP_CIPHER_CTX_init+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 ac_check_lib_save_LIBS=$LIBS
9848 LIBS="-lcrypto $LIBS"
9849 cat >conftest.$ac_ext <<_ACEOF
9850 /* confdefs.h. */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9856 /* Override any gcc2 internal prototype to avoid an error. */
9857 #ifdef __cplusplus
9858 extern "C"
9859 #endif
9860 /* We use char because int might match the return type of a gcc2
9861 builtin and then its argument prototype would still apply. */
9862 char EVP_CIPHER_CTX_init ();
9864 main ()
9866 EVP_CIPHER_CTX_init ();
9868 return 0;
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873 (eval $ac_link) 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag"
9881 || test ! -s conftest.err'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_lib_crypto_EVP_CIPHER_CTX_init=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_cv_lib_crypto_EVP_CIPHER_CTX_init=no
9900 rm -f conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9904 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&5
9905 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&6
9906 if test $ac_cv_lib_crypto_EVP_CIPHER_CTX_init = yes; then
9908 { echo "$as_me:$LINENO: checking that OpenSSL Library is at least version 0.9.6..." >&5
9909 echo "$as_me: checking that OpenSSL Library is at least version 0.9.6..." >&6;}
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 #include "openssl/evp.h"
9918 #if SSLEAY_VERSION_NUMBER >= 0x00906000L
9920 #endif
9922 _ACEOF
9923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9924 $EGREP "yes" >/dev/null 2>&1; then
9927 cat >>confdefs.h <<\_ACEOF
9928 #define USE_CRYPTO 1
9929 _ACEOF
9932 LIBS="-lcrypto $LIBS"
9935 for ac_func in EVP_CIPHER_CTX_set_key_length
9937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938 echo "$as_me:$LINENO: checking for $ac_func" >&5
9939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940 if eval "test \"\${$as_ac_var+set}\" = set"; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9951 #define $ac_func innocuous_$ac_func
9953 /* System header to define __stub macros and hopefully few prototypes,
9954 which can conflict with char $ac_func (); below.
9955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9956 <limits.h> exists even on freestanding compilers. */
9958 #ifdef __STDC__
9959 # include <limits.h>
9960 #else
9961 # include <assert.h>
9962 #endif
9964 #undef $ac_func
9966 /* Override any gcc2 internal prototype to avoid an error. */
9967 #ifdef __cplusplus
9968 extern "C"
9970 #endif
9971 /* We use char because int might match the return type of a gcc2
9972 builtin and then its argument prototype would still apply. */
9973 char $ac_func ();
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9978 choke me
9979 #else
9980 char (*f) () = $ac_func;
9981 #endif
9982 #ifdef __cplusplus
9984 #endif
9987 main ()
9989 return f != $ac_func;
9991 return 0;
9993 _ACEOF
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest$ac_exeext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 eval "$as_ac_var=yes"
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 eval "$as_ac_var=no"
10023 rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10028 if test `eval echo '${'$as_ac_var'}'` = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10031 _ACEOF
10034 done
10038 for ac_header in openssl/engine.h
10040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10042 echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10049 else
10050 # Is the header compilable?
10051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h. */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 $ac_includes_default
10060 #include <$ac_header>
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_header_compiler=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_header_compiler=no
10091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093 echo "${ECHO_T}$ac_header_compiler" >&6
10095 # Is the header present?
10096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 #include <$ac_header>
10105 _ACEOF
10106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } >/dev/null; then
10114 if test -s conftest.err; then
10115 ac_cpp_err=$ac_c_preproc_warn_flag
10116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10117 else
10118 ac_cpp_err=
10120 else
10121 ac_cpp_err=yes
10123 if test -z "$ac_cpp_err"; then
10124 ac_header_preproc=yes
10125 else
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 ac_header_preproc=no
10131 rm -f conftest.err conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10137 yes:no: )
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10142 ac_header_preproc=yes
10144 no:yes:* )
10146 esac
10147 echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 eval "$as_ac_Header=\$ac_header_preproc"
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10159 cat >>confdefs.h <<_ACEOF
10160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10161 _ACEOF
10165 done
10168 for ac_func in ENGINE_load_builtin_engines
10170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10171 echo "$as_me:$LINENO: checking for $ac_func" >&5
10172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10173 if eval "test \"\${$as_ac_var+set}\" = set"; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h. */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10184 #define $ac_func innocuous_$ac_func
10186 /* System header to define __stub macros and hopefully few prototypes,
10187 which can conflict with char $ac_func (); below.
10188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10189 <limits.h> exists even on freestanding compilers. */
10191 #ifdef __STDC__
10192 # include <limits.h>
10193 #else
10194 # include <assert.h>
10195 #endif
10197 #undef $ac_func
10199 /* Override any gcc2 internal prototype to avoid an error. */
10200 #ifdef __cplusplus
10201 extern "C"
10203 #endif
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10206 char $ac_func ();
10207 /* The GNU C library defines this for functions which it implements
10208 to always fail with ENOSYS. Some functions are actually named
10209 something starting with __ and the normal name is an alias. */
10210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211 choke me
10212 #else
10213 char (*f) () = $ac_func;
10214 #endif
10215 #ifdef __cplusplus
10217 #endif
10220 main ()
10222 return f != $ac_func;
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 eval "$as_ac_var=yes"
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 eval "$as_ac_var=no"
10256 rm -f conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10261 if test `eval echo '${'$as_ac_var'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10264 _ACEOF
10267 done
10270 for ac_func in ENGINE_register_all_complete
10272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10273 echo "$as_me:$LINENO: checking for $ac_func" >&5
10274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10275 if eval "test \"\${$as_ac_var+set}\" = set"; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278 cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h. */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10286 #define $ac_func innocuous_$ac_func
10288 /* System header to define __stub macros and hopefully few prototypes,
10289 which can conflict with char $ac_func (); below.
10290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10291 <limits.h> exists even on freestanding compilers. */
10293 #ifdef __STDC__
10294 # include <limits.h>
10295 #else
10296 # include <assert.h>
10297 #endif
10299 #undef $ac_func
10301 /* Override any gcc2 internal prototype to avoid an error. */
10302 #ifdef __cplusplus
10303 extern "C"
10305 #endif
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308 char $ac_func ();
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10313 choke me
10314 #else
10315 char (*f) () = $ac_func;
10316 #endif
10317 #ifdef __cplusplus
10319 #endif
10322 main ()
10324 return f != $ac_func;
10326 return 0;
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag"
10339 || test ! -s conftest.err'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 eval "$as_ac_var=yes"
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 eval "$as_ac_var=no"
10358 rm -f conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10363 if test `eval echo '${'$as_ac_var'}'` = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10366 _ACEOF
10369 done
10372 for ac_func in ENGINE_cleanup
10374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_var+set}\" = set"; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h. */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10388 #define $ac_func innocuous_$ac_func
10390 /* System header to define __stub macros and hopefully few prototypes,
10391 which can conflict with char $ac_func (); below.
10392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393 <limits.h> exists even on freestanding compilers. */
10395 #ifdef __STDC__
10396 # include <limits.h>
10397 #else
10398 # include <assert.h>
10399 #endif
10401 #undef $ac_func
10403 /* Override any gcc2 internal prototype to avoid an error. */
10404 #ifdef __cplusplus
10405 extern "C"
10407 #endif
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10410 char $ac_func ();
10411 /* The GNU C library defines this for functions which it implements
10412 to always fail with ENOSYS. Some functions are actually named
10413 something starting with __ and the normal name is an alias. */
10414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10415 choke me
10416 #else
10417 char (*f) () = $ac_func;
10418 #endif
10419 #ifdef __cplusplus
10421 #endif
10424 main ()
10426 return f != $ac_func;
10428 return 0;
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag"
10441 || test ! -s conftest.err'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10454 else
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 eval "$as_ac_var=no"
10460 rm -f conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10465 if test `eval echo '${'$as_ac_var'}'` = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468 _ACEOF
10471 done
10474 else
10475 { { echo "$as_me:$LINENO: error: OpenSSL crypto Library is too old." >&5
10476 echo "$as_me: error: OpenSSL crypto Library is too old." >&2;}
10477 { (exit 1); exit 1; }; }
10480 rm -f conftest*
10483 else
10484 { { echo "$as_me:$LINENO: error: OpenSSL Crypto library not found." >&5
10485 echo "$as_me: error: OpenSSL Crypto library not found." >&2;}
10486 { (exit 1); exit 1; }; }
10490 else
10491 { { echo "$as_me:$LINENO: error: OpenSSL Crypto headers not found." >&5
10492 echo "$as_me: error: OpenSSL Crypto headers not found." >&2;}
10493 { (exit 1); exit 1; }; }
10500 if test "$SSL" = "yes"; then
10501 { echo "$as_me:$LINENO: checking for OpenSSL SSL Library and Header files..." >&5
10502 echo "$as_me: checking for OpenSSL SSL Library and Header files..." >&6;}
10503 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10504 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10505 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10506 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10510 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10511 else
10512 # Is the header compilable?
10513 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10514 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10515 cat >conftest.$ac_ext <<_ACEOF
10516 /* confdefs.h. */
10517 _ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10521 $ac_includes_default
10522 #include <openssl/ssl.h>
10523 _ACEOF
10524 rm -f conftest.$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try='test -z "$ac_c_werror_flag"
10534 || test ! -s conftest.err'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try='test -s conftest.$ac_objext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_header_compiler=yes
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10551 ac_header_compiler=no
10553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555 echo "${ECHO_T}$ac_header_compiler" >&6
10557 # Is the header present?
10558 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10559 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <openssl/ssl.h>
10567 _ACEOF
10568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } >/dev/null; then
10576 if test -s conftest.err; then
10577 ac_cpp_err=$ac_c_preproc_warn_flag
10578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10579 else
10580 ac_cpp_err=
10582 else
10583 ac_cpp_err=yes
10585 if test -z "$ac_cpp_err"; then
10586 ac_header_preproc=yes
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ac_header_preproc=no
10593 rm -f conftest.err conftest.$ac_ext
10594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10595 echo "${ECHO_T}$ac_header_preproc" >&6
10597 # So? What about this header?
10598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10599 yes:no: )
10600 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10601 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10603 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10604 ac_header_preproc=yes
10606 no:yes:* )
10608 esac
10609 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10610 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10611 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10616 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10617 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10620 if test $ac_cv_header_openssl_ssl_h = yes; then
10621 echo "$as_me:$LINENO: checking for SSL_CTX_new in -lssl" >&5
10622 echo $ECHO_N "checking for SSL_CTX_new in -lssl... $ECHO_C" >&6
10623 if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 ac_check_lib_save_LIBS=$LIBS
10627 LIBS="-lssl $LIBS"
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10635 /* Override any gcc2 internal prototype to avoid an error. */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10641 char SSL_CTX_new ();
10643 main ()
10645 SSL_CTX_new ();
10647 return 0;
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_lib_ssl_SSL_CTX_new=yes
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 ac_cv_lib_ssl_SSL_CTX_new=no
10679 rm -f conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_lib_save_LIBS
10683 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
10684 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_CTX_new" >&6
10685 if test $ac_cv_lib_ssl_SSL_CTX_new = yes; then
10687 if test "$MEMCHECK" = "ssl"; then
10688 { echo "$as_me:$LINENO: checking for Memory Debugging Capabilities in OpenSSL Library..." >&5
10689 echo "$as_me: checking for Memory Debugging Capabilities in OpenSSL Library..." >&6;}
10690 echo "$as_me:$LINENO: checking for CRYPTO_mem_ctrl in -lssl" >&5
10691 echo $ECHO_N "checking for CRYPTO_mem_ctrl in -lssl... $ECHO_C" >&6
10692 if test "${ac_cv_lib_ssl_CRYPTO_mem_ctrl+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695 ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-lssl $LIBS"
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10704 /* Override any gcc2 internal prototype to avoid an error. */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 /* We use char because int might match the return type of a gcc2
10709 builtin and then its argument prototype would still apply. */
10710 char CRYPTO_mem_ctrl ();
10712 main ()
10714 CRYPTO_mem_ctrl ();
10716 return 0;
10718 _ACEOF
10719 rm -f conftest.$ac_objext conftest$ac_exeext
10720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721 (eval $ac_link) 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try='test -s conftest$ac_exeext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
10742 else
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
10748 rm -f conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10752 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
10753 echo "${ECHO_T}$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6
10754 if test $ac_cv_lib_ssl_CRYPTO_mem_ctrl = yes; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define CRYPTO_MDEBUG 1
10759 _ACEOF
10761 echo "$as_me:$LINENO: result: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
10762 echo "${ECHO_T}NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6
10764 else
10765 { { echo "$as_me:$LINENO: error: Memory Debugging function in OpenSSL library not found." >&5
10766 echo "$as_me: error: Memory Debugging function in OpenSSL library not found." >&2;}
10767 { (exit 1); exit 1; }; }
10773 else
10774 { { echo "$as_me:$LINENO: error: OpenSSL SSL library not found." >&5
10775 echo "$as_me: error: OpenSSL SSL library not found." >&2;}
10776 { (exit 1); exit 1; }; }
10780 else
10781 { { echo "$as_me:$LINENO: error: OpenSSL SSL headers not found." >&5
10782 echo "$as_me: error: OpenSSL SSL headers not found." >&2;}
10783 { (exit 1); exit 1; }; }
10789 cat >>confdefs.h <<\_ACEOF
10790 #define USE_SSL 1
10791 _ACEOF
10794 LIBS="-lssl $LIBS"
10799 if test "$MULTI" = "yes"; then
10801 cat >>confdefs.h <<\_ACEOF
10802 #define ENABLE_CLIENT_SERVER 1
10803 _ACEOF
10807 if test "$MULTI_SERVER" = "no"; then
10809 cat >>confdefs.h <<\_ACEOF
10810 #define ENABLE_CLIENT_ONLY 1
10811 _ACEOF
10815 if test "$MANAGEMENT" = "yes"; then
10817 cat >>confdefs.h <<\_ACEOF
10818 #define ENABLE_MANAGEMENT 1
10819 _ACEOF
10823 if test "$SOCKS" = "yes"; then
10825 cat >>confdefs.h <<\_ACEOF
10826 #define ENABLE_SOCKS 1
10827 _ACEOF
10831 if test "$HTTP_PROXY" = "yes"; then
10833 cat >>confdefs.h <<\_ACEOF
10834 #define ENABLE_HTTP_PROXY 1
10835 _ACEOF
10839 if test "$DEBUG" = "yes"; then
10841 cat >>confdefs.h <<\_ACEOF
10842 #define ENABLE_DEBUG 1
10843 _ACEOF
10847 if test "$SMALL" = "yes"; then
10849 cat >>confdefs.h <<\_ACEOF
10850 #define ENABLE_SMALL 1
10851 _ACEOF
10855 if test "$FRAGMENT" = "yes"; then
10857 cat >>confdefs.h <<\_ACEOF
10858 #define ENABLE_FRAGMENT 1
10859 _ACEOF
10863 if test "$STRICT" = "yes"; then
10864 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function"
10867 if test "$PEDANTIC" = "yes"; then
10868 CFLAGS="$CFLAGS -ansi -pedantic"
10871 if test "$PROFILE" = "yes"; then
10872 CFLAGS="$CFLAGS -pg -DENABLE_PROFILING"
10875 if test "$STRICT_OPTIONS" = "yes"; then
10877 cat >>confdefs.h <<\_ACEOF
10878 #define STRICT_OPTIONS_CHECK 1
10879 _ACEOF
10883 if test "$PASSWORD_SAVE" = "yes"; then
10885 cat >>confdefs.h <<\_ACEOF
10886 #define ENABLE_PASSWORD_SAVE 1
10887 _ACEOF
10891 ac_config_files="$ac_config_files Makefile openvpn.spec config-win32.h install-win32/openvpn.nsi"
10892 cat >confcache <<\_ACEOF
10893 # This file is a shell script that caches the results of configure
10894 # tests run on this system so they can be shared between configure
10895 # scripts and configure runs, see configure's option --config-cache.
10896 # It is not useful on other systems. If it contains results you don't
10897 # want to keep, you may remove or edit it.
10899 # config.status only pays attention to the cache file if you give it
10900 # the --recheck option to rerun configure.
10902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10904 # following values.
10906 _ACEOF
10908 # The following way of writing the cache mishandles newlines in values,
10909 # but we know of no workaround that is simple, portable, and efficient.
10910 # So, don't put newlines in cache variables' values.
10911 # Ultrix sh set writes to stderr and can't be redirected directly,
10912 # and sets the high bit in the cache file unless we assign to the vars.
10914 (set) 2>&1 |
10915 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10916 *ac_space=\ *)
10917 # `set' does not quote correctly, so add quotes (double-quote
10918 # substitution turns \\\\ into \\, and sed turns \\ into \).
10919 sed -n \
10920 "s/'/'\\\\''/g;
10921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10924 # `set' quotes correctly as required by POSIX, so do not add quotes.
10925 sed -n \
10926 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10928 esac;
10930 sed '
10931 t clear
10932 : clear
10933 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10934 t end
10935 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10936 : end' >>confcache
10937 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10938 if test -w $cache_file; then
10939 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10940 cat confcache >$cache_file
10941 else
10942 echo "not updating unwritable cache $cache_file"
10945 rm -f confcache
10947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10948 # Let make expand exec_prefix.
10949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10953 # trailing colons and then remove the whole line if VPATH becomes empty
10954 # (actually we leave an empty line to preserve line numbers).
10955 if test "x$srcdir" = x.; then
10956 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10957 s/:*\$(srcdir):*/:/;
10958 s/:*\${srcdir}:*/:/;
10959 s/:*@srcdir@:*/:/;
10960 s/^\([^=]*=[ ]*\):*/\1/;
10961 s/:*$//;
10962 s/^[^=]*=[ ]*$//;
10966 DEFS=-DHAVE_CONFIG_H
10968 ac_libobjs=
10969 ac_ltlibobjs=
10970 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10971 # 1. Remove the extension, and $U if already installed.
10972 ac_i=`echo "$ac_i" |
10973 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10974 # 2. Add them.
10975 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10976 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10977 done
10978 LIBOBJS=$ac_libobjs
10980 LTLIBOBJS=$ac_ltlibobjs
10983 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10984 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10985 Usually this means the macro was only invoked conditionally." >&5
10986 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10987 Usually this means the macro was only invoked conditionally." >&2;}
10988 { (exit 1); exit 1; }; }
10990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10991 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10992 Usually this means the macro was only invoked conditionally." >&5
10993 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10994 Usually this means the macro was only invoked conditionally." >&2;}
10995 { (exit 1); exit 1; }; }
10998 : ${CONFIG_STATUS=./config.status}
10999 ac_clean_files_save=$ac_clean_files
11000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11001 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11002 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11003 cat >$CONFIG_STATUS <<_ACEOF
11004 #! $SHELL
11005 # Generated by $as_me.
11006 # Run this file to recreate the current configuration.
11007 # Compiler output produced by configure, useful for debugging
11008 # configure, is in config.log if it exists.
11010 debug=false
11011 ac_cs_recheck=false
11012 ac_cs_silent=false
11013 SHELL=\${CONFIG_SHELL-$SHELL}
11014 _ACEOF
11016 cat >>$CONFIG_STATUS <<\_ACEOF
11017 ## --------------------- ##
11018 ## M4sh Initialization. ##
11019 ## --------------------- ##
11021 # Be Bourne compatible
11022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11023 emulate sh
11024 NULLCMD=:
11025 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11026 # is contrary to our usage. Disable this feature.
11027 alias -g '${1+"$@"}'='"$@"'
11028 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11029 set -o posix
11031 DUALCASE=1; export DUALCASE # for MKS sh
11033 # Support unset when possible.
11034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11035 as_unset=unset
11036 else
11037 as_unset=false
11041 # Work around bugs in pre-3.0 UWIN ksh.
11042 $as_unset ENV MAIL MAILPATH
11043 PS1='$ '
11044 PS2='> '
11045 PS4='+ '
11047 # NLS nuisances.
11048 for as_var in \
11049 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11050 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11051 LC_TELEPHONE LC_TIME
11053 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11054 eval $as_var=C; export $as_var
11055 else
11056 $as_unset $as_var
11058 done
11060 # Required to use basename.
11061 if expr a : '\(a\)' >/dev/null 2>&1; then
11062 as_expr=expr
11063 else
11064 as_expr=false
11067 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11068 as_basename=basename
11069 else
11070 as_basename=false
11074 # Name of the executable.
11075 as_me=`$as_basename "$0" ||
11076 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11077 X"$0" : 'X\(//\)$' \| \
11078 X"$0" : 'X\(/\)$' \| \
11079 . : '\(.\)' 2>/dev/null ||
11080 echo X/"$0" |
11081 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11082 /^X\/\(\/\/\)$/{ s//\1/; q; }
11083 /^X\/\(\/\).*/{ s//\1/; q; }
11084 s/.*/./; q'`
11087 # PATH needs CR, and LINENO needs CR and PATH.
11088 # Avoid depending upon Character Ranges.
11089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11092 as_cr_digits='0123456789'
11093 as_cr_alnum=$as_cr_Letters$as_cr_digits
11095 # The user is always right.
11096 if test "${PATH_SEPARATOR+set}" != set; then
11097 echo "#! /bin/sh" >conf$$.sh
11098 echo "exit 0" >>conf$$.sh
11099 chmod +x conf$$.sh
11100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11101 PATH_SEPARATOR=';'
11102 else
11103 PATH_SEPARATOR=:
11105 rm -f conf$$.sh
11109 as_lineno_1=$LINENO
11110 as_lineno_2=$LINENO
11111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11112 test "x$as_lineno_1" != "x$as_lineno_2" &&
11113 test "x$as_lineno_3" = "x$as_lineno_2" || {
11114 # Find who we are. Look in the path if we contain no path at all
11115 # relative or not.
11116 case $0 in
11117 *[\\/]* ) as_myself=$0 ;;
11118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11121 IFS=$as_save_IFS
11122 test -z "$as_dir" && as_dir=.
11123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11124 done
11127 esac
11128 # We did not find ourselves, most probably we were run as `sh COMMAND'
11129 # in which case we are not to be found in the path.
11130 if test "x$as_myself" = x; then
11131 as_myself=$0
11133 if test ! -f "$as_myself"; then
11134 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11135 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11136 { (exit 1); exit 1; }; }
11138 case $CONFIG_SHELL in
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for as_base in sh bash ksh sh5; do
11146 case $as_dir in
11148 if ("$as_dir/$as_base" -c '
11149 as_lineno_1=$LINENO
11150 as_lineno_2=$LINENO
11151 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11152 test "x$as_lineno_1" != "x$as_lineno_2" &&
11153 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11154 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11155 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11156 CONFIG_SHELL=$as_dir/$as_base
11157 export CONFIG_SHELL
11158 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11159 fi;;
11160 esac
11161 done
11162 done
11164 esac
11166 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11167 # uniformly replaced by the line number. The first 'sed' inserts a
11168 # line-number line before each line; the second 'sed' does the real
11169 # work. The second script uses 'N' to pair each line-number line
11170 # with the numbered line, and appends trailing '-' during
11171 # substitution so that $LINENO is not a special case at line end.
11172 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11173 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11174 sed '=' <$as_myself |
11175 sed '
11177 s,$,-,
11178 : loop
11179 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11180 t loop
11181 s,-$,,
11182 s,^['$as_cr_digits']*\n,,
11183 ' >$as_me.lineno &&
11184 chmod +x $as_me.lineno ||
11185 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11186 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11187 { (exit 1); exit 1; }; }
11189 # Don't try to exec as it changes $[0], causing all sort of problems
11190 # (the dirname of $[0] is not the place where we might find the
11191 # original and so on. Autoconf is especially sensible to this).
11192 . ./$as_me.lineno
11193 # Exit status is that of the last command.
11194 exit
11198 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11199 *c*,-n*) ECHO_N= ECHO_C='
11200 ' ECHO_T=' ' ;;
11201 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11202 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11203 esac
11205 if expr a : '\(a\)' >/dev/null 2>&1; then
11206 as_expr=expr
11207 else
11208 as_expr=false
11211 rm -f conf$$ conf$$.exe conf$$.file
11212 echo >conf$$.file
11213 if ln -s conf$$.file conf$$ 2>/dev/null; then
11214 # We could just check for DJGPP; but this test a) works b) is more generic
11215 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11216 if test -f conf$$.exe; then
11217 # Don't use ln at all; we don't have any links
11218 as_ln_s='cp -p'
11219 else
11220 as_ln_s='ln -s'
11222 elif ln conf$$.file conf$$ 2>/dev/null; then
11223 as_ln_s=ln
11224 else
11225 as_ln_s='cp -p'
11227 rm -f conf$$ conf$$.exe conf$$.file
11229 if mkdir -p . 2>/dev/null; then
11230 as_mkdir_p=:
11231 else
11232 test -d ./-p && rmdir ./-p
11233 as_mkdir_p=false
11236 as_executable_p="test -f"
11238 # Sed expression to map a string onto a valid CPP name.
11239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11241 # Sed expression to map a string onto a valid variable name.
11242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11245 # IFS
11246 # We need space, tab and new line, in precisely that order.
11247 as_nl='
11249 IFS=" $as_nl"
11251 # CDPATH.
11252 $as_unset CDPATH
11254 exec 6>&1
11256 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11257 # report actual input values of CONFIG_FILES etc. instead of their
11258 # values after options handling. Logging --version etc. is OK.
11259 exec 5>>config.log
11261 echo
11262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11263 ## Running $as_me. ##
11264 _ASBOX
11265 } >&5
11266 cat >&5 <<_CSEOF
11268 This file was extended by OpenVPN $as_me 2.0.9, which was
11269 generated by GNU Autoconf 2.59. Invocation command line was
11271 CONFIG_FILES = $CONFIG_FILES
11272 CONFIG_HEADERS = $CONFIG_HEADERS
11273 CONFIG_LINKS = $CONFIG_LINKS
11274 CONFIG_COMMANDS = $CONFIG_COMMANDS
11275 $ $0 $@
11277 _CSEOF
11278 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11279 echo >&5
11280 _ACEOF
11282 # Files that config.status was made for.
11283 if test -n "$ac_config_files"; then
11284 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11287 if test -n "$ac_config_headers"; then
11288 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11291 if test -n "$ac_config_links"; then
11292 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11295 if test -n "$ac_config_commands"; then
11296 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11299 cat >>$CONFIG_STATUS <<\_ACEOF
11301 ac_cs_usage="\
11302 \`$as_me' instantiates files from templates according to the
11303 current configuration.
11305 Usage: $0 [OPTIONS] [FILE]...
11307 -h, --help print this help, then exit
11308 -V, --version print version number, then exit
11309 -q, --quiet do not print progress messages
11310 -d, --debug don't remove temporary files
11311 --recheck update $as_me by reconfiguring in the same conditions
11312 --file=FILE[:TEMPLATE]
11313 instantiate the configuration file FILE
11314 --header=FILE[:TEMPLATE]
11315 instantiate the configuration header FILE
11317 Configuration files:
11318 $config_files
11320 Configuration headers:
11321 $config_headers
11323 Configuration commands:
11324 $config_commands
11326 Report bugs to <bug-autoconf@gnu.org>."
11327 _ACEOF
11329 cat >>$CONFIG_STATUS <<_ACEOF
11330 ac_cs_version="\\
11331 OpenVPN config.status 2.0.9
11332 configured by $0, generated by GNU Autoconf 2.59,
11333 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11335 Copyright (C) 2003 Free Software Foundation, Inc.
11336 This config.status script is free software; the Free Software Foundation
11337 gives unlimited permission to copy, distribute and modify it."
11338 srcdir=$srcdir
11339 INSTALL="$INSTALL"
11340 _ACEOF
11342 cat >>$CONFIG_STATUS <<\_ACEOF
11343 # If no file are specified by the user, then we need to provide default
11344 # value. By we need to know if files were specified by the user.
11345 ac_need_defaults=:
11346 while test $# != 0
11348 case $1 in
11349 --*=*)
11350 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11351 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11352 ac_shift=:
11355 ac_option=$1
11356 ac_optarg=$2
11357 ac_shift=shift
11359 *) # This is not an option, so the user has probably given explicit
11360 # arguments.
11361 ac_option=$1
11362 ac_need_defaults=false;;
11363 esac
11365 case $ac_option in
11366 # Handling of the options.
11367 _ACEOF
11368 cat >>$CONFIG_STATUS <<\_ACEOF
11369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11370 ac_cs_recheck=: ;;
11371 --version | --vers* | -V )
11372 echo "$ac_cs_version"; exit 0 ;;
11373 --he | --h)
11374 # Conflict between --help and --header
11375 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11376 Try \`$0 --help' for more information." >&5
11377 echo "$as_me: error: ambiguous option: $1
11378 Try \`$0 --help' for more information." >&2;}
11379 { (exit 1); exit 1; }; };;
11380 --help | --hel | -h )
11381 echo "$ac_cs_usage"; exit 0 ;;
11382 --debug | --d* | -d )
11383 debug=: ;;
11384 --file | --fil | --fi | --f )
11385 $ac_shift
11386 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11387 ac_need_defaults=false;;
11388 --header | --heade | --head | --hea )
11389 $ac_shift
11390 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11391 ac_need_defaults=false;;
11392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11394 ac_cs_silent=: ;;
11396 # This is an error.
11397 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11398 Try \`$0 --help' for more information." >&5
11399 echo "$as_me: error: unrecognized option: $1
11400 Try \`$0 --help' for more information." >&2;}
11401 { (exit 1); exit 1; }; } ;;
11403 *) ac_config_targets="$ac_config_targets $1" ;;
11405 esac
11406 shift
11407 done
11409 ac_configure_extra_args=
11411 if $ac_cs_silent; then
11412 exec 6>/dev/null
11413 ac_configure_extra_args="$ac_configure_extra_args --silent"
11416 _ACEOF
11417 cat >>$CONFIG_STATUS <<_ACEOF
11418 if \$ac_cs_recheck; then
11419 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11420 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11423 _ACEOF
11425 cat >>$CONFIG_STATUS <<_ACEOF
11427 # INIT-COMMANDS section.
11430 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11432 _ACEOF
11436 cat >>$CONFIG_STATUS <<\_ACEOF
11437 for ac_config_target in $ac_config_targets
11439 case "$ac_config_target" in
11440 # Handling of arguments.
11441 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11442 "openvpn.spec" ) CONFIG_FILES="$CONFIG_FILES openvpn.spec" ;;
11443 "config-win32.h" ) CONFIG_FILES="$CONFIG_FILES config-win32.h" ;;
11444 "install-win32/openvpn.nsi" ) CONFIG_FILES="$CONFIG_FILES install-win32/openvpn.nsi" ;;
11445 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11446 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11448 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11449 { (exit 1); exit 1; }; };;
11450 esac
11451 done
11453 # If the user did not use the arguments to specify the items to instantiate,
11454 # then the envvar interface is used. Set only those that are not.
11455 # We use the long form for the default assignment because of an extremely
11456 # bizarre bug on SunOS 4.1.3.
11457 if $ac_need_defaults; then
11458 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11459 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11460 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11463 # Have a temporary directory for convenience. Make it in the build tree
11464 # simply because there is no reason to put it here, and in addition,
11465 # creating and moving files from /tmp can sometimes cause problems.
11466 # Create a temporary directory, and hook for its removal unless debugging.
11467 $debug ||
11469 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11470 trap '{ (exit 1); exit 1; }' 1 2 13 15
11473 # Create a (secure) tmp directory for tmp files.
11476 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11477 test -n "$tmp" && test -d "$tmp"
11478 } ||
11480 tmp=./confstat$$-$RANDOM
11481 (umask 077 && mkdir $tmp)
11482 } ||
11484 echo "$me: cannot create a temporary directory in ." >&2
11485 { (exit 1); exit 1; }
11488 _ACEOF
11490 cat >>$CONFIG_STATUS <<_ACEOF
11493 # CONFIG_FILES section.
11496 # No need to generate the scripts if there are no CONFIG_FILES.
11497 # This happens for instance when ./config.status config.h
11498 if test -n "\$CONFIG_FILES"; then
11499 # Protect against being on the right side of a sed subst in config.status.
11500 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11501 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11502 s,@SHELL@,$SHELL,;t t
11503 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11504 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11505 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11506 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11507 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11508 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11509 s,@exec_prefix@,$exec_prefix,;t t
11510 s,@prefix@,$prefix,;t t
11511 s,@program_transform_name@,$program_transform_name,;t t
11512 s,@bindir@,$bindir,;t t
11513 s,@sbindir@,$sbindir,;t t
11514 s,@libexecdir@,$libexecdir,;t t
11515 s,@datadir@,$datadir,;t t
11516 s,@sysconfdir@,$sysconfdir,;t t
11517 s,@sharedstatedir@,$sharedstatedir,;t t
11518 s,@localstatedir@,$localstatedir,;t t
11519 s,@libdir@,$libdir,;t t
11520 s,@includedir@,$includedir,;t t
11521 s,@oldincludedir@,$oldincludedir,;t t
11522 s,@infodir@,$infodir,;t t
11523 s,@mandir@,$mandir,;t t
11524 s,@build_alias@,$build_alias,;t t
11525 s,@host_alias@,$host_alias,;t t
11526 s,@target_alias@,$target_alias,;t t
11527 s,@DEFS@,$DEFS,;t t
11528 s,@ECHO_C@,$ECHO_C,;t t
11529 s,@ECHO_N@,$ECHO_N,;t t
11530 s,@ECHO_T@,$ECHO_T,;t t
11531 s,@LIBS@,$LIBS,;t t
11532 s,@IFCONFIG@,$IFCONFIG,;t t
11533 s,@IPROUTE@,$IPROUTE,;t t
11534 s,@ROUTE@,$ROUTE,;t t
11535 s,@build@,$build,;t t
11536 s,@build_cpu@,$build_cpu,;t t
11537 s,@build_vendor@,$build_vendor,;t t
11538 s,@build_os@,$build_os,;t t
11539 s,@host@,$host,;t t
11540 s,@host_cpu@,$host_cpu,;t t
11541 s,@host_vendor@,$host_vendor,;t t
11542 s,@host_os@,$host_os,;t t
11543 s,@target@,$target,;t t
11544 s,@target_cpu@,$target_cpu,;t t
11545 s,@target_vendor@,$target_vendor,;t t
11546 s,@target_os@,$target_os,;t t
11547 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11548 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11549 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11550 s,@CYGPATH_W@,$CYGPATH_W,;t t
11551 s,@PACKAGE@,$PACKAGE,;t t
11552 s,@VERSION@,$VERSION,;t t
11553 s,@ACLOCAL@,$ACLOCAL,;t t
11554 s,@AUTOCONF@,$AUTOCONF,;t t
11555 s,@AUTOMAKE@,$AUTOMAKE,;t t
11556 s,@AUTOHEADER@,$AUTOHEADER,;t t
11557 s,@MAKEINFO@,$MAKEINFO,;t t
11558 s,@AMTAR@,$AMTAR,;t t
11559 s,@install_sh@,$install_sh,;t t
11560 s,@STRIP@,$STRIP,;t t
11561 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11562 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11563 s,@mkdir_p@,$mkdir_p,;t t
11564 s,@AWK@,$AWK,;t t
11565 s,@SET_MAKE@,$SET_MAKE,;t t
11566 s,@am__leading_dot@,$am__leading_dot,;t t
11567 s,@CC@,$CC,;t t
11568 s,@CFLAGS@,$CFLAGS,;t t
11569 s,@LDFLAGS@,$LDFLAGS,;t t
11570 s,@CPPFLAGS@,$CPPFLAGS,;t t
11571 s,@ac_ct_CC@,$ac_ct_CC,;t t
11572 s,@EXEEXT@,$EXEEXT,;t t
11573 s,@OBJEXT@,$OBJEXT,;t t
11574 s,@DEPDIR@,$DEPDIR,;t t
11575 s,@am__include@,$am__include,;t t
11576 s,@am__quote@,$am__quote,;t t
11577 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11578 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11579 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11580 s,@CCDEPMODE@,$CCDEPMODE,;t t
11581 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11582 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11583 s,@CPP@,$CPP,;t t
11584 s,@EGREP@,$EGREP,;t t
11585 s,@LIBOBJS@,$LIBOBJS,;t t
11586 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
11587 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
11588 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
11589 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11590 CEOF
11592 _ACEOF
11594 cat >>$CONFIG_STATUS <<\_ACEOF
11595 # Split the substitutions into bite-sized pieces for seds with
11596 # small command number limits, like on Digital OSF/1 and HP-UX.
11597 ac_max_sed_lines=48
11598 ac_sed_frag=1 # Number of current file.
11599 ac_beg=1 # First line for current file.
11600 ac_end=$ac_max_sed_lines # Line after last line for current file.
11601 ac_more_lines=:
11602 ac_sed_cmds=
11603 while $ac_more_lines; do
11604 if test $ac_beg -gt 1; then
11605 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11606 else
11607 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11609 if test ! -s $tmp/subs.frag; then
11610 ac_more_lines=false
11611 else
11612 # The purpose of the label and of the branching condition is to
11613 # speed up the sed processing (if there are no `@' at all, there
11614 # is no need to browse any of the substitutions).
11615 # These are the two extra sed commands mentioned above.
11616 (echo ':t
11617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11618 if test -z "$ac_sed_cmds"; then
11619 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11620 else
11621 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11623 ac_sed_frag=`expr $ac_sed_frag + 1`
11624 ac_beg=$ac_end
11625 ac_end=`expr $ac_end + $ac_max_sed_lines`
11627 done
11628 if test -z "$ac_sed_cmds"; then
11629 ac_sed_cmds=cat
11631 fi # test -n "$CONFIG_FILES"
11633 _ACEOF
11634 cat >>$CONFIG_STATUS <<\_ACEOF
11635 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11637 case $ac_file in
11638 - | *:- | *:-:* ) # input from stdin
11639 cat >$tmp/stdin
11640 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11642 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11644 * ) ac_file_in=$ac_file.in ;;
11645 esac
11647 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11648 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11650 X"$ac_file" : 'X\(//\)[^/]' \| \
11651 X"$ac_file" : 'X\(//\)$' \| \
11652 X"$ac_file" : 'X\(/\)' \| \
11653 . : '\(.\)' 2>/dev/null ||
11654 echo X"$ac_file" |
11655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11657 /^X\(\/\/\)$/{ s//\1/; q; }
11658 /^X\(\/\).*/{ s//\1/; q; }
11659 s/.*/./; q'`
11660 { if $as_mkdir_p; then
11661 mkdir -p "$ac_dir"
11662 else
11663 as_dir="$ac_dir"
11664 as_dirs=
11665 while test ! -d "$as_dir"; do
11666 as_dirs="$as_dir $as_dirs"
11667 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11669 X"$as_dir" : 'X\(//\)[^/]' \| \
11670 X"$as_dir" : 'X\(//\)$' \| \
11671 X"$as_dir" : 'X\(/\)' \| \
11672 . : '\(.\)' 2>/dev/null ||
11673 echo X"$as_dir" |
11674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11676 /^X\(\/\/\)$/{ s//\1/; q; }
11677 /^X\(\/\).*/{ s//\1/; q; }
11678 s/.*/./; q'`
11679 done
11680 test ! -n "$as_dirs" || mkdir $as_dirs
11681 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11683 { (exit 1); exit 1; }; }; }
11685 ac_builddir=.
11687 if test "$ac_dir" != .; then
11688 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11689 # A "../" for each directory in $ac_dir_suffix.
11690 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11691 else
11692 ac_dir_suffix= ac_top_builddir=
11695 case $srcdir in
11696 .) # No --srcdir option. We are building in place.
11697 ac_srcdir=.
11698 if test -z "$ac_top_builddir"; then
11699 ac_top_srcdir=.
11700 else
11701 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11702 fi ;;
11703 [\\/]* | ?:[\\/]* ) # Absolute path.
11704 ac_srcdir=$srcdir$ac_dir_suffix;
11705 ac_top_srcdir=$srcdir ;;
11706 *) # Relative path.
11707 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11708 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11709 esac
11711 # Do not use `cd foo && pwd` to compute absolute paths, because
11712 # the directories may not exist.
11713 case `pwd` in
11714 .) ac_abs_builddir="$ac_dir";;
11716 case "$ac_dir" in
11717 .) ac_abs_builddir=`pwd`;;
11718 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11719 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11720 esac;;
11721 esac
11722 case $ac_abs_builddir in
11723 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11725 case ${ac_top_builddir}. in
11726 .) ac_abs_top_builddir=$ac_abs_builddir;;
11727 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11728 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11729 esac;;
11730 esac
11731 case $ac_abs_builddir in
11732 .) ac_abs_srcdir=$ac_srcdir;;
11734 case $ac_srcdir in
11735 .) ac_abs_srcdir=$ac_abs_builddir;;
11736 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11737 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11738 esac;;
11739 esac
11740 case $ac_abs_builddir in
11741 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11743 case $ac_top_srcdir in
11744 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11745 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11746 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11747 esac;;
11748 esac
11751 case $INSTALL in
11752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11753 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11754 esac
11756 if test x"$ac_file" != x-; then
11757 { echo "$as_me:$LINENO: creating $ac_file" >&5
11758 echo "$as_me: creating $ac_file" >&6;}
11759 rm -f "$ac_file"
11761 # Let's still pretend it is `configure' which instantiates (i.e., don't
11762 # use $as_me), people would be surprised to read:
11763 # /* config.h. Generated by config.status. */
11764 if test x"$ac_file" = x-; then
11765 configure_input=
11766 else
11767 configure_input="$ac_file. "
11769 configure_input=$configure_input"Generated from `echo $ac_file_in |
11770 sed 's,.*/,,'` by configure."
11772 # First look for the input files in the build tree, otherwise in the
11773 # src tree.
11774 ac_file_inputs=`IFS=:
11775 for f in $ac_file_in; do
11776 case $f in
11777 -) echo $tmp/stdin ;;
11778 [\\/$]*)
11779 # Absolute (can't be DOS-style, as IFS=:)
11780 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11781 echo "$as_me: error: cannot find input file: $f" >&2;}
11782 { (exit 1); exit 1; }; }
11783 echo "$f";;
11784 *) # Relative
11785 if test -f "$f"; then
11786 # Build tree
11787 echo "$f"
11788 elif test -f "$srcdir/$f"; then
11789 # Source tree
11790 echo "$srcdir/$f"
11791 else
11792 # /dev/null tree
11793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11794 echo "$as_me: error: cannot find input file: $f" >&2;}
11795 { (exit 1); exit 1; }; }
11796 fi;;
11797 esac
11798 done` || { (exit 1); exit 1; }
11799 _ACEOF
11800 cat >>$CONFIG_STATUS <<_ACEOF
11801 sed "$ac_vpsub
11802 $extrasub
11803 _ACEOF
11804 cat >>$CONFIG_STATUS <<\_ACEOF
11806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11807 s,@configure_input@,$configure_input,;t t
11808 s,@srcdir@,$ac_srcdir,;t t
11809 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11810 s,@top_srcdir@,$ac_top_srcdir,;t t
11811 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11812 s,@builddir@,$ac_builddir,;t t
11813 s,@abs_builddir@,$ac_abs_builddir,;t t
11814 s,@top_builddir@,$ac_top_builddir,;t t
11815 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11816 s,@INSTALL@,$ac_INSTALL,;t t
11817 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11818 rm -f $tmp/stdin
11819 if test x"$ac_file" != x-; then
11820 mv $tmp/out $ac_file
11821 else
11822 cat $tmp/out
11823 rm -f $tmp/out
11826 done
11827 _ACEOF
11828 cat >>$CONFIG_STATUS <<\_ACEOF
11831 # CONFIG_HEADER section.
11834 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11835 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11837 # ac_d sets the value in "#define NAME VALUE" lines.
11838 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11839 ac_dB='[ ].*$,\1#\2'
11840 ac_dC=' '
11841 ac_dD=',;t'
11842 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11843 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11844 ac_uB='$,\1#\2define\3'
11845 ac_uC=' '
11846 ac_uD=',;t'
11848 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11850 case $ac_file in
11851 - | *:- | *:-:* ) # input from stdin
11852 cat >$tmp/stdin
11853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11857 * ) ac_file_in=$ac_file.in ;;
11858 esac
11860 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11861 echo "$as_me: creating $ac_file" >&6;}
11863 # First look for the input files in the build tree, otherwise in the
11864 # src tree.
11865 ac_file_inputs=`IFS=:
11866 for f in $ac_file_in; do
11867 case $f in
11868 -) echo $tmp/stdin ;;
11869 [\\/$]*)
11870 # Absolute (can't be DOS-style, as IFS=:)
11871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11872 echo "$as_me: error: cannot find input file: $f" >&2;}
11873 { (exit 1); exit 1; }; }
11874 # Do quote $f, to prevent DOS paths from being IFS'd.
11875 echo "$f";;
11876 *) # Relative
11877 if test -f "$f"; then
11878 # Build tree
11879 echo "$f"
11880 elif test -f "$srcdir/$f"; then
11881 # Source tree
11882 echo "$srcdir/$f"
11883 else
11884 # /dev/null tree
11885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11886 echo "$as_me: error: cannot find input file: $f" >&2;}
11887 { (exit 1); exit 1; }; }
11888 fi;;
11889 esac
11890 done` || { (exit 1); exit 1; }
11891 # Remove the trailing spaces.
11892 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11894 _ACEOF
11896 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11897 # `conftest.undefs', that substitutes the proper values into
11898 # config.h.in to produce config.h. The first handles `#define'
11899 # templates, and the second `#undef' templates.
11900 # And first: Protect against being on the right side of a sed subst in
11901 # config.status. Protect against being in an unquoted here document
11902 # in config.status.
11903 rm -f conftest.defines conftest.undefs
11904 # Using a here document instead of a string reduces the quoting nightmare.
11905 # Putting comments in sed scripts is not portable.
11907 # `end' is used to avoid that the second main sed command (meant for
11908 # 0-ary CPP macros) applies to n-ary macro definitions.
11909 # See the Autoconf documentation for `clear'.
11910 cat >confdef2sed.sed <<\_ACEOF
11911 s/[\\&,]/\\&/g
11912 s,[\\$`],\\&,g
11913 t clear
11914 : clear
11915 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11916 t end
11917 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11918 : end
11919 _ACEOF
11920 # If some macros were called several times there might be several times
11921 # the same #defines, which is useless. Nevertheless, we may not want to
11922 # sort them, since we want the *last* AC-DEFINE to be honored.
11923 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11924 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11925 rm -f confdef2sed.sed
11927 # This sed command replaces #undef with comments. This is necessary, for
11928 # example, in the case of _POSIX_SOURCE, which is predefined and required
11929 # on some systems where configure will not decide to define it.
11930 cat >>conftest.undefs <<\_ACEOF
11931 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11932 _ACEOF
11934 # Break up conftest.defines because some shells have a limit on the size
11935 # of here documents, and old seds have small limits too (100 cmds).
11936 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11937 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11938 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11939 echo ' :' >>$CONFIG_STATUS
11940 rm -f conftest.tail
11941 while grep . conftest.defines >/dev/null
11943 # Write a limited-size here document to $tmp/defines.sed.
11944 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11945 # Speed up: don't consider the non `#define' lines.
11946 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11947 # Work around the forget-to-reset-the-flag bug.
11948 echo 't clr' >>$CONFIG_STATUS
11949 echo ': clr' >>$CONFIG_STATUS
11950 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11951 echo 'CEOF
11952 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11953 rm -f $tmp/in
11954 mv $tmp/out $tmp/in
11955 ' >>$CONFIG_STATUS
11956 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11957 rm -f conftest.defines
11958 mv conftest.tail conftest.defines
11959 done
11960 rm -f conftest.defines
11961 echo ' fi # grep' >>$CONFIG_STATUS
11962 echo >>$CONFIG_STATUS
11964 # Break up conftest.undefs because some shells have a limit on the size
11965 # of here documents, and old seds have small limits too (100 cmds).
11966 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11967 rm -f conftest.tail
11968 while grep . conftest.undefs >/dev/null
11970 # Write a limited-size here document to $tmp/undefs.sed.
11971 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11972 # Speed up: don't consider the non `#undef'
11973 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11974 # Work around the forget-to-reset-the-flag bug.
11975 echo 't clr' >>$CONFIG_STATUS
11976 echo ': clr' >>$CONFIG_STATUS
11977 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11978 echo 'CEOF
11979 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11980 rm -f $tmp/in
11981 mv $tmp/out $tmp/in
11982 ' >>$CONFIG_STATUS
11983 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11984 rm -f conftest.undefs
11985 mv conftest.tail conftest.undefs
11986 done
11987 rm -f conftest.undefs
11989 cat >>$CONFIG_STATUS <<\_ACEOF
11990 # Let's still pretend it is `configure' which instantiates (i.e., don't
11991 # use $as_me), people would be surprised to read:
11992 # /* config.h. Generated by config.status. */
11993 if test x"$ac_file" = x-; then
11994 echo "/* Generated by configure. */" >$tmp/config.h
11995 else
11996 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11998 cat $tmp/in >>$tmp/config.h
11999 rm -f $tmp/in
12000 if test x"$ac_file" != x-; then
12001 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12002 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12003 echo "$as_me: $ac_file is unchanged" >&6;}
12004 else
12005 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007 X"$ac_file" : 'X\(//\)[^/]' \| \
12008 X"$ac_file" : 'X\(//\)$' \| \
12009 X"$ac_file" : 'X\(/\)' \| \
12010 . : '\(.\)' 2>/dev/null ||
12011 echo X"$ac_file" |
12012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12014 /^X\(\/\/\)$/{ s//\1/; q; }
12015 /^X\(\/\).*/{ s//\1/; q; }
12016 s/.*/./; q'`
12017 { if $as_mkdir_p; then
12018 mkdir -p "$ac_dir"
12019 else
12020 as_dir="$ac_dir"
12021 as_dirs=
12022 while test ! -d "$as_dir"; do
12023 as_dirs="$as_dir $as_dirs"
12024 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12026 X"$as_dir" : 'X\(//\)[^/]' \| \
12027 X"$as_dir" : 'X\(//\)$' \| \
12028 X"$as_dir" : 'X\(/\)' \| \
12029 . : '\(.\)' 2>/dev/null ||
12030 echo X"$as_dir" |
12031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12033 /^X\(\/\/\)$/{ s//\1/; q; }
12034 /^X\(\/\).*/{ s//\1/; q; }
12035 s/.*/./; q'`
12036 done
12037 test ! -n "$as_dirs" || mkdir $as_dirs
12038 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12039 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12040 { (exit 1); exit 1; }; }; }
12042 rm -f $ac_file
12043 mv $tmp/config.h $ac_file
12045 else
12046 cat $tmp/config.h
12047 rm -f $tmp/config.h
12049 # Compute $ac_file's index in $config_headers.
12050 _am_stamp_count=1
12051 for _am_header in $config_headers :; do
12052 case $_am_header in
12053 $ac_file | $ac_file:* )
12054 break ;;
12056 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12057 esac
12058 done
12059 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12060 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061 X$ac_file : 'X\(//\)[^/]' \| \
12062 X$ac_file : 'X\(//\)$' \| \
12063 X$ac_file : 'X\(/\)' \| \
12064 . : '\(.\)' 2>/dev/null ||
12065 echo X$ac_file |
12066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12068 /^X\(\/\/\)$/{ s//\1/; q; }
12069 /^X\(\/\).*/{ s//\1/; q; }
12070 s/.*/./; q'`/stamp-h$_am_stamp_count
12071 done
12072 _ACEOF
12073 cat >>$CONFIG_STATUS <<\_ACEOF
12076 # CONFIG_COMMANDS section.
12078 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12079 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12080 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12081 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12082 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12083 X"$ac_dest" : 'X\(//\)[^/]' \| \
12084 X"$ac_dest" : 'X\(//\)$' \| \
12085 X"$ac_dest" : 'X\(/\)' \| \
12086 . : '\(.\)' 2>/dev/null ||
12087 echo X"$ac_dest" |
12088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12090 /^X\(\/\/\)$/{ s//\1/; q; }
12091 /^X\(\/\).*/{ s//\1/; q; }
12092 s/.*/./; q'`
12093 { if $as_mkdir_p; then
12094 mkdir -p "$ac_dir"
12095 else
12096 as_dir="$ac_dir"
12097 as_dirs=
12098 while test ! -d "$as_dir"; do
12099 as_dirs="$as_dir $as_dirs"
12100 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102 X"$as_dir" : 'X\(//\)[^/]' \| \
12103 X"$as_dir" : 'X\(//\)$' \| \
12104 X"$as_dir" : 'X\(/\)' \| \
12105 . : '\(.\)' 2>/dev/null ||
12106 echo X"$as_dir" |
12107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12109 /^X\(\/\/\)$/{ s//\1/; q; }
12110 /^X\(\/\).*/{ s//\1/; q; }
12111 s/.*/./; q'`
12112 done
12113 test ! -n "$as_dirs" || mkdir $as_dirs
12114 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12116 { (exit 1); exit 1; }; }; }
12118 ac_builddir=.
12120 if test "$ac_dir" != .; then
12121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12122 # A "../" for each directory in $ac_dir_suffix.
12123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12124 else
12125 ac_dir_suffix= ac_top_builddir=
12128 case $srcdir in
12129 .) # No --srcdir option. We are building in place.
12130 ac_srcdir=.
12131 if test -z "$ac_top_builddir"; then
12132 ac_top_srcdir=.
12133 else
12134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12135 fi ;;
12136 [\\/]* | ?:[\\/]* ) # Absolute path.
12137 ac_srcdir=$srcdir$ac_dir_suffix;
12138 ac_top_srcdir=$srcdir ;;
12139 *) # Relative path.
12140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12142 esac
12144 # Do not use `cd foo && pwd` to compute absolute paths, because
12145 # the directories may not exist.
12146 case `pwd` in
12147 .) ac_abs_builddir="$ac_dir";;
12149 case "$ac_dir" in
12150 .) ac_abs_builddir=`pwd`;;
12151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12153 esac;;
12154 esac
12155 case $ac_abs_builddir in
12156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12158 case ${ac_top_builddir}. in
12159 .) ac_abs_top_builddir=$ac_abs_builddir;;
12160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12162 esac;;
12163 esac
12164 case $ac_abs_builddir in
12165 .) ac_abs_srcdir=$ac_srcdir;;
12167 case $ac_srcdir in
12168 .) ac_abs_srcdir=$ac_abs_builddir;;
12169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12171 esac;;
12172 esac
12173 case $ac_abs_builddir in
12174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12176 case $ac_top_srcdir in
12177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12180 esac;;
12181 esac
12184 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12185 echo "$as_me: executing $ac_dest commands" >&6;}
12186 case $ac_dest in
12187 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12188 # Strip MF so we end up with the name of the file.
12189 mf=`echo "$mf" | sed -e 's/:.*$//'`
12190 # Check whether this is an Automake generated Makefile or not.
12191 # We used to match only the files named `Makefile.in', but
12192 # some people rename them; so instead we look at the file content.
12193 # Grep'ing the first line is not enough: some people post-process
12194 # each Makefile.in and add a new line on top of each file to say so.
12195 # So let's grep whole file.
12196 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12197 dirpart=`(dirname "$mf") 2>/dev/null ||
12198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12199 X"$mf" : 'X\(//\)[^/]' \| \
12200 X"$mf" : 'X\(//\)$' \| \
12201 X"$mf" : 'X\(/\)' \| \
12202 . : '\(.\)' 2>/dev/null ||
12203 echo X"$mf" |
12204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12206 /^X\(\/\/\)$/{ s//\1/; q; }
12207 /^X\(\/\).*/{ s//\1/; q; }
12208 s/.*/./; q'`
12209 else
12210 continue
12212 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12213 # Extract the definition of DEP_FILES from the Makefile without
12214 # running `make'.
12215 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12216 test -z "$DEPDIR" && continue
12217 # When using ansi2knr, U may be empty or an underscore; expand it
12218 U=`sed -n 's/^U = //p' < "$mf"`
12219 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12220 # We invoke sed twice because it is the simplest approach to
12221 # changing $(DEPDIR) to its actual value in the expansion.
12222 for file in `sed -n '
12223 /^DEP_FILES = .*\\\\$/ {
12224 s/^DEP_FILES = //
12225 :loop
12226 s/\\\\$//
12229 /\\\\$/ b loop
12232 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12233 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12234 # Make sure the directory exists.
12235 test -f "$dirpart/$file" && continue
12236 fdir=`(dirname "$file") 2>/dev/null ||
12237 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12238 X"$file" : 'X\(//\)[^/]' \| \
12239 X"$file" : 'X\(//\)$' \| \
12240 X"$file" : 'X\(/\)' \| \
12241 . : '\(.\)' 2>/dev/null ||
12242 echo X"$file" |
12243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12245 /^X\(\/\/\)$/{ s//\1/; q; }
12246 /^X\(\/\).*/{ s//\1/; q; }
12247 s/.*/./; q'`
12248 { if $as_mkdir_p; then
12249 mkdir -p $dirpart/$fdir
12250 else
12251 as_dir=$dirpart/$fdir
12252 as_dirs=
12253 while test ! -d "$as_dir"; do
12254 as_dirs="$as_dir $as_dirs"
12255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12257 X"$as_dir" : 'X\(//\)[^/]' \| \
12258 X"$as_dir" : 'X\(//\)$' \| \
12259 X"$as_dir" : 'X\(/\)' \| \
12260 . : '\(.\)' 2>/dev/null ||
12261 echo X"$as_dir" |
12262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12264 /^X\(\/\/\)$/{ s//\1/; q; }
12265 /^X\(\/\).*/{ s//\1/; q; }
12266 s/.*/./; q'`
12267 done
12268 test ! -n "$as_dirs" || mkdir $as_dirs
12269 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12270 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12271 { (exit 1); exit 1; }; }; }
12273 # echo "creating $dirpart/$file"
12274 echo '# dummy' > "$dirpart/$file"
12275 done
12276 done
12278 esac
12279 done
12280 _ACEOF
12282 cat >>$CONFIG_STATUS <<\_ACEOF
12284 { (exit 0); exit 0; }
12285 _ACEOF
12286 chmod +x $CONFIG_STATUS
12287 ac_clean_files=$ac_clean_files_save
12290 # configure is writing to config.log, and then calls config.status.
12291 # config.status does its own redirection, appending to config.log.
12292 # Unfortunately, on DOS this fails, as config.log is still kept open
12293 # by configure, so config.status won't be able to write to it; its
12294 # output is simply discarded. So we exec the FD to /dev/null,
12295 # effectively closing config.log, so it can be properly (re)opened and
12296 # appended to by config.status. When coming back to configure, we
12297 # need to make the FD available again.
12298 if test "$no_create" != yes; then
12299 ac_cs_success=:
12300 ac_config_status_args=
12301 test "$silent" = yes &&
12302 ac_config_status_args="$ac_config_status_args --quiet"
12303 exec 5>/dev/null
12304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12305 exec 5>>config.log
12306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12307 # would make configure fail if this is the last instruction.
12308 $ac_cs_success || { (exit 1); exit 1; }