Debian Codegraph @

cextern/xpa/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for xpa 2.1.18.
4 #
5 # Report bugs to <[email protected]>.
6 #
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 ## --------------------- ##
13
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
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
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
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
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
45 do
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
50 fi
51 done
52
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
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
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'`
78
79
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
87
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=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
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
113 do
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
118
119 ;;
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
125 fi
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; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
139 /*)
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
155 ;;
156 esac
157
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 '
168 N
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; }; }
179
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
186 }
187
188
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
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
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'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
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
225 fi
226
227 as_executable_p="test -f"
228
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'"
231
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'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
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`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
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}
263
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}
268
269 # Identity of this package.
270 PACKAGE_NAME='xpa'
271 PACKAGE_TARNAME='xpa'
272 PACKAGE_VERSION='2.1.18'
273 PACKAGE_STRING='xpa 2.1.18'
274 PACKAGE_BUGREPORT='[email protected]'
275
276 ac_unique_file="./xpa.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"
313
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SZ_LONG RANLIB ac_ct_RANLIB TLIB DOSHARED LLIB X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_CFLAGS TCL_LIBS GTK_CFLAGS GTK_LIBS EXTRA_LIBS LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
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
336
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'
354
355 ac_prev=
356 for ac_option
357 do
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
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
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 ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
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 ;;
396
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" ;;
405
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'" ;;
418
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 ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
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 ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
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 ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
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 ;;
467
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 ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
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 ;;
493
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 ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
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 ;;
514
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 ;;
521
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 ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
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 ;;
548
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 ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
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 ;;
576
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 ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
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'" ;;
600
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" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
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 ;;
620
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 ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
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 ;;
642
643 *)
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}
649 ;;
650
651 esac
652 done
653
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; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
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
670
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
674 do
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
682
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
689
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
698 fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
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=..
726 fi
727 else
728 ac_srcdir_defaulted=no
729 fi
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; }; }
737 fi
738 fi
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
775
776 #
777 # Report the --help message.
778 #
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 xpa 2.1.18 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
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.
789
790 Defaults for the options are specified in brackets.
791
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 \`..']
802
803 _ACEOF
804
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]
811
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'.
816
817 For better control, use the options below.
818
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
833
834 cat <<\_ACEOF
835
836 X features:
837 --x-includes=DIR X include files are in DIR
838 --x-libraries=DIR X library files are in DIR
839
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of xpa 2.1.18:";;
849 esac
850 cat <<\_ACEOF
851
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-threaded-xpans build threaded xpans
856 --enable-shared build shared libraries
857 --enable-posix_spawn use posix_spawn() if available
858
859 Optional Packages:
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 --with-x use the X Window System
863 --with-tcl directory containing tcl configuration (tclConfig.sh)
864 --with-threads build for use in threaded programs
865 --with-gtk=<path> include directory for gtk e.g. /usr/include/gtk-1.2
866
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
875
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
878
879 Report bugs to <[email protected]>.
880 _ACEOF
881 fi
882
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
889
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
896 fi
897
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
913
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
918 *)
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *)
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
936 *)
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *)
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
952
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 fi
968 cd $ac_popdir
969 done
970 fi
971
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975 xpa configure 2.1.18
976 generated by GNU Autoconf 2.59
977
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by xpa $as_me 2.1.18, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
991
992 $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052 for ac_arg
1053 do
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 2)
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1077 ;;
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1080 fi
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1084 ;;
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1098 {
1099 echo
1100
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1108 {
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 ;;
1116 *)
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 ;;
1120 esac;
1121 }
1122 echo
1123
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1131 do
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1136
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150 fi
1151
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1161 fi
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1169 ' 0
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1222 fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1235 fi
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1261 *)
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1283 fi
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 ac_config_headers="$ac_config_headers conf.h"
1327
1328
1329 ac_aux_dir=
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1343 fi
1344 done
1345 if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1349 fi
1350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1359
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1376
1377 fi
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1380 build=$ac_cv_build
1381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1402 host=$ac_cv_host
1403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408
1409 # save LDFLAGS
1410 XLDFLAGS="$LDFLAGS"
1411
1412 #
1413 # checks that we use in most projects
1414 #
1415 ac_ext=c
1416 ac_cpp='$CPP $CPPFLAGS'
1417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1420 if test -n "$ac_tool_prefix"; then
1421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1422 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428 if test -n "$CC"; then
1429 ac_cv_prog_CC="$CC" # Let the user override the test.
1430 else
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434 IFS=$as_save_IFS
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440 break 2
1441 fi
1442 done
1443 done
1444
1445 fi
1446 fi
1447 CC=$ac_cv_prog_CC
1448 if test -n "$CC"; then
1449 echo "$as_me:$LINENO: result: $CC" >&5
1450 echo "${ECHO_T}$CC" >&6
1451 else
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456 fi
1457 if test -z "$ac_cv_prog_CC"; then
1458 ac_ct_CC=$CC
1459 # Extract the first word of "gcc", so it can be a program name with args.
1460 set dummy gcc; ac_word=$2
1461 echo "$as_me:$LINENO: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 if test -n "$ac_ct_CC"; then
1467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1468 else
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 for as_dir in $PATH
1471 do
1472 IFS=$as_save_IFS
1473 test -z "$as_dir" && as_dir=.
1474 for ac_exec_ext in '' $ac_executable_extensions; do
1475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476 ac_cv_prog_ac_ct_CC="gcc"
1477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478 break 2
1479 fi
1480 done
1481 done
1482
1483 fi
1484 fi
1485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1486 if test -n "$ac_ct_CC"; then
1487 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1488 echo "${ECHO_T}$ac_ct_CC" >&6
1489 else
1490 echo "$as_me:$LINENO: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1492 fi
1493
1494 CC=$ac_ct_CC
1495 else
1496 CC="$ac_cv_prog_CC"
1497 fi
1498
1499 if test -z "$CC"; then
1500 if test -n "$ac_tool_prefix"; then
1501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1502 set dummy ${ac_tool_prefix}cc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 if test -n "$CC"; then
1509 ac_cv_prog_CC="$CC" # Let the user override the test.
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_CC="${ac_tool_prefix}cc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 break 2
1521 fi
1522 done
1523 done
1524
1525 fi
1526 fi
1527 CC=$ac_cv_prog_CC
1528 if test -n "$CC"; then
1529 echo "$as_me:$LINENO: result: $CC" >&5
1530 echo "${ECHO_T}$CC" >&6
1531 else
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1534 fi
1535
1536 fi
1537 if test -z "$ac_cv_prog_CC"; then
1538 ac_ct_CC=$CC
1539 # Extract the first word of "cc", so it can be a program name with args.
1540 set dummy cc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546 if test -n "$ac_ct_CC"; then
1547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_ac_ct_CC="cc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1566 if test -n "$ac_ct_CC"; then
1567 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1568 echo "${ECHO_T}$ac_ct_CC" >&6
1569 else
1570 echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 CC=$ac_ct_CC
1575 else
1576 CC="$ac_cv_prog_CC"
1577 fi
1578
1579 fi
1580 if test -z "$CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc; ac_word=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588 if test -n "$CC"; then
1589 ac_cv_prog_CC="$CC" # Let the user override the test.
1590 else
1591 ac_prog_rejected=no
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1600 ac_prog_rejected=yes
1601 continue
1602 fi
1603 ac_cv_prog_CC="cc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
1606 fi
1607 done
1608 done
1609
1610 if test $ac_prog_rejected = yes; then
1611 # We found a bogon in the path, so make sure we never use it.
1612 set dummy $ac_cv_prog_CC
1613 shift
1614 if test $# != 0; then
1615 # We chose a different compiler from the bogus one.
1616 # However, it has the same basename, so the bogon will be chosen
1617 # first if we set CC to just the basename; use the full file name.
1618 shift
1619 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1620 fi
1621 fi
1622 fi
1623 fi
1624 CC=$ac_cv_prog_CC
1625 if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1628 else
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633 fi
1634 if test -z "$CC"; then
1635 if test -n "$ac_tool_prefix"; then
1636 for ac_prog in cl
1637 do
1638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1647 else
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2
1658 fi
1659 done
1660 done
1661
1662 fi
1663 fi
1664 CC=$ac_cv_prog_CC
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1668 else
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1671 fi
1672
1673 test -n "$CC" && break
1674 done
1675 fi
1676 if test -z "$CC"; then
1677 ac_ct_CC=$CC
1678 for ac_prog in cl
1679 do
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy $ac_prog; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$ac_ct_CC"; then
1688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
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_prog_ac_ct_CC="$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1700 fi
1701 done
1702 done
1703
1704 fi
1705 fi
1706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1707 if test -n "$ac_ct_CC"; then
1708 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1709 echo "${ECHO_T}$ac_ct_CC" >&6
1710 else
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1713 fi
1714
1715 test -n "$ac_ct_CC" && break
1716 done
1717
1718 CC=$ac_ct_CC
1719 fi
1720
1721 fi
1722
1723
1724 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1725 See \`config.log' for more details." >&5
1726 echo "$as_me: error: no acceptable C compiler found in \$PATH
1727 See \`config.log' for more details." >&2;}
1728 { (exit 1); exit 1; }; }
1729
1730 # Provide some information about the compiler.
1731 echo "$as_me:$LINENO:" \
1732 "checking for C compiler version" >&5
1733 ac_compiler=`set X $ac_compile; echo $2`
1734 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1735 (eval $ac_compiler --version </dev/null >&5) 2>&5
1736 ac_status=$?
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }
1739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1740 (eval $ac_compiler -v </dev/null >&5) 2>&5
1741 ac_status=$?
1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743 (exit $ac_status); }
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1745 (eval $ac_compiler -V </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749
1750 cat >conftest.$ac_ext <<_ACEOF
1751 /* confdefs.h. */
1752 _ACEOF
1753 cat confdefs.h >>conftest.$ac_ext
1754 cat >>conftest.$ac_ext <<_ACEOF
1755 /* end confdefs.h. */
1756
1757 int
1758 main ()
1759 {
1760
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 ac_clean_files_save=$ac_clean_files
1766 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1767 # Try to create an executable without -o first, disregard a.out.
1768 # It will help us diagnose broken compilers, and finding out an intuition
1769 # of exeext.
1770 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1771 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1772 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1773 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1774 (eval $ac_link_default) 2>&5
1775 ac_status=$?
1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777 (exit $ac_status); }; then
1778 # Find the output, starting from the most likely. This scheme is
1779 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1780 # resort.
1781
1782 # Be careful to initialize this variable, since it used to be cached.
1783 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1784 ac_cv_exeext=
1785 # b.out is created by i960 compilers.
1786 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1787 do
1788 test -f "$ac_file" || continue
1789 case $ac_file in
1790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1791 ;;
1792 conftest.$ac_ext )
1793 # This is the source file.
1794 ;;
1795 [ab].out )
1796 # We found the default executable, but exeext='' is most
1797 # certainly right.
1798 break;;
1799 *.* )
1800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1801 # FIXME: I believe we export ac_cv_exeext for Libtool,
1802 # but it would be cool to find out if it's true. Does anybody
1803 # maintain Libtool? --akim.
1804 export ac_cv_exeext
1805 break;;
1806 * )
1807 break;;
1808 esac
1809 done
1810 else
1811 echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1815 See \`config.log' for more details." >&5
1816 echo "$as_me: error: C compiler cannot create executables
1817 See \`config.log' for more details." >&2;}
1818 { (exit 77); exit 77; }; }
1819 fi
1820
1821 ac_exeext=$ac_cv_exeext
1822 echo "$as_me:$LINENO: result: $ac_file" >&5
1823 echo "${ECHO_T}$ac_file" >&6
1824
1825 # Check the compiler produces executables we can run. If not, either
1826 # the compiler is broken, or we cross compile.
1827 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1830 # If not cross compiling, check that we can run a simple program.
1831 if test "$cross_compiling" != yes; then
1832 if { ac_try='./$ac_file'
1833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 cross_compiling=no
1839 else
1840 if test "$cross_compiling" = maybe; then
1841 cross_compiling=yes
1842 else
1843 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1844 If you meant to cross compile, use \`--host'.
1845 See \`config.log' for more details." >&5
1846 echo "$as_me: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'.
1848 See \`config.log' for more details." >&2;}
1849 { (exit 1); exit 1; }; }
1850 fi
1851 fi
1852 fi
1853 echo "$as_me:$LINENO: result: yes" >&5
1854 echo "${ECHO_T}yes" >&6
1855
1856 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1857 ac_clean_files=$ac_clean_files_save
1858 # Check the compiler produces executables we can run. If not, either
1859 # the compiler is broken, or we cross compile.
1860 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1861 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1862 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1863 echo "${ECHO_T}$cross_compiling" >&6
1864
1865 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1866 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1868 (eval $ac_link) 2>&5
1869 ac_status=$?
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }; then
1872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1873 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1874 # work properly (i.e., refer to `conftest.exe'), while it won't with
1875 # `rm'.
1876 for ac_file in conftest.exe conftest conftest.*; do
1877 test -f "$ac_file" || continue
1878 case $ac_file in
1879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1881 export ac_cv_exeext
1882 break;;
1883 * ) break;;
1884 esac
1885 done
1886 else
1887 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1890 See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }
1892 fi
1893
1894 rm -f conftest$ac_cv_exeext
1895 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1896 echo "${ECHO_T}$ac_cv_exeext" >&6
1897
1898 rm -f conftest.$ac_ext
1899 EXEEXT=$ac_cv_exeext
1900 ac_exeext=$EXEEXT
1901 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1902 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1903 if test "${ac_cv_objext+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 cat >conftest.$ac_ext <<_ACEOF
1907 /* confdefs.h. */
1908 _ACEOF
1909 cat confdefs.h >>conftest.$ac_ext
1910 cat >>conftest.$ac_ext <<_ACEOF
1911 /* end confdefs.h. */
1912
1913 int
1914 main ()
1915 {
1916
1917 ;
1918 return 0;
1919 }
1920 _ACEOF
1921 rm -f conftest.o conftest.obj
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1928 case $ac_file in
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1931 break;;
1932 esac
1933 done
1934 else
1935 echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1943 fi
1944
1945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1946 fi
1947 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1948 echo "${ECHO_T}$ac_cv_objext" >&6
1949 OBJEXT=$ac_cv_objext
1950 ac_objext=$OBJEXT
1951 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1952 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1953 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 cat >conftest.$ac_ext <<_ACEOF
1957 /* confdefs.h. */
1958 _ACEOF
1959 cat confdefs.h >>conftest.$ac_ext
1960 cat >>conftest.$ac_ext <<_ACEOF
1961 /* end confdefs.h. */
1962
1963 int
1964 main ()
1965 {
1966 #ifndef __GNUC__
1967 choke me
1968 #endif
1969
1970 ;
1971 return 0;
1972 }
1973 _ACEOF
1974 rm -f conftest.$ac_objext
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976 (eval $ac_compile) 2>conftest.er1
1977 ac_status=$?
1978 grep -v '^ *+' conftest.er1 >conftest.err
1979 rm -f conftest.er1
1980 cat conftest.err >&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); } &&
1983 { ac_try='test -z "$ac_c_werror_flag"
1984 || test ! -s conftest.err'
1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986 (eval $ac_try) 2>&5
1987 ac_status=$?
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; } &&
1990 { ac_try='test -s conftest.$ac_objext'
1991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992 (eval $ac_try) 2>&5
1993 ac_status=$?
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; }; then
1996 ac_compiler_gnu=yes
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 ac_compiler_gnu=no
2002 fi
2003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2005
2006 fi
2007 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2008 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2009 GCC=`test $ac_compiler_gnu = yes && echo yes`
2010 ac_test_CFLAGS=${CFLAGS+set}
2011 ac_save_CFLAGS=$CFLAGS
2012 CFLAGS="-g"
2013 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2014 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2015 if test "${ac_cv_prog_cc_g+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 cat >conftest.$ac_ext <<_ACEOF
2019 /* confdefs.h. */
2020 _ACEOF
2021 cat confdefs.h >>conftest.$ac_ext
2022 cat >>conftest.$ac_ext <<_ACEOF
2023 /* end confdefs.h. */
2024
2025 int
2026 main ()
2027 {
2028
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 rm -f conftest.$ac_objext
2034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>conftest.er1
2036 ac_status=$?
2037 grep -v '^ *+' conftest.er1 >conftest.err
2038 rm -f conftest.er1
2039 cat conftest.err >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -z "$ac_c_werror_flag"
2043 || test ! -s conftest.err'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; } &&
2049 { ac_try='test -s conftest.$ac_objext'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 (eval $ac_try) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2055 ac_cv_prog_cc_g=yes
2056 else
2057 echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060 ac_cv_prog_cc_g=no
2061 fi
2062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2065 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2066 if test "$ac_test_CFLAGS" = set; then
2067 CFLAGS=$ac_save_CFLAGS
2068 elif test $ac_cv_prog_cc_g = yes; then
2069 if test "$GCC" = yes; then
2070 CFLAGS="-g -O2"
2071 else
2072 CFLAGS="-g"
2073 fi
2074 else
2075 if test "$GCC" = yes; then
2076 CFLAGS="-O2"
2077 else
2078 CFLAGS=
2079 fi
2080 fi
2081 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2082 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2083 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 ac_cv_prog_cc_stdc=no
2087 ac_save_CC=$CC
2088 cat >conftest.$ac_ext <<_ACEOF
2089 /* confdefs.h. */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2094 #include <stdarg.h>
2095 #include <stdio.h>
2096 #include <sys/types.h>
2097 #include <sys/stat.h>
2098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2099 struct buf { int x; };
2100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2101 static char *e (p, i)
2102 char **p;
2103 int i;
2104 {
2105 return p[i];
2106 }
2107 static char *f (char * (*g) (char **, int), char **p, ...)
2108 {
2109 char *s;
2110 va_list v;
2111 va_start (v,p);
2112 s = g (p, va_arg (v,int));
2113 va_end (v);
2114 return s;
2115 }
2116
2117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2118 function prototypes and stuff, but not '\xHH' hex character constants.
2119 These don't provoke an error unfortunately, instead are silently treated
2120 as 'x'. The following induces an error, until -std1 is added to get
2121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2122 array size at least. It's necessary to write '\x00'==0 to get something
2123 that's true only with -std1. */
2124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2125
2126 int test (int i, double x);
2127 struct s1 {int (*f) (int a);};
2128 struct s2 {int (*f) (double a);};
2129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2130 int argc;
2131 char **argv;
2132 int
2133 main ()
2134 {
2135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 # Don't try gcc -ansi; that turns off useful extensions and
2141 # breaks some systems' header files.
2142 # AIX -qlanglvl=ansi
2143 # Ultrix and OSF/1 -std1
2144 # HP-UX 10.20 and later -Ae
2145 # HP-UX older versions -Aa -D_HPUX_SOURCE
2146 # SVR4 -Xc -D__EXTENSIONS__
2147 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2148 do
2149 CC="$ac_save_CC $ac_arg"
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2153 ac_status=$?
2154 grep -v '^ *+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 ac_cv_prog_cc_stdc=$ac_arg
2173 break
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 fi
2179 rm -f conftest.err conftest.$ac_objext
2180 done
2181 rm -f conftest.$ac_ext conftest.$ac_objext
2182 CC=$ac_save_CC
2183
2184 fi
2185
2186 case "x$ac_cv_prog_cc_stdc" in
2187 x|xno)
2188 echo "$as_me:$LINENO: result: none needed" >&5
2189 echo "${ECHO_T}none needed" >&6 ;;
2190 *)
2191 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2192 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2193 CC="$CC $ac_cv_prog_cc_stdc" ;;
2194 esac
2195
2196 # Some people use a C++ compiler to compile C. Since we use `exit',
2197 # in C++ we need to declare it. In case someone uses the same compiler
2198 # for both compiling C and C++ we need to have the C++ compiler decide
2199 # the declaration of exit, since it's the most demanding environment.
2200 cat >conftest.$ac_ext <<_ACEOF
2201 #ifndef __cplusplus
2202 choke me
2203 #endif
2204 _ACEOF
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 for ac_declaration in \
2228 '' \
2229 'extern "C" void std::exit (int) throw (); using std::exit;' \
2230 'extern "C" void std::exit (int); using std::exit;' \
2231 'extern "C" void exit (int) throw ();' \
2232 'extern "C" void exit (int);' \
2233 'void exit (int);'
2234 do
2235 cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h. */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2241 $ac_declaration
2242 #include <stdlib.h>
2243 int
2244 main ()
2245 {
2246 exit (42);
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 :
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2287 $ac_declaration
2288 int
2289 main ()
2290 {
2291 exit (42);
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 break
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 fi
2324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325 done
2326 rm -f conftest*
2327 if test -n "$ac_declaration"; then
2328 echo '#ifdef __cplusplus' >>confdefs.h
2329 echo $ac_declaration >>confdefs.h
2330 echo '#endif' >>confdefs.h
2331 fi
2332
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 fi
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 ac_ext=c
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344
2345
2346
2347 if test x"${EXEEXT}" = "xno"; then
2348 EXEEXT=""
2349 fi
2350
2351
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2359 # On Suns, sometimes $CPP names a directory.
2360 if test -n "$CPP" && test -d "$CPP"; then
2361 CPP=
2362 fi
2363 if test -z "$CPP"; then
2364 if test "${ac_cv_prog_CPP+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 # Double quotes because CPP needs to be expanded
2368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2369 do
2370 ac_preproc_ok=false
2371 for ac_c_preproc_warn_flag in '' yes
2372 do
2373 # Use a header file that comes with gcc, so configuring glibc
2374 # with a fresh cross-compiler works.
2375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2376 # <limits.h> exists even on freestanding compilers.
2377 # On the NeXT, cc -E runs the code through the compiler's parser,
2378 # not just through cpp. "Syntax error" is here to catch this case.
2379 cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385 #ifdef __STDC__
2386 # include <limits.h>
2387 #else
2388 # include <assert.h>
2389 #endif
2390 Syntax error
2391 _ACEOF
2392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } >/dev/null; then
2400 if test -s conftest.err; then
2401 ac_cpp_err=$ac_c_preproc_warn_flag
2402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2403 else
2404 ac_cpp_err=
2405 fi
2406 else
2407 ac_cpp_err=yes
2408 fi
2409 if test -z "$ac_cpp_err"; then
2410 :
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 # Broken: fails on valid input.
2416 continue
2417 fi
2418 rm -f conftest.err conftest.$ac_ext
2419
2420 # OK, works on sane cases. Now check whether non-existent headers
2421 # can be detected and how.
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #include <ac_nonexistent.h>
2429 _ACEOF
2430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } >/dev/null; then
2438 if test -s conftest.err; then
2439 ac_cpp_err=$ac_c_preproc_warn_flag
2440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2441 else
2442 ac_cpp_err=
2443 fi
2444 else
2445 ac_cpp_err=yes
2446 fi
2447 if test -z "$ac_cpp_err"; then
2448 # Broken: success on invalid input.
2449 continue
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 # Passes both tests.
2455 ac_preproc_ok=:
2456 break
2457 fi
2458 rm -f conftest.err conftest.$ac_ext
2459
2460 done
2461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2462 rm -f conftest.err conftest.$ac_ext
2463 if $ac_preproc_ok; then
2464 break
2465 fi
2466
2467 done
2468 ac_cv_prog_CPP=$CPP
2469
2470 fi
2471 CPP=$ac_cv_prog_CPP
2472 else
2473 ac_cv_prog_CPP=$CPP
2474 fi
2475 echo "$as_me:$LINENO: result: $CPP" >&5
2476 echo "${ECHO_T}$CPP" >&6
2477 ac_preproc_ok=false
2478 for ac_c_preproc_warn_flag in '' yes
2479 do
2480 # Use a header file that comes with gcc, so configuring glibc
2481 # with a fresh cross-compiler works.
2482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2483 # <limits.h> exists even on freestanding compilers.
2484 # On the NeXT, cc -E runs the code through the compiler's parser,
2485 # not just through cpp. "Syntax error" is here to catch this case.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h. */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2492 #ifdef __STDC__
2493 # include <limits.h>
2494 #else
2495 # include <assert.h>
2496 #endif
2497 Syntax error
2498 _ACEOF
2499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } >/dev/null; then
2507 if test -s conftest.err; then
2508 ac_cpp_err=$ac_c_preproc_warn_flag
2509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2510 else
2511 ac_cpp_err=
2512 fi
2513 else
2514 ac_cpp_err=yes
2515 fi
2516 if test -z "$ac_cpp_err"; then
2517 :
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 # Broken: fails on valid input.
2523 continue
2524 fi
2525 rm -f conftest.err conftest.$ac_ext
2526
2527 # OK, works on sane cases. Now check whether non-existent headers
2528 # can be detected and how.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #include <ac_nonexistent.h>
2536 _ACEOF
2537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } >/dev/null; then
2545 if test -s conftest.err; then
2546 ac_cpp_err=$ac_c_preproc_warn_flag
2547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2548 else
2549 ac_cpp_err=
2550 fi
2551 else
2552 ac_cpp_err=yes
2553 fi
2554 if test -z "$ac_cpp_err"; then
2555 # Broken: success on invalid input.
2556 continue
2557 else
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 # Passes both tests.
2562 ac_preproc_ok=:
2563 break
2564 fi
2565 rm -f conftest.err conftest.$ac_ext
2566
2567 done
2568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2569 rm -f conftest.err conftest.$ac_ext
2570 if $ac_preproc_ok; then
2571 :
2572 else
2573 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2576 See \`config.log' for more details." >&2;}
2577 { (exit 1); exit 1; }; }
2578 fi
2579
2580 ac_ext=c
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
2586
2587 echo "$as_me:$LINENO: checking for egrep" >&5
2588 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2589 if test "${ac_cv_prog_egrep+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2593 then ac_cv_prog_egrep='grep -E'
2594 else ac_cv_prog_egrep='egrep'
2595 fi
2596 fi
2597 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2598 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2599 EGREP=$ac_cv_prog_egrep
2600
2601
2602 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2603 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2604 if test "${ac_cv_header_stdc+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2613 #include <stdlib.h>
2614 #include <stdarg.h>
2615 #include <string.h>
2616 #include <float.h>
2617
2618 int
2619 main ()
2620 {
2621
2622 ;
2623 return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_header_stdc=yes
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653 ac_cv_header_stdc=no
2654 fi
2655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656
2657 if test $ac_cv_header_stdc = yes; then
2658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2659 cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h. */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2665 #include <string.h>
2666
2667 _ACEOF
2668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2669 $EGREP "memchr" >/dev/null 2>&1; then
2670 :
2671 else
2672 ac_cv_header_stdc=no
2673 fi
2674 rm -f conftest*
2675
2676 fi
2677
2678 if test $ac_cv_header_stdc = yes; then
2679 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 #include <stdlib.h>
2687
2688 _ACEOF
2689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2690 $EGREP "free" >/dev/null 2>&1; then
2691 :
2692 else
2693 ac_cv_header_stdc=no
2694 fi
2695 rm -f conftest*
2696
2697 fi
2698
2699 if test $ac_cv_header_stdc = yes; then
2700 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2701 if test "$cross_compiling" = yes; then
2702 :
2703 else
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2710 #include <ctype.h>
2711 #if ((' ' & 0x0FF) == 0x020)
2712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2714 #else
2715 # define ISLOWER(c) \
2716 (('a' <= (c) && (c) <= 'i') \
2717 || ('j' <= (c) && (c) <= 'r') \
2718 || ('s' <= (c) && (c) <= 'z'))
2719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2720 #endif
2721
2722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2723 int
2724 main ()
2725 {
2726 int i;
2727 for (i = 0; i < 256; i++)
2728 if (XOR (islower (i), ISLOWER (i))
2729 || toupper (i) != TOUPPER (i))
2730 exit(2);
2731 exit (0);
2732 }
2733 _ACEOF
2734 rm -f conftest$ac_exeext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2736 (eval $ac_link) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 :
2746 else
2747 echo "$as_me: program exited with status $ac_status" >&5
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ( exit $ac_status )
2752 ac_cv_header_stdc=no
2753 fi
2754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2755 fi
2756 fi
2757 fi
2758 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2759 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2760 if test $ac_cv_header_stdc = yes; then
2761
2762 cat >>confdefs.h <<\_ACEOF
2763 #define STDC_HEADERS 1
2764 _ACEOF
2765
2766 fi
2767
2768 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2779 inttypes.h stdint.h unistd.h
2780 do
2781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2782 echo "$as_me:$LINENO: checking for $ac_header" >&5
2783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 $ac_includes_default
2794
2795 #include <$ac_header>
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 eval "$as_ac_Header=yes"
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 eval "$as_ac_Header=no"
2825 fi
2826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827 fi
2828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2831 cat >>confdefs.h <<_ACEOF
2832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2833 _ACEOF
2834
2835 fi
2836
2837 done
2838
2839
2840 echo "$as_me:$LINENO: checking for long" >&5
2841 echo $ECHO_N "checking for long... $ECHO_C" >&6
2842 if test "${ac_cv_type_long+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2851 $ac_includes_default
2852 int
2853 main ()
2854 {
2855 if ((long *) 0)
2856 return 0;
2857 if (sizeof (long))
2858 return 0;
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 { ac_try='test -z "$ac_c_werror_flag"
2873 || test ! -s conftest.err'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; } &&
2879 { ac_try='test -s conftest.$ac_objext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2885 ac_cv_type_long=yes
2886 else
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2889
2890 ac_cv_type_long=no
2891 fi
2892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2893 fi
2894 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
2895 echo "${ECHO_T}$ac_cv_type_long" >&6
2896
2897 echo "$as_me:$LINENO: checking size of long" >&5
2898 echo $ECHO_N "checking size of long... $ECHO_C" >&6
2899 if test "${ac_cv_sizeof_long+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test "$ac_cv_type_long" = yes; then
2903 # The cast to unsigned long works around a bug in the HP C Compiler
2904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2906 # This bug is HP SR number 8606223364.
2907 if test "$cross_compiling" = yes; then
2908 # Depending upon the size, compute the lo and hi bounds.
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 $ac_includes_default
2916 int
2917 main ()
2918 {
2919 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
2920 test_array [0] = 0
2921
2922 ;
2923 return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_lo=0 ac_mid=0
2949 while :; do
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 $ac_includes_default
2957 int
2958 main ()
2959 {
2960 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
2961 test_array [0] = 0
2962
2963 ;
2964 return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969 (eval $ac_compile) 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_c_werror_flag"
2977 || test ! -s conftest.err'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 (eval $ac_try) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 ac_hi=$ac_mid; break
2990 else
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 ac_lo=`expr $ac_mid + 1`
2995 if test $ac_lo -le $ac_mid; then
2996 ac_lo= ac_hi=
2997 break
2998 fi
2999 ac_mid=`expr 2 '*' $ac_mid + 1`
3000 fi
3001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002 done
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 $ac_includes_default
3014 int
3015 main ()
3016 {
3017 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3018 test_array [0] = 0
3019
3020 ;
3021 return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026 (eval $ac_compile) 2>conftest.er1
3027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_c_werror_flag"
3034 || test ! -s conftest.err'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; } &&
3040 { ac_try='test -s conftest.$ac_objext'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_hi=-1 ac_mid=-1
3047 while :; do
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 $ac_includes_default
3055 int
3056 main ()
3057 {
3058 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3059 test_array [0] = 0
3060
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_c_werror_flag"
3075 || test ! -s conftest.err'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 (eval $ac_try) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_lo=$ac_mid; break
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 ac_hi=`expr '(' $ac_mid ')' - 1`
3093 if test $ac_mid -le $ac_hi; then
3094 ac_lo= ac_hi=
3095 break
3096 fi
3097 ac_mid=`expr 2 '*' $ac_mid`
3098 fi
3099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100 done
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_lo= ac_hi=
3106 fi
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 # Binary search between lo and hi bounds.
3111 while test "x$ac_lo" != "x$ac_hi"; do
3112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 $ac_includes_default
3120 int
3121 main ()
3122 {
3123 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3124 test_array [0] = 0
3125
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag"
3140 || test ! -s conftest.err'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 ac_hi=$ac_mid
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 ac_lo=`expr '(' $ac_mid ')' + 1`
3158 fi
3159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3160 done
3161 case $ac_lo in
3162 ?*) ac_cv_sizeof_long=$ac_lo;;
3163 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: cannot compute sizeof (long), 77
3166 See \`config.log' for more details." >&2;}
3167 { (exit 1); exit 1; }; } ;;
3168 esac
3169 else
3170 if test "$cross_compiling" = yes; then
3171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: cannot run test program while cross compiling
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3176 else
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183 $ac_includes_default
3184 long longval () { return (long) (sizeof (long)); }
3185 unsigned long ulongval () { return (long) (sizeof (long)); }
3186 #include <stdio.h>
3187 #include <stdlib.h>
3188 int
3189 main ()
3190 {
3191
3192 FILE *f = fopen ("conftest.val", "w");
3193 if (! f)
3194 exit (1);
3195 if (((long) (sizeof (long))) < 0)
3196 {
3197 long i = longval ();
3198 if (i != ((long) (sizeof (long))))
3199 exit (1);
3200 fprintf (f, "%ld\n", i);
3201 }
3202 else
3203 {
3204 unsigned long i = ulongval ();
3205 if (i != ((long) (sizeof (long))))
3206 exit (1);
3207 fprintf (f, "%lu\n", i);
3208 }
3209 exit (ferror (f) || fclose (f) != 0);
3210
3211 ;
3212 return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest$ac_exeext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3217 (eval $ac_link) 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3226 ac_cv_sizeof_long=`cat conftest.val`
3227 else
3228 echo "$as_me: program exited with status $ac_status" >&5
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232 ( exit $ac_status )
3233 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute sizeof (long), 77
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3238 fi
3239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3240 fi
3241 fi
3242 rm -f conftest.val
3243 else
3244 ac_cv_sizeof_long=0
3245 fi
3246 fi
3247 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3248 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3249 cat >>confdefs.h <<_ACEOF
3250 #define SIZEOF_LONG $ac_cv_sizeof_long
3251 _ACEOF
3252
3253
3254 SZ_LONG=$ac_cv_sizeof_long
3255
3256
3257 if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3259 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_prog_RANLIB+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 if test -n "$RANLIB"; then
3266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281
3282 fi
3283 fi
3284 RANLIB=$ac_cv_prog_RANLIB
3285 if test -n "$RANLIB"; then
3286 echo "$as_me:$LINENO: result: $RANLIB" >&5
3287 echo "${ECHO_T}$RANLIB" >&6
3288 else
3289 echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3291 fi
3292
3293 fi
3294 if test -z "$ac_cv_prog_RANLIB"; then
3295 ac_ct_RANLIB=$RANLIB
3296 # Extract the first word of "ranlib", so it can be a program name with args.
3297 set dummy ranlib; ac_word=$2
3298 echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 if test -n "$ac_ct_RANLIB"; then
3304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_RANLIB="ranlib"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317 done
3318 done
3319
3320 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3321 fi
3322 fi
3323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3324 if test -n "$ac_ct_RANLIB"; then
3325 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3326 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3327 else
3328 echo "$as_me:$LINENO: result: no" >&5
3329 echo "${ECHO_T}no" >&6
3330 fi
3331
3332 RANLIB=$ac_ct_RANLIB
3333 else
3334 RANLIB="$ac_cv_prog_RANLIB"
3335 fi
3336
3337
3338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3340 if test "${ac_cv_header_stdc+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <stdlib.h>
3350 #include <stdarg.h>
3351 #include <string.h>
3352 #include <float.h>
3353
3354 int
3355 main ()
3356 {
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>conftest.er1
3365 ac_status=$?
3366 grep -v '^ *+' conftest.er1 >conftest.err
3367 rm -f conftest.er1
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_c_werror_flag"
3372 || test ! -s conftest.err'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; } &&
3378 { ac_try='test -s conftest.$ac_objext'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 ac_cv_header_stdc=yes
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 ac_cv_header_stdc=no
3390 fi
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392
3393 if test $ac_cv_header_stdc = yes; then
3394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <string.h>
3402
3403 _ACEOF
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 $EGREP "memchr" >/dev/null 2>&1; then
3406 :
3407 else
3408 ac_cv_header_stdc=no
3409 fi
3410 rm -f conftest*
3411
3412 fi
3413
3414 if test $ac_cv_header_stdc = yes; then
3415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include <stdlib.h>
3423
3424 _ACEOF
3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426 $EGREP "free" >/dev/null 2>&1; then
3427 :
3428 else
3429 ac_cv_header_stdc=no
3430 fi
3431 rm -f conftest*
3432
3433 fi
3434
3435 if test $ac_cv_header_stdc = yes; then
3436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3437 if test "$cross_compiling" = yes; then
3438 :
3439 else
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ctype.h>
3447 #if ((' ' & 0x0FF) == 0x020)
3448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3450 #else
3451 # define ISLOWER(c) \
3452 (('a' <= (c) && (c) <= 'i') \
3453 || ('j' <= (c) && (c) <= 'r') \
3454 || ('s' <= (c) && (c) <= 'z'))
3455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3456 #endif
3457
3458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3459 int
3460 main ()
3461 {
3462 int i;
3463 for (i = 0; i < 256; i++)
3464 if (XOR (islower (i), ISLOWER (i))
3465 || toupper (i) != TOUPPER (i))
3466 exit(2);
3467 exit (0);
3468 }
3469 _ACEOF
3470 rm -f conftest$ac_exeext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3472 (eval $ac_link) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 :
3482 else
3483 echo "$as_me: program exited with status $ac_status" >&5
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 ( exit $ac_status )
3488 ac_cv_header_stdc=no
3489 fi
3490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3491 fi
3492 fi
3493 fi
3494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3496 if test $ac_cv_header_stdc = yes; then
3497
3498 cat >>confdefs.h <<\_ACEOF
3499 #define STDC_HEADERS 1
3500 _ACEOF
3501
3502 fi
3503
3504
3505 for ac_header in malloc.h
3506 do
3507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3509 echo "$as_me:$LINENO: checking for $ac_header" >&5
3510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 fi
3514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3516 else
3517 # Is the header compilable?
3518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 $ac_includes_default
3527 #include <$ac_header>
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_header_compiler=yes
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 ac_header_compiler=no
3557 fi
3558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3560 echo "${ECHO_T}$ac_header_compiler" >&6
3561
3562 # Is the header present?
3563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3565 cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #include <$ac_header>
3572 _ACEOF
3573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev/null; then
3581 if test -s conftest.err; then
3582 ac_cpp_err=$ac_c_preproc_warn_flag
3583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3584 else
3585 ac_cpp_err=
3586 fi
3587 else
3588 ac_cpp_err=yes
3589 fi
3590 if test -z "$ac_cpp_err"; then
3591 ac_header_preproc=yes
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 ac_header_preproc=no
3597 fi
3598 rm -f conftest.err conftest.$ac_ext
3599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3600 echo "${ECHO_T}$ac_header_preproc" >&6
3601
3602 # So? What about this header?
3603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3604 yes:no: )
3605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3609 ac_header_preproc=yes
3610 ;;
3611 no:yes:* )
3612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3624 (
3625 cat <<\_ASBOX
3626 ## ----------------------------------- ##
3627 ## Report this to [email protected] ##
3628 ## ----------------------------------- ##
3629 _ASBOX
3630 ) |
3631 sed "s/^/$as_me: WARNING: /" >&2
3632 ;;
3633 esac
3634 echo "$as_me:$LINENO: checking for $ac_header" >&5
3635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 eval "$as_ac_Header=\$ac_header_preproc"
3640 fi
3641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3643
3644 fi
3645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3646 cat >>confdefs.h <<_ACEOF
3647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3648 _ACEOF
3649
3650 fi
3651
3652 done
3653
3654
3655 for ac_header in getopt.h
3656 do
3657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3659 echo "$as_me:$LINENO: checking for $ac_header" >&5
3660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 fi
3664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3666 else
3667 # Is the header compilable?
3668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 $ac_includes_default
3677 #include <$ac_header>
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_header_compiler=yes
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_header_compiler=no
3707 fi
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3710 echo "${ECHO_T}$ac_header_compiler" >&6
3711
3712 # Is the header present?
3713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <$ac_header>
3722 _ACEOF
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null; then
3731 if test -s conftest.err; then
3732 ac_cpp_err=$ac_c_preproc_warn_flag
3733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3734 else
3735 ac_cpp_err=
3736 fi
3737 else
3738 ac_cpp_err=yes
3739 fi
3740 if test -z "$ac_cpp_err"; then
3741 ac_header_preproc=yes
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 ac_header_preproc=no
3747 fi
3748 rm -f conftest.err conftest.$ac_ext
3749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3750 echo "${ECHO_T}$ac_header_preproc" >&6
3751
3752 # So? What about this header?
3753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3754 yes:no: )
3755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3759 ac_header_preproc=yes
3760 ;;
3761 no:yes:* )
3762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3774 (
3775 cat <<\_ASBOX
3776 ## ----------------------------------- ##
3777 ## Report this to [email protected] ##
3778 ## ----------------------------------- ##
3779 _ASBOX
3780 ) |
3781 sed "s/^/$as_me: WARNING: /" >&2
3782 ;;
3783 esac
3784 echo "$as_me:$LINENO: checking for $ac_header" >&5
3785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 eval "$as_ac_Header=\$ac_header_preproc"
3790 fi
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3793
3794 fi
3795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3796 cat >>confdefs.h <<_ACEOF
3797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3798 _ACEOF
3799
3800 fi
3801
3802 done
3803
3804
3805 for ac_header in pwd.h
3806 do
3807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3809 echo "$as_me:$LINENO: checking for $ac_header" >&5
3810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 fi
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816 else
3817 # Is the header compilable?
3818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 $ac_includes_default
3827 #include <$ac_header>
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_header_compiler=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_header_compiler=no
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3860 echo "${ECHO_T}$ac_header_compiler" >&6
3861
3862 # Is the header present?
3863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <$ac_header>
3872 _ACEOF
3873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } >/dev/null; then
3881 if test -s conftest.err; then
3882 ac_cpp_err=$ac_c_preproc_warn_flag
3883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3884 else
3885 ac_cpp_err=
3886 fi
3887 else
3888 ac_cpp_err=yes
3889 fi
3890 if test -z "$ac_cpp_err"; then
3891 ac_header_preproc=yes
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896 ac_header_preproc=no
3897 fi
3898 rm -f conftest.err conftest.$ac_ext
3899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3900 echo "${ECHO_T}$ac_header_preproc" >&6
3901
3902 # So? What about this header?
3903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3904 yes:no: )
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3909 ac_header_preproc=yes
3910 ;;
3911 no:yes:* )
3912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3924 (
3925 cat <<\_ASBOX
3926 ## ----------------------------------- ##
3927 ## Report this to [email protected] ##
3928 ## ----------------------------------- ##
3929 _ASBOX
3930 ) |
3931 sed "s/^/$as_me: WARNING: /" >&2
3932 ;;
3933 esac
3934 echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 eval "$as_ac_Header=\$ac_header_preproc"
3940 fi
3941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3943
3944 fi
3945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3946 cat >>confdefs.h <<_ACEOF
3947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948 _ACEOF
3949
3950 fi
3951
3952 done
3953
3954
3955 for ac_header in values.h
3956 do
3957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3959 echo "$as_me:$LINENO: checking for $ac_header" >&5
3960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 fi
3964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3966 else
3967 # Is the header compilable?
3968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 $ac_includes_default
3977 #include <$ac_header>
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -z "$ac_c_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_header_compiler=yes
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 ac_header_compiler=no
4007 fi
4008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4010 echo "${ECHO_T}$ac_header_compiler" >&6
4011
4012 # Is the header present?
4013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h. */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 #include <$ac_header>
4022 _ACEOF
4023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } >/dev/null; then
4031 if test -s conftest.err; then
4032 ac_cpp_err=$ac_c_preproc_warn_flag
4033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4034 else
4035 ac_cpp_err=
4036 fi
4037 else
4038 ac_cpp_err=yes
4039 fi
4040 if test -z "$ac_cpp_err"; then
4041 ac_header_preproc=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 ac_header_preproc=no
4047 fi
4048 rm -f conftest.err conftest.$ac_ext
4049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4050 echo "${ECHO_T}$ac_header_preproc" >&6
4051
4052 # So? What about this header?
4053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4054 yes:no: )
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4059 ac_header_preproc=yes
4060 ;;
4061 no:yes:* )
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4074 (
4075 cat <<\_ASBOX
4076 ## ----------------------------------- ##
4077 ## Report this to [email protected] ##
4078 ## ----------------------------------- ##
4079 _ASBOX
4080 ) |
4081 sed "s/^/$as_me: WARNING: /" >&2
4082 ;;
4083 esac
4084 echo "$as_me:$LINENO: checking for $ac_header" >&5
4085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 eval "$as_ac_Header=\$ac_header_preproc"
4090 fi
4091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4093
4094 fi
4095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096 cat >>confdefs.h <<_ACEOF
4097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098 _ACEOF
4099
4100 fi
4101
4102 done
4103
4104
4105 for ac_header in dlfcn.h
4106 do
4107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109 echo "$as_me:$LINENO: checking for $ac_header" >&5
4110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 fi
4114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4116 else
4117 # Is the header compilable?
4118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4127 #include <$ac_header>
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try='test -z "$ac_c_werror_flag"
4139 || test ! -s conftest.err'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 ac_header_compiler=yes
4152 else
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 ac_header_compiler=no
4157 fi
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4160 echo "${ECHO_T}$ac_header_compiler" >&6
4161
4162 # Is the header present?
4163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <$ac_header>
4172 _ACEOF
4173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } >/dev/null; then
4181 if test -s conftest.err; then
4182 ac_cpp_err=$ac_c_preproc_warn_flag
4183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4184 else
4185 ac_cpp_err=
4186 fi
4187 else
4188 ac_cpp_err=yes
4189 fi
4190 if test -z "$ac_cpp_err"; then
4191 ac_header_preproc=yes
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 ac_header_preproc=no
4197 fi
4198 rm -f conftest.err conftest.$ac_ext
4199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4200 echo "${ECHO_T}$ac_header_preproc" >&6
4201
4202 # So? What about this header?
4203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4204 yes:no: )
4205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4209 ac_header_preproc=yes
4210 ;;
4211 no:yes:* )
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4224 (
4225 cat <<\_ASBOX
4226 ## ----------------------------------- ##
4227 ## Report this to [email protected] ##
4228 ## ----------------------------------- ##
4229 _ASBOX
4230 ) |
4231 sed "s/^/$as_me: WARNING: /" >&2
4232 ;;
4233 esac
4234 echo "$as_me:$LINENO: checking for $ac_header" >&5
4235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 eval "$as_ac_Header=\$ac_header_preproc"
4240 fi
4241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4243
4244 fi
4245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4246 cat >>confdefs.h <<_ACEOF
4247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4248 _ACEOF
4249
4250 fi
4251
4252 done
4253
4254
4255 for ac_header in setjmp.h
4256 do
4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 fi
4264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4266 else
4267 # Is the header compilable?
4268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4277 #include <$ac_header>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag"
4289 || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_header_compiler=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 ac_header_compiler=no
4307 fi
4308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4310 echo "${ECHO_T}$ac_header_compiler" >&6
4311
4312 # Is the header present?
4313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 #include <$ac_header>
4322 _ACEOF
4323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev/null; then
4331 if test -s conftest.err; then
4332 ac_cpp_err=$ac_c_preproc_warn_flag
4333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4334 else
4335 ac_cpp_err=
4336 fi
4337 else
4338 ac_cpp_err=yes
4339 fi
4340 if test -z "$ac_cpp_err"; then
4341 ac_header_preproc=yes
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 ac_header_preproc=no
4347 fi
4348 rm -f conftest.err conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4350 echo "${ECHO_T}$ac_header_preproc" >&6
4351
4352 # So? What about this header?
4353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4354 yes:no: )
4355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4359 ac_header_preproc=yes
4360 ;;
4361 no:yes:* )
4362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4374 (
4375 cat <<\_ASBOX
4376 ## ----------------------------------- ##
4377 ## Report this to [email protected] ##
4378 ## ----------------------------------- ##
4379 _ASBOX
4380 ) |
4381 sed "s/^/$as_me: WARNING: /" >&2
4382 ;;
4383 esac
4384 echo "$as_me:$LINENO: checking for $ac_header" >&5
4385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 eval "$as_ac_Header=\$ac_header_preproc"
4390 fi
4391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4393
4394 fi
4395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4396 cat >>confdefs.h <<_ACEOF
4397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398 _ACEOF
4399
4400 fi
4401
4402 done
4403
4404
4405 for ac_header in sys/un.h
4406 do
4407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4409 echo "$as_me:$LINENO: checking for $ac_header" >&5
4410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 fi
4414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4416 else
4417 # Is the header compilable?
4418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4427 #include <$ac_header>
4428 _ACEOF
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag"
4439 || test ! -s conftest.err'
4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 (eval $ac_try) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; } &&
4445 { ac_try='test -s conftest.$ac_objext'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 (eval $ac_try) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
4451 ac_header_compiler=yes
4452 else
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 ac_header_compiler=no
4457 fi
4458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4460 echo "${ECHO_T}$ac_header_compiler" >&6
4461
4462 # Is the header present?
4463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h. */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 #include <$ac_header>
4472 _ACEOF
4473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null; then
4481 if test -s conftest.err; then
4482 ac_cpp_err=$ac_c_preproc_warn_flag
4483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4484 else
4485 ac_cpp_err=
4486 fi
4487 else
4488 ac_cpp_err=yes
4489 fi
4490 if test -z "$ac_cpp_err"; then
4491 ac_header_preproc=yes
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ac_header_preproc=no
4497 fi
4498 rm -f conftest.err conftest.$ac_ext
4499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4500 echo "${ECHO_T}$ac_header_preproc" >&6
4501
4502 # So? What about this header?
4503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4504 yes:no: )
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4509 ac_header_preproc=yes
4510 ;;
4511 no:yes:* )
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4524 (
4525 cat <<\_ASBOX
4526 ## ----------------------------------- ##
4527 ## Report this to [email protected] ##
4528 ## ----------------------------------- ##
4529 _ASBOX
4530 ) |
4531 sed "s/^/$as_me: WARNING: /" >&2
4532 ;;
4533 esac
4534 echo "$as_me:$LINENO: checking for $ac_header" >&5
4535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 eval "$as_ac_Header=\$ac_header_preproc"
4540 fi
4541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4543
4544 fi
4545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4546 cat >>confdefs.h <<_ACEOF
4547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4548 _ACEOF
4549
4550 fi
4551
4552 done
4553
4554
4555 for ac_header in sys/shm.h
4556 do
4557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4559 echo "$as_me:$LINENO: checking for $ac_header" >&5
4560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 fi
4564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566 else
4567 # Is the header compilable?
4568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4570 cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h. */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 $ac_includes_default
4577 #include <$ac_header>
4578 _ACEOF
4579 rm -f conftest.$ac_objext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581 (eval $ac_compile) 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -z "$ac_c_werror_flag"
4589 || test ! -s conftest.err'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_header_compiler=yes
4602 else
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_header_compiler=no
4607 fi
4608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4610 echo "${ECHO_T}$ac_header_compiler" >&6
4611
4612 # Is the header present?
4613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 #include <$ac_header>
4622 _ACEOF
4623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } >/dev/null; then
4631 if test -s conftest.err; then
4632 ac_cpp_err=$ac_c_preproc_warn_flag
4633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4634 else
4635 ac_cpp_err=
4636 fi
4637 else
4638 ac_cpp_err=yes
4639 fi
4640 if test -z "$ac_cpp_err"; then
4641 ac_header_preproc=yes
4642 else
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 ac_header_preproc=no
4647 fi
4648 rm -f conftest.err conftest.$ac_ext
4649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4650 echo "${ECHO_T}$ac_header_preproc" >&6
4651
4652 # So? What about this header?
4653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4654 yes:no: )
4655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4659 ac_header_preproc=yes
4660 ;;
4661 no:yes:* )
4662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4674 (
4675 cat <<\_ASBOX
4676 ## ----------------------------------- ##
4677 ## Report this to [email protected] ##
4678 ## ----------------------------------- ##
4679 _ASBOX
4680 ) |
4681 sed "s/^/$as_me: WARNING: /" >&2
4682 ;;
4683 esac
4684 echo "$as_me:$LINENO: checking for $ac_header" >&5
4685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 eval "$as_ac_Header=\$ac_header_preproc"
4690 fi
4691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4693
4694 fi
4695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4696 cat >>confdefs.h <<_ACEOF
4697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4698 _ACEOF
4699
4700 fi
4701
4702 done
4703
4704
4705 for ac_header in sys/mman.h
4706 do
4707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4709 echo "$as_me:$LINENO: checking for $ac_header" >&5
4710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 fi
4714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4716 else
4717 # Is the header compilable?
4718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4727 #include <$ac_header>
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
4751 ac_header_compiler=yes
4752 else
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ac_header_compiler=no
4757 fi
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4760 echo "${ECHO_T}$ac_header_compiler" >&6
4761
4762 # Is the header present?
4763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 #include <$ac_header>
4772 _ACEOF
4773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } >/dev/null; then
4781 if test -s conftest.err; then
4782 ac_cpp_err=$ac_c_preproc_warn_flag
4783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4784 else
4785 ac_cpp_err=
4786 fi
4787 else
4788 ac_cpp_err=yes
4789 fi
4790 if test -z "$ac_cpp_err"; then
4791 ac_header_preproc=yes
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 ac_header_preproc=no
4797 fi
4798 rm -f conftest.err conftest.$ac_ext
4799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4800 echo "${ECHO_T}$ac_header_preproc" >&6
4801
4802 # So? What about this header?
4803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4804 yes:no: )
4805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4809 ac_header_preproc=yes
4810 ;;
4811 no:yes:* )
4812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4824 (
4825 cat <<\_ASBOX
4826 ## ----------------------------------- ##
4827 ## Report this to [email protected] ##
4828 ## ----------------------------------- ##
4829 _ASBOX
4830 ) |
4831 sed "s/^/$as_me: WARNING: /" >&2
4832 ;;
4833 esac
4834 echo "$as_me:$LINENO: checking for $ac_header" >&5
4835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 eval "$as_ac_Header=\$ac_header_preproc"
4840 fi
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843
4844 fi
4845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4848 _ACEOF
4849
4850 fi
4851
4852 done
4853
4854
4855 for ac_header in sys/ipc.h
4856 do
4857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4859 echo "$as_me:$LINENO: checking for $ac_header" >&5
4860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 fi
4864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4866 else
4867 # Is the header compilable?
4868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4877 #include <$ac_header>
4878 _ACEOF
4879 rm -f conftest.$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_header_compiler=yes
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 ac_header_compiler=no
4907 fi
4908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4910 echo "${ECHO_T}$ac_header_compiler" >&6
4911
4912 # Is the header present?
4913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <$ac_header>
4922 _ACEOF
4923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4925 ac_status=$?
4926 grep -v '^ *+' conftest.er1 >conftest.err
4927 rm -f conftest.er1
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } >/dev/null; then
4931 if test -s conftest.err; then
4932 ac_cpp_err=$ac_c_preproc_warn_flag
4933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4934 else
4935 ac_cpp_err=
4936 fi
4937 else
4938 ac_cpp_err=yes
4939 fi
4940 if test -z "$ac_cpp_err"; then
4941 ac_header_preproc=yes
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 ac_header_preproc=no
4947 fi
4948 rm -f conftest.err conftest.$ac_ext
4949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4950 echo "${ECHO_T}$ac_header_preproc" >&6
4951
4952 # So? What about this header?
4953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4954 yes:no: )
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4959 ac_header_preproc=yes
4960 ;;
4961 no:yes:* )
4962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4974 (
4975 cat <<\_ASBOX
4976 ## ----------------------------------- ##
4977 ## Report this to [email protected] ##
4978 ## ----------------------------------- ##
4979 _ASBOX
4980 ) |
4981 sed "s/^/$as_me: WARNING: /" >&2
4982 ;;
4983 esac
4984 echo "$as_me:$LINENO: checking for $ac_header" >&5
4985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 eval "$as_ac_Header=\$ac_header_preproc"
4990 fi
4991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4993
4994 fi
4995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4996 cat >>confdefs.h <<_ACEOF
4997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4998 _ACEOF
4999
5000 fi
5001
5002 done
5003
5004
5005 for ac_header in sys/select.h
5006 do
5007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5009 echo "$as_me:$LINENO: checking for $ac_header" >&5
5010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 fi
5014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5016 else
5017 # Is the header compilable?
5018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 $ac_includes_default
5027 #include <$ac_header>
5028 _ACEOF
5029 rm -f conftest.$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -z "$ac_c_werror_flag"
5039 || test ! -s conftest.err'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; } &&
5045 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5051 ac_header_compiler=yes
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5055
5056 ac_header_compiler=no
5057 fi
5058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5060 echo "${ECHO_T}$ac_header_compiler" >&6
5061
5062 # Is the header present?
5063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <$ac_header>
5072 _ACEOF
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_c_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5084 else
5085 ac_cpp_err=
5086 fi
5087 else
5088 ac_cpp_err=yes
5089 fi
5090 if test -z "$ac_cpp_err"; then
5091 ac_header_preproc=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_header_preproc=no
5097 fi
5098 rm -f conftest.err conftest.$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5100 echo "${ECHO_T}$ac_header_preproc" >&6
5101
5102 # So? What about this header?
5103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5104 yes:no: )
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5109 ac_header_preproc=yes
5110 ;;
5111 no:yes:* )
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5124 (
5125 cat <<\_ASBOX
5126 ## ----------------------------------- ##
5127 ## Report this to [email protected] ##
5128 ## ----------------------------------- ##
5129 _ASBOX
5130 ) |
5131 sed "s/^/$as_me: WARNING: /" >&2
5132 ;;
5133 esac
5134 echo "$as_me:$LINENO: checking for $ac_header" >&5
5135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 eval "$as_ac_Header=\$ac_header_preproc"
5140 fi
5141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5143
5144 fi
5145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5146 cat >>confdefs.h <<_ACEOF
5147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5148 _ACEOF
5149
5150 fi
5151
5152 done
5153
5154
5155 echo "$as_me:$LINENO: checking for socklen_t" >&5
5156 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
5157 if test "${ac_cv_type_socklen_t+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #include <sys/socket.h>
5167
5168 int
5169 main ()
5170 {
5171 if ((socklen_t *) 0)
5172 return 0;
5173 if (sizeof (socklen_t))
5174 return 0;
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_type_socklen_t=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206 ac_cv_type_socklen_t=no
5207 fi
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5211 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
5212 if test $ac_cv_type_socklen_t = yes; then
5213
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_SOCKLEN_T 1
5216 _ACEOF
5217
5218
5219 fi
5220
5221
5222 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5223 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5224 if test "${ac_cv_c_const+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233
5234 int
5235 main ()
5236 {
5237 /* FIXME: Include the comments suggested by Paul. */
5238 #ifndef __cplusplus
5239 /* Ultrix mips cc rejects this. */
5240 typedef int charset[2];
5241 const charset x;
5242 /* SunOS 4.1.1 cc rejects this. */
5243 char const *const *ccp;
5244 char **p;
5245 /* NEC SVR4.0.2 mips cc rejects this. */
5246 struct point {int x, y;};
5247 static struct point const zero = {0,0};
5248 /* AIX XL C 1.02.0.0 rejects this.
5249 It does not let you subtract one const X* pointer from another in
5250 an arm of an if-expression whose if-part is not a constant
5251 expression */
5252 const char *g = "string";
5253 ccp = &g + (g ? g-g : 0);
5254 /* HPUX 7.0 cc rejects these. */
5255 ++ccp;
5256 p = (char**) ccp;
5257 ccp = (char const *const *) p;
5258 { /* SCO 3.2v4 cc rejects this. */
5259 char *t;
5260 char const *s = 0 ? (char *) 0 : (char const *) 0;
5261
5262 *t++ = 0;
5263 }
5264 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5265 int x[] = {25, 17};
5266 const int *foo = &x[0];
5267 ++foo;
5268 }
5269 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5270 typedef const int *iptr;
5271 iptr p = 0;
5272 ++p;
5273 }
5274 { /* AIX XL C 1.02.0.0 rejects this saying
5275 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5276 struct s { int j; const int *ap[3]; };
5277 struct s *b; b->j = 5;
5278 }
5279 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5280 const int foo = 10;
5281 }
5282 #endif
5283
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 rm -f conftest.$ac_objext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -z "$ac_c_werror_flag"
5298 || test ! -s conftest.err'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_c_const=yes
5311 else
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 ac_cv_c_const=no
5316 fi
5317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5320 echo "${ECHO_T}$ac_cv_c_const" >&6
5321 if test $ac_cv_c_const = no; then
5322
5323 cat >>confdefs.h <<\_ACEOF
5324 #define const
5325 _ACEOF
5326
5327 fi
5328
5329
5330
5331
5332
5333
5334
5335
5336 for ac_func in strchr memcpy snprintf atexit setenv getaddrinfo
5337 do
5338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5339 echo "$as_me:$LINENO: checking for $ac_func" >&5
5340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5341 if eval "test \"\${$as_ac_var+set}\" = set"; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5352 #define $ac_func innocuous_$ac_func
5353
5354 /* System header to define __stub macros and hopefully few prototypes,
5355 which can conflict with char $ac_func (); below.
5356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 <limits.h> exists even on freestanding compilers. */
5358
5359 #ifdef __STDC__
5360 # include <limits.h>
5361 #else
5362 # include <assert.h>
5363 #endif
5364
5365 #undef $ac_func
5366
5367 /* Override any gcc2 internal prototype to avoid an error. */
5368 #ifdef __cplusplus
5369 extern "C"
5370 {
5371 #endif
5372 /* We use char because int might match the return type of a gcc2
5373 builtin and then its argument prototype would still apply. */
5374 char $ac_func ();
5375 /* The GNU C library defines this for functions which it implements
5376 to always fail with ENOSYS. Some functions are actually named
5377 something starting with __ and the normal name is an alias. */
5378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5379 choke me
5380 #else
5381 char (*f) () = $ac_func;
5382 #endif
5383 #ifdef __cplusplus
5384 }
5385 #endif
5386
5387 int
5388 main ()
5389 {
5390 return f != $ac_func;
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext conftest$ac_exeext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest$ac_exeext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 eval "$as_ac_var=yes"
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 eval "$as_ac_var=no"
5423 fi
5424 rm -f conftest.err conftest.$ac_objext \
5425 conftest$ac_exeext conftest.$ac_ext
5426 fi
5427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5429 if test `eval echo '${'$as_ac_var'}'` = yes; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5432 _ACEOF
5433
5434 fi
5435 done
5436
5437
5438 echo "$as_me:$LINENO: checking for connect" >&5
5439 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5440 if test "${ac_cv_func_connect+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5451 #define connect innocuous_connect
5452
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char connect (); below.
5455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5456 <limits.h> exists even on freestanding compilers. */
5457
5458 #ifdef __STDC__
5459 # include <limits.h>
5460 #else
5461 # include <assert.h>
5462 #endif
5463
5464 #undef connect
5465
5466 /* Override any gcc2 internal prototype to avoid an error. */
5467 #ifdef __cplusplus
5468 extern "C"
5469 {
5470 #endif
5471 /* We use char because int might match the return type of a gcc2
5472 builtin and then its argument prototype would still apply. */
5473 char connect ();
5474 /* The GNU C library defines this for functions which it implements
5475 to always fail with ENOSYS. Some functions are actually named
5476 something starting with __ and the normal name is an alias. */
5477 #if defined (__stub_connect) || defined (__stub___connect)
5478 choke me
5479 #else
5480 char (*f) () = connect;
5481 #endif
5482 #ifdef __cplusplus
5483 }
5484 #endif
5485
5486 int
5487 main ()
5488 {
5489 return f != connect;
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext conftest$ac_exeext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest$ac_exeext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 ac_cv_func_connect=yes
5517 else
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5520
5521 ac_cv_func_connect=no
5522 fi
5523 rm -f conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525 fi
5526 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5527 echo "${ECHO_T}$ac_cv_func_connect" >&6
5528
5529 if test $ac_cv_func_connect = no; then
5530 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5531 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5532 if test "${ac_cv_lib_socket_connect+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535 ac_check_lib_save_LIBS=$LIBS
5536 LIBS="-lsocket $LIBS"
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
5544 /* Override any gcc2 internal prototype to avoid an error. */
5545 #ifdef __cplusplus
5546 extern "C"
5547 #endif
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5550 char connect ();
5551 int
5552 main ()
5553 {
5554 connect ();
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_lib_socket_connect=yes
5582 else
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_cv_lib_socket_connect=no
5587 fi
5588 rm -f conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext conftest.$ac_ext
5590 LIBS=$ac_check_lib_save_LIBS
5591 fi
5592 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5593 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5594 if test $ac_cv_lib_socket_connect = yes; then
5595 EXTRA_LIBS="$EXTRA_LIBS -lsocket"
5596 fi
5597
5598 fi
5599 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5600 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5601 if test "${ac_cv_func_gethostbyname+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5612 #define gethostbyname innocuous_gethostbyname
5613
5614 /* System header to define __stub macros and hopefully few prototypes,
5615 which can conflict with char gethostbyname (); below.
5616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5617 <limits.h> exists even on freestanding compilers. */
5618
5619 #ifdef __STDC__
5620 # include <limits.h>
5621 #else
5622 # include <assert.h>
5623 #endif
5624
5625 #undef gethostbyname
5626
5627 /* Override any gcc2 internal prototype to avoid an error. */
5628 #ifdef __cplusplus
5629 extern "C"
5630 {
5631 #endif
5632 /* We use char because int might match the return type of a gcc2
5633 builtin and then its argument prototype would still apply. */
5634 char gethostbyname ();
5635 /* The GNU C library defines this for functions which it implements
5636 to always fail with ENOSYS. Some functions are actually named
5637 something starting with __ and the normal name is an alias. */
5638 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5639 choke me
5640 #else
5641 char (*f) () = gethostbyname;
5642 #endif
5643 #ifdef __cplusplus
5644 }
5645 #endif
5646
5647 int
5648 main ()
5649 {
5650 return f != gethostbyname;
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -z "$ac_c_werror_flag"
5665 || test ! -s conftest.err'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_func_gethostbyname=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_cv_func_gethostbyname=no
5683 fi
5684 rm -f conftest.err conftest.$ac_objext \
5685 conftest$ac_exeext conftest.$ac_ext
5686 fi
5687 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5688 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5689
5690 if test $ac_cv_func_gethostbyname = no; then
5691 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5692 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5693 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 ac_check_lib_save_LIBS=$LIBS
5697 LIBS="-lnsl $LIBS"
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704
5705 /* Override any gcc2 internal prototype to avoid an error. */
5706 #ifdef __cplusplus
5707 extern "C"
5708 #endif
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711 char gethostbyname ();
5712 int
5713 main ()
5714 {
5715 gethostbyname ();
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } &&
5729 { ac_try='test -z "$ac_c_werror_flag"
5730 || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest$ac_exeext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_lib_nsl_gethostbyname=yes
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 ac_cv_lib_nsl_gethostbyname=no
5748 fi
5749 rm -f conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751 LIBS=$ac_check_lib_save_LIBS
5752 fi
5753 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5754 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5755 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5756 EXTRA_LIBS="$EXTRA_LIBS -lnsl"
5757 fi
5758
5759 fi
5760 # AC_CHECK_LIB(db, snprintf, EXTRA_LIBS="$EXTRA_LIBS -ldb")
5761
5762 #
5763 # checks specific to this project
5764 #
5765
5766 echo "$as_me:$LINENO: checking for threaded xpans" >&5
5767 echo $ECHO_N "checking for threaded xpans... $ECHO_C" >&6
5768 # Check whether --enable-threaded-xpans or --disable-threaded-xpans was given.
5769 if test "${enable_threaded_xpans+set}" = set; then
5770 enableval="$enable_threaded_xpans"
5771 fun_ok=$enableval
5772 else
5773 fun_ok=no
5774 fi;
5775 if test "$fun_ok" = "yes"; then
5776 echo "$as_me:$LINENO: result: $fun_ok" >&5
5777 echo "${ECHO_T}$fun_ok" >&6
5778 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5779 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5780 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 ac_check_lib_save_LIBS=$LIBS
5784 LIBS="-lpthread $LIBS"
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791
5792 /* Override any gcc2 internal prototype to avoid an error. */
5793 #ifdef __cplusplus
5794 extern "C"
5795 #endif
5796 /* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5798 char pthread_create ();
5799 int
5800 main ()
5801 {
5802 pthread_create ();
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext conftest$ac_exeext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag"
5817 || test ! -s conftest.err'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try='test -s conftest$ac_exeext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_cv_lib_pthread_pthread_create=yes
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 ac_cv_lib_pthread_pthread_create=no
5835 fi
5836 rm -f conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_check_lib_save_LIBS
5839 fi
5840 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5841 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5842 if test $ac_cv_lib_pthread_pthread_create = yes; then
5843 have_pthread=yes
5844 fi
5845
5846 if test x"${have_pthread}" = x"yes"; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_LIBPTHREAD 1
5849 _ACEOF
5850
5851 cat >>confdefs.h <<\_ACEOF
5852 #define _REENTRANT 1
5853 _ACEOF
5854
5855 TLIB="-lpthread"
5856 else
5857 { { echo "$as_me:$LINENO: error: no threads found ... can't use enable-threaded-xpans" >&5
5858 echo "$as_me: error: no threads found ... can't use enable-threaded-xpans" >&2;}
5859 { (exit 1); exit 1; }; }
5860 fi
5861 else
5862 echo "$as_me:$LINENO: result: $fun_ok" >&5
5863 echo "${ECHO_T}$fun_ok" >&6
5864 fi
5865
5866
5867 echo "$as_me:$LINENO: checking for shared library build" >&5
5868 echo $ECHO_N "checking for shared library build... $ECHO_C" >&6
5869 # Check whether --enable-shared or --disable-shared was given.
5870 if test "${enable_shared+set}" = set; then
5871 enableval="$enable_shared"
5872 fun_ok=$enableval
5873 else
5874 fun_ok=no
5875 fi;
5876 if test "$fun_ok" != "no"; then
5877 fpic="yes"
5878 DOSHARED=shlib
5879
5880 if test "$fun_ok" = "link"; then
5881 LLIB="-L. -l$PACKAGE_NAME"
5882 else
5883 LLIB='$(LIB)'
5884 fi
5885 else
5886 DOSHARED=""
5887 LLIB='$(LIB)'
5888 fi
5889
5890 echo "$as_me:$LINENO: result: $fun_ok" >&5
5891 echo "${ECHO_T}$fun_ok" >&6
5892
5893 echo "$as_me:$LINENO: checking for request to use posix_spawn" >&5
5894 echo $ECHO_N "checking for request to use posix_spawn... $ECHO_C" >&6
5895 # Check whether --enable-posix_spawn or --disable-posix_spawn was given.
5896 if test "${enable_posix_spawn+set}" = set; then
5897 enableval="$enable_posix_spawn"
5898 fun_ok=$enableval
5899 else
5900 fun_ok=no
5901 fi;
5902 echo "$as_me:$LINENO: result: $fun_ok" >&5
5903 echo "${ECHO_T}$fun_ok" >&6
5904 if test "$fun_ok" = "yes"; then
5905
5906
5907 for ac_func in posix_spawn _NSGetEnviron
5908 do
5909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5910 echo "$as_me:$LINENO: checking for $ac_func" >&5
5911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5912 if eval "test \"\${$as_ac_var+set}\" = set"; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5923 #define $ac_func innocuous_$ac_func
5924
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func (); below.
5927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5928 <limits.h> exists even on freestanding compilers. */
5929
5930 #ifdef __STDC__
5931 # include <limits.h>
5932 #else
5933 # include <assert.h>
5934 #endif
5935
5936 #undef $ac_func
5937
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 #ifdef __cplusplus
5940 extern "C"
5941 {
5942 #endif
5943 /* We use char because int might match the return type of a gcc2
5944 builtin and then its argument prototype would still apply. */
5945 char $ac_func ();
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5950 choke me
5951 #else
5952 char (*f) () = $ac_func;
5953 #endif
5954 #ifdef __cplusplus
5955 }
5956 #endif
5957
5958 int
5959 main ()
5960 {
5961 return f != $ac_func;
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968 (eval $ac_link) 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -z "$ac_c_werror_flag"
5976 || test ! -s conftest.err'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; } &&
5982 { ac_try='test -s conftest$ac_exeext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 eval "$as_ac_var=yes"
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 eval "$as_ac_var=no"
5994 fi
5995 rm -f conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5997 fi
5998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6000 if test `eval echo '${'$as_ac_var'}'` = yes; then
6001 cat >>confdefs.h <<_ACEOF
6002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6003 _ACEOF
6004
6005 fi
6006 done
6007
6008
6009 for ac_header in crt_externs.h
6010 do
6011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 fi
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 else
6021 # Is the header compilable?
6022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 $ac_includes_default
6031 #include <$ac_header>
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -z "$ac_c_werror_flag"
6043 || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 (eval $ac_try) 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_header_compiler=yes
6056 else
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_header_compiler=no
6061 fi
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6064 echo "${ECHO_T}$ac_header_compiler" >&6
6065
6066 # Is the header present?
6067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <$ac_header>
6076 _ACEOF
6077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } >/dev/null; then
6085 if test -s conftest.err; then
6086 ac_cpp_err=$ac_c_preproc_warn_flag
6087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6088 else
6089 ac_cpp_err=
6090 fi
6091 else
6092 ac_cpp_err=yes
6093 fi
6094 if test -z "$ac_cpp_err"; then
6095 ac_header_preproc=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_header_preproc=no
6101 fi
6102 rm -f conftest.err conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6104 echo "${ECHO_T}$ac_header_preproc" >&6
6105
6106 # So? What about this header?
6107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6108 yes:no: )
6109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6113 ac_header_preproc=yes
6114 ;;
6115 no:yes:* )
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6128 (
6129 cat <<\_ASBOX
6130 ## ----------------------------------- ##
6131 ## Report this to [email protected] ##
6132 ## ----------------------------------- ##
6133 _ASBOX
6134 ) |
6135 sed "s/^/$as_me: WARNING: /" >&2
6136 ;;
6137 esac
6138 echo "$as_me:$LINENO: checking for $ac_header" >&5
6139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 eval "$as_ac_Header=\$ac_header_preproc"
6144 fi
6145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6147
6148 fi
6149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6150 cat >>confdefs.h <<_ACEOF
6151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6152 _ACEOF
6153
6154 fi
6155
6156 done
6157
6158 fi
6159
6160 echo "$as_me:$LINENO: checking for X" >&5
6161 echo $ECHO_N "checking for X... $ECHO_C" >&6
6162
6163
6164 # Check whether --with-x or --without-x was given.
6165 if test "${with_x+set}" = set; then
6166 withval="$with_x"
6167
6168 fi;
6169 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6170 if test "x$with_x" = xno; then
6171 # The user explicitly disabled X.
6172 have_x=disabled
6173 else
6174 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6175 # Both variables are already set.
6176 have_x=yes
6177 else
6178 if test "${ac_cv_have_x+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 # One or both of the vars are not set, and there is no cached value.
6182 ac_x_includes=no ac_x_libraries=no
6183 rm -fr conftest.dir
6184 if mkdir conftest.dir; then
6185 cd conftest.dir
6186 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6187 cat >Imakefile <<'_ACEOF'
6188 acfindx:
6189 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6190 _ACEOF
6191 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6192 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6193 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6194 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6195 for ac_extension in a so sl; do
6196 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6197 test -f $ac_im_libdir/libX11.$ac_extension; then
6198 ac_im_usrlibdir=$ac_im_libdir; break
6199 fi
6200 done
6201 # Screen out bogus values from the imake configuration. They are
6202 # bogus both because they are the default anyway, and because
6203 # using them would break gcc on systems where it needs fixed includes.
6204 case $ac_im_incroot in
6205 /usr/include) ;;
6206 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6207 esac
6208 case $ac_im_usrlibdir in
6209 /usr/lib | /lib) ;;
6210 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6211 esac
6212 fi
6213 cd ..
6214 rm -fr conftest.dir
6215 fi
6216
6217 # Standard set of common directories for X headers.
6218 # Check X11 before X11Rn because it is often a symlink to the current release.
6219 ac_x_header_dirs='
6220 /usr/X11/include
6221 /usr/X11R6/include
6222 /usr/X11R5/include
6223 /usr/X11R4/include
6224
6225 /usr/include/X11
6226 /usr/include/X11R6
6227 /usr/include/X11R5
6228 /usr/include/X11R4
6229
6230 /usr/local/X11/include
6231 /usr/local/X11R6/include
6232 /usr/local/X11R5/include
6233 /usr/local/X11R4/include
6234
6235 /usr/local/include/X11
6236 /usr/local/include/X11R6
6237 /usr/local/include/X11R5
6238 /usr/local/include/X11R4
6239
6240 /usr/X386/include
6241 /usr/x386/include
6242 /usr/XFree86/include/X11
6243
6244 /usr/include
6245 /usr/local/include
6246 /usr/unsupported/include
6247 /usr/athena/include
6248 /usr/local/x11r5/include
6249 /usr/lpp/Xamples/include
6250
6251 /usr/openwin/include
6252 /usr/openwin/share/include'
6253
6254 if test "$ac_x_includes" = no; then
6255 # Guess where to find include files, by looking for Intrinsic.h.
6256 # First, try using that file with no special directory specified.
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <X11/Intrinsic.h>
6264 _ACEOF
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_c_preproc_warn_flag
6275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6276 else
6277 ac_cpp_err=
6278 fi
6279 else
6280 ac_cpp_err=yes
6281 fi
6282 if test -z "$ac_cpp_err"; then
6283 # We can compile using X headers with no special include directory.
6284 ac_x_includes=
6285 else
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 for ac_dir in $ac_x_header_dirs; do
6290 if test -r "$ac_dir/X11/Intrinsic.h"; then
6291 ac_x_includes=$ac_dir
6292 break
6293 fi
6294 done
6295 fi
6296 rm -f conftest.err conftest.$ac_ext
6297 fi # $ac_x_includes = no
6298
6299 if test "$ac_x_libraries" = no; then
6300 # Check for the libraries.
6301 # See if we find them without any special options.
6302 # Don't add to $LIBS permanently.
6303 ac_save_LIBS=$LIBS
6304 LIBS="-lXt $LIBS"
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <X11/Intrinsic.h>
6312 int
6313 main ()
6314 {
6315 XtMalloc (0)
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6322 (eval $ac_link) 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag"
6330 || test ! -s conftest.err'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try='test -s conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 LIBS=$ac_save_LIBS
6343 # We can link X programs with no special library path.
6344 ac_x_libraries=
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349 LIBS=$ac_save_LIBS
6350 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6351 do
6352 # Don't even attempt the hair of trying to link an X program!
6353 for ac_extension in a so sl; do
6354 if test -r $ac_dir/libXt.$ac_extension; then
6355 ac_x_libraries=$ac_dir
6356 break 2
6357 fi
6358 done
6359 done
6360 fi
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363 fi # $ac_x_libraries = no
6364
6365 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6366 # Didn't find X anywhere. Cache the known absence of X.
6367 ac_cv_have_x="have_x=no"
6368 else
6369 # Record where we found X for the cache.
6370 ac_cv_have_x="have_x=yes \
6371 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6372 fi
6373 fi
6374
6375 fi
6376 eval "$ac_cv_have_x"
6377 fi # $with_x != no
6378
6379 if test "$have_x" != yes; then
6380 echo "$as_me:$LINENO: result: $have_x" >&5
6381 echo "${ECHO_T}$have_x" >&6
6382 no_x=yes
6383 else
6384 # If each of the values was on the command line, it overrides each guess.
6385 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6386 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6387 # Update the cache value to reflect the command line values.
6388 ac_cv_have_x="have_x=yes \
6389 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6390 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6391 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6392 fi
6393
6394 if test "$no_x" = yes; then
6395 # Not all programs may use this symbol, but it does not hurt to define it.
6396
6397 cat >>confdefs.h <<\_ACEOF
6398 #define X_DISPLAY_MISSING 1
6399 _ACEOF
6400
6401 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6402 else
6403 if test -n "$x_includes"; then
6404 X_CFLAGS="$X_CFLAGS -I$x_includes"
6405 fi
6406
6407 # It would also be nice to do this for all -L options, not just this one.
6408 if test -n "$x_libraries"; then
6409 X_LIBS="$X_LIBS -L$x_libraries"
6410 # For Solaris; some versions of Sun CC require a space after -R and
6411 # others require no space. Words are not sufficient . . . .
6412 case `(uname -sr) 2>/dev/null` in
6413 "SunOS 5"*)
6414 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6415 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6416 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423
6424 int
6425 main ()
6426 {
6427
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_R_nospace=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_R_nospace=no
6460 fi
6461 rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6463 if test $ac_R_nospace = yes; then
6464 echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6
6466 X_LIBS="$X_LIBS -R$x_libraries"
6467 else
6468 LIBS="$ac_xsave_LIBS -R $x_libraries"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475
6476 int
6477 main ()
6478 {
6479
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 rm -f conftest.$ac_objext conftest$ac_exeext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest$ac_exeext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 ac_R_space=yes
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 ac_R_space=no
6512 fi
6513 rm -f conftest.err conftest.$ac_objext \
6514 conftest$ac_exeext conftest.$ac_ext
6515 if test $ac_R_space = yes; then
6516 echo "$as_me:$LINENO: result: yes" >&5
6517 echo "${ECHO_T}yes" >&6
6518 X_LIBS="$X_LIBS -R $x_libraries"
6519 else
6520 echo "$as_me:$LINENO: result: neither works" >&5
6521 echo "${ECHO_T}neither works" >&6
6522 fi
6523 fi
6524 LIBS=$ac_xsave_LIBS
6525 esac
6526 fi
6527
6528 # Check for system-dependent libraries X programs must link with.
6529 # Do this before checking for the system-independent R6 libraries
6530 # (-lICE), since we may need -lsocket or whatever for X linking.
6531
6532 if test "$ISC" = yes; then
6533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6534 else
6535 # Martyn Johnson says this is needed for Ultrix, if the X
6536 # libraries were built with DECnet support. And Karl Berry says
6537 # the Alpha needs dnet_stub (dnet does not exist).
6538 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 #ifdef __cplusplus
6548 extern "C"
6549 #endif
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6552 char XOpenDisplay ();
6553 int
6554 main ()
6555 {
6556 XOpenDisplay ();
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563 (eval $ac_link) 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -z "$ac_c_werror_flag"
6571 || test ! -s conftest.err'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 :
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6589 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6590 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 ac_check_lib_save_LIBS=$LIBS
6594 LIBS="-ldnet $LIBS"
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601
6602 /* Override any gcc2 internal prototype to avoid an error. */
6603 #ifdef __cplusplus
6604 extern "C"
6605 #endif
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6608 char dnet_ntoa ();
6609 int
6610 main ()
6611 {
6612 dnet_ntoa ();
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>conftest.er1
6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -z "$ac_c_werror_flag"
6627 || test ! -s conftest.err'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try='test -s conftest$ac_exeext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 (eval $ac_try) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 ac_cv_lib_dnet_dnet_ntoa=yes
6640 else
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 ac_cv_lib_dnet_dnet_ntoa=no
6645 fi
6646 rm -f conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648 LIBS=$ac_check_lib_save_LIBS
6649 fi
6650 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6651 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6652 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6653 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6654 fi
6655
6656 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6657 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6658 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6659 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-ldnet_stub $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 #ifdef __cplusplus
6673 extern "C"
6674 #endif
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677 char dnet_ntoa ();
6678 int
6679 main ()
6680 {
6681 dnet_ntoa ();
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_c_werror_flag"
6696 || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try='test -s conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6712
6713 ac_cv_lib_dnet_stub_dnet_ntoa=no
6714 fi
6715 rm -f conftest.err conftest.$ac_objext \
6716 conftest$ac_exeext conftest.$ac_ext
6717 LIBS=$ac_check_lib_save_LIBS
6718 fi
6719 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6720 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6721 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6722 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6723 fi
6724
6725 fi
6726 fi
6727 rm -f conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
6729 LIBS="$ac_xsave_LIBS"
6730
6731 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6732 # to get the SysV transport functions.
6733 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6734 # needs -lnsl.
6735 # The nsl library prevents programs from opening the X display
6736 # on Irix 5.2, according to T.E. Dickey.
6737 # The functions gethostbyname, getservbyname, and inet_addr are
6738 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6739 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6740 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6741 if test "${ac_cv_func_gethostbyname+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6752 #define gethostbyname innocuous_gethostbyname
6753
6754 /* System header to define __stub macros and hopefully few prototypes,
6755 which can conflict with char gethostbyname (); below.
6756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6757 <limits.h> exists even on freestanding compilers. */
6758
6759 #ifdef __STDC__
6760 # include <limits.h>
6761 #else
6762 # include <assert.h>
6763 #endif
6764
6765 #undef gethostbyname
6766
6767 /* Override any gcc2 internal prototype to avoid an error. */
6768 #ifdef __cplusplus
6769 extern "C"
6770 {
6771 #endif
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6774 char gethostbyname ();
6775 /* The GNU C library defines this for functions which it implements
6776 to always fail with ENOSYS. Some functions are actually named
6777 something starting with __ and the normal name is an alias. */
6778 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6779 choke me
6780 #else
6781 char (*f) () = gethostbyname;
6782 #endif
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786
6787 int
6788 main ()
6789 {
6790 return f != gethostbyname;
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>conftest.er1
6798 ac_status=$?
6799 grep -v '^ *+' conftest.er1 >conftest.err
6800 rm -f conftest.er1
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -z "$ac_c_werror_flag"
6805 || test ! -s conftest.err'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest$ac_exeext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 ac_cv_func_gethostbyname=yes
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822 ac_cv_func_gethostbyname=no
6823 fi
6824 rm -f conftest.err conftest.$ac_objext \
6825 conftest$ac_exeext conftest.$ac_ext
6826 fi
6827 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6828 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6829
6830 if test $ac_cv_func_gethostbyname = no; then
6831 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6832 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6833 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 ac_check_lib_save_LIBS=$LIBS
6837 LIBS="-lnsl $LIBS"
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844
6845 /* Override any gcc2 internal prototype to avoid an error. */
6846 #ifdef __cplusplus
6847 extern "C"
6848 #endif
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851 char gethostbyname ();
6852 int
6853 main ()
6854 {
6855 gethostbyname ();
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_lib_nsl_gethostbyname=yes
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ac_cv_lib_nsl_gethostbyname=no
6888 fi
6889 rm -f conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 LIBS=$ac_check_lib_save_LIBS
6892 fi
6893 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6894 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6895 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6897 fi
6898
6899 if test $ac_cv_lib_nsl_gethostbyname = no; then
6900 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6901 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6902 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 ac_check_lib_save_LIBS=$LIBS
6906 LIBS="-lbsd $LIBS"
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913
6914 /* Override any gcc2 internal prototype to avoid an error. */
6915 #ifdef __cplusplus
6916 extern "C"
6917 #endif
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6920 char gethostbyname ();
6921 int
6922 main ()
6923 {
6924 gethostbyname ();
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest$ac_exeext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_lib_bsd_gethostbyname=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 ac_cv_lib_bsd_gethostbyname=no
6957 fi
6958 rm -f conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 LIBS=$ac_check_lib_save_LIBS
6961 fi
6962 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6963 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6964 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6966 fi
6967
6968 fi
6969 fi
6970
6971 # [email protected] says without -lsocket,
6972 # socket/setsockopt and other routines are undefined under SCO ODT
6973 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6974 # on later versions), says Simon Leinen: it contains gethostby*
6975 # variants that don't use the name server (or something). -lsocket
6976 # must be given before -lnsl if both are needed. We assume that
6977 # if connect needs -lnsl, so does gethostbyname.
6978 echo "$as_me:$LINENO: checking for connect" >&5
6979 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6980 if test "${ac_cv_func_connect+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6991 #define connect innocuous_connect
6992
6993 /* System header to define __stub macros and hopefully few prototypes,
6994 which can conflict with char connect (); below.
6995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996 <limits.h> exists even on freestanding compilers. */
6997
6998 #ifdef __STDC__
6999 # include <limits.h>
7000 #else
7001 # include <assert.h>
7002 #endif
7003
7004 #undef connect
7005
7006 /* Override any gcc2 internal prototype to avoid an error. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 {
7010 #endif
7011 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */
7013 char connect ();
7014 /* The GNU C library defines this for functions which it implements
7015 to always fail with ENOSYS. Some functions are actually named
7016 something starting with __ and the normal name is an alias. */
7017 #if defined (__stub_connect) || defined (__stub___connect)
7018 choke me
7019 #else
7020 char (*f) () = connect;
7021 #endif
7022 #ifdef __cplusplus
7023 }
7024 #endif
7025
7026 int
7027 main ()
7028 {
7029 return f != connect;
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 rm -f conftest.$ac_objext conftest$ac_exeext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036 (eval $ac_link) 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try='test -z "$ac_c_werror_flag"
7044 || test ! -s conftest.err'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; } &&
7050 { ac_try='test -s conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_func_connect=yes
7057 else
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061 ac_cv_func_connect=no
7062 fi
7063 rm -f conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext conftest.$ac_ext
7065 fi
7066 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7067 echo "${ECHO_T}$ac_cv_func_connect" >&6
7068
7069 if test $ac_cv_func_connect = no; then
7070 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7071 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7072 if test "${ac_cv_lib_socket_connect+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 ac_check_lib_save_LIBS=$LIBS
7076 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 #ifdef __cplusplus
7086 extern "C"
7087 #endif
7088 /* We use char because int might match the return type of a gcc2
7089 builtin and then its argument prototype would still apply. */
7090 char connect ();
7091 int
7092 main ()
7093 {
7094 connect ();
7095 ;
7096 return 0;
7097 }
7098 _ACEOF
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7101 (eval $ac_link) 2>conftest.er1
7102 ac_status=$?
7103 grep -v '^ *+' conftest.er1 >conftest.err
7104 rm -f conftest.er1
7105 cat conftest.err >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest$ac_exeext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_lib_socket_connect=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 ac_cv_lib_socket_connect=no
7127 fi
7128 rm -f conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
7130 LIBS=$ac_check_lib_save_LIBS
7131 fi
7132 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7133 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7134 if test $ac_cv_lib_socket_connect = yes; then
7135 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7136 fi
7137
7138 fi
7139
7140 # Guillermo Gomez says -lposix is necessary on A/UX.
7141 echo "$as_me:$LINENO: checking for remove" >&5
7142 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7143 if test "${ac_cv_func_remove+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7154 #define remove innocuous_remove
7155
7156 /* System header to define __stub macros and hopefully few prototypes,
7157 which can conflict with char remove (); below.
7158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7159 <limits.h> exists even on freestanding compilers. */
7160
7161 #ifdef __STDC__
7162 # include <limits.h>
7163 #else
7164 # include <assert.h>
7165 #endif
7166
7167 #undef remove
7168
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 #ifdef __cplusplus
7171 extern "C"
7172 {
7173 #endif
7174 /* We use char because int might match the return type of a gcc2
7175 builtin and then its argument prototype would still apply. */
7176 char remove ();
7177 /* The GNU C library defines this for functions which it implements
7178 to always fail with ENOSYS. Some functions are actually named
7179 something starting with __ and the normal name is an alias. */
7180 #if defined (__stub_remove) || defined (__stub___remove)
7181 choke me
7182 #else
7183 char (*f) () = remove;
7184 #endif
7185 #ifdef __cplusplus
7186 }
7187 #endif
7188
7189 int
7190 main ()
7191 {
7192 return f != remove;
7193 ;
7194 return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } &&
7206 { ac_try='test -z "$ac_c_werror_flag"
7207 || test ! -s conftest.err'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; } &&
7213 { ac_try='test -s conftest$ac_exeext'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 ac_cv_func_remove=yes
7220 else
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7223
7224 ac_cv_func_remove=no
7225 fi
7226 rm -f conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228 fi
7229 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7230 echo "${ECHO_T}$ac_cv_func_remove" >&6
7231
7232 if test $ac_cv_func_remove = no; then
7233 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7234 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7235 if test "${ac_cv_lib_posix_remove+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 ac_check_lib_save_LIBS=$LIBS
7239 LIBS="-lposix $LIBS"
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 #ifdef __cplusplus
7249 extern "C"
7250 #endif
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7253 char remove ();
7254 int
7255 main ()
7256 {
7257 remove ();
7258 ;
7259 return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7264 (eval $ac_link) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest$ac_exeext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_lib_posix_remove=yes
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 ac_cv_lib_posix_remove=no
7290 fi
7291 rm -f conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293 LIBS=$ac_check_lib_save_LIBS
7294 fi
7295 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7296 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7297 if test $ac_cv_lib_posix_remove = yes; then
7298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7299 fi
7300
7301 fi
7302
7303 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7304 echo "$as_me:$LINENO: checking for shmat" >&5
7305 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7306 if test "${ac_cv_func_shmat+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7317 #define shmat innocuous_shmat
7318
7319 /* System header to define __stub macros and hopefully few prototypes,
7320 which can conflict with char shmat (); below.
7321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322 <limits.h> exists even on freestanding compilers. */
7323
7324 #ifdef __STDC__
7325 # include <limits.h>
7326 #else
7327 # include <assert.h>
7328 #endif
7329
7330 #undef shmat
7331
7332 /* Override any gcc2 internal prototype to avoid an error. */
7333 #ifdef __cplusplus
7334 extern "C"
7335 {
7336 #endif
7337 /* We use char because int might match the return type of a gcc2
7338 builtin and then its argument prototype would still apply. */
7339 char shmat ();
7340 /* The GNU C library defines this for functions which it implements
7341 to always fail with ENOSYS. Some functions are actually named
7342 something starting with __ and the normal name is an alias. */
7343 #if defined (__stub_shmat) || defined (__stub___shmat)
7344 choke me
7345 #else
7346 char (*f) () = shmat;
7347 #endif
7348 #ifdef __cplusplus
7349 }
7350 #endif
7351
7352 int
7353 main ()
7354 {
7355 return f != shmat;
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try='test -z "$ac_c_werror_flag"
7370 || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try='test -s conftest$ac_exeext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_cv_func_shmat=yes
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 ac_cv_func_shmat=no
7388 fi
7389 rm -f conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7391 fi
7392 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7393 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7394
7395 if test $ac_cv_func_shmat = no; then
7396 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7397 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7398 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 ac_check_lib_save_LIBS=$LIBS
7402 LIBS="-lipc $LIBS"
7403 cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h. */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7409
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 #ifdef __cplusplus
7412 extern "C"
7413 #endif
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7416 char shmat ();
7417 int
7418 main ()
7419 {
7420 shmat ();
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7427 (eval $ac_link) 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -z "$ac_c_werror_flag"
7435 || test ! -s conftest.err'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; } &&
7441 { ac_try='test -s conftest$ac_exeext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 (eval $ac_try) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 ac_cv_lib_ipc_shmat=yes
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 ac_cv_lib_ipc_shmat=no
7453 fi
7454 rm -f conftest.err conftest.$ac_objext \
7455 conftest$ac_exeext conftest.$ac_ext
7456 LIBS=$ac_check_lib_save_LIBS
7457 fi
7458 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7459 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7460 if test $ac_cv_lib_ipc_shmat = yes; then
7461 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7462 fi
7463
7464 fi
7465 fi
7466
7467 # Check for libraries that X11R6 Xt/Xaw programs need.
7468 ac_save_LDFLAGS=$LDFLAGS
7469 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7470 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7471 # check for ICE first), but we must link in the order -lSM -lICE or
7472 # we get undefined symbols. So assume we have SM if we have ICE.
7473 # These have to be linked with before -lX11, unlike the other
7474 # libraries we check for below, so use a different variable.
7475 # John Interrante, Karl Berry
7476 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7477 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7478 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 ac_check_lib_save_LIBS=$LIBS
7482 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h. */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489
7490 /* Override any gcc2 internal prototype to avoid an error. */
7491 #ifdef __cplusplus
7492 extern "C"
7493 #endif
7494 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7496 char IceConnectionNumber ();
7497 int
7498 main ()
7499 {
7500 IceConnectionNumber ();
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7507 (eval $ac_link) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_cv_lib_ICE_IceConnectionNumber=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7531
7532 ac_cv_lib_ICE_IceConnectionNumber=no
7533 fi
7534 rm -f conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536 LIBS=$ac_check_lib_save_LIBS
7537 fi
7538 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7539 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7540 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7541 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7542 fi
7543
7544 LDFLAGS=$ac_save_LDFLAGS
7545
7546 fi
7547
7548 if test x"${have_x}" = "xyes"; then
7549 cat >>confdefs.h <<\_ACEOF
7550 #define HAVE_XT 1
7551 _ACEOF
7552
7553 fi
7554
7555
7556 #
7557 # Ok, lets find the tcl configuration
7558 # First, look for one uninstalled.
7559 # the alternative search directory is invoked by --with-tcl
7560 #
7561
7562 if test x"${no_tcl}" = x ; then
7563 # we reset no_tcl in case something fails here
7564 no_tcl=true
7565
7566 # Check whether --with-tcl or --without-tcl was given.
7567 if test "${with_tcl+set}" = set; then
7568 withval="$with_tcl"
7569 with_tclconfig=${withval}
7570 fi;
7571 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
7572 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
7573 if test x"${withval}" != xno ; then
7574 if test "${ac_cv_c_tclconfig+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577
7578
7579 # First check to see if --with-tcl was specified.
7580 if test x"${with_tclconfig}" != x ; then
7581 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7582 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
7583 else
7584 echo "$as_me:$LINENO: result: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
7585 echo "${ECHO_T}${with_tclconfig} directory doesn't contain tclConfig.sh" >&6
7586 fi
7587 fi
7588
7589 # then check for a private Tcl installation
7590 if test x"${ac_cv_c_tclconfig}" = x ; then
7591 for i in \
7592 ../tcl \
7593 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
7594 ../../tcl \
7595 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
7596 ../../../tcl \
7597 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
7598 if test -f "$i/unix/tclConfig.sh" ; then
7599 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
7600 break
7601 fi
7602 done
7603 fi
7604
7605 # check in a few common install locations
7606 if test x"${ac_cv_c_tclconfig}" = x ; then
7607 for i in `ls -d ${libdir} 2>/dev/null` \
7608 `ls -d /usr/local/lib 2>/dev/null` \
7609 `ls -d /usr/contrib/lib 2>/dev/null` \
7610 `ls -d /usr/lib 2>/dev/null` \
7611 ; do
7612 if test -f "$i/tclConfig.sh" ; then
7613 ac_cv_c_tclconfig=`(cd $i; pwd)`
7614 break
7615 fi
7616 done
7617 fi
7618
7619 # check in a few other private locations
7620 if test x"${ac_cv_c_tclconfig}" = x ; then
7621 for i in \
7622 ${srcdir}/../tcl \
7623 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
7624 if test -f "$i/unix/tclConfig.sh" ; then
7625 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
7626 break
7627 fi
7628 done
7629 fi
7630
7631 fi
7632
7633 else
7634 echo "$as_me:$LINENO: result: skipping Tcl configuration" >&5
7635 echo "${ECHO_T}skipping Tcl configuration" >&6
7636 ac_cv_c_tclconfig="none"
7637 fi
7638
7639 if test x"${ac_cv_c_tclconfig}" = x ; then
7640 TCL_BIN_DIR="# no Tcl configs found"
7641 echo "$as_me:$LINENO: result: can't find Tcl configuration definitions" >&5
7642 echo "${ECHO_T}can't find Tcl configuration definitions" >&6
7643 # no Tcl is OK egm 03/25/03
7644 # AC_MSG_WARN(Can't find Tcl configuration definitions)
7645 # exit 0
7646 elif test x"${ac_cv_c_tclconfig}" = xnone ; then
7647 TCL_BIN_DIR=""
7648 else
7649 no_tcl=
7650 TCL_BIN_DIR=${ac_cv_c_tclconfig}
7651 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
7652 echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
7653 fi
7654 fi
7655
7656 if test x"${no_tcl}" = x ; then
7657
7658 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
7659 echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
7660
7661 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
7662 echo "$as_me:$LINENO: result: loading" >&5
7663 echo "${ECHO_T}loading" >&6
7664 . $TCL_BIN_DIR/tclConfig.sh
7665 else
7666 echo "$as_me:$LINENO: result: file not found" >&5
7667 echo "${ECHO_T}file not found" >&6
7668 fi
7669
7670 #
7671 # If the TCL_BIN_DIR is the build directory (not the install directory),
7672 # then set the common variable name to the value of the build variables.
7673 # For example, the variable TCL_LIB_SPEC will be set to the value
7674 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
7675 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
7676 # installed and uninstalled version of Tcl.
7677 #
7678
7679 if test -f $TCL_BIN_DIR/Makefile ; then
7680 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
7681 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
7682 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
7683 fi
7684
7685 #
7686 # eval is required to do the TCL_DBGX substitution
7687 #
7688
7689 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
7690 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
7691 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
7692
7693 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
7694 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
7695 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 if test -r $TCL_PREFIX/include/tcl.h; then
7710 TCL_CFLAGS="$TCL_INCLUDE_SPEC"
7711 if test x"$DOSHARED" != x -a x"$TCL_SUPPORTS_STUBS" = x1; then
7712 TCL_LIBS="$TCL_STUB_LIB_SPEC"
7713 TCL_CFLAGS="$TCL_CFLAGS -DUSE_TCL_STUBS=1"
7714 echo "$as_me:$LINENO: result: Tcl support will utilize stubs library: $TCL_LIBS" >&5
7715 echo "${ECHO_T}Tcl support will utilize stubs library: $TCL_LIBS" >&6
7716 else
7717 TCL_LIBS="$TCL_LIB_SPEC"
7718 echo "$as_me:$LINENO: result: Tcl support will utilize library: $TCL_LIBS" >&5
7719 echo "${ECHO_T}Tcl support will utilize library: $TCL_LIBS" >&6
7720 fi
7721 cat >>confdefs.h <<\_ACEOF
7722 #define HAVE_TCL 1
7723 _ACEOF
7724
7725 else
7726 if test x"${with_tclconfig}" != x ; then
7727 TCL_CFLAGS="$TCL_INCLUDE_SPEC"
7728 TCL_LIBS="$TCL_LIB_SPEC"
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_TCL 1
7731 _ACEOF
7732
7733 echo "$as_me:$LINENO: result: warning: tcl.h not found with --with-tcl ... tcl build might fail" >&5
7734 echo "${ECHO_T}warning: tcl.h not found with --with-tcl ... tcl build might fail" >&6
7735 else
7736 echo "$as_me:$LINENO: result: $TCL_PREFIX/include/tcl.h not found ... use --with-tcl to build tcl explicitly" >&5
7737 echo "${ECHO_T}$TCL_PREFIX/include/tcl.h not found ... use --with-tcl to build tcl explicitly" >&6
7738 fi
7739 fi
7740 fi
7741
7742
7743
7744 echo "$as_me:$LINENO: checking for incorporation of thread support" >&5
7745 echo $ECHO_N "checking for incorporation of thread support... $ECHO_C" >&6
7746
7747 # Check whether --with-threads or --without-threads was given.
7748 if test "${with_threads+set}" = set; then
7749 withval="$with_threads"
7750 thr=1
7751 else
7752 thr=0
7753 fi;
7754 if test x"$thr" = x1 ; then
7755 echo "$as_me:$LINENO: result: yes" >&5
7756 echo "${ECHO_T}yes" >&6
7757 CFLAGS="$CFLAGS -D_REENTRANT"
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6
7761 fi
7762
7763 echo "$as_me:$LINENO: checking for gtk" >&5
7764 echo $ECHO_N "checking for gtk... $ECHO_C" >&6
7765
7766 # Check whether --with-gtk or --without-gtk was given.
7767 if test "${with_gtk+set}" = set; then
7768 withval="$with_gtk"
7769 havelib=1
7770 else
7771 havelib=0
7772 fi;
7773 if test x"$havelib" = x1 ; then
7774 echo "$as_me:$LINENO: result: yes ($withval)" >&5
7775 echo "${ECHO_T}yes ($withval)" >&6
7776 GTK_CFLAGS="`pkg-config gtk+-2.0 --cflags` -DHAVE_GTK=1"
7777 GTK_LIBS="`pkg-config gtk+-2.0 --libs`"
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_GTK 1
7780 _ACEOF
7781
7782 else
7783 GTK_CFLAGS=""
7784 GTK_LIBS=""
7785 echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7787 fi
7788
7789
7790
7791 # restore LDFLAGS
7792 LDFLAGS="$LDFLAGS $XLDFLAGS"
7793
7794 echo "$as_me:$LINENO: checking $host_os configuration" >&5
7795 echo $ECHO_N "checking $host_os configuration... $ECHO_C" >&6
7796 case $host_os in
7797 *cygwin*|*Cygwin* )
7798 cat >>confdefs.h <<\_ACEOF
7799 #define HAVE_CYGWIN 1
7800 _ACEOF
7801
7802 echo "$as_me:$LINENO: result: flagging Cygwin" >&5
7803 echo "${ECHO_T}flagging Cygwin" >&6
7804 ;;
7805 *mingw32*|*Mingw32*)
7806 CFLAGS="$CFLAGS -mconsole"
7807 EXTRA_LIBS="$EXTRA_LIBS -lwsock32"
7808 cat >>confdefs.h <<\_ACEOF
7809 #define HAVE_MINGW32 1
7810 _ACEOF
7811
7812 echo "$as_me:$LINENO: result: flagging MinGW" >&5
7813 echo "${ECHO_T}flagging MinGW" >&6
7814 ;;
7815 *darwin*|*Darwin*)
7816 LDFLAGS="$LDFLAGS $CFLAGS"
7817 if test x"$TCL_PREFIX" = x"/usr/local"; then
7818 TCL_CFLAGS=""
7819 echo "$as_me:$LINENO: result: removing -I/usr/local/include" >&5
7820 echo "${ECHO_T}removing -I/usr/local/include" >&6
7821 fi
7822 ;;
7823 *osf*|*Osf*)
7824 echo "$as_me:$LINENO: checking for snprintf in -ldb" >&5
7825 echo $ECHO_N "checking for snprintf in -ldb... $ECHO_C" >&6
7826 if test "${ac_cv_lib_db_snprintf+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-ldb $LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 #ifdef __cplusplus
7840 extern "C"
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844 char snprintf ();
7845 int
7846 main ()
7847 {
7848 snprintf ();
7849 ;
7850 return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag"
7863 || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest$ac_exeext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_lib_db_snprintf=yes
7876 else
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 ac_cv_lib_db_snprintf=no
7881 fi
7882 rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_db_snprintf" >&5
7887 echo "${ECHO_T}$ac_cv_lib_db_snprintf" >&6
7888 if test $ac_cv_lib_db_snprintf = yes; then
7889 EXTRA_LIBS="$EXTRA_LIBS -ldb"
7890 fi
7891
7892 ;;
7893 * )
7894 if test x"$fpic" = x"yes" ; then
7895 if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
7896 CFLAGS="$CFLAGS -fPIC"
7897 echo "$as_me:$LINENO: result: adding -fPIC to gcc" >&5
7898 echo "${ECHO_T}adding -fPIC to gcc" >&6
7899 else
7900 echo "$as_me:$LINENO: result: none" >&5
7901 echo "${ECHO_T}none" >&6
7902 fi
7903 else
7904 echo "$as_me:$LINENO: result: none" >&5
7905 echo "${ECHO_T}none" >&6
7906 fi
7907 ;;
7908 esac
7909
7910
7911
7912 ac_config_files="$ac_config_files Makefile"
7913
7914
7915 # generate pkg-config meta-data file
7916 ac_config_files="$ac_config_files xpa.pc"
7917
7918
7919 cat >confcache <<\_ACEOF
7920 # This file is a shell script that caches the results of configure
7921 # tests run on this system so they can be shared between configure
7922 # scripts and configure runs, see configure's option --config-cache.
7923 # It is not useful on other systems. If it contains results you don't
7924 # want to keep, you may remove or edit it.
7925 #
7926 # config.status only pays attention to the cache file if you give it
7927 # the --recheck option to rerun configure.
7928 #
7929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7931 # following values.
7932
7933 _ACEOF
7934
7935 # The following way of writing the cache mishandles newlines in values,
7936 # but we know of no workaround that is simple, portable, and efficient.
7937 # So, don't put newlines in cache variables' values.
7938 # Ultrix sh set writes to stderr and can't be redirected directly,
7939 # and sets the high bit in the cache file unless we assign to the vars.
7940 {
7941 (set) 2>&1 |
7942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7943 *ac_space=\ *)
7944 # `set' does not quote correctly, so add quotes (double-quote
7945 # substitution turns \\\\ into \\, and sed turns \\ into \).
7946 sed -n \
7947 "s/'/'\\\\''/g;
7948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7949 ;;
7950 *)
7951 # `set' quotes correctly as required by POSIX, so do not add quotes.
7952 sed -n \
7953 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7954 ;;
7955 esac;
7956 } |
7957 sed '
7958 t clear
7959 : clear
7960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7961 t end
7962 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7963 : end' >>confcache
7964 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7965 if test -w $cache_file; then
7966 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7967 cat confcache >$cache_file
7968 else
7969 echo "not updating unwritable cache $cache_file"
7970 fi
7971 fi
7972 rm -f confcache
7973
7974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7975 # Let make expand exec_prefix.
7976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7977
7978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7980 # trailing colons and then remove the whole line if VPATH becomes empty
7981 # (actually we leave an empty line to preserve line numbers).
7982 if test "x$srcdir" = x.; then
7983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7984 s/:*\$(srcdir):*/:/;
7985 s/:*\${srcdir}:*/:/;
7986 s/:*@srcdir@:*/:/;
7987 s/^\([^=]*=[ ]*\):*/\1/;
7988 s/:*$//;
7989 s/^[^=]*=[ ]*$//;
7990 }'
7991 fi
7992
7993 DEFS=-DHAVE_CONFIG_H
7994
7995 ac_libobjs=
7996 ac_ltlibobjs=
7997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7998 # 1. Remove the extension, and $U if already installed.
7999 ac_i=`echo "$ac_i" |
8000 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8001 # 2. Add them.
8002 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8003 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8004 done
8005 LIBOBJS=$ac_libobjs
8006
8007 LTLIBOBJS=$ac_ltlibobjs
8008
8009
8010
8011 : ${CONFIG_STATUS=./config.status}
8012 ac_clean_files_save=$ac_clean_files
8013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8016 cat >$CONFIG_STATUS <<_ACEOF
8017 #! $SHELL
8018 # Generated by $as_me.
8019 # Run this file to recreate the current configuration.
8020 # Compiler output produced by configure, useful for debugging
8021 # configure, is in config.log if it exists.
8022
8023 debug=false
8024 ac_cs_recheck=false
8025 ac_cs_silent=false
8026 SHELL=\${CONFIG_SHELL-$SHELL}
8027 _ACEOF
8028
8029 cat >>$CONFIG_STATUS <<\_ACEOF
8030 ## --------------------- ##
8031 ## M4sh Initialization. ##
8032 ## --------------------- ##
8033
8034 # Be Bourne compatible
8035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8036 emulate sh
8037 NULLCMD=:
8038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8039 # is contrary to our usage. Disable this feature.
8040 alias -g '${1+"$@"}'='"$@"'
8041 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8042 set -o posix
8043 fi
8044 DUALCASE=1; export DUALCASE # for MKS sh
8045
8046 # Support unset when possible.
8047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8048 as_unset=unset
8049 else
8050 as_unset=false
8051 fi
8052
8053
8054 # Work around bugs in pre-3.0 UWIN ksh.
8055 $as_unset ENV MAIL MAILPATH
8056 PS1='$ '
8057 PS2='> '
8058 PS4='+ '
8059
8060 # NLS nuisances.
8061 for as_var in \
8062 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8063 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8064 LC_TELEPHONE LC_TIME
8065 do
8066 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8067 eval $as_var=C; export $as_var
8068 else
8069 $as_unset $as_var
8070 fi
8071 done
8072
8073 # Required to use basename.
8074 if expr a : '\(a\)' >/dev/null 2>&1; then
8075 as_expr=expr
8076 else
8077 as_expr=false
8078 fi
8079
8080 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8081 as_basename=basename
8082 else
8083 as_basename=false
8084 fi
8085
8086
8087 # Name of the executable.
8088 as_me=`$as_basename "$0" ||
8089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8090 X"$0" : 'X\(//\)$' \| \
8091 X"$0" : 'X\(/\)$' \| \
8092 . : '\(.\)' 2>/dev/null ||
8093 echo X/"$0" |
8094 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8095 /^X\/\(\/\/\)$/{ s//\1/; q; }
8096 /^X\/\(\/\).*/{ s//\1/; q; }
8097 s/.*/./; q'`
8098
8099
8100 # PATH needs CR, and LINENO needs CR and PATH.
8101 # Avoid depending upon Character Ranges.
8102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8105 as_cr_digits='0123456789'
8106 as_cr_alnum=$as_cr_Letters$as_cr_digits
8107
8108 # The user is always right.
8109 if test "${PATH_SEPARATOR+set}" != set; then
8110 echo "#! /bin/sh" >conf$$.sh
8111 echo "exit 0" >>conf$$.sh
8112 chmod +x conf$$.sh
8113 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8114 PATH_SEPARATOR=';'
8115 else
8116 PATH_SEPARATOR=:
8117 fi
8118 rm -f conf$$.sh
8119 fi
8120
8121
8122 as_lineno_1=$LINENO
8123 as_lineno_2=$LINENO
8124 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8125 test "x$as_lineno_1" != "x$as_lineno_2" &&
8126 test "x$as_lineno_3" = "x$as_lineno_2" || {
8127 # Find who we are. Look in the path if we contain no path at all
8128 # relative or not.
8129 case $0 in
8130 *[\\/]* ) as_myself=$0 ;;
8131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8137 done
8138
8139 ;;
8140 esac
8141 # We did not find ourselves, most probably we were run as `sh COMMAND'
8142 # in which case we are not to be found in the path.
8143 if test "x$as_myself" = x; then
8144 as_myself=$0
8145 fi
8146 if test ! -f "$as_myself"; then
8147 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8148 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8149 { (exit 1); exit 1; }; }
8150 fi
8151 case $CONFIG_SHELL in
8152 '')
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8155 do
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
8158 for as_base in sh bash ksh sh5; do
8159 case $as_dir in
8160 /*)
8161 if ("$as_dir/$as_base" -c '
8162 as_lineno_1=$LINENO
8163 as_lineno_2=$LINENO
8164 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8165 test "x$as_lineno_1" != "x$as_lineno_2" &&
8166 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8167 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8168 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8169 CONFIG_SHELL=$as_dir/$as_base
8170 export CONFIG_SHELL
8171 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8172 fi;;
8173 esac
8174 done
8175 done
8176 ;;
8177 esac
8178
8179 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8180 # uniformly replaced by the line number. The first 'sed' inserts a
8181 # line-number line before each line; the second 'sed' does the real
8182 # work. The second script uses 'N' to pair each line-number line
8183 # with the numbered line, and appends trailing '-' during
8184 # substitution so that $LINENO is not a special case at line end.
8185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8186 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8187 sed '=' <$as_myself |
8188 sed '
8189 N
8190 s,$,-,
8191 : loop
8192 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8193 t loop
8194 s,-$,,
8195 s,^['$as_cr_digits']*\n,,
8196 ' >$as_me.lineno &&
8197 chmod +x $as_me.lineno ||
8198 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8199 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8200 { (exit 1); exit 1; }; }
8201
8202 # Don't try to exec as it changes $[0], causing all sort of problems
8203 # (the dirname of $[0] is not the place where we might find the
8204 # original and so on. Autoconf is especially sensible to this).
8205 . ./$as_me.lineno
8206 # Exit status is that of the last command.
8207 exit
8208 }
8209
8210
8211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8212 *c*,-n*) ECHO_N= ECHO_C='
8213 ' ECHO_T=' ' ;;
8214 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8215 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8216 esac
8217
8218 if expr a : '\(a\)' >/dev/null 2>&1; then
8219 as_expr=expr
8220 else
8221 as_expr=false
8222 fi
8223
8224 rm -f conf$$ conf$$.exe conf$$.file
8225 echo >conf$$.file
8226 if ln -s conf$$.file conf$$ 2>/dev/null; then
8227 # We could just check for DJGPP; but this test a) works b) is more generic
8228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8229 if test -f conf$$.exe; then
8230 # Don't use ln at all; we don't have any links
8231 as_ln_s='cp -p'
8232 else
8233 as_ln_s='ln -s'
8234 fi
8235 elif ln conf$$.file conf$$ 2>/dev/null; then
8236 as_ln_s=ln
8237 else
8238 as_ln_s='cp -p'
8239 fi
8240 rm -f conf$$ conf$$.exe conf$$.file
8241
8242 if mkdir -p . 2>/dev/null; then
8243 as_mkdir_p=:
8244 else
8245 test -d ./-p && rmdir ./-p
8246 as_mkdir_p=false
8247 fi
8248
8249 as_executable_p="test -f"
8250
8251 # Sed expression to map a string onto a valid CPP name.
8252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8253
8254 # Sed expression to map a string onto a valid variable name.
8255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8256
8257
8258 # IFS
8259 # We need space, tab and new line, in precisely that order.
8260 as_nl='
8261 '
8262 IFS=" $as_nl"
8263
8264 # CDPATH.
8265 $as_unset CDPATH
8266
8267 exec 6>&1
8268
8269 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8270 # report actual input values of CONFIG_FILES etc. instead of their
8271 # values after options handling. Logging --version etc. is OK.
8272 exec 5>>config.log
8273 {
8274 echo
8275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8276 ## Running $as_me. ##
8277 _ASBOX
8278 } >&5
8279 cat >&5 <<_CSEOF
8280
8281 This file was extended by xpa $as_me 2.1.18, which was
8282 generated by GNU Autoconf 2.59. Invocation command line was
8283
8284 CONFIG_FILES = $CONFIG_FILES
8285 CONFIG_HEADERS = $CONFIG_HEADERS
8286 CONFIG_LINKS = $CONFIG_LINKS
8287 CONFIG_COMMANDS = $CONFIG_COMMANDS
8288 $ $0 $@
8289
8290 _CSEOF
8291 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8292 echo >&5
8293 _ACEOF
8294
8295 # Files that config.status was made for.
8296 if test -n "$ac_config_files"; then
8297 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8298 fi
8299
8300 if test -n "$ac_config_headers"; then
8301 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8302 fi
8303
8304 if test -n "$ac_config_links"; then
8305 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8306 fi
8307
8308 if test -n "$ac_config_commands"; then
8309 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8310 fi
8311
8312 cat >>$CONFIG_STATUS <<\_ACEOF
8313
8314 ac_cs_usage="\
8315 \`$as_me' instantiates files from templates according to the
8316 current configuration.
8317
8318 Usage: $0 [OPTIONS] [FILE]...
8319
8320 -h, --help print this help, then exit
8321 -V, --version print version number, then exit
8322 -q, --quiet do not print progress messages
8323 -d, --debug don't remove temporary files
8324 --recheck update $as_me by reconfiguring in the same conditions
8325 --file=FILE[:TEMPLATE]
8326 instantiate the configuration file FILE
8327 --header=FILE[:TEMPLATE]
8328 instantiate the configuration header FILE
8329
8330 Configuration files:
8331 $config_files
8332
8333 Configuration headers:
8334 $config_headers
8335
8336 Report bugs to <[email protected]>."
8337 _ACEOF
8338
8339 cat >>$CONFIG_STATUS <<_ACEOF
8340 ac_cs_version="\\
8341 xpa config.status 2.1.18
8342 configured by $0, generated by GNU Autoconf 2.59,
8343 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8344
8345 Copyright (C) 2003 Free Software Foundation, Inc.
8346 This config.status script is free software; the Free Software Foundation
8347 gives unlimited permission to copy, distribute and modify it."
8348 srcdir=$srcdir
8349 _ACEOF
8350
8351 cat >>$CONFIG_STATUS <<\_ACEOF
8352 # If no file are specified by the user, then we need to provide default
8353 # value. By we need to know if files were specified by the user.
8354 ac_need_defaults=:
8355 while test $# != 0
8356 do
8357 case $1 in
8358 --*=*)
8359 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8360 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8361 ac_shift=:
8362 ;;
8363 -*)
8364 ac_option=$1
8365 ac_optarg=$2
8366 ac_shift=shift
8367 ;;
8368 *) # This is not an option, so the user has probably given explicit
8369 # arguments.
8370 ac_option=$1
8371 ac_need_defaults=false;;
8372 esac
8373
8374 case $ac_option in
8375 # Handling of the options.
8376 _ACEOF
8377 cat >>$CONFIG_STATUS <<\_ACEOF
8378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8379 ac_cs_recheck=: ;;
8380 --version | --vers* | -V )
8381 echo "$ac_cs_version"; exit 0 ;;
8382 --he | --h)
8383 # Conflict between --help and --header
8384 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8385 Try \`$0 --help' for more information." >&5
8386 echo "$as_me: error: ambiguous option: $1
8387 Try \`$0 --help' for more information." >&2;}
8388 { (exit 1); exit 1; }; };;
8389 --help | --hel | -h )
8390 echo "$ac_cs_usage"; exit 0 ;;
8391 --debug | --d* | -d )
8392 debug=: ;;
8393 --file | --fil | --fi | --f )
8394 $ac_shift
8395 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8396 ac_need_defaults=false;;
8397 --header | --heade | --head | --hea )
8398 $ac_shift
8399 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8400 ac_need_defaults=false;;
8401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8402 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8403 ac_cs_silent=: ;;
8404
8405 # This is an error.
8406 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8407 Try \`$0 --help' for more information." >&5
8408 echo "$as_me: error: unrecognized option: $1
8409 Try \`$0 --help' for more information." >&2;}
8410 { (exit 1); exit 1; }; } ;;
8411
8412 *) ac_config_targets="$ac_config_targets $1" ;;
8413
8414 esac
8415 shift
8416 done
8417
8418 ac_configure_extra_args=
8419
8420 if $ac_cs_silent; then
8421 exec 6>/dev/null
8422 ac_configure_extra_args="$ac_configure_extra_args --silent"
8423 fi
8424
8425 _ACEOF
8426 cat >>$CONFIG_STATUS <<_ACEOF
8427 if \$ac_cs_recheck; then
8428 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8429 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8430 fi
8431
8432 _ACEOF
8433
8434
8435
8436
8437
8438 cat >>$CONFIG_STATUS <<\_ACEOF
8439 for ac_config_target in $ac_config_targets
8440 do
8441 case "$ac_config_target" in
8442 # Handling of arguments.
8443 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8444 "xpa.pc" ) CONFIG_FILES="$CONFIG_FILES xpa.pc" ;;
8445 "conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
8446 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8447 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8448 { (exit 1); exit 1; }; };;
8449 esac
8450 done
8451
8452 # If the user did not use the arguments to specify the items to instantiate,
8453 # then the envvar interface is used. Set only those that are not.
8454 # We use the long form for the default assignment because of an extremely
8455 # bizarre bug on SunOS 4.1.3.
8456 if $ac_need_defaults; then
8457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8459 fi
8460
8461 # Have a temporary directory for convenience. Make it in the build tree
8462 # simply because there is no reason to put it here, and in addition,
8463 # creating and moving files from /tmp can sometimes cause problems.
8464 # Create a temporary directory, and hook for its removal unless debugging.
8465 $debug ||
8466 {
8467 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8468 trap '{ (exit 1); exit 1; }' 1 2 13 15
8469 }
8470
8471 # Create a (secure) tmp directory for tmp files.
8472
8473 {
8474 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8475 test -n "$tmp" && test -d "$tmp"
8476 } ||
8477 {
8478 tmp=./confstat$$-$RANDOM
8479 (umask 077 && mkdir $tmp)
8480 } ||
8481 {
8482 echo "$me: cannot create a temporary directory in ." >&2
8483 { (exit 1); exit 1; }
8484 }
8485
8486 _ACEOF
8487
8488 cat >>$CONFIG_STATUS <<_ACEOF
8489
8490 #
8491 # CONFIG_FILES section.
8492 #
8493
8494 # No need to generate the scripts if there are no CONFIG_FILES.
8495 # This happens for instance when ./config.status config.h
8496 if test -n "\$CONFIG_FILES"; then
8497 # Protect against being on the right side of a sed subst in config.status.
8498 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8499 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8500 s,@SHELL@,$SHELL,;t t
8501 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8502 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8503 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8504 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8505 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8506 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8507 s,@exec_prefix@,$exec_prefix,;t t
8508 s,@prefix@,$prefix,;t t
8509 s,@program_transform_name@,$program_transform_name,;t t
8510 s,@bindir@,$bindir,;t t
8511 s,@sbindir@,$sbindir,;t t
8512 s,@libexecdir@,$libexecdir,;t t
8513 s,@datadir@,$datadir,;t t
8514 s,@sysconfdir@,$sysconfdir,;t t
8515 s,@sharedstatedir@,$sharedstatedir,;t t
8516 s,@localstatedir@,$localstatedir,;t t
8517 s,@libdir@,$libdir,;t t
8518 s,@includedir@,$includedir,;t t
8519 s,@oldincludedir@,$oldincludedir,;t t
8520 s,@infodir@,$infodir,;t t
8521 s,@mandir@,$mandir,;t t
8522 s,@build_alias@,$build_alias,;t t
8523 s,@host_alias@,$host_alias,;t t
8524 s,@target_alias@,$target_alias,;t t
8525 s,@DEFS@,$DEFS,;t t
8526 s,@ECHO_C@,$ECHO_C,;t t
8527 s,@ECHO_N@,$ECHO_N,;t t
8528 s,@ECHO_T@,$ECHO_T,;t t
8529 s,@LIBS@,$LIBS,;t t
8530 s,@build@,$build,;t t
8531 s,@build_cpu@,$build_cpu,;t t
8532 s,@build_vendor@,$build_vendor,;t t
8533 s,@build_os@,$build_os,;t t
8534 s,@host@,$host,;t t
8535 s,@host_cpu@,$host_cpu,;t t
8536 s,@host_vendor@,$host_vendor,;t t
8537 s,@host_os@,$host_os,;t t
8538 s,@CC@,$CC,;t t
8539 s,@CFLAGS@,$CFLAGS,;t t
8540 s,@LDFLAGS@,$LDFLAGS,;t t
8541 s,@CPPFLAGS@,$CPPFLAGS,;t t
8542 s,@ac_ct_CC@,$ac_ct_CC,;t t
8543 s,@EXEEXT@,$EXEEXT,;t t
8544 s,@OBJEXT@,$OBJEXT,;t t
8545 s,@CPP@,$CPP,;t t
8546 s,@EGREP@,$EGREP,;t t
8547 s,@SZ_LONG@,$SZ_LONG,;t t
8548 s,@RANLIB@,$RANLIB,;t t
8549 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8550 s,@TLIB@,$TLIB,;t t
8551 s,@DOSHARED@,$DOSHARED,;t t
8552 s,@LLIB@,$LLIB,;t t
8553 s,@X_CFLAGS@,$X_CFLAGS,;t t
8554 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
8555 s,@X_LIBS@,$X_LIBS,;t t
8556 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
8557 s,@TCL_VERSION@,$TCL_VERSION,;t t
8558 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
8559 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
8560 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
8561 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
8562 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
8563 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
8564 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
8565 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
8566 s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
8567 s,@TCL_LIBS@,$TCL_LIBS,;t t
8568 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
8569 s,@GTK_LIBS@,$GTK_LIBS,;t t
8570 s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
8571 s,@LIBOBJS@,$LIBOBJS,;t t
8572 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8573 CEOF
8574
8575 _ACEOF
8576
8577 cat >>$CONFIG_STATUS <<\_ACEOF
8578 # Split the substitutions into bite-sized pieces for seds with
8579 # small command number limits, like on Digital OSF/1 and HP-UX.
8580 ac_max_sed_lines=48
8581 ac_sed_frag=1 # Number of current file.
8582 ac_beg=1 # First line for current file.
8583 ac_end=$ac_max_sed_lines # Line after last line for current file.
8584 ac_more_lines=:
8585 ac_sed_cmds=
8586 while $ac_more_lines; do
8587 if test $ac_beg -gt 1; then
8588 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8589 else
8590 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8591 fi
8592 if test ! -s $tmp/subs.frag; then
8593 ac_more_lines=false
8594 else
8595 # The purpose of the label and of the branching condition is to
8596 # speed up the sed processing (if there are no `@' at all, there
8597 # is no need to browse any of the substitutions).
8598 # These are the two extra sed commands mentioned above.
8599 (echo ':t
8600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8601 if test -z "$ac_sed_cmds"; then
8602 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8603 else
8604 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8605 fi
8606 ac_sed_frag=`expr $ac_sed_frag + 1`
8607 ac_beg=$ac_end
8608 ac_end=`expr $ac_end + $ac_max_sed_lines`
8609 fi
8610 done
8611 if test -z "$ac_sed_cmds"; then
8612 ac_sed_cmds=cat
8613 fi
8614 fi # test -n "$CONFIG_FILES"
8615
8616 _ACEOF
8617 cat >>$CONFIG_STATUS <<\_ACEOF
8618 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8620 case $ac_file in
8621 - | *:- | *:-:* ) # input from stdin
8622 cat >$tmp/stdin
8623 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8625 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8627 * ) ac_file_in=$ac_file.in ;;
8628 esac
8629
8630 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8631 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8632 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8633 X"$ac_file" : 'X\(//\)[^/]' \| \
8634 X"$ac_file" : 'X\(//\)$' \| \
8635 X"$ac_file" : 'X\(/\)' \| \
8636 . : '\(.\)' 2>/dev/null ||
8637 echo X"$ac_file" |
8638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8640 /^X\(\/\/\)$/{ s//\1/; q; }
8641 /^X\(\/\).*/{ s//\1/; q; }
8642 s/.*/./; q'`
8643 { if $as_mkdir_p; then
8644 mkdir -p "$ac_dir"
8645 else
8646 as_dir="$ac_dir"
8647 as_dirs=
8648 while test ! -d "$as_dir"; do
8649 as_dirs="$as_dir $as_dirs"
8650 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8652 X"$as_dir" : 'X\(//\)[^/]' \| \
8653 X"$as_dir" : 'X\(//\)$' \| \
8654 X"$as_dir" : 'X\(/\)' \| \
8655 . : '\(.\)' 2>/dev/null ||
8656 echo X"$as_dir" |
8657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8659 /^X\(\/\/\)$/{ s//\1/; q; }
8660 /^X\(\/\).*/{ s//\1/; q; }
8661 s/.*/./; q'`
8662 done
8663 test ! -n "$as_dirs" || mkdir $as_dirs
8664 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8665 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8666 { (exit 1); exit 1; }; }; }
8667
8668 ac_builddir=.
8669
8670 if test "$ac_dir" != .; then
8671 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8672 # A "../" for each directory in $ac_dir_suffix.
8673 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8674 else
8675 ac_dir_suffix= ac_top_builddir=
8676 fi
8677
8678 case $srcdir in
8679 .) # No --srcdir option. We are building in place.
8680 ac_srcdir=.
8681 if test -z "$ac_top_builddir"; then
8682 ac_top_srcdir=.
8683 else
8684 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8685 fi ;;
8686 [\\/]* | ?:[\\/]* ) # Absolute path.
8687 ac_srcdir=$srcdir$ac_dir_suffix;
8688 ac_top_srcdir=$srcdir ;;
8689 *) # Relative path.
8690 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8691 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8692 esac
8693
8694 # Do not use `cd foo && pwd` to compute absolute paths, because
8695 # the directories may not exist.
8696 case `pwd` in
8697 .) ac_abs_builddir="$ac_dir";;
8698 *)
8699 case "$ac_dir" in
8700 .) ac_abs_builddir=`pwd`;;
8701 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8702 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8703 esac;;
8704 esac
8705 case $ac_abs_builddir in
8706 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8707 *)
8708 case ${ac_top_builddir}. in
8709 .) ac_abs_top_builddir=$ac_abs_builddir;;
8710 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8711 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8712 esac;;
8713 esac
8714 case $ac_abs_builddir in
8715 .) ac_abs_srcdir=$ac_srcdir;;
8716 *)
8717 case $ac_srcdir in
8718 .) ac_abs_srcdir=$ac_abs_builddir;;
8719 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8720 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8721 esac;;
8722 esac
8723 case $ac_abs_builddir in
8724 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8725 *)
8726 case $ac_top_srcdir in
8727 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8728 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8729 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8730 esac;;
8731 esac
8732
8733
8734
8735 if test x"$ac_file" != x-; then
8736 { echo "$as_me:$LINENO: creating $ac_file" >&5
8737 echo "$as_me: creating $ac_file" >&6;}
8738 rm -f "$ac_file"
8739 fi
8740 # Let's still pretend it is `configure' which instantiates (i.e., don't
8741 # use $as_me), people would be surprised to read:
8742 # /* config.h. Generated by config.status. */
8743 if test x"$ac_file" = x-; then
8744 configure_input=
8745 else
8746 configure_input="$ac_file. "
8747 fi
8748 configure_input=$configure_input"Generated from `echo $ac_file_in |
8749 sed 's,.*/,,'` by configure."
8750
8751 # First look for the input files in the build tree, otherwise in the
8752 # src tree.
8753 ac_file_inputs=`IFS=:
8754 for f in $ac_file_in; do
8755 case $f in
8756 -) echo $tmp/stdin ;;
8757 [\\/$]*)
8758 # Absolute (can't be DOS-style, as IFS=:)
8759 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8760 echo "$as_me: error: cannot find input file: $f" >&2;}
8761 { (exit 1); exit 1; }; }
8762 echo "$f";;
8763 *) # Relative
8764 if test -f "$f"; then
8765 # Build tree
8766 echo "$f"
8767 elif test -f "$srcdir/$f"; then
8768 # Source tree
8769 echo "$srcdir/$f"
8770 else
8771 # /dev/null tree
8772 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8773 echo "$as_me: error: cannot find input file: $f" >&2;}
8774 { (exit 1); exit 1; }; }
8775 fi;;
8776 esac
8777 done` || { (exit 1); exit 1; }
8778 _ACEOF
8779 cat >>$CONFIG_STATUS <<_ACEOF
8780 sed "$ac_vpsub
8781 $extrasub
8782 _ACEOF
8783 cat >>$CONFIG_STATUS <<\_ACEOF
8784 :t
8785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8786 s,@configure_input@,$configure_input,;t t
8787 s,@srcdir@,$ac_srcdir,;t t
8788 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8789 s,@top_srcdir@,$ac_top_srcdir,;t t
8790 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8791 s,@builddir@,$ac_builddir,;t t
8792 s,@abs_builddir@,$ac_abs_builddir,;t t
8793 s,@top_builddir@,$ac_top_builddir,;t t
8794 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8795 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8796 rm -f $tmp/stdin
8797 if test x"$ac_file" != x-; then
8798 mv $tmp/out $ac_file
8799 else
8800 cat $tmp/out
8801 rm -f $tmp/out
8802 fi
8803
8804 done
8805 _ACEOF
8806 cat >>$CONFIG_STATUS <<\_ACEOF
8807
8808 #
8809 # CONFIG_HEADER section.
8810 #
8811
8812 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8813 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8814 #
8815 # ac_d sets the value in "#define NAME VALUE" lines.
8816 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8817 ac_dB='[ ].*$,\1#\2'
8818 ac_dC=' '
8819 ac_dD=',;t'
8820 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8821 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8822 ac_uB='$,\1#\2define\3'
8823 ac_uC=' '
8824 ac_uD=',;t'
8825
8826 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8828 case $ac_file in
8829 - | *:- | *:-:* ) # input from stdin
8830 cat >$tmp/stdin
8831 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8833 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8834 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8835 * ) ac_file_in=$ac_file.in ;;
8836 esac
8837
8838 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8839 echo "$as_me: creating $ac_file" >&6;}
8840
8841 # First look for the input files in the build tree, otherwise in the
8842 # src tree.
8843 ac_file_inputs=`IFS=:
8844 for f in $ac_file_in; do
8845 case $f in
8846 -) echo $tmp/stdin ;;
8847 [\\/$]*)
8848 # Absolute (can't be DOS-style, as IFS=:)
8849 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8850 echo "$as_me: error: cannot find input file: $f" >&2;}
8851 { (exit 1); exit 1; }; }
8852 # Do quote $f, to prevent DOS paths from being IFS'd.
8853 echo "$f";;
8854 *) # Relative
8855 if test -f "$f"; then
8856 # Build tree
8857 echo "$f"
8858 elif test -f "$srcdir/$f"; then
8859 # Source tree
8860 echo "$srcdir/$f"
8861 else
8862 # /dev/null tree
8863 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8864 echo "$as_me: error: cannot find input file: $f" >&2;}
8865 { (exit 1); exit 1; }; }
8866 fi;;
8867 esac
8868 done` || { (exit 1); exit 1; }
8869 # Remove the trailing spaces.
8870 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8871
8872 _ACEOF
8873
8874 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8875 # `conftest.undefs', that substitutes the proper values into
8876 # config.h.in to produce config.h. The first handles `#define'
8877 # templates, and the second `#undef' templates.
8878 # And first: Protect against being on the right side of a sed subst in
8879 # config.status. Protect against being in an unquoted here document
8880 # in config.status.
8881 rm -f conftest.defines conftest.undefs
8882 # Using a here document instead of a string reduces the quoting nightmare.
8883 # Putting comments in sed scripts is not portable.
8884 #
8885 # `end' is used to avoid that the second main sed command (meant for
8886 # 0-ary CPP macros) applies to n-ary macro definitions.
8887 # See the Autoconf documentation for `clear'.
8888 cat >confdef2sed.sed <<\_ACEOF
8889 s/[\\&,]/\\&/g
8890 s,[\\$`],\\&,g
8891 t clear
8892 : clear
8893 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8894 t end
8895 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8896 : end
8897 _ACEOF
8898 # If some macros were called several times there might be several times
8899 # the same #defines, which is useless. Nevertheless, we may not want to
8900 # sort them, since we want the *last* AC-DEFINE to be honored.
8901 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8902 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8903 rm -f confdef2sed.sed
8904
8905 # This sed command replaces #undef with comments. This is necessary, for
8906 # example, in the case of _POSIX_SOURCE, which is predefined and required
8907 # on some systems where configure will not decide to define it.
8908 cat >>conftest.undefs <<\_ACEOF
8909 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8910 _ACEOF
8911
8912 # Break up conftest.defines because some shells have a limit on the size
8913 # of here documents, and old seds have small limits too (100 cmds).
8914 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8915 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8916 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8917 echo ' :' >>$CONFIG_STATUS
8918 rm -f conftest.tail
8919 while grep . conftest.defines >/dev/null
8920 do
8921 # Write a limited-size here document to $tmp/defines.sed.
8922 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8923 # Speed up: don't consider the non `#define' lines.
8924 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8925 # Work around the forget-to-reset-the-flag bug.
8926 echo 't clr' >>$CONFIG_STATUS
8927 echo ': clr' >>$CONFIG_STATUS
8928 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8929 echo 'CEOF
8930 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8931 rm -f $tmp/in
8932 mv $tmp/out $tmp/in
8933 ' >>$CONFIG_STATUS
8934 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8935 rm -f conftest.defines
8936 mv conftest.tail conftest.defines
8937 done
8938 rm -f conftest.defines
8939 echo ' fi # grep' >>$CONFIG_STATUS
8940 echo >>$CONFIG_STATUS
8941
8942 # Break up conftest.undefs because some shells have a limit on the size
8943 # of here documents, and old seds have small limits too (100 cmds).
8944 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8945 rm -f conftest.tail
8946 while grep . conftest.undefs >/dev/null
8947 do
8948 # Write a limited-size here document to $tmp/undefs.sed.
8949 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8950 # Speed up: don't consider the non `#undef'
8951 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8952 # Work around the forget-to-reset-the-flag bug.
8953 echo 't clr' >>$CONFIG_STATUS
8954 echo ': clr' >>$CONFIG_STATUS
8955 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8956 echo 'CEOF
8957 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8958 rm -f $tmp/in
8959 mv $tmp/out $tmp/in
8960 ' >>$CONFIG_STATUS
8961 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8962 rm -f conftest.undefs
8963 mv conftest.tail conftest.undefs
8964 done
8965 rm -f conftest.undefs
8966
8967 cat >>$CONFIG_STATUS <<\_ACEOF
8968 # Let's still pretend it is `configure' which instantiates (i.e., don't
8969 # use $as_me), people would be surprised to read:
8970 # /* config.h. Generated by config.status. */
8971 if test x"$ac_file" = x-; then
8972 echo "/* Generated by configure. */" >$tmp/config.h
8973 else
8974 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8975 fi
8976 cat $tmp/in >>$tmp/config.h
8977 rm -f $tmp/in
8978 if test x"$ac_file" != x-; then
8979 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8980 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8981 echo "$as_me: $ac_file is unchanged" >&6;}
8982 else
8983 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8985 X"$ac_file" : 'X\(//\)[^/]' \| \
8986 X"$ac_file" : 'X\(//\)$' \| \
8987 X"$ac_file" : 'X\(/\)' \| \
8988 . : '\(.\)' 2>/dev/null ||
8989 echo X"$ac_file" |
8990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8992 /^X\(\/\/\)$/{ s//\1/; q; }
8993 /^X\(\/\).*/{ s//\1/; q; }
8994 s/.*/./; q'`
8995 { if $as_mkdir_p; then
8996 mkdir -p "$ac_dir"
8997 else
8998 as_dir="$ac_dir"
8999 as_dirs=
9000 while test ! -d "$as_dir"; do
9001 as_dirs="$as_dir $as_dirs"
9002 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9004 X"$as_dir" : 'X\(//\)[^/]' \| \
9005 X"$as_dir" : 'X\(//\)$' \| \
9006 X"$as_dir" : 'X\(/\)' \| \
9007 . : '\(.\)' 2>/dev/null ||
9008 echo X"$as_dir" |
9009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9011 /^X\(\/\/\)$/{ s//\1/; q; }
9012 /^X\(\/\).*/{ s//\1/; q; }
9013 s/.*/./; q'`
9014 done
9015 test ! -n "$as_dirs" || mkdir $as_dirs
9016 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9017 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9018 { (exit 1); exit 1; }; }; }
9019
9020 rm -f $ac_file
9021 mv $tmp/config.h $ac_file
9022 fi
9023 else
9024 cat $tmp/config.h
9025 rm -f $tmp/config.h
9026 fi
9027 done
9028 _ACEOF
9029
9030 cat >>$CONFIG_STATUS <<\_ACEOF
9031
9032 { (exit 0); exit 0; }
9033 _ACEOF
9034 chmod +x $CONFIG_STATUS
9035 ac_clean_files=$ac_clean_files_save
9036
9037
9038 # configure is writing to config.log, and then calls config.status.
9039 # config.status does its own redirection, appending to config.log.
9040 # Unfortunately, on DOS this fails, as config.log is still kept open
9041 # by configure, so config.status won't be able to write to it; its
9042 # output is simply discarded. So we exec the FD to /dev/null,
9043 # effectively closing config.log, so it can be properly (re)opened and
9044 # appended to by config.status. When coming back to configure, we
9045 # need to make the FD available again.
9046 if test "$no_create" != yes; then
9047 ac_cs_success=:
9048 ac_config_status_args=
9049 test "$silent" = yes &&
9050 ac_config_status_args="$ac_config_status_args --quiet"
9051 exec 5>/dev/null
9052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9053 exec 5>>config.log
9054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9055 # would make configure fail if this is the last instruction.
9056 $ac_cs_success || { (exit 1); exit 1; }
9057 fi
9058