Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for dmucs 0.5.
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='dmucs'
271 PACKAGE_TARNAME='dmucs'
272 PACKAGE_VERSION='0.5'
273 PACKAGE_STRING='dmucs 0.5'
274 PACKAGE_BUGREPORT='[email protected]'
275
276 ac_unique_file="dmucs_msg.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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP 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_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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_CC_set=${CC+set}
772 ac_env_CC_value=$CC
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures dmucs 0.5 to adapt to many kinds of systems.
792
793 Usage: $0 [OPTION]... [VAR=VALUE]...
794
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
797
798 Defaults for the options are specified in brackets.
799
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810
811 _ACEOF
812
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
819
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
824
825 For better control, use the options below.
826
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
841
842 cat <<\_ACEOF
843
844 Program names:
845 --program-prefix=PREFIX prepend PREFIX to installed program names
846 --program-suffix=SUFFIX append SUFFIX to installed program names
847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of dmucs 0.5:";;
854 esac
855 cat <<\_ACEOF
856
857 Optional Features:
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862
863 Some influential environment variables:
864 CXX C++ compiler command
865 CXXFLAGS C++ compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CC C compiler command
871 CFLAGS C compiler flags
872 CPP C preprocessor
873
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
876
877 Report bugs to <[email protected]>.
878 _ACEOF
879 fi
880
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
883 ac_popdir=`pwd`
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
886 ac_builddir=.
887
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893 ac_dir_suffix= ac_top_builddir=
894 fi
895
896 case $srcdir in
897 .) # No --srcdir option. We are building in place.
898 ac_srcdir=.
899 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=.
901 else
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 fi ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
907 *) # Relative path.
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
911
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
914 case `pwd` in
915 .) ac_abs_builddir="$ac_dir";;
916 *)
917 case "$ac_dir" in
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *)
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
934 *)
935 case $ac_srcdir in
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *)
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 esac;;
949 esac
950
951 cd $ac_dir
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
954 echo
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
957 echo
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
961 echo
962 $ac_configure --help
963 else
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 fi
966 cd $ac_popdir
967 done
968 fi
969
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972 cat <<\_ACEOF
973 dmucs configure 0.5
974 generated by GNU Autoconf 2.59
975
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980 exit 0
981 fi
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
986
987 It was created by dmucs $as_me 0.5, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
989
990 $ $0 $@
991
992 _ACEOF
993 {
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
998
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015
1016 _ASUNAME
1017
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1020 do
1021 IFS=$as_save_IFS
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1024 done
1025
1026 } >&5
1027
1028 cat >&5 <<_ACEOF
1029
1030
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1034
1035 _ACEOF
1036
1037
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1049 do
1050 for ac_arg
1051 do
1052 case $ac_arg in
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 continue ;;
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 esac
1060 case $ac_pass in
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 2)
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1066 else
1067 case $ac_arg in
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 esac
1075 ;;
1076 -* ) ac_must_keep_next=true ;;
1077 esac
1078 fi
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1081 ac_sep=" "
1082 ;;
1083 esac
1084 done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1096 {
1097 echo
1098
1099 cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104 echo
1105 # The following way of writing the cache mishandles newlines in values,
1106 {
1107 (set) 2>&1 |
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 *ac_space=\ *)
1110 sed -n \
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 ;;
1114 *)
1115 sed -n \
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ;;
1118 esac;
1119 }
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_vars
1129 do
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1134
1135 if test -n "$ac_subst_files"; then
1136 cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_files
1143 do
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1148 fi
1149
1150 if test -s confdefs.h; then
1151 cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156 echo
1157 sed "/^$/d" confdefs.h | sort
1158 echo
1159 fi
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1163 } >&5
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 exit $exit_status
1167 ' 0
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1172
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1177
1178 # Predefined preprocessor variables.
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1203
1204
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 else
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 fi
1213 fi
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1219 . "$ac_site_file"
1220 fi
1221 done
1222
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229 case $cache_file in
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1232 esac
1233 fi
1234 else
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237 >$cache_file
1238 fi
1239
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1250 set,)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,set)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,);;
1259 *)
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1268 fi;;
1269 esac
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1272 case $ac_new_val in
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1276 esac
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 esac
1281 fi
1282 done
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1289 fi
1290
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
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 ac_config_headers="$ac_config_headers config.h"
1325
1326 am__api_version="1.9"
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1341 fi
1342 done
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1347 fi
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352 # Find a good install program. We prefer a C program (faster),
1353 # so one script is as good as another. But avoid the broken or
1354 # incompatible versions:
1355 # SysV /etc/install, /usr/sbin/install
1356 # SunOS /usr/etc/install
1357 # IRIX /sbin/install
1358 # AIX /bin/install
1359 # AmigaOS /C/install, which installs bootblocks on floppy discs
1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363 # OS/2's system install, which has a completely different semantic
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1367 if test -z "$INSTALL"; then
1368 if test "${ac_cv_path_install+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1373 do
1374 IFS=$as_save_IFS
1375 test -z "$as_dir" && as_dir=.
1376 # Account for people who put trailing slashes in PATH elements.
1377 case $as_dir/ in
1378 ./ | .// | /cC/* | \
1379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1380 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1381 /usr/ucb/* ) ;;
1382 *)
1383 # OSF1 and SCO ODT 3.0 have their own names for install.
1384 # Don't use installbsd from OSF since it installs stuff as root
1385 # by default.
1386 for ac_prog in ginstall scoinst install; do
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1389 if test $ac_prog = install &&
1390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1391 # AIX install. It has an incompatible calling convention.
1392 :
1393 elif test $ac_prog = install &&
1394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1395 # program-specific install script used by HP pwplus--don't use.
1396 :
1397 else
1398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1399 break 3
1400 fi
1401 fi
1402 done
1403 done
1404 ;;
1405 esac
1406 done
1407
1408
1409 fi
1410 if test "${ac_cv_path_install+set}" = set; then
1411 INSTALL=$ac_cv_path_install
1412 else
1413 # As a last resort, use the slow shell script. We don't cache a
1414 # path for INSTALL within a source directory, because that will
1415 # break other packages using the cache if that directory is
1416 # removed, or if the path is relative.
1417 INSTALL=$ac_install_sh
1418 fi
1419 fi
1420 echo "$as_me:$LINENO: result: $INSTALL" >&5
1421 echo "${ECHO_T}$INSTALL" >&6
1422
1423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1424 # It thinks the first close brace ends the variable substitution.
1425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1426
1427 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1428
1429 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1430
1431 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1432 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1433 # Just in case
1434 sleep 1
1435 echo timestamp > conftest.file
1436 # Do `set' in a subshell so we don't clobber the current shell's
1437 # arguments. Must try -L first in case configure is actually a
1438 # symlink; some systems play weird games with the mod time of symlinks
1439 # (eg FreeBSD returns the mod time of the symlink's containing
1440 # directory).
1441 if (
1442 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1443 if test "$*" = "X"; then
1444 # -L didn't work.
1445 set X `ls -t $srcdir/configure conftest.file`
1446 fi
1447 rm -f conftest.file
1448 if test "$*" != "X $srcdir/configure conftest.file" \
1449 && test "$*" != "X conftest.file $srcdir/configure"; then
1450
1451 # If neither matched, then we have a broken ls. This can happen
1452 # if, for instance, CONFIG_SHELL is bash and it inherits a
1453 # broken ls alias from the environment. This has actually
1454 # happened. Such a system could not be considered "sane".
1455 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1456 alias in your environment" >&5
1457 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1458 alias in your environment" >&2;}
1459 { (exit 1); exit 1; }; }
1460 fi
1461
1462 test "$2" = conftest.file
1463 )
1464 then
1465 # Ok.
1466 :
1467 else
1468 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1469 Check your system clock" >&5
1470 echo "$as_me: error: newly created file is older than distributed files!
1471 Check your system clock" >&2;}
1472 { (exit 1); exit 1; }; }
1473 fi
1474 echo "$as_me:$LINENO: result: yes" >&5
1475 echo "${ECHO_T}yes" >&6
1476 test "$program_prefix" != NONE &&
1477 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1478 # Use a double $ so make ignores it.
1479 test "$program_suffix" != NONE &&
1480 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1481 # Double any \ or $. echo might interpret backslashes.
1482 # By default was `s,x,x', remove it if useless.
1483 cat <<\_ACEOF >conftest.sed
1484 s/[\\$]/&&/g;s/;s,x,x,$//
1485 _ACEOF
1486 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1487 rm conftest.sed
1488
1489 # expand $ac_aux_dir to an absolute path
1490 am_aux_dir=`cd $ac_aux_dir && pwd`
1491
1492 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1493 # Use eval to expand $SHELL
1494 if eval "$MISSING --run true"; then
1495 am_missing_run="$MISSING --run "
1496 else
1497 am_missing_run=
1498 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1499 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1500 fi
1501
1502 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1503 # We used to keeping the `.' as first argument, in order to
1504 # allow $(mkdir_p) to be used without argument. As in
1505 # $(mkdir_p) $(somedir)
1506 # where $(somedir) is conditionally defined. However this is wrong
1507 # for two reasons:
1508 # 1. if the package is installed by a user who cannot write `.'
1509 # make install will fail,
1510 # 2. the above comment should most certainly read
1511 # $(mkdir_p) $(DESTDIR)$(somedir)
1512 # so it does not work when $(somedir) is undefined and
1513 # $(DESTDIR) is not.
1514 # To support the latter case, we have to write
1515 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1516 # so the `.' trick is pointless.
1517 mkdir_p='mkdir -p --'
1518 else
1519 # On NextStep and OpenStep, the `mkdir' command does not
1520 # recognize any option. It will interpret all options as
1521 # directories to create, and then abort because `.' already
1522 # exists.
1523 for d in ./-p ./--version;
1524 do
1525 test -d $d && rmdir $d
1526 done
1527 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1528 if test -f "$ac_aux_dir/mkinstalldirs"; then
1529 mkdir_p='$(mkinstalldirs)'
1530 else
1531 mkdir_p='$(install_sh) -d'
1532 fi
1533 fi
1534
1535 for ac_prog in gawk mawk nawk awk
1536 do
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 if test -n "$AWK"; then
1545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_AWK="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1557 fi
1558 done
1559 done
1560
1561 fi
1562 fi
1563 AWK=$ac_cv_prog_AWK
1564 if test -n "$AWK"; then
1565 echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1570 fi
1571
1572 test -n "$AWK" && break
1573 done
1574
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 cat >conftest.make <<\_ACEOF
1582 all:
1583 @echo 'ac_maketemp="$(MAKE)"'
1584 _ACEOF
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588 eval ac_cv_prog_make_${ac_make}_set=yes
1589 else
1590 eval ac_cv_prog_make_${ac_make}_set=no
1591 fi
1592 rm -f conftest.make
1593 fi
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595 echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1597 SET_MAKE=
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 SET_MAKE="MAKE=${MAKE-make}"
1602 fi
1603
1604 rm -rf .tst 2>/dev/null
1605 mkdir .tst 2>/dev/null
1606 if test -d .tst; then
1607 am__leading_dot=.
1608 else
1609 am__leading_dot=_
1610 fi
1611 rmdir .tst 2>/dev/null
1612
1613 # test to see if srcdir already configured
1614 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1615 test -f $srcdir/config.status; then
1616 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1617 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1618 { (exit 1); exit 1; }; }
1619 fi
1620
1621 # test whether we have cygpath
1622 if test -z "$CYGPATH_W"; then
1623 if (cygpath --version) >/dev/null 2>/dev/null; then
1624 CYGPATH_W='cygpath -w'
1625 else
1626 CYGPATH_W=echo
1627 fi
1628 fi
1629
1630
1631 # Define the identity of the package.
1632 PACKAGE='dmucs'
1633 VERSION='0.5'
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE "$PACKAGE"
1638 _ACEOF
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define VERSION "$VERSION"
1643 _ACEOF
1644
1645 # Some tools Automake needs.
1646
1647 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1648
1649
1650 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1651
1652
1653 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1654
1655
1656 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1657
1658
1659 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1660
1661 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1662
1663 # Installed binaries are usually stripped using `strip' when the user
1664 # run `make install-strip'. However `strip' might not be the right
1665 # tool to use in cross-compilation environments, therefore Automake
1666 # will honor the `STRIP' environment variable to overrule this program.
1667 if test "$cross_compiling" != no; then
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1670 set dummy ${ac_tool_prefix}strip; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_STRIP+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676 if test -n "$STRIP"; then
1677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690 done
1691 done
1692
1693 fi
1694 fi
1695 STRIP=$ac_cv_prog_STRIP
1696 if test -n "$STRIP"; then
1697 echo "$as_me:$LINENO: result: $STRIP" >&5
1698 echo "${ECHO_T}$STRIP" >&6
1699 else
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1702 fi
1703
1704 fi
1705 if test -z "$ac_cv_prog_STRIP"; then
1706 ac_ct_STRIP=$STRIP
1707 # Extract the first word of "strip", so it can be a program name with args.
1708 set dummy strip; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 if test -n "$ac_ct_STRIP"; then
1715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_STRIP="strip"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728 done
1729 done
1730
1731 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1732 fi
1733 fi
1734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1735 if test -n "$ac_ct_STRIP"; then
1736 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1737 echo "${ECHO_T}$ac_ct_STRIP" >&6
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743 STRIP=$ac_ct_STRIP
1744 else
1745 STRIP="$ac_cv_prog_STRIP"
1746 fi
1747
1748 fi
1749 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1750
1751 # We need awk for the "check" target. The system "awk" is bad on
1752 # some platforms.
1753 # Always define AMTAR for backward compatibility.
1754
1755 AMTAR=${AMTAR-"${am_missing_run}tar"}
1756
1757 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1758
1759
1760
1761
1762
1763
1764 # Checks for programs.
1765 ac_ext=cc
1766 ac_cpp='$CXXCPP $CPPFLAGS'
1767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1770 if test -n "$ac_tool_prefix"; then
1771 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1772 do
1773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CXX+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 if test -n "$CXX"; then
1781 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1785 do
1786 IFS=$as_save_IFS
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794 done
1795 done
1796
1797 fi
1798 fi
1799 CXX=$ac_cv_prog_CXX
1800 if test -n "$CXX"; then
1801 echo "$as_me:$LINENO: result: $CXX" >&5
1802 echo "${ECHO_T}$CXX" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 fi
1807
1808 test -n "$CXX" && break
1809 done
1810 fi
1811 if test -z "$CXX"; then
1812 ac_ct_CXX=$CXX
1813 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1814 do
1815 # Extract the first word of "$ac_prog", so it can be a program name with args.
1816 set dummy $ac_prog; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$ac_ct_CXX"; then
1823 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CXX="$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836 done
1837 done
1838
1839 fi
1840 fi
1841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1842 if test -n "$ac_ct_CXX"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1844 echo "${ECHO_T}$ac_ct_CXX" >&6
1845 else
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1848 fi
1849
1850 test -n "$ac_ct_CXX" && break
1851 done
1852 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1853
1854 CXX=$ac_ct_CXX
1855 fi
1856
1857
1858 # Provide some information about the compiler.
1859 echo "$as_me:$LINENO:" \
1860 "checking for C++ compiler version" >&5
1861 ac_compiler=`set X $ac_compile; echo $2`
1862 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1863 (eval $ac_compiler --version </dev/null >&5) 2>&5
1864 ac_status=$?
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }
1867 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1868 (eval $ac_compiler -v </dev/null >&5) 2>&5
1869 ac_status=$?
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }
1872 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1873 (eval $ac_compiler -V </dev/null >&5) 2>&5
1874 ac_status=$?
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }
1877
1878 cat >conftest.$ac_ext <<_ACEOF
1879 /* confdefs.h. */
1880 _ACEOF
1881 cat confdefs.h >>conftest.$ac_ext
1882 cat >>conftest.$ac_ext <<_ACEOF
1883 /* end confdefs.h. */
1884
1885 int
1886 main ()
1887 {
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 ac_clean_files_save=$ac_clean_files
1894 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1895 # Try to create an executable without -o first, disregard a.out.
1896 # It will help us diagnose broken compilers, and finding out an intuition
1897 # of exeext.
1898 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1899 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1900 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1901 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1902 (eval $ac_link_default) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; then
1906 # Find the output, starting from the most likely. This scheme is
1907 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1908 # resort.
1909
1910 # Be careful to initialize this variable, since it used to be cached.
1911 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1912 ac_cv_exeext=
1913 # b.out is created by i960 compilers.
1914 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1915 do
1916 test -f "$ac_file" || continue
1917 case $ac_file in
1918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1919 ;;
1920 conftest.$ac_ext )
1921 # This is the source file.
1922 ;;
1923 [ab].out )
1924 # We found the default executable, but exeext='' is most
1925 # certainly right.
1926 break;;
1927 *.* )
1928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1929 # FIXME: I believe we export ac_cv_exeext for Libtool,
1930 # but it would be cool to find out if it's true. Does anybody
1931 # maintain Libtool? --akim.
1932 export ac_cv_exeext
1933 break;;
1934 * )
1935 break;;
1936 esac
1937 done
1938 else
1939 echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: C++ compiler cannot create executables
1945 See \`config.log' for more details." >&2;}
1946 { (exit 77); exit 77; }; }
1947 fi
1948
1949 ac_exeext=$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_file" >&5
1951 echo "${ECHO_T}$ac_file" >&6
1952
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1956 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1957 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1958 # If not cross compiling, check that we can run a simple program.
1959 if test "$cross_compiling" != yes; then
1960 if { ac_try='./$ac_file'
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 (eval $ac_try) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1966 cross_compiling=no
1967 else
1968 if test "$cross_compiling" = maybe; then
1969 cross_compiling=yes
1970 else
1971 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: cannot run C++ compiled programs.
1975 If you meant to cross compile, use \`--host'.
1976 See \`config.log' for more details." >&2;}
1977 { (exit 1); exit 1; }; }
1978 fi
1979 fi
1980 fi
1981 echo "$as_me:$LINENO: result: yes" >&5
1982 echo "${ECHO_T}yes" >&6
1983
1984 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1985 ac_clean_files=$ac_clean_files_save
1986 # Check the compiler produces executables we can run. If not, either
1987 # the compiler is broken, or we cross compile.
1988 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1989 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1990 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1991 echo "${ECHO_T}$cross_compiling" >&6
1992
1993 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1994 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1996 (eval $ac_link) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2001 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2002 # work properly (i.e., refer to `conftest.exe'), while it won't with
2003 # `rm'.
2004 for ac_file in conftest.exe conftest conftest.*; do
2005 test -f "$ac_file" || continue
2006 case $ac_file in
2007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2008 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2009 export ac_cv_exeext
2010 break;;
2011 * ) break;;
2012 esac
2013 done
2014 else
2015 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&5
2017 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2018 See \`config.log' for more details." >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021
2022 rm -f conftest$ac_cv_exeext
2023 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2024 echo "${ECHO_T}$ac_cv_exeext" >&6
2025
2026 rm -f conftest.$ac_ext
2027 EXEEXT=$ac_cv_exeext
2028 ac_exeext=$EXEEXT
2029 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2030 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2031 if test "${ac_cv_objext+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 cat >conftest.$ac_ext <<_ACEOF
2035 /* confdefs.h. */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2040
2041 int
2042 main ()
2043 {
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 rm -f conftest.o conftest.obj
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2056 case $ac_file in
2057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2058 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2059 break;;
2060 esac
2061 done
2062 else
2063 echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&5
2068 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2069 See \`config.log' for more details." >&2;}
2070 { (exit 1); exit 1; }; }
2071 fi
2072
2073 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2074 fi
2075 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2076 echo "${ECHO_T}$ac_cv_objext" >&6
2077 OBJEXT=$ac_cv_objext
2078 ac_objext=$OBJEXT
2079 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2080 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2081 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 cat >conftest.$ac_ext <<_ACEOF
2085 /* confdefs.h. */
2086 _ACEOF
2087 cat confdefs.h >>conftest.$ac_ext
2088 cat >>conftest.$ac_ext <<_ACEOF
2089 /* end confdefs.h. */
2090
2091 int
2092 main ()
2093 {
2094 #ifndef __GNUC__
2095 choke me
2096 #endif
2097
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2105 ac_status=$?
2106 grep -v '^ *+' conftest.er1 >conftest.err
2107 rm -f conftest.er1
2108 cat conftest.err >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
2111 { ac_try='test -z "$ac_cxx_werror_flag"
2112 || test ! -s conftest.err'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; } &&
2118 { ac_try='test -s conftest.$ac_objext'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2124 ac_compiler_gnu=yes
2125 else
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 ac_compiler_gnu=no
2130 fi
2131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2133
2134 fi
2135 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2136 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2137 GXX=`test $ac_compiler_gnu = yes && echo yes`
2138 ac_test_CXXFLAGS=${CXXFLAGS+set}
2139 ac_save_CXXFLAGS=$CXXFLAGS
2140 CXXFLAGS="-g"
2141 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2143 if test "${ac_cv_prog_cxx_g+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h. */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2152
2153 int
2154 main ()
2155 {
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2164 ac_status=$?
2165 grep -v '^ *+' conftest.er1 >conftest.err
2166 rm -f conftest.er1
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_cxx_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cxx_g=yes
2184 else
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 ac_cv_prog_cxx_g=no
2189 fi
2190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2191 fi
2192 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2194 if test "$ac_test_CXXFLAGS" = set; then
2195 CXXFLAGS=$ac_save_CXXFLAGS
2196 elif test $ac_cv_prog_cxx_g = yes; then
2197 if test "$GXX" = yes; then
2198 CXXFLAGS="-g -O2"
2199 else
2200 CXXFLAGS="-g"
2201 fi
2202 else
2203 if test "$GXX" = yes; then
2204 CXXFLAGS="-O2"
2205 else
2206 CXXFLAGS=
2207 fi
2208 fi
2209 for ac_declaration in \
2210 '' \
2211 'extern "C" void std::exit (int) throw (); using std::exit;' \
2212 'extern "C" void std::exit (int); using std::exit;' \
2213 'extern "C" void exit (int) throw ();' \
2214 'extern "C" void exit (int);' \
2215 'void exit (int);'
2216 do
2217 cat >conftest.$ac_ext <<_ACEOF
2218 /* confdefs.h. */
2219 _ACEOF
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2223 $ac_declaration
2224 #include <stdlib.h>
2225 int
2226 main ()
2227 {
2228 exit (42);
2229 ;
2230 return 0;
2231 }
2232 _ACEOF
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>conftest.er1
2236 ac_status=$?
2237 grep -v '^ *+' conftest.er1 >conftest.err
2238 rm -f conftest.er1
2239 cat conftest.err >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -z "$ac_cxx_werror_flag"
2243 || test ! -s conftest.err'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 (eval $ac_try) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 :
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 continue
2261 fi
2262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h. */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2269 $ac_declaration
2270 int
2271 main ()
2272 {
2273 exit (42);
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>conftest.er1
2281 ac_status=$?
2282 grep -v '^ *+' conftest.er1 >conftest.err
2283 rm -f conftest.er1
2284 cat conftest.err >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -z "$ac_cxx_werror_flag"
2288 || test ! -s conftest.err'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2300 break
2301 else
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2304
2305 fi
2306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307 done
2308 rm -f conftest*
2309 if test -n "$ac_declaration"; then
2310 echo '#ifdef __cplusplus' >>confdefs.h
2311 echo $ac_declaration >>confdefs.h
2312 echo '#endif' >>confdefs.h
2313 fi
2314
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 DEPDIR="${am__leading_dot}deps"
2321
2322 ac_config_commands="$ac_config_commands depfiles"
2323
2324
2325 am_make=${MAKE-make}
2326 cat > confinc << 'END'
2327 am__doit:
2328 @echo done
2329 .PHONY: am__doit
2330 END
2331 # If we don't find an include directive, just comment out the code.
2332 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2333 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2334 am__include="#"
2335 am__quote=
2336 _am_result=none
2337 # First try GNU make style include.
2338 echo "include confinc" > confmf
2339 # We grep out `Entering directory' and `Leaving directory'
2340 # messages which can occur if `w' ends up in MAKEFLAGS.
2341 # In particular we don't look at `^make:' because GNU make might
2342 # be invoked under some other name (usually "gmake"), in which
2343 # case it prints its new name instead of `make'.
2344 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2345 am__include=include
2346 am__quote=
2347 _am_result=GNU
2348 fi
2349 # Now try BSD make style include.
2350 if test "$am__include" = "#"; then
2351 echo '.include "confinc"' > confmf
2352 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2353 am__include=.include
2354 am__quote="\""
2355 _am_result=BSD
2356 fi
2357 fi
2358
2359
2360 echo "$as_me:$LINENO: result: $_am_result" >&5
2361 echo "${ECHO_T}$_am_result" >&6
2362 rm -f confinc confmf
2363
2364 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2365 if test "${enable_dependency_tracking+set}" = set; then
2366 enableval="$enable_dependency_tracking"
2367
2368 fi;
2369 if test "x$enable_dependency_tracking" != xno; then
2370 am_depcomp="$ac_aux_dir/depcomp"
2371 AMDEPBACKSLASH='\'
2372 fi
2373
2374
2375 if test "x$enable_dependency_tracking" != xno; then
2376 AMDEP_TRUE=
2377 AMDEP_FALSE='#'
2378 else
2379 AMDEP_TRUE='#'
2380 AMDEP_FALSE=
2381 fi
2382
2383
2384
2385
2386 depcc="$CXX" am_compiler_list=
2387
2388 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2389 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2390 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2394 # We make a subdir and do the tests there. Otherwise we can end up
2395 # making bogus files that we don't know about and never remove. For
2396 # instance it was reported that on HP-UX the gcc test will end up
2397 # making a dummy file named `D' -- because `-MD' means `put the output
2398 # in D'.
2399 mkdir conftest.dir
2400 # Copy depcomp to subdir because otherwise we won't find it if we're
2401 # using a relative directory.
2402 cp "$am_depcomp" conftest.dir
2403 cd conftest.dir
2404 # We will build objects and dependencies in a subdirectory because
2405 # it helps to detect inapplicable dependency modes. For instance
2406 # both Tru64's cc and ICC support -MD to output dependencies as a
2407 # side effect of compilation, but ICC will put the dependencies in
2408 # the current directory while Tru64 will put them in the object
2409 # directory.
2410 mkdir sub
2411
2412 am_cv_CXX_dependencies_compiler_type=none
2413 if test "$am_compiler_list" = ""; then
2414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2415 fi
2416 for depmode in $am_compiler_list; do
2417 # Setup a source with many dependencies, because some compilers
2418 # like to wrap large dependency lists on column 80 (with \), and
2419 # we should not choose a depcomp mode which is confused by this.
2420 #
2421 # We need to recreate these files for each test, as the compiler may
2422 # overwrite some of them when testing with obscure command lines.
2423 # This happens at least with the AIX C compiler.
2424 : > sub/conftest.c
2425 for i in 1 2 3 4 5 6; do
2426 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2427 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2428 # Solaris 8's {/usr,}/bin/sh.
2429 touch sub/conftst$i.h
2430 done
2431 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2432
2433 case $depmode in
2434 nosideeffect)
2435 # after this tag, mechanisms are not by side-effect, so they'll
2436 # only be used when explicitly requested
2437 if test "x$enable_dependency_tracking" = xyes; then
2438 continue
2439 else
2440 break
2441 fi
2442 ;;
2443 none) break ;;
2444 esac
2445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2446 # mode. It turns out that the SunPro C++ compiler does not properly
2447 # handle `-M -o', and we need to detect this.
2448 if depmode=$depmode \
2449 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2450 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2451 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2452 >/dev/null 2>conftest.err &&
2453 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2454 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2455 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2456 # icc doesn't choke on unknown options, it will just issue warnings
2457 # or remarks (even with -Werror). So we grep stderr for any message
2458 # that says an option was ignored or not supported.
2459 # When given -MP, icc 7.0 and 7.1 complain thusly:
2460 # icc: Command line warning: ignoring option '-M'; no argument required
2461 # The diagnosis changed in icc 8.0:
2462 # icc: Command line remark: option '-MP' not supported
2463 if (grep 'ignoring option' conftest.err ||
2464 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2465 am_cv_CXX_dependencies_compiler_type=$depmode
2466 break
2467 fi
2468 fi
2469 done
2470
2471 cd ..
2472 rm -rf conftest.dir
2473 else
2474 am_cv_CXX_dependencies_compiler_type=none
2475 fi
2476
2477 fi
2478 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2479 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2480 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2481
2482
2483
2484 if
2485 test "x$enable_dependency_tracking" != xno \
2486 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2487 am__fastdepCXX_TRUE=
2488 am__fastdepCXX_FALSE='#'
2489 else
2490 am__fastdepCXX_TRUE='#'
2491 am__fastdepCXX_FALSE=
2492 fi
2493
2494
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2502 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2503 echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2505 if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522 done
2523 done
2524
2525 fi
2526 fi
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529 echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6
2531 else
2532 echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2534 fi
2535
2536 fi
2537 if test -z "$ac_cv_prog_CC"; then
2538 ac_ct_CC=$CC
2539 # Extract the first word of "gcc", so it can be a program name with args.
2540 set dummy gcc; ac_word=$2
2541 echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 if test -n "$ac_ct_CC"; then
2547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_ac_ct_CC="gcc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560 done
2561 done
2562
2563 fi
2564 fi
2565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2566 if test -n "$ac_ct_CC"; then
2567 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2568 echo "${ECHO_T}$ac_ct_CC" >&6
2569 else
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572 fi
2573
2574 CC=$ac_ct_CC
2575 else
2576 CC="$ac_cv_prog_CC"
2577 fi
2578
2579 if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}cc; ac_word=$2
2583 echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598 ac_cv_prog_CC="${ac_tool_prefix}cc"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2601 fi
2602 done
2603 done
2604
2605 fi
2606 fi
2607 CC=$ac_cv_prog_CC
2608 if test -n "$CC"; then
2609 echo "$as_me:$LINENO: result: $CC" >&5
2610 echo "${ECHO_T}$CC" >&6
2611 else
2612 echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2614 fi
2615
2616 fi
2617 if test -z "$ac_cv_prog_CC"; then
2618 ac_ct_CC=$CC
2619 # Extract the first word of "cc", so it can be a program name with args.
2620 set dummy cc; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$ac_ct_CC"; then
2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_CC="cc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642
2643 fi
2644 fi
2645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646 if test -n "$ac_ct_CC"; then
2647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2648 echo "${ECHO_T}$ac_ct_CC" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2652 fi
2653
2654 CC=$ac_ct_CC
2655 else
2656 CC="$ac_cv_prog_CC"
2657 fi
2658
2659 fi
2660 if test -z "$CC"; then
2661 # Extract the first word of "cc", so it can be a program name with args.
2662 set dummy cc; ac_word=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 ac_prog_rejected=no
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2680 ac_prog_rejected=yes
2681 continue
2682 fi
2683 ac_cv_prog_CC="cc"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687 done
2688 done
2689
2690 if test $ac_prog_rejected = yes; then
2691 # We found a bogon in the path, so make sure we never use it.
2692 set dummy $ac_cv_prog_CC
2693 shift
2694 if test $# != 0; then
2695 # We chose a different compiler from the bogus one.
2696 # However, it has the same basename, so the bogon will be chosen
2697 # first if we set CC to just the basename; use the full file name.
2698 shift
2699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2700 fi
2701 fi
2702 fi
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 echo "$as_me:$LINENO: result: $CC" >&5
2707 echo "${ECHO_T}$CC" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2711 fi
2712
2713 fi
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 for ac_prog in cl
2717 do
2718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_CC+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746 echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6
2748 else
2749 echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6
2751 fi
2752
2753 test -n "$CC" && break
2754 done
2755 fi
2756 if test -z "$CC"; then
2757 ac_ct_CC=$CC
2758 for ac_prog in cl
2759 do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_CC="$ac_prog"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783
2784 fi
2785 fi
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 echo "${ECHO_T}$ac_ct_CC" >&6
2790 else
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2793 fi
2794
2795 test -n "$ac_ct_CC" && break
2796 done
2797
2798 CC=$ac_ct_CC
2799 fi
2800
2801 fi
2802
2803
2804 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: no acceptable C compiler found in \$PATH
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2809
2810 # Provide some information about the compiler.
2811 echo "$as_me:$LINENO:" \
2812 "checking for C compiler version" >&5
2813 ac_compiler=`set X $ac_compile; echo $2`
2814 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2815 (eval $ac_compiler --version </dev/null >&5) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2820 (eval $ac_compiler -v </dev/null >&5) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2825 (eval $ac_compiler -V </dev/null >&5) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829
2830 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2831 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2832 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841
2842 int
2843 main ()
2844 {
2845 #ifndef __GNUC__
2846 choke me
2847 #endif
2848
2849 ;
2850 return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -z "$ac_c_werror_flag"
2863 || test ! -s conftest.err'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_compiler_gnu=yes
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 ac_compiler_gnu=no
2881 fi
2882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2884
2885 fi
2886 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2887 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2888 GCC=`test $ac_compiler_gnu = yes && echo yes`
2889 ac_test_CFLAGS=${CFLAGS+set}
2890 ac_save_CFLAGS=$CFLAGS
2891 CFLAGS="-g"
2892 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2893 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2894 if test "${ac_cv_prog_cc_g+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h. */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2903
2904 int
2905 main ()
2906 {
2907
2908 ;
2909 return 0;
2910 }
2911 _ACEOF
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914 (eval $ac_compile) 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -z "$ac_c_werror_flag"
2922 || test ! -s conftest.err'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_prog_cc_g=yes
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 ac_cv_prog_cc_g=no
2940 fi
2941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2942 fi
2943 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2944 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2945 if test "$ac_test_CFLAGS" = set; then
2946 CFLAGS=$ac_save_CFLAGS
2947 elif test $ac_cv_prog_cc_g = yes; then
2948 if test "$GCC" = yes; then
2949 CFLAGS="-g -O2"
2950 else
2951 CFLAGS="-g"
2952 fi
2953 else
2954 if test "$GCC" = yes; then
2955 CFLAGS="-O2"
2956 else
2957 CFLAGS=
2958 fi
2959 fi
2960 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2961 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2962 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 ac_cv_prog_cc_stdc=no
2966 ac_save_CC=$CC
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #include <stdarg.h>
2974 #include <stdio.h>
2975 #include <sys/types.h>
2976 #include <sys/stat.h>
2977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2978 struct buf { int x; };
2979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2980 static char *e (p, i)
2981 char **p;
2982 int i;
2983 {
2984 return p[i];
2985 }
2986 static char *f (char * (*g) (char **, int), char **p, ...)
2987 {
2988 char *s;
2989 va_list v;
2990 va_start (v,p);
2991 s = g (p, va_arg (v,int));
2992 va_end (v);
2993 return s;
2994 }
2995
2996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2997 function prototypes and stuff, but not '\xHH' hex character constants.
2998 These don't provoke an error unfortunately, instead are silently treated
2999 as 'x'. The following induces an error, until -std1 is added to get
3000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3001 array size at least. It's necessary to write '\x00'==0 to get something
3002 that's true only with -std1. */
3003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3004
3005 int test (int i, double x);
3006 struct s1 {int (*f) (int a);};
3007 struct s2 {int (*f) (double a);};
3008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3009 int argc;
3010 char **argv;
3011 int
3012 main ()
3013 {
3014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 # Don't try gcc -ansi; that turns off useful extensions and
3020 # breaks some systems' header files.
3021 # AIX -qlanglvl=ansi
3022 # Ultrix and OSF/1 -std1
3023 # HP-UX 10.20 and later -Ae
3024 # HP-UX older versions -Aa -D_HPUX_SOURCE
3025 # SVR4 -Xc -D__EXTENSIONS__
3026 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3027 do
3028 CC="$ac_save_CC $ac_arg"
3029 rm -f conftest.$ac_objext
3030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag"
3039 || test ! -s conftest.err'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cc_stdc=$ac_arg
3052 break
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 fi
3058 rm -f conftest.err conftest.$ac_objext
3059 done
3060 rm -f conftest.$ac_ext conftest.$ac_objext
3061 CC=$ac_save_CC
3062
3063 fi
3064
3065 case "x$ac_cv_prog_cc_stdc" in
3066 x|xno)
3067 echo "$as_me:$LINENO: result: none needed" >&5
3068 echo "${ECHO_T}none needed" >&6 ;;
3069 *)
3070 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3071 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3072 CC="$CC $ac_cv_prog_cc_stdc" ;;
3073 esac
3074
3075 # Some people use a C++ compiler to compile C. Since we use `exit',
3076 # in C++ we need to declare it. In case someone uses the same compiler
3077 # for both compiling C and C++ we need to have the C++ compiler decide
3078 # the declaration of exit, since it's the most demanding environment.
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #ifndef __cplusplus
3081 choke me
3082 #endif
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086 (eval $ac_compile) 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag"
3094 || test ! -s conftest.err'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 for ac_declaration in \
3107 '' \
3108 'extern "C" void std::exit (int) throw (); using std::exit;' \
3109 'extern "C" void std::exit (int); using std::exit;' \
3110 'extern "C" void exit (int) throw ();' \
3111 'extern "C" void exit (int);' \
3112 'void exit (int);'
3113 do
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 $ac_declaration
3121 #include <stdlib.h>
3122 int
3123 main ()
3124 {
3125 exit (42);
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 :
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 continue
3158 fi
3159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 $ac_declaration
3167 int
3168 main ()
3169 {
3170 exit (42);
3171 ;
3172 return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177 (eval $ac_compile) 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag"
3185 || test ! -s conftest.err'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 break
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 fi
3203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3204 done
3205 rm -f conftest*
3206 if test -n "$ac_declaration"; then
3207 echo '#ifdef __cplusplus' >>confdefs.h
3208 echo $ac_declaration >>confdefs.h
3209 echo '#endif' >>confdefs.h
3210 fi
3211
3212 else
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216 fi
3217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_ext=c
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223
3224 depcc="$CC" am_compiler_list=
3225
3226 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3227 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3228 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3232 # We make a subdir and do the tests there. Otherwise we can end up
3233 # making bogus files that we don't know about and never remove. For
3234 # instance it was reported that on HP-UX the gcc test will end up
3235 # making a dummy file named `D' -- because `-MD' means `put the output
3236 # in D'.
3237 mkdir conftest.dir
3238 # Copy depcomp to subdir because otherwise we won't find it if we're
3239 # using a relative directory.
3240 cp "$am_depcomp" conftest.dir
3241 cd conftest.dir
3242 # We will build objects and dependencies in a subdirectory because
3243 # it helps to detect inapplicable dependency modes. For instance
3244 # both Tru64's cc and ICC support -MD to output dependencies as a
3245 # side effect of compilation, but ICC will put the dependencies in
3246 # the current directory while Tru64 will put them in the object
3247 # directory.
3248 mkdir sub
3249
3250 am_cv_CC_dependencies_compiler_type=none
3251 if test "$am_compiler_list" = ""; then
3252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3253 fi
3254 for depmode in $am_compiler_list; do
3255 # Setup a source with many dependencies, because some compilers
3256 # like to wrap large dependency lists on column 80 (with \), and
3257 # we should not choose a depcomp mode which is confused by this.
3258 #
3259 # We need to recreate these files for each test, as the compiler may
3260 # overwrite some of them when testing with obscure command lines.
3261 # This happens at least with the AIX C compiler.
3262 : > sub/conftest.c
3263 for i in 1 2 3 4 5 6; do
3264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3266 # Solaris 8's {/usr,}/bin/sh.
3267 touch sub/conftst$i.h
3268 done
3269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3270
3271 case $depmode in
3272 nosideeffect)
3273 # after this tag, mechanisms are not by side-effect, so they'll
3274 # only be used when explicitly requested
3275 if test "x$enable_dependency_tracking" = xyes; then
3276 continue
3277 else
3278 break
3279 fi
3280 ;;
3281 none) break ;;
3282 esac
3283 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3284 # mode. It turns out that the SunPro C++ compiler does not properly
3285 # handle `-M -o', and we need to detect this.
3286 if depmode=$depmode \
3287 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3289 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3290 >/dev/null 2>conftest.err &&
3291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3292 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3294 # icc doesn't choke on unknown options, it will just issue warnings
3295 # or remarks (even with -Werror). So we grep stderr for any message
3296 # that says an option was ignored or not supported.
3297 # When given -MP, icc 7.0 and 7.1 complain thusly:
3298 # icc: Command line warning: ignoring option '-M'; no argument required
3299 # The diagnosis changed in icc 8.0:
3300 # icc: Command line remark: option '-MP' not supported
3301 if (grep 'ignoring option' conftest.err ||
3302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3303 am_cv_CC_dependencies_compiler_type=$depmode
3304 break
3305 fi
3306 fi
3307 done
3308
3309 cd ..
3310 rm -rf conftest.dir
3311 else
3312 am_cv_CC_dependencies_compiler_type=none
3313 fi
3314
3315 fi
3316 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3317 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3319
3320
3321
3322 if
3323 test "x$enable_dependency_tracking" != xno \
3324 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3325 am__fastdepCC_TRUE=
3326 am__fastdepCC_FALSE='#'
3327 else
3328 am__fastdepCC_TRUE='#'
3329 am__fastdepCC_FALSE=
3330 fi
3331
3332
3333
3334 # Checks for libraries.
3335
3336
3337 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3338 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3339 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 ac_check_lib_save_LIBS=$LIBS
3343 LIBS="-lnsl $LIBS"
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 #ifdef __cplusplus
3353 extern "C"
3354 #endif
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357 char gethostbyname ();
3358 int
3359 main ()
3360 {
3361 gethostbyname ();
3362 ;
3363 return 0;
3364 }
3365 _ACEOF
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest$ac_exeext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_cv_lib_nsl_gethostbyname=yes
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 ac_cv_lib_nsl_gethostbyname=no
3394 fi
3395 rm -f conftest.err conftest.$ac_objext \
3396 conftest$ac_exeext conftest.$ac_ext
3397 LIBS=$ac_check_lib_save_LIBS
3398 fi
3399 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3400 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3401 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3402 cat >>confdefs.h <<_ACEOF
3403 #define HAVE_LIBNSL 1
3404 _ACEOF
3405
3406 LIBS="-lnsl $LIBS"
3407
3408 fi
3409
3410
3411 echo "$as_me:$LINENO: checking for gethostbyaddr_r in -lnsl" >&5
3412 echo $ECHO_N "checking for gethostbyaddr_r in -lnsl... $ECHO_C" >&6
3413 if test "${ac_cv_lib_nsl_gethostbyaddr_r+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 ac_check_lib_save_LIBS=$LIBS
3417 LIBS="-lnsl $LIBS"
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 #ifdef __cplusplus
3427 extern "C"
3428 #endif
3429 /* We use char because int might match the return type of a gcc2
3430 builtin and then its argument prototype would still apply. */
3431 char gethostbyaddr_r ();
3432 int
3433 main ()
3434 {
3435 gethostbyaddr_r ();
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.$ac_objext conftest$ac_exeext
3441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3442 (eval $ac_link) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -z "$ac_c_werror_flag"
3450 || test ! -s conftest.err'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } &&
3456 { ac_try='test -s conftest$ac_exeext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 ac_cv_lib_nsl_gethostbyaddr_r=yes
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 ac_cv_lib_nsl_gethostbyaddr_r=no
3468 fi
3469 rm -f conftest.err conftest.$ac_objext \
3470 conftest$ac_exeext conftest.$ac_ext
3471 LIBS=$ac_check_lib_save_LIBS
3472 fi
3473 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr_r" >&5
3474 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr_r" >&6
3475 if test $ac_cv_lib_nsl_gethostbyaddr_r = yes; then
3476 cat >>confdefs.h <<_ACEOF
3477 #define HAVE_LIBNSL 1
3478 _ACEOF
3479
3480 LIBS="-lnsl $LIBS"
3481
3482 fi
3483
3484
3485 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3486 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3487 if test "${ac_cv_lib_socket_socket+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 ac_check_lib_save_LIBS=$LIBS
3491 LIBS="-lsocket $LIBS"
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498
3499 /* Override any gcc2 internal prototype to avoid an error. */
3500 #ifdef __cplusplus
3501 extern "C"
3502 #endif
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3505 char socket ();
3506 int
3507 main ()
3508 {
3509 socket ();
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext conftest$ac_exeext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516 (eval $ac_link) 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -z "$ac_c_werror_flag"
3524 || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest$ac_exeext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_lib_socket_socket=yes
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541 ac_cv_lib_socket_socket=no
3542 fi
3543 rm -f conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext conftest.$ac_ext
3545 LIBS=$ac_check_lib_save_LIBS
3546 fi
3547 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3548 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3549 if test $ac_cv_lib_socket_socket = yes; then
3550 cat >>confdefs.h <<_ACEOF
3551 #define HAVE_LIBSOCKET 1
3552 _ACEOF
3553
3554 LIBS="-lsocket $LIBS"
3555
3556 fi
3557
3558
3559 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
3560 echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
3561 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 ac_check_lib_save_LIBS=$LIBS
3565 LIBS="-lpthread $LIBS"
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 #ifdef __cplusplus
3575 extern "C"
3576 #endif
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3579 char pthread_mutex_lock ();
3580 int
3581 main ()
3582 {
3583 pthread_mutex_lock ();
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext conftest$ac_exeext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3590 (eval $ac_link) 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest$ac_exeext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_lib_pthread_pthread_mutex_lock=yes
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 ac_cv_lib_pthread_pthread_mutex_lock=no
3616 fi
3617 rm -f conftest.err conftest.$ac_objext \
3618 conftest$ac_exeext conftest.$ac_ext
3619 LIBS=$ac_check_lib_save_LIBS
3620 fi
3621 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
3622 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6
3623 if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625 #define HAVE_LIBPTHREAD 1
3626 _ACEOF
3627
3628 LIBS="-lpthread $LIBS"
3629
3630 fi
3631
3632
3633 # Checks for header files.
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3641 # On Suns, sometimes $CPP names a directory.
3642 if test -n "$CPP" && test -d "$CPP"; then
3643 CPP=
3644 fi
3645 if test -z "$CPP"; then
3646 if test "${ac_cv_prog_CPP+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 # Double quotes because CPP needs to be expanded
3650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3651 do
3652 ac_preproc_ok=false
3653 for ac_c_preproc_warn_flag in '' yes
3654 do
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672 Syntax error
3673 _ACEOF
3674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } >/dev/null; then
3682 if test -s conftest.err; then
3683 ac_cpp_err=$ac_c_preproc_warn_flag
3684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3685 else
3686 ac_cpp_err=
3687 fi
3688 else
3689 ac_cpp_err=yes
3690 fi
3691 if test -z "$ac_cpp_err"; then
3692 :
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 # Broken: fails on valid input.
3698 continue
3699 fi
3700 rm -f conftest.err conftest.$ac_ext
3701
3702 # OK, works on sane cases. Now check whether non-existent headers
3703 # can be detected and how.
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #include <ac_nonexistent.h>
3711 _ACEOF
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723 else
3724 ac_cpp_err=
3725 fi
3726 else
3727 ac_cpp_err=yes
3728 fi
3729 if test -z "$ac_cpp_err"; then
3730 # Broken: success on invalid input.
3731 continue
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 # Passes both tests.
3737 ac_preproc_ok=:
3738 break
3739 fi
3740 rm -f conftest.err conftest.$ac_ext
3741
3742 done
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3746 break
3747 fi
3748
3749 done
3750 ac_cv_prog_CPP=$CPP
3751
3752 fi
3753 CPP=$ac_cv_prog_CPP
3754 else
3755 ac_cv_prog_CPP=$CPP
3756 fi
3757 echo "$as_me:$LINENO: result: $CPP" >&5
3758 echo "${ECHO_T}$CPP" >&6
3759 ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3761 do
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #ifdef __STDC__
3775 # include <limits.h>
3776 #else
3777 # include <assert.h>
3778 #endif
3779 Syntax error
3780 _ACEOF
3781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } >/dev/null; then
3789 if test -s conftest.err; then
3790 ac_cpp_err=$ac_c_preproc_warn_flag
3791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3792 else
3793 ac_cpp_err=
3794 fi
3795 else
3796 ac_cpp_err=yes
3797 fi
3798 if test -z "$ac_cpp_err"; then
3799 :
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 # Broken: fails on valid input.
3805 continue
3806 fi
3807 rm -f conftest.err conftest.$ac_ext
3808
3809 # OK, works on sane cases. Now check whether non-existent headers
3810 # can be detected and how.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <ac_nonexistent.h>
3818 _ACEOF
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null; then
3827 if test -s conftest.err; then
3828 ac_cpp_err=$ac_c_preproc_warn_flag
3829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830 else
3831 ac_cpp_err=
3832 fi
3833 else
3834 ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837 # Broken: success on invalid input.
3838 continue
3839 else
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 # Passes both tests.
3844 ac_preproc_ok=:
3845 break
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 done
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3853 :
3854 else
3855 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&2;}
3859 { (exit 1); exit 1; }; }
3860 fi
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868
3869 echo "$as_me:$LINENO: checking for egrep" >&5
3870 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3871 if test "${ac_cv_prog_egrep+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3875 then ac_cv_prog_egrep='grep -E'
3876 else ac_cv_prog_egrep='egrep'
3877 fi
3878 fi
3879 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3880 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3881 EGREP=$ac_cv_prog_egrep
3882
3883
3884 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3885 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3886 if test "${ac_cv_header_stdc+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 #include <stdlib.h>
3896 #include <stdarg.h>
3897 #include <string.h>
3898 #include <float.h>
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 ac_cv_header_stdc=yes
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 ac_cv_header_stdc=no
3936 fi
3937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938
3939 if test $ac_cv_header_stdc = yes; then
3940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 #include <string.h>
3948
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "memchr" >/dev/null 2>&1; then
3952 :
3953 else
3954 ac_cv_header_stdc=no
3955 fi
3956 rm -f conftest*
3957
3958 fi
3959
3960 if test $ac_cv_header_stdc = yes; then
3961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 #include <stdlib.h>
3969
3970 _ACEOF
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 $EGREP "free" >/dev/null 2>&1; then
3973 :
3974 else
3975 ac_cv_header_stdc=no
3976 fi
3977 rm -f conftest*
3978
3979 fi
3980
3981 if test $ac_cv_header_stdc = yes; then
3982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3983 if test "$cross_compiling" = yes; then
3984 :
3985 else
3986 cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h. */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 #include <ctype.h>
3993 #if ((' ' & 0x0FF) == 0x020)
3994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3996 #else
3997 # define ISLOWER(c) \
3998 (('a' <= (c) && (c) <= 'i') \
3999 || ('j' <= (c) && (c) <= 'r') \
4000 || ('s' <= (c) && (c) <= 'z'))
4001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4002 #endif
4003
4004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4005 int
4006 main ()
4007 {
4008 int i;
4009 for (i = 0; i < 256; i++)
4010 if (XOR (islower (i), ISLOWER (i))
4011 || toupper (i) != TOUPPER (i))
4012 exit(2);
4013 exit (0);
4014 }
4015 _ACEOF
4016 rm -f conftest$ac_exeext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4018 (eval $ac_link) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 :
4028 else
4029 echo "$as_me: program exited with status $ac_status" >&5
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ( exit $ac_status )
4034 ac_cv_header_stdc=no
4035 fi
4036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4037 fi
4038 fi
4039 fi
4040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4042 if test $ac_cv_header_stdc = yes; then
4043
4044 cat >>confdefs.h <<\_ACEOF
4045 #define STDC_HEADERS 1
4046 _ACEOF
4047
4048 fi
4049
4050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4061 inttypes.h stdint.h unistd.h
4062 do
4063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4064 echo "$as_me:$LINENO: checking for $ac_header" >&5
4065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 $ac_includes_default
4076
4077 #include <$ac_header>
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag"
4089 || test ! -s conftest.err'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 eval "$as_ac_Header=yes"
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 eval "$as_ac_Header=no"
4107 fi
4108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109 fi
4110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4113 cat >>confdefs.h <<_ACEOF
4114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115 _ACEOF
4116
4117 fi
4118
4119 done
4120
4121
4122
4123
4124
4125
4126
4127 for ac_header in arpa/inet.h netdb.h netinet/in.h sys/socket.h unistd.h
4128 do
4129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4131 echo "$as_me:$LINENO: checking for $ac_header" >&5
4132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 fi
4136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4138 else
4139 # Is the header compilable?
4140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 $ac_includes_default
4149 #include <$ac_header>
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } &&
4160 { ac_try='test -z "$ac_c_werror_flag"
4161 || test ! -s conftest.err'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_header_compiler=yes
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4177
4178 ac_header_compiler=no
4179 fi
4180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4182 echo "${ECHO_T}$ac_header_compiler" >&6
4183
4184 # Is the header present?
4185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <$ac_header>
4194 _ACEOF
4195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } >/dev/null; then
4203 if test -s conftest.err; then
4204 ac_cpp_err=$ac_c_preproc_warn_flag
4205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4206 else
4207 ac_cpp_err=
4208 fi
4209 else
4210 ac_cpp_err=yes
4211 fi
4212 if test -z "$ac_cpp_err"; then
4213 ac_header_preproc=yes
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_header_preproc=no
4219 fi
4220 rm -f conftest.err conftest.$ac_ext
4221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4222 echo "${ECHO_T}$ac_header_preproc" >&6
4223
4224 # So? What about this header?
4225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4226 yes:no: )
4227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4231 ac_header_preproc=yes
4232 ;;
4233 no:yes:* )
4234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4246 (
4247 cat <<\_ASBOX
4248 ## ----------------------------------- ##
4249 ## Report this to [email protected] ##
4250 ## ----------------------------------- ##
4251 _ASBOX
4252 ) |
4253 sed "s/^/$as_me: WARNING: /" >&2
4254 ;;
4255 esac
4256 echo "$as_me:$LINENO: checking for $ac_header" >&5
4257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 eval "$as_ac_Header=\$ac_header_preproc"
4262 fi
4263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4265
4266 fi
4267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4268 cat >>confdefs.h <<_ACEOF
4269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4270 _ACEOF
4271
4272 fi
4273
4274 done
4275
4276
4277 # Checks for typedefs, structures, and compiler characteristics.
4278 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4279 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4280 if test "${ac_cv_header_stdbool_h+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283 cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h. */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289
4290 #include <stdbool.h>
4291 #ifndef bool
4292 # error bool is not defined
4293 #endif
4294 #ifndef false
4295 # error false is not defined
4296 #endif
4297 #if false
4298 # error false is not 0
4299 #endif
4300 #ifndef true
4301 # error true is not defined
4302 #endif
4303 #if true != 1
4304 # error true is not 1
4305 #endif
4306 #ifndef __bool_true_false_are_defined
4307 # error __bool_true_false_are_defined is not defined
4308 #endif
4309
4310 struct s { _Bool s: 1; _Bool t; } s;
4311
4312 char a[true == 1 ? 1 : -1];
4313 char b[false == 0 ? 1 : -1];
4314 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4315 char d[(bool) -0.5 == true ? 1 : -1];
4316 bool e = &s;
4317 char f[(_Bool) -0.0 == false ? 1 : -1];
4318 char g[true];
4319 char h[sizeof (_Bool)];
4320 char i[sizeof s.t];
4321
4322 int
4323 main ()
4324 {
4325 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4326 ;
4327 return 0;
4328 }
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag"
4340 || test ! -s conftest.err'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest.$ac_objext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_header_stdbool_h=yes
4353 else
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4356
4357 ac_cv_header_stdbool_h=no
4358 fi
4359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360 fi
4361 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4362 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4363 echo "$as_me:$LINENO: checking for _Bool" >&5
4364 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4365 if test "${ac_cv_type__Bool+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4375 int
4376 main ()
4377 {
4378 if ((_Bool *) 0)
4379 return 0;
4380 if (sizeof (_Bool))
4381 return 0;
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_type__Bool=yes
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ac_cv_type__Bool=no
4414 fi
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4418 echo "${ECHO_T}$ac_cv_type__Bool" >&6
4419 if test $ac_cv_type__Bool = yes; then
4420
4421 cat >>confdefs.h <<_ACEOF
4422 #define HAVE__BOOL 1
4423 _ACEOF
4424
4425
4426 fi
4427
4428 if test $ac_cv_header_stdbool_h = yes; then
4429
4430 cat >>confdefs.h <<\_ACEOF
4431 #define HAVE_STDBOOL_H 1
4432 _ACEOF
4433
4434 fi
4435
4436 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4437 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4438 if test "${ac_cv_c_const+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447
4448 int
4449 main ()
4450 {
4451 /* FIXME: Include the comments suggested by Paul. */
4452 #ifndef __cplusplus
4453 /* Ultrix mips cc rejects this. */
4454 typedef int charset[2];
4455 const charset x;
4456 /* SunOS 4.1.1 cc rejects this. */
4457 char const *const *ccp;
4458 char **p;
4459 /* NEC SVR4.0.2 mips cc rejects this. */
4460 struct point {int x, y;};
4461 static struct point const zero = {0,0};
4462 /* AIX XL C 1.02.0.0 rejects this.
4463 It does not let you subtract one const X* pointer from another in
4464 an arm of an if-expression whose if-part is not a constant
4465 expression */
4466 const char *g = "string";
4467 ccp = &g + (g ? g-g : 0);
4468 /* HPUX 7.0 cc rejects these. */
4469 ++ccp;
4470 p = (char**) ccp;
4471 ccp = (char const *const *) p;
4472 { /* SCO 3.2v4 cc rejects this. */
4473 char *t;
4474 char const *s = 0 ? (char *) 0 : (char const *) 0;
4475
4476 *t++ = 0;
4477 }
4478 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4479 int x[] = {25, 17};
4480 const int *foo = &x[0];
4481 ++foo;
4482 }
4483 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4484 typedef const int *iptr;
4485 iptr p = 0;
4486 ++p;
4487 }
4488 { /* AIX XL C 1.02.0.0 rejects this saying
4489 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4490 struct s { int j; const int *ap[3]; };
4491 struct s *b; b->j = 5;
4492 }
4493 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4494 const int foo = 10;
4495 }
4496 #endif
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag"
4512 || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_c_const=yes
4525 else
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 ac_cv_c_const=no
4530 fi
4531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532 fi
4533 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4534 echo "${ECHO_T}$ac_cv_c_const" >&6
4535 if test $ac_cv_c_const = no; then
4536
4537 cat >>confdefs.h <<\_ACEOF
4538 #define const
4539 _ACEOF
4540
4541 fi
4542
4543 echo "$as_me:$LINENO: checking for inline" >&5
4544 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4545 if test "${ac_cv_c_inline+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 ac_cv_c_inline=no
4549 for ac_kw in inline __inline__ __inline; do
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #ifndef __cplusplus
4557 typedef int foo_t;
4558 static $ac_kw foo_t static_foo () {return 0; }
4559 $ac_kw foo_t foo () {return 0; }
4560 #endif
4561
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_c_inline=$ac_kw; break
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 fi
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 done
4593
4594 fi
4595 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4596 echo "${ECHO_T}$ac_cv_c_inline" >&6
4597
4598
4599 case $ac_cv_c_inline in
4600 inline | yes) ;;
4601 *)
4602 case $ac_cv_c_inline in
4603 no) ac_val=;;
4604 *) ac_val=$ac_cv_c_inline;;
4605 esac
4606 cat >>confdefs.h <<_ACEOF
4607 #ifndef __cplusplus
4608 #define inline $ac_val
4609 #endif
4610 _ACEOF
4611 ;;
4612 esac
4613
4614
4615 # Checks for library functions.
4616 echo "$as_me:$LINENO: checking for pid_t" >&5
4617 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4618 if test "${ac_cv_type_pid_t+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 $ac_includes_default
4628 int
4629 main ()
4630 {
4631 if ((pid_t *) 0)
4632 return 0;
4633 if (sizeof (pid_t))
4634 return 0;
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_type_pid_t=yes
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_cv_type_pid_t=no
4667 fi
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4671 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4672 if test $ac_cv_type_pid_t = yes; then
4673 :
4674 else
4675
4676 cat >>confdefs.h <<_ACEOF
4677 #define pid_t int
4678 _ACEOF
4679
4680 fi
4681
4682
4683
4684 for ac_header in unistd.h vfork.h
4685 do
4686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688 echo "$as_me:$LINENO: checking for $ac_header" >&5
4689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 fi
4693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4695 else
4696 # Is the header compilable?
4697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #include <$ac_header>
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_header_compiler=yes
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ac_header_compiler=no
4736 fi
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4739 echo "${ECHO_T}$ac_header_compiler" >&6
4740
4741 # Is the header present?
4742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #include <$ac_header>
4751 _ACEOF
4752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null; then
4760 if test -s conftest.err; then
4761 ac_cpp_err=$ac_c_preproc_warn_flag
4762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4763 else
4764 ac_cpp_err=
4765 fi
4766 else
4767 ac_cpp_err=yes
4768 fi
4769 if test -z "$ac_cpp_err"; then
4770 ac_header_preproc=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 ac_header_preproc=no
4776 fi
4777 rm -f conftest.err conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779 echo "${ECHO_T}$ac_header_preproc" >&6
4780
4781 # So? What about this header?
4782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4783 yes:no: )
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4788 ac_header_preproc=yes
4789 ;;
4790 no:yes:* )
4791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4803 (
4804 cat <<\_ASBOX
4805 ## ----------------------------------- ##
4806 ## Report this to [email protected] ##
4807 ## ----------------------------------- ##
4808 _ASBOX
4809 ) |
4810 sed "s/^/$as_me: WARNING: /" >&2
4811 ;;
4812 esac
4813 echo "$as_me:$LINENO: checking for $ac_header" >&5
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 eval "$as_ac_Header=\$ac_header_preproc"
4819 fi
4820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4822
4823 fi
4824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4827 _ACEOF
4828
4829 fi
4830
4831 done
4832
4833
4834
4835 for ac_func in fork vfork
4836 do
4837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4838 echo "$as_me:$LINENO: checking for $ac_func" >&5
4839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4840 if eval "test \"\${$as_ac_var+set}\" = set"; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4851 #define $ac_func innocuous_$ac_func
4852
4853 /* System header to define __stub macros and hopefully few prototypes,
4854 which can conflict with char $ac_func (); below.
4855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856 <limits.h> exists even on freestanding compilers. */
4857
4858 #ifdef __STDC__
4859 # include <limits.h>
4860 #else
4861 # include <assert.h>
4862 #endif
4863
4864 #undef $ac_func
4865
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 #ifdef __cplusplus
4868 extern "C"
4869 {
4870 #endif
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4873 char $ac_func ();
4874 /* The GNU C library defines this for functions which it implements
4875 to always fail with ENOSYS. Some functions are actually named
4876 something starting with __ and the normal name is an alias. */
4877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4878 choke me
4879 #else
4880 char (*f) () = $ac_func;
4881 #endif
4882 #ifdef __cplusplus
4883 }
4884 #endif
4885
4886 int
4887 main ()
4888 {
4889 return f != $ac_func;
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext conftest$ac_exeext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4896 (eval $ac_link) 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -z "$ac_c_werror_flag"
4904 || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest$ac_exeext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 eval "$as_ac_var=yes"
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 eval "$as_ac_var=no"
4922 fi
4923 rm -f conftest.err conftest.$ac_objext \
4924 conftest$ac_exeext conftest.$ac_ext
4925 fi
4926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4928 if test `eval echo '${'$as_ac_var'}'` = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4931 _ACEOF
4932
4933 fi
4934 done
4935
4936 if test "x$ac_cv_func_fork" = xyes; then
4937 echo "$as_me:$LINENO: checking for working fork" >&5
4938 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4939 if test "${ac_cv_func_fork_works+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 if test "$cross_compiling" = yes; then
4943 ac_cv_func_fork_works=cross
4944 else
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* By Ruediger Kuhlmann. */
4947 #include <sys/types.h>
4948 #if HAVE_UNISTD_H
4949 # include <unistd.h>
4950 #endif
4951 /* Some systems only have a dummy stub for fork() */
4952 int main ()
4953 {
4954 if (fork() < 0)
4955 exit (1);
4956 exit (0);
4957 }
4958 _ACEOF
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_func_fork_works=yes
4971 else
4972 echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ( exit $ac_status )
4977 ac_cv_func_fork_works=no
4978 fi
4979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4983 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4984
4985 else
4986 ac_cv_func_fork_works=$ac_cv_func_fork
4987 fi
4988 if test "x$ac_cv_func_fork_works" = xcross; then
4989 case $host in
4990 *-*-amigaos* | *-*-msdosdjgpp*)
4991 # Override, as these systems have only a dummy fork() stub
4992 ac_cv_func_fork_works=no
4993 ;;
4994 *)
4995 ac_cv_func_fork_works=yes
4996 ;;
4997 esac
4998 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4999 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5000 fi
5001 ac_cv_func_vfork_works=$ac_cv_func_vfork
5002 if test "x$ac_cv_func_vfork" = xyes; then
5003 echo "$as_me:$LINENO: checking for working vfork" >&5
5004 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5005 if test "${ac_cv_func_vfork_works+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 if test "$cross_compiling" = yes; then
5009 ac_cv_func_vfork_works=cross
5010 else
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 /* Thanks to Paul Eggert for this test. */
5018 #include <stdio.h>
5019 #include <stdlib.h>
5020 #include <sys/types.h>
5021 #include <sys/stat.h>
5022 #include <sys/wait.h>
5023 #if HAVE_UNISTD_H
5024 # include <unistd.h>
5025 #endif
5026 #if HAVE_VFORK_H
5027 # include <vfork.h>
5028 #endif
5029 /* On some sparc systems, changes by the child to local and incoming
5030 argument registers are propagated back to the parent. The compiler
5031 is told about this with #include <vfork.h>, but some compilers
5032 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5033 static variable whose address is put into a register that is
5034 clobbered by the vfork. */
5035 static void
5036 #ifdef __cplusplus
5037 sparc_address_test (int arg)
5038 # else
5039 sparc_address_test (arg) int arg;
5040 #endif
5041 {
5042 static pid_t child;
5043 if (!child) {
5044 child = vfork ();
5045 if (child < 0) {
5046 perror ("vfork");
5047 _exit(2);
5048 }
5049 if (!child) {
5050 arg = getpid();
5051 write(-1, "", 0);
5052 _exit (arg);
5053 }
5054 }
5055 }
5056
5057 int
5058 main ()
5059 {
5060 pid_t parent = getpid ();
5061 pid_t child;
5062
5063 sparc_address_test (0);
5064
5065 child = vfork ();
5066
5067 if (child == 0) {
5068 /* Here is another test for sparc vfork register problems. This
5069 test uses lots of local variables, at least as many local
5070 variables as main has allocated so far including compiler
5071 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5072 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5073 reuse the register of parent for one of the local variables,
5074 since it will think that parent can't possibly be used any more
5075 in this routine. Assigning to the local variable will thus
5076 munge parent in the parent process. */
5077 pid_t
5078 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5079 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5080 /* Convince the compiler that p..p7 are live; otherwise, it might
5081 use the same hardware register for all 8 local variables. */
5082 if (p != p1 || p != p2 || p != p3 || p != p4
5083 || p != p5 || p != p6 || p != p7)
5084 _exit(1);
5085
5086 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5087 from child file descriptors. If the child closes a descriptor
5088 before it execs or exits, this munges the parent's descriptor
5089 as well. Test for this by closing stdout in the child. */
5090 _exit(close(fileno(stdout)) != 0);
5091 } else {
5092 int status;
5093 struct stat st;
5094
5095 while (wait(&status) != child)
5096 ;
5097 exit(
5098 /* Was there some problem with vforking? */
5099 child < 0
5100
5101 /* Did the child fail? (This shouldn't happen.) */
5102 || status
5103
5104 /* Did the vfork/compiler bug occur? */
5105 || parent != getpid()
5106
5107 /* Did the file descriptor bug occur? */
5108 || fstat(fileno(stdout), &st) != 0
5109 );
5110 }
5111 }
5112 _ACEOF
5113 rm -f conftest$ac_exeext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115 (eval $ac_link) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_func_vfork_works=yes
5125 else
5126 echo "$as_me: program exited with status $ac_status" >&5
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130 ( exit $ac_status )
5131 ac_cv_func_vfork_works=no
5132 fi
5133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 fi
5136 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5137 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5138
5139 fi;
5140 if test "x$ac_cv_func_fork_works" = xcross; then
5141 ac_cv_func_vfork_works=$ac_cv_func_vfork
5142 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5143 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5144 fi
5145
5146 if test "x$ac_cv_func_vfork_works" = xyes; then
5147
5148 cat >>confdefs.h <<\_ACEOF
5149 #define HAVE_WORKING_VFORK 1
5150 _ACEOF
5151
5152 else
5153
5154 cat >>confdefs.h <<\_ACEOF
5155 #define vfork fork
5156 _ACEOF
5157
5158 fi
5159 if test "x$ac_cv_func_fork_works" = xyes; then
5160
5161 cat >>confdefs.h <<\_ACEOF
5162 #define HAVE_WORKING_FORK 1
5163 _ACEOF
5164
5165 fi
5166
5167 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5168 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5169 if test "${ac_cv_header_stdc+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #include <stdlib.h>
5179 #include <stdarg.h>
5180 #include <string.h>
5181 #include <float.h>
5182
5183 int
5184 main ()
5185 {
5186
5187 ;
5188 return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193 (eval $ac_compile) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -z "$ac_c_werror_flag"
5201 || test ! -s conftest.err'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest.$ac_objext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 (eval $ac_try) 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_cv_header_stdc=yes
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 ac_cv_header_stdc=no
5219 fi
5220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5221
5222 if test $ac_cv_header_stdc = yes; then
5223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 #include <string.h>
5231
5232 _ACEOF
5233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5234 $EGREP "memchr" >/dev/null 2>&1; then
5235 :
5236 else
5237 ac_cv_header_stdc=no
5238 fi
5239 rm -f conftest*
5240
5241 fi
5242
5243 if test $ac_cv_header_stdc = yes; then
5244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #include <stdlib.h>
5252
5253 _ACEOF
5254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255 $EGREP "free" >/dev/null 2>&1; then
5256 :
5257 else
5258 ac_cv_header_stdc=no
5259 fi
5260 rm -f conftest*
5261
5262 fi
5263
5264 if test $ac_cv_header_stdc = yes; then
5265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5266 if test "$cross_compiling" = yes; then
5267 :
5268 else
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 #include <ctype.h>
5276 #if ((' ' & 0x0FF) == 0x020)
5277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5279 #else
5280 # define ISLOWER(c) \
5281 (('a' <= (c) && (c) <= 'i') \
5282 || ('j' <= (c) && (c) <= 'r') \
5283 || ('s' <= (c) && (c) <= 'z'))
5284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5285 #endif
5286
5287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5288 int
5289 main ()
5290 {
5291 int i;
5292 for (i = 0; i < 256; i++)
5293 if (XOR (islower (i), ISLOWER (i))
5294 || toupper (i) != TOUPPER (i))
5295 exit(2);
5296 exit (0);
5297 }
5298 _ACEOF
5299 rm -f conftest$ac_exeext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301 (eval $ac_link) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 :
5311 else
5312 echo "$as_me: program exited with status $ac_status" >&5
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ( exit $ac_status )
5317 ac_cv_header_stdc=no
5318 fi
5319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 fi
5322 fi
5323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5325 if test $ac_cv_header_stdc = yes; then
5326
5327 cat >>confdefs.h <<\_ACEOF
5328 #define STDC_HEADERS 1
5329 _ACEOF
5330
5331 fi
5332
5333
5334
5335
5336
5337
5338
5339
5340 for ac_func in gethostbyaddr gethostbyaddr_r gethostbyname gethostname inet_ntoa putenv strerror
5341 do
5342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5343 echo "$as_me:$LINENO: checking for $ac_func" >&5
5344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5345 if eval "test \"\${$as_ac_var+set}\" = set"; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5356 #define $ac_func innocuous_$ac_func
5357
5358 /* System header to define __stub macros and hopefully few prototypes,
5359 which can conflict with char $ac_func (); below.
5360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 <limits.h> exists even on freestanding compilers. */
5362
5363 #ifdef __STDC__
5364 # include <limits.h>
5365 #else
5366 # include <assert.h>
5367 #endif
5368
5369 #undef $ac_func
5370
5371 /* Override any gcc2 internal prototype to avoid an error. */
5372 #ifdef __cplusplus
5373 extern "C"
5374 {
5375 #endif
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5378 char $ac_func ();
5379 /* The GNU C library defines this for functions which it implements
5380 to always fail with ENOSYS. Some functions are actually named
5381 something starting with __ and the normal name is an alias. */
5382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5383 choke me
5384 #else
5385 char (*f) () = $ac_func;
5386 #endif
5387 #ifdef __cplusplus
5388 }
5389 #endif
5390
5391 int
5392 main ()
5393 {
5394 return f != $ac_func;
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 rm -f conftest.$ac_objext conftest$ac_exeext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401 (eval $ac_link) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -z "$ac_c_werror_flag"
5409 || test ! -s conftest.err'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; } &&
5415 { ac_try='test -s conftest$ac_exeext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 eval "$as_ac_var=yes"
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 eval "$as_ac_var=no"
5427 fi
5428 rm -f conftest.err conftest.$ac_objext \
5429 conftest$ac_exeext conftest.$ac_ext
5430 fi
5431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5433 if test `eval echo '${'$as_ac_var'}'` = yes; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5436 _ACEOF
5437
5438 fi
5439 done
5440
5441
5442
5443
5444 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5445 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5446 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449 ac_check_lib_save_LIBS=$LIBS
5450 LIBS="-lnsl $LIBS"
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 #ifdef __cplusplus
5460 extern "C"
5461 #endif
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5464 char gethostbyname ();
5465 int
5466 main ()
5467 {
5468 gethostbyname ();
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext conftest$ac_exeext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5475 (eval $ac_link) 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -z "$ac_c_werror_flag"
5483 || test ! -s conftest.err'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_lib_nsl_gethostbyname=yes
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_cv_lib_nsl_gethostbyname=no
5501 fi
5502 rm -f conftest.err conftest.$ac_objext \
5503 conftest$ac_exeext conftest.$ac_ext
5504 LIBS=$ac_check_lib_save_LIBS
5505 fi
5506 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5507 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5508 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5509 cat >>confdefs.h <<_ACEOF
5510 #define HAVE_LIBNSL 1
5511 _ACEOF
5512
5513 LIBS="-lnsl $LIBS"
5514
5515 fi
5516
5517
5518 echo "$as_me:$LINENO: checking for gethostbyaddr_r" >&5
5519 echo $ECHO_N "checking for gethostbyaddr_r... $ECHO_C" >&6
5520 if test "${ac_cv_func_gethostbyaddr_r+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523 cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
5530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5531 #define gethostbyaddr_r innocuous_gethostbyaddr_r
5532
5533 /* System header to define __stub macros and hopefully few prototypes,
5534 which can conflict with char gethostbyaddr_r (); below.
5535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536 <limits.h> exists even on freestanding compilers. */
5537
5538 #ifdef __STDC__
5539 # include <limits.h>
5540 #else
5541 # include <assert.h>
5542 #endif
5543
5544 #undef gethostbyaddr_r
5545
5546 /* Override any gcc2 internal prototype to avoid an error. */
5547 #ifdef __cplusplus
5548 extern "C"
5549 {
5550 #endif
5551 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */
5553 char gethostbyaddr_r ();
5554 /* The GNU C library defines this for functions which it implements
5555 to always fail with ENOSYS. Some functions are actually named
5556 something starting with __ and the normal name is an alias. */
5557 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
5558 choke me
5559 #else
5560 char (*f) () = gethostbyaddr_r;
5561 #endif
5562 #ifdef __cplusplus
5563 }
5564 #endif
5565
5566 int
5567 main ()
5568 {
5569 return f != gethostbyaddr_r;
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest$ac_exeext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 ac_cv_func_gethostbyaddr_r=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 ac_cv_func_gethostbyaddr_r=no
5602 fi
5603 rm -f conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 fi
5606 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_r" >&5
5607 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_r" >&6
5608 if test $ac_cv_func_gethostbyaddr_r = yes; then
5609
5610 echo "$as_me:$LINENO: checking signature of gethostbyaddr_r" >&5
5611 echo $ECHO_N "checking signature of gethostbyaddr_r... $ECHO_C" >&6
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618
5619 # include <netdb.h>
5620
5621 int
5622 main ()
5623 {
5624
5625 struct hostent *h, *hp;
5626 char *a, *b;
5627 int l, bl, t, e;
5628 (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
5629
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag"
5644 || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656
5657
5658 cat >>confdefs.h <<\_ACEOF
5659 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
5660 _ACEOF
5661
5662 echo "$as_me:$LINENO: result: 8 args" >&5
5663 echo "${ECHO_T}8 args" >&6
5664
5665 else
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5668
5669
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676
5677 # include <netdb.h>
5678
5679 int
5680 main ()
5681 {
5682
5683 struct hostent *h;
5684 char *a, *b;
5685 int l, bl, t, e;
5686 (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
5687
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694 (eval $ac_compile) 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest.$ac_objext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714
5715
5716 cat >>confdefs.h <<\_ACEOF
5717 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
5718 _ACEOF
5719
5720 echo "$as_me:$LINENO: result: 7 args" >&5
5721 echo "${ECHO_T}7 args" >&6
5722
5723 else
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734
5735 # include <netdb.h>
5736
5737 int
5738 main ()
5739 {
5740
5741 struct hostent_data *d;
5742 struct hostent *h;
5743 char a,
5744 int l, t;
5745 (void) gethostbyaddr_r(a, l, t, h, d)
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773
5774
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
5777 _ACEOF
5778
5779 echo "$as_me:$LINENO: result: 5 args" >&5
5780 echo "${ECHO_T}5 args" >&6
5781
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786
5787 echo "$as_me:$LINENO: result: unrecognised" >&5
5788 echo "${ECHO_T}unrecognised" >&6
5789
5790 fi
5791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5792
5793 fi
5794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5795
5796 fi
5797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798
5799 else
5800
5801 echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5803
5804 fi
5805
5806
5807
5808
5809 echo "$as_me:$LINENO: checking if we need -pthread for threads" >&5
5810 echo $ECHO_N "checking if we need -pthread for threads... $ECHO_C" >&6
5811 if test "${ac_ldflag_pthread+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 ac_save_LDFLAGS="$LDFLAGS"
5815 LDFLAGS="-pthread $LDFLAGS"
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 char pthread_create();
5823 int
5824 main ()
5825 {
5826 pthread_create();
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833 (eval $ac_link) 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try='test -z "$ac_c_werror_flag"
5841 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 eval "ac_ldflag_pthread=yes"
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 eval "ac_ldflag_pthread=no"
5859 fi
5860 rm -f conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext,
5862 LIBS="$ac_save_LDFLAGS"
5863
5864 fi
5865
5866 if eval "test \"`echo $ac_ldflag_pthread`\" = yes"; then
5867 echo "$as_me:$LINENO: result: yes" >&5
5868 echo "${ECHO_T}yes" >&6
5869 else
5870 echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6
5872 fi
5873
5874
5875
5876
5877
5878
5879 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5880 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5881 if test "${ac_cv_search_gethostbyname+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 ac_func_search_save_LIBS=$LIBS
5885 ac_cv_search_gethostbyname=no
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892
5893 /* Override any gcc2 internal prototype to avoid an error. */
5894 #ifdef __cplusplus
5895 extern "C"
5896 #endif
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5899 char gethostbyname ();
5900 int
5901 main ()
5902 {
5903 gethostbyname ();
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_search_gethostbyname="none required"
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 fi
5936 rm -f conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5938 if test "$ac_cv_search_gethostbyname" = no; then
5939 for ac_lib in nsl; do
5940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947
5948 /* Override any gcc2 internal prototype to avoid an error. */
5949 #ifdef __cplusplus
5950 extern "C"
5951 #endif
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954 char gethostbyname ();
5955 int
5956 main ()
5957 {
5958 gethostbyname ();
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 rm -f conftest.$ac_objext conftest$ac_exeext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5965 (eval $ac_link) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 (eval $ac_try) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try='test -s conftest$ac_exeext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 ac_cv_search_gethostbyname="-l$ac_lib"
5986 break
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 fi
5992 rm -f conftest.err conftest.$ac_objext \
5993 conftest$ac_exeext conftest.$ac_ext
5994 done
5995 fi
5996 LIBS=$ac_func_search_save_LIBS
5997 fi
5998 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5999 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6000 if test "$ac_cv_search_gethostbyname" != no; then
6001 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6002
6003 fi
6004
6005 echo "$as_me:$LINENO: checking for library containing socket" >&5
6006 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6007 if test "${ac_cv_search_socket+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010 ac_func_search_save_LIBS=$LIBS
6011 ac_cv_search_socket=no
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018
6019 /* Override any gcc2 internal prototype to avoid an error. */
6020 #ifdef __cplusplus
6021 extern "C"
6022 #endif
6023 /* We use char because int might match the return type of a gcc2
6024 builtin and then its argument prototype would still apply. */
6025 char socket ();
6026 int
6027 main ()
6028 {
6029 socket ();
6030 ;
6031 return 0;
6032 }
6033 _ACEOF
6034 rm -f conftest.$ac_objext conftest$ac_exeext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6036 (eval $ac_link) 2>conftest.er1
6037 ac_status=$?
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -z "$ac_c_werror_flag"
6044 || test ! -s conftest.err'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; } &&
6050 { ac_try='test -s conftest$ac_exeext'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 (eval $ac_try) 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 ac_cv_search_socket="none required"
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061 fi
6062 rm -f conftest.err conftest.$ac_objext \
6063 conftest$ac_exeext conftest.$ac_ext
6064 if test "$ac_cv_search_socket" = no; then
6065 for ac_lib in socket; do
6066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073
6074 /* Override any gcc2 internal prototype to avoid an error. */
6075 #ifdef __cplusplus
6076 extern "C"
6077 #endif
6078 /* We use char because int might match the return type of a gcc2
6079 builtin and then its argument prototype would still apply. */
6080 char socket ();
6081 int
6082 main ()
6083 {
6084 socket ();
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6091 (eval $ac_link) 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } &&
6098 { ac_try='test -z "$ac_c_werror_flag"
6099 || test ! -s conftest.err'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_search_socket="-l$ac_lib"
6112 break
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 fi
6118 rm -f conftest.err conftest.$ac_objext \
6119 conftest$ac_exeext conftest.$ac_ext
6120 done
6121 fi
6122 LIBS=$ac_func_search_save_LIBS
6123 fi
6124 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6125 echo "${ECHO_T}$ac_cv_search_socket" >&6
6126 if test "$ac_cv_search_socket" != no; then
6127 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
6128
6129 else
6130
6131 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6132 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6133 if test "${ac_cv_lib_socket_socket+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 ac_check_lib_save_LIBS=$LIBS
6137 LIBS="-lsocket -lnsl $LIBS"
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144
6145 /* Override any gcc2 internal prototype to avoid an error. */
6146 #ifdef __cplusplus
6147 extern "C"
6148 #endif
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char socket ();
6152 int
6153 main ()
6154 {
6155 socket ();
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_lib_socket_socket=yes
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ac_cv_lib_socket_socket=no
6188 fi
6189 rm -f conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6191 LIBS=$ac_check_lib_save_LIBS
6192 fi
6193 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6194 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6195 if test $ac_cv_lib_socket_socket = yes; then
6196 LIBS="-lsocket -lnsl $LIBS"
6197 fi
6198
6199 fi
6200
6201
6202
6203 ac_config_files="$ac_config_files Makefile"
6204
6205 cat >confcache <<\_ACEOF
6206 # This file is a shell script that caches the results of configure
6207 # tests run on this system so they can be shared between configure
6208 # scripts and configure runs, see configure's option --config-cache.
6209 # It is not useful on other systems. If it contains results you don't
6210 # want to keep, you may remove or edit it.
6211 #
6212 # config.status only pays attention to the cache file if you give it
6213 # the --recheck option to rerun configure.
6214 #
6215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6217 # following values.
6218
6219 _ACEOF
6220
6221 # The following way of writing the cache mishandles newlines in values,
6222 # but we know of no workaround that is simple, portable, and efficient.
6223 # So, don't put newlines in cache variables' values.
6224 # Ultrix sh set writes to stderr and can't be redirected directly,
6225 # and sets the high bit in the cache file unless we assign to the vars.
6226 {
6227 (set) 2>&1 |
6228 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6229 *ac_space=\ *)
6230 # `set' does not quote correctly, so add quotes (double-quote
6231 # substitution turns \\\\ into \\, and sed turns \\ into \).
6232 sed -n \
6233 "s/'/'\\\\''/g;
6234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6235 ;;
6236 *)
6237 # `set' quotes correctly as required by POSIX, so do not add quotes.
6238 sed -n \
6239 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6240 ;;
6241 esac;
6242 } |
6243 sed '
6244 t clear
6245 : clear
6246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6247 t end
6248 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6249 : end' >>confcache
6250 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6251 if test -w $cache_file; then
6252 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6253 cat confcache >$cache_file
6254 else
6255 echo "not updating unwritable cache $cache_file"
6256 fi
6257 fi
6258 rm -f confcache
6259
6260 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6261 # Let make expand exec_prefix.
6262 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6263
6264 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6265 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6266 # trailing colons and then remove the whole line if VPATH becomes empty
6267 # (actually we leave an empty line to preserve line numbers).
6268 if test "x$srcdir" = x.; then
6269 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6270 s/:*\$(srcdir):*/:/;
6271 s/:*\${srcdir}:*/:/;
6272 s/:*@srcdir@:*/:/;
6273 s/^\([^=]*=[ ]*\):*/\1/;
6274 s/:*$//;
6275 s/^[^=]*=[ ]*$//;
6276 }'
6277 fi
6278
6279 DEFS=-DHAVE_CONFIG_H
6280
6281 ac_libobjs=
6282 ac_ltlibobjs=
6283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6284 # 1. Remove the extension, and $U if already installed.
6285 ac_i=`echo "$ac_i" |
6286 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6287 # 2. Add them.
6288 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6289 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6290 done
6291 LIBOBJS=$ac_libobjs
6292
6293 LTLIBOBJS=$ac_ltlibobjs
6294
6295
6296 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6297 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6298 Usually this means the macro was only invoked conditionally." >&5
6299 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6300 Usually this means the macro was only invoked conditionally." >&2;}
6301 { (exit 1); exit 1; }; }
6302 fi
6303 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6304 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6305 Usually this means the macro was only invoked conditionally." >&5
6306 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6307 Usually this means the macro was only invoked conditionally." >&2;}
6308 { (exit 1); exit 1; }; }
6309 fi
6310 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6311 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6312 Usually this means the macro was only invoked conditionally." >&5
6313 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6314 Usually this means the macro was only invoked conditionally." >&2;}
6315 { (exit 1); exit 1; }; }
6316 fi
6317
6318 : ${CONFIG_STATUS=./config.status}
6319 ac_clean_files_save=$ac_clean_files
6320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6321 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6322 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6323 cat >$CONFIG_STATUS <<_ACEOF
6324 #! $SHELL
6325 # Generated by $as_me.
6326 # Run this file to recreate the current configuration.
6327 # Compiler output produced by configure, useful for debugging
6328 # configure, is in config.log if it exists.
6329
6330 debug=false
6331 ac_cs_recheck=false
6332 ac_cs_silent=false
6333 SHELL=\${CONFIG_SHELL-$SHELL}
6334 _ACEOF
6335
6336 cat >>$CONFIG_STATUS <<\_ACEOF
6337 ## --------------------- ##
6338 ## M4sh Initialization. ##
6339 ## --------------------- ##
6340
6341 # Be Bourne compatible
6342 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6343 emulate sh
6344 NULLCMD=:
6345 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6346 # is contrary to our usage. Disable this feature.
6347 alias -g '${1+"$@"}'='"$@"'
6348 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6349 set -o posix
6350 fi
6351 DUALCASE=1; export DUALCASE # for MKS sh
6352
6353 # Support unset when possible.
6354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6355 as_unset=unset
6356 else
6357 as_unset=false
6358 fi
6359
6360
6361 # Work around bugs in pre-3.0 UWIN ksh.
6362 $as_unset ENV MAIL MAILPATH
6363 PS1='$ '
6364 PS2='> '
6365 PS4='+ '
6366
6367 # NLS nuisances.
6368 for as_var in \
6369 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6370 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6371 LC_TELEPHONE LC_TIME
6372 do
6373 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6374 eval $as_var=C; export $as_var
6375 else
6376 $as_unset $as_var
6377 fi
6378 done
6379
6380 # Required to use basename.
6381 if expr a : '\(a\)' >/dev/null 2>&1; then
6382 as_expr=expr
6383 else
6384 as_expr=false
6385 fi
6386
6387 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6388 as_basename=basename
6389 else
6390 as_basename=false
6391 fi
6392
6393
6394 # Name of the executable.
6395 as_me=`$as_basename "$0" ||
6396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6397 X"$0" : 'X\(//\)$' \| \
6398 X"$0" : 'X\(/\)$' \| \
6399 . : '\(.\)' 2>/dev/null ||
6400 echo X/"$0" |
6401 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6402 /^X\/\(\/\/\)$/{ s//\1/; q; }
6403 /^X\/\(\/\).*/{ s//\1/; q; }
6404 s/.*/./; q'`
6405
6406
6407 # PATH needs CR, and LINENO needs CR and PATH.
6408 # Avoid depending upon Character Ranges.
6409 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6410 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6411 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6412 as_cr_digits='0123456789'
6413 as_cr_alnum=$as_cr_Letters$as_cr_digits
6414
6415 # The user is always right.
6416 if test "${PATH_SEPARATOR+set}" != set; then
6417 echo "#! /bin/sh" >conf$$.sh
6418 echo "exit 0" >>conf$$.sh
6419 chmod +x conf$$.sh
6420 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6421 PATH_SEPARATOR=';'
6422 else
6423 PATH_SEPARATOR=:
6424 fi
6425 rm -f conf$$.sh
6426 fi
6427
6428
6429 as_lineno_1=$LINENO
6430 as_lineno_2=$LINENO
6431 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6432 test "x$as_lineno_1" != "x$as_lineno_2" &&
6433 test "x$as_lineno_3" = "x$as_lineno_2" || {
6434 # Find who we are. Look in the path if we contain no path at all
6435 # relative or not.
6436 case $0 in
6437 *[\\/]* ) as_myself=$0 ;;
6438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6444 done
6445
6446 ;;
6447 esac
6448 # We did not find ourselves, most probably we were run as `sh COMMAND'
6449 # in which case we are not to be found in the path.
6450 if test "x$as_myself" = x; then
6451 as_myself=$0
6452 fi
6453 if test ! -f "$as_myself"; then
6454 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6455 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6456 { (exit 1); exit 1; }; }
6457 fi
6458 case $CONFIG_SHELL in
6459 '')
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6462 do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for as_base in sh bash ksh sh5; do
6466 case $as_dir in
6467 /*)
6468 if ("$as_dir/$as_base" -c '
6469 as_lineno_1=$LINENO
6470 as_lineno_2=$LINENO
6471 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6472 test "x$as_lineno_1" != "x$as_lineno_2" &&
6473 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6474 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6475 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6476 CONFIG_SHELL=$as_dir/$as_base
6477 export CONFIG_SHELL
6478 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6479 fi;;
6480 esac
6481 done
6482 done
6483 ;;
6484 esac
6485
6486 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6487 # uniformly replaced by the line number. The first 'sed' inserts a
6488 # line-number line before each line; the second 'sed' does the real
6489 # work. The second script uses 'N' to pair each line-number line
6490 # with the numbered line, and appends trailing '-' during
6491 # substitution so that $LINENO is not a special case at line end.
6492 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6493 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6494 sed '=' <$as_myself |
6495 sed '
6496 N
6497 s,$,-,
6498 : loop
6499 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6500 t loop
6501 s,-$,,
6502 s,^['$as_cr_digits']*\n,,
6503 ' >$as_me.lineno &&
6504 chmod +x $as_me.lineno ||
6505 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6506 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6507 { (exit 1); exit 1; }; }
6508
6509 # Don't try to exec as it changes $[0], causing all sort of problems
6510 # (the dirname of $[0] is not the place where we might find the
6511 # original and so on. Autoconf is especially sensible to this).
6512 . ./$as_me.lineno
6513 # Exit status is that of the last command.
6514 exit
6515 }
6516
6517
6518 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6519 *c*,-n*) ECHO_N= ECHO_C='
6520 ' ECHO_T=' ' ;;
6521 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6522 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6523 esac
6524
6525 if expr a : '\(a\)' >/dev/null 2>&1; then
6526 as_expr=expr
6527 else
6528 as_expr=false
6529 fi
6530
6531 rm -f conf$$ conf$$.exe conf$$.file
6532 echo >conf$$.file
6533 if ln -s conf$$.file conf$$ 2>/dev/null; then
6534 # We could just check for DJGPP; but this test a) works b) is more generic
6535 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6536 if test -f conf$$.exe; then
6537 # Don't use ln at all; we don't have any links
6538 as_ln_s='cp -p'
6539 else
6540 as_ln_s='ln -s'
6541 fi
6542 elif ln conf$$.file conf$$ 2>/dev/null; then
6543 as_ln_s=ln
6544 else
6545 as_ln_s='cp -p'
6546 fi
6547 rm -f conf$$ conf$$.exe conf$$.file
6548
6549 if mkdir -p . 2>/dev/null; then
6550 as_mkdir_p=:
6551 else
6552 test -d ./-p && rmdir ./-p
6553 as_mkdir_p=false
6554 fi
6555
6556 as_executable_p="test -f"
6557
6558 # Sed expression to map a string onto a valid CPP name.
6559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6560
6561 # Sed expression to map a string onto a valid variable name.
6562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6563
6564
6565 # IFS
6566 # We need space, tab and new line, in precisely that order.
6567 as_nl='
6568 '
6569 IFS=" $as_nl"
6570
6571 # CDPATH.
6572 $as_unset CDPATH
6573
6574 exec 6>&1
6575
6576 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6577 # report actual input values of CONFIG_FILES etc. instead of their
6578 # values after options handling. Logging --version etc. is OK.
6579 exec 5>>config.log
6580 {
6581 echo
6582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6583 ## Running $as_me. ##
6584 _ASBOX
6585 } >&5
6586 cat >&5 <<_CSEOF
6587
6588 This file was extended by dmucs $as_me 0.5, which was
6589 generated by GNU Autoconf 2.59. Invocation command line was
6590
6591 CONFIG_FILES = $CONFIG_FILES
6592 CONFIG_HEADERS = $CONFIG_HEADERS
6593 CONFIG_LINKS = $CONFIG_LINKS
6594 CONFIG_COMMANDS = $CONFIG_COMMANDS
6595 $ $0 $@
6596
6597 _CSEOF
6598 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6599 echo >&5
6600 _ACEOF
6601
6602 # Files that config.status was made for.
6603 if test -n "$ac_config_files"; then
6604 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6605 fi
6606
6607 if test -n "$ac_config_headers"; then
6608 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6609 fi
6610
6611 if test -n "$ac_config_links"; then
6612 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6613 fi
6614
6615 if test -n "$ac_config_commands"; then
6616 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6617 fi
6618
6619 cat >>$CONFIG_STATUS <<\_ACEOF
6620
6621 ac_cs_usage="\
6622 \`$as_me' instantiates files from templates according to the
6623 current configuration.
6624
6625 Usage: $0 [OPTIONS] [FILE]...
6626
6627 -h, --help print this help, then exit
6628 -V, --version print version number, then exit
6629 -q, --quiet do not print progress messages
6630 -d, --debug don't remove temporary files
6631 --recheck update $as_me by reconfiguring in the same conditions
6632 --file=FILE[:TEMPLATE]
6633 instantiate the configuration file FILE
6634 --header=FILE[:TEMPLATE]
6635 instantiate the configuration header FILE
6636
6637 Configuration files:
6638 $config_files
6639
6640 Configuration headers:
6641 $config_headers
6642
6643 Configuration commands:
6644 $config_commands
6645
6646 Report bugs to <[email protected]>."
6647 _ACEOF
6648
6649 cat >>$CONFIG_STATUS <<_ACEOF
6650 ac_cs_version="\\
6651 dmucs config.status 0.5
6652 configured by $0, generated by GNU Autoconf 2.59,
6653 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6654
6655 Copyright (C) 2003 Free Software Foundation, Inc.
6656 This config.status script is free software; the Free Software Foundation
6657 gives unlimited permission to copy, distribute and modify it."
6658 srcdir=$srcdir
6659 INSTALL="$INSTALL"
6660 _ACEOF
6661
6662 cat >>$CONFIG_STATUS <<\_ACEOF
6663 # If no file are specified by the user, then we need to provide default
6664 # value. By we need to know if files were specified by the user.
6665 ac_need_defaults=:
6666 while test $# != 0
6667 do
6668 case $1 in
6669 --*=*)
6670 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6671 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6672 ac_shift=:
6673 ;;
6674 -*)
6675 ac_option=$1
6676 ac_optarg=$2
6677 ac_shift=shift
6678 ;;
6679 *) # This is not an option, so the user has probably given explicit
6680 # arguments.
6681 ac_option=$1
6682 ac_need_defaults=false;;
6683 esac
6684
6685 case $ac_option in
6686 # Handling of the options.
6687 _ACEOF
6688 cat >>$CONFIG_STATUS <<\_ACEOF
6689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6690 ac_cs_recheck=: ;;
6691 --version | --vers* | -V )
6692 echo "$ac_cs_version"; exit 0 ;;
6693 --he | --h)
6694 # Conflict between --help and --header
6695 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6696 Try \`$0 --help' for more information." >&5
6697 echo "$as_me: error: ambiguous option: $1
6698 Try \`$0 --help' for more information." >&2;}
6699 { (exit 1); exit 1; }; };;
6700 --help | --hel | -h )
6701 echo "$ac_cs_usage"; exit 0 ;;
6702 --debug | --d* | -d )
6703 debug=: ;;
6704 --file | --fil | --fi | --f )
6705 $ac_shift
6706 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6707 ac_need_defaults=false;;
6708 --header | --heade | --head | --hea )
6709 $ac_shift
6710 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6711 ac_need_defaults=false;;
6712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6714 ac_cs_silent=: ;;
6715
6716 # This is an error.
6717 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6718 Try \`$0 --help' for more information." >&5
6719 echo "$as_me: error: unrecognized option: $1
6720 Try \`$0 --help' for more information." >&2;}
6721 { (exit 1); exit 1; }; } ;;
6722
6723 *) ac_config_targets="$ac_config_targets $1" ;;
6724
6725 esac
6726 shift
6727 done
6728
6729 ac_configure_extra_args=
6730
6731 if $ac_cs_silent; then
6732 exec 6>/dev/null
6733 ac_configure_extra_args="$ac_configure_extra_args --silent"
6734 fi
6735
6736 _ACEOF
6737 cat >>$CONFIG_STATUS <<_ACEOF
6738 if \$ac_cs_recheck; then
6739 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6740 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6741 fi
6742
6743 _ACEOF
6744
6745 cat >>$CONFIG_STATUS <<_ACEOF
6746 #
6747 # INIT-COMMANDS section.
6748 #
6749
6750 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6751
6752 _ACEOF
6753
6754
6755
6756 cat >>$CONFIG_STATUS <<\_ACEOF
6757 for ac_config_target in $ac_config_targets
6758 do
6759 case "$ac_config_target" in
6760 # Handling of arguments.
6761 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6762 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6763 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6764 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6765 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6766 { (exit 1); exit 1; }; };;
6767 esac
6768 done
6769
6770 # If the user did not use the arguments to specify the items to instantiate,
6771 # then the envvar interface is used. Set only those that are not.
6772 # We use the long form for the default assignment because of an extremely
6773 # bizarre bug on SunOS 4.1.3.
6774 if $ac_need_defaults; then
6775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6778 fi
6779
6780 # Have a temporary directory for convenience. Make it in the build tree
6781 # simply because there is no reason to put it here, and in addition,
6782 # creating and moving files from /tmp can sometimes cause problems.
6783 # Create a temporary directory, and hook for its removal unless debugging.
6784 $debug ||
6785 {
6786 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6787 trap '{ (exit 1); exit 1; }' 1 2 13 15
6788 }
6789
6790 # Create a (secure) tmp directory for tmp files.
6791
6792 {
6793 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6794 test -n "$tmp" && test -d "$tmp"
6795 } ||
6796 {
6797 tmp=./confstat$$-$RANDOM
6798 (umask 077 && mkdir $tmp)
6799 } ||
6800 {
6801 echo "$me: cannot create a temporary directory in ." >&2
6802 { (exit 1); exit 1; }
6803 }
6804
6805 _ACEOF
6806
6807 cat >>$CONFIG_STATUS <<_ACEOF
6808
6809 #
6810 # CONFIG_FILES section.
6811 #
6812
6813 # No need to generate the scripts if there are no CONFIG_FILES.
6814 # This happens for instance when ./config.status config.h
6815 if test -n "\$CONFIG_FILES"; then
6816 # Protect against being on the right side of a sed subst in config.status.
6817 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6818 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6819 s,@SHELL@,$SHELL,;t t
6820 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6821 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6822 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6823 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6824 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6825 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6826 s,@exec_prefix@,$exec_prefix,;t t
6827 s,@prefix@,$prefix,;t t
6828 s,@program_transform_name@,$program_transform_name,;t t
6829 s,@bindir@,$bindir,;t t
6830 s,@sbindir@,$sbindir,;t t
6831 s,@libexecdir@,$libexecdir,;t t
6832 s,@datadir@,$datadir,;t t
6833 s,@sysconfdir@,$sysconfdir,;t t
6834 s,@sharedstatedir@,$sharedstatedir,;t t
6835 s,@localstatedir@,$localstatedir,;t t
6836 s,@libdir@,$libdir,;t t
6837 s,@includedir@,$includedir,;t t
6838 s,@oldincludedir@,$oldincludedir,;t t
6839 s,@infodir@,$infodir,;t t
6840 s,@mandir@,$mandir,;t t
6841 s,@build_alias@,$build_alias,;t t
6842 s,@host_alias@,$host_alias,;t t
6843 s,@target_alias@,$target_alias,;t t
6844 s,@DEFS@,$DEFS,;t t
6845 s,@ECHO_C@,$ECHO_C,;t t
6846 s,@ECHO_N@,$ECHO_N,;t t
6847 s,@ECHO_T@,$ECHO_T,;t t
6848 s,@LIBS@,$LIBS,;t t
6849 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6850 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6851 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6852 s,@CYGPATH_W@,$CYGPATH_W,;t t
6853 s,@PACKAGE@,$PACKAGE,;t t
6854 s,@VERSION@,$VERSION,;t t
6855 s,@ACLOCAL@,$ACLOCAL,;t t
6856 s,@AUTOCONF@,$AUTOCONF,;t t
6857 s,@AUTOMAKE@,$AUTOMAKE,;t t
6858 s,@AUTOHEADER@,$AUTOHEADER,;t t
6859 s,@MAKEINFO@,$MAKEINFO,;t t
6860 s,@install_sh@,$install_sh,;t t
6861 s,@STRIP@,$STRIP,;t t
6862 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6863 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6864 s,@mkdir_p@,$mkdir_p,;t t
6865 s,@AWK@,$AWK,;t t
6866 s,@SET_MAKE@,$SET_MAKE,;t t
6867 s,@am__leading_dot@,$am__leading_dot,;t t
6868 s,@AMTAR@,$AMTAR,;t t
6869 s,@am__tar@,$am__tar,;t t
6870 s,@am__untar@,$am__untar,;t t
6871 s,@CXX@,$CXX,;t t
6872 s,@CXXFLAGS@,$CXXFLAGS,;t t
6873 s,@LDFLAGS@,$LDFLAGS,;t t
6874 s,@CPPFLAGS@,$CPPFLAGS,;t t
6875 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6876 s,@EXEEXT@,$EXEEXT,;t t
6877 s,@OBJEXT@,$OBJEXT,;t t
6878 s,@DEPDIR@,$DEPDIR,;t t
6879 s,@am__include@,$am__include,;t t
6880 s,@am__quote@,$am__quote,;t t
6881 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6882 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6883 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6884 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6885 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6886 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6887 s,@CC@,$CC,;t t
6888 s,@CFLAGS@,$CFLAGS,;t t
6889 s,@ac_ct_CC@,$ac_ct_CC,;t t
6890 s,@CCDEPMODE@,$CCDEPMODE,;t t
6891 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6892 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6893 s,@CPP@,$CPP,;t t
6894 s,@EGREP@,$EGREP,;t t
6895 s,@LIBOBJS@,$LIBOBJS,;t t
6896 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6897 CEOF
6898
6899 _ACEOF
6900
6901 cat >>$CONFIG_STATUS <<\_ACEOF
6902 # Split the substitutions into bite-sized pieces for seds with
6903 # small command number limits, like on Digital OSF/1 and HP-UX.
6904 ac_max_sed_lines=48
6905 ac_sed_frag=1 # Number of current file.
6906 ac_beg=1 # First line for current file.
6907 ac_end=$ac_max_sed_lines # Line after last line for current file.
6908 ac_more_lines=:
6909 ac_sed_cmds=
6910 while $ac_more_lines; do
6911 if test $ac_beg -gt 1; then
6912 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6913 else
6914 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6915 fi
6916 if test ! -s $tmp/subs.frag; then
6917 ac_more_lines=false
6918 else
6919 # The purpose of the label and of the branching condition is to
6920 # speed up the sed processing (if there are no `@' at all, there
6921 # is no need to browse any of the substitutions).
6922 # These are the two extra sed commands mentioned above.
6923 (echo ':t
6924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6925 if test -z "$ac_sed_cmds"; then
6926 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6927 else
6928 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6929 fi
6930 ac_sed_frag=`expr $ac_sed_frag + 1`
6931 ac_beg=$ac_end
6932 ac_end=`expr $ac_end + $ac_max_sed_lines`
6933 fi
6934 done
6935 if test -z "$ac_sed_cmds"; then
6936 ac_sed_cmds=cat
6937 fi
6938 fi # test -n "$CONFIG_FILES"
6939
6940 _ACEOF
6941 cat >>$CONFIG_STATUS <<\_ACEOF
6942 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6944 case $ac_file in
6945 - | *:- | *:-:* ) # input from stdin
6946 cat >$tmp/stdin
6947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6951 * ) ac_file_in=$ac_file.in ;;
6952 esac
6953
6954 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6955 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6957 X"$ac_file" : 'X\(//\)[^/]' \| \
6958 X"$ac_file" : 'X\(//\)$' \| \
6959 X"$ac_file" : 'X\(/\)' \| \
6960 . : '\(.\)' 2>/dev/null ||
6961 echo X"$ac_file" |
6962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6964 /^X\(\/\/\)$/{ s//\1/; q; }
6965 /^X\(\/\).*/{ s//\1/; q; }
6966 s/.*/./; q'`
6967 { if $as_mkdir_p; then
6968 mkdir -p "$ac_dir"
6969 else
6970 as_dir="$ac_dir"
6971 as_dirs=
6972 while test ! -d "$as_dir"; do
6973 as_dirs="$as_dir $as_dirs"
6974 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6976 X"$as_dir" : 'X\(//\)[^/]' \| \
6977 X"$as_dir" : 'X\(//\)$' \| \
6978 X"$as_dir" : 'X\(/\)' \| \
6979 . : '\(.\)' 2>/dev/null ||
6980 echo X"$as_dir" |
6981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6983 /^X\(\/\/\)$/{ s//\1/; q; }
6984 /^X\(\/\).*/{ s//\1/; q; }
6985 s/.*/./; q'`
6986 done
6987 test ! -n "$as_dirs" || mkdir $as_dirs
6988 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6989 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6990 { (exit 1); exit 1; }; }; }
6991
6992 ac_builddir=.
6993
6994 if test "$ac_dir" != .; then
6995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6996 # A "../" for each directory in $ac_dir_suffix.
6997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6998 else
6999 ac_dir_suffix= ac_top_builddir=
7000 fi
7001
7002 case $srcdir in
7003 .) # No --srcdir option. We are building in place.
7004 ac_srcdir=.
7005 if test -z "$ac_top_builddir"; then
7006 ac_top_srcdir=.
7007 else
7008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7009 fi ;;
7010 [\\/]* | ?:[\\/]* ) # Absolute path.
7011 ac_srcdir=$srcdir$ac_dir_suffix;
7012 ac_top_srcdir=$srcdir ;;
7013 *) # Relative path.
7014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7016 esac
7017
7018 # Do not use `cd foo && pwd` to compute absolute paths, because
7019 # the directories may not exist.
7020 case `pwd` in
7021 .) ac_abs_builddir="$ac_dir";;
7022 *)
7023 case "$ac_dir" in
7024 .) ac_abs_builddir=`pwd`;;
7025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7027 esac;;
7028 esac
7029 case $ac_abs_builddir in
7030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7031 *)
7032 case ${ac_top_builddir}. in
7033 .) ac_abs_top_builddir=$ac_abs_builddir;;
7034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7036 esac;;
7037 esac
7038 case $ac_abs_builddir in
7039 .) ac_abs_srcdir=$ac_srcdir;;
7040 *)
7041 case $ac_srcdir in
7042 .) ac_abs_srcdir=$ac_abs_builddir;;
7043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7045 esac;;
7046 esac
7047 case $ac_abs_builddir in
7048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7049 *)
7050 case $ac_top_srcdir in
7051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7054 esac;;
7055 esac
7056
7057
7058 case $INSTALL in
7059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7060 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7061 esac
7062
7063 if test x"$ac_file" != x-; then
7064 { echo "$as_me:$LINENO: creating $ac_file" >&5
7065 echo "$as_me: creating $ac_file" >&6;}
7066 rm -f "$ac_file"
7067 fi
7068 # Let's still pretend it is `configure' which instantiates (i.e., don't
7069 # use $as_me), people would be surprised to read:
7070 # /* config.h. Generated by config.status. */
7071 if test x"$ac_file" = x-; then
7072 configure_input=
7073 else
7074 configure_input="$ac_file. "
7075 fi
7076 configure_input=$configure_input"Generated from `echo $ac_file_in |
7077 sed 's,.*/,,'` by configure."
7078
7079 # First look for the input files in the build tree, otherwise in the
7080 # src tree.
7081 ac_file_inputs=`IFS=:
7082 for f in $ac_file_in; do
7083 case $f in
7084 -) echo $tmp/stdin ;;
7085 [\\/$]*)
7086 # Absolute (can't be DOS-style, as IFS=:)
7087 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7088 echo "$as_me: error: cannot find input file: $f" >&2;}
7089 { (exit 1); exit 1; }; }
7090 echo "$f";;
7091 *) # Relative
7092 if test -f "$f"; then
7093 # Build tree
7094 echo "$f"
7095 elif test -f "$srcdir/$f"; then
7096 # Source tree
7097 echo "$srcdir/$f"
7098 else
7099 # /dev/null tree
7100 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7101 echo "$as_me: error: cannot find input file: $f" >&2;}
7102 { (exit 1); exit 1; }; }
7103 fi;;
7104 esac
7105 done` || { (exit 1); exit 1; }
7106 _ACEOF
7107 cat >>$CONFIG_STATUS <<_ACEOF
7108 sed "$ac_vpsub
7109 $extrasub
7110 _ACEOF
7111 cat >>$CONFIG_STATUS <<\_ACEOF
7112 :t
7113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7114 s,@configure_input@,$configure_input,;t t
7115 s,@srcdir@,$ac_srcdir,;t t
7116 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7117 s,@top_srcdir@,$ac_top_srcdir,;t t
7118 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7119 s,@builddir@,$ac_builddir,;t t
7120 s,@abs_builddir@,$ac_abs_builddir,;t t
7121 s,@top_builddir@,$ac_top_builddir,;t t
7122 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7123 s,@INSTALL@,$ac_INSTALL,;t t
7124 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7125 rm -f $tmp/stdin
7126 if test x"$ac_file" != x-; then
7127 mv $tmp/out $ac_file
7128 else
7129 cat $tmp/out
7130 rm -f $tmp/out
7131 fi
7132
7133 done
7134 _ACEOF
7135 cat >>$CONFIG_STATUS <<\_ACEOF
7136
7137 #
7138 # CONFIG_HEADER section.
7139 #
7140
7141 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7142 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7143 #
7144 # ac_d sets the value in "#define NAME VALUE" lines.
7145 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7146 ac_dB='[ ].*$,\1#\2'
7147 ac_dC=' '
7148 ac_dD=',;t'
7149 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7150 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7151 ac_uB='$,\1#\2define\3'
7152 ac_uC=' '
7153 ac_uD=',;t'
7154
7155 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7157 case $ac_file in
7158 - | *:- | *:-:* ) # input from stdin
7159 cat >$tmp/stdin
7160 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7162 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7164 * ) ac_file_in=$ac_file.in ;;
7165 esac
7166
7167 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7168 echo "$as_me: creating $ac_file" >&6;}
7169
7170 # First look for the input files in the build tree, otherwise in the
7171 # src tree.
7172 ac_file_inputs=`IFS=:
7173 for f in $ac_file_in; do
7174 case $f in
7175 -) echo $tmp/stdin ;;
7176 [\\/$]*)
7177 # Absolute (can't be DOS-style, as IFS=:)
7178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7179 echo "$as_me: error: cannot find input file: $f" >&2;}
7180 { (exit 1); exit 1; }; }
7181 # Do quote $f, to prevent DOS paths from being IFS'd.
7182 echo "$f";;
7183 *) # Relative
7184 if test -f "$f"; then
7185 # Build tree
7186 echo "$f"
7187 elif test -f "$srcdir/$f"; then
7188 # Source tree
7189 echo "$srcdir/$f"
7190 else
7191 # /dev/null tree
7192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7193 echo "$as_me: error: cannot find input file: $f" >&2;}
7194 { (exit 1); exit 1; }; }
7195 fi;;
7196 esac
7197 done` || { (exit 1); exit 1; }
7198 # Remove the trailing spaces.
7199 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7200
7201 _ACEOF
7202
7203 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7204 # `conftest.undefs', that substitutes the proper values into
7205 # config.h.in to produce config.h. The first handles `#define'
7206 # templates, and the second `#undef' templates.
7207 # And first: Protect against being on the right side of a sed subst in
7208 # config.status. Protect against being in an unquoted here document
7209 # in config.status.
7210 rm -f conftest.defines conftest.undefs
7211 # Using a here document instead of a string reduces the quoting nightmare.
7212 # Putting comments in sed scripts is not portable.
7213 #
7214 # `end' is used to avoid that the second main sed command (meant for
7215 # 0-ary CPP macros) applies to n-ary macro definitions.
7216 # See the Autoconf documentation for `clear'.
7217 cat >confdef2sed.sed <<\_ACEOF
7218 s/[\\&,]/\\&/g
7219 s,[\\$`],\\&,g
7220 t clear
7221 : clear
7222 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7223 t end
7224 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7225 : end
7226 _ACEOF
7227 # If some macros were called several times there might be several times
7228 # the same #defines, which is useless. Nevertheless, we may not want to
7229 # sort them, since we want the *last* AC-DEFINE to be honored.
7230 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7231 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7232 rm -f confdef2sed.sed
7233
7234 # This sed command replaces #undef with comments. This is necessary, for
7235 # example, in the case of _POSIX_SOURCE, which is predefined and required
7236 # on some systems where configure will not decide to define it.
7237 cat >>conftest.undefs <<\_ACEOF
7238 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7239 _ACEOF
7240
7241 # Break up conftest.defines because some shells have a limit on the size
7242 # of here documents, and old seds have small limits too (100 cmds).
7243 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7244 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7245 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7246 echo ' :' >>$CONFIG_STATUS
7247 rm -f conftest.tail
7248 while grep . conftest.defines >/dev/null
7249 do
7250 # Write a limited-size here document to $tmp/defines.sed.
7251 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7252 # Speed up: don't consider the non `#define' lines.
7253 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7254 # Work around the forget-to-reset-the-flag bug.
7255 echo 't clr' >>$CONFIG_STATUS
7256 echo ': clr' >>$CONFIG_STATUS
7257 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7258 echo 'CEOF
7259 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7260 rm -f $tmp/in
7261 mv $tmp/out $tmp/in
7262 ' >>$CONFIG_STATUS
7263 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7264 rm -f conftest.defines
7265 mv conftest.tail conftest.defines
7266 done
7267 rm -f conftest.defines
7268 echo ' fi # grep' >>$CONFIG_STATUS
7269 echo >>$CONFIG_STATUS
7270
7271 # Break up conftest.undefs because some shells have a limit on the size
7272 # of here documents, and old seds have small limits too (100 cmds).
7273 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7274 rm -f conftest.tail
7275 while grep . conftest.undefs >/dev/null
7276 do
7277 # Write a limited-size here document to $tmp/undefs.sed.
7278 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7279 # Speed up: don't consider the non `#undef'
7280 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7281 # Work around the forget-to-reset-the-flag bug.
7282 echo 't clr' >>$CONFIG_STATUS
7283 echo ': clr' >>$CONFIG_STATUS
7284 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7285 echo 'CEOF
7286 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7287 rm -f $tmp/in
7288 mv $tmp/out $tmp/in
7289 ' >>$CONFIG_STATUS
7290 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7291 rm -f conftest.undefs
7292 mv conftest.tail conftest.undefs
7293 done
7294 rm -f conftest.undefs
7295
7296 cat >>$CONFIG_STATUS <<\_ACEOF
7297 # Let's still pretend it is `configure' which instantiates (i.e., don't
7298 # use $as_me), people would be surprised to read:
7299 # /* config.h. Generated by config.status. */
7300 if test x"$ac_file" = x-; then
7301 echo "/* Generated by configure. */" >$tmp/config.h
7302 else
7303 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7304 fi
7305 cat $tmp/in >>$tmp/config.h
7306 rm -f $tmp/in
7307 if test x"$ac_file" != x-; then
7308 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7310 echo "$as_me: $ac_file is unchanged" >&6;}
7311 else
7312 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7314 X"$ac_file" : 'X\(//\)[^/]' \| \
7315 X"$ac_file" : 'X\(//\)$' \| \
7316 X"$ac_file" : 'X\(/\)' \| \
7317 . : '\(.\)' 2>/dev/null ||
7318 echo X"$ac_file" |
7319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7321 /^X\(\/\/\)$/{ s//\1/; q; }
7322 /^X\(\/\).*/{ s//\1/; q; }
7323 s/.*/./; q'`
7324 { if $as_mkdir_p; then
7325 mkdir -p "$ac_dir"
7326 else
7327 as_dir="$ac_dir"
7328 as_dirs=
7329 while test ! -d "$as_dir"; do
7330 as_dirs="$as_dir $as_dirs"
7331 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7333 X"$as_dir" : 'X\(//\)[^/]' \| \
7334 X"$as_dir" : 'X\(//\)$' \| \
7335 X"$as_dir" : 'X\(/\)' \| \
7336 . : '\(.\)' 2>/dev/null ||
7337 echo X"$as_dir" |
7338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7340 /^X\(\/\/\)$/{ s//\1/; q; }
7341 /^X\(\/\).*/{ s//\1/; q; }
7342 s/.*/./; q'`
7343 done
7344 test ! -n "$as_dirs" || mkdir $as_dirs
7345 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7347 { (exit 1); exit 1; }; }; }
7348
7349 rm -f $ac_file
7350 mv $tmp/config.h $ac_file
7351 fi
7352 else
7353 cat $tmp/config.h
7354 rm -f $tmp/config.h
7355 fi
7356 # Compute $ac_file's index in $config_headers.
7357 _am_stamp_count=1
7358 for _am_header in $config_headers :; do
7359 case $_am_header in
7360 $ac_file | $ac_file:* )
7361 break ;;
7362 * )
7363 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7364 esac
7365 done
7366 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7367 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7368 X$ac_file : 'X\(//\)[^/]' \| \
7369 X$ac_file : 'X\(//\)$' \| \
7370 X$ac_file : 'X\(/\)' \| \
7371 . : '\(.\)' 2>/dev/null ||
7372 echo X$ac_file |
7373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7375 /^X\(\/\/\)$/{ s//\1/; q; }
7376 /^X\(\/\).*/{ s//\1/; q; }
7377 s/.*/./; q'`/stamp-h$_am_stamp_count
7378 done
7379 _ACEOF
7380 cat >>$CONFIG_STATUS <<\_ACEOF
7381
7382 #
7383 # CONFIG_COMMANDS section.
7384 #
7385 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7386 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7387 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7388 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7389 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7390 X"$ac_dest" : 'X\(//\)[^/]' \| \
7391 X"$ac_dest" : 'X\(//\)$' \| \
7392 X"$ac_dest" : 'X\(/\)' \| \
7393 . : '\(.\)' 2>/dev/null ||
7394 echo X"$ac_dest" |
7395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7397 /^X\(\/\/\)$/{ s//\1/; q; }
7398 /^X\(\/\).*/{ s//\1/; q; }
7399 s/.*/./; q'`
7400 { if $as_mkdir_p; then
7401 mkdir -p "$ac_dir"
7402 else
7403 as_dir="$ac_dir"
7404 as_dirs=
7405 while test ! -d "$as_dir"; do
7406 as_dirs="$as_dir $as_dirs"
7407 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7409 X"$as_dir" : 'X\(//\)[^/]' \| \
7410 X"$as_dir" : 'X\(//\)$' \| \
7411 X"$as_dir" : 'X\(/\)' \| \
7412 . : '\(.\)' 2>/dev/null ||
7413 echo X"$as_dir" |
7414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7416 /^X\(\/\/\)$/{ s//\1/; q; }
7417 /^X\(\/\).*/{ s//\1/; q; }
7418 s/.*/./; q'`
7419 done
7420 test ! -n "$as_dirs" || mkdir $as_dirs
7421 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7423 { (exit 1); exit 1; }; }; }
7424
7425 ac_builddir=.
7426
7427 if test "$ac_dir" != .; then
7428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7429 # A "../" for each directory in $ac_dir_suffix.
7430 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7431 else
7432 ac_dir_suffix= ac_top_builddir=
7433 fi
7434
7435 case $srcdir in
7436 .) # No --srcdir option. We are building in place.
7437 ac_srcdir=.
7438 if test -z "$ac_top_builddir"; then
7439 ac_top_srcdir=.
7440 else
7441 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7442 fi ;;
7443 [\\/]* | ?:[\\/]* ) # Absolute path.
7444 ac_srcdir=$srcdir$ac_dir_suffix;
7445 ac_top_srcdir=$srcdir ;;
7446 *) # Relative path.
7447 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7448 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7449 esac
7450
7451 # Do not use `cd foo && pwd` to compute absolute paths, because
7452 # the directories may not exist.
7453 case `pwd` in
7454 .) ac_abs_builddir="$ac_dir";;
7455 *)
7456 case "$ac_dir" in
7457 .) ac_abs_builddir=`pwd`;;
7458 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7459 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7460 esac;;
7461 esac
7462 case $ac_abs_builddir in
7463 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7464 *)
7465 case ${ac_top_builddir}. in
7466 .) ac_abs_top_builddir=$ac_abs_builddir;;
7467 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7468 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7469 esac;;
7470 esac
7471 case $ac_abs_builddir in
7472 .) ac_abs_srcdir=$ac_srcdir;;
7473 *)
7474 case $ac_srcdir in
7475 .) ac_abs_srcdir=$ac_abs_builddir;;
7476 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7477 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7478 esac;;
7479 esac
7480 case $ac_abs_builddir in
7481 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7482 *)
7483 case $ac_top_srcdir in
7484 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7485 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7486 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7487 esac;;
7488 esac
7489
7490
7491 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7492 echo "$as_me: executing $ac_dest commands" >&6;}
7493 case $ac_dest in
7494 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7495 # Strip MF so we end up with the name of the file.
7496 mf=`echo "$mf" | sed -e 's/:.*$//'`
7497 # Check whether this is an Automake generated Makefile or not.
7498 # We used to match only the files named `Makefile.in', but
7499 # some people rename them; so instead we look at the file content.
7500 # Grep'ing the first line is not enough: some people post-process
7501 # each Makefile.in and add a new line on top of each file to say so.
7502 # So let's grep whole file.
7503 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7504 dirpart=`(dirname "$mf") 2>/dev/null ||
7505 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7506 X"$mf" : 'X\(//\)[^/]' \| \
7507 X"$mf" : 'X\(//\)$' \| \
7508 X"$mf" : 'X\(/\)' \| \
7509 . : '\(.\)' 2>/dev/null ||
7510 echo X"$mf" |
7511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7513 /^X\(\/\/\)$/{ s//\1/; q; }
7514 /^X\(\/\).*/{ s//\1/; q; }
7515 s/.*/./; q'`
7516 else
7517 continue
7518 fi
7519 # Extract the definition of DEPDIR, am__include, and am__quote
7520 # from the Makefile without running `make'.
7521 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7522 test -z "$DEPDIR" && continue
7523 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7524 test -z "am__include" && continue
7525 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7526 # When using ansi2knr, U may be empty or an underscore; expand it
7527 U=`sed -n 's/^U = //p' < "$mf"`
7528 # Find all dependency output files, they are included files with
7529 # $(DEPDIR) in their names. We invoke sed twice because it is the
7530 # simplest approach to changing $(DEPDIR) to its actual value in the
7531 # expansion.
7532 for file in `sed -n "
7533 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7534 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7535 # Make sure the directory exists.
7536 test -f "$dirpart/$file" && continue
7537 fdir=`(dirname "$file") 2>/dev/null ||
7538 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7539 X"$file" : 'X\(//\)[^/]' \| \
7540 X"$file" : 'X\(//\)$' \| \
7541 X"$file" : 'X\(/\)' \| \
7542 . : '\(.\)' 2>/dev/null ||
7543 echo X"$file" |
7544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7546 /^X\(\/\/\)$/{ s//\1/; q; }
7547 /^X\(\/\).*/{ s//\1/; q; }
7548 s/.*/./; q'`
7549 { if $as_mkdir_p; then
7550 mkdir -p $dirpart/$fdir
7551 else
7552 as_dir=$dirpart/$fdir
7553 as_dirs=
7554 while test ! -d "$as_dir"; do
7555 as_dirs="$as_dir $as_dirs"
7556 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7558 X"$as_dir" : 'X\(//\)[^/]' \| \
7559 X"$as_dir" : 'X\(//\)$' \| \
7560 X"$as_dir" : 'X\(/\)' \| \
7561 . : '\(.\)' 2>/dev/null ||
7562 echo X"$as_dir" |
7563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7565 /^X\(\/\/\)$/{ s//\1/; q; }
7566 /^X\(\/\).*/{ s//\1/; q; }
7567 s/.*/./; q'`
7568 done
7569 test ! -n "$as_dirs" || mkdir $as_dirs
7570 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7571 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7572 { (exit 1); exit 1; }; }; }
7573
7574 # echo "creating $dirpart/$file"
7575 echo '# dummy' > "$dirpart/$file"
7576 done
7577 done
7578 ;;
7579 esac
7580 done
7581 _ACEOF
7582
7583 cat >>$CONFIG_STATUS <<\_ACEOF
7584
7585 { (exit 0); exit 0; }
7586 _ACEOF
7587 chmod +x $CONFIG_STATUS
7588 ac_clean_files=$ac_clean_files_save
7589
7590
7591 # configure is writing to config.log, and then calls config.status.
7592 # config.status does its own redirection, appending to config.log.
7593 # Unfortunately, on DOS this fails, as config.log is still kept open
7594 # by configure, so config.status won't be able to write to it; its
7595 # output is simply discarded. So we exec the FD to /dev/null,
7596 # effectively closing config.log, so it can be properly (re)opened and
7597 # appended to by config.status. When coming back to configure, we
7598 # need to make the FD available again.
7599 if test "$no_create" != yes; then
7600 ac_cs_success=:
7601 ac_config_status_args=
7602 test "$silent" = yes &&
7603 ac_config_status_args="$ac_config_status_args --quiet"
7604 exec 5>/dev/null
7605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7606 exec 5>>config.log
7607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7608 # would make configure fail if this is the last instruction.
7609 $ac_cs_success || { (exit 1); exit 1; }
7610 fi
7611