Debian Codegraph @

configure

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