/[hydra]/hydra/src/configure
ViewVC logotype

Contents of /hydra/src/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Sat Sep 21 13:53:36 2002 UTC (21 years, 6 months ago) by nmav
Branch: boas
CVS Tags: start
Changes since 1.1: +0 -0 lines
Imported sources

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
148 ;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS=" $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="boa.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635 done
636
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710 else
711 ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
813
814 cat <<\_ACEOF
815 _ACEOF
816 fi
817
818 if test -n "$ac_init_help"; then
819
820 cat <<\_ACEOF
821
822 Optional Features:
823 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
824 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
825 --disable-ssl Do not include SSL and TLS support
826 --disable-smp Do not include SMP support
827 --enable-profiling Compile and link profiling code
828 --disable-debug Compile and link debugging code
829
830 Optional Packages:
831 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
832 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
833 --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
834 --with-dmalloc link with the Dmalloc memory debugger/profiler
835 --with-efence link with the Electric Fence memory debugger
836
837 Some influential environment variables:
838 CC C compiler command
839 CFLAGS C compiler flags
840 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
841 nonstandard directory <lib dir>
842 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
843 headers in a nonstandard directory <include dir>
844 CPP C preprocessor
845
846 Use these variables to override the choices made by `configure' or to help
847 it to find libraries and programs with nonstandard names/locations.
848
849 _ACEOF
850 fi
851
852 if test "$ac_init_help" = "recursive"; then
853 # If there are subdirs, report their specific --help.
854 ac_popdir=`pwd`
855 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
856 test -d $ac_dir || continue
857 ac_builddir=.
858
859 if test "$ac_dir" != .; then
860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
861 # A "../" for each directory in $ac_dir_suffix.
862 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
863 else
864 ac_dir_suffix= ac_top_builddir=
865 fi
866
867 case $srcdir in
868 .) # No --srcdir option. We are building in place.
869 ac_srcdir=.
870 if test -z "$ac_top_builddir"; then
871 ac_top_srcdir=.
872 else
873 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
874 fi ;;
875 [\\/]* | ?:[\\/]* ) # Absolute path.
876 ac_srcdir=$srcdir$ac_dir_suffix;
877 ac_top_srcdir=$srcdir ;;
878 *) # Relative path.
879 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
880 ac_top_srcdir=$ac_top_builddir$srcdir ;;
881 esac
882 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
883 # absolute.
884 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
885 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
886 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
887 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
888
889 cd $ac_dir
890 # Check for guested configure; otherwise get Cygnus style configure.
891 if test -f $ac_srcdir/configure.gnu; then
892 echo
893 $SHELL $ac_srcdir/configure.gnu --help=recursive
894 elif test -f $ac_srcdir/configure; then
895 echo
896 $SHELL $ac_srcdir/configure --help=recursive
897 elif test -f $ac_srcdir/configure.ac ||
898 test -f $ac_srcdir/configure.in; then
899 echo
900 $ac_configure --help
901 else
902 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
903 fi
904 cd $ac_popdir
905 done
906 fi
907
908 test -n "$ac_init_help" && exit 0
909 if $ac_init_version; then
910 cat <<\_ACEOF
911
912 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
913 Free Software Foundation, Inc.
914 This configure script is free software; the Free Software Foundation
915 gives unlimited permission to copy, distribute and modify it.
916 _ACEOF
917 exit 0
918 fi
919 exec 5>config.log
920 cat >&5 <<_ACEOF
921 This file contains any messages produced by compilers while
922 running configure, to aid debugging if configure makes a mistake.
923
924 It was created by $as_me, which was
925 generated by GNU Autoconf 2.53. Invocation command line was
926
927 $ $0 $@
928
929 _ACEOF
930 {
931 cat <<_ASUNAME
932 ## --------- ##
933 ## Platform. ##
934 ## --------- ##
935
936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
941
942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
944
945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
948 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
952
953 _ASUNAME
954
955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
956 for as_dir in $PATH
957 do
958 IFS=$as_save_IFS
959 test -z "$as_dir" && as_dir=.
960 echo "PATH: $as_dir"
961 done
962
963 } >&5
964
965 cat >&5 <<_ACEOF
966
967
968 ## ----------- ##
969 ## Core tests. ##
970 ## ----------- ##
971
972 _ACEOF
973
974
975 # Keep a trace of the command line.
976 # Strip out --no-create and --no-recursion so they do not pile up.
977 # Also quote any args containing shell meta-characters.
978 ac_configure_args=
979 ac_sep=
980 for ac_arg
981 do
982 case $ac_arg in
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n ) continue ;;
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 continue ;;
988 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
989 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
990 esac
991 case " $ac_configure_args " in
992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
993 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
994 ac_sep=" " ;;
995 esac
996 # Get rid of the leading space.
997 done
998
999 # When interrupted or exit'd, cleanup temporary files, and complete
1000 # config.log. We remove comments because anyway the quotes in there
1001 # would cause problems or look ugly.
1002 # WARNING: Be sure not to use single quotes in there, as some shells,
1003 # such as our DU 5.0 friend, will then `close' the trap.
1004 trap 'exit_status=$?
1005 # Save into config.log some information that might help in debugging.
1006 {
1007 echo
1008 cat <<\_ASBOX
1009 ## ---------------- ##
1010 ## Cache variables. ##
1011 ## ---------------- ##
1012 _ASBOX
1013 echo
1014 # The following way of writing the cache mishandles newlines in values,
1015 {
1016 (set) 2>&1 |
1017 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1018 *ac_space=\ *)
1019 sed -n \
1020 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1022 ;;
1023 *)
1024 sed -n \
1025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1026 ;;
1027 esac;
1028 }
1029 echo
1030 if test -s confdefs.h; then
1031 cat <<\_ASBOX
1032 ## ----------- ##
1033 ## confdefs.h. ##
1034 ## ----------- ##
1035 _ASBOX
1036 echo
1037 sed "/^$/d" confdefs.h
1038 echo
1039 fi
1040 test "$ac_signal" != 0 &&
1041 echo "$as_me: caught signal $ac_signal"
1042 echo "$as_me: exit $exit_status"
1043 } >&5
1044 rm -f core core.* *.core &&
1045 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1046 exit $exit_status
1047 ' 0
1048 for ac_signal in 1 2 13 15; do
1049 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1050 done
1051 ac_signal=0
1052
1053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1054 rm -rf conftest* confdefs.h
1055 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1056 echo >confdefs.h
1057
1058 # Predefined preprocessor variables.
1059
1060 cat >>confdefs.h <<_ACEOF
1061 #define PACKAGE_NAME "$PACKAGE_NAME"
1062 _ACEOF
1063
1064
1065 cat >>confdefs.h <<_ACEOF
1066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1067 _ACEOF
1068
1069
1070 cat >>confdefs.h <<_ACEOF
1071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1072 _ACEOF
1073
1074
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_STRING "$PACKAGE_STRING"
1077 _ACEOF
1078
1079
1080 cat >>confdefs.h <<_ACEOF
1081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1082 _ACEOF
1083
1084
1085 # Let the site file select an alternate cache file if it wants to.
1086 # Prefer explicitly selected file to automatically selected ones.
1087 if test -z "$CONFIG_SITE"; then
1088 if test "x$prefix" != xNONE; then
1089 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1090 else
1091 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1092 fi
1093 fi
1094 for ac_site_file in $CONFIG_SITE; do
1095 if test -r "$ac_site_file"; then
1096 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1097 echo "$as_me: loading site script $ac_site_file" >&6;}
1098 sed 's/^/| /' "$ac_site_file" >&5
1099 . "$ac_site_file"
1100 fi
1101 done
1102
1103 if test -r "$cache_file"; then
1104 # Some versions of bash will fail to source /dev/null (special
1105 # files actually), so we avoid doing that.
1106 if test -f "$cache_file"; then
1107 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1108 echo "$as_me: loading cache $cache_file" >&6;}
1109 case $cache_file in
1110 [\\/]* | ?:[\\/]* ) . $cache_file;;
1111 *) . ./$cache_file;;
1112 esac
1113 fi
1114 else
1115 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1116 echo "$as_me: creating cache $cache_file" >&6;}
1117 >$cache_file
1118 fi
1119
1120 # Check that the precious variables saved in the cache have kept the same
1121 # value.
1122 ac_cache_corrupted=false
1123 for ac_var in `(set) 2>&1 |
1124 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1126 eval ac_new_set=\$ac_env_${ac_var}_set
1127 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1128 eval ac_new_val="\$ac_env_${ac_var}_value"
1129 case $ac_old_set,$ac_new_set in
1130 set,)
1131 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1132 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1133 ac_cache_corrupted=: ;;
1134 ,set)
1135 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1136 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1137 ac_cache_corrupted=: ;;
1138 ,);;
1139 *)
1140 if test "x$ac_old_val" != "x$ac_new_val"; then
1141 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1142 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1143 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1144 echo "$as_me: former value: $ac_old_val" >&2;}
1145 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1146 echo "$as_me: current value: $ac_new_val" >&2;}
1147 ac_cache_corrupted=:
1148 fi;;
1149 esac
1150 # Pass precious variables to config.status.
1151 if test "$ac_new_set" = set; then
1152 case $ac_new_val in
1153 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1154 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1155 *) ac_arg=$ac_var=$ac_new_val ;;
1156 esac
1157 case " $ac_configure_args " in
1158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1159 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1160 esac
1161 fi
1162 done
1163 if $ac_cache_corrupted; then
1164 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1165 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1166 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1167 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1168 { (exit 1); exit 1; }; }
1169 fi
1170
1171 ac_ext=c
1172 ac_cpp='$CPP $CPPFLAGS'
1173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195 # Extract the first word of "gunzip", so it can be a program name with args.
1196 set dummy gunzip; ac_word=$2
1197 echo "$as_me:$LINENO: checking for $ac_word" >&5
1198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1199 if test "${ac_cv_path_GUNZIP+set}" = set; then
1200 echo $ECHO_N "(cached) $ECHO_C" >&6
1201 else
1202 case $GUNZIP in
1203 [\\/]* | ?:[\\/]*)
1204 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
1205 ;;
1206 *)
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 for as_dir in $PATH
1209 do
1210 IFS=$as_save_IFS
1211 test -z "$as_dir" && as_dir=.
1212 for ac_exec_ext in '' $ac_executable_extensions; do
1213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1214 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
1215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1216 break 2
1217 fi
1218 done
1219 done
1220
1221 ;;
1222 esac
1223 fi
1224 GUNZIP=$ac_cv_path_GUNZIP
1225
1226 if test -n "$GUNZIP"; then
1227 echo "$as_me:$LINENO: result: $GUNZIP" >&5
1228 echo "${ECHO_T}$GUNZIP" >&6
1229 else
1230 echo "$as_me:$LINENO: result: no" >&5
1231 echo "${ECHO_T}no" >&6
1232 fi
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define GUNZIP "$ac_cv_path_GUNZIP"
1236 _ACEOF
1237
1238
1239 ac_ext=c
1240 ac_cpp='$CPP $CPPFLAGS'
1241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1244 if test -n "$ac_tool_prefix"; then
1245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1246 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1247 echo "$as_me:$LINENO: checking for $ac_word" >&5
1248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1249 if test "${ac_cv_prog_CC+set}" = set; then
1250 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 else
1252 if test -n "$CC"; then
1253 ac_cv_prog_CC="$CC" # Let the user override the test.
1254 else
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 for as_dir in $PATH
1257 do
1258 IFS=$as_save_IFS
1259 test -z "$as_dir" && as_dir=.
1260 for ac_exec_ext in '' $ac_executable_extensions; do
1261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1264 break 2
1265 fi
1266 done
1267 done
1268
1269 fi
1270 fi
1271 CC=$ac_cv_prog_CC
1272 if test -n "$CC"; then
1273 echo "$as_me:$LINENO: result: $CC" >&5
1274 echo "${ECHO_T}$CC" >&6
1275 else
1276 echo "$as_me:$LINENO: result: no" >&5
1277 echo "${ECHO_T}no" >&6
1278 fi
1279
1280 fi
1281 if test -z "$ac_cv_prog_CC"; then
1282 ac_ct_CC=$CC
1283 # Extract the first word of "gcc", so it can be a program name with args.
1284 set dummy gcc; ac_word=$2
1285 echo "$as_me:$LINENO: checking for $ac_word" >&5
1286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1289 else
1290 if test -n "$ac_ct_CC"; then
1291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1292 else
1293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1294 for as_dir in $PATH
1295 do
1296 IFS=$as_save_IFS
1297 test -z "$as_dir" && as_dir=.
1298 for ac_exec_ext in '' $ac_executable_extensions; do
1299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1300 ac_cv_prog_ac_ct_CC="gcc"
1301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1302 break 2
1303 fi
1304 done
1305 done
1306
1307 fi
1308 fi
1309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1310 if test -n "$ac_ct_CC"; then
1311 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1312 echo "${ECHO_T}$ac_ct_CC" >&6
1313 else
1314 echo "$as_me:$LINENO: result: no" >&5
1315 echo "${ECHO_T}no" >&6
1316 fi
1317
1318 CC=$ac_ct_CC
1319 else
1320 CC="$ac_cv_prog_CC"
1321 fi
1322
1323 if test -z "$CC"; then
1324 if test -n "$ac_tool_prefix"; then
1325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1326 set dummy ${ac_tool_prefix}cc; ac_word=$2
1327 echo "$as_me:$LINENO: checking for $ac_word" >&5
1328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1329 if test "${ac_cv_prog_CC+set}" = set; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
1331 else
1332 if test -n "$CC"; then
1333 ac_cv_prog_CC="$CC" # Let the user override the test.
1334 else
1335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336 for as_dir in $PATH
1337 do
1338 IFS=$as_save_IFS
1339 test -z "$as_dir" && as_dir=.
1340 for ac_exec_ext in '' $ac_executable_extensions; do
1341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1342 ac_cv_prog_CC="${ac_tool_prefix}cc"
1343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1344 break 2
1345 fi
1346 done
1347 done
1348
1349 fi
1350 fi
1351 CC=$ac_cv_prog_CC
1352 if test -n "$CC"; then
1353 echo "$as_me:$LINENO: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1355 else
1356 echo "$as_me:$LINENO: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1358 fi
1359
1360 fi
1361 if test -z "$ac_cv_prog_CC"; then
1362 ac_ct_CC=$CC
1363 # Extract the first word of "cc", so it can be a program name with args.
1364 set dummy cc; ac_word=$2
1365 echo "$as_me:$LINENO: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 if test -n "$ac_ct_CC"; then
1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1372 else
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
1376 IFS=$as_save_IFS
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_prog_ac_ct_CC="cc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 break 2
1383 fi
1384 done
1385 done
1386
1387 fi
1388 fi
1389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1390 if test -n "$ac_ct_CC"; then
1391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1392 echo "${ECHO_T}$ac_ct_CC" >&6
1393 else
1394 echo "$as_me:$LINENO: result: no" >&5
1395 echo "${ECHO_T}no" >&6
1396 fi
1397
1398 CC=$ac_ct_CC
1399 else
1400 CC="$ac_cv_prog_CC"
1401 fi
1402
1403 fi
1404 if test -z "$CC"; then
1405 # Extract the first word of "cc", so it can be a program name with args.
1406 set dummy cc; ac_word=$2
1407 echo "$as_me:$LINENO: checking for $ac_word" >&5
1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409 if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1414 else
1415 ac_prog_rejected=no
1416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 for as_dir in $PATH
1418 do
1419 IFS=$as_save_IFS
1420 test -z "$as_dir" && as_dir=.
1421 for ac_exec_ext in '' $ac_executable_extensions; do
1422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1424 ac_prog_rejected=yes
1425 continue
1426 fi
1427 ac_cv_prog_CC="cc"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 break 2
1430 fi
1431 done
1432 done
1433
1434 if test $ac_prog_rejected = yes; then
1435 # We found a bogon in the path, so make sure we never use it.
1436 set dummy $ac_cv_prog_CC
1437 shift
1438 if test $# != 0; then
1439 # We chose a different compiler from the bogus one.
1440 # However, it has the same basename, so the bogon will be chosen
1441 # first if we set CC to just the basename; use the full file name.
1442 shift
1443 set dummy "$as_dir/$ac_word" ${1+"$@"}
1444 shift
1445 ac_cv_prog_CC="$@"
1446 fi
1447 fi
1448 fi
1449 fi
1450 CC=$ac_cv_prog_CC
1451 if test -n "$CC"; then
1452 echo "$as_me:$LINENO: result: $CC" >&5
1453 echo "${ECHO_T}$CC" >&6
1454 else
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1457 fi
1458
1459 fi
1460 if test -z "$CC"; then
1461 if test -n "$ac_tool_prefix"; then
1462 for ac_prog in cl
1463 do
1464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1484 fi
1485 done
1486 done
1487
1488 fi
1489 fi
1490 CC=$ac_cv_prog_CC
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1494 else
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1497 fi
1498
1499 test -n "$CC" && break
1500 done
1501 fi
1502 if test -z "$CC"; then
1503 ac_ct_CC=$CC
1504 for ac_prog in cl
1505 do
1506 # Extract the first word of "$ac_prog", so it can be a program name with args.
1507 set dummy $ac_prog; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 else
1513 if test -n "$ac_ct_CC"; then
1514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1515 else
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 for as_dir in $PATH
1518 do
1519 IFS=$as_save_IFS
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_ac_ct_CC="$ac_prog"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 break 2
1526 fi
1527 done
1528 done
1529
1530 fi
1531 fi
1532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1533 if test -n "$ac_ct_CC"; then
1534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1535 echo "${ECHO_T}$ac_ct_CC" >&6
1536 else
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1539 fi
1540
1541 test -n "$ac_ct_CC" && break
1542 done
1543
1544 CC=$ac_ct_CC
1545 fi
1546
1547 fi
1548
1549
1550 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1551 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1552 { (exit 1); exit 1; }; }
1553
1554 # Provide some information about the compiler.
1555 echo "$as_me:$LINENO:" \
1556 "checking for C compiler version" >&5
1557 ac_compiler=`set X $ac_compile; echo $2`
1558 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1559 (eval $ac_compiler --version </dev/null >&5) 2>&5
1560 ac_status=$?
1561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1562 (exit $ac_status); }
1563 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1564 (eval $ac_compiler -v </dev/null >&5) 2>&5
1565 ac_status=$?
1566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1567 (exit $ac_status); }
1568 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1569 (eval $ac_compiler -V </dev/null >&5) 2>&5
1570 ac_status=$?
1571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1572 (exit $ac_status); }
1573
1574 cat >conftest.$ac_ext <<_ACEOF
1575 #line $LINENO "configure"
1576 #include "confdefs.h"
1577
1578 #ifdef F77_DUMMY_MAIN
1579 # ifdef __cplusplus
1580 extern "C"
1581 # endif
1582 int F77_DUMMY_MAIN() { return 1; }
1583 #endif
1584 int
1585 main ()
1586 {
1587
1588 ;
1589 return 0;
1590 }
1591 _ACEOF
1592 ac_clean_files_save=$ac_clean_files
1593 ac_clean_files="$ac_clean_files a.out a.exe"
1594 # Try to create an executable without -o first, disregard a.out.
1595 # It will help us diagnose broken compilers, and finding out an intuition
1596 # of exeext.
1597 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1598 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1599 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1600 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1601 (eval $ac_link_default) 2>&5
1602 ac_status=$?
1603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1604 (exit $ac_status); }; then
1605 # Find the output, starting from the most likely. This scheme is
1606 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1607 # resort.
1608
1609 # Be careful to initialize this variable, since it used to be cached.
1610 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1611 ac_cv_exeext=
1612 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1613 ls a.out conftest 2>/dev/null;
1614 ls a.* conftest.* 2>/dev/null`; do
1615 case $ac_file in
1616 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1617 a.out ) # We found the default executable, but exeext='' is most
1618 # certainly right.
1619 break;;
1620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1621 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1622 export ac_cv_exeext
1623 break;;
1624 * ) break;;
1625 esac
1626 done
1627 else
1628 echo "$as_me: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1631 echo "$as_me: error: C compiler cannot create executables" >&2;}
1632 { (exit 77); exit 77; }; }
1633 fi
1634
1635 ac_exeext=$ac_cv_exeext
1636 echo "$as_me:$LINENO: result: $ac_file" >&5
1637 echo "${ECHO_T}$ac_file" >&6
1638
1639 # Check the compiler produces executables we can run. If not, either
1640 # the compiler is broken, or we cross compile.
1641 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1644 # If not cross compiling, check that we can run a simple program.
1645 if test "$cross_compiling" != yes; then
1646 if { ac_try='./$ac_file'
1647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1648 (eval $ac_try) 2>&5
1649 ac_status=$?
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); }; }; then
1652 cross_compiling=no
1653 else
1654 if test "$cross_compiling" = maybe; then
1655 cross_compiling=yes
1656 else
1657 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1658 If you meant to cross compile, use \`--host'." >&5
1659 echo "$as_me: error: cannot run C compiled programs.
1660 If you meant to cross compile, use \`--host'." >&2;}
1661 { (exit 1); exit 1; }; }
1662 fi
1663 fi
1664 fi
1665 echo "$as_me:$LINENO: result: yes" >&5
1666 echo "${ECHO_T}yes" >&6
1667
1668 rm -f a.out a.exe conftest$ac_cv_exeext
1669 ac_clean_files=$ac_clean_files_save
1670 # Check the compiler produces executables we can run. If not, either
1671 # the compiler is broken, or we cross compile.
1672 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1673 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1674 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1675 echo "${ECHO_T}$cross_compiling" >&6
1676
1677 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1678 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1680 (eval $ac_link) 2>&5
1681 ac_status=$?
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }; then
1684 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1685 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1686 # work properly (i.e., refer to `conftest.exe'), while it won't with
1687 # `rm'.
1688 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1689 case $ac_file in
1690 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1691 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1692 export ac_cv_exeext
1693 break;;
1694 * ) break;;
1695 esac
1696 done
1697 else
1698 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1699 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1700 { (exit 1); exit 1; }; }
1701 fi
1702
1703 rm -f conftest$ac_cv_exeext
1704 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1705 echo "${ECHO_T}$ac_cv_exeext" >&6
1706
1707 rm -f conftest.$ac_ext
1708 EXEEXT=$ac_cv_exeext
1709 ac_exeext=$EXEEXT
1710 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1711 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1712 if test "${ac_cv_objext+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line $LINENO "configure"
1717 #include "confdefs.h"
1718
1719 #ifdef F77_DUMMY_MAIN
1720 # ifdef __cplusplus
1721 extern "C"
1722 # endif
1723 int F77_DUMMY_MAIN() { return 1; }
1724 #endif
1725 int
1726 main ()
1727 {
1728
1729 ;
1730 return 0;
1731 }
1732 _ACEOF
1733 rm -f conftest.o conftest.obj
1734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1735 (eval $ac_compile) 2>&5
1736 ac_status=$?
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }; then
1739 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1740 case $ac_file in
1741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1742 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1743 break;;
1744 esac
1745 done
1746 else
1747 echo "$as_me: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1749 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1750 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1751 { (exit 1); exit 1; }; }
1752 fi
1753
1754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1755 fi
1756 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1757 echo "${ECHO_T}$ac_cv_objext" >&6
1758 OBJEXT=$ac_cv_objext
1759 ac_objext=$OBJEXT
1760 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line $LINENO "configure"
1767 #include "confdefs.h"
1768
1769 #ifdef F77_DUMMY_MAIN
1770 # ifdef __cplusplus
1771 extern "C"
1772 # endif
1773 int F77_DUMMY_MAIN() { return 1; }
1774 #endif
1775 int
1776 main ()
1777 {
1778 #ifndef __GNUC__
1779 choke me
1780 #endif
1781
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 rm -f conftest.$ac_objext
1787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1788 (eval $ac_compile) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); } &&
1792 { ac_try='test -s conftest.$ac_objext'
1793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1794 (eval $ac_try) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; }; then
1798 ac_compiler_gnu=yes
1799 else
1800 echo "$as_me: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1802 ac_compiler_gnu=no
1803 fi
1804 rm -f conftest.$ac_objext conftest.$ac_ext
1805 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1806
1807 fi
1808 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1809 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1810 GCC=`test $ac_compiler_gnu = yes && echo yes`
1811 ac_test_CFLAGS=${CFLAGS+set}
1812 ac_save_CFLAGS=$CFLAGS
1813 CFLAGS="-g"
1814 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1815 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1816 if test "${ac_cv_prog_cc_g+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 cat >conftest.$ac_ext <<_ACEOF
1820 #line $LINENO "configure"
1821 #include "confdefs.h"
1822
1823 #ifdef F77_DUMMY_MAIN
1824 # ifdef __cplusplus
1825 extern "C"
1826 # endif
1827 int F77_DUMMY_MAIN() { return 1; }
1828 #endif
1829 int
1830 main ()
1831 {
1832
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 rm -f conftest.$ac_objext
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); } &&
1843 { ac_try='test -s conftest.$ac_objext'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 ac_cv_prog_cc_g=yes
1850 else
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 ac_cv_prog_cc_g=no
1854 fi
1855 rm -f conftest.$ac_objext conftest.$ac_ext
1856 fi
1857 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1858 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1859 if test "$ac_test_CFLAGS" = set; then
1860 CFLAGS=$ac_save_CFLAGS
1861 elif test $ac_cv_prog_cc_g = yes; then
1862 if test "$GCC" = yes; then
1863 CFLAGS="-g -O2"
1864 else
1865 CFLAGS="-g"
1866 fi
1867 else
1868 if test "$GCC" = yes; then
1869 CFLAGS="-O2"
1870 else
1871 CFLAGS=
1872 fi
1873 fi
1874 # Some people use a C++ compiler to compile C. Since we use `exit',
1875 # in C++ we need to declare it. In case someone uses the same compiler
1876 # for both compiling C and C++ we need to have the C++ compiler decide
1877 # the declaration of exit, since it's the most demanding environment.
1878 cat >conftest.$ac_ext <<_ACEOF
1879 #ifndef __cplusplus
1880 choke me
1881 #endif
1882 _ACEOF
1883 rm -f conftest.$ac_objext
1884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1885 (eval $ac_compile) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); } &&
1889 { ac_try='test -s conftest.$ac_objext'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 (eval $ac_try) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1895 for ac_declaration in \
1896 ''\
1897 '#include <stdlib.h>' \
1898 'extern "C" void std::exit (int) throw (); using std::exit;' \
1899 'extern "C" void std::exit (int); using std::exit;' \
1900 'extern "C" void exit (int) throw ();' \
1901 'extern "C" void exit (int);' \
1902 'void exit (int);'
1903 do
1904 cat >conftest.$ac_ext <<_ACEOF
1905 #line $LINENO "configure"
1906 #include "confdefs.h"
1907 #include <stdlib.h>
1908 $ac_declaration
1909 #ifdef F77_DUMMY_MAIN
1910 # ifdef __cplusplus
1911 extern "C"
1912 # endif
1913 int F77_DUMMY_MAIN() { return 1; }
1914 #endif
1915 int
1916 main ()
1917 {
1918 exit (42);
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1935 :
1936 else
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 continue
1940 fi
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line $LINENO "configure"
1944 #include "confdefs.h"
1945 $ac_declaration
1946 #ifdef F77_DUMMY_MAIN
1947 # ifdef __cplusplus
1948 extern "C"
1949 # endif
1950 int F77_DUMMY_MAIN() { return 1; }
1951 #endif
1952 int
1953 main ()
1954 {
1955 exit (42);
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 rm -f conftest.$ac_objext
1961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 (eval $ac_try) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1972 break
1973 else
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 fi
1977 rm -f conftest.$ac_objext conftest.$ac_ext
1978 done
1979 rm -f conftest*
1980 if test -n "$ac_declaration"; then
1981 echo '#ifdef __cplusplus' >>confdefs.h
1982 echo $ac_declaration >>confdefs.h
1983 echo '#endif' >>confdefs.h
1984 fi
1985
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 fi
1990 rm -f conftest.$ac_objext conftest.$ac_ext
1991 ac_ext=c
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996
1997
1998 for ac_prog in flex lex
1999 do
2000 # Extract the first word of "$ac_prog", so it can be a program name with args.
2001 set dummy $ac_prog; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_LEX+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 if test -n "$LEX"; then
2008 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_LEX="$ac_prog"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 break 2
2020 fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 LEX=$ac_cv_prog_LEX
2027 if test -n "$LEX"; then
2028 echo "$as_me:$LINENO: result: $LEX" >&5
2029 echo "${ECHO_T}$LEX" >&6
2030 else
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 test -n "$LEX" && break
2036 done
2037 test -n "$LEX" || LEX=":"
2038
2039 if test -z "$LEXLIB"
2040 then
2041 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2042 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2043 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 ac_check_lib_save_LIBS=$LIBS
2047 LIBS="-lfl $LIBS"
2048 cat >conftest.$ac_ext <<_ACEOF
2049 #line $LINENO "configure"
2050 #include "confdefs.h"
2051
2052 /* Override any gcc2 internal prototype to avoid an error. */
2053 #ifdef __cplusplus
2054 extern "C"
2055 #endif
2056 /* We use char because int might match the return type of a gcc2
2057 builtin and then its argument prototype would still apply. */
2058 char yywrap ();
2059 #ifdef F77_DUMMY_MAIN
2060 # ifdef __cplusplus
2061 extern "C"
2062 # endif
2063 int F77_DUMMY_MAIN() { return 1; }
2064 #endif
2065 int
2066 main ()
2067 {
2068 yywrap ();
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 rm -f conftest.$ac_objext conftest$ac_exeext
2074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2075 (eval $ac_link) 2>&5
2076 ac_status=$?
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); } &&
2079 { ac_try='test -s conftest$ac_exeext'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 ac_cv_lib_fl_yywrap=yes
2086 else
2087 echo "$as_me: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 ac_cv_lib_fl_yywrap=no
2090 fi
2091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2092 LIBS=$ac_check_lib_save_LIBS
2093 fi
2094 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2095 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2096 if test $ac_cv_lib_fl_yywrap = yes; then
2097 LEXLIB="-lfl"
2098 else
2099 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2100 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2101 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 ac_check_lib_save_LIBS=$LIBS
2105 LIBS="-ll $LIBS"
2106 cat >conftest.$ac_ext <<_ACEOF
2107 #line $LINENO "configure"
2108 #include "confdefs.h"
2109
2110 /* Override any gcc2 internal prototype to avoid an error. */
2111 #ifdef __cplusplus
2112 extern "C"
2113 #endif
2114 /* We use char because int might match the return type of a gcc2
2115 builtin and then its argument prototype would still apply. */
2116 char yywrap ();
2117 #ifdef F77_DUMMY_MAIN
2118 # ifdef __cplusplus
2119 extern "C"
2120 # endif
2121 int F77_DUMMY_MAIN() { return 1; }
2122 #endif
2123 int
2124 main ()
2125 {
2126 yywrap ();
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.$ac_objext conftest$ac_exeext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2133 (eval $ac_link) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); } &&
2137 { ac_try='test -s conftest$ac_exeext'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 (eval $ac_try) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2143 ac_cv_lib_l_yywrap=yes
2144 else
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 ac_cv_lib_l_yywrap=no
2148 fi
2149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2150 LIBS=$ac_check_lib_save_LIBS
2151 fi
2152 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2153 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2154 if test $ac_cv_lib_l_yywrap = yes; then
2155 LEXLIB="-ll"
2156 fi
2157
2158 fi
2159
2160 fi
2161
2162 if test "x$LEX" != "x:"; then
2163 echo "$as_me:$LINENO: checking lex output file root" >&5
2164 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2165 if test "${ac_cv_prog_lex_root+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 # The minimal lex program is just a single line: %%. But some broken lexes
2169 # (Solaris, I think it was) want two %% lines, so accommodate them.
2170 cat >conftest.l <<_ACEOF
2171 %%
2172 %%
2173 _ACEOF
2174 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2175 (eval $LEX conftest.l) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }
2179 if test -f lex.yy.c; then
2180 ac_cv_prog_lex_root=lex.yy
2181 elif test -f lexyy.c; then
2182 ac_cv_prog_lex_root=lexyy
2183 else
2184 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2185 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2186 { (exit 1); exit 1; }; }
2187 fi
2188 fi
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2190 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2191 rm -f conftest.l
2192 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2193
2194 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2195 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2196 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 # POSIX says lex can declare yytext either as a pointer or an array; the
2200 # default is implementation-dependent. Figure out which it is, since
2201 # not all implementations provide the %pointer and %array declarations.
2202 ac_cv_prog_lex_yytext_pointer=no
2203 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2204 ac_save_LIBS=$LIBS
2205 LIBS="$LIBS $LEXLIB"
2206 cat >conftest.$ac_ext <<_ACEOF
2207 `cat $LEX_OUTPUT_ROOT.c`
2208 _ACEOF
2209 rm -f conftest.$ac_objext conftest$ac_exeext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2211 (eval $ac_link) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -s conftest$ac_exeext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_lex_yytext_pointer=yes
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2225 fi
2226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2227 LIBS=$ac_save_LIBS
2228 rm -f "${LEX_OUTPUT_ROOT}.c"
2229
2230 fi
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2232 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2233 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2234
2235 cat >>confdefs.h <<\_ACEOF
2236 #define YYTEXT_POINTER 1
2237 _ACEOF
2238
2239 fi
2240
2241 fi
2242 for ac_prog in 'bison -y' byacc
2243 do
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_YACC+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 if test -n "$YACC"; then
2252 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_YACC="$ac_prog"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2264 fi
2265 done
2266 done
2267
2268 fi
2269 fi
2270 YACC=$ac_cv_prog_YACC
2271 if test -n "$YACC"; then
2272 echo "$as_me:$LINENO: result: $YACC" >&5
2273 echo "${ECHO_T}$YACC" >&6
2274 else
2275 echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2277 fi
2278
2279 test -n "$YACC" && break
2280 done
2281 test -n "$YACC" || YACC="yacc"
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2290 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2291 echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_CC+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296 if test -n "$CC"; then
2297 ac_cv_prog_CC="$CC" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2309 fi
2310 done
2311 done
2312
2313 fi
2314 fi
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317 echo "$as_me:$LINENO: result: $CC" >&5
2318 echo "${ECHO_T}$CC" >&6
2319 else
2320 echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2322 fi
2323
2324 fi
2325 if test -z "$ac_cv_prog_CC"; then
2326 ac_ct_CC=$CC
2327 # Extract the first word of "gcc", so it can be a program name with args.
2328 set dummy gcc; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 if test -n "$ac_ct_CC"; then
2335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 ac_cv_prog_ac_ct_CC="gcc"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348 done
2349 done
2350
2351 fi
2352 fi
2353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354 if test -n "$ac_ct_CC"; then
2355 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356 echo "${ECHO_T}$ac_ct_CC" >&6
2357 else
2358 echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2360 fi
2361
2362 CC=$ac_ct_CC
2363 else
2364 CC="$ac_cv_prog_CC"
2365 fi
2366
2367 if test -z "$CC"; then
2368 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}cc; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 ac_cv_prog_CC="${ac_tool_prefix}cc"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390 done
2391 done
2392
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397 echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2399 else
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2403
2404 fi
2405 if test -z "$ac_cv_prog_CC"; then
2406 ac_ct_CC=$CC
2407 # Extract the first word of "cc", so it can be a program name with args.
2408 set dummy cc; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 if test -n "$ac_ct_CC"; then
2415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424 ac_cv_prog_ac_ct_CC="cc"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428 done
2429 done
2430
2431 fi
2432 fi
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436 echo "${ECHO_T}$ac_ct_CC" >&6
2437 else
2438 echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6
2440 fi
2441
2442 CC=$ac_ct_CC
2443 else
2444 CC="$ac_cv_prog_CC"
2445 fi
2446
2447 fi
2448 if test -z "$CC"; then
2449 # Extract the first word of "cc", so it can be a program name with args.
2450 set dummy cc; ac_word=$2
2451 echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2453 if test "${ac_cv_prog_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456 if test -n "$CC"; then
2457 ac_cv_prog_CC="$CC" # Let the user override the test.
2458 else
2459 ac_prog_rejected=no
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2468 ac_prog_rejected=yes
2469 continue
2470 fi
2471 ac_cv_prog_CC="cc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475 done
2476 done
2477
2478 if test $ac_prog_rejected = yes; then
2479 # We found a bogon in the path, so make sure we never use it.
2480 set dummy $ac_cv_prog_CC
2481 shift
2482 if test $# != 0; then
2483 # We chose a different compiler from the bogus one.
2484 # However, it has the same basename, so the bogon will be chosen
2485 # first if we set CC to just the basename; use the full file name.
2486 shift
2487 set dummy "$as_dir/$ac_word" ${1+"$@"}
2488 shift
2489 ac_cv_prog_CC="$@"
2490 fi
2491 fi
2492 fi
2493 fi
2494 CC=$ac_cv_prog_CC
2495 if test -n "$CC"; then
2496 echo "$as_me:$LINENO: result: $CC" >&5
2497 echo "${ECHO_T}$CC" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503 fi
2504 if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 for ac_prog in cl
2507 do
2508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2510 echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531
2532 fi
2533 fi
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536 echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6
2538 else
2539 echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6
2541 fi
2542
2543 test -n "$CC" && break
2544 done
2545 fi
2546 if test -z "$CC"; then
2547 ac_ct_CC=$CC
2548 for ac_prog in cl
2549 do
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551 set dummy $ac_prog; ac_word=$2
2552 echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 if test -n "$ac_ct_CC"; then
2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_ac_ct_CC="$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573
2574 fi
2575 fi
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579 echo "${ECHO_T}$ac_ct_CC" >&6
2580 else
2581 echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6
2583 fi
2584
2585 test -n "$ac_ct_CC" && break
2586 done
2587
2588 CC=$ac_ct_CC
2589 fi
2590
2591 fi
2592
2593
2594 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2595 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2596 { (exit 1); exit 1; }; }
2597
2598 # Provide some information about the compiler.
2599 echo "$as_me:$LINENO:" \
2600 "checking for C compiler version" >&5
2601 ac_compiler=`set X $ac_compile; echo $2`
2602 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2603 (eval $ac_compiler --version </dev/null >&5) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2608 (eval $ac_compiler -v </dev/null >&5) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2613 (eval $ac_compiler -V </dev/null >&5) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617
2618 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2626
2627 #ifdef F77_DUMMY_MAIN
2628 # ifdef __cplusplus
2629 extern "C"
2630 # endif
2631 int F77_DUMMY_MAIN() { return 1; }
2632 #endif
2633 int
2634 main ()
2635 {
2636 #ifndef __GNUC__
2637 choke me
2638 #endif
2639
2640 ;
2641 return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_compiler_gnu=yes
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2660 ac_compiler_gnu=no
2661 fi
2662 rm -f conftest.$ac_objext conftest.$ac_ext
2663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2664
2665 fi
2666 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2667 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2668 GCC=`test $ac_compiler_gnu = yes && echo yes`
2669 ac_test_CFLAGS=${CFLAGS+set}
2670 ac_save_CFLAGS=$CFLAGS
2671 CFLAGS="-g"
2672 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cc_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 #include "confdefs.h"
2680
2681 #ifdef F77_DUMMY_MAIN
2682 # ifdef __cplusplus
2683 extern "C"
2684 # endif
2685 int F77_DUMMY_MAIN() { return 1; }
2686 #endif
2687 int
2688 main ()
2689 {
2690
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_prog_cc_g=yes
2708 else
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2711 ac_cv_prog_cc_g=no
2712 fi
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2717 if test "$ac_test_CFLAGS" = set; then
2718 CFLAGS=$ac_save_CFLAGS
2719 elif test $ac_cv_prog_cc_g = yes; then
2720 if test "$GCC" = yes; then
2721 CFLAGS="-g -O2"
2722 else
2723 CFLAGS="-g"
2724 fi
2725 else
2726 if test "$GCC" = yes; then
2727 CFLAGS="-O2"
2728 else
2729 CFLAGS=
2730 fi
2731 fi
2732 # Some people use a C++ compiler to compile C. Since we use `exit',
2733 # in C++ we need to declare it. In case someone uses the same compiler
2734 # for both compiling C and C++ we need to have the C++ compiler decide
2735 # the declaration of exit, since it's the most demanding environment.
2736 cat >conftest.$ac_ext <<_ACEOF
2737 #ifndef __cplusplus
2738 choke me
2739 #endif
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration in \
2754 ''\
2755 '#include <stdlib.h>' \
2756 'extern "C" void std::exit (int) throw (); using std::exit;' \
2757 'extern "C" void std::exit (int); using std::exit;' \
2758 'extern "C" void exit (int) throw ();' \
2759 'extern "C" void exit (int);' \
2760 'void exit (int);'
2761 do
2762 cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 #include "confdefs.h"
2765 #include <stdlib.h>
2766 $ac_declaration
2767 #ifdef F77_DUMMY_MAIN
2768 # ifdef __cplusplus
2769 extern "C"
2770 # endif
2771 int F77_DUMMY_MAIN() { return 1; }
2772 #endif
2773 int
2774 main ()
2775 {
2776 exit (42);
2777 ;
2778 return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 :
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 continue
2798 fi
2799 rm -f conftest.$ac_objext conftest.$ac_ext
2800 cat >conftest.$ac_ext <<_ACEOF
2801 #line $LINENO "configure"
2802 #include "confdefs.h"
2803 $ac_declaration
2804 #ifdef F77_DUMMY_MAIN
2805 # ifdef __cplusplus
2806 extern "C"
2807 # endif
2808 int F77_DUMMY_MAIN() { return 1; }
2809 #endif
2810 int
2811 main ()
2812 {
2813 exit (42);
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 break
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 fi
2835 rm -f conftest.$ac_objext conftest.$ac_ext
2836 done
2837 rm -f conftest*
2838 if test -n "$ac_declaration"; then
2839 echo '#ifdef __cplusplus' >>confdefs.h
2840 echo $ac_declaration >>confdefs.h
2841 echo '#endif' >>confdefs.h
2842 fi
2843
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 fi
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854
2855 ac_ext=c
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2861 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2862 # On Suns, sometimes $CPP names a directory.
2863 if test -n "$CPP" && test -d "$CPP"; then
2864 CPP=
2865 fi
2866 if test -z "$CPP"; then
2867 if test "${ac_cv_prog_CPP+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 # Double quotes because CPP needs to be expanded
2871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2872 do
2873 ac_preproc_ok=false
2874 for ac_c_preproc_warn_flag in '' yes
2875 do
2876 # Use a header file that comes with gcc, so configuring glibc
2877 # with a fresh cross-compiler works.
2878 # On the NeXT, cc -E runs the code through the compiler's parser,
2879 # not just through cpp. "Syntax error" is here to catch this case.
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 #include "confdefs.h"
2883 #include <assert.h>
2884 Syntax error
2885 _ACEOF
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 ac_status=$?
2889 egrep -v '^ *\+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_c_preproc_warn_flag
2896 else
2897 ac_cpp_err=
2898 fi
2899 else
2900 ac_cpp_err=yes
2901 fi
2902 if test -z "$ac_cpp_err"; then
2903 :
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 # Broken: fails on valid input.
2908 continue
2909 fi
2910 rm -f conftest.err conftest.$ac_ext
2911
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
2914 cat >conftest.$ac_ext <<_ACEOF
2915 #line $LINENO "configure"
2916 #include "confdefs.h"
2917 #include <ac_nonexistent.h>
2918 _ACEOF
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921 ac_status=$?
2922 egrep -v '^ *\+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 else
2930 ac_cpp_err=
2931 fi
2932 else
2933 ac_cpp_err=yes
2934 fi
2935 if test -z "$ac_cpp_err"; then
2936 # Broken: success on invalid input.
2937 continue
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2941 # Passes both tests.
2942 ac_preproc_ok=:
2943 break
2944 fi
2945 rm -f conftest.err conftest.$ac_ext
2946
2947 done
2948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2949 rm -f conftest.err conftest.$ac_ext
2950 if $ac_preproc_ok; then
2951 break
2952 fi
2953
2954 done
2955 ac_cv_prog_CPP=$CPP
2956
2957 fi
2958 CPP=$ac_cv_prog_CPP
2959 else
2960 ac_cv_prog_CPP=$CPP
2961 fi
2962 echo "$as_me:$LINENO: result: $CPP" >&5
2963 echo "${ECHO_T}$CPP" >&6
2964 ac_preproc_ok=false
2965 for ac_c_preproc_warn_flag in '' yes
2966 do
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # On the NeXT, cc -E runs the code through the compiler's parser,
2970 # not just through cpp. "Syntax error" is here to catch this case.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #line $LINENO "configure"
2973 #include "confdefs.h"
2974 #include <assert.h>
2975 Syntax error
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 ac_status=$?
2980 egrep -v '^ *\+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2987 else
2988 ac_cpp_err=
2989 fi
2990 else
2991 ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994 :
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2998 # Broken: fails on valid input.
2999 continue
3000 fi
3001 rm -f conftest.err conftest.$ac_ext
3002
3003 # OK, works on sane cases. Now check whether non-existent headers
3004 # can be detected and how.
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 #include "confdefs.h"
3008 #include <ac_nonexistent.h>
3009 _ACEOF
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012 ac_status=$?
3013 egrep -v '^ *\+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3020 else
3021 ac_cpp_err=
3022 fi
3023 else
3024 ac_cpp_err=yes
3025 fi
3026 if test -z "$ac_cpp_err"; then
3027 # Broken: success on invalid input.
3028 continue
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3032 # Passes both tests.
3033 ac_preproc_ok=:
3034 break
3035 fi
3036 rm -f conftest.err conftest.$ac_ext
3037
3038 done
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err conftest.$ac_ext
3041 if $ac_preproc_ok; then
3042 :
3043 else
3044 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3046 { (exit 1); exit 1; }; }
3047 fi
3048
3049 ac_ext=c
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054
3055 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3056 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3057 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3058 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 cat >conftest.make <<\_ACEOF
3062 all:
3063 @echo 'ac_maketemp="${MAKE}"'
3064 _ACEOF
3065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3066 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3067 if test -n "$ac_maketemp"; then
3068 eval ac_cv_prog_make_${ac_make}_set=yes
3069 else
3070 eval ac_cv_prog_make_${ac_make}_set=no
3071 fi
3072 rm -f conftest.make
3073 fi
3074 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 SET_MAKE=
3078 else
3079 echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3081 SET_MAKE="MAKE=${MAKE-make}"
3082 fi
3083
3084
3085
3086 ac_config_headers="$ac_config_headers config.h"
3087
3088
3089
3090
3091
3092
3093
3094 ac_header_dirent=no
3095 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3096 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3097 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3098 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 #include "confdefs.h"
3105 #include <sys/types.h>
3106 #include <$ac_hdr>
3107
3108 #ifdef F77_DUMMY_MAIN
3109 # ifdef __cplusplus
3110 extern "C"
3111 # endif
3112 int F77_DUMMY_MAIN() { return 1; }
3113 #endif
3114 int
3115 main ()
3116 {
3117 if ((DIR *) 0)
3118 return 0;
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 eval "$as_ac_Header=yes"
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 eval "$as_ac_Header=no"
3140 fi
3141 rm -f conftest.$ac_objext conftest.$ac_ext
3142 fi
3143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3146 cat >>confdefs.h <<_ACEOF
3147 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3148 _ACEOF
3149
3150 ac_header_dirent=$ac_hdr; break
3151 fi
3152
3153 done
3154 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3155 if test $ac_header_dirent = dirent.h; then
3156 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3158 if test "${ac_cv_search_opendir+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 ac_func_search_save_LIBS=$LIBS
3162 ac_cv_search_opendir=no
3163 cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
3165 #include "confdefs.h"
3166
3167 /* Override any gcc2 internal prototype to avoid an error. */
3168 #ifdef __cplusplus
3169 extern "C"
3170 #endif
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3173 char opendir ();
3174 #ifdef F77_DUMMY_MAIN
3175 # ifdef __cplusplus
3176 extern "C"
3177 # endif
3178 int F77_DUMMY_MAIN() { return 1; }
3179 #endif
3180 int
3181 main ()
3182 {
3183 opendir ();
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 rm -f conftest.$ac_objext conftest$ac_exeext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3190 (eval $ac_link) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -s conftest$ac_exeext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_search_opendir="none required"
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3204 fi
3205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3206 if test "$ac_cv_search_opendir" = no; then
3207 for ac_lib in dir; do
3208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3209 cat >conftest.$ac_ext <<_ACEOF
3210 #line $LINENO "configure"
3211 #include "confdefs.h"
3212
3213 /* Override any gcc2 internal prototype to avoid an error. */
3214 #ifdef __cplusplus
3215 extern "C"
3216 #endif
3217 /* We use char because int might match the return type of a gcc2
3218 builtin and then its argument prototype would still apply. */
3219 char opendir ();
3220 #ifdef F77_DUMMY_MAIN
3221 # ifdef __cplusplus
3222 extern "C"
3223 # endif
3224 int F77_DUMMY_MAIN() { return 1; }
3225 #endif
3226 int
3227 main ()
3228 {
3229 opendir ();
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext conftest$ac_exeext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236 (eval $ac_link) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_search_opendir="-l$ac_lib"
3247 break
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 fi
3252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3253 done
3254 fi
3255 LIBS=$ac_func_search_save_LIBS
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3258 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3259 if test "$ac_cv_search_opendir" != no; then
3260 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3261
3262 fi
3263
3264 else
3265 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3266 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3267 if test "${ac_cv_search_opendir+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 ac_func_search_save_LIBS=$LIBS
3271 ac_cv_search_opendir=no
3272 cat >conftest.$ac_ext <<_ACEOF
3273 #line $LINENO "configure"
3274 #include "confdefs.h"
3275
3276 /* Override any gcc2 internal prototype to avoid an error. */
3277 #ifdef __cplusplus
3278 extern "C"
3279 #endif
3280 /* We use char because int might match the return type of a gcc2
3281 builtin and then its argument prototype would still apply. */
3282 char opendir ();
3283 #ifdef F77_DUMMY_MAIN
3284 # ifdef __cplusplus
3285 extern "C"
3286 # endif
3287 int F77_DUMMY_MAIN() { return 1; }
3288 #endif
3289 int
3290 main ()
3291 {
3292 opendir ();
3293 ;
3294 return 0;
3295 }
3296 _ACEOF
3297 rm -f conftest.$ac_objext conftest$ac_exeext
3298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3299 (eval $ac_link) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -s conftest$ac_exeext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_search_opendir="none required"
3310 else
3311 echo "$as_me: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3313 fi
3314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315 if test "$ac_cv_search_opendir" = no; then
3316 for ac_lib in x; do
3317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3318 cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 #include "confdefs.h"
3321
3322 /* Override any gcc2 internal prototype to avoid an error. */
3323 #ifdef __cplusplus
3324 extern "C"
3325 #endif
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3328 char opendir ();
3329 #ifdef F77_DUMMY_MAIN
3330 # ifdef __cplusplus
3331 extern "C"
3332 # endif
3333 int F77_DUMMY_MAIN() { return 1; }
3334 #endif
3335 int
3336 main ()
3337 {
3338 opendir ();
3339 ;
3340 return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.$ac_objext conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -s conftest$ac_exeext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_search_opendir="-l$ac_lib"
3356 break
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3360 fi
3361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3362 done
3363 fi
3364 LIBS=$ac_func_search_save_LIBS
3365 fi
3366 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3367 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3368 if test "$ac_cv_search_opendir" != no; then
3369 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3370
3371 fi
3372
3373 fi
3374
3375
3376 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3377 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3378 if test "${ac_cv_header_stdc+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 cat >conftest.$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3383 #include "confdefs.h"
3384 #include <stdlib.h>
3385 #include <stdarg.h>
3386 #include <string.h>
3387 #include <float.h>
3388
3389 _ACEOF
3390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3392 ac_status=$?
3393 egrep -v '^ *\+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3400 else
3401 ac_cpp_err=
3402 fi
3403 else
3404 ac_cpp_err=yes
3405 fi
3406 if test -z "$ac_cpp_err"; then
3407 ac_cv_header_stdc=yes
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 ac_cv_header_stdc=no
3412 fi
3413 rm -f conftest.err conftest.$ac_ext
3414
3415 if test $ac_cv_header_stdc = yes; then
3416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3417 cat >conftest.$ac_ext <<_ACEOF
3418 #line $LINENO "configure"
3419 #include "confdefs.h"
3420 #include <string.h>
3421
3422 _ACEOF
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 egrep "memchr" >/dev/null 2>&1; then
3425 :
3426 else
3427 ac_cv_header_stdc=no
3428 fi
3429 rm -f conftest*
3430
3431 fi
3432
3433 if test $ac_cv_header_stdc = yes; then
3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435 cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 #include "confdefs.h"
3438 #include <stdlib.h>
3439
3440 _ACEOF
3441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442 egrep "free" >/dev/null 2>&1; then
3443 :
3444 else
3445 ac_cv_header_stdc=no
3446 fi
3447 rm -f conftest*
3448
3449 fi
3450
3451 if test $ac_cv_header_stdc = yes; then
3452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3453 if test "$cross_compiling" = yes; then
3454 :
3455 else
3456 cat >conftest.$ac_ext <<_ACEOF
3457 #line $LINENO "configure"
3458 #include "confdefs.h"
3459 #include <ctype.h>
3460 #if ((' ' & 0x0FF) == 0x020)
3461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3463 #else
3464 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3465 || ('j' <= (c) && (c) <= 'r') \
3466 || ('s' <= (c) && (c) <= 'z'))
3467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3468 #endif
3469
3470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3471 int
3472 main ()
3473 {
3474 int i;
3475 for (i = 0; i < 256; i++)
3476 if (XOR (islower (i), ISLOWER (i))
3477 || toupper (i) != TOUPPER (i))
3478 exit(2);
3479 exit (0);
3480 }
3481 _ACEOF
3482 rm -f conftest$ac_exeext
3483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3484 (eval $ac_link) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3493 :
3494 else
3495 echo "$as_me: program exited with status $ac_status" >&5
3496 echo "$as_me: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 ( exit $ac_status )
3499 ac_cv_header_stdc=no
3500 fi
3501 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3502 fi
3503 fi
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507 if test $ac_cv_header_stdc = yes; then
3508
3509 cat >>confdefs.h <<\_ACEOF
3510 #define STDC_HEADERS 1
3511 _ACEOF
3512
3513 fi
3514
3515 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3516 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3517 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 cat >conftest.$ac_ext <<_ACEOF
3521 #line $LINENO "configure"
3522 #include "confdefs.h"
3523 #include <sys/types.h>
3524 #include <sys/wait.h>
3525 #ifndef WEXITSTATUS
3526 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3527 #endif
3528 #ifndef WIFEXITED
3529 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3530 #endif
3531
3532 #ifdef F77_DUMMY_MAIN
3533 # ifdef __cplusplus
3534 extern "C"
3535 # endif
3536 int F77_DUMMY_MAIN() { return 1; }
3537 #endif
3538 int
3539 main ()
3540 {
3541 int s;
3542 wait (&s);
3543 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 rm -f conftest.$ac_objext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 ac_cv_header_sys_wait_h=yes
3561 else
3562 echo "$as_me: failed program was:" >&5
3563 cat conftest.$ac_ext >&5
3564 ac_cv_header_sys_wait_h=no
3565 fi
3566 rm -f conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3569 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3570 if test $ac_cv_header_sys_wait_h = yes; then
3571
3572 cat >>confdefs.h <<\_ACEOF
3573 #define HAVE_SYS_WAIT_H 1
3574 _ACEOF
3575
3576 fi
3577
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589 inttypes.h stdint.h unistd.h
3590 do
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3599 #include "confdefs.h"
3600 $ac_includes_default
3601
3602 #include <$ac_header>
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 eval "$as_ac_Header=yes"
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 eval "$as_ac_Header=no"
3621 fi
3622 rm -f conftest.$ac_objext conftest.$ac_ext
3623 fi
3624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3627 cat >>confdefs.h <<_ACEOF
3628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3629 _ACEOF
3630
3631 fi
3632
3633 done
3634
3635
3636
3637
3638
3639
3640
3641 for ac_header in fcntl.h sys/fcntl.h limits.h sys/time.h sys/select.h
3642 do
3643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645 echo "$as_me:$LINENO: checking for $ac_header" >&5
3646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 fi
3650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3652 else
3653 # Is the header compilable?
3654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3656 cat >conftest.$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3658 #include "confdefs.h"
3659 $ac_includes_default
3660 #include <$ac_header>
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_header_compiler=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 ac_header_compiler=no
3679 fi
3680 rm -f conftest.$ac_objext conftest.$ac_ext
3681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3682 echo "${ECHO_T}$ac_header_compiler" >&6
3683
3684 # Is the header present?
3685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3687 cat >conftest.$ac_ext <<_ACEOF
3688 #line $LINENO "configure"
3689 #include "confdefs.h"
3690 #include <$ac_header>
3691 _ACEOF
3692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3694 ac_status=$?
3695 egrep -v '^ *\+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null; then
3700 if test -s conftest.err; then
3701 ac_cpp_err=$ac_c_preproc_warn_flag
3702 else
3703 ac_cpp_err=
3704 fi
3705 else
3706 ac_cpp_err=yes
3707 fi
3708 if test -z "$ac_cpp_err"; then
3709 ac_header_preproc=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3713 ac_header_preproc=no
3714 fi
3715 rm -f conftest.err conftest.$ac_ext
3716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3717 echo "${ECHO_T}$ac_header_preproc" >&6
3718
3719 # So? What about this header?
3720 case $ac_header_compiler:$ac_header_preproc in
3721 yes:no )
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3726 no:yes )
3727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3733 esac
3734 echo "$as_me:$LINENO: checking for $ac_header" >&5
3735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 eval "$as_ac_Header=$ac_header_preproc"
3740 fi
3741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3743
3744 fi
3745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3746 cat >>confdefs.h <<_ACEOF
3747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3748 _ACEOF
3749
3750 fi
3751
3752 done
3753
3754
3755 for ac_header in getopt.h
3756 do
3757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3759 echo "$as_me:$LINENO: checking for $ac_header" >&5
3760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 fi
3764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3766 else
3767 # Is the header compilable?
3768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3771 #line $LINENO "configure"
3772 #include "confdefs.h"
3773 $ac_includes_default
3774 #include <$ac_header>
3775 _ACEOF
3776 rm -f conftest.$ac_objext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_header_compiler=yes
3789 else
3790 echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 ac_header_compiler=no
3793 fi
3794 rm -f conftest.$ac_objext conftest.$ac_ext
3795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3796 echo "${ECHO_T}$ac_header_compiler" >&6
3797
3798 # Is the header present?
3799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 #include "confdefs.h"
3804 #include <$ac_header>
3805 _ACEOF
3806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3808 ac_status=$?
3809 egrep -v '^ *\+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } >/dev/null; then
3814 if test -s conftest.err; then
3815 ac_cpp_err=$ac_c_preproc_warn_flag
3816 else
3817 ac_cpp_err=
3818 fi
3819 else
3820 ac_cpp_err=yes
3821 fi
3822 if test -z "$ac_cpp_err"; then
3823 ac_header_preproc=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 ac_header_preproc=no
3828 fi
3829 rm -f conftest.err conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3831 echo "${ECHO_T}$ac_header_preproc" >&6
3832
3833 # So? What about this header?
3834 case $ac_header_compiler:$ac_header_preproc in
3835 yes:no )
3836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3840 no:yes )
3841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3847 esac
3848 echo "$as_me:$LINENO: checking for $ac_header" >&5
3849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 eval "$as_ac_Header=$ac_header_preproc"
3854 fi
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3857
3858 fi
3859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3860 cat >>confdefs.h <<_ACEOF
3861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3862 _ACEOF
3863
3864 fi
3865
3866 done
3867
3868
3869 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3870 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3871 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 ac_cv_prog_cc_stdc=no
3875 ac_save_CC=$CC
3876 cat >conftest.$ac_ext <<_ACEOF
3877 #line $LINENO "configure"
3878 #include "confdefs.h"
3879 #include <stdarg.h>
3880 #include <stdio.h>
3881 #include <sys/types.h>
3882 #include <sys/stat.h>
3883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3884 struct buf { int x; };
3885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3886 static char *e (p, i)
3887 char **p;
3888 int i;
3889 {
3890 return p[i];
3891 }
3892 static char *f (char * (*g) (char **, int), char **p, ...)
3893 {
3894 char *s;
3895 va_list v;
3896 va_start (v,p);
3897 s = g (p, va_arg (v,int));
3898 va_end (v);
3899 return s;
3900 }
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 int argc;
3906 char **argv;
3907 #ifdef F77_DUMMY_MAIN
3908 # ifdef __cplusplus
3909 extern "C"
3910 # endif
3911 int F77_DUMMY_MAIN() { return 1; }
3912 #endif
3913 int
3914 main ()
3915 {
3916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 # Don't try gcc -ansi; that turns off useful extensions and
3922 # breaks some systems' header files.
3923 # AIX -qlanglvl=ansi
3924 # Ultrix and OSF/1 -std1
3925 # HP-UX 10.20 and later -Ae
3926 # HP-UX older versions -Aa -D_HPUX_SOURCE
3927 # SVR4 -Xc -D__EXTENSIONS__
3928 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929 do
3930 CC="$ac_save_CC $ac_arg"
3931 rm -f conftest.$ac_objext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_prog_cc_stdc=$ac_arg
3944 break
3945 else
3946 echo "$as_me: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3948 fi
3949 rm -f conftest.$ac_objext
3950 done
3951 rm -f conftest.$ac_ext conftest.$ac_objext
3952 CC=$ac_save_CC
3953
3954 fi
3955
3956 case "x$ac_cv_prog_cc_stdc" in
3957 x|xno)
3958 echo "$as_me:$LINENO: result: none needed" >&5
3959 echo "${ECHO_T}none needed" >&6 ;;
3960 *)
3961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3963 CC="$CC $ac_cv_prog_cc_stdc" ;;
3964 esac
3965
3966 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3967 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3968 if test "${ac_cv_c_const+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #line $LINENO "configure"
3973 #include "confdefs.h"
3974
3975 #ifdef F77_DUMMY_MAIN
3976 # ifdef __cplusplus
3977 extern "C"
3978 # endif
3979 int F77_DUMMY_MAIN() { return 1; }
3980 #endif
3981 int
3982 main ()
3983 {
3984 /* FIXME: Include the comments suggested by Paul. */
3985 #ifndef __cplusplus
3986 /* Ultrix mips cc rejects this. */
3987 typedef int charset[2];
3988 const charset x;
3989 /* SunOS 4.1.1 cc rejects this. */
3990 char const *const *ccp;
3991 char **p;
3992 /* NEC SVR4.0.2 mips cc rejects this. */
3993 struct point {int x, y;};
3994 static struct point const zero = {0,0};
3995 /* AIX XL C 1.02.0.0 rejects this.
3996 It does not let you subtract one const X* pointer from another in
3997 an arm of an if-expression whose if-part is not a constant
3998 expression */
3999 const char *g = "string";
4000 ccp = &g + (g ? g-g : 0);
4001 /* HPUX 7.0 cc rejects these. */
4002 ++ccp;
4003 p = (char**) ccp;
4004 ccp = (char const *const *) p;
4005 { /* SCO 3.2v4 cc rejects this. */
4006 char *t;
4007 char const *s = 0 ? (char *) 0 : (char const *) 0;
4008
4009 *t++ = 0;
4010 }
4011 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4012 int x[] = {25, 17};
4013 const int *foo = &x[0];
4014 ++foo;
4015 }
4016 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4017 typedef const int *iptr;
4018 iptr p = 0;
4019 ++p;
4020 }
4021 { /* AIX XL C 1.02.0.0 rejects this saying
4022 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4023 struct s { int j; const int *ap[3]; };
4024 struct s *b; b->j = 5;
4025 }
4026 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4027 const int foo = 10;
4028 }
4029 #endif
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_cv_c_const=yes
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 ac_cv_c_const=no
4052 fi
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4056 echo "${ECHO_T}$ac_cv_c_const" >&6
4057 if test $ac_cv_c_const = no; then
4058
4059 cat >>confdefs.h <<\_ACEOF
4060 #define const
4061 _ACEOF
4062
4063 fi
4064
4065 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4066 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4067 if test "${ac_cv_type_uid_t+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4072 #include "confdefs.h"
4073 #include <sys/types.h>
4074
4075 _ACEOF
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 egrep "uid_t" >/dev/null 2>&1; then
4078 ac_cv_type_uid_t=yes
4079 else
4080 ac_cv_type_uid_t=no
4081 fi
4082 rm -f conftest*
4083
4084 fi
4085 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4086 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4087 if test $ac_cv_type_uid_t = no; then
4088
4089 cat >>confdefs.h <<\_ACEOF
4090 #define uid_t int
4091 _ACEOF
4092
4093
4094 cat >>confdefs.h <<\_ACEOF
4095 #define gid_t int
4096 _ACEOF
4097
4098 fi
4099
4100 echo "$as_me:$LINENO: checking for pid_t" >&5
4101 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4102 if test "${ac_cv_type_pid_t+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 cat >conftest.$ac_ext <<_ACEOF
4106 #line $LINENO "configure"
4107 #include "confdefs.h"
4108 $ac_includes_default
4109 #ifdef F77_DUMMY_MAIN
4110 # ifdef __cplusplus
4111 extern "C"
4112 # endif
4113 int F77_DUMMY_MAIN() { return 1; }
4114 #endif
4115 int
4116 main ()
4117 {
4118 if ((pid_t *) 0)
4119 return 0;
4120 if (sizeof (pid_t))
4121 return 0;
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -s conftest.$ac_objext'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 ac_cv_type_pid_t=yes
4139 else
4140 echo "$as_me: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4142 ac_cv_type_pid_t=no
4143 fi
4144 rm -f conftest.$ac_objext conftest.$ac_ext
4145 fi
4146 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4147 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4148 if test $ac_cv_type_pid_t = yes; then
4149 :
4150 else
4151
4152 cat >>confdefs.h <<_ACEOF
4153 #define pid_t int
4154 _ACEOF
4155
4156 fi
4157
4158 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4159 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4160 if test "${ac_cv_header_time+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 cat >conftest.$ac_ext <<_ACEOF
4164 #line $LINENO "configure"
4165 #include "confdefs.h"
4166 #include <sys/types.h>
4167 #include <sys/time.h>
4168 #include <time.h>
4169
4170 #ifdef F77_DUMMY_MAIN
4171 # ifdef __cplusplus
4172 extern "C"
4173 # endif
4174 int F77_DUMMY_MAIN() { return 1; }
4175 #endif
4176 int
4177 main ()
4178 {
4179 if ((struct tm *) 0)
4180 return 0;
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest.$ac_objext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_header_time=yes
4198 else
4199 echo "$as_me: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 ac_cv_header_time=no
4202 fi
4203 rm -f conftest.$ac_objext conftest.$ac_ext
4204 fi
4205 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4206 echo "${ECHO_T}$ac_cv_header_time" >&6
4207 if test $ac_cv_header_time = yes; then
4208
4209 cat >>confdefs.h <<\_ACEOF
4210 #define TIME_WITH_SYS_TIME 1
4211 _ACEOF
4212
4213 fi
4214
4215
4216 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
4217 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
4218 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test "$cross_compiling" = yes; then
4222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4223 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4224 { (exit 1); exit 1; }; }
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4228 #include "confdefs.h"
4229 #include <stdio.h>
4230 /* If setvbuf has the reversed format, exit 0. */
4231 int
4232 main ()
4233 {
4234 /* This call has the arguments reversed.
4235 A reversed system may check and see that the address of main
4236 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
4237 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
4238 exit(1);
4239 putc('\r', stdout);
4240 exit(0); /* Non-reversed systems segv here. */
4241 }
4242 _ACEOF
4243 rm -f conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 ac_cv_func_setvbuf_reversed=yes
4255 else
4256 echo "$as_me: program exited with status $ac_status" >&5
4257 echo "$as_me: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4259 ( exit $ac_status )
4260 ac_cv_func_setvbuf_reversed=no
4261 fi
4262 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 fi
4264 rm -f core core.* *.core
4265 fi
4266 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
4267 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
4268 if test $ac_cv_func_setvbuf_reversed = yes; then
4269
4270 cat >>confdefs.h <<\_ACEOF
4271 #define SETVBUF_REVERSED 1
4272 _ACEOF
4273
4274 fi
4275
4276
4277
4278 for ac_header in stdlib.h unistd.h
4279 do
4280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4282 echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 fi
4287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4289 else
4290 # Is the header compilable?
4291 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4296 $ac_includes_default
4297 #include <$ac_header>
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_header_compiler=yes
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4315 ac_header_compiler=no
4316 fi
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4319 echo "${ECHO_T}$ac_header_compiler" >&6
4320
4321 # Is the header present?
4322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4325 #line $LINENO "configure"
4326 #include "confdefs.h"
4327 #include <$ac_header>
4328 _ACEOF
4329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4331 ac_status=$?
4332 egrep -v '^ *\+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } >/dev/null; then
4337 if test -s conftest.err; then
4338 ac_cpp_err=$ac_c_preproc_warn_flag
4339 else
4340 ac_cpp_err=
4341 fi
4342 else
4343 ac_cpp_err=yes
4344 fi
4345 if test -z "$ac_cpp_err"; then
4346 ac_header_preproc=yes
4347 else
4348 echo "$as_me: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 ac_header_preproc=no
4351 fi
4352 rm -f conftest.err conftest.$ac_ext
4353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4354 echo "${ECHO_T}$ac_header_preproc" >&6
4355
4356 # So? What about this header?
4357 case $ac_header_compiler:$ac_header_preproc in
4358 yes:no )
4359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4363 no:yes )
4364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4370 esac
4371 echo "$as_me:$LINENO: checking for $ac_header" >&5
4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 eval "$as_ac_Header=$ac_header_preproc"
4377 fi
4378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4380
4381 fi
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h <<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385 _ACEOF
4386
4387 fi
4388
4389 done
4390
4391
4392 for ac_func in getpagesize
4393 do
4394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4395 echo "$as_me:$LINENO: checking for $ac_func" >&5
4396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_var+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 cat >conftest.$ac_ext <<_ACEOF
4401 #line $LINENO "configure"
4402 #include "confdefs.h"
4403 /* System header to define __stub macros and hopefully few prototypes,
4404 which can conflict with char $ac_func (); below. */
4405 #include <assert.h>
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 #ifdef __cplusplus
4408 extern "C"
4409 #endif
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4412 char $ac_func ();
4413 char (*f) ();
4414
4415 #ifdef F77_DUMMY_MAIN
4416 # ifdef __cplusplus
4417 extern "C"
4418 # endif
4419 int F77_DUMMY_MAIN() { return 1; }
4420 #endif
4421 int
4422 main ()
4423 {
4424 /* The GNU C library defines this for functions which it implements
4425 to always fail with ENOSYS. Some functions are actually named
4426 something starting with __ and the normal name is an alias. */
4427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4428 choke me
4429 #else
4430 f = $ac_func;
4431 #endif
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 rm -f conftest.$ac_objext conftest$ac_exeext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4439 (eval $ac_link) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 eval "$as_ac_var=yes"
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4453 eval "$as_ac_var=no"
4454 fi
4455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4456 fi
4457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4459 if test `eval echo '${'$as_ac_var'}'` = yes; then
4460 cat >>confdefs.h <<_ACEOF
4461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4462 _ACEOF
4463
4464 fi
4465 done
4466
4467 echo "$as_me:$LINENO: checking for working mmap" >&5
4468 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4469 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test "$cross_compiling" = yes; then
4473 ac_cv_func_mmap_fixed_mapped=no
4474 else
4475 cat >conftest.$ac_ext <<_ACEOF
4476 #line $LINENO "configure"
4477 #include "confdefs.h"
4478 $ac_includes_default
4479 /* malloc might have been renamed as rpl_malloc. */
4480 #undef malloc
4481
4482 /* Thanks to Mike Haertel and Jim Avera for this test.
4483 Here is a matrix of mmap possibilities:
4484 mmap private not fixed
4485 mmap private fixed at somewhere currently unmapped
4486 mmap private fixed at somewhere already mapped
4487 mmap shared not fixed
4488 mmap shared fixed at somewhere currently unmapped
4489 mmap shared fixed at somewhere already mapped
4490 For private mappings, we should verify that changes cannot be read()
4491 back from the file, nor mmap's back from the file at a different
4492 address. (There have been systems where private was not correctly
4493 implemented like the infamous i386 svr4.0, and systems where the
4494 VM page cache was not coherent with the file system buffer cache
4495 like early versions of FreeBSD and possibly contemporary NetBSD.)
4496 For shared mappings, we should conversely verify that changes get
4497 propagated back to all the places they're supposed to be.
4498
4499 Grep wants private fixed already mapped.
4500 The main things grep needs to know about mmap are:
4501 * does it exist and is it safe to write into the mmap'd area
4502 * how to use it (BSD variants) */
4503
4504 #include <fcntl.h>
4505 #include <sys/mman.h>
4506
4507 #if !STDC_HEADERS && !HAVE_STDLIB_H
4508 char *malloc ();
4509 #endif
4510
4511 /* This mess was copied from the GNU getpagesize.h. */
4512 #if !HAVE_GETPAGESIZE
4513 /* Assume that all systems that can run configure have sys/param.h. */
4514 # if !HAVE_SYS_PARAM_H
4515 # define HAVE_SYS_PARAM_H 1
4516 # endif
4517
4518 # ifdef _SC_PAGESIZE
4519 # define getpagesize() sysconf(_SC_PAGESIZE)
4520 # else /* no _SC_PAGESIZE */
4521 # if HAVE_SYS_PARAM_H
4522 # include <sys/param.h>
4523 # ifdef EXEC_PAGESIZE
4524 # define getpagesize() EXEC_PAGESIZE
4525 # else /* no EXEC_PAGESIZE */
4526 # ifdef NBPG
4527 # define getpagesize() NBPG * CLSIZE
4528 # ifndef CLSIZE
4529 # define CLSIZE 1
4530 # endif /* no CLSIZE */
4531 # else /* no NBPG */
4532 # ifdef NBPC
4533 # define getpagesize() NBPC
4534 # else /* no NBPC */
4535 # ifdef PAGESIZE
4536 # define getpagesize() PAGESIZE
4537 # endif /* PAGESIZE */
4538 # endif /* no NBPC */
4539 # endif /* no NBPG */
4540 # endif /* no EXEC_PAGESIZE */
4541 # else /* no HAVE_SYS_PARAM_H */
4542 # define getpagesize() 8192 /* punt totally */
4543 # endif /* no HAVE_SYS_PARAM_H */
4544 # endif /* no _SC_PAGESIZE */
4545
4546 #endif /* no HAVE_GETPAGESIZE */
4547
4548 int
4549 main ()
4550 {
4551 char *data, *data2, *data3;
4552 int i, pagesize;
4553 int fd;
4554
4555 pagesize = getpagesize ();
4556
4557 /* First, make a file with some known garbage in it. */
4558 data = (char *) malloc (pagesize);
4559 if (!data)
4560 exit (1);
4561 for (i = 0; i < pagesize; ++i)
4562 *(data + i) = rand ();
4563 umask (0);
4564 fd = creat ("conftest.mmap", 0600);
4565 if (fd < 0)
4566 exit (1);
4567 if (write (fd, data, pagesize) != pagesize)
4568 exit (1);
4569 close (fd);
4570
4571 /* Next, try to mmap the file at a fixed address which already has
4572 something else allocated at it. If we can, also make sure that
4573 we see the same garbage. */
4574 fd = open ("conftest.mmap", O_RDWR);
4575 if (fd < 0)
4576 exit (1);
4577 data2 = (char *) malloc (2 * pagesize);
4578 if (!data2)
4579 exit (1);
4580 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4581 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4582 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4583 exit (1);
4584 for (i = 0; i < pagesize; ++i)
4585 if (*(data + i) != *(data2 + i))
4586 exit (1);
4587
4588 /* Finally, make sure that changes to the mapped area do not
4589 percolate back to the file as seen by read(). (This is a bug on
4590 some variants of i386 svr4.0.) */
4591 for (i = 0; i < pagesize; ++i)
4592 *(data2 + i) = *(data2 + i) + 1;
4593 data3 = (char *) malloc (pagesize);
4594 if (!data3)
4595 exit (1);
4596 if (read (fd, data3, pagesize) != pagesize)
4597 exit (1);
4598 for (i = 0; i < pagesize; ++i)
4599 if (*(data + i) != *(data3 + i))
4600 exit (1);
4601 close (fd);
4602 exit (0);
4603 }
4604 _ACEOF
4605 rm -f conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_func_mmap_fixed_mapped=yes
4617 else
4618 echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 ( exit $ac_status )
4622 ac_cv_func_mmap_fixed_mapped=no
4623 fi
4624 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4625 fi
4626 fi
4627 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4628 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4629 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4630
4631 cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_MMAP 1
4633 _ACEOF
4634
4635 fi
4636 rm -f conftest.mmap
4637
4638
4639
4640
4641 for ac_func in getcwd strdup strstr
4642 do
4643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4644 echo "$as_me:$LINENO: checking for $ac_func" >&5
4645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4646 if eval "test \"\${$as_ac_var+set}\" = set"; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 cat >conftest.$ac_ext <<_ACEOF
4650 #line $LINENO "configure"
4651 #include "confdefs.h"
4652 /* System header to define __stub macros and hopefully few prototypes,
4653 which can conflict with char $ac_func (); below. */
4654 #include <assert.h>
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 #ifdef __cplusplus
4657 extern "C"
4658 #endif
4659 /* We use char because int might match the return type of a gcc2
4660 builtin and then its argument prototype would still apply. */
4661 char $ac_func ();
4662 char (*f) ();
4663
4664 #ifdef F77_DUMMY_MAIN
4665 # ifdef __cplusplus
4666 extern "C"
4667 # endif
4668 int F77_DUMMY_MAIN() { return 1; }
4669 #endif
4670 int
4671 main ()
4672 {
4673 /* The GNU C library defines this for functions which it implements
4674 to always fail with ENOSYS. Some functions are actually named
4675 something starting with __ and the normal name is an alias. */
4676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4677 choke me
4678 #else
4679 f = $ac_func;
4680 #endif
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 rm -f conftest.$ac_objext conftest$ac_exeext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688 (eval $ac_link) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -s conftest$ac_exeext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 eval "$as_ac_var=yes"
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4702 eval "$as_ac_var=no"
4703 fi
4704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4705 fi
4706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4708 if test `eval echo '${'$as_ac_var'}'` = yes; then
4709 cat >>confdefs.h <<_ACEOF
4710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4711 _ACEOF
4712
4713 fi
4714 done
4715
4716
4717
4718
4719
4720
4721 for ac_func in gethostname gethostbyname select socket inet_aton
4722 do
4723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4724 echo "$as_me:$LINENO: checking for $ac_func" >&5
4725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4726 if eval "test \"\${$as_ac_var+set}\" = set"; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 cat >conftest.$ac_ext <<_ACEOF
4730 #line $LINENO "configure"
4731 #include "confdefs.h"
4732 /* System header to define __stub macros and hopefully few prototypes,
4733 which can conflict with char $ac_func (); below. */
4734 #include <assert.h>
4735 /* Override any gcc2 internal prototype to avoid an error. */
4736 #ifdef __cplusplus
4737 extern "C"
4738 #endif
4739 /* We use char because int might match the return type of a gcc2
4740 builtin and then its argument prototype would still apply. */
4741 char $ac_func ();
4742 char (*f) ();
4743
4744 #ifdef F77_DUMMY_MAIN
4745 # ifdef __cplusplus
4746 extern "C"
4747 # endif
4748 int F77_DUMMY_MAIN() { return 1; }
4749 #endif
4750 int
4751 main ()
4752 {
4753 /* The GNU C library defines this for functions which it implements
4754 to always fail with ENOSYS. Some functions are actually named
4755 something starting with __ and the normal name is an alias. */
4756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 choke me
4758 #else
4759 f = $ac_func;
4760 #endif
4761
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext conftest$ac_exeext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4768 (eval $ac_link) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 eval "$as_ac_var=yes"
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 eval "$as_ac_var=no"
4783 fi
4784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785 fi
4786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4788 if test `eval echo '${'$as_ac_var'}'` = yes; then
4789 cat >>confdefs.h <<_ACEOF
4790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4791 _ACEOF
4792
4793 fi
4794 done
4795
4796
4797
4798 for ac_func in scandir alphasort
4799 do
4800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4801 echo "$as_me:$LINENO: checking for $ac_func" >&5
4802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4803 if eval "test \"\${$as_ac_var+set}\" = set"; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 cat >conftest.$ac_ext <<_ACEOF
4807 #line $LINENO "configure"
4808 #include "confdefs.h"
4809 /* System header to define __stub macros and hopefully few prototypes,
4810 which can conflict with char $ac_func (); below. */
4811 #include <assert.h>
4812 /* Override any gcc2 internal prototype to avoid an error. */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */
4818 char $ac_func ();
4819 char (*f) ();
4820
4821 #ifdef F77_DUMMY_MAIN
4822 # ifdef __cplusplus
4823 extern "C"
4824 # endif
4825 int F77_DUMMY_MAIN() { return 1; }
4826 #endif
4827 int
4828 main ()
4829 {
4830 /* The GNU C library defines this for functions which it implements
4831 to always fail with ENOSYS. Some functions are actually named
4832 something starting with __ and the normal name is an alias. */
4833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4834 choke me
4835 #else
4836 f = $ac_func;
4837 #endif
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845 (eval $ac_link) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -s conftest$ac_exeext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 eval "$as_ac_var=yes"
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 eval "$as_ac_var=no"
4860 fi
4861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4862 fi
4863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4865 if test `eval echo '${'$as_ac_var'}'` = yes; then
4866 cat >>confdefs.h <<_ACEOF
4867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4868 _ACEOF
4869
4870 fi
4871 done
4872
4873
4874
4875 ac_safe_struct=`echo "tm" | sed 'y%./+-%__p_%'`
4876 ac_safe_member=`echo "tm_gmtoff" | sed 'y%./+-%__p_%'`
4877 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
4878 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4879
4880 echo "$as_me:$LINENO: checking for tm.tm_gmtoff" >&5
4881 echo $ECHO_N "checking for tm.tm_gmtoff... $ECHO_C" >&6
4882 if eval "test \"\${$ac_safe_all+set}\" = set"; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885
4886 if test "x" = "x"; then
4887 defineit="= 0"
4888 elif test "x" = "xno"; then
4889 defineit=""
4890 else
4891 defineit=""
4892 fi
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 #include "confdefs.h"
4896
4897
4898 #if TIME_WITH_SYS_TIME
4899 # include <sys/time.h>
4900 # include <time.h>
4901 #else
4902 # if HAVE_SYS_TIME_H
4903 # include <sys/time.h>
4904 # else
4905 # include <time.h>
4906 # endif
4907 #endif
4908
4909
4910 #ifdef F77_DUMMY_MAIN
4911 # ifdef __cplusplus
4912 extern "C"
4913 # endif
4914 int F77_DUMMY_MAIN() { return 1; }
4915 #endif
4916 int
4917 main ()
4918 {
4919
4920 struct tm testit;
4921 testit.tm_gmtoff $defineit;
4922
4923 ;
4924 return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929 (eval $ac_compile) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 eval "${ac_safe_all}=yes"
4940 else
4941 echo "$as_me: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4943 eval "${ac_safe_all}=no"
4944 fi
4945 rm -f conftest.$ac_objext conftest.$ac_ext
4946
4947 fi
4948
4949
4950 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
4951 echo "$as_me:$LINENO: result: yes" >&5
4952 echo "${ECHO_T}yes" >&6
4953 cat >>confdefs.h <<_ACEOF
4954 #define $ac_uc_define 1
4955 _ACEOF
4956
4957 else
4958 echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4960 fi
4961
4962
4963 if test "$ac_cv_struct_tm_has_tm_gmtoff" = "yes"; then
4964 cat >>confdefs.h <<\_ACEOF
4965 #define HAVE_TM_GMTOFF 1
4966 _ACEOF
4967
4968 fi
4969
4970
4971 ac_safe_struct=`echo "tm" | sed 'y%./+-%__p_%'`
4972 ac_safe_member=`echo "tm_zone" | sed 'y%./+-%__p_%'`
4973 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
4974 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4975
4976 echo "$as_me:$LINENO: checking for tm.tm_zone" >&5
4977 echo $ECHO_N "checking for tm.tm_zone... $ECHO_C" >&6
4978 if eval "test \"\${$ac_safe_all+set}\" = set"; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981
4982 if test "x" = "x"; then
4983 defineit="= 0"
4984 elif test "x" = "xno"; then
4985 defineit=""
4986 else
4987 defineit=""
4988 fi
4989 cat >conftest.$ac_ext <<_ACEOF
4990 #line $LINENO "configure"
4991 #include "confdefs.h"
4992
4993
4994
4995 #if TIME_WITH_SYS_TIME
4996 # include <sys/time.h>
4997 # include <time.h>
4998 #else
4999 # if HAVE_SYS_TIME_H
5000 # include <sys/time.h>
5001 # else
5002 # include <time.h>
5003 # endif
5004 #endif
5005
5006
5007 #ifdef F77_DUMMY_MAIN
5008 # ifdef __cplusplus
5009 extern "C"
5010 # endif
5011 int F77_DUMMY_MAIN() { return 1; }
5012 #endif
5013 int
5014 main ()
5015 {
5016
5017 struct tm testit;
5018 testit.tm_zone $defineit;
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 eval "${ac_safe_all}=yes"
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 cat conftest.$ac_ext >&5
5040 eval "${ac_safe_all}=no"
5041 fi
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5043
5044 fi
5045
5046
5047 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5048 echo "$as_me:$LINENO: result: yes" >&5
5049 echo "${ECHO_T}yes" >&6
5050 cat >>confdefs.h <<_ACEOF
5051 #define $ac_uc_define 1
5052 _ACEOF
5053
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5057 fi
5058
5059
5060 if test "$ac_cv_struct_tm_has_tm_zone" = "yes"; then
5061 cat >>confdefs.h <<\_ACEOF
5062 #define HAVE_TM_ZONE 1
5063 _ACEOF
5064
5065 fi
5066
5067
5068 ac_safe_struct=`echo "sockaddr_in" | sed 'y%./+-%__p_%'`
5069 ac_safe_member=`echo "sin_len" | sed 'y%./+-%__p_%'`
5070 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
5071 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5072
5073 echo "$as_me:$LINENO: checking for sockaddr_in.sin_len" >&5
5074 echo $ECHO_N "checking for sockaddr_in.sin_len... $ECHO_C" >&6
5075 if eval "test \"\${$ac_safe_all+set}\" = set"; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078
5079 if test "x" = "x"; then
5080 defineit="= 0"
5081 elif test "x" = "xno"; then
5082 defineit=""
5083 else
5084 defineit=""
5085 fi
5086 cat >conftest.$ac_ext <<_ACEOF
5087 #line $LINENO "configure"
5088 #include "confdefs.h"
5089
5090
5091 #include <sys/types.h>
5092 #include <netinet/in.h>
5093
5094
5095 #ifdef F77_DUMMY_MAIN
5096 # ifdef __cplusplus
5097 extern "C"
5098 # endif
5099 int F77_DUMMY_MAIN() { return 1; }
5100 #endif
5101 int
5102 main ()
5103 {
5104
5105 struct sockaddr_in testit;
5106 testit.sin_len $defineit;
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 rm -f conftest.$ac_objext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114 (eval $ac_compile) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 eval "${ac_safe_all}=yes"
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5128 eval "${ac_safe_all}=no"
5129 fi
5130 rm -f conftest.$ac_objext conftest.$ac_ext
5131
5132 fi
5133
5134
5135 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5136 echo "$as_me:$LINENO: result: yes" >&5
5137 echo "${ECHO_T}yes" >&6
5138 cat >>confdefs.h <<_ACEOF
5139 #define $ac_uc_define 1
5140 _ACEOF
5141
5142 else
5143 echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6
5145 fi
5146
5147
5148 if test "$ac_cv_struct_sockaddr_in_has_sin_len" = "yes"; then
5149 cat >>confdefs.h <<\_ACEOF
5150 #define HAVE_SIN_LEN 1
5151 _ACEOF
5152
5153 fi
5154
5155 if test $ac_cv_func_socket = no; then
5156 # socket is not in the default libraries.
5157 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5158 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5159 if test "${ac_cv_lib_socket_socket+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 ac_check_lib_save_LIBS=$LIBS
5163 LIBS="-lsocket $LIBS"
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5166 #include "confdefs.h"
5167
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char socket ();
5175 #ifdef F77_DUMMY_MAIN
5176 # ifdef __cplusplus
5177 extern "C"
5178 # endif
5179 int F77_DUMMY_MAIN() { return 1; }
5180 #endif
5181 int
5182 main ()
5183 {
5184 socket ();
5185 ;
5186 return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -s conftest$ac_exeext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_lib_socket_socket=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5205 ac_cv_lib_socket_socket=no
5206 fi
5207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5211 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5212 if test $ac_cv_lib_socket_socket = yes; then
5213 MYLIBS="$MYLIBS -lsocket"
5214 fi
5215
5216 fi
5217
5218 if test $ac_cv_func_inet_aton = no; then
5219 # inet_aton is not in the default libraries.
5220 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5221 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5222 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-lresolv $LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5230
5231 /* Override any gcc2 internal prototype to avoid an error. */
5232 #ifdef __cplusplus
5233 extern "C"
5234 #endif
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5237 char inet_aton ();
5238 #ifdef F77_DUMMY_MAIN
5239 # ifdef __cplusplus
5240 extern "C"
5241 # endif
5242 int F77_DUMMY_MAIN() { return 1; }
5243 #endif
5244 int
5245 main ()
5246 {
5247 inet_aton ();
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest$ac_exeext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_lib_resolv_inet_aton=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 ac_cv_lib_resolv_inet_aton=no
5269 fi
5270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5271 LIBS=$ac_check_lib_save_LIBS
5272 fi
5273 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5274 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5275 if test $ac_cv_lib_resolv_inet_aton = yes; then
5276 MYLIBS="$MYLIBS -lresolv"
5277 fi
5278
5279 fi
5280
5281 if test $ac_cv_func_gethostname = no; then
5282 echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
5283 echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
5284 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 ac_check_lib_save_LIBS=$LIBS
5288 LIBS="-lnsl $LIBS"
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5292
5293 /* Override any gcc2 internal prototype to avoid an error. */
5294 #ifdef __cplusplus
5295 extern "C"
5296 #endif
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5299 char gethostname ();
5300 #ifdef F77_DUMMY_MAIN
5301 # ifdef __cplusplus
5302 extern "C"
5303 # endif
5304 int F77_DUMMY_MAIN() { return 1; }
5305 #endif
5306 int
5307 main ()
5308 {
5309 gethostname ();
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 rm -f conftest.$ac_objext conftest$ac_exeext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316 (eval $ac_link) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
5320 { ac_try='test -s conftest$ac_exeext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 ac_cv_lib_nsl_gethostname=yes
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5330 ac_cv_lib_nsl_gethostname=no
5331 fi
5332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5333 LIBS=$ac_check_lib_save_LIBS
5334 fi
5335 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
5336 echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
5337 if test $ac_cv_lib_nsl_gethostname = yes; then
5338 MYLIBS="$MYLIBS -lnsl"
5339 fi
5340
5341 fi
5342
5343 if test $ac_cv_func_gethostbyname = no; then
5344 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5345 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5346 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-lnsl $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5353 #include "confdefs.h"
5354
5355 /* Override any gcc2 internal prototype to avoid an error. */
5356 #ifdef __cplusplus
5357 extern "C"
5358 #endif
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5361 char gethostbyname ();
5362 #ifdef F77_DUMMY_MAIN
5363 # ifdef __cplusplus
5364 extern "C"
5365 # endif
5366 int F77_DUMMY_MAIN() { return 1; }
5367 #endif
5368 int
5369 main ()
5370 {
5371 gethostbyname ();
5372 ;
5373 return 0;
5374 }
5375 _ACEOF
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -s conftest$ac_exeext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_lib_nsl_gethostbyname=yes
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5392 ac_cv_lib_nsl_gethostbyname=no
5393 fi
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5398 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5399 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5400 MYLIBS="$MYLIBS -lnsl"
5401 fi
5402
5403 fi
5404
5405 LIBS="$LIBS $MYLIBS"
5406
5407 if test $ac_cv_func_scandir = no; then
5408 # scandir not defined, add it
5409 SCANDIR="scandir.o"
5410 fi
5411
5412 if test $ac_cv_func_alphasort = no; then
5413 # alphasort not defined, add it
5414 ALPHASORT="alphasort.o"
5415 fi
5416
5417 use_ssl=yes
5418
5419 echo "$as_me:$LINENO: checking whether to include SSL and TLS support" >&5
5420 echo $ECHO_N "checking whether to include SSL and TLS support... $ECHO_C" >&6
5421 # Check whether --enable-ssl or --disable-ssl was given.
5422 if test "${enable_ssl+set}" = set; then
5423 enableval="$enable_ssl"
5424
5425 if test "$enableval" = "yes" ; then
5426 use_ssl=yes
5427 else
5428 use_ssl=no
5429 fi
5430
5431
5432 fi;
5433
5434 echo "$as_me:$LINENO: result: $use_ssl" >&5
5435 echo "${ECHO_T}$use_ssl" >&6
5436
5437 if test "$use_ssl" = "yes"; then
5438
5439 # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
5440 if test "${with_libgnutls_prefix+set}" = set; then
5441 withval="$with_libgnutls_prefix"
5442 libgnutls_config_prefix="$withval"
5443 else
5444 libgnutls_config_prefix=""
5445 fi;
5446
5447 if test x$libgnutls_config_prefix != x ; then
5448 libgnutls_config_args="$libgnutls_config_args --prefix=$libgnutls_config_prefix"
5449 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
5450 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
5451 fi
5452 fi
5453
5454 # Extract the first word of "libgnutls-config", so it can be a program name with args.
5455 set dummy libgnutls-config; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 case $LIBGNUTLS_CONFIG in
5462 [\\/]* | ?:[\\/]*)
5463 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
5464 ;;
5465 *)
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479
5480 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
5481 ;;
5482 esac
5483 fi
5484 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
5485
5486 if test -n "$LIBGNUTLS_CONFIG"; then
5487 echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
5488 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
5489 else
5490 echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5492 fi
5493
5494 min_libgnutls_version=0.5.7
5495 echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
5496 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
5497 no_libgnutls=""
5498 if test "$LIBGNUTLS_CONFIG" = "no" ; then
5499 no_libgnutls=yes
5500 else
5501 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
5502 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
5503 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
5504
5505
5506 ac_save_CFLAGS="$CFLAGS"
5507 ac_save_LIBS="$LIBS"
5508 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
5509 LIBS="$LIBS $LIBGNUTLS_LIBS"
5510 rm -f conf.libgnutlstest
5511 if test "$cross_compiling" = yes; then
5512 echo $ac_n "cross compiling; assumed OK... $ac_c"
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 #line $LINENO "configure"
5516 #include "confdefs.h"
5517
5518 #include <stdio.h>
5519 #include <stdlib.h>
5520 #include <string.h>
5521 #include <gnutls/gnutls.h>
5522
5523 int
5524 main ()
5525 {
5526 system ("touch conf.libgnutlstest");
5527
5528 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
5529 {
5530 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
5531 "$libgnutls_config_version", gnutls_check_version(NULL) );
5532 printf("*** was found! If libgnutls-config was correct, then it is best\n");
5533 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
5534 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5535 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5536 printf("*** required on your system.\n");
5537 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
5538 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
5539 printf("*** before re-running configure\n");
5540 }
5541 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
5542 {
5543 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
5544 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
5545 }
5546 else
5547 {
5548 if ( gnutls_check_version( "$min_libgnutls_version" ) )
5549 {
5550 return 0;
5551 }
5552 else
5553 {
5554 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
5555 gnutls_check_version(NULL) );
5556 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
5557 "$min_libgnutls_version" );
5558 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
5559 printf("*** \n");
5560 printf("*** If you have already installed a sufficiently new version, this error\n");
5561 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
5562 printf("*** being found. The easiest way to fix this is to remove the old version\n");
5563 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
5564 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
5565 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5566 printf("*** so that the correct libraries are found at run-time))\n");
5567 }
5568 }
5569 return 1;
5570 }
5571
5572 _ACEOF
5573 rm -f conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 :
5585 else
5586 echo "$as_me: program exited with status $ac_status" >&5
5587 echo "$as_me: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5589 ( exit $ac_status )
5590 no_libgnutls=yes
5591 fi
5592 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5593 fi
5594 CFLAGS="$ac_save_CFLAGS"
5595 LIBS="$ac_save_LIBS"
5596 fi
5597
5598 if test "x$no_libgnutls" = x ; then
5599 echo "$as_me:$LINENO: result: yes" >&5
5600 echo "${ECHO_T}yes" >&6
5601 cat >>confdefs.h <<\_ACEOF
5602 #define HAVE_LIBGNUTLS 1
5603 _ACEOF
5604
5605 else
5606 if test -f conf.libgnutlstest ; then
5607 :
5608 else
5609 echo "$as_me:$LINENO: result: no" >&5
5610 echo "${ECHO_T}no" >&6
5611 fi
5612 if test "$LIBGNUTLS_CONFIG" = "no" ; then
5613 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
5614 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
5615 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
5616 echo "*** full path to libgnutls-config."
5617 else
5618 if test -f conf.libgnutlstest ; then
5619 :
5620 else
5621 echo "*** Could not run libgnutls test program, checking why..."
5622 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
5623 LIBS="$LIBS $LIBGNUTLS_LIBS"
5624 cat >conftest.$ac_ext <<_ACEOF
5625 #line $LINENO "configure"
5626 #include "confdefs.h"
5627
5628 #include <stdio.h>
5629 #include <stdlib.h>
5630 #include <string.h>
5631 #include <gnutls/gnutls.h>
5632
5633 #ifdef F77_DUMMY_MAIN
5634 # ifdef __cplusplus
5635 extern "C"
5636 # endif
5637 int F77_DUMMY_MAIN() { return 1; }
5638 #endif
5639 int
5640 main ()
5641 {
5642 return !!gnutls_check_version(NULL);
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 (eval $ac_try) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 echo "*** The test program compiled, but did not run. This usually means"
5660 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
5661 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
5662 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5663 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5664 echo "*** is required on your system"
5665 echo "***"
5666 echo "*** If you have an old version installed, it is best to remove it, although"
5667 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5668 echo "***"
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 echo "*** The test program failed to compile or link. See the file config.log for the"
5673 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
5674 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
5675 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
5676 fi
5677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5678 CFLAGS="$ac_save_CFLAGS"
5679 LIBS="$ac_save_LIBS"
5680 fi
5681 fi
5682 LIBGNUTLS_CFLAGS=""
5683 LIBGNUTLS_LIBS=""
5684 { echo "$as_me:$LINENO: WARNING:
5685 ***
5686 *** libgnutls was not found. You may want to get it from
5687 *** ftp://ftp.gnutls.org/pub/gnutls/
5688 " >&5
5689 echo "$as_me: WARNING:
5690 ***
5691 *** libgnutls was not found. You may want to get it from
5692 *** ftp://ftp.gnutls.org/pub/gnutls/
5693 " >&2;}
5694 fi
5695 rm -f conf.libgnutlstest
5696
5697
5698
5699
5700 LIBS="$LIBS $LIBGNUTLS_LIBS"
5701 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
5702 cat >>confdefs.h <<\_ACEOF
5703 #define ENABLE_SSL 1
5704 _ACEOF
5705
5706 fi
5707
5708 use_smp=yes
5709
5710 echo "$as_me:$LINENO: checking whether to include SMP support" >&5
5711 echo $ECHO_N "checking whether to include SMP support... $ECHO_C" >&6
5712 # Check whether --enable-smp or --disable-smp was given.
5713 if test "${enable_smp+set}" = set; then
5714 enableval="$enable_smp"
5715
5716 if test "$enableval" = "yes" ; then
5717 use_smp=yes
5718 else
5719 use_smp=no
5720 fi
5721
5722
5723 fi;
5724
5725 echo "$as_me:$LINENO: result: $use_smp" >&5
5726 echo "${ECHO_T}$use_smp" >&6
5727
5728 if test "$use_smp" = "yes"; then
5729 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5730 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5731 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 ac_check_lib_save_LIBS=$LIBS
5735 LIBS="-lpthread $LIBS"
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5739
5740 /* Override any gcc2 internal prototype to avoid an error. */
5741 #ifdef __cplusplus
5742 extern "C"
5743 #endif
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5746 char pthread_create ();
5747 #ifdef F77_DUMMY_MAIN
5748 # ifdef __cplusplus
5749 extern "C"
5750 # endif
5751 int F77_DUMMY_MAIN() { return 1; }
5752 #endif
5753 int
5754 main ()
5755 {
5756 pthread_create ();
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5763 (eval $ac_link) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -s conftest$ac_exeext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_lib_pthread_pthread_create=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5777 ac_cv_lib_pthread_pthread_create=no
5778 fi
5779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5780 LIBS=$ac_check_lib_save_LIBS
5781 fi
5782 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5783 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5784 if test $ac_cv_lib_pthread_pthread_create = yes; then
5785
5786 cat >>confdefs.h <<\_ACEOF
5787 #define ENABLE_SMP 1
5788 _ACEOF
5789
5790 LIBS="-lpthread $LIBS"
5791
5792 fi
5793
5794 fi
5795
5796
5797 if test $ac_cv_func_strdup = no -o $ac_cv_func_strstr = no; then
5798 # strdup or strstr not defined
5799 STRUTIL="strutil.o"
5800 fi
5801
5802 if test -n "$GCC"; then
5803 test -n "$GCC" && CFLAGS="$CFLAGS -pipe"
5804
5805 echo "$as_me:$LINENO: checking compile and link profiling code" >&5
5806 echo $ECHO_N "checking compile and link profiling code... $ECHO_C" >&6
5807 # Check whether --enable-profiling or --disable-profiling was given.
5808 if test "${enable_profiling+set}" = set; then
5809 enableval="$enable_profiling"
5810
5811 if test "$enableval" = "yes" ; then
5812 echo "$as_me:$LINENO: result: yes" >&5
5813 echo "${ECHO_T}yes" >&6
5814 CFLAGS="$CFLAGS -pg -fprofile-arcs"
5815 else
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5818 fi
5819
5820 else
5821
5822 echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5824
5825 fi;
5826 fi
5827
5828 echo "$as_me:$LINENO: checking whether to compile and link debugging code" >&5
5829 echo $ECHO_N "checking whether to compile and link debugging code... $ECHO_C" >&6
5830 # Check whether --enable-debug or --disable-debug was given.
5831 if test "${enable_debug+set}" = set; then
5832 enableval="$enable_debug"
5833
5834 if test "$enableval" = "yes" ; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836 echo "${ECHO_T}yes" >&6
5837 LDFLAGS="$LDFLAGS -g"
5838 test -n "$GCC" && CFLAGS="$CFLAGS -Wall"
5839 else
5840 echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5842 fi
5843
5844 else
5845
5846 echo "$as_me:$LINENO: result: yes" >&5
5847 echo "${ECHO_T}yes" >&6
5848 LDFLAGS="$LDFLAGS -g"
5849 test -n "$GCC" && CFLAGS="$CFLAGS -Wall"
5850
5851 fi;
5852
5853 echo "$as_me:$LINENO: checking whether to link with the Dmalloc memory debugger/profiler" >&5
5854 echo $ECHO_N "checking whether to link with the Dmalloc memory debugger/profiler... $ECHO_C" >&6
5855
5856 # Check whether --with-dmalloc or --without-dmalloc was given.
5857 if test "${with_dmalloc+set}" = set; then
5858 withval="$with_dmalloc"
5859
5860 if test "$withval" = "yes"; then
5861 echo "$as_me:$LINENO: result: trying" >&5
5862 echo "${ECHO_T}trying" >&6
5863
5864 echo "$as_me:$LINENO: checking for dmalloc_shutdown in -ldmalloc" >&5
5865 echo $ECHO_N "checking for dmalloc_shutdown in -ldmalloc... $ECHO_C" >&6
5866 if test "${ac_cv_lib_dmalloc_dmalloc_shutdown+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 ac_check_lib_save_LIBS=$LIBS
5870 LIBS="-ldmalloc $LIBS"
5871 cat >conftest.$ac_ext <<_ACEOF
5872 #line $LINENO "configure"
5873 #include "confdefs.h"
5874
5875 /* Override any gcc2 internal prototype to avoid an error. */
5876 #ifdef __cplusplus
5877 extern "C"
5878 #endif
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5881 char dmalloc_shutdown ();
5882 #ifdef F77_DUMMY_MAIN
5883 # ifdef __cplusplus
5884 extern "C"
5885 # endif
5886 int F77_DUMMY_MAIN() { return 1; }
5887 #endif
5888 int
5889 main ()
5890 {
5891 dmalloc_shutdown ();
5892 ;
5893 return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898 (eval $ac_link) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -s conftest$ac_exeext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_cv_lib_dmalloc_dmalloc_shutdown=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5912 ac_cv_lib_dmalloc_dmalloc_shutdown=no
5913 fi
5914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5915 LIBS=$ac_check_lib_save_LIBS
5916 fi
5917 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_shutdown" >&5
5918 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_shutdown" >&6
5919 if test $ac_cv_lib_dmalloc_dmalloc_shutdown = yes; then
5920 cat >>confdefs.h <<_ACEOF
5921 #define HAVE_LIBDMALLOC 1
5922 _ACEOF
5923
5924 LIBS="-ldmalloc $LIBS"
5925
5926 fi
5927
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6
5931 fi
5932
5933 else
5934
5935 echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6
5937
5938 fi;
5939
5940 echo "$as_me:$LINENO: checking whether to link with the Electric Fence memory debugger" >&5
5941 echo $ECHO_N "checking whether to link with the Electric Fence memory debugger... $ECHO_C" >&6
5942
5943 # Check whether --with-efence or --without-efence was given.
5944 if test "${with_efence+set}" = set; then
5945 withval="$with_efence"
5946
5947 if test "$withval" = "yes"; then
5948 echo "$as_me:$LINENO: result: trying" >&5
5949 echo "${ECHO_T}trying" >&6
5950
5951 echo "$as_me:$LINENO: checking for main in -lefence" >&5
5952 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
5953 if test "${ac_cv_lib_efence_main+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 ac_check_lib_save_LIBS=$LIBS
5957 LIBS="-lefence $LIBS"
5958 cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5960 #include "confdefs.h"
5961
5962
5963 #ifdef F77_DUMMY_MAIN
5964 # ifdef __cplusplus
5965 extern "C"
5966 # endif
5967 int F77_DUMMY_MAIN() { return 1; }
5968 #endif
5969 int
5970 main ()
5971 {
5972 main ();
5973 ;
5974 return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -s conftest$ac_exeext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_lib_efence_main=yes
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5993 ac_cv_lib_efence_main=no
5994 fi
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5997 fi
5998 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
5999 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
6000 if test $ac_cv_lib_efence_main = yes; then
6001 cat >>confdefs.h <<_ACEOF
6002 #define HAVE_LIBEFENCE 1
6003 _ACEOF
6004
6005 LIBS="-lefence $LIBS"
6006
6007 fi
6008
6009 else
6010 echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6
6012 fi
6013
6014 else
6015
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6018
6019 fi;
6020
6021
6022
6023
6024
6025 ac_config_files="$ac_config_files Makefile"
6026 cat >confcache <<\_ACEOF
6027 # This file is a shell script that caches the results of configure
6028 # tests run on this system so they can be shared between configure
6029 # scripts and configure runs, see configure's option --config-cache.
6030 # It is not useful on other systems. If it contains results you don't
6031 # want to keep, you may remove or edit it.
6032 #
6033 # config.status only pays attention to the cache file if you give it
6034 # the --recheck option to rerun configure.
6035 #
6036 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6038 # following values.
6039
6040 _ACEOF
6041
6042 # The following way of writing the cache mishandles newlines in values,
6043 # but we know of no workaround that is simple, portable, and efficient.
6044 # So, don't put newlines in cache variables' values.
6045 # Ultrix sh set writes to stderr and can't be redirected directly,
6046 # and sets the high bit in the cache file unless we assign to the vars.
6047 {
6048 (set) 2>&1 |
6049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6050 *ac_space=\ *)
6051 # `set' does not quote correctly, so add quotes (double-quote
6052 # substitution turns \\\\ into \\, and sed turns \\ into \).
6053 sed -n \
6054 "s/'/'\\\\''/g;
6055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6056 ;;
6057 *)
6058 # `set' quotes correctly as required by POSIX, so do not add quotes.
6059 sed -n \
6060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6061 ;;
6062 esac;
6063 } |
6064 sed '
6065 t clear
6066 : clear
6067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6068 t end
6069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6070 : end' >>confcache
6071 if cmp -s $cache_file confcache; then :; else
6072 if test -w $cache_file; then
6073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6074 cat confcache >$cache_file
6075 else
6076 echo "not updating unwritable cache $cache_file"
6077 fi
6078 fi
6079 rm -f confcache
6080
6081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6082 # Let make expand exec_prefix.
6083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6084
6085 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6086 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6087 # trailing colons and then remove the whole line if VPATH becomes empty
6088 # (actually we leave an empty line to preserve line numbers).
6089 if test "x$srcdir" = x.; then
6090 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6091 s/:*\$(srcdir):*/:/;
6092 s/:*\${srcdir}:*/:/;
6093 s/:*@srcdir@:*/:/;
6094 s/^\([^=]*=[ ]*\):*/\1/;
6095 s/:*$//;
6096 s/^[^=]*=[ ]*$//;
6097 }'
6098 fi
6099
6100 DEFS=-DHAVE_CONFIG_H
6101
6102
6103 : ${CONFIG_STATUS=./config.status}
6104 ac_clean_files_save=$ac_clean_files
6105 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6106 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6107 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6108 cat >$CONFIG_STATUS <<_ACEOF
6109 #! $SHELL
6110 # Generated by $as_me.
6111 # Run this file to recreate the current configuration.
6112 # Compiler output produced by configure, useful for debugging
6113 # configure, is in config.log if it exists.
6114
6115 debug=false
6116 SHELL=\${CONFIG_SHELL-$SHELL}
6117 _ACEOF
6118
6119 cat >>$CONFIG_STATUS <<\_ACEOF
6120
6121 ## --------------------- ##
6122 ## M4sh Initialization. ##
6123 ## --------------------- ##
6124
6125 # Be Bourne compatible
6126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6127 emulate sh
6128 NULLCMD=:
6129 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6130 set -o posix
6131 fi
6132
6133 # NLS nuisances.
6134 # Support unset when possible.
6135 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6136 as_unset=unset
6137 else
6138 as_unset=false
6139 fi
6140
6141 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6142 { $as_unset LANG || test "${LANG+set}" != set; } ||
6143 { LANG=C; export LANG; }
6144 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6145 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6146 { LC_ALL=C; export LC_ALL; }
6147 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6148 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6149 { LC_TIME=C; export LC_TIME; }
6150 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6151 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6152 { LC_CTYPE=C; export LC_CTYPE; }
6153 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6154 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6155 { LANGUAGE=C; export LANGUAGE; }
6156 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6157 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6158 { LC_COLLATE=C; export LC_COLLATE; }
6159 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6160 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6161 { LC_NUMERIC=C; export LC_NUMERIC; }
6162 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6163 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6164 { LC_MESSAGES=C; export LC_MESSAGES; }
6165
6166
6167 # Name of the executable.
6168 as_me=`(basename "$0") 2>/dev/null ||
6169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6170 X"$0" : 'X\(//\)$' \| \
6171 X"$0" : 'X\(/\)$' \| \
6172 . : '\(.\)' 2>/dev/null ||
6173 echo X/"$0" |
6174 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6175 /^X\/\(\/\/\)$/{ s//\1/; q; }
6176 /^X\/\(\/\).*/{ s//\1/; q; }
6177 s/.*/./; q'`
6178
6179 # PATH needs CR, and LINENO needs CR and PATH.
6180 # Avoid depending upon Character Ranges.
6181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6184 as_cr_digits='0123456789'
6185 as_cr_alnum=$as_cr_Letters$as_cr_digits
6186
6187 # The user is always right.
6188 if test "${PATH_SEPARATOR+set}" != set; then
6189 echo "#! /bin/sh" >conftest.sh
6190 echo "exit 0" >>conftest.sh
6191 chmod +x conftest.sh
6192 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6193 PATH_SEPARATOR=';'
6194 else
6195 PATH_SEPARATOR=:
6196 fi
6197 rm -f conftest.sh
6198 fi
6199
6200
6201 as_lineno_1=$LINENO
6202 as_lineno_2=$LINENO
6203 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6204 test "x$as_lineno_1" != "x$as_lineno_2" &&
6205 test "x$as_lineno_3" = "x$as_lineno_2" || {
6206 # Find who we are. Look in the path if we contain no path at all
6207 # relative or not.
6208 case $0 in
6209 *[\\/]* ) as_myself=$0 ;;
6210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6216 done
6217
6218 ;;
6219 esac
6220 # We did not find ourselves, most probably we were run as `sh COMMAND'
6221 # in which case we are not to be found in the path.
6222 if test "x$as_myself" = x; then
6223 as_myself=$0
6224 fi
6225 if test ! -f "$as_myself"; then
6226 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6227 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6228 { (exit 1); exit 1; }; }
6229 fi
6230 case $CONFIG_SHELL in
6231 '')
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for as_base in sh bash ksh sh5; do
6238 case $as_dir in
6239 /*)
6240 if ("$as_dir/$as_base" -c '
6241 as_lineno_1=$LINENO
6242 as_lineno_2=$LINENO
6243 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6244 test "x$as_lineno_1" != "x$as_lineno_2" &&
6245 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6246 CONFIG_SHELL=$as_dir/$as_base
6247 export CONFIG_SHELL
6248 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6249 fi;;
6250 esac
6251 done
6252 done
6253 ;;
6254 esac
6255
6256 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6257 # uniformly replaced by the line number. The first 'sed' inserts a
6258 # line-number line before each line; the second 'sed' does the real
6259 # work. The second script uses 'N' to pair each line-number line
6260 # with the numbered line, and appends trailing '-' during
6261 # substitution so that $LINENO is not a special case at line end.
6262 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6263 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6264 sed '=' <$as_myself |
6265 sed '
6266 N
6267 s,$,-,
6268 : loop
6269 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6270 t loop
6271 s,-$,,
6272 s,^['$as_cr_digits']*\n,,
6273 ' >$as_me.lineno &&
6274 chmod +x $as_me.lineno ||
6275 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6276 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6277 { (exit 1); exit 1; }; }
6278
6279 # Don't try to exec as it changes $[0], causing all sort of problems
6280 # (the dirname of $[0] is not the place where we might find the
6281 # original and so on. Autoconf is especially sensible to this).
6282 . ./$as_me.lineno
6283 # Exit status is that of the last command.
6284 exit
6285 }
6286
6287
6288 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6289 *c*,-n*) ECHO_N= ECHO_C='
6290 ' ECHO_T=' ' ;;
6291 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6292 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6293 esac
6294
6295 if expr a : '\(a\)' >/dev/null 2>&1; then
6296 as_expr=expr
6297 else
6298 as_expr=false
6299 fi
6300
6301 rm -f conf$$ conf$$.exe conf$$.file
6302 echo >conf$$.file
6303 if ln -s conf$$.file conf$$ 2>/dev/null; then
6304 # We could just check for DJGPP; but this test a) works b) is more generic
6305 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6306 if test -f conf$$.exe; then
6307 # Don't use ln at all; we don't have any links
6308 as_ln_s='cp -p'
6309 else
6310 as_ln_s='ln -s'
6311 fi
6312 elif ln conf$$.file conf$$ 2>/dev/null; then
6313 as_ln_s=ln
6314 else
6315 as_ln_s='cp -p'
6316 fi
6317 rm -f conf$$ conf$$.exe conf$$.file
6318
6319 as_executable_p="test -f"
6320
6321 # Sed expression to map a string onto a valid CPP name.
6322 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6323
6324 # Sed expression to map a string onto a valid variable name.
6325 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6326
6327
6328 # IFS
6329 # We need space, tab and new line, in precisely that order.
6330 as_nl='
6331 '
6332 IFS=" $as_nl"
6333
6334 # CDPATH.
6335 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6336
6337 exec 6>&1
6338
6339 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6340 # report actual input values of CONFIG_FILES etc. instead of their
6341 # values after options handling. Logging --version etc. is OK.
6342 exec 5>>config.log
6343 {
6344 echo
6345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6346 ## Running $as_me. ##
6347 _ASBOX
6348 } >&5
6349 cat >&5 <<_CSEOF
6350
6351 This file was extended by $as_me, which was
6352 generated by GNU Autoconf 2.53. Invocation command line was
6353
6354 CONFIG_FILES = $CONFIG_FILES
6355 CONFIG_HEADERS = $CONFIG_HEADERS
6356 CONFIG_LINKS = $CONFIG_LINKS
6357 CONFIG_COMMANDS = $CONFIG_COMMANDS
6358 $ $0 $@
6359
6360 _CSEOF
6361 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6362 echo >&5
6363 _ACEOF
6364
6365 # Files that config.status was made for.
6366 if test -n "$ac_config_files"; then
6367 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6368 fi
6369
6370 if test -n "$ac_config_headers"; then
6371 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6372 fi
6373
6374 if test -n "$ac_config_links"; then
6375 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6376 fi
6377
6378 if test -n "$ac_config_commands"; then
6379 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6380 fi
6381
6382 cat >>$CONFIG_STATUS <<\_ACEOF
6383
6384 ac_cs_usage="\
6385 \`$as_me' instantiates files from templates according to the
6386 current configuration.
6387
6388 Usage: $0 [OPTIONS] [FILE]...
6389
6390 -h, --help print this help, then exit
6391 -V, --version print version number, then exit
6392 -d, --debug don't remove temporary files
6393 --recheck update $as_me by reconfiguring in the same conditions
6394 --file=FILE[:TEMPLATE]
6395 instantiate the configuration file FILE
6396 --header=FILE[:TEMPLATE]
6397 instantiate the configuration header FILE
6398
6399 Configuration files:
6400 $config_files
6401
6402 Configuration headers:
6403 $config_headers
6404
6405 Report bugs to <bug-autoconf@gnu.org>."
6406 _ACEOF
6407
6408 cat >>$CONFIG_STATUS <<_ACEOF
6409 ac_cs_version="\\
6410 config.status
6411 configured by $0, generated by GNU Autoconf 2.53,
6412 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6413
6414 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6415 Free Software Foundation, Inc.
6416 This config.status script is free software; the Free Software Foundation
6417 gives unlimited permission to copy, distribute and modify it."
6418 srcdir=$srcdir
6419 _ACEOF
6420
6421 cat >>$CONFIG_STATUS <<\_ACEOF
6422 # If no file are specified by the user, then we need to provide default
6423 # value. By we need to know if files were specified by the user.
6424 ac_need_defaults=:
6425 while test $# != 0
6426 do
6427 case $1 in
6428 --*=*)
6429 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6430 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6431 shift
6432 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6433 shift
6434 ;;
6435 -*);;
6436 *) # This is not an option, so the user has probably given explicit
6437 # arguments.
6438 ac_need_defaults=false;;
6439 esac
6440
6441 case $1 in
6442 # Handling of the options.
6443 _ACEOF
6444 cat >>$CONFIG_STATUS <<_ACEOF
6445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6446 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6447 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6448 _ACEOF
6449 cat >>$CONFIG_STATUS <<\_ACEOF
6450 --version | --vers* | -V )
6451 echo "$ac_cs_version"; exit 0 ;;
6452 --he | --h)
6453 # Conflict between --help and --header
6454 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6455 Try \`$0 --help' for more information." >&5
6456 echo "$as_me: error: ambiguous option: $1
6457 Try \`$0 --help' for more information." >&2;}
6458 { (exit 1); exit 1; }; };;
6459 --help | --hel | -h )
6460 echo "$ac_cs_usage"; exit 0 ;;
6461 --debug | --d* | -d )
6462 debug=: ;;
6463 --file | --fil | --fi | --f )
6464 shift
6465 CONFIG_FILES="$CONFIG_FILES $1"
6466 ac_need_defaults=false;;
6467 --header | --heade | --head | --hea )
6468 shift
6469 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6470 ac_need_defaults=false;;
6471
6472 # This is an error.
6473 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6474 Try \`$0 --help' for more information." >&5
6475 echo "$as_me: error: unrecognized option: $1
6476 Try \`$0 --help' for more information." >&2;}
6477 { (exit 1); exit 1; }; } ;;
6478
6479 *) ac_config_targets="$ac_config_targets $1" ;;
6480
6481 esac
6482 shift
6483 done
6484
6485 _ACEOF
6486
6487
6488
6489
6490
6491 cat >>$CONFIG_STATUS <<\_ACEOF
6492 for ac_config_target in $ac_config_targets
6493 do
6494 case "$ac_config_target" in
6495 # Handling of arguments.
6496 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6497 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6498 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6500 { (exit 1); exit 1; }; };;
6501 esac
6502 done
6503
6504 # If the user did not use the arguments to specify the items to instantiate,
6505 # then the envvar interface is used. Set only those that are not.
6506 # We use the long form for the default assignment because of an extremely
6507 # bizarre bug on SunOS 4.1.3.
6508 if $ac_need_defaults; then
6509 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6510 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6511 fi
6512
6513 # Create a temporary directory, and hook for its removal unless debugging.
6514 $debug ||
6515 {
6516 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6517 trap '{ (exit 1); exit 1; }' 1 2 13 15
6518 }
6519
6520 # Create a (secure) tmp directory for tmp files.
6521 : ${TMPDIR=/tmp}
6522 {
6523 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6524 test -n "$tmp" && test -d "$tmp"
6525 } ||
6526 {
6527 tmp=$TMPDIR/cs$$-$RANDOM
6528 (umask 077 && mkdir $tmp)
6529 } ||
6530 {
6531 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6532 { (exit 1); exit 1; }
6533 }
6534
6535 _ACEOF
6536
6537 cat >>$CONFIG_STATUS <<_ACEOF
6538
6539 #
6540 # CONFIG_FILES section.
6541 #
6542
6543 # No need to generate the scripts if there are no CONFIG_FILES.
6544 # This happens for instance when ./config.status config.h
6545 if test -n "\$CONFIG_FILES"; then
6546 # Protect against being on the right side of a sed subst in config.status.
6547 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6548 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6549 s,@SHELL@,$SHELL,;t t
6550 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6551 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6552 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6553 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6554 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6555 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6556 s,@exec_prefix@,$exec_prefix,;t t
6557 s,@prefix@,$prefix,;t t
6558 s,@program_transform_name@,$program_transform_name,;t t
6559 s,@bindir@,$bindir,;t t
6560 s,@sbindir@,$sbindir,;t t
6561 s,@libexecdir@,$libexecdir,;t t
6562 s,@datadir@,$datadir,;t t
6563 s,@sysconfdir@,$sysconfdir,;t t
6564 s,@sharedstatedir@,$sharedstatedir,;t t
6565 s,@localstatedir@,$localstatedir,;t t
6566 s,@libdir@,$libdir,;t t
6567 s,@includedir@,$includedir,;t t
6568 s,@oldincludedir@,$oldincludedir,;t t
6569 s,@infodir@,$infodir,;t t
6570 s,@mandir@,$mandir,;t t
6571 s,@build_alias@,$build_alias,;t t
6572 s,@host_alias@,$host_alias,;t t
6573 s,@target_alias@,$target_alias,;t t
6574 s,@DEFS@,$DEFS,;t t
6575 s,@ECHO_C@,$ECHO_C,;t t
6576 s,@ECHO_N@,$ECHO_N,;t t
6577 s,@ECHO_T@,$ECHO_T,;t t
6578 s,@LIBS@,$LIBS,;t t
6579 s,@GUNZIP@,$GUNZIP,;t t
6580 s,@LEX@,$LEX,;t t
6581 s,@CC@,$CC,;t t
6582 s,@CFLAGS@,$CFLAGS,;t t
6583 s,@LDFLAGS@,$LDFLAGS,;t t
6584 s,@CPPFLAGS@,$CPPFLAGS,;t t
6585 s,@ac_ct_CC@,$ac_ct_CC,;t t
6586 s,@EXEEXT@,$EXEEXT,;t t
6587 s,@OBJEXT@,$OBJEXT,;t t
6588 s,@LEXLIB@,$LEXLIB,;t t
6589 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6590 s,@YACC@,$YACC,;t t
6591 s,@CPP@,$CPP,;t t
6592 s,@SET_MAKE@,$SET_MAKE,;t t
6593 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
6594 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
6595 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
6596 s,@STRUTIL@,$STRUTIL,;t t
6597 s,@ALPHASORT@,$ALPHASORT,;t t
6598 s,@SCANDIR@,$SCANDIR,;t t
6599 CEOF
6600
6601 _ACEOF
6602
6603 cat >>$CONFIG_STATUS <<\_ACEOF
6604 # Split the substitutions into bite-sized pieces for seds with
6605 # small command number limits, like on Digital OSF/1 and HP-UX.
6606 ac_max_sed_lines=48
6607 ac_sed_frag=1 # Number of current file.
6608 ac_beg=1 # First line for current file.
6609 ac_end=$ac_max_sed_lines # Line after last line for current file.
6610 ac_more_lines=:
6611 ac_sed_cmds=
6612 while $ac_more_lines; do
6613 if test $ac_beg -gt 1; then
6614 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6615 else
6616 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6617 fi
6618 if test ! -s $tmp/subs.frag; then
6619 ac_more_lines=false
6620 else
6621 # The purpose of the label and of the branching condition is to
6622 # speed up the sed processing (if there are no `@' at all, there
6623 # is no need to browse any of the substitutions).
6624 # These are the two extra sed commands mentioned above.
6625 (echo ':t
6626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6627 if test -z "$ac_sed_cmds"; then
6628 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6629 else
6630 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6631 fi
6632 ac_sed_frag=`expr $ac_sed_frag + 1`
6633 ac_beg=$ac_end
6634 ac_end=`expr $ac_end + $ac_max_sed_lines`
6635 fi
6636 done
6637 if test -z "$ac_sed_cmds"; then
6638 ac_sed_cmds=cat
6639 fi
6640 fi # test -n "$CONFIG_FILES"
6641
6642 _ACEOF
6643 cat >>$CONFIG_STATUS <<\_ACEOF
6644 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6646 case $ac_file in
6647 - | *:- | *:-:* ) # input from stdin
6648 cat >$tmp/stdin
6649 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6651 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6653 * ) ac_file_in=$ac_file.in ;;
6654 esac
6655
6656 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6657 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6659 X"$ac_file" : 'X\(//\)[^/]' \| \
6660 X"$ac_file" : 'X\(//\)$' \| \
6661 X"$ac_file" : 'X\(/\)' \| \
6662 . : '\(.\)' 2>/dev/null ||
6663 echo X"$ac_file" |
6664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6666 /^X\(\/\/\)$/{ s//\1/; q; }
6667 /^X\(\/\).*/{ s//\1/; q; }
6668 s/.*/./; q'`
6669 { case "$ac_dir" in
6670 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6671 *) as_incr_dir=.;;
6672 esac
6673 as_dummy="$ac_dir"
6674 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6675 case $as_mkdir_dir in
6676 # Skip DOS drivespec
6677 ?:) as_incr_dir=$as_mkdir_dir ;;
6678 *)
6679 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6680 test -d "$as_incr_dir" ||
6681 mkdir "$as_incr_dir" ||
6682 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6683 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6684 { (exit 1); exit 1; }; }
6685 ;;
6686 esac
6687 done; }
6688
6689 ac_builddir=.
6690
6691 if test "$ac_dir" != .; then
6692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6693 # A "../" for each directory in $ac_dir_suffix.
6694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6695 else
6696 ac_dir_suffix= ac_top_builddir=
6697 fi
6698
6699 case $srcdir in
6700 .) # No --srcdir option. We are building in place.
6701 ac_srcdir=.
6702 if test -z "$ac_top_builddir"; then
6703 ac_top_srcdir=.
6704 else
6705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6706 fi ;;
6707 [\\/]* | ?:[\\/]* ) # Absolute path.
6708 ac_srcdir=$srcdir$ac_dir_suffix;
6709 ac_top_srcdir=$srcdir ;;
6710 *) # Relative path.
6711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6713 esac
6714 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6715 # absolute.
6716 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6717 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6718 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6719 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6720
6721
6722
6723 if test x"$ac_file" != x-; then
6724 { echo "$as_me:$LINENO: creating $ac_file" >&5
6725 echo "$as_me: creating $ac_file" >&6;}
6726 rm -f "$ac_file"
6727 fi
6728 # Let's still pretend it is `configure' which instantiates (i.e., don't
6729 # use $as_me), people would be surprised to read:
6730 # /* config.h. Generated by config.status. */
6731 if test x"$ac_file" = x-; then
6732 configure_input=
6733 else
6734 configure_input="$ac_file. "
6735 fi
6736 configure_input=$configure_input"Generated from `echo $ac_file_in |
6737 sed 's,.*/,,'` by configure."
6738
6739 # First look for the input files in the build tree, otherwise in the
6740 # src tree.
6741 ac_file_inputs=`IFS=:
6742 for f in $ac_file_in; do
6743 case $f in
6744 -) echo $tmp/stdin ;;
6745 [\\/$]*)
6746 # Absolute (can't be DOS-style, as IFS=:)
6747 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6748 echo "$as_me: error: cannot find input file: $f" >&2;}
6749 { (exit 1); exit 1; }; }
6750 echo $f;;
6751 *) # Relative
6752 if test -f "$f"; then
6753 # Build tree
6754 echo $f
6755 elif test -f "$srcdir/$f"; then
6756 # Source tree
6757 echo $srcdir/$f
6758 else
6759 # /dev/null tree
6760 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6761 echo "$as_me: error: cannot find input file: $f" >&2;}
6762 { (exit 1); exit 1; }; }
6763 fi;;
6764 esac
6765 done` || { (exit 1); exit 1; }
6766 _ACEOF
6767 cat >>$CONFIG_STATUS <<_ACEOF
6768 sed "$ac_vpsub
6769 $extrasub
6770 _ACEOF
6771 cat >>$CONFIG_STATUS <<\_ACEOF
6772 :t
6773 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6774 s,@configure_input@,$configure_input,;t t
6775 s,@srcdir@,$ac_srcdir,;t t
6776 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6777 s,@top_srcdir@,$ac_top_srcdir,;t t
6778 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6779 s,@builddir@,$ac_builddir,;t t
6780 s,@abs_builddir@,$ac_abs_builddir,;t t
6781 s,@top_builddir@,$ac_top_builddir,;t t
6782 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6783 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6784 rm -f $tmp/stdin
6785 if test x"$ac_file" != x-; then
6786 mv $tmp/out $ac_file
6787 else
6788 cat $tmp/out
6789 rm -f $tmp/out
6790 fi
6791
6792 done
6793 _ACEOF
6794 cat >>$CONFIG_STATUS <<\_ACEOF
6795
6796 #
6797 # CONFIG_HEADER section.
6798 #
6799
6800 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6801 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6802 #
6803 # ac_d sets the value in "#define NAME VALUE" lines.
6804 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6805 ac_dB='[ ].*$,\1#\2'
6806 ac_dC=' '
6807 ac_dD=',;t'
6808 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6809 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6810 ac_uB='$,\1#\2define\3'
6811 ac_uC=' '
6812 ac_uD=',;t'
6813
6814 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6815 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6816 case $ac_file in
6817 - | *:- | *:-:* ) # input from stdin
6818 cat >$tmp/stdin
6819 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6820 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6821 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6822 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6823 * ) ac_file_in=$ac_file.in ;;
6824 esac
6825
6826 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6827 echo "$as_me: creating $ac_file" >&6;}
6828
6829 # First look for the input files in the build tree, otherwise in the
6830 # src tree.
6831 ac_file_inputs=`IFS=:
6832 for f in $ac_file_in; do
6833 case $f in
6834 -) echo $tmp/stdin ;;
6835 [\\/$]*)
6836 # Absolute (can't be DOS-style, as IFS=:)
6837 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6838 echo "$as_me: error: cannot find input file: $f" >&2;}
6839 { (exit 1); exit 1; }; }
6840 echo $f;;
6841 *) # Relative
6842 if test -f "$f"; then
6843 # Build tree
6844 echo $f
6845 elif test -f "$srcdir/$f"; then
6846 # Source tree
6847 echo $srcdir/$f
6848 else
6849 # /dev/null tree
6850 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6851 echo "$as_me: error: cannot find input file: $f" >&2;}
6852 { (exit 1); exit 1; }; }
6853 fi;;
6854 esac
6855 done` || { (exit 1); exit 1; }
6856 # Remove the trailing spaces.
6857 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6858
6859 _ACEOF
6860
6861 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6862 # `conftest.undefs', that substitutes the proper values into
6863 # config.h.in to produce config.h. The first handles `#define'
6864 # templates, and the second `#undef' templates.
6865 # And first: Protect against being on the right side of a sed subst in
6866 # config.status. Protect against being in an unquoted here document
6867 # in config.status.
6868 rm -f conftest.defines conftest.undefs
6869 # Using a here document instead of a string reduces the quoting nightmare.
6870 # Putting comments in sed scripts is not portable.
6871 #
6872 # `end' is used to avoid that the second main sed command (meant for
6873 # 0-ary CPP macros) applies to n-ary macro definitions.
6874 # See the Autoconf documentation for `clear'.
6875 cat >confdef2sed.sed <<\_ACEOF
6876 s/[\\&,]/\\&/g
6877 s,[\\$`],\\&,g
6878 t clear
6879 : clear
6880 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6881 t end
6882 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6883 : end
6884 _ACEOF
6885 # If some macros were called several times there might be several times
6886 # the same #defines, which is useless. Nevertheless, we may not want to
6887 # sort them, since we want the *last* AC-DEFINE to be honored.
6888 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6889 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6890 rm -f confdef2sed.sed
6891
6892 # This sed command replaces #undef with comments. This is necessary, for
6893 # example, in the case of _POSIX_SOURCE, which is predefined and required
6894 # on some systems where configure will not decide to define it.
6895 cat >>conftest.undefs <<\_ACEOF
6896 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6897 _ACEOF
6898
6899 # Break up conftest.defines because some shells have a limit on the size
6900 # of here documents, and old seds have small limits too (100 cmds).
6901 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6902 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6903 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6904 echo ' :' >>$CONFIG_STATUS
6905 rm -f conftest.tail
6906 while grep . conftest.defines >/dev/null
6907 do
6908 # Write a limited-size here document to $tmp/defines.sed.
6909 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6910 # Speed up: don't consider the non `#define' lines.
6911 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6912 # Work around the forget-to-reset-the-flag bug.
6913 echo 't clr' >>$CONFIG_STATUS
6914 echo ': clr' >>$CONFIG_STATUS
6915 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6916 echo 'CEOF
6917 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6918 rm -f $tmp/in
6919 mv $tmp/out $tmp/in
6920 ' >>$CONFIG_STATUS
6921 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6922 rm -f conftest.defines
6923 mv conftest.tail conftest.defines
6924 done
6925 rm -f conftest.defines
6926 echo ' fi # egrep' >>$CONFIG_STATUS
6927 echo >>$CONFIG_STATUS
6928
6929 # Break up conftest.undefs because some shells have a limit on the size
6930 # of here documents, and old seds have small limits too (100 cmds).
6931 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6932 rm -f conftest.tail
6933 while grep . conftest.undefs >/dev/null
6934 do
6935 # Write a limited-size here document to $tmp/undefs.sed.
6936 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6937 # Speed up: don't consider the non `#undef'
6938 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6939 # Work around the forget-to-reset-the-flag bug.
6940 echo 't clr' >>$CONFIG_STATUS
6941 echo ': clr' >>$CONFIG_STATUS
6942 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6943 echo 'CEOF
6944 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6945 rm -f $tmp/in
6946 mv $tmp/out $tmp/in
6947 ' >>$CONFIG_STATUS
6948 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6949 rm -f conftest.undefs
6950 mv conftest.tail conftest.undefs
6951 done
6952 rm -f conftest.undefs
6953
6954 cat >>$CONFIG_STATUS <<\_ACEOF
6955 # Let's still pretend it is `configure' which instantiates (i.e., don't
6956 # use $as_me), people would be surprised to read:
6957 # /* config.h. Generated by config.status. */
6958 if test x"$ac_file" = x-; then
6959 echo "/* Generated by configure. */" >$tmp/config.h
6960 else
6961 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6962 fi
6963 cat $tmp/in >>$tmp/config.h
6964 rm -f $tmp/in
6965 if test x"$ac_file" != x-; then
6966 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6967 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6968 echo "$as_me: $ac_file is unchanged" >&6;}
6969 else
6970 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6972 X"$ac_file" : 'X\(//\)[^/]' \| \
6973 X"$ac_file" : 'X\(//\)$' \| \
6974 X"$ac_file" : 'X\(/\)' \| \
6975 . : '\(.\)' 2>/dev/null ||
6976 echo X"$ac_file" |
6977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6979 /^X\(\/\/\)$/{ s//\1/; q; }
6980 /^X\(\/\).*/{ s//\1/; q; }
6981 s/.*/./; q'`
6982 { case "$ac_dir" in
6983 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6984 *) as_incr_dir=.;;
6985 esac
6986 as_dummy="$ac_dir"
6987 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6988 case $as_mkdir_dir in
6989 # Skip DOS drivespec
6990 ?:) as_incr_dir=$as_mkdir_dir ;;
6991 *)
6992 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6993 test -d "$as_incr_dir" ||
6994 mkdir "$as_incr_dir" ||
6995 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6996 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6997 { (exit 1); exit 1; }; }
6998 ;;
6999 esac
7000 done; }
7001
7002 rm -f $ac_file
7003 mv $tmp/config.h $ac_file
7004 fi
7005 else
7006 cat $tmp/config.h
7007 rm -f $tmp/config.h
7008 fi
7009 done
7010 _ACEOF
7011
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7013
7014 { (exit 0); exit 0; }
7015 _ACEOF
7016 chmod +x $CONFIG_STATUS
7017 ac_clean_files=$ac_clean_files_save
7018
7019
7020 # configure is writing to config.log, and then calls config.status.
7021 # config.status does its own redirection, appending to config.log.
7022 # Unfortunately, on DOS this fails, as config.log is still kept open
7023 # by configure, so config.status won't be able to write to it; its
7024 # output is simply discarded. So we exec the FD to /dev/null,
7025 # effectively closing config.log, so it can be properly (re)opened and
7026 # appended to by config.status. When coming back to configure, we
7027 # need to make the FD available again.
7028 if test "$no_create" != yes; then
7029 ac_cs_success=:
7030 exec 5>/dev/null
7031 $SHELL $CONFIG_STATUS || ac_cs_success=false
7032 exec 5>>config.log
7033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7034 # would make configure fail if this is the last instruction.
7035 $ac_cs_success || { (exit 1); exit 1; }
7036 fi
7037

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26