Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for asciijump "1.0.2beta".
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='asciijump'
271 PACKAGE_TARNAME='asciijump'
272 PACKAGE_VERSION='"1.0.2beta"'
273 PACKAGE_STRING='asciijump "1.0.2beta"'
274 PACKAGE_BUGREPORT='[email protected]'
275
276 ac_unique_file="main.c"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures asciijump "1.0.2beta" to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
833
834 cat <<\_ACEOF
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of asciijump "1.0.2beta":";;
841 esac
842 cat <<\_ACEOF
843
844 Some influential environment variables:
845 CC C compiler command
846 CFLAGS C compiler flags
847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848 nonstandard directory <lib dir>
849 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850 headers in a nonstandard directory <include dir>
851 CPP C preprocessor
852
853 Use these variables to override the choices made by `configure' or to help
854 it to find libraries and programs with nonstandard names/locations.
855
856 Report bugs to <[email protected]>.
857 _ACEOF
858 fi
859
860 if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
862 ac_popdir=`pwd`
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
865 ac_builddir=.
866
867 if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871 else
872 ac_dir_suffix= ac_top_builddir=
873 fi
874
875 case $srcdir in
876 .) # No --srcdir option. We are building in place.
877 ac_srcdir=.
878 if test -z "$ac_top_builddir"; then
879 ac_top_srcdir=.
880 else
881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882 fi ;;
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
886 *) # Relative path.
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
889 esac
890 case "$ac_dir" in
891 .) ac_abs_builddir=$ac_builddir;;
892 *)
893 case $ac_builddir in
894 .) ac_abs_builddir="$ac_dir";;
895 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
896 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
897 esac;;
898 esac
899 case "$ac_dir" in
900 .) ac_abs_top_builddir=${ac_top_builddir}.;;
901 *)
902 case ${ac_top_builddir}. in
903 .) ac_abs_top_builddir="$ac_dir";;
904 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
905 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
906 esac;;
907 esac
908 case "$ac_dir" in
909 .) ac_abs_srcdir=$ac_srcdir;;
910 *)
911 case $ac_srcdir in
912 .) ac_abs_srcdir="$ac_dir";;
913 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
914 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
915 esac;;
916 esac
917 case "$ac_dir" in
918 .) ac_abs_top_srcdir=$ac_top_srcdir;;
919 *)
920 case $ac_top_srcdir in
921 .) ac_abs_top_srcdir="$ac_dir";;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
923 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
924 esac;;
925 esac
926
927 cd $ac_dir
928 # Check for guested configure; otherwise get Cygnus style configure.
929 if test -f $ac_srcdir/configure.gnu; then
930 echo
931 $SHELL $ac_srcdir/configure.gnu --help=recursive
932 elif test -f $ac_srcdir/configure; then
933 echo
934 $SHELL $ac_srcdir/configure --help=recursive
935 elif test -f $ac_srcdir/configure.ac ||
936 test -f $ac_srcdir/configure.in; then
937 echo
938 $ac_configure --help
939 else
940 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941 fi
942 cd $ac_popdir
943 done
944 fi
945
946 test -n "$ac_init_help" && exit 0
947 if $ac_init_version; then
948 cat <<\_ACEOF
949 asciijump configure "1.0.2beta"
950 generated by GNU Autoconf 2.58
951
952 Copyright (C) 2003 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
955 _ACEOF
956 exit 0
957 fi
958 exec 5>config.log
959 cat >&5 <<_ACEOF
960 This file contains any messages produced by compilers while
961 running configure, to aid debugging if configure makes a mistake.
962
963 It was created by asciijump $as_me "1.0.2beta", which was
964 generated by GNU Autoconf 2.58. Invocation command line was
965
966 $ $0 $@
967
968 _ACEOF
969 {
970 cat <<_ASUNAME
971 ## --------- ##
972 ## Platform. ##
973 ## --------- ##
974
975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
980
981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
983
984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
991
992 _ASUNAME
993
994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
995 for as_dir in $PATH
996 do
997 IFS=$as_save_IFS
998 test -z "$as_dir" && as_dir=.
999 echo "PATH: $as_dir"
1000 done
1001
1002 } >&5
1003
1004 cat >&5 <<_ACEOF
1005
1006
1007 ## ----------- ##
1008 ## Core tests. ##
1009 ## ----------- ##
1010
1011 _ACEOF
1012
1013
1014 # Keep a trace of the command line.
1015 # Strip out --no-create and --no-recursion so they do not pile up.
1016 # Strip out --silent because we don't want to record it for future runs.
1017 # Also quote any args containing shell meta-characters.
1018 # Make two passes to allow for proper duplicate-argument suppression.
1019 ac_configure_args=
1020 ac_configure_args0=
1021 ac_configure_args1=
1022 ac_sep=
1023 ac_must_keep_next=false
1024 for ac_pass in 1 2
1025 do
1026 for ac_arg
1027 do
1028 case $ac_arg in
1029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 continue ;;
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035 esac
1036 case $ac_pass in
1037 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1038 2)
1039 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1040 if test $ac_must_keep_next = true; then
1041 ac_must_keep_next=false # Got value, back to normal.
1042 else
1043 case $ac_arg in
1044 *=* | --config-cache | -C | -disable-* | --disable-* \
1045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1047 | -with-* | --with-* | -without-* | --without-* | --x)
1048 case "$ac_configure_args0 " in
1049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1050 esac
1051 ;;
1052 -* ) ac_must_keep_next=true ;;
1053 esac
1054 fi
1055 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1056 # Get rid of the leading space.
1057 ac_sep=" "
1058 ;;
1059 esac
1060 done
1061 done
1062 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1063 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1064
1065 # When interrupted or exit'd, cleanup temporary files, and complete
1066 # config.log. We remove comments because anyway the quotes in there
1067 # would cause problems or look ugly.
1068 # WARNING: Be sure not to use single quotes in there, as some shells,
1069 # such as our DU 5.0 friend, will then `close' the trap.
1070 trap 'exit_status=$?
1071 # Save into config.log some information that might help in debugging.
1072 {
1073 echo
1074
1075 cat <<\_ASBOX
1076 ## ---------------- ##
1077 ## Cache variables. ##
1078 ## ---------------- ##
1079 _ASBOX
1080 echo
1081 # The following way of writing the cache mishandles newlines in values,
1082 {
1083 (set) 2>&1 |
1084 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085 *ac_space=\ *)
1086 sed -n \
1087 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089 ;;
1090 *)
1091 sed -n \
1092 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1093 ;;
1094 esac;
1095 }
1096 echo
1097
1098 cat <<\_ASBOX
1099 ## ----------------- ##
1100 ## Output variables. ##
1101 ## ----------------- ##
1102 _ASBOX
1103 echo
1104 for ac_var in $ac_subst_vars
1105 do
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1110
1111 if test -n "$ac_subst_files"; then
1112 cat <<\_ASBOX
1113 ## ------------- ##
1114 ## Output files. ##
1115 ## ------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_files
1119 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1124 fi
1125
1126 if test -s confdefs.h; then
1127 cat <<\_ASBOX
1128 ## ----------- ##
1129 ## confdefs.h. ##
1130 ## ----------- ##
1131 _ASBOX
1132 echo
1133 sed "/^$/d" confdefs.h | sort
1134 echo
1135 fi
1136 test "$ac_signal" != 0 &&
1137 echo "$as_me: caught signal $ac_signal"
1138 echo "$as_me: exit $exit_status"
1139 } >&5
1140 rm -f core *.core &&
1141 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1142 exit $exit_status
1143 ' 0
1144 for ac_signal in 1 2 13 15; do
1145 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1146 done
1147 ac_signal=0
1148
1149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1150 rm -rf conftest* confdefs.h
1151 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1152 echo >confdefs.h
1153
1154 # Predefined preprocessor variables.
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_NAME "$PACKAGE_NAME"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_STRING "$PACKAGE_STRING"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1178 _ACEOF
1179
1180
1181 # Let the site file select an alternate cache file if it wants to.
1182 # Prefer explicitly selected file to automatically selected ones.
1183 if test -z "$CONFIG_SITE"; then
1184 if test "x$prefix" != xNONE; then
1185 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1186 else
1187 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1188 fi
1189 fi
1190 for ac_site_file in $CONFIG_SITE; do
1191 if test -r "$ac_site_file"; then
1192 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1193 echo "$as_me: loading site script $ac_site_file" >&6;}
1194 sed 's/^/| /' "$ac_site_file" >&5
1195 . "$ac_site_file"
1196 fi
1197 done
1198
1199 if test -r "$cache_file"; then
1200 # Some versions of bash will fail to source /dev/null (special
1201 # files actually), so we avoid doing that.
1202 if test -f "$cache_file"; then
1203 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1204 echo "$as_me: loading cache $cache_file" >&6;}
1205 case $cache_file in
1206 [\\/]* | ?:[\\/]* ) . $cache_file;;
1207 *) . ./$cache_file;;
1208 esac
1209 fi
1210 else
1211 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1212 echo "$as_me: creating cache $cache_file" >&6;}
1213 >$cache_file
1214 fi
1215
1216 # Check that the precious variables saved in the cache have kept the same
1217 # value.
1218 ac_cache_corrupted=false
1219 for ac_var in `(set) 2>&1 |
1220 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1222 eval ac_new_set=\$ac_env_${ac_var}_set
1223 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1224 eval ac_new_val="\$ac_env_${ac_var}_value"
1225 case $ac_old_set,$ac_new_set in
1226 set,)
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1230 ,set)
1231 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1232 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1233 ac_cache_corrupted=: ;;
1234 ,);;
1235 *)
1236 if test "x$ac_old_val" != "x$ac_new_val"; then
1237 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1238 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1239 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1240 echo "$as_me: former value: $ac_old_val" >&2;}
1241 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1242 echo "$as_me: current value: $ac_new_val" >&2;}
1243 ac_cache_corrupted=:
1244 fi;;
1245 esac
1246 # Pass precious variables to config.status.
1247 if test "$ac_new_set" = set; then
1248 case $ac_new_val in
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 *) ac_arg=$ac_var=$ac_new_val ;;
1252 esac
1253 case " $ac_configure_args " in
1254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1255 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1256 esac
1257 fi
1258 done
1259 if $ac_cache_corrupted; then
1260 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1261 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1262 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1263 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1264 { (exit 1); exit 1; }; }
1265 fi
1266
1267 ac_ext=c
1268 ac_cpp='$CPP $CPPFLAGS'
1269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300 ac_config_headers="$ac_config_headers config.h"
1301
1302
1303 # Checks for programs.
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 if test -n "$ac_tool_prefix"; then
1310 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1311 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1312 echo "$as_me:$LINENO: checking for $ac_word" >&5
1313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314 if test "${ac_cv_prog_CC+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 else
1317 if test -n "$CC"; then
1318 ac_cv_prog_CC="$CC" # Let the user override the test.
1319 else
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 for as_dir in $PATH
1322 do
1323 IFS=$as_save_IFS
1324 test -z "$as_dir" && as_dir=.
1325 for ac_exec_ext in '' $ac_executable_extensions; do
1326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1327 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1329 break 2
1330 fi
1331 done
1332 done
1333
1334 fi
1335 fi
1336 CC=$ac_cv_prog_CC
1337 if test -n "$CC"; then
1338 echo "$as_me:$LINENO: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1340 else
1341 echo "$as_me:$LINENO: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1343 fi
1344
1345 fi
1346 if test -z "$ac_cv_prog_CC"; then
1347 ac_ct_CC=$CC
1348 # Extract the first word of "gcc", so it can be a program name with args.
1349 set dummy gcc; ac_word=$2
1350 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355 if test -n "$ac_ct_CC"; then
1356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1357 else
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 for as_dir in $PATH
1360 do
1361 IFS=$as_save_IFS
1362 test -z "$as_dir" && as_dir=.
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365 ac_cv_prog_ac_ct_CC="gcc"
1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367 break 2
1368 fi
1369 done
1370 done
1371
1372 fi
1373 fi
1374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375 if test -n "$ac_ct_CC"; then
1376 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1377 echo "${ECHO_T}$ac_ct_CC" >&6
1378 else
1379 echo "$as_me:$LINENO: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1381 fi
1382
1383 CC=$ac_ct_CC
1384 else
1385 CC="$ac_cv_prog_CC"
1386 fi
1387
1388 if test -z "$CC"; then
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}cc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC="$CC" # Let the user override the test.
1399 else
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 for as_dir in $PATH
1402 do
1403 IFS=$as_save_IFS
1404 test -z "$as_dir" && as_dir=.
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC="${ac_tool_prefix}cc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409 break 2
1410 fi
1411 done
1412 done
1413
1414 fi
1415 fi
1416 CC=$ac_cv_prog_CC
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1420 else
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1423 fi
1424
1425 fi
1426 if test -z "$ac_cv_prog_CC"; then
1427 ac_ct_CC=$CC
1428 # Extract the first word of "cc", so it can be a program name with args.
1429 set dummy cc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 else
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC="cc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 break 2
1448 fi
1449 done
1450 done
1451
1452 fi
1453 fi
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1458 else
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461 fi
1462
1463 CC=$ac_ct_CC
1464 else
1465 CC="$ac_cv_prog_CC"
1466 fi
1467
1468 fi
1469 if test -z "$CC"; then
1470 # Extract the first word of "cc", so it can be a program name with args.
1471 set dummy cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 ac_prog_rejected=no
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1489 ac_prog_rejected=yes
1490 continue
1491 fi
1492 ac_cv_prog_CC="cc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1495 fi
1496 done
1497 done
1498
1499 if test $ac_prog_rejected = yes; then
1500 # We found a bogon in the path, so make sure we never use it.
1501 set dummy $ac_cv_prog_CC
1502 shift
1503 if test $# != 0; then
1504 # We chose a different compiler from the bogus one.
1505 # However, it has the same basename, so the bogon will be chosen
1506 # first if we set CC to just the basename; use the full file name.
1507 shift
1508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1509 fi
1510 fi
1511 fi
1512 fi
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515 echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 fi
1521
1522 fi
1523 if test -z "$CC"; then
1524 if test -n "$ac_tool_prefix"; then
1525 for ac_prog in cl
1526 do
1527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 break 2
1547 fi
1548 done
1549 done
1550
1551 fi
1552 fi
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1561
1562 test -n "$CC" && break
1563 done
1564 fi
1565 if test -z "$CC"; then
1566 ac_ct_CC=$CC
1567 for ac_prog in cl
1568 do
1569 # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo "$as_me:$LINENO: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 if test -n "$ac_ct_CC"; then
1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578 else
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_prog_ac_ct_CC="$ac_prog"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 break 2
1589 fi
1590 done
1591 done
1592
1593 fi
1594 fi
1595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596 if test -n "$ac_ct_CC"; then
1597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598 echo "${ECHO_T}$ac_ct_CC" >&6
1599 else
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1602 fi
1603
1604 test -n "$ac_ct_CC" && break
1605 done
1606
1607 CC=$ac_ct_CC
1608 fi
1609
1610 fi
1611
1612
1613 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1614 See \`config.log' for more details." >&5
1615 echo "$as_me: error: no acceptable C compiler found in \$PATH
1616 See \`config.log' for more details." >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619 # Provide some information about the compiler.
1620 echo "$as_me:$LINENO:" \
1621 "checking for C compiler version" >&5
1622 ac_compiler=`set X $ac_compile; echo $2`
1623 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1624 (eval $ac_compiler --version </dev/null >&5) 2>&5
1625 ac_status=$?
1626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1627 (exit $ac_status); }
1628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1629 (eval $ac_compiler -v </dev/null >&5) 2>&5
1630 ac_status=$?
1631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632 (exit $ac_status); }
1633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1634 (eval $ac_compiler -V </dev/null >&5) 2>&5
1635 ac_status=$?
1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 (exit $ac_status); }
1638
1639 cat >conftest.$ac_ext <<_ACEOF
1640 /* confdefs.h. */
1641 _ACEOF
1642 cat confdefs.h >>conftest.$ac_ext
1643 cat >>conftest.$ac_ext <<_ACEOF
1644 /* end confdefs.h. */
1645
1646 int
1647 main ()
1648 {
1649
1650 ;
1651 return 0;
1652 }
1653 _ACEOF
1654 ac_clean_files_save=$ac_clean_files
1655 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1656 # Try to create an executable without -o first, disregard a.out.
1657 # It will help us diagnose broken compilers, and finding out an intuition
1658 # of exeext.
1659 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1660 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1661 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1662 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1663 (eval $ac_link_default) 2>&5
1664 ac_status=$?
1665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666 (exit $ac_status); }; then
1667 # Find the output, starting from the most likely. This scheme is
1668 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1669 # resort.
1670
1671 # Be careful to initialize this variable, since it used to be cached.
1672 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1673 ac_cv_exeext=
1674 # b.out is created by i960 compilers.
1675 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1676 do
1677 test -f "$ac_file" || continue
1678 case $ac_file in
1679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1680 ;;
1681 conftest.$ac_ext )
1682 # This is the source file.
1683 ;;
1684 [ab].out )
1685 # We found the default executable, but exeext='' is most
1686 # certainly right.
1687 break;;
1688 *.* )
1689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1690 # FIXME: I believe we export ac_cv_exeext for Libtool,
1691 # but it would be cool to find out if it's true. Does anybody
1692 # maintain Libtool? --akim.
1693 export ac_cv_exeext
1694 break;;
1695 * )
1696 break;;
1697 esac
1698 done
1699 else
1700 echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1704 See \`config.log' for more details." >&5
1705 echo "$as_me: error: C compiler cannot create executables
1706 See \`config.log' for more details." >&2;}
1707 { (exit 77); exit 77; }; }
1708 fi
1709
1710 ac_exeext=$ac_cv_exeext
1711 echo "$as_me:$LINENO: result: $ac_file" >&5
1712 echo "${ECHO_T}$ac_file" >&6
1713
1714 # Check the compiler produces executables we can run. If not, either
1715 # the compiler is broken, or we cross compile.
1716 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1717 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1718 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1719 # If not cross compiling, check that we can run a simple program.
1720 if test "$cross_compiling" != yes; then
1721 if { ac_try='./$ac_file'
1722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1723 (eval $ac_try) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }; }; then
1727 cross_compiling=no
1728 else
1729 if test "$cross_compiling" = maybe; then
1730 cross_compiling=yes
1731 else
1732 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1733 If you meant to cross compile, use \`--host'.
1734 See \`config.log' for more details." >&5
1735 echo "$as_me: error: cannot run C compiled programs.
1736 If you meant to cross compile, use \`--host'.
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1739 fi
1740 fi
1741 fi
1742 echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6
1744
1745 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1746 ac_clean_files=$ac_clean_files_save
1747 # Check the compiler produces executables we can run. If not, either
1748 # the compiler is broken, or we cross compile.
1749 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1750 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1751 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1752 echo "${ECHO_T}$cross_compiling" >&6
1753
1754 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1755 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1757 (eval $ac_link) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }; then
1761 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1762 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1763 # work properly (i.e., refer to `conftest.exe'), while it won't with
1764 # `rm'.
1765 for ac_file in conftest.exe conftest conftest.*; do
1766 test -f "$ac_file" || continue
1767 case $ac_file in
1768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1769 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1770 export ac_cv_exeext
1771 break;;
1772 * ) break;;
1773 esac
1774 done
1775 else
1776 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1779 See \`config.log' for more details." >&2;}
1780 { (exit 1); exit 1; }; }
1781 fi
1782
1783 rm -f conftest$ac_cv_exeext
1784 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1785 echo "${ECHO_T}$ac_cv_exeext" >&6
1786
1787 rm -f conftest.$ac_ext
1788 EXEEXT=$ac_cv_exeext
1789 ac_exeext=$EXEEXT
1790 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1791 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1792 if test "${ac_cv_objext+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 cat >conftest.$ac_ext <<_ACEOF
1796 /* confdefs.h. */
1797 _ACEOF
1798 cat confdefs.h >>conftest.$ac_ext
1799 cat >>conftest.$ac_ext <<_ACEOF
1800 /* end confdefs.h. */
1801
1802 int
1803 main ()
1804 {
1805
1806 ;
1807 return 0;
1808 }
1809 _ACEOF
1810 rm -f conftest.o conftest.obj
1811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1812 (eval $ac_compile) 2>&5
1813 ac_status=$?
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }; then
1816 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1817 case $ac_file in
1818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1820 break;;
1821 esac
1822 done
1823 else
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1832 fi
1833
1834 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1835 fi
1836 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1837 echo "${ECHO_T}$ac_cv_objext" >&6
1838 OBJEXT=$ac_cv_objext
1839 ac_objext=$OBJEXT
1840 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1841 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1842 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h. */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1851
1852 int
1853 main ()
1854 {
1855 #ifndef __GNUC__
1856 choke me
1857 #endif
1858
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 rm -f conftest.$ac_objext
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>conftest.er1
1866 ac_status=$?
1867 grep -v '^ *+' conftest.er1 >conftest.err
1868 rm -f conftest.er1
1869 cat conftest.err >&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); } &&
1872 { ac_try='test -z "$ac_c_werror_flag"
1873 || test ! -s conftest.err'
1874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875 (eval $ac_try) 2>&5
1876 ac_status=$?
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; } &&
1879 { ac_try='test -s conftest.$ac_objext'
1880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1881 (eval $ac_try) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; }; then
1885 ac_compiler_gnu=yes
1886 else
1887 echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_compiler_gnu=no
1891 fi
1892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1894
1895 fi
1896 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1897 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1898 GCC=`test $ac_compiler_gnu = yes && echo yes`
1899 ac_test_CFLAGS=${CFLAGS+set}
1900 ac_save_CFLAGS=$CFLAGS
1901 CFLAGS="-g"
1902 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1903 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1904 if test "${ac_cv_prog_cc_g+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 cat >conftest.$ac_ext <<_ACEOF
1908 /* confdefs.h. */
1909 _ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h. */
1913
1914 int
1915 main ()
1916 {
1917
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 rm -f conftest.$ac_objext
1923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>conftest.er1
1925 ac_status=$?
1926 grep -v '^ *+' conftest.er1 >conftest.err
1927 rm -f conftest.er1
1928 cat conftest.err >&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -z "$ac_c_werror_flag"
1932 || test ! -s conftest.err'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 (eval $ac_try) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; } &&
1938 { ac_try='test -s conftest.$ac_objext'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1944 ac_cv_prog_cc_g=yes
1945 else
1946 echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_cv_prog_cc_g=no
1950 fi
1951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1954 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1955 if test "$ac_test_CFLAGS" = set; then
1956 CFLAGS=$ac_save_CFLAGS
1957 elif test $ac_cv_prog_cc_g = yes; then
1958 if test "$GCC" = yes; then
1959 CFLAGS="-g -O2"
1960 else
1961 CFLAGS="-g"
1962 fi
1963 else
1964 if test "$GCC" = yes; then
1965 CFLAGS="-O2"
1966 else
1967 CFLAGS=
1968 fi
1969 fi
1970 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1971 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 ac_cv_prog_cc_stdc=no
1976 ac_save_CC=$CC
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h. */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1983 #include <stdarg.h>
1984 #include <stdio.h>
1985 #include <sys/types.h>
1986 #include <sys/stat.h>
1987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1988 struct buf { int x; };
1989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1990 static char *e (p, i)
1991 char **p;
1992 int i;
1993 {
1994 return p[i];
1995 }
1996 static char *f (char * (*g) (char **, int), char **p, ...)
1997 {
1998 char *s;
1999 va_list v;
2000 va_start (v,p);
2001 s = g (p, va_arg (v,int));
2002 va_end (v);
2003 return s;
2004 }
2005
2006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2007 function prototypes and stuff, but not '\xHH' hex character constants.
2008 These don't provoke an error unfortunately, instead are silently treated
2009 as 'x'. The following induces an error, until -std1 is added to get
2010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2011 array size at least. It's necessary to write '\x00'==0 to get something
2012 that's true only with -std1. */
2013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2014
2015 int test (int i, double x);
2016 struct s1 {int (*f) (int a);};
2017 struct s2 {int (*f) (double a);};
2018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2019 int argc;
2020 char **argv;
2021 int
2022 main ()
2023 {
2024 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 # Don't try gcc -ansi; that turns off useful extensions and
2030 # breaks some systems' header files.
2031 # AIX -qlanglvl=ansi
2032 # Ultrix and OSF/1 -std1
2033 # HP-UX 10.20 and later -Ae
2034 # HP-UX older versions -Aa -D_HPUX_SOURCE
2035 # SVR4 -Xc -D__EXTENSIONS__
2036 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2037 do
2038 CC="$ac_save_CC $ac_arg"
2039 rm -f conftest.$ac_objext
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>conftest.er1
2042 ac_status=$?
2043 grep -v '^ *+' conftest.er1 >conftest.err
2044 rm -f conftest.er1
2045 cat conftest.err >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -z "$ac_c_werror_flag"
2049 || test ! -s conftest.err'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 (eval $ac_try) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; } &&
2055 { ac_try='test -s conftest.$ac_objext'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 ac_cv_prog_cc_stdc=$ac_arg
2062 break
2063 else
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 fi
2068 rm -f conftest.err conftest.$ac_objext
2069 done
2070 rm -f conftest.$ac_ext conftest.$ac_objext
2071 CC=$ac_save_CC
2072
2073 fi
2074
2075 case "x$ac_cv_prog_cc_stdc" in
2076 x|xno)
2077 echo "$as_me:$LINENO: result: none needed" >&5
2078 echo "${ECHO_T}none needed" >&6 ;;
2079 *)
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2082 CC="$CC $ac_cv_prog_cc_stdc" ;;
2083 esac
2084
2085 # Some people use a C++ compiler to compile C. Since we use `exit',
2086 # in C++ we need to declare it. In case someone uses the same compiler
2087 # for both compiling C and C++ we need to have the C++ compiler decide
2088 # the declaration of exit, since it's the most demanding environment.
2089 cat >conftest.$ac_ext <<_ACEOF
2090 #ifndef __cplusplus
2091 choke me
2092 #endif
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>conftest.er1
2097 ac_status=$?
2098 grep -v '^ *+' conftest.er1 >conftest.err
2099 rm -f conftest.er1
2100 cat conftest.err >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -z "$ac_c_werror_flag"
2104 || test ! -s conftest.err'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; } &&
2110 { ac_try='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 (eval $ac_try) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2116 for ac_declaration in \
2117 '' \
2118 'extern "C" void std::exit (int) throw (); using std::exit;' \
2119 'extern "C" void std::exit (int); using std::exit;' \
2120 'extern "C" void exit (int) throw ();' \
2121 'extern "C" void exit (int);' \
2122 'void exit (int);'
2123 do
2124 cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h. */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2130 $ac_declaration
2131 #include <stdlib.h>
2132 int
2133 main ()
2134 {
2135 exit (42);
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2143 ac_status=$?
2144 grep -v '^ *+' conftest.er1 >conftest.err
2145 rm -f conftest.er1
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag"
2150 || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 :
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 continue
2168 fi
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 cat >conftest.$ac_ext <<_ACEOF
2171 /* confdefs.h. */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2176 $ac_declaration
2177 int
2178 main ()
2179 {
2180 exit (42);
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2188 ac_status=$?
2189 grep -v '^ *+' conftest.er1 >conftest.err
2190 rm -f conftest.er1
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 break
2208 else
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 fi
2213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215 rm -f conftest*
2216 if test -n "$ac_declaration"; then
2217 echo '#ifdef __cplusplus' >>confdefs.h
2218 echo $ac_declaration >>confdefs.h
2219 echo '#endif' >>confdefs.h
2220 fi
2221
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 fi
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 ac_ext=c
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233
2234 ac_aux_dir=
2235 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2236 if test -f $ac_dir/install-sh; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2239 break
2240 elif test -f $ac_dir/install.sh; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2243 break
2244 elif test -f $ac_dir/shtool; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 break
2248 fi
2249 done
2250 if test -z "$ac_aux_dir"; then
2251 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2252 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2253 { (exit 1); exit 1; }; }
2254 fi
2255 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2256 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2257 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2258
2259 # Find a good install program. We prefer a C program (faster),
2260 # so one script is as good as another. But avoid the broken or
2261 # incompatible versions:
2262 # SysV /etc/install, /usr/sbin/install
2263 # SunOS /usr/etc/install
2264 # IRIX /sbin/install
2265 # AIX /bin/install
2266 # AmigaOS /C/install, which installs bootblocks on floppy discs
2267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270 # OS/2's system install, which has a completely different semantic
2271 # ./install, which can be erroneously created by make from ./install.sh.
2272 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2274 if test -z "$INSTALL"; then
2275 if test "${ac_cv_path_install+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 # Account for people who put trailing slashes in PATH elements.
2284 case $as_dir/ in
2285 ./ | .// | /cC/* | \
2286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2288 /usr/ucb/* ) ;;
2289 *)
2290 # OSF1 and SCO ODT 3.0 have their own names for install.
2291 # Don't use installbsd from OSF since it installs stuff as root
2292 # by default.
2293 for ac_prog in ginstall scoinst install; do
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2296 if test $ac_prog = install &&
2297 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298 # AIX install. It has an incompatible calling convention.
2299 :
2300 elif test $ac_prog = install &&
2301 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2302 # program-specific install script used by HP pwplus--don't use.
2303 :
2304 else
2305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306 break 3
2307 fi
2308 fi
2309 done
2310 done
2311 ;;
2312 esac
2313 done
2314
2315
2316 fi
2317 if test "${ac_cv_path_install+set}" = set; then
2318 INSTALL=$ac_cv_path_install
2319 else
2320 # As a last resort, use the slow shell script. We don't cache a
2321 # path for INSTALL within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the path is relative.
2324 INSTALL=$ac_install_sh
2325 fi
2326 fi
2327 echo "$as_me:$LINENO: result: $INSTALL" >&5
2328 echo "${ECHO_T}$INSTALL" >&6
2329
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338
2339 # Checks for libraries.
2340
2341
2342 echo "$as_me:$LINENO: checking for SLsmg_cls in -lslang" >&5
2343 echo $ECHO_N "checking for SLsmg_cls in -lslang... $ECHO_C" >&6
2344 if test "${ac_cv_lib_slang_SLsmg_cls+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 ac_check_lib_save_LIBS=$LIBS
2348 LIBS="-lslang $LIBS"
2349 cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h. */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2355
2356 /* Override any gcc2 internal prototype to avoid an error. */
2357 #ifdef __cplusplus
2358 extern "C"
2359 #endif
2360 /* We use char because int might match the return type of a gcc2
2361 builtin and then its argument prototype would still apply. */
2362 char SLsmg_cls ();
2363 int
2364 main ()
2365 {
2366 SLsmg_cls ();
2367 ;
2368 return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext conftest$ac_exeext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2373 (eval $ac_link) 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag"
2381 || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest$ac_exeext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 ac_cv_lib_slang_SLsmg_cls=yes
2394 else
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 ac_cv_lib_slang_SLsmg_cls=no
2399 fi
2400 rm -f conftest.err conftest.$ac_objext \
2401 conftest$ac_exeext conftest.$ac_ext
2402 LIBS=$ac_check_lib_save_LIBS
2403 fi
2404 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLsmg_cls" >&5
2405 echo "${ECHO_T}$ac_cv_lib_slang_SLsmg_cls" >&6
2406 if test $ac_cv_lib_slang_SLsmg_cls = yes; then
2407 cat >>confdefs.h <<_ACEOF
2408 #define HAVE_LIBSLANG 1
2409 _ACEOF
2410
2411 LIBS="-lslang $LIBS"
2412
2413 else
2414 { { echo "$as_me:$LINENO: error: \"S-Lang library not found! (try install slang-devel)\"" >&5
2415 echo "$as_me: error: \"S-Lang library not found! (try install slang-devel)\"" >&2;}
2416 { (exit 1); exit 1; }; }
2417 fi
2418
2419
2420 # Checks for header files.
2421
2422
2423
2424
2425
2426 ac_header_dirent=no
2427 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2428 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2429 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2430 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2440 #include <sys/types.h>
2441 #include <$ac_hdr>
2442
2443 int
2444 main ()
2445 {
2446 if ((DIR *) 0)
2447 return 0;
2448 ;
2449 return 0;
2450 }
2451 _ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 eval "$as_ac_Header=yes"
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 eval "$as_ac_Header=no"
2480 fi
2481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482 fi
2483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2486 cat >>confdefs.h <<_ACEOF
2487 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2488 _ACEOF
2489
2490 ac_header_dirent=$ac_hdr; break
2491 fi
2492
2493 done
2494 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2495 if test $ac_header_dirent = dirent.h; then
2496 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2497 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2498 if test "${ac_cv_search_opendir+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 ac_func_search_save_LIBS=$LIBS
2502 ac_cv_search_opendir=no
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h. */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2509
2510 /* Override any gcc2 internal prototype to avoid an error. */
2511 #ifdef __cplusplus
2512 extern "C"
2513 #endif
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2516 char opendir ();
2517 int
2518 main ()
2519 {
2520 opendir ();
2521 ;
2522 return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext conftest$ac_exeext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2527 (eval $ac_link) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest$ac_exeext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 ac_cv_search_opendir="none required"
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 fi
2553 rm -f conftest.err conftest.$ac_objext \
2554 conftest$ac_exeext conftest.$ac_ext
2555 if test "$ac_cv_search_opendir" = no; then
2556 for ac_lib in dir; do
2557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564
2565 /* Override any gcc2 internal prototype to avoid an error. */
2566 #ifdef __cplusplus
2567 extern "C"
2568 #endif
2569 /* We use char because int might match the return type of a gcc2
2570 builtin and then its argument prototype would still apply. */
2571 char opendir ();
2572 int
2573 main ()
2574 {
2575 opendir ();
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext conftest$ac_exeext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2582 (eval $ac_link) 2>conftest.er1
2583 ac_status=$?
2584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -z "$ac_c_werror_flag"
2590 || test ! -s conftest.err'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest$ac_exeext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 ac_cv_search_opendir="-l$ac_lib"
2603 break
2604 else
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 fi
2609 rm -f conftest.err conftest.$ac_objext \
2610 conftest$ac_exeext conftest.$ac_ext
2611 done
2612 fi
2613 LIBS=$ac_func_search_save_LIBS
2614 fi
2615 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2616 echo "${ECHO_T}$ac_cv_search_opendir" >&6
2617 if test "$ac_cv_search_opendir" != no; then
2618 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2619
2620 fi
2621
2622 else
2623 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2624 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2625 if test "${ac_cv_search_opendir+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 ac_func_search_save_LIBS=$LIBS
2629 ac_cv_search_opendir=no
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 #ifdef __cplusplus
2639 extern "C"
2640 #endif
2641 /* We use char because int might match the return type of a gcc2
2642 builtin and then its argument prototype would still apply. */
2643 char opendir ();
2644 int
2645 main ()
2646 {
2647 opendir ();
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext conftest$ac_exeext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2654 (eval $ac_link) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest$ac_exeext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_cv_search_opendir="none required"
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 fi
2680 rm -f conftest.err conftest.$ac_objext \
2681 conftest$ac_exeext conftest.$ac_ext
2682 if test "$ac_cv_search_opendir" = no; then
2683 for ac_lib in x; do
2684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691
2692 /* Override any gcc2 internal prototype to avoid an error. */
2693 #ifdef __cplusplus
2694 extern "C"
2695 #endif
2696 /* We use char because int might match the return type of a gcc2
2697 builtin and then its argument prototype would still apply. */
2698 char opendir ();
2699 int
2700 main ()
2701 {
2702 opendir ();
2703 ;
2704 return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext conftest$ac_exeext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag"
2717 || test ! -s conftest.err'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest$ac_exeext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_cv_search_opendir="-l$ac_lib"
2730 break
2731 else
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 fi
2736 rm -f conftest.err conftest.$ac_objext \
2737 conftest$ac_exeext conftest.$ac_ext
2738 done
2739 fi
2740 LIBS=$ac_func_search_save_LIBS
2741 fi
2742 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2743 echo "${ECHO_T}$ac_cv_search_opendir" >&6
2744 if test "$ac_cv_search_opendir" != no; then
2745 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2746
2747 fi
2748
2749 fi
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2760 CPP=
2761 fi
2762 if test -z "$CPP"; then
2763 if test "${ac_cv_prog_CPP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 # Double quotes because CPP needs to be expanded
2767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768 do
2769 ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2771 do
2772 # Use a header file that comes with gcc, so configuring glibc
2773 # with a fresh cross-compiler works.
2774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775 # <limits.h> exists even on freestanding compilers.
2776 # On the NeXT, cc -E runs the code through the compiler's parser,
2777 # not just through cpp. "Syntax error" is here to catch this case.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2784 #ifdef __STDC__
2785 # include <limits.h>
2786 #else
2787 # include <assert.h>
2788 #endif
2789 Syntax error
2790 _ACEOF
2791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } >/dev/null; then
2799 if test -s conftest.err; then
2800 ac_cpp_err=$ac_c_preproc_warn_flag
2801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2802 else
2803 ac_cpp_err=
2804 fi
2805 else
2806 ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809 :
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 # Broken: fails on valid input.
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819 # OK, works on sane cases. Now check whether non-existent headers
2820 # can be detected and how.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2827 #include <ac_nonexistent.h>
2828 _ACEOF
2829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } >/dev/null; then
2837 if test -s conftest.err; then
2838 ac_cpp_err=$ac_c_preproc_warn_flag
2839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2840 else
2841 ac_cpp_err=
2842 fi
2843 else
2844 ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847 # Broken: success on invalid input.
2848 continue
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2863 break
2864 fi
2865
2866 done
2867 ac_cv_prog_CPP=$CPP
2868
2869 fi
2870 CPP=$ac_cv_prog_CPP
2871 else
2872 ac_cv_prog_CPP=$CPP
2873 fi
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2876 ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882 # <limits.h> exists even on freestanding compilers.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 #ifdef __STDC__
2892 # include <limits.h>
2893 #else
2894 # include <assert.h>
2895 #endif
2896 Syntax error
2897 _ACEOF
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } >/dev/null; then
2906 if test -s conftest.err; then
2907 ac_cpp_err=$ac_c_preproc_warn_flag
2908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2909 else
2910 ac_cpp_err=
2911 fi
2912 else
2913 ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916 :
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926 # OK, works on sane cases. Now check whether non-existent headers
2927 # can be detected and how.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h. */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2934 #include <ac_nonexistent.h>
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2949 fi
2950 else
2951 ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954 # Broken: success on invalid input.
2955 continue
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970 :
2971 else
2972 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992 then ac_cv_prog_egrep='grep -E'
2993 else ac_cv_prog_egrep='egrep'
2994 fi
2995 fi
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998 EGREP=$ac_cv_prog_egrep
2999
3000
3001 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3002 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3003 if test "${ac_cv_header_stdc+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #include <stdlib.h>
3013 #include <stdarg.h>
3014 #include <string.h>
3015 #include <float.h>
3016
3017 int
3018 main ()
3019 {
3020
3021 ;
3022 return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027 (eval $ac_compile) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_header_stdc=yes
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 ac_cv_header_stdc=no
3053 fi
3054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3055
3056 if test $ac_cv_header_stdc = yes; then
3057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3064 #include <string.h>
3065
3066 _ACEOF
3067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3068 $EGREP "memchr" >/dev/null 2>&1; then
3069 :
3070 else
3071 ac_cv_header_stdc=no
3072 fi
3073 rm -f conftest*
3074
3075 fi
3076
3077 if test $ac_cv_header_stdc = yes; then
3078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #include <stdlib.h>
3086
3087 _ACEOF
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089 $EGREP "free" >/dev/null 2>&1; then
3090 :
3091 else
3092 ac_cv_header_stdc=no
3093 fi
3094 rm -f conftest*
3095
3096 fi
3097
3098 if test $ac_cv_header_stdc = yes; then
3099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3100 if test "$cross_compiling" = yes; then
3101 :
3102 else
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 #include <ctype.h>
3110 #if ((' ' & 0x0FF) == 0x020)
3111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3113 #else
3114 # define ISLOWER(c) \
3115 (('a' <= (c) && (c) <= 'i') \
3116 || ('j' <= (c) && (c) <= 'r') \
3117 || ('s' <= (c) && (c) <= 'z'))
3118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3119 #endif
3120
3121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3122 int
3123 main ()
3124 {
3125 int i;
3126 for (i = 0; i < 256; i++)
3127 if (XOR (islower (i), ISLOWER (i))
3128 || toupper (i) != TOUPPER (i))
3129 exit(2);
3130 exit (0);
3131 }
3132 _ACEOF
3133 rm -f conftest$ac_exeext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3135 (eval $ac_link) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 (eval $ac_try) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 :
3145 else
3146 echo "$as_me: program exited with status $ac_status" >&5
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 ( exit $ac_status )
3151 ac_cv_header_stdc=no
3152 fi
3153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3154 fi
3155 fi
3156 fi
3157 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3158 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3159 if test $ac_cv_header_stdc = yes; then
3160
3161 cat >>confdefs.h <<\_ACEOF
3162 #define STDC_HEADERS 1
3163 _ACEOF
3164
3165 fi
3166
3167 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3168 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3169 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3178 #include <sys/types.h>
3179 #include <sys/wait.h>
3180 #ifndef WEXITSTATUS
3181 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3182 #endif
3183 #ifndef WIFEXITED
3184 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3185 #endif
3186
3187 int
3188 main ()
3189 {
3190 int s;
3191 wait (&s);
3192 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag"
3207 || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_cv_header_sys_wait_h=yes
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 ac_cv_header_sys_wait_h=no
3225 fi
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3230 if test $ac_cv_header_sys_wait_h = yes; then
3231
3232 cat >>confdefs.h <<\_ACEOF
3233 #define HAVE_SYS_WAIT_H 1
3234 _ACEOF
3235
3236 fi
3237
3238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3249 inttypes.h stdint.h unistd.h
3250 do
3251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 $ac_includes_default
3264
3265 #include <$ac_header>
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_c_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest.$ac_objext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 eval "$as_ac_Header=yes"
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 eval "$as_ac_Header=no"
3295 fi
3296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3297 fi
3298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3301 cat >>confdefs.h <<_ACEOF
3302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3303 _ACEOF
3304
3305 fi
3306
3307 done
3308
3309
3310
3311
3312
3313
3314
3315 for ac_header in slang.h slang/slang.h stdlib.h string.h unistd.h
3316 do
3317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3319 echo "$as_me:$LINENO: checking for $ac_header" >&5
3320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 fi
3324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3326 else
3327 # Is the header compilable?
3328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 $ac_includes_default
3337 #include <$ac_header>
3338 _ACEOF
3339 rm -f conftest.$ac_objext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag"
3349 || test ! -s conftest.err'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; } &&
3355 { ac_try='test -s conftest.$ac_objext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_header_compiler=yes
3362 else
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 ac_header_compiler=no
3367 fi
3368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3370 echo "${ECHO_T}$ac_header_compiler" >&6
3371
3372 # Is the header present?
3373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 #include <$ac_header>
3382 _ACEOF
3383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null; then
3391 if test -s conftest.err; then
3392 ac_cpp_err=$ac_c_preproc_warn_flag
3393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394 else
3395 ac_cpp_err=
3396 fi
3397 else
3398 ac_cpp_err=yes
3399 fi
3400 if test -z "$ac_cpp_err"; then
3401 ac_header_preproc=yes
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 ac_header_preproc=no
3407 fi
3408 rm -f conftest.err conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3410 echo "${ECHO_T}$ac_header_preproc" >&6
3411
3412 # So? What about this header?
3413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3414 yes:no: )
3415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3419 ac_header_preproc=yes
3420 ;;
3421 no:yes:* )
3422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3434 (
3435 cat <<\_ASBOX
3436 ## ------------------------------------- ##
3437 ## Report this to [email protected] ##
3438 ## ------------------------------------- ##
3439 _ASBOX
3440 ) |
3441 sed "s/^/$as_me: WARNING: /" >&2
3442 ;;
3443 esac
3444 echo "$as_me:$LINENO: checking for $ac_header" >&5
3445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 eval "$as_ac_Header=\$ac_header_preproc"
3450 fi
3451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3453
3454 fi
3455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3456 cat >>confdefs.h <<_ACEOF
3457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3458 _ACEOF
3459
3460 fi
3461
3462 done
3463
3464 cat >>confdefs.h <<\_ACEOF
3465 #define Version $(cat V)
3466 _ACEOF
3467
3468 #AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
3469 #AC_CHECK_HEADER([slang.h], [AC_DEFINE_UNQUOTED(HAVE_SLANG_H, 1)],
3470 # [AC_CHECK_HEADER([slang/slang.h])]) .
3471
3472 # Checks for typedefs, structures, and compiler characteristics.
3473 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3474 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3475 if test "${ac_cv_c_const+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488 /* FIXME: Include the comments suggested by Paul. */
3489 #ifndef __cplusplus
3490 /* Ultrix mips cc rejects this. */
3491 typedef int charset[2];
3492 const charset x;
3493 /* SunOS 4.1.1 cc rejects this. */
3494 char const *const *ccp;
3495 char **p;
3496 /* NEC SVR4.0.2 mips cc rejects this. */
3497 struct point {int x, y;};
3498 static struct point const zero = {0,0};
3499 /* AIX XL C 1.02.0.0 rejects this.
3500 It does not let you subtract one const X* pointer from another in
3501 an arm of an if-expression whose if-part is not a constant
3502 expression */
3503 const char *g = "string";
3504 ccp = &g + (g ? g-g : 0);
3505 /* HPUX 7.0 cc rejects these. */
3506 ++ccp;
3507 p = (char**) ccp;
3508 ccp = (char const *const *) p;
3509 { /* SCO 3.2v4 cc rejects this. */
3510 char *t;
3511 char const *s = 0 ? (char *) 0 : (char const *) 0;
3512
3513 *t++ = 0;
3514 }
3515 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3516 int x[] = {25, 17};
3517 const int *foo = &x[0];
3518 ++foo;
3519 }
3520 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3521 typedef const int *iptr;
3522 iptr p = 0;
3523 ++p;
3524 }
3525 { /* AIX XL C 1.02.0.0 rejects this saying
3526 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3527 struct s { int j; const int *ap[3]; };
3528 struct s *b; b->j = 5;
3529 }
3530 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3531 const int foo = 10;
3532 }
3533 #endif
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_cv_c_const=yes
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 ac_cv_c_const=no
3567 fi
3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3571 echo "${ECHO_T}$ac_cv_c_const" >&6
3572 if test $ac_cv_c_const = no; then
3573
3574 cat >>confdefs.h <<\_ACEOF
3575 #define const
3576 _ACEOF
3577
3578 fi
3579
3580 echo "$as_me:$LINENO: checking for size_t" >&5
3581 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3582 if test "${ac_cv_type_size_t+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 $ac_includes_default
3592 int
3593 main ()
3594 {
3595 if ((size_t *) 0)
3596 return 0;
3597 if (sizeof (size_t))
3598 return 0;
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_cv_type_size_t=yes
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630 ac_cv_type_size_t=no
3631 fi
3632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 fi
3634 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3635 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3636 if test $ac_cv_type_size_t = yes; then
3637 :
3638 else
3639
3640 cat >>confdefs.h <<_ACEOF
3641 #define size_t unsigned
3642 _ACEOF
3643
3644 fi
3645
3646 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3647 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3648 if test "${ac_cv_struct_tm+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #include <sys/types.h>
3658 #include <time.h>
3659
3660 int
3661 main ()
3662 {
3663 struct tm *tp; tp->tm_sec;
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -z "$ac_c_werror_flag"
3678 || test ! -s conftest.err'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 (eval $ac_try) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_cv_struct_tm=time.h
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 ac_cv_struct_tm=sys/time.h
3696 fi
3697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698 fi
3699 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3700 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3701 if test $ac_cv_struct_tm = sys/time.h; then
3702
3703 cat >>confdefs.h <<\_ACEOF
3704 #define TM_IN_SYS_TIME 1
3705 _ACEOF
3706
3707 fi
3708
3709
3710 # Checks for library functions.
3711
3712 for ac_header in stdlib.h
3713 do
3714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3716 echo "$as_me:$LINENO: checking for $ac_header" >&5
3717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 fi
3721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3723 else
3724 # Is the header compilable?
3725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 $ac_includes_default
3734 #include <$ac_header>
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_c_werror_flag"
3746 || test ! -s conftest.err'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_header_compiler=yes
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 ac_header_compiler=no
3764 fi
3765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6
3768
3769 # Is the header present?
3770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <$ac_header>
3779 _ACEOF
3780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } >/dev/null; then
3788 if test -s conftest.err; then
3789 ac_cpp_err=$ac_c_preproc_warn_flag
3790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3791 else
3792 ac_cpp_err=
3793 fi
3794 else
3795 ac_cpp_err=yes
3796 fi
3797 if test -z "$ac_cpp_err"; then
3798 ac_header_preproc=yes
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 ac_header_preproc=no
3804 fi
3805 rm -f conftest.err conftest.$ac_ext
3806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3807 echo "${ECHO_T}$ac_header_preproc" >&6
3808
3809 # So? What about this header?
3810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3811 yes:no: )
3812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3816 ac_header_preproc=yes
3817 ;;
3818 no:yes:* )
3819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3831 (
3832 cat <<\_ASBOX
3833 ## ------------------------------------- ##
3834 ## Report this to [email protected] ##
3835 ## ------------------------------------- ##
3836 _ASBOX
3837 ) |
3838 sed "s/^/$as_me: WARNING: /" >&2
3839 ;;
3840 esac
3841 echo "$as_me:$LINENO: checking for $ac_header" >&5
3842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 eval "$as_ac_Header=\$ac_header_preproc"
3847 fi
3848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3850
3851 fi
3852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3853 cat >>confdefs.h <<_ACEOF
3854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3855 _ACEOF
3856
3857 fi
3858
3859 done
3860
3861 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3862 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3863 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 if test "$cross_compiling" = yes; then
3867 ac_cv_func_malloc_0_nonnull=no
3868 else
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #if STDC_HEADERS || HAVE_STDLIB_H
3876 # include <stdlib.h>
3877 #else
3878 char *malloc ();
3879 #endif
3880
3881 int
3882 main ()
3883 {
3884 exit (malloc (0) ? 0 : 1);
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest$ac_exeext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3891 (eval $ac_link) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_func_malloc_0_nonnull=yes
3901 else
3902 echo "$as_me: program exited with status $ac_status" >&5
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 ( exit $ac_status )
3907 ac_cv_func_malloc_0_nonnull=no
3908 fi
3909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3910 fi
3911 fi
3912 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3913 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
3914 if test $ac_cv_func_malloc_0_nonnull = yes; then
3915
3916 cat >>confdefs.h <<\_ACEOF
3917 #define HAVE_MALLOC 1
3918 _ACEOF
3919
3920 else
3921 cat >>confdefs.h <<\_ACEOF
3922 #define HAVE_MALLOC 0
3923 _ACEOF
3924
3925 case $LIBOBJS in
3926 "malloc.$ac_objext" | \
3927 *" malloc.$ac_objext" | \
3928 "malloc.$ac_objext "* | \
3929 *" malloc.$ac_objext "* ) ;;
3930 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
3931 esac
3932
3933
3934 cat >>confdefs.h <<\_ACEOF
3935 #define malloc rpl_malloc
3936 _ACEOF
3937
3938 fi
3939
3940
3941
3942
3943 for ac_header in stdlib.h
3944 do
3945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo "$as_me:$LINENO: checking for $ac_header" >&5
3948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 fi
3952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3954 else
3955 # Is the header compilable?
3956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3965 #include <$ac_header>
3966 _ACEOF
3967 rm -f conftest.$ac_objext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3969 (eval $ac_compile) 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -z "$ac_c_werror_flag"
3977 || test ! -s conftest.err'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; } &&
3983 { ac_try='test -s conftest.$ac_objext'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 (eval $ac_try) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; }; then
3989 ac_header_compiler=yes
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 ac_header_compiler=no
3995 fi
3996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3998 echo "${ECHO_T}$ac_header_compiler" >&6
3999
4000 # Is the header present?
4001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <$ac_header>
4010 _ACEOF
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } >/dev/null; then
4019 if test -s conftest.err; then
4020 ac_cpp_err=$ac_c_preproc_warn_flag
4021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4022 else
4023 ac_cpp_err=
4024 fi
4025 else
4026 ac_cpp_err=yes
4027 fi
4028 if test -z "$ac_cpp_err"; then
4029 ac_header_preproc=yes
4030 else
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 ac_header_preproc=no
4035 fi
4036 rm -f conftest.err conftest.$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4038 echo "${ECHO_T}$ac_header_preproc" >&6
4039
4040 # So? What about this header?
4041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4042 yes:no: )
4043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4047 ac_header_preproc=yes
4048 ;;
4049 no:yes:* )
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4062 (
4063 cat <<\_ASBOX
4064 ## ------------------------------------- ##
4065 ## Report this to [email protected] ##
4066 ## ------------------------------------- ##
4067 _ASBOX
4068 ) |
4069 sed "s/^/$as_me: WARNING: /" >&2
4070 ;;
4071 esac
4072 echo "$as_me:$LINENO: checking for $ac_header" >&5
4073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 eval "$as_ac_Header=\$ac_header_preproc"
4078 fi
4079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4081
4082 fi
4083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4084 cat >>confdefs.h <<_ACEOF
4085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086 _ACEOF
4087
4088 fi
4089
4090 done
4091
4092 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
4093 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
4094 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 if test "$cross_compiling" = yes; then
4098 ac_cv_func_realloc_0_nonnull=no
4099 else
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 #if STDC_HEADERS || HAVE_STDLIB_H
4107 # include <stdlib.h>
4108 #else
4109 char *realloc ();
4110 #endif
4111
4112 int
4113 main ()
4114 {
4115 exit (realloc (0, 0) ? 0 : 1);
4116 ;
4117 return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_func_realloc_0_nonnull=yes
4132 else
4133 echo "$as_me: program exited with status $ac_status" >&5
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 ( exit $ac_status )
4138 ac_cv_func_realloc_0_nonnull=no
4139 fi
4140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4141 fi
4142 fi
4143 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
4144 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
4145 if test $ac_cv_func_realloc_0_nonnull = yes; then
4146
4147 cat >>confdefs.h <<\_ACEOF
4148 #define HAVE_REALLOC 1
4149 _ACEOF
4150
4151 else
4152 cat >>confdefs.h <<\_ACEOF
4153 #define HAVE_REALLOC 0
4154 _ACEOF
4155
4156 case $LIBOBJS in
4157 "realloc.$ac_objext" | \
4158 *" realloc.$ac_objext" | \
4159 "realloc.$ac_objext "* | \
4160 *" realloc.$ac_objext "* ) ;;
4161 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
4162 esac
4163
4164
4165 cat >>confdefs.h <<\_ACEOF
4166 #define realloc rpl_realloc
4167 _ACEOF
4168
4169 fi
4170
4171
4172
4173
4174
4175 for ac_func in getcwd strdup
4176 do
4177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4178 echo "$as_me:$LINENO: checking for $ac_func" >&5
4179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4180 if eval "test \"\${$as_ac_var+set}\" = set"; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4191 #define $ac_func innocuous_$ac_func
4192
4193 /* System header to define __stub macros and hopefully few prototypes,
4194 which can conflict with char $ac_func (); below.
4195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 <limits.h> exists even on freestanding compilers. */
4197
4198 #ifdef __STDC__
4199 # include <limits.h>
4200 #else
4201 # include <assert.h>
4202 #endif
4203
4204 #undef $ac_func
4205
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4209 {
4210 #endif
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213 char $ac_func ();
4214 /* The GNU C library defines this for functions which it implements
4215 to always fail with ENOSYS. Some functions are actually named
4216 something starting with __ and the normal name is an alias. */
4217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4218 choke me
4219 #else
4220 char (*f) () = $ac_func;
4221 #endif
4222 #ifdef __cplusplus
4223 }
4224 #endif
4225
4226 int
4227 main ()
4228 {
4229 return f != $ac_func;
4230 ;
4231 return 0;
4232 }
4233 _ACEOF
4234 rm -f conftest.$ac_objext conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag"
4244 || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest$ac_exeext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 eval "$as_ac_var=yes"
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 eval "$as_ac_var=no"
4262 fi
4263 rm -f conftest.err conftest.$ac_objext \
4264 conftest$ac_exeext conftest.$ac_ext
4265 fi
4266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4268 if test `eval echo '${'$as_ac_var'}'` = yes; then
4269 cat >>confdefs.h <<_ACEOF
4270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4271 _ACEOF
4272
4273 fi
4274 done
4275
4276 ac_config_files="$ac_config_files Makefile"
4277
4278 cat >confcache <<\_ACEOF
4279 # This file is a shell script that caches the results of configure
4280 # tests run on this system so they can be shared between configure
4281 # scripts and configure runs, see configure's option --config-cache.
4282 # It is not useful on other systems. If it contains results you don't
4283 # want to keep, you may remove or edit it.
4284 #
4285 # config.status only pays attention to the cache file if you give it
4286 # the --recheck option to rerun configure.
4287 #
4288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4290 # following values.
4291
4292 _ACEOF
4293
4294 # The following way of writing the cache mishandles newlines in values,
4295 # but we know of no workaround that is simple, portable, and efficient.
4296 # So, don't put newlines in cache variables' values.
4297 # Ultrix sh set writes to stderr and can't be redirected directly,
4298 # and sets the high bit in the cache file unless we assign to the vars.
4299 {
4300 (set) 2>&1 |
4301 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4302 *ac_space=\ *)
4303 # `set' does not quote correctly, so add quotes (double-quote
4304 # substitution turns \\\\ into \\, and sed turns \\ into \).
4305 sed -n \
4306 "s/'/'\\\\''/g;
4307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4308 ;;
4309 *)
4310 # `set' quotes correctly as required by POSIX, so do not add quotes.
4311 sed -n \
4312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4313 ;;
4314 esac;
4315 } |
4316 sed '
4317 t clear
4318 : clear
4319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4320 t end
4321 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4322 : end' >>confcache
4323 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4324 if test -w $cache_file; then
4325 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4326 cat confcache >$cache_file
4327 else
4328 echo "not updating unwritable cache $cache_file"
4329 fi
4330 fi
4331 rm -f confcache
4332
4333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4334 # Let make expand exec_prefix.
4335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4336
4337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4339 # trailing colons and then remove the whole line if VPATH becomes empty
4340 # (actually we leave an empty line to preserve line numbers).
4341 if test "x$srcdir" = x.; then
4342 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4343 s/:*\$(srcdir):*/:/;
4344 s/:*\${srcdir}:*/:/;
4345 s/:*@srcdir@:*/:/;
4346 s/^\([^=]*=[ ]*\):*/\1/;
4347 s/:*$//;
4348 s/^[^=]*=[ ]*$//;
4349 }'
4350 fi
4351
4352 DEFS=-DHAVE_CONFIG_H
4353
4354 ac_libobjs=
4355 ac_ltlibobjs=
4356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4357 # 1. Remove the extension, and $U if already installed.
4358 ac_i=`echo "$ac_i" |
4359 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4360 # 2. Add them.
4361 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4362 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4363 done
4364 LIBOBJS=$ac_libobjs
4365
4366 LTLIBOBJS=$ac_ltlibobjs
4367
4368
4369
4370 : ${CONFIG_STATUS=./config.status}
4371 ac_clean_files_save=$ac_clean_files
4372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4373 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4374 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4375 cat >$CONFIG_STATUS <<_ACEOF
4376 #! $SHELL
4377 # Generated by $as_me.
4378 # Run this file to recreate the current configuration.
4379 # Compiler output produced by configure, useful for debugging
4380 # configure, is in config.log if it exists.
4381
4382 debug=false
4383 ac_cs_recheck=false
4384 ac_cs_silent=false
4385 SHELL=\${CONFIG_SHELL-$SHELL}
4386 _ACEOF
4387
4388 cat >>$CONFIG_STATUS <<\_ACEOF
4389 ## --------------------- ##
4390 ## M4sh Initialization. ##
4391 ## --------------------- ##
4392
4393 # Be Bourne compatible
4394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4395 emulate sh
4396 NULLCMD=:
4397 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4398 # is contrary to our usage. Disable this feature.
4399 alias -g '${1+"$@"}'='"$@"'
4400 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4401 set -o posix
4402 fi
4403 DUALCASE=1; export DUALCASE # for MKS sh
4404
4405 # Support unset when possible.
4406 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4407 as_unset=unset
4408 else
4409 as_unset=false
4410 fi
4411
4412
4413 # Work around bugs in pre-3.0 UWIN ksh.
4414 $as_unset ENV MAIL MAILPATH
4415 PS1='$ '
4416 PS2='> '
4417 PS4='+ '
4418
4419 # NLS nuisances.
4420 for as_var in \
4421 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4422 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4423 LC_TELEPHONE LC_TIME
4424 do
4425 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4426 eval $as_var=C; export $as_var
4427 else
4428 $as_unset $as_var
4429 fi
4430 done
4431
4432 # Required to use basename.
4433 if expr a : '\(a\)' >/dev/null 2>&1; then
4434 as_expr=expr
4435 else
4436 as_expr=false
4437 fi
4438
4439 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4440 as_basename=basename
4441 else
4442 as_basename=false
4443 fi
4444
4445
4446 # Name of the executable.
4447 as_me=`$as_basename "$0" ||
4448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4449 X"$0" : 'X\(//\)$' \| \
4450 X"$0" : 'X\(/\)$' \| \
4451 . : '\(.\)' 2>/dev/null ||
4452 echo X/"$0" |
4453 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4454 /^X\/\(\/\/\)$/{ s//\1/; q; }
4455 /^X\/\(\/\).*/{ s//\1/; q; }
4456 s/.*/./; q'`
4457
4458
4459 # PATH needs CR, and LINENO needs CR and PATH.
4460 # Avoid depending upon Character Ranges.
4461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4464 as_cr_digits='0123456789'
4465 as_cr_alnum=$as_cr_Letters$as_cr_digits
4466
4467 # The user is always right.
4468 if test "${PATH_SEPARATOR+set}" != set; then
4469 echo "#! /bin/sh" >conf$$.sh
4470 echo "exit 0" >>conf$$.sh
4471 chmod +x conf$$.sh
4472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4473 PATH_SEPARATOR=';'
4474 else
4475 PATH_SEPARATOR=:
4476 fi
4477 rm -f conf$$.sh
4478 fi
4479
4480
4481 as_lineno_1=$LINENO
4482 as_lineno_2=$LINENO
4483 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4484 test "x$as_lineno_1" != "x$as_lineno_2" &&
4485 test "x$as_lineno_3" = "x$as_lineno_2" || {
4486 # Find who we are. Look in the path if we contain no path at all
4487 # relative or not.
4488 case $0 in
4489 *[\\/]* ) as_myself=$0 ;;
4490 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4496 done
4497
4498 ;;
4499 esac
4500 # We did not find ourselves, most probably we were run as `sh COMMAND'
4501 # in which case we are not to be found in the path.
4502 if test "x$as_myself" = x; then
4503 as_myself=$0
4504 fi
4505 if test ! -f "$as_myself"; then
4506 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4507 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4508 { (exit 1); exit 1; }; }
4509 fi
4510 case $CONFIG_SHELL in
4511 '')
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for as_base in sh bash ksh sh5; do
4518 case $as_dir in
4519 /*)
4520 if ("$as_dir/$as_base" -c '
4521 as_lineno_1=$LINENO
4522 as_lineno_2=$LINENO
4523 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4524 test "x$as_lineno_1" != "x$as_lineno_2" &&
4525 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4526 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4527 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4528 CONFIG_SHELL=$as_dir/$as_base
4529 export CONFIG_SHELL
4530 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4531 fi;;
4532 esac
4533 done
4534 done
4535 ;;
4536 esac
4537
4538 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4539 # uniformly replaced by the line number. The first 'sed' inserts a
4540 # line-number line before each line; the second 'sed' does the real
4541 # work. The second script uses 'N' to pair each line-number line
4542 # with the numbered line, and appends trailing '-' during
4543 # substitution so that $LINENO is not a special case at line end.
4544 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4545 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4546 sed '=' <$as_myself |
4547 sed '
4548 N
4549 s,$,-,
4550 : loop
4551 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4552 t loop
4553 s,-$,,
4554 s,^['$as_cr_digits']*\n,,
4555 ' >$as_me.lineno &&
4556 chmod +x $as_me.lineno ||
4557 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4558 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4559 { (exit 1); exit 1; }; }
4560
4561 # Don't try to exec as it changes $[0], causing all sort of problems
4562 # (the dirname of $[0] is not the place where we might find the
4563 # original and so on. Autoconf is especially sensible to this).
4564 . ./$as_me.lineno
4565 # Exit status is that of the last command.
4566 exit
4567 }
4568
4569
4570 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4571 *c*,-n*) ECHO_N= ECHO_C='
4572 ' ECHO_T=' ' ;;
4573 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4574 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4575 esac
4576
4577 if expr a : '\(a\)' >/dev/null 2>&1; then
4578 as_expr=expr
4579 else
4580 as_expr=false
4581 fi
4582
4583 rm -f conf$$ conf$$.exe conf$$.file
4584 echo >conf$$.file
4585 if ln -s conf$$.file conf$$ 2>/dev/null; then
4586 # We could just check for DJGPP; but this test a) works b) is more generic
4587 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4588 if test -f conf$$.exe; then
4589 # Don't use ln at all; we don't have any links
4590 as_ln_s='cp -p'
4591 else
4592 as_ln_s='ln -s'
4593 fi
4594 elif ln conf$$.file conf$$ 2>/dev/null; then
4595 as_ln_s=ln
4596 else
4597 as_ln_s='cp -p'
4598 fi
4599 rm -f conf$$ conf$$.exe conf$$.file
4600
4601 if mkdir -p . 2>/dev/null; then
4602 as_mkdir_p=:
4603 else
4604 test -d ./-p && rmdir ./-p
4605 as_mkdir_p=false
4606 fi
4607
4608 as_executable_p="test -f"
4609
4610 # Sed expression to map a string onto a valid CPP name.
4611 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4612
4613 # Sed expression to map a string onto a valid variable name.
4614 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4615
4616
4617 # IFS
4618 # We need space, tab and new line, in precisely that order.
4619 as_nl='
4620 '
4621 IFS=" $as_nl"
4622
4623 # CDPATH.
4624 $as_unset CDPATH
4625
4626 exec 6>&1
4627
4628 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4629 # report actual input values of CONFIG_FILES etc. instead of their
4630 # values after options handling. Logging --version etc. is OK.
4631 exec 5>>config.log
4632 {
4633 echo
4634 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4635 ## Running $as_me. ##
4636 _ASBOX
4637 } >&5
4638 cat >&5 <<_CSEOF
4639
4640 This file was extended by asciijump $as_me "1.0.2beta", which was
4641 generated by GNU Autoconf 2.58. Invocation command line was
4642
4643 CONFIG_FILES = $CONFIG_FILES
4644 CONFIG_HEADERS = $CONFIG_HEADERS
4645 CONFIG_LINKS = $CONFIG_LINKS
4646 CONFIG_COMMANDS = $CONFIG_COMMANDS
4647 $ $0 $@
4648
4649 _CSEOF
4650 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4651 echo >&5
4652 _ACEOF
4653
4654 # Files that config.status was made for.
4655 if test -n "$ac_config_files"; then
4656 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4657 fi
4658
4659 if test -n "$ac_config_headers"; then
4660 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4661 fi
4662
4663 if test -n "$ac_config_links"; then
4664 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4665 fi
4666
4667 if test -n "$ac_config_commands"; then
4668 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4669 fi
4670
4671 cat >>$CONFIG_STATUS <<\_ACEOF
4672
4673 ac_cs_usage="\
4674 \`$as_me' instantiates files from templates according to the
4675 current configuration.
4676
4677 Usage: $0 [OPTIONS] [FILE]...
4678
4679 -h, --help print this help, then exit
4680 -V, --version print version number, then exit
4681 -q, --quiet do not print progress messages
4682 -d, --debug don't remove temporary files
4683 --recheck update $as_me by reconfiguring in the same conditions
4684 --file=FILE[:TEMPLATE]
4685 instantiate the configuration file FILE
4686 --header=FILE[:TEMPLATE]
4687 instantiate the configuration header FILE
4688
4689 Configuration files:
4690 $config_files
4691
4692 Configuration headers:
4693 $config_headers
4694
4695 Report bugs to <[email protected]>."
4696 _ACEOF
4697
4698 cat >>$CONFIG_STATUS <<_ACEOF
4699 ac_cs_version="\\
4700 asciijump config.status "1.0.2beta"
4701 configured by $0, generated by GNU Autoconf 2.58,
4702 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4703
4704 Copyright (C) 2003 Free Software Foundation, Inc.
4705 This config.status script is free software; the Free Software Foundation
4706 gives unlimited permission to copy, distribute and modify it."
4707 srcdir=$srcdir
4708 INSTALL="$INSTALL"
4709 _ACEOF
4710
4711 cat >>$CONFIG_STATUS <<\_ACEOF
4712 # If no file are specified by the user, then we need to provide default
4713 # value. By we need to know if files were specified by the user.
4714 ac_need_defaults=:
4715 while test $# != 0
4716 do
4717 case $1 in
4718 --*=*)
4719 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4720 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4721 ac_shift=:
4722 ;;
4723 -*)
4724 ac_option=$1
4725 ac_optarg=$2
4726 ac_shift=shift
4727 ;;
4728 *) # This is not an option, so the user has probably given explicit
4729 # arguments.
4730 ac_option=$1
4731 ac_need_defaults=false;;
4732 esac
4733
4734 case $ac_option in
4735 # Handling of the options.
4736 _ACEOF
4737 cat >>$CONFIG_STATUS <<\_ACEOF
4738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4739 ac_cs_recheck=: ;;
4740 --version | --vers* | -V )
4741 echo "$ac_cs_version"; exit 0 ;;
4742 --he | --h)
4743 # Conflict between --help and --header
4744 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4745 Try \`$0 --help' for more information." >&5
4746 echo "$as_me: error: ambiguous option: $1
4747 Try \`$0 --help' for more information." >&2;}
4748 { (exit 1); exit 1; }; };;
4749 --help | --hel | -h )
4750 echo "$ac_cs_usage"; exit 0 ;;
4751 --debug | --d* | -d )
4752 debug=: ;;
4753 --file | --fil | --fi | --f )
4754 $ac_shift
4755 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4756 ac_need_defaults=false;;
4757 --header | --heade | --head | --hea )
4758 $ac_shift
4759 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4760 ac_need_defaults=false;;
4761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4763 ac_cs_silent=: ;;
4764
4765 # This is an error.
4766 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4767 Try \`$0 --help' for more information." >&5
4768 echo "$as_me: error: unrecognized option: $1
4769 Try \`$0 --help' for more information." >&2;}
4770 { (exit 1); exit 1; }; } ;;
4771
4772 *) ac_config_targets="$ac_config_targets $1" ;;
4773
4774 esac
4775 shift
4776 done
4777
4778 ac_configure_extra_args=
4779
4780 if $ac_cs_silent; then
4781 exec 6>/dev/null
4782 ac_configure_extra_args="$ac_configure_extra_args --silent"
4783 fi
4784
4785 _ACEOF
4786 cat >>$CONFIG_STATUS <<_ACEOF
4787 if \$ac_cs_recheck; then
4788 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4789 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4790 fi
4791
4792 _ACEOF
4793
4794
4795
4796
4797
4798 cat >>$CONFIG_STATUS <<\_ACEOF
4799 for ac_config_target in $ac_config_targets
4800 do
4801 case "$ac_config_target" in
4802 # Handling of arguments.
4803 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4804 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4807 { (exit 1); exit 1; }; };;
4808 esac
4809 done
4810
4811 # If the user did not use the arguments to specify the items to instantiate,
4812 # then the envvar interface is used. Set only those that are not.
4813 # We use the long form for the default assignment because of an extremely
4814 # bizarre bug on SunOS 4.1.3.
4815 if $ac_need_defaults; then
4816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4818 fi
4819
4820 # Have a temporary directory for convenience. Make it in the build tree
4821 # simply because there is no reason to put it here, and in addition,
4822 # creating and moving files from /tmp can sometimes cause problems.
4823 # Create a temporary directory, and hook for its removal unless debugging.
4824 $debug ||
4825 {
4826 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4827 trap '{ (exit 1); exit 1; }' 1 2 13 15
4828 }
4829
4830 # Create a (secure) tmp directory for tmp files.
4831
4832 {
4833 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4834 test -n "$tmp" && test -d "$tmp"
4835 } ||
4836 {
4837 tmp=./confstat$$-$RANDOM
4838 (umask 077 && mkdir $tmp)
4839 } ||
4840 {
4841 echo "$me: cannot create a temporary directory in ." >&2
4842 { (exit 1); exit 1; }
4843 }
4844
4845 _ACEOF
4846
4847 cat >>$CONFIG_STATUS <<_ACEOF
4848
4849 #
4850 # CONFIG_FILES section.
4851 #
4852
4853 # No need to generate the scripts if there are no CONFIG_FILES.
4854 # This happens for instance when ./config.status config.h
4855 if test -n "\$CONFIG_FILES"; then
4856 # Protect against being on the right side of a sed subst in config.status.
4857 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4858 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4859 s,@SHELL@,$SHELL,;t t
4860 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4861 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4862 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4863 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4864 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4865 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4866 s,@exec_prefix@,$exec_prefix,;t t
4867 s,@prefix@,$prefix,;t t
4868 s,@program_transform_name@,$program_transform_name,;t t
4869 s,@bindir@,$bindir,;t t
4870 s,@sbindir@,$sbindir,;t t
4871 s,@libexecdir@,$libexecdir,;t t
4872 s,@datadir@,$datadir,;t t
4873 s,@sysconfdir@,$sysconfdir,;t t
4874 s,@sharedstatedir@,$sharedstatedir,;t t
4875 s,@localstatedir@,$localstatedir,;t t
4876 s,@libdir@,$libdir,;t t
4877 s,@includedir@,$includedir,;t t
4878 s,@oldincludedir@,$oldincludedir,;t t
4879 s,@infodir@,$infodir,;t t
4880 s,@mandir@,$mandir,;t t
4881 s,@build_alias@,$build_alias,;t t
4882 s,@host_alias@,$host_alias,;t t
4883 s,@target_alias@,$target_alias,;t t
4884 s,@DEFS@,$DEFS,;t t
4885 s,@ECHO_C@,$ECHO_C,;t t
4886 s,@ECHO_N@,$ECHO_N,;t t
4887 s,@ECHO_T@,$ECHO_T,;t t
4888 s,@LIBS@,$LIBS,;t t
4889 s,@CC@,$CC,;t t
4890 s,@CFLAGS@,$CFLAGS,;t t
4891 s,@LDFLAGS@,$LDFLAGS,;t t
4892 s,@CPPFLAGS@,$CPPFLAGS,;t t
4893 s,@ac_ct_CC@,$ac_ct_CC,;t t
4894 s,@EXEEXT@,$EXEEXT,;t t
4895 s,@OBJEXT@,$OBJEXT,;t t
4896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4897 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4898 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4899 s,@CPP@,$CPP,;t t
4900 s,@EGREP@,$EGREP,;t t
4901 s,@LIBOBJS@,$LIBOBJS,;t t
4902 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4903 CEOF
4904
4905 _ACEOF
4906
4907 cat >>$CONFIG_STATUS <<\_ACEOF
4908 # Split the substitutions into bite-sized pieces for seds with
4909 # small command number limits, like on Digital OSF/1 and HP-UX.
4910 ac_max_sed_lines=48
4911 ac_sed_frag=1 # Number of current file.
4912 ac_beg=1 # First line for current file.
4913 ac_end=$ac_max_sed_lines # Line after last line for current file.
4914 ac_more_lines=:
4915 ac_sed_cmds=
4916 while $ac_more_lines; do
4917 if test $ac_beg -gt 1; then
4918 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4919 else
4920 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4921 fi
4922 if test ! -s $tmp/subs.frag; then
4923 ac_more_lines=false
4924 else
4925 # The purpose of the label and of the branching condition is to
4926 # speed up the sed processing (if there are no `@' at all, there
4927 # is no need to browse any of the substitutions).
4928 # These are the two extra sed commands mentioned above.
4929 (echo ':t
4930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4931 if test -z "$ac_sed_cmds"; then
4932 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4933 else
4934 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4935 fi
4936 ac_sed_frag=`expr $ac_sed_frag + 1`
4937 ac_beg=$ac_end
4938 ac_end=`expr $ac_end + $ac_max_sed_lines`
4939 fi
4940 done
4941 if test -z "$ac_sed_cmds"; then
4942 ac_sed_cmds=cat
4943 fi
4944 fi # test -n "$CONFIG_FILES"
4945
4946 _ACEOF
4947 cat >>$CONFIG_STATUS <<\_ACEOF
4948 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4950 case $ac_file in
4951 - | *:- | *:-:* ) # input from stdin
4952 cat >$tmp/stdin
4953 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4955 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4957 * ) ac_file_in=$ac_file.in ;;
4958 esac
4959
4960 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4961 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4963 X"$ac_file" : 'X\(//\)[^/]' \| \
4964 X"$ac_file" : 'X\(//\)$' \| \
4965 X"$ac_file" : 'X\(/\)' \| \
4966 . : '\(.\)' 2>/dev/null ||
4967 echo X"$ac_file" |
4968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4970 /^X\(\/\/\)$/{ s//\1/; q; }
4971 /^X\(\/\).*/{ s//\1/; q; }
4972 s/.*/./; q'`
4973 { if $as_mkdir_p; then
4974 mkdir -p "$ac_dir"
4975 else
4976 as_dir="$ac_dir"
4977 as_dirs=
4978 while test ! -d "$as_dir"; do
4979 as_dirs="$as_dir $as_dirs"
4980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4982 X"$as_dir" : 'X\(//\)[^/]' \| \
4983 X"$as_dir" : 'X\(//\)$' \| \
4984 X"$as_dir" : 'X\(/\)' \| \
4985 . : '\(.\)' 2>/dev/null ||
4986 echo X"$as_dir" |
4987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4989 /^X\(\/\/\)$/{ s//\1/; q; }
4990 /^X\(\/\).*/{ s//\1/; q; }
4991 s/.*/./; q'`
4992 done
4993 test ! -n "$as_dirs" || mkdir $as_dirs
4994 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4996 { (exit 1); exit 1; }; }; }
4997
4998 ac_builddir=.
4999
5000 if test "$ac_dir" != .; then
5001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5002 # A "../" for each directory in $ac_dir_suffix.
5003 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5004 else
5005 ac_dir_suffix= ac_top_builddir=
5006 fi
5007
5008 case $srcdir in
5009 .) # No --srcdir option. We are building in place.
5010 ac_srcdir=.
5011 if test -z "$ac_top_builddir"; then
5012 ac_top_srcdir=.
5013 else
5014 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5015 fi ;;
5016 [\\/]* | ?:[\\/]* ) # Absolute path.
5017 ac_srcdir=$srcdir$ac_dir_suffix;
5018 ac_top_srcdir=$srcdir ;;
5019 *) # Relative path.
5020 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5021 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5022 esac
5023 case "$ac_dir" in
5024 .) ac_abs_builddir=$ac_builddir;;
5025 *)
5026 case $ac_builddir in
5027 .) ac_abs_builddir="$ac_dir";;
5028 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
5029 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
5030 esac;;
5031 esac
5032 case "$ac_dir" in
5033 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5034 *)
5035 case ${ac_top_builddir}. in
5036 .) ac_abs_top_builddir="$ac_dir";;
5037 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5038 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
5039 esac;;
5040 esac
5041 case "$ac_dir" in
5042 .) ac_abs_srcdir=$ac_srcdir;;
5043 *)
5044 case $ac_srcdir in
5045 .) ac_abs_srcdir="$ac_dir";;
5046 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5047 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
5048 esac;;
5049 esac
5050 case "$ac_dir" in
5051 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5052 *)
5053 case $ac_top_srcdir in
5054 .) ac_abs_top_srcdir="$ac_dir";;
5055 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5056 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
5057 esac;;
5058 esac
5059
5060
5061 case $INSTALL in
5062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5063 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5064 esac
5065
5066 if test x"$ac_file" != x-; then
5067 { echo "$as_me:$LINENO: creating $ac_file" >&5
5068 echo "$as_me: creating $ac_file" >&6;}
5069 rm -f "$ac_file"
5070 fi
5071 # Let's still pretend it is `configure' which instantiates (i.e., don't
5072 # use $as_me), people would be surprised to read:
5073 # /* config.h. Generated by config.status. */
5074 if test x"$ac_file" = x-; then
5075 configure_input=
5076 else
5077 configure_input="$ac_file. "
5078 fi
5079 configure_input=$configure_input"Generated from `echo $ac_file_in |
5080 sed 's,.*/,,'` by configure."
5081
5082 # First look for the input files in the build tree, otherwise in the
5083 # src tree.
5084 ac_file_inputs=`IFS=:
5085 for f in $ac_file_in; do
5086 case $f in
5087 -) echo $tmp/stdin ;;
5088 [\\/$]*)
5089 # Absolute (can't be DOS-style, as IFS=:)
5090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5091 echo "$as_me: error: cannot find input file: $f" >&2;}
5092 { (exit 1); exit 1; }; }
5093 echo "$f";;
5094 *) # Relative
5095 if test -f "$f"; then
5096 # Build tree
5097 echo "$f"
5098 elif test -f "$srcdir/$f"; then
5099 # Source tree
5100 echo "$srcdir/$f"
5101 else
5102 # /dev/null tree
5103 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5104 echo "$as_me: error: cannot find input file: $f" >&2;}
5105 { (exit 1); exit 1; }; }
5106 fi;;
5107 esac
5108 done` || { (exit 1); exit 1; }
5109 _ACEOF
5110 cat >>$CONFIG_STATUS <<_ACEOF
5111 sed "$ac_vpsub
5112 $extrasub
5113 _ACEOF
5114 cat >>$CONFIG_STATUS <<\_ACEOF
5115 :t
5116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5117 s,@configure_input@,$configure_input,;t t
5118 s,@srcdir@,$ac_srcdir,;t t
5119 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5120 s,@top_srcdir@,$ac_top_srcdir,;t t
5121 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5122 s,@builddir@,$ac_builddir,;t t
5123 s,@abs_builddir@,$ac_abs_builddir,;t t
5124 s,@top_builddir@,$ac_top_builddir,;t t
5125 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5126 s,@INSTALL@,$ac_INSTALL,;t t
5127 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5128 rm -f $tmp/stdin
5129 if test x"$ac_file" != x-; then
5130 mv $tmp/out $ac_file
5131 else
5132 cat $tmp/out
5133 rm -f $tmp/out
5134 fi
5135
5136 done
5137 _ACEOF
5138 cat >>$CONFIG_STATUS <<\_ACEOF
5139
5140 #
5141 # CONFIG_HEADER section.
5142 #
5143
5144 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5145 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5146 #
5147 # ac_d sets the value in "#define NAME VALUE" lines.
5148 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5149 ac_dB='[ ].*$,\1#\2'
5150 ac_dC=' '
5151 ac_dD=',;t'
5152 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5153 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5154 ac_uB='$,\1#\2define\3'
5155 ac_uC=' '
5156 ac_uD=',;t'
5157
5158 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5160 case $ac_file in
5161 - | *:- | *:-:* ) # input from stdin
5162 cat >$tmp/stdin
5163 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5165 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5167 * ) ac_file_in=$ac_file.in ;;
5168 esac
5169
5170 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5171 echo "$as_me: creating $ac_file" >&6;}
5172
5173 # First look for the input files in the build tree, otherwise in the
5174 # src tree.
5175 ac_file_inputs=`IFS=:
5176 for f in $ac_file_in; do
5177 case $f in
5178 -) echo $tmp/stdin ;;
5179 [\\/$]*)
5180 # Absolute (can't be DOS-style, as IFS=:)
5181 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5182 echo "$as_me: error: cannot find input file: $f" >&2;}
5183 { (exit 1); exit 1; }; }
5184 # Do quote $f, to prevent DOS paths from being IFS'd.
5185 echo "$f";;
5186 *) # Relative
5187 if test -f "$f"; then
5188 # Build tree
5189 echo "$f"
5190 elif test -f "$srcdir/$f"; then
5191 # Source tree
5192 echo "$srcdir/$f"
5193 else
5194 # /dev/null tree
5195 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5196 echo "$as_me: error: cannot find input file: $f" >&2;}
5197 { (exit 1); exit 1; }; }
5198 fi;;
5199 esac
5200 done` || { (exit 1); exit 1; }
5201 # Remove the trailing spaces.
5202 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5203
5204 _ACEOF
5205
5206 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5207 # `conftest.undefs', that substitutes the proper values into
5208 # config.h.in to produce config.h. The first handles `#define'
5209 # templates, and the second `#undef' templates.
5210 # And first: Protect against being on the right side of a sed subst in
5211 # config.status. Protect against being in an unquoted here document
5212 # in config.status.
5213 rm -f conftest.defines conftest.undefs
5214 # Using a here document instead of a string reduces the quoting nightmare.
5215 # Putting comments in sed scripts is not portable.
5216 #
5217 # `end' is used to avoid that the second main sed command (meant for
5218 # 0-ary CPP macros) applies to n-ary macro definitions.
5219 # See the Autoconf documentation for `clear'.
5220 cat >confdef2sed.sed <<\_ACEOF
5221 s/[\\&,]/\\&/g
5222 s,[\\$`],\\&,g
5223 t clear
5224 : clear
5225 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5226 t end
5227 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5228 : end
5229 _ACEOF
5230 # If some macros were called several times there might be several times
5231 # the same #defines, which is useless. Nevertheless, we may not want to
5232 # sort them, since we want the *last* AC-DEFINE to be honored.
5233 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5234 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5235 rm -f confdef2sed.sed
5236
5237 # This sed command replaces #undef with comments. This is necessary, for
5238 # example, in the case of _POSIX_SOURCE, which is predefined and required
5239 # on some systems where configure will not decide to define it.
5240 cat >>conftest.undefs <<\_ACEOF
5241 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5242 _ACEOF
5243
5244 # Break up conftest.defines because some shells have a limit on the size
5245 # of here documents, and old seds have small limits too (100 cmds).
5246 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5247 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5248 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5249 echo ' :' >>$CONFIG_STATUS
5250 rm -f conftest.tail
5251 while grep . conftest.defines >/dev/null
5252 do
5253 # Write a limited-size here document to $tmp/defines.sed.
5254 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5255 # Speed up: don't consider the non `#define' lines.
5256 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5257 # Work around the forget-to-reset-the-flag bug.
5258 echo 't clr' >>$CONFIG_STATUS
5259 echo ': clr' >>$CONFIG_STATUS
5260 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5261 echo 'CEOF
5262 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5263 rm -f $tmp/in
5264 mv $tmp/out $tmp/in
5265 ' >>$CONFIG_STATUS
5266 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5267 rm -f conftest.defines
5268 mv conftest.tail conftest.defines
5269 done
5270 rm -f conftest.defines
5271 echo ' fi # grep' >>$CONFIG_STATUS
5272 echo >>$CONFIG_STATUS
5273
5274 # Break up conftest.undefs because some shells have a limit on the size
5275 # of here documents, and old seds have small limits too (100 cmds).
5276 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5277 rm -f conftest.tail
5278 while grep . conftest.undefs >/dev/null
5279 do
5280 # Write a limited-size here document to $tmp/undefs.sed.
5281 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5282 # Speed up: don't consider the non `#undef'
5283 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5284 # Work around the forget-to-reset-the-flag bug.
5285 echo 't clr' >>$CONFIG_STATUS
5286 echo ': clr' >>$CONFIG_STATUS
5287 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5288 echo 'CEOF
5289 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5290 rm -f $tmp/in
5291 mv $tmp/out $tmp/in
5292 ' >>$CONFIG_STATUS
5293 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5294 rm -f conftest.undefs
5295 mv conftest.tail conftest.undefs
5296 done
5297 rm -f conftest.undefs
5298
5299 cat >>$CONFIG_STATUS <<\_ACEOF
5300 # Let's still pretend it is `configure' which instantiates (i.e., don't
5301 # use $as_me), people would be surprised to read:
5302 # /* config.h. Generated by config.status. */
5303 if test x"$ac_file" = x-; then
5304 echo "/* Generated by configure. */" >$tmp/config.h
5305 else
5306 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5307 fi
5308 cat $tmp/in >>$tmp/config.h
5309 rm -f $tmp/in
5310 if test x"$ac_file" != x-; then
5311 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5312 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5313 echo "$as_me: $ac_file is unchanged" >&6;}
5314 else
5315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5317 X"$ac_file" : 'X\(//\)[^/]' \| \
5318 X"$ac_file" : 'X\(//\)$' \| \
5319 X"$ac_file" : 'X\(/\)' \| \
5320 . : '\(.\)' 2>/dev/null ||
5321 echo X"$ac_file" |
5322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5324 /^X\(\/\/\)$/{ s//\1/; q; }
5325 /^X\(\/\).*/{ s//\1/; q; }
5326 s/.*/./; q'`
5327 { if $as_mkdir_p; then
5328 mkdir -p "$ac_dir"
5329 else
5330 as_dir="$ac_dir"
5331 as_dirs=
5332 while test ! -d "$as_dir"; do
5333 as_dirs="$as_dir $as_dirs"
5334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5336 X"$as_dir" : 'X\(//\)[^/]' \| \
5337 X"$as_dir" : 'X\(//\)$' \| \
5338 X"$as_dir" : 'X\(/\)' \| \
5339 . : '\(.\)' 2>/dev/null ||
5340 echo X"$as_dir" |
5341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5343 /^X\(\/\/\)$/{ s//\1/; q; }
5344 /^X\(\/\).*/{ s//\1/; q; }
5345 s/.*/./; q'`
5346 done
5347 test ! -n "$as_dirs" || mkdir $as_dirs
5348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5349 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5350 { (exit 1); exit 1; }; }; }
5351
5352 rm -f $ac_file
5353 mv $tmp/config.h $ac_file
5354 fi
5355 else
5356 cat $tmp/config.h
5357 rm -f $tmp/config.h
5358 fi
5359 done
5360 _ACEOF
5361
5362 cat >>$CONFIG_STATUS <<\_ACEOF
5363
5364 { (exit 0); exit 0; }
5365 _ACEOF
5366 chmod +x $CONFIG_STATUS
5367 ac_clean_files=$ac_clean_files_save
5368
5369
5370 # configure is writing to config.log, and then calls config.status.
5371 # config.status does its own redirection, appending to config.log.
5372 # Unfortunately, on DOS this fails, as config.log is still kept open
5373 # by configure, so config.status won't be able to write to it; its
5374 # output is simply discarded. So we exec the FD to /dev/null,
5375 # effectively closing config.log, so it can be properly (re)opened and
5376 # appended to by config.status. When coming back to configure, we
5377 # need to make the FD available again.
5378 if test "$no_create" != yes; then
5379 ac_cs_success=:
5380 ac_config_status_args=
5381 test "$silent" = yes &&
5382 ac_config_status_args="$ac_config_status_args --quiet"
5383 exec 5>/dev/null
5384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5385 exec 5>>config.log
5386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5387 # would make configure fail if this is the last instruction.
5388 $ac_cs_success || { (exit 1); exit 1; }
5389 fi
5390