wmthrottle: Add version 0.1.1 to repository.
[dockapps.git] / wmthrottle / configure
blobf4b7bb9a73fd57aa4787b691fb64cd4f9d627267
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for wmapmload 0.3.2.
5 # Report bugs to <tnemeth@free.fr>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 if expr a : '\(a\)' >/dev/null 2>&1; then
13 as_expr=expr
14 else
15 as_expr=false
19 ## --------------------- ##
20 ## M4sh Initialization. ##
21 ## --------------------- ##
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # NLS nuisances.
32 # Support unset when possible.
33 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 as_unset=unset
35 else
36 as_unset=false
39 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40 { $as_unset LANG || test "${LANG+set}" != set; } ||
41 { LANG=C; export LANG; }
42 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44 { LC_ALL=C; export LC_ALL; }
45 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47 { LC_TIME=C; export LC_TIME; }
48 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50 { LC_CTYPE=C; export LC_CTYPE; }
51 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53 { LANGUAGE=C; export LANGUAGE; }
54 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56 { LC_COLLATE=C; export LC_COLLATE; }
57 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59 { LC_NUMERIC=C; export LC_NUMERIC; }
60 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62 { LC_MESSAGES=C; export LC_MESSAGES; }
65 # Name of the executable.
66 as_me=`(basename "$0") 2>/dev/null ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
89 chmod +x conftest.sh
90 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
95 rm -f conftest.sh
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
151 esac
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
213 rm -f conf$$ conf$$.exe conf$$.file
215 as_executable_p="test -f"
217 # Sed expression to map a string onto a valid CPP name.
218 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
220 # Sed expression to map a string onto a valid variable name.
221 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # IFS
225 # We need space, tab and new line, in precisely that order.
226 as_nl='
228 IFS=" $as_nl"
230 # CDPATH.
231 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # Name of the host.
235 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236 # so uname gets run too.
237 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
239 exec 6>&1
242 # Initializations.
244 ac_default_prefix=/usr/local
245 cross_compiling=no
246 subdirs=
247 MFLAGS=
248 MAKEFLAGS=
249 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Maximum number of lines to put in a shell here document.
252 # This variable seems obsolete. It should probably be removed, and
253 # only ac_max_sed_lines should be used.
254 : ${ac_max_here_lines=38}
256 # Identity of this package.
257 PACKAGE_NAME='wmapmload'
258 PACKAGE_TARNAME='wmapmload'
259 PACKAGE_VERSION='0.3.2'
260 PACKAGE_STRING='wmapmload 0.3.2'
261 PACKAGE_BUGREPORT='tnemeth@free.fr'
263 ac_unique_file="src/main.c"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
266 #include <stdio.h>
267 #if HAVE_SYS_TYPES_H
268 # include <sys/types.h>
269 #endif
270 #if HAVE_SYS_STAT_H
271 # include <sys/stat.h>
272 #endif
273 #if STDC_HEADERS
274 # include <stdlib.h>
275 # include <stddef.h>
276 #else
277 # if HAVE_STDLIB_H
278 # include <stdlib.h>
279 # endif
280 #endif
281 #if HAVE_STRING_H
282 # if !STDC_HEADERS && HAVE_MEMORY_H
283 # include <memory.h>
284 # endif
285 # include <string.h>
286 #endif
287 #if HAVE_STRINGS_H
288 # include <strings.h>
289 #endif
290 #if HAVE_INTTYPES_H
291 # include <inttypes.h>
292 #else
293 # if HAVE_STDINT_H
294 # include <stdint.h>
295 # endif
296 #endif
297 #if HAVE_UNISTD_H
298 # include <unistd.h>
299 #endif"
302 # Initialize some variables set by options.
303 ac_init_help=
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
307 cache_file=/dev/null
308 exec_prefix=NONE
309 no_create=
310 no_recursion=
311 prefix=NONE
312 program_prefix=NONE
313 program_suffix=NONE
314 program_transform_name=s,x,x,
315 silent=
316 site=
317 srcdir=
318 verbose=
319 x_includes=NONE
320 x_libraries=NONE
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
340 ac_prev=
341 for ac_option
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
346 ac_prev=
347 continue
350 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
352 # Accept the important Cygnus configure options, so we can diagnose typos.
354 case $ac_option in
356 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 ac_prev=bindir ;;
358 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 bindir=$ac_optarg ;;
361 -build | --build | --buil | --bui | --bu)
362 ac_prev=build_alias ;;
363 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364 build_alias=$ac_optarg ;;
366 -cache-file | --cache-file | --cache-fil | --cache-fi \
367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368 ac_prev=cache_file ;;
369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371 cache_file=$ac_optarg ;;
373 --config-cache | -C)
374 cache_file=config.cache ;;
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 ac_prev=datadir ;;
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 | --da=*)
380 datadir=$ac_optarg ;;
382 -disable-* | --disable-*)
383 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384 # Reject names that are not valid shell variable names.
385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389 eval "enable_$ac_feature=no" ;;
391 -enable-* | --enable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 case $ac_option in
399 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "enable_$ac_feature='$ac_optarg'" ;;
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
411 exec_prefix=$ac_optarg ;;
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
415 with_gas=yes ;;
417 -help | --help | --hel | --he | -h)
418 ac_init_help=long ;;
419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420 ac_init_help=recursive ;;
421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422 ac_init_help=short ;;
424 -host | --host | --hos | --ho)
425 ac_prev=host_alias ;;
426 -host=* | --host=* | --hos=* | --ho=*)
427 host_alias=$ac_optarg ;;
429 -includedir | --includedir | --includedi | --included | --include \
430 | --includ | --inclu | --incl | --inc)
431 ac_prev=includedir ;;
432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433 | --includ=* | --inclu=* | --incl=* | --inc=*)
434 includedir=$ac_optarg ;;
436 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 ac_prev=infodir ;;
438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439 infodir=$ac_optarg ;;
441 -libdir | --libdir | --libdi | --libd)
442 ac_prev=libdir ;;
443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 libdir=$ac_optarg ;;
446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447 | --libexe | --libex | --libe)
448 ac_prev=libexecdir ;;
449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450 | --libexe=* | --libex=* | --libe=*)
451 libexecdir=$ac_optarg ;;
453 -localstatedir | --localstatedir | --localstatedi | --localstated \
454 | --localstate | --localstat | --localsta | --localst \
455 | --locals | --local | --loca | --loc | --lo)
456 ac_prev=localstatedir ;;
457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460 localstatedir=$ac_optarg ;;
462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 ac_prev=mandir ;;
464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
465 mandir=$ac_optarg ;;
467 -nfp | --nfp | --nf)
468 # Obsolete; use --without-fp.
469 with_fp=no ;;
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c | -n)
473 no_create=yes ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 no_recursion=yes ;;
479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481 | --oldin | --oldi | --old | --ol | --o)
482 ac_prev=oldincludedir ;;
483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486 oldincludedir=$ac_optarg ;;
488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 ac_prev=prefix ;;
490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 prefix=$ac_optarg ;;
493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
494 | --program-pre | --program-pr | --program-p)
495 ac_prev=program_prefix ;;
496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498 program_prefix=$ac_optarg ;;
500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
501 | --program-suf | --program-su | --program-s)
502 ac_prev=program_suffix ;;
503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505 program_suffix=$ac_optarg ;;
507 -program-transform-name | --program-transform-name \
508 | --program-transform-nam | --program-transform-na \
509 | --program-transform-n | --program-transform- \
510 | --program-transform | --program-transfor \
511 | --program-transfo | --program-transf \
512 | --program-trans | --program-tran \
513 | --progr-tra | --program-tr | --program-t)
514 ac_prev=program_transform_name ;;
515 -program-transform-name=* | --program-transform-name=* \
516 | --program-transform-nam=* | --program-transform-na=* \
517 | --program-transform-n=* | --program-transform-=* \
518 | --program-transform=* | --program-transfor=* \
519 | --program-transfo=* | --program-transf=* \
520 | --program-trans=* | --program-tran=* \
521 | --progr-tra=* | --program-tr=* | --program-t=*)
522 program_transform_name=$ac_optarg ;;
524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525 | -silent | --silent | --silen | --sile | --sil)
526 silent=yes ;;
528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 ac_prev=sbindir ;;
530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 | --sbi=* | --sb=*)
532 sbindir=$ac_optarg ;;
534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536 | --sharedst | --shareds | --shared | --share | --shar \
537 | --sha | --sh)
538 ac_prev=sharedstatedir ;;
539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 | --sha=* | --sh=*)
543 sharedstatedir=$ac_optarg ;;
545 -site | --site | --sit)
546 ac_prev=site ;;
547 -site=* | --site=* | --sit=*)
548 site=$ac_optarg ;;
550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 ac_prev=srcdir ;;
552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 srcdir=$ac_optarg ;;
555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556 | --syscon | --sysco | --sysc | --sys | --sy)
557 ac_prev=sysconfdir ;;
558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560 sysconfdir=$ac_optarg ;;
562 -target | --target | --targe | --targ | --tar | --ta | --t)
563 ac_prev=target_alias ;;
564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565 target_alias=$ac_optarg ;;
567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 verbose=yes ;;
570 -version | --version | --versio | --versi | --vers | -V)
571 ac_init_version=: ;;
573 -with-* | --with-*)
574 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid package name: $ac_package" >&2
578 { (exit 1); exit 1; }; }
579 ac_package=`echo $ac_package| sed 's/-/_/g'`
580 case $ac_option in
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 *) ac_optarg=yes ;;
583 esac
584 eval "with_$ac_package='$ac_optarg'" ;;
586 -without-* | --without-*)
587 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package | sed 's/-/_/g'`
593 eval "with_$ac_package=no" ;;
595 --x)
596 # Obsolete; use --with-x.
597 with_x=yes ;;
599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600 | --x-incl | --x-inc | --x-in | --x-i)
601 ac_prev=x_includes ;;
602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604 x_includes=$ac_optarg ;;
606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608 ac_prev=x_libraries ;;
609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611 x_libraries=$ac_optarg ;;
613 -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615 { (exit 1); exit 1; }; }
618 *=*)
619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620 # Reject names that are not valid shell variable names.
621 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623 { (exit 1); exit 1; }; }
624 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625 eval "$ac_envvar='$ac_optarg'"
626 export $ac_envvar ;;
629 # FIXME: should be removed in autoconf 3.0.
630 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
636 esac
637 done
639 if test -n "$ac_prev"; then
640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641 { echo "$as_me: error: missing argument to $ac_option" >&2
642 { (exit 1); exit 1; }; }
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
648 eval ac_val=$`echo $ac_var`
649 case $ac_val in
650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
653 esac
654 done
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
671 build=$build_alias
672 host=$host_alias
673 target=$target_alias
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677 if test "x$build_alias" = x; then
678 cross_compiling=maybe
679 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680 If a cross compiler is detected then cross compile mode will be used." >&2
681 elif test "x$build_alias" != "x$host_alias"; then
682 cross_compiling=yes
686 ac_tool_prefix=
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
689 test "$silent" = yes && exec 6>/dev/null
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
702 echo X"$0" |
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
707 s/.*/./; q'`
708 srcdir=$ac_confdir
709 if test ! -r $srcdir/$ac_unique_file; then
710 srcdir=..
712 else
713 ac_srcdir_defaulted=no
715 if test ! -r $srcdir/$ac_unique_file; then
716 if test "$ac_srcdir_defaulted" = yes; then
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718 { (exit 1); exit 1; }; }
719 else
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721 { (exit 1); exit 1; }; }
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
738 ac_env_CC_value=$CC
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
759 # Report the --help message.
761 if test "$ac_init_help" = "long"; then
762 # Omit some internal or obsolete options to make the list less imposing.
763 # This message is too long to be a string in the A/UX 3.1 sh.
764 cat <<_ACEOF
765 \`configure' configures wmapmload 0.3.2 to adapt to many kinds of systems.
767 Usage: $0 [OPTION]... [VAR=VALUE]...
769 To assign environment variables (e.g., CC, CFLAGS...), specify them as
770 VAR=VALUE. See below for descriptions of some of the useful variables.
772 Defaults for the options are specified in brackets.
774 Configuration:
775 -h, --help display this help and exit
776 --help=short display options specific to this package
777 --help=recursive display the short help of all the included packages
778 -V, --version display version information and exit
779 -q, --quiet, --silent do not print \`checking...' messages
780 --cache-file=FILE cache test results in FILE [disabled]
781 -C, --config-cache alias for \`--cache-file=config.cache'
782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
785 _ACEOF
787 cat <<_ACEOF
788 Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
790 [$ac_default_prefix]
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 [PREFIX]
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
799 For better control, use the options below.
801 Fine tuning of the installation directories:
802 --bindir=DIR user executables [EPREFIX/bin]
803 --sbindir=DIR system admin executables [EPREFIX/sbin]
804 --libexecdir=DIR program executables [EPREFIX/libexec]
805 --datadir=DIR read-only architecture-independent data [PREFIX/share]
806 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
807 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
808 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
809 --libdir=DIR object code libraries [EPREFIX/lib]
810 --includedir=DIR C header files [PREFIX/include]
811 --oldincludedir=DIR C header files for non-gcc [/usr/include]
812 --infodir=DIR info documentation [PREFIX/info]
813 --mandir=DIR man documentation [PREFIX/man]
814 _ACEOF
816 cat <<\_ACEOF
818 Program names:
819 --program-prefix=PREFIX prepend PREFIX to installed program names
820 --program-suffix=SUFFIX append SUFFIX to installed program names
821 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
823 X features:
824 --x-includes=DIR X include files are in DIR
825 --x-libraries=DIR X library files are in DIR
827 System types:
828 --build=BUILD configure for building on BUILD [guessed]
829 --host=HOST cross-compile to build programs to run on HOST [BUILD]
830 --target=TARGET configure for building compilers for TARGET [HOST]
831 _ACEOF
834 if test -n "$ac_init_help"; then
835 case $ac_init_help in
836 short | recursive ) echo "Configuration of wmapmload 0.3.2:";;
837 esac
838 cat <<\_ACEOF
840 Optional Features:
841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843 --enable-debug turn on debugging default=on
845 Optional Packages:
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-libs-from pass compiler flags to look for libraries
849 --with-incs-from pass compiler flags to look for header files
850 --with-x use the X Window System
852 Some influential environment variables:
853 CC C compiler command
854 CFLAGS C compiler flags
855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856 nonstandard directory <lib dir>
857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858 headers in a nonstandard directory <include dir>
859 CPP C preprocessor
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
864 Report bugs to <tnemeth@free.fr>.
865 _ACEOF
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
875 if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 else
880 ac_dir_suffix= ac_top_builddir=
883 case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 esac
898 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
899 # absolute.
900 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
901 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
902 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
903 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
905 cd $ac_dir
906 # Check for guested configure; otherwise get Cygnus style configure.
907 if test -f $ac_srcdir/configure.gnu; then
908 echo
909 $SHELL $ac_srcdir/configure.gnu --help=recursive
910 elif test -f $ac_srcdir/configure; then
911 echo
912 $SHELL $ac_srcdir/configure --help=recursive
913 elif test -f $ac_srcdir/configure.ac ||
914 test -f $ac_srcdir/configure.in; then
915 echo
916 $ac_configure --help
917 else
918 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920 cd $ac_popdir
921 done
924 test -n "$ac_init_help" && exit 0
925 if $ac_init_version; then
926 cat <<\_ACEOF
927 wmapmload configure 0.3.2
928 generated by GNU Autoconf 2.53
930 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
931 Free Software Foundation, Inc.
932 This configure script is free software; the Free Software Foundation
933 gives unlimited permission to copy, distribute and modify it.
934 _ACEOF
935 exit 0
937 exec 5>config.log
938 cat >&5 <<_ACEOF
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
942 It was created by wmapmload $as_me 0.3.2, which was
943 generated by GNU Autoconf 2.53. Invocation command line was
945 $ $0 $@
947 _ACEOF
949 cat <<_ASUNAME
950 ## --------- ##
951 ## Platform. ##
952 ## --------- ##
954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
971 _ASUNAME
973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 for as_dir in $PATH
976 IFS=$as_save_IFS
977 test -z "$as_dir" && as_dir=.
978 echo "PATH: $as_dir"
979 done
981 } >&5
983 cat >&5 <<_ACEOF
986 ## ----------- ##
987 ## Core tests. ##
988 ## ----------- ##
990 _ACEOF
993 # Keep a trace of the command line.
994 # Strip out --no-create and --no-recursion so they do not pile up.
995 # Also quote any args containing shell meta-characters.
996 ac_configure_args=
997 ac_sep=
998 for ac_arg
1000 case $ac_arg in
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n ) continue ;;
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 continue ;;
1006 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1008 esac
1009 case " $ac_configure_args " in
1010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1011 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1012 ac_sep=" " ;;
1013 esac
1014 # Get rid of the leading space.
1015 done
1017 # When interrupted or exit'd, cleanup temporary files, and complete
1018 # config.log. We remove comments because anyway the quotes in there
1019 # would cause problems or look ugly.
1020 # WARNING: Be sure not to use single quotes in there, as some shells,
1021 # such as our DU 5.0 friend, will then `close' the trap.
1022 trap 'exit_status=$?
1023 # Save into config.log some information that might help in debugging.
1025 echo
1026 cat <<\_ASBOX
1027 ## ---------------- ##
1028 ## Cache variables. ##
1029 ## ---------------- ##
1030 _ASBOX
1031 echo
1032 # The following way of writing the cache mishandles newlines in values,
1034 (set) 2>&1 |
1035 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1036 *ac_space=\ *)
1037 sed -n \
1038 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1042 sed -n \
1043 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1045 esac;
1047 echo
1048 if test -s confdefs.h; then
1049 cat <<\_ASBOX
1050 ## ----------- ##
1051 ## confdefs.h. ##
1052 ## ----------- ##
1053 _ASBOX
1054 echo
1055 sed "/^$/d" confdefs.h
1056 echo
1058 test "$ac_signal" != 0 &&
1059 echo "$as_me: caught signal $ac_signal"
1060 echo "$as_me: exit $exit_status"
1061 } >&5
1062 rm -f core core.* *.core &&
1063 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1064 exit $exit_status
1066 for ac_signal in 1 2 13 15; do
1067 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1068 done
1069 ac_signal=0
1071 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1072 rm -rf conftest* confdefs.h
1073 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1074 echo >confdefs.h
1076 # Predefined preprocessor variables.
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_NAME "$PACKAGE_NAME"
1080 _ACEOF
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1085 _ACEOF
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1090 _ACEOF
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_STRING "$PACKAGE_STRING"
1095 _ACEOF
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1100 _ACEOF
1103 # Let the site file select an alternate cache file if it wants to.
1104 # Prefer explicitly selected file to automatically selected ones.
1105 if test -z "$CONFIG_SITE"; then
1106 if test "x$prefix" != xNONE; then
1107 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1108 else
1109 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1112 for ac_site_file in $CONFIG_SITE; do
1113 if test -r "$ac_site_file"; then
1114 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1115 echo "$as_me: loading site script $ac_site_file" >&6;}
1116 sed 's/^/| /' "$ac_site_file" >&5
1117 . "$ac_site_file"
1119 done
1121 if test -r "$cache_file"; then
1122 # Some versions of bash will fail to source /dev/null (special
1123 # files actually), so we avoid doing that.
1124 if test -f "$cache_file"; then
1125 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1126 echo "$as_me: loading cache $cache_file" >&6;}
1127 case $cache_file in
1128 [\\/]* | ?:[\\/]* ) . $cache_file;;
1129 *) . ./$cache_file;;
1130 esac
1132 else
1133 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1134 echo "$as_me: creating cache $cache_file" >&6;}
1135 >$cache_file
1138 # Check that the precious variables saved in the cache have kept the same
1139 # value.
1140 ac_cache_corrupted=false
1141 for ac_var in `(set) 2>&1 |
1142 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1144 eval ac_new_set=\$ac_env_${ac_var}_set
1145 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1146 eval ac_new_val="\$ac_env_${ac_var}_value"
1147 case $ac_old_set,$ac_new_set in
1148 set,)
1149 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1150 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1151 ac_cache_corrupted=: ;;
1152 ,set)
1153 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1154 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1155 ac_cache_corrupted=: ;;
1156 ,);;
1158 if test "x$ac_old_val" != "x$ac_new_val"; then
1159 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1160 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1161 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1162 echo "$as_me: former value: $ac_old_val" >&2;}
1163 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1164 echo "$as_me: current value: $ac_new_val" >&2;}
1165 ac_cache_corrupted=:
1166 fi;;
1167 esac
1168 # Pass precious variables to config.status.
1169 if test "$ac_new_set" = set; then
1170 case $ac_new_val in
1171 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1172 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1173 *) ac_arg=$ac_var=$ac_new_val ;;
1174 esac
1175 case " $ac_configure_args " in
1176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1177 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1178 esac
1180 done
1181 if $ac_cache_corrupted; then
1182 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1183 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1184 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1185 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1186 { (exit 1); exit 1; }; }
1189 ac_ext=c
1190 ac_cpp='$CPP $CPPFLAGS'
1191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1220 ac_aux_dir=
1221 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222 if test -f $ac_dir/install-sh; then
1223 ac_aux_dir=$ac_dir
1224 ac_install_sh="$ac_aux_dir/install-sh -c"
1225 break
1226 elif test -f $ac_dir/install.sh; then
1227 ac_aux_dir=$ac_dir
1228 ac_install_sh="$ac_aux_dir/install.sh -c"
1229 break
1230 elif test -f $ac_dir/shtool; then
1231 ac_aux_dir=$ac_dir
1232 ac_install_sh="$ac_aux_dir/shtool install -c"
1233 break
1235 done
1236 if test -z "$ac_aux_dir"; then
1237 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1238 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1239 { (exit 1); exit 1; }; }
1241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1243 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1245 # Make sure we can run config.sub.
1246 $ac_config_sub sun4 >/dev/null 2>&1 ||
1247 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1249 { (exit 1); exit 1; }; }
1251 echo "$as_me:$LINENO: checking build system type" >&5
1252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1253 if test "${ac_cv_build+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 else
1256 ac_cv_build_alias=$build_alias
1257 test -z "$ac_cv_build_alias" &&
1258 ac_cv_build_alias=`$ac_config_guess`
1259 test -z "$ac_cv_build_alias" &&
1260 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1262 { (exit 1); exit 1; }; }
1263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1264 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1266 { (exit 1); exit 1; }; }
1269 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1270 echo "${ECHO_T}$ac_cv_build" >&6
1271 build=$ac_cv_build
1272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1277 echo "$as_me:$LINENO: checking host system type" >&5
1278 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1279 if test "${ac_cv_host+set}" = set; then
1280 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 else
1282 ac_cv_host_alias=$host_alias
1283 test -z "$ac_cv_host_alias" &&
1284 ac_cv_host_alias=$ac_cv_build_alias
1285 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1286 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1287 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1288 { (exit 1); exit 1; }; }
1291 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1292 echo "${ECHO_T}$ac_cv_host" >&6
1293 host=$ac_cv_host
1294 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1299 echo "$as_me:$LINENO: checking target system type" >&5
1300 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1301 if test "${ac_cv_target+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304 ac_cv_target_alias=$target_alias
1305 test "x$ac_cv_target_alias" = "x" &&
1306 ac_cv_target_alias=$ac_cv_host_alias
1307 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1314 echo "${ECHO_T}$ac_cv_target" >&6
1315 target=$ac_cv_target
1316 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 # The aliases save the names the user supplied, while $host etc.
1322 # will get canonicalized.
1323 test -n "$target_alias" &&
1324 test "$program_prefix$program_suffix$program_transform_name" = \
1325 NONENONEs,x,x, &&
1326 program_prefix=${target_alias}-
1327 # Find a good install program. We prefer a C program (faster),
1328 # so one script is as good as another. But avoid the broken or
1329 # incompatible versions:
1330 # SysV /etc/install, /usr/sbin/install
1331 # SunOS /usr/etc/install
1332 # IRIX /sbin/install
1333 # AIX /bin/install
1334 # AmigaOS /C/install, which installs bootblocks on floppy discs
1335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1338 # ./install, which can be erroneously created by make from ./install.sh.
1339 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1340 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1341 if test -z "$INSTALL"; then
1342 if test "${ac_cv_path_install+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346 for as_dir in $PATH
1348 IFS=$as_save_IFS
1349 test -z "$as_dir" && as_dir=.
1350 # Account for people who put trailing slashes in PATH elements.
1351 case $as_dir/ in
1352 ./ | .// | /cC/* | \
1353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1354 /usr/ucb/* ) ;;
1356 # OSF1 and SCO ODT 3.0 have their own names for install.
1357 # Don't use installbsd from OSF since it installs stuff as root
1358 # by default.
1359 for ac_prog in ginstall scoinst install; do
1360 for ac_exec_ext in '' $ac_executable_extensions; do
1361 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1362 if test $ac_prog = install &&
1363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364 # AIX install. It has an incompatible calling convention.
1366 elif test $ac_prog = install &&
1367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1368 # program-specific install script used by HP pwplus--don't use.
1370 else
1371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1372 break 3
1375 done
1376 done
1378 esac
1379 done
1383 if test "${ac_cv_path_install+set}" = set; then
1384 INSTALL=$ac_cv_path_install
1385 else
1386 # As a last resort, use the slow shell script. We don't cache a
1387 # path for INSTALL within a source directory, because that will
1388 # break other packages using the cache if that directory is
1389 # removed, or if the path is relative.
1390 INSTALL=$ac_install_sh
1393 echo "$as_me:$LINENO: result: $INSTALL" >&5
1394 echo "${ECHO_T}$INSTALL" >&6
1396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1397 # It thinks the first close brace ends the variable substitution.
1398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1404 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1405 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1406 # Just in case
1407 sleep 1
1408 echo timestamp > conftestfile
1409 # Do `set' in a subshell so we don't clobber the current shell's
1410 # arguments. Must try -L first in case configure is actually a
1411 # symlink; some systems play weird games with the mod time of symlinks
1412 # (eg FreeBSD returns the mod time of the symlink's containing
1413 # directory).
1414 if (
1415 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1416 if test "$*" = "X"; then
1417 # -L didn't work.
1418 set X `ls -t $srcdir/configure conftestfile`
1420 if test "$*" != "X $srcdir/configure conftestfile" \
1421 && test "$*" != "X conftestfile $srcdir/configure"; then
1423 # If neither matched, then we have a broken ls. This can happen
1424 # if, for instance, CONFIG_SHELL is bash and it inherits a
1425 # broken ls alias from the environment. This has actually
1426 # happened. Such a system could not be considered "sane".
1427 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1428 alias in your environment" >&5
1429 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1430 alias in your environment" >&2;}
1431 { (exit 1); exit 1; }; }
1434 test "$2" = conftestfile
1436 then
1437 # Ok.
1439 else
1440 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1441 Check your system clock" >&5
1442 echo "$as_me: error: newly created file is older than distributed files!
1443 Check your system clock" >&2;}
1444 { (exit 1); exit 1; }; }
1446 rm -f conftest*
1447 echo "$as_me:$LINENO: result: yes" >&5
1448 echo "${ECHO_T}yes" >&6
1449 test "$program_prefix" != NONE &&
1450 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1451 # Use a double $ so make ignores it.
1452 test "$program_suffix" != NONE &&
1453 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1454 # Double any \ or $. echo might interpret backslashes.
1455 # By default was `s,x,x', remove it if useless.
1456 cat <<\_ACEOF >conftest.sed
1457 s/[\\$]/&&/g;s/;s,x,x,$//
1458 _ACEOF
1459 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1460 rm conftest.sed
1462 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1463 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1464 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1465 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 cat >conftest.make <<\_ACEOF
1469 all:
1470 @echo 'ac_maketemp="${MAKE}"'
1471 _ACEOF
1472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1473 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1474 if test -n "$ac_maketemp"; then
1475 eval ac_cv_prog_make_${ac_make}_set=yes
1476 else
1477 eval ac_cv_prog_make_${ac_make}_set=no
1479 rm -f conftest.make
1481 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1482 echo "$as_me:$LINENO: result: yes" >&5
1483 echo "${ECHO_T}yes" >&6
1484 SET_MAKE=
1485 else
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 SET_MAKE="MAKE=${MAKE-make}"
1492 PACKAGE=$PACKAGE_NAME
1494 VERSION=$PACKAGE_VERSION
1496 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1497 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1498 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1499 { (exit 1); exit 1; }; }
1502 cat >>confdefs.h <<_ACEOF
1503 #define PACKAGE "$PACKAGE"
1504 _ACEOF
1507 cat >>confdefs.h <<_ACEOF
1508 #define VERSION "$VERSION"
1509 _ACEOF
1513 missing_dir=`cd $ac_aux_dir && pwd`
1514 echo "$as_me:$LINENO: checking for working aclocal" >&5
1515 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1516 # Run test in a subshell; some versions of sh will print an error if
1517 # an executable is not found, even if stderr is redirected.
1518 # Redirect stdin to placate older versions of autoconf. Sigh.
1519 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1520 ACLOCAL=aclocal
1521 echo "$as_me:$LINENO: result: found" >&5
1522 echo "${ECHO_T}found" >&6
1523 else
1524 ACLOCAL="$missing_dir/missing aclocal"
1525 echo "$as_me:$LINENO: result: missing" >&5
1526 echo "${ECHO_T}missing" >&6
1529 echo "$as_me:$LINENO: checking for working autoconf" >&5
1530 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1531 # Run test in a subshell; some versions of sh will print an error if
1532 # an executable is not found, even if stderr is redirected.
1533 # Redirect stdin to placate older versions of autoconf. Sigh.
1534 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1535 AUTOCONF=autoconf
1536 echo "$as_me:$LINENO: result: found" >&5
1537 echo "${ECHO_T}found" >&6
1538 else
1539 AUTOCONF="$missing_dir/missing autoconf"
1540 echo "$as_me:$LINENO: result: missing" >&5
1541 echo "${ECHO_T}missing" >&6
1544 echo "$as_me:$LINENO: checking for working automake" >&5
1545 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1546 # Run test in a subshell; some versions of sh will print an error if
1547 # an executable is not found, even if stderr is redirected.
1548 # Redirect stdin to placate older versions of autoconf. Sigh.
1549 if (automake --version) < /dev/null > /dev/null 2>&1; then
1550 AUTOMAKE=automake
1551 echo "$as_me:$LINENO: result: found" >&5
1552 echo "${ECHO_T}found" >&6
1553 else
1554 AUTOMAKE="$missing_dir/missing automake"
1555 echo "$as_me:$LINENO: result: missing" >&5
1556 echo "${ECHO_T}missing" >&6
1559 echo "$as_me:$LINENO: checking for working autoheader" >&5
1560 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1561 # Run test in a subshell; some versions of sh will print an error if
1562 # an executable is not found, even if stderr is redirected.
1563 # Redirect stdin to placate older versions of autoconf. Sigh.
1564 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1565 AUTOHEADER=autoheader
1566 echo "$as_me:$LINENO: result: found" >&5
1567 echo "${ECHO_T}found" >&6
1568 else
1569 AUTOHEADER="$missing_dir/missing autoheader"
1570 echo "$as_me:$LINENO: result: missing" >&5
1571 echo "${ECHO_T}missing" >&6
1574 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1575 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1576 # Run test in a subshell; some versions of sh will print an error if
1577 # an executable is not found, even if stderr is redirected.
1578 # Redirect stdin to placate older versions of autoconf. Sigh.
1579 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1580 MAKEINFO=makeinfo
1581 echo "$as_me:$LINENO: result: found" >&5
1582 echo "${ECHO_T}found" >&6
1583 else
1584 MAKEINFO="$missing_dir/missing makeinfo"
1585 echo "$as_me:$LINENO: result: missing" >&5
1586 echo "${ECHO_T}missing" >&6
1593 ac_config_headers="$ac_config_headers config.h"
1595 ac_config_commands="$ac_config_commands default-1"
1598 for ac_prog in gawk mawk nawk awk
1600 # Extract the first word of "$ac_prog", so it can be a program name with args.
1601 set dummy $ac_prog; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_AWK+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 if test -n "$AWK"; then
1608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1609 else
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 ac_cv_prog_AWK="$ac_prog"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1621 done
1622 done
1626 AWK=$ac_cv_prog_AWK
1627 if test -n "$AWK"; then
1628 echo "$as_me:$LINENO: result: $AWK" >&5
1629 echo "${ECHO_T}$AWK" >&6
1630 else
1631 echo "$as_me:$LINENO: result: no" >&5
1632 echo "${ECHO_T}no" >&6
1635 test -n "$AWK" && break
1636 done
1638 ac_ext=c
1639 ac_cpp='$CPP $CPPFLAGS'
1640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1643 if test -n "$ac_tool_prefix"; then
1644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651 if test -n "$CC"; then
1652 ac_cv_prog_CC="$CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1665 done
1666 done
1670 CC=$ac_cv_prog_CC
1671 if test -n "$CC"; then
1672 echo "$as_me:$LINENO: result: $CC" >&5
1673 echo "${ECHO_T}$CC" >&6
1674 else
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1680 if test -z "$ac_cv_prog_CC"; then
1681 ac_ct_CC=$CC
1682 # Extract the first word of "gcc", so it can be a program name with args.
1683 set dummy gcc; ac_word=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689 if test -n "$ac_ct_CC"; then
1690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1691 else
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_ac_ct_CC="gcc"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1703 done
1704 done
1708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1709 if test -n "$ac_ct_CC"; then
1710 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1711 echo "${ECHO_T}$ac_ct_CC" >&6
1712 else
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1717 CC=$ac_ct_CC
1718 else
1719 CC="$ac_cv_prog_CC"
1722 if test -z "$CC"; then
1723 if test -n "$ac_tool_prefix"; then
1724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1725 set dummy ${ac_tool_prefix}cc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 if test -n "$CC"; then
1732 ac_cv_prog_CC="$CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_CC="${ac_tool_prefix}cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1745 done
1746 done
1750 CC=$ac_cv_prog_CC
1751 if test -n "$CC"; then
1752 echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1754 else
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1760 if test -z "$ac_cv_prog_CC"; then
1761 ac_ct_CC=$CC
1762 # Extract the first word of "cc", so it can be a program name with args.
1763 set dummy cc; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769 if test -n "$ac_ct_CC"; then
1770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_ac_ct_CC="cc"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1783 done
1784 done
1788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1789 if test -n "$ac_ct_CC"; then
1790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1791 echo "${ECHO_T}$ac_ct_CC" >&6
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 CC=$ac_ct_CC
1798 else
1799 CC="$ac_cv_prog_CC"
1803 if test -z "$CC"; then
1804 # Extract the first word of "cc", so it can be a program name with args.
1805 set dummy cc; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test.
1813 else
1814 ac_prog_rejected=no
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1823 ac_prog_rejected=yes
1824 continue
1826 ac_cv_prog_CC="cc"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1830 done
1831 done
1833 if test $ac_prog_rejected = yes; then
1834 # We found a bogon in the path, so make sure we never use it.
1835 set dummy $ac_cv_prog_CC
1836 shift
1837 if test $# != 0; then
1838 # We chose a different compiler from the bogus one.
1839 # However, it has the same basename, so the bogon will be chosen
1840 # first if we set CC to just the basename; use the full file name.
1841 shift
1842 set dummy "$as_dir/$ac_word" ${1+"$@"}
1843 shift
1844 ac_cv_prog_CC="$@"
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1859 if test -z "$CC"; then
1860 if test -n "$ac_tool_prefix"; then
1861 for ac_prog in cl
1863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1884 done
1885 done
1889 CC=$ac_cv_prog_CC
1890 if test -n "$CC"; then
1891 echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1898 test -n "$CC" && break
1899 done
1901 if test -z "$CC"; then
1902 ac_ct_CC=$CC
1903 for ac_prog in cl
1905 # Extract the first word of "$ac_prog", so it can be a program name with args.
1906 set dummy $ac_prog; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$ac_ct_CC"; then
1913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_ac_ct_CC="$ac_prog"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1932 if test -n "$ac_ct_CC"; then
1933 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1934 echo "${ECHO_T}$ac_ct_CC" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1940 test -n "$ac_ct_CC" && break
1941 done
1943 CC=$ac_ct_CC
1949 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1950 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1951 { (exit 1); exit 1; }; }
1953 # Provide some information about the compiler.
1954 echo "$as_me:$LINENO:" \
1955 "checking for C compiler version" >&5
1956 ac_compiler=`set X $ac_compile; echo $2`
1957 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1958 (eval $ac_compiler --version </dev/null >&5) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }
1962 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1963 (eval $ac_compiler -v </dev/null >&5) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }
1967 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1968 (eval $ac_compiler -V </dev/null >&5) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 #include "confdefs.h"
1977 #ifdef F77_DUMMY_MAIN
1978 # ifdef __cplusplus
1979 extern "C"
1980 # endif
1981 int F77_DUMMY_MAIN() { return 1; }
1982 #endif
1984 main ()
1988 return 0;
1990 _ACEOF
1991 ac_clean_files_save=$ac_clean_files
1992 ac_clean_files="$ac_clean_files a.out a.exe"
1993 # Try to create an executable without -o first, disregard a.out.
1994 # It will help us diagnose broken compilers, and finding out an intuition
1995 # of exeext.
1996 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1997 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1998 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000 (eval $ac_link_default) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; then
2004 # Find the output, starting from the most likely. This scheme is
2005 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006 # resort.
2008 # Be careful to initialize this variable, since it used to be cached.
2009 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010 ac_cv_exeext=
2011 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2012 ls a.out conftest 2>/dev/null;
2013 ls a.* conftest.* 2>/dev/null`; do
2014 case $ac_file in
2015 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2016 a.out ) # We found the default executable, but exeext='' is most
2017 # certainly right.
2018 break;;
2019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2021 export ac_cv_exeext
2022 break;;
2023 * ) break;;
2024 esac
2025 done
2026 else
2027 echo "$as_me: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2030 echo "$as_me: error: C compiler cannot create executables" >&2;}
2031 { (exit 77); exit 77; }; }
2034 ac_exeext=$ac_cv_exeext
2035 echo "$as_me:$LINENO: result: $ac_file" >&5
2036 echo "${ECHO_T}$ac_file" >&6
2038 # Check the compiler produces executables we can run. If not, either
2039 # the compiler is broken, or we cross compile.
2040 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2041 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2042 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2043 # If not cross compiling, check that we can run a simple program.
2044 if test "$cross_compiling" != yes; then
2045 if { ac_try='./$ac_file'
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 (eval $ac_try) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; }; then
2051 cross_compiling=no
2052 else
2053 if test "$cross_compiling" = maybe; then
2054 cross_compiling=yes
2055 else
2056 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2057 If you meant to cross compile, use \`--host'." >&5
2058 echo "$as_me: error: cannot run C compiled programs.
2059 If you meant to cross compile, use \`--host'." >&2;}
2060 { (exit 1); exit 1; }; }
2064 echo "$as_me:$LINENO: result: yes" >&5
2065 echo "${ECHO_T}yes" >&6
2067 rm -f a.out a.exe conftest$ac_cv_exeext
2068 ac_clean_files=$ac_clean_files_save
2069 # Check the compiler produces executables we can run. If not, either
2070 # the compiler is broken, or we cross compile.
2071 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2072 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2073 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2074 echo "${ECHO_T}$cross_compiling" >&6
2076 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2077 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2079 (eval $ac_link) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; then
2083 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2084 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2085 # work properly (i.e., refer to `conftest.exe'), while it won't with
2086 # `rm'.
2087 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2088 case $ac_file in
2089 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091 export ac_cv_exeext
2092 break;;
2093 * ) break;;
2094 esac
2095 done
2096 else
2097 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2099 { (exit 1); exit 1; }; }
2102 rm -f conftest$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2104 echo "${ECHO_T}$ac_cv_exeext" >&6
2106 rm -f conftest.$ac_ext
2107 EXEEXT=$ac_cv_exeext
2108 ac_exeext=$EXEEXT
2109 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2110 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2111 if test "${ac_cv_objext+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 #include "confdefs.h"
2118 #ifdef F77_DUMMY_MAIN
2119 # ifdef __cplusplus
2120 extern "C"
2121 # endif
2122 int F77_DUMMY_MAIN() { return 1; }
2123 #endif
2125 main ()
2129 return 0;
2131 _ACEOF
2132 rm -f conftest.o conftest.obj
2133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134 (eval $ac_compile) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; then
2138 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2139 case $ac_file in
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2142 break;;
2143 esac
2144 done
2145 else
2146 echo "$as_me: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2149 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2150 { (exit 1); exit 1; }; }
2153 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2155 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2156 echo "${ECHO_T}$ac_cv_objext" >&6
2157 OBJEXT=$ac_cv_objext
2158 ac_objext=$OBJEXT
2159 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 cat >conftest.$ac_ext <<_ACEOF
2165 #line $LINENO "configure"
2166 #include "confdefs.h"
2168 #ifdef F77_DUMMY_MAIN
2169 # ifdef __cplusplus
2170 extern "C"
2171 # endif
2172 int F77_DUMMY_MAIN() { return 1; }
2173 #endif
2175 main ()
2177 #ifndef __GNUC__
2178 choke me
2179 #endif
2182 return 0;
2184 _ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 (eval $ac_try) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2197 ac_compiler_gnu=yes
2198 else
2199 echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 ac_compiler_gnu=no
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2204 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2207 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2208 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2209 GCC=`test $ac_compiler_gnu = yes && echo yes`
2210 ac_test_CFLAGS=${CFLAGS+set}
2211 ac_save_CFLAGS=$CFLAGS
2212 CFLAGS="-g"
2213 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2214 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2215 if test "${ac_cv_prog_cc_g+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #line $LINENO "configure"
2220 #include "confdefs.h"
2222 #ifdef F77_DUMMY_MAIN
2223 # ifdef __cplusplus
2224 extern "C"
2225 # endif
2226 int F77_DUMMY_MAIN() { return 1; }
2227 #endif
2229 main ()
2233 return 0;
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 ac_cv_prog_cc_g=no
2254 rm -f conftest.$ac_objext conftest.$ac_ext
2256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2258 if test "$ac_test_CFLAGS" = set; then
2259 CFLAGS=$ac_save_CFLAGS
2260 elif test $ac_cv_prog_cc_g = yes; then
2261 if test "$GCC" = yes; then
2262 CFLAGS="-g -O2"
2263 else
2264 CFLAGS="-g"
2266 else
2267 if test "$GCC" = yes; then
2268 CFLAGS="-O2"
2269 else
2270 CFLAGS=
2273 # Some people use a C++ compiler to compile C. Since we use `exit',
2274 # in C++ we need to declare it. In case someone uses the same compiler
2275 # for both compiling C and C++ we need to have the C++ compiler decide
2276 # the declaration of exit, since it's the most demanding environment.
2277 cat >conftest.$ac_ext <<_ACEOF
2278 #ifndef __cplusplus
2279 choke me
2280 #endif
2281 _ACEOF
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 for ac_declaration in \
2296 '#include <stdlib.h>' \
2297 'extern "C" void std::exit (int) throw (); using std::exit;' \
2298 'extern "C" void std::exit (int); using std::exit;' \
2299 'extern "C" void exit (int) throw ();' \
2300 'extern "C" void exit (int);' \
2301 'void exit (int);'
2303 cat >conftest.$ac_ext <<_ACEOF
2304 #line $LINENO "configure"
2305 #include "confdefs.h"
2306 #include <stdlib.h>
2307 $ac_declaration
2308 #ifdef F77_DUMMY_MAIN
2309 # ifdef __cplusplus
2310 extern "C"
2311 # endif
2312 int F77_DUMMY_MAIN() { return 1; }
2313 #endif
2315 main ()
2317 exit (42);
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -s conftest.$ac_objext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2338 continue
2340 rm -f conftest.$ac_objext conftest.$ac_ext
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2344 $ac_declaration
2345 #ifdef F77_DUMMY_MAIN
2346 # ifdef __cplusplus
2347 extern "C"
2348 # endif
2349 int F77_DUMMY_MAIN() { return 1; }
2350 #endif
2352 main ()
2354 exit (42);
2356 return 0;
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 break
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2376 rm -f conftest.$ac_objext conftest.$ac_ext
2377 done
2378 rm -f conftest*
2379 if test -n "$ac_declaration"; then
2380 echo '#ifdef __cplusplus' >>confdefs.h
2381 echo $ac_declaration >>confdefs.h
2382 echo '#endif' >>confdefs.h
2385 else
2386 echo "$as_me: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2389 rm -f conftest.$ac_objext conftest.$ac_ext
2390 ac_ext=c
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 # Find a good install program. We prefer a C program (faster),
2397 # so one script is as good as another. But avoid the broken or
2398 # incompatible versions:
2399 # SysV /etc/install, /usr/sbin/install
2400 # SunOS /usr/etc/install
2401 # IRIX /sbin/install
2402 # AIX /bin/install
2403 # AmigaOS /C/install, which installs bootblocks on floppy discs
2404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407 # ./install, which can be erroneously created by make from ./install.sh.
2408 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2409 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2410 if test -z "$INSTALL"; then
2411 if test "${ac_cv_path_install+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 # Account for people who put trailing slashes in PATH elements.
2420 case $as_dir/ in
2421 ./ | .// | /cC/* | \
2422 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2423 /usr/ucb/* ) ;;
2425 # OSF1 and SCO ODT 3.0 have their own names for install.
2426 # Don't use installbsd from OSF since it installs stuff as root
2427 # by default.
2428 for ac_prog in ginstall scoinst install; do
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2431 if test $ac_prog = install &&
2432 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433 # AIX install. It has an incompatible calling convention.
2435 elif test $ac_prog = install &&
2436 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2437 # program-specific install script used by HP pwplus--don't use.
2439 else
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2444 done
2445 done
2447 esac
2448 done
2452 if test "${ac_cv_path_install+set}" = set; then
2453 INSTALL=$ac_cv_path_install
2454 else
2455 # As a last resort, use the slow shell script. We don't cache a
2456 # path for INSTALL within a source directory, because that will
2457 # break other packages using the cache if that directory is
2458 # removed, or if the path is relative.
2459 INSTALL=$ac_install_sh
2462 echo "$as_me:$LINENO: result: $INSTALL" >&5
2463 echo "${ECHO_T}$INSTALL" >&6
2465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2466 # It thinks the first close brace ends the variable substitution.
2467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2473 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2474 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2475 LN_S=$as_ln_s
2476 if test "$LN_S" = "ln -s"; then
2477 echo "$as_me:$LINENO: result: yes" >&5
2478 echo "${ECHO_T}yes" >&6
2479 else
2480 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2481 echo "${ECHO_T}no, using $LN_S" >&6
2486 # Check whether --with-libs-from or --without-libs-from was given.
2487 if test "${with_libs_from+set}" = set; then
2488 withval="$with_libs_from"
2489 lib_search_path="$withval $lib_search_path"
2493 # Check whether --with-incs-from or --without-incs-from was given.
2494 if test "${with_incs_from+set}" = set; then
2495 withval="$with_incs_from"
2496 inc_search_path="$withval $inc_search_path"
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2508 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2509 # On Suns, sometimes $CPP names a directory.
2510 if test -n "$CPP" && test -d "$CPP"; then
2511 CPP=
2513 if test -z "$CPP"; then
2514 if test "${ac_cv_prog_CPP+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 # Double quotes because CPP needs to be expanded
2518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2520 ac_preproc_ok=false
2521 for ac_c_preproc_warn_flag in '' yes
2523 # Use a header file that comes with gcc, so configuring glibc
2524 # with a fresh cross-compiler works.
2525 # On the NeXT, cc -E runs the code through the compiler's parser,
2526 # not just through cpp. "Syntax error" is here to catch this case.
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 #include "confdefs.h"
2530 #include <assert.h>
2531 Syntax error
2532 _ACEOF
2533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535 ac_status=$?
2536 egrep -v '^ *\+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } >/dev/null; then
2541 if test -s conftest.err; then
2542 ac_cpp_err=$ac_c_preproc_warn_flag
2543 else
2544 ac_cpp_err=
2546 else
2547 ac_cpp_err=yes
2549 if test -z "$ac_cpp_err"; then
2551 else
2552 echo "$as_me: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2554 # Broken: fails on valid input.
2555 continue
2557 rm -f conftest.err conftest.$ac_ext
2559 # OK, works on sane cases. Now check whether non-existent headers
2560 # can be detected and how.
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 #include "confdefs.h"
2564 #include <ac_nonexistent.h>
2565 _ACEOF
2566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2568 ac_status=$?
2569 egrep -v '^ *\+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } >/dev/null; then
2574 if test -s conftest.err; then
2575 ac_cpp_err=$ac_c_preproc_warn_flag
2576 else
2577 ac_cpp_err=
2579 else
2580 ac_cpp_err=yes
2582 if test -z "$ac_cpp_err"; then
2583 # Broken: success on invalid input.
2584 continue
2585 else
2586 echo "$as_me: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 # Passes both tests.
2589 ac_preproc_ok=:
2590 break
2592 rm -f conftest.err conftest.$ac_ext
2594 done
2595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2596 rm -f conftest.err conftest.$ac_ext
2597 if $ac_preproc_ok; then
2598 break
2601 done
2602 ac_cv_prog_CPP=$CPP
2605 CPP=$ac_cv_prog_CPP
2606 else
2607 ac_cv_prog_CPP=$CPP
2609 echo "$as_me:$LINENO: result: $CPP" >&5
2610 echo "${ECHO_T}$CPP" >&6
2611 ac_preproc_ok=false
2612 for ac_c_preproc_warn_flag in '' yes
2614 # Use a header file that comes with gcc, so configuring glibc
2615 # with a fresh cross-compiler works.
2616 # On the NeXT, cc -E runs the code through the compiler's parser,
2617 # not just through cpp. "Syntax error" is here to catch this case.
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 #include "confdefs.h"
2621 #include <assert.h>
2622 Syntax error
2623 _ACEOF
2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626 ac_status=$?
2627 egrep -v '^ *\+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } >/dev/null; then
2632 if test -s conftest.err; then
2633 ac_cpp_err=$ac_c_preproc_warn_flag
2634 else
2635 ac_cpp_err=
2637 else
2638 ac_cpp_err=yes
2640 if test -z "$ac_cpp_err"; then
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 # Broken: fails on valid input.
2646 continue
2648 rm -f conftest.err conftest.$ac_ext
2650 # OK, works on sane cases. Now check whether non-existent headers
2651 # can be detected and how.
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655 #include <ac_nonexistent.h>
2656 _ACEOF
2657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659 ac_status=$?
2660 egrep -v '^ *\+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } >/dev/null; then
2665 if test -s conftest.err; then
2666 ac_cpp_err=$ac_c_preproc_warn_flag
2667 else
2668 ac_cpp_err=
2670 else
2671 ac_cpp_err=yes
2673 if test -z "$ac_cpp_err"; then
2674 # Broken: success on invalid input.
2675 continue
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 # Passes both tests.
2680 ac_preproc_ok=:
2681 break
2683 rm -f conftest.err conftest.$ac_ext
2685 done
2686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2687 rm -f conftest.err conftest.$ac_ext
2688 if $ac_preproc_ok; then
2690 else
2691 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2692 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2693 { (exit 1); exit 1; }; }
2696 ac_ext=c
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 echo "$as_me:$LINENO: checking for X" >&5
2704 echo $ECHO_N "checking for X... $ECHO_C" >&6
2707 # Check whether --with-x or --without-x was given.
2708 if test "${with_x+set}" = set; then
2709 withval="$with_x"
2712 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2713 if test "x$with_x" = xno; then
2714 # The user explicitly disabled X.
2715 have_x=disabled
2716 else
2717 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2718 # Both variables are already set.
2719 have_x=yes
2720 else
2721 if test "${ac_cv_have_x+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 # One or both of the vars are not set, and there is no cached value.
2725 ac_x_includes=no ac_x_libraries=no
2726 rm -fr conftest.dir
2727 if mkdir conftest.dir; then
2728 cd conftest.dir
2729 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2730 cat >Imakefile <<'_ACEOF'
2731 acfindx:
2732 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2733 _ACEOF
2734 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2736 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2737 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2738 for ac_extension in a so sl; do
2739 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2740 test -f $ac_im_libdir/libX11.$ac_extension; then
2741 ac_im_usrlibdir=$ac_im_libdir; break
2743 done
2744 # Screen out bogus values from the imake configuration. They are
2745 # bogus both because they are the default anyway, and because
2746 # using them would break gcc on systems where it needs fixed includes.
2747 case $ac_im_incroot in
2748 /usr/include) ;;
2749 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2750 esac
2751 case $ac_im_usrlibdir in
2752 /usr/lib | /lib) ;;
2753 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2754 esac
2756 cd ..
2757 rm -fr conftest.dir
2760 # Standard set of common directories for X headers.
2761 # Check X11 before X11Rn because it is often a symlink to the current release.
2762 ac_x_header_dirs='
2763 /usr/X11/include
2764 /usr/X11R6/include
2765 /usr/X11R5/include
2766 /usr/X11R4/include
2768 /usr/include/X11
2769 /usr/include/X11R6
2770 /usr/include/X11R5
2771 /usr/include/X11R4
2773 /usr/local/X11/include
2774 /usr/local/X11R6/include
2775 /usr/local/X11R5/include
2776 /usr/local/X11R4/include
2778 /usr/local/include/X11
2779 /usr/local/include/X11R6
2780 /usr/local/include/X11R5
2781 /usr/local/include/X11R4
2783 /usr/X386/include
2784 /usr/x386/include
2785 /usr/XFree86/include/X11
2787 /usr/include
2788 /usr/local/include
2789 /usr/unsupported/include
2790 /usr/athena/include
2791 /usr/local/x11r5/include
2792 /usr/lpp/Xamples/include
2794 /usr/openwin/include
2795 /usr/openwin/share/include'
2797 if test "$ac_x_includes" = no; then
2798 # Guess where to find include files, by looking for Intrinsic.h.
2799 # First, try using that file with no special directory specified.
2800 cat >conftest.$ac_ext <<_ACEOF
2801 #line $LINENO "configure"
2802 #include "confdefs.h"
2803 #include <X11/Intrinsic.h>
2804 _ACEOF
2805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2807 ac_status=$?
2808 egrep -v '^ *\+' conftest.er1 >conftest.err
2809 rm -f conftest.er1
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } >/dev/null; then
2813 if test -s conftest.err; then
2814 ac_cpp_err=$ac_c_preproc_warn_flag
2815 else
2816 ac_cpp_err=
2818 else
2819 ac_cpp_err=yes
2821 if test -z "$ac_cpp_err"; then
2822 # We can compile using X headers with no special include directory.
2823 ac_x_includes=
2824 else
2825 echo "$as_me: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2827 for ac_dir in $ac_x_header_dirs; do
2828 if test -r "$ac_dir/X11/Intrinsic.h"; then
2829 ac_x_includes=$ac_dir
2830 break
2832 done
2834 rm -f conftest.err conftest.$ac_ext
2835 fi # $ac_x_includes = no
2837 if test "$ac_x_libraries" = no; then
2838 # Check for the libraries.
2839 # See if we find them without any special options.
2840 # Don't add to $LIBS permanently.
2841 ac_save_LIBS=$LIBS
2842 LIBS="-lXt $LIBS"
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #line $LINENO "configure"
2845 #include "confdefs.h"
2846 #include <X11/Intrinsic.h>
2847 #ifdef F77_DUMMY_MAIN
2848 # ifdef __cplusplus
2849 extern "C"
2850 # endif
2851 int F77_DUMMY_MAIN() { return 1; }
2852 #endif
2854 main ()
2856 XtMalloc (0)
2858 return 0;
2860 _ACEOF
2861 rm -f conftest.$ac_objext conftest$ac_exeext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2863 (eval $ac_link) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -s conftest$ac_exeext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 LIBS=$ac_save_LIBS
2874 # We can link X programs with no special library path.
2875 ac_x_libraries=
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2879 LIBS=$ac_save_LIBS
2880 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2882 # Don't even attempt the hair of trying to link an X program!
2883 for ac_extension in a so sl; do
2884 if test -r $ac_dir/libXt.$ac_extension; then
2885 ac_x_libraries=$ac_dir
2886 break 2
2888 done
2889 done
2891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2892 fi # $ac_x_libraries = no
2894 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2895 # Didn't find X anywhere. Cache the known absence of X.
2896 ac_cv_have_x="have_x=no"
2897 else
2898 # Record where we found X for the cache.
2899 ac_cv_have_x="have_x=yes \
2900 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2905 eval "$ac_cv_have_x"
2906 fi # $with_x != no
2908 if test "$have_x" != yes; then
2909 echo "$as_me:$LINENO: result: $have_x" >&5
2910 echo "${ECHO_T}$have_x" >&6
2911 no_x=yes
2912 else
2913 # If each of the values was on the command line, it overrides each guess.
2914 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2915 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2916 # Update the cache value to reflect the command line values.
2917 ac_cv_have_x="have_x=yes \
2918 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2919 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2920 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2923 if test "$no_x" = yes; then
2924 # Not all programs may use this symbol, but it does not hurt to define it.
2926 cat >>confdefs.h <<\_ACEOF
2927 #define X_DISPLAY_MISSING 1
2928 _ACEOF
2930 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2931 else
2932 if test -n "$x_includes"; then
2933 X_CFLAGS="$X_CFLAGS -I$x_includes"
2936 # It would also be nice to do this for all -L options, not just this one.
2937 if test -n "$x_libraries"; then
2938 X_LIBS="$X_LIBS -L$x_libraries"
2939 # For Solaris; some versions of Sun CC require a space after -R and
2940 # others require no space. Words are not sufficient . . . .
2941 case `(uname -sr) 2>/dev/null` in
2942 "SunOS 5"*)
2943 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2944 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2945 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2946 cat >conftest.$ac_ext <<_ACEOF
2947 #line $LINENO "configure"
2948 #include "confdefs.h"
2950 #ifdef F77_DUMMY_MAIN
2951 # ifdef __cplusplus
2952 extern "C"
2953 # endif
2954 int F77_DUMMY_MAIN() { return 1; }
2955 #endif
2957 main ()
2961 return 0;
2963 _ACEOF
2964 rm -f conftest.$ac_objext conftest$ac_exeext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2966 (eval $ac_link) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -s conftest$ac_exeext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 (eval $ac_try) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_R_nospace=yes
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 ac_R_nospace=no
2982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2983 if test $ac_R_nospace = yes; then
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2986 X_LIBS="$X_LIBS -R$x_libraries"
2987 else
2988 LIBS="$ac_xsave_LIBS -R $x_libraries"
2989 cat >conftest.$ac_ext <<_ACEOF
2990 #line $LINENO "configure"
2991 #include "confdefs.h"
2993 #ifdef F77_DUMMY_MAIN
2994 # ifdef __cplusplus
2995 extern "C"
2996 # endif
2997 int F77_DUMMY_MAIN() { return 1; }
2998 #endif
3000 main ()
3004 return 0;
3006 _ACEOF
3007 rm -f conftest.$ac_objext conftest$ac_exeext
3008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3009 (eval $ac_link) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -s conftest$ac_exeext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 ac_R_space=yes
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3023 ac_R_space=no
3025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3026 if test $ac_R_space = yes; then
3027 echo "$as_me:$LINENO: result: yes" >&5
3028 echo "${ECHO_T}yes" >&6
3029 X_LIBS="$X_LIBS -R $x_libraries"
3030 else
3031 echo "$as_me:$LINENO: result: neither works" >&5
3032 echo "${ECHO_T}neither works" >&6
3035 LIBS=$ac_xsave_LIBS
3036 esac
3039 # Check for system-dependent libraries X programs must link with.
3040 # Do this before checking for the system-independent R6 libraries
3041 # (-lICE), since we may need -lsocket or whatever for X linking.
3043 if test "$ISC" = yes; then
3044 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3045 else
3046 # Martyn Johnson says this is needed for Ultrix, if the X
3047 # libraries were built with DECnet support. And Karl Berry says
3048 # the Alpha needs dnet_stub (dnet does not exist).
3049 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3050 cat >conftest.$ac_ext <<_ACEOF
3051 #line $LINENO "configure"
3052 #include "confdefs.h"
3054 /* Override any gcc2 internal prototype to avoid an error. */
3055 #ifdef __cplusplus
3056 extern "C"
3057 #endif
3058 /* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3060 char XOpenDisplay ();
3061 #ifdef F77_DUMMY_MAIN
3062 # ifdef __cplusplus
3063 extern "C"
3064 # endif
3065 int F77_DUMMY_MAIN() { return 1; }
3066 #endif
3068 main ()
3070 XOpenDisplay ();
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext conftest$ac_exeext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3077 (eval $ac_link) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -s conftest$ac_exeext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3091 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3092 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3093 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 ac_check_lib_save_LIBS=$LIBS
3097 LIBS="-ldnet $LIBS"
3098 cat >conftest.$ac_ext <<_ACEOF
3099 #line $LINENO "configure"
3100 #include "confdefs.h"
3102 /* Override any gcc2 internal prototype to avoid an error. */
3103 #ifdef __cplusplus
3104 extern "C"
3105 #endif
3106 /* We use char because int might match the return type of a gcc2
3107 builtin and then its argument prototype would still apply. */
3108 char dnet_ntoa ();
3109 #ifdef F77_DUMMY_MAIN
3110 # ifdef __cplusplus
3111 extern "C"
3112 # endif
3113 int F77_DUMMY_MAIN() { return 1; }
3114 #endif
3116 main ()
3118 dnet_ntoa ();
3120 return 0;
3122 _ACEOF
3123 rm -f conftest.$ac_objext conftest$ac_exeext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125 (eval $ac_link) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest$ac_exeext'
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 ac_cv_lib_dnet_dnet_ntoa=yes
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 ac_cv_lib_dnet_dnet_ntoa=no
3141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3142 LIBS=$ac_check_lib_save_LIBS
3144 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3145 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3146 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3147 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3150 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3151 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3152 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3153 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 ac_check_lib_save_LIBS=$LIBS
3157 LIBS="-ldnet_stub $LIBS"
3158 cat >conftest.$ac_ext <<_ACEOF
3159 #line $LINENO "configure"
3160 #include "confdefs.h"
3162 /* Override any gcc2 internal prototype to avoid an error. */
3163 #ifdef __cplusplus
3164 extern "C"
3165 #endif
3166 /* We use char because int might match the return type of a gcc2
3167 builtin and then its argument prototype would still apply. */
3168 char dnet_ntoa ();
3169 #ifdef F77_DUMMY_MAIN
3170 # ifdef __cplusplus
3171 extern "C"
3172 # endif
3173 int F77_DUMMY_MAIN() { return 1; }
3174 #endif
3176 main ()
3178 dnet_ntoa ();
3180 return 0;
3182 _ACEOF
3183 rm -f conftest.$ac_objext conftest$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest$ac_exeext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3199 ac_cv_lib_dnet_stub_dnet_ntoa=no
3201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3202 LIBS=$ac_check_lib_save_LIBS
3204 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3205 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3206 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3207 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3213 LIBS="$ac_xsave_LIBS"
3215 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3216 # to get the SysV transport functions.
3217 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3218 # needs -lnsl.
3219 # The nsl library prevents programs from opening the X display
3220 # on Irix 5.2, according to T.E. Dickey.
3221 # The functions gethostbyname, getservbyname, and inet_addr are
3222 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3223 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3224 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3225 if test "${ac_cv_func_gethostbyname+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 #include "confdefs.h"
3231 /* System header to define __stub macros and hopefully few prototypes,
3232 which can conflict with char gethostbyname (); below. */
3233 #include <assert.h>
3234 /* Override any gcc2 internal prototype to avoid an error. */
3235 #ifdef __cplusplus
3236 extern "C"
3237 #endif
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3240 char gethostbyname ();
3241 char (*f) ();
3243 #ifdef F77_DUMMY_MAIN
3244 # ifdef __cplusplus
3245 extern "C"
3246 # endif
3247 int F77_DUMMY_MAIN() { return 1; }
3248 #endif
3250 main ()
3252 /* The GNU C library defines this for functions which it implements
3253 to always fail with ENOSYS. Some functions are actually named
3254 something starting with __ and the normal name is an alias. */
3255 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3256 choke me
3257 #else
3258 f = gethostbyname;
3259 #endif
3262 return 0;
3264 _ACEOF
3265 rm -f conftest.$ac_objext conftest$ac_exeext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try='test -s conftest$ac_exeext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_func_gethostbyname=yes
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3281 ac_cv_func_gethostbyname=no
3283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3285 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3286 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3288 if test $ac_cv_func_gethostbyname = no; then
3289 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3290 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3291 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 ac_check_lib_save_LIBS=$LIBS
3295 LIBS="-lnsl $LIBS"
3296 cat >conftest.$ac_ext <<_ACEOF
3297 #line $LINENO "configure"
3298 #include "confdefs.h"
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 #ifdef __cplusplus
3302 extern "C"
3303 #endif
3304 /* We use char because int might match the return type of a gcc2
3305 builtin and then its argument prototype would still apply. */
3306 char gethostbyname ();
3307 #ifdef F77_DUMMY_MAIN
3308 # ifdef __cplusplus
3309 extern "C"
3310 # endif
3311 int F77_DUMMY_MAIN() { return 1; }
3312 #endif
3314 main ()
3316 gethostbyname ();
3318 return 0;
3320 _ACEOF
3321 rm -f conftest.$ac_objext conftest$ac_exeext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3323 (eval $ac_link) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -s conftest$ac_exeext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_cv_lib_nsl_gethostbyname=yes
3334 else
3335 echo "$as_me: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 ac_cv_lib_nsl_gethostbyname=no
3339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3340 LIBS=$ac_check_lib_save_LIBS
3342 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3343 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3344 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3345 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3348 if test $ac_cv_lib_nsl_gethostbyname = no; then
3349 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3350 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3351 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 ac_check_lib_save_LIBS=$LIBS
3355 LIBS="-lbsd $LIBS"
3356 cat >conftest.$ac_ext <<_ACEOF
3357 #line $LINENO "configure"
3358 #include "confdefs.h"
3360 /* Override any gcc2 internal prototype to avoid an error. */
3361 #ifdef __cplusplus
3362 extern "C"
3363 #endif
3364 /* We use char because int might match the return type of a gcc2
3365 builtin and then its argument prototype would still apply. */
3366 char gethostbyname ();
3367 #ifdef F77_DUMMY_MAIN
3368 # ifdef __cplusplus
3369 extern "C"
3370 # endif
3371 int F77_DUMMY_MAIN() { return 1; }
3372 #endif
3374 main ()
3376 gethostbyname ();
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -s conftest$ac_exeext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 ac_cv_lib_bsd_gethostbyname=yes
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 ac_cv_lib_bsd_gethostbyname=no
3399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3400 LIBS=$ac_check_lib_save_LIBS
3402 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3403 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3404 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3411 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3412 # socket/setsockopt and other routines are undefined under SCO ODT
3413 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3414 # on later versions), says Simon Leinen: it contains gethostby*
3415 # variants that don't use the nameserver (or something). -lsocket
3416 # must be given before -lnsl if both are needed. We assume that
3417 # if connect needs -lnsl, so does gethostbyname.
3418 echo "$as_me:$LINENO: checking for connect" >&5
3419 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3420 if test "${ac_cv_func_connect+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3425 #include "confdefs.h"
3426 /* System header to define __stub macros and hopefully few prototypes,
3427 which can conflict with char connect (); below. */
3428 #include <assert.h>
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 #ifdef __cplusplus
3431 extern "C"
3432 #endif
3433 /* We use char because int might match the return type of a gcc2
3434 builtin and then its argument prototype would still apply. */
3435 char connect ();
3436 char (*f) ();
3438 #ifdef F77_DUMMY_MAIN
3439 # ifdef __cplusplus
3440 extern "C"
3441 # endif
3442 int F77_DUMMY_MAIN() { return 1; }
3443 #endif
3445 main ()
3447 /* The GNU C library defines this for functions which it implements
3448 to always fail with ENOSYS. Some functions are actually named
3449 something starting with __ and the normal name is an alias. */
3450 #if defined (__stub_connect) || defined (__stub___connect)
3451 choke me
3452 #else
3453 f = connect;
3454 #endif
3457 return 0;
3459 _ACEOF
3460 rm -f conftest.$ac_objext conftest$ac_exeext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3462 (eval $ac_link) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -s conftest$ac_exeext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_func_connect=yes
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 ac_cv_func_connect=no
3478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3480 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3481 echo "${ECHO_T}$ac_cv_func_connect" >&6
3483 if test $ac_cv_func_connect = no; then
3484 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3485 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3486 if test "${ac_cv_lib_socket_connect+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489 ac_check_lib_save_LIBS=$LIBS
3490 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3493 #include "confdefs.h"
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 #ifdef __cplusplus
3497 extern "C"
3498 #endif
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3501 char connect ();
3502 #ifdef F77_DUMMY_MAIN
3503 # ifdef __cplusplus
3504 extern "C"
3505 # endif
3506 int F77_DUMMY_MAIN() { return 1; }
3507 #endif
3509 main ()
3511 connect ();
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext conftest$ac_exeext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3518 (eval $ac_link) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -s conftest$ac_exeext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_lib_socket_connect=yes
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 ac_cv_lib_socket_connect=no
3534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3535 LIBS=$ac_check_lib_save_LIBS
3537 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3538 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3539 if test $ac_cv_lib_socket_connect = yes; then
3540 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3545 # Guillermo Gomez says -lposix is necessary on A/UX.
3546 echo "$as_me:$LINENO: checking for remove" >&5
3547 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3548 if test "${ac_cv_func_remove+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 cat >conftest.$ac_ext <<_ACEOF
3552 #line $LINENO "configure"
3553 #include "confdefs.h"
3554 /* System header to define __stub macros and hopefully few prototypes,
3555 which can conflict with char remove (); below. */
3556 #include <assert.h>
3557 /* Override any gcc2 internal prototype to avoid an error. */
3558 #ifdef __cplusplus
3559 extern "C"
3560 #endif
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3563 char remove ();
3564 char (*f) ();
3566 #ifdef F77_DUMMY_MAIN
3567 # ifdef __cplusplus
3568 extern "C"
3569 # endif
3570 int F77_DUMMY_MAIN() { return 1; }
3571 #endif
3573 main ()
3575 /* The GNU C library defines this for functions which it implements
3576 to always fail with ENOSYS. Some functions are actually named
3577 something starting with __ and the normal name is an alias. */
3578 #if defined (__stub_remove) || defined (__stub___remove)
3579 choke me
3580 #else
3581 f = remove;
3582 #endif
3585 return 0;
3587 _ACEOF
3588 rm -f conftest.$ac_objext conftest$ac_exeext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3590 (eval $ac_link) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try='test -s conftest$ac_exeext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 ac_cv_func_remove=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3604 ac_cv_func_remove=no
3606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3608 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3609 echo "${ECHO_T}$ac_cv_func_remove" >&6
3611 if test $ac_cv_func_remove = no; then
3612 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3613 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3614 if test "${ac_cv_lib_posix_remove+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 ac_check_lib_save_LIBS=$LIBS
3618 LIBS="-lposix $LIBS"
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 #include "confdefs.h"
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 #ifdef __cplusplus
3625 extern "C"
3626 #endif
3627 /* We use char because int might match the return type of a gcc2
3628 builtin and then its argument prototype would still apply. */
3629 char remove ();
3630 #ifdef F77_DUMMY_MAIN
3631 # ifdef __cplusplus
3632 extern "C"
3633 # endif
3634 int F77_DUMMY_MAIN() { return 1; }
3635 #endif
3637 main ()
3639 remove ();
3641 return 0;
3643 _ACEOF
3644 rm -f conftest.$ac_objext conftest$ac_exeext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646 (eval $ac_link) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -s conftest$ac_exeext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 ac_cv_lib_posix_remove=yes
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 ac_cv_lib_posix_remove=no
3662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3663 LIBS=$ac_check_lib_save_LIBS
3665 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3666 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3667 if test $ac_cv_lib_posix_remove = yes; then
3668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3673 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3674 echo "$as_me:$LINENO: checking for shmat" >&5
3675 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3676 if test "${ac_cv_func_shmat+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 #include "confdefs.h"
3682 /* System header to define __stub macros and hopefully few prototypes,
3683 which can conflict with char shmat (); below. */
3684 #include <assert.h>
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 #ifdef __cplusplus
3687 extern "C"
3688 #endif
3689 /* We use char because int might match the return type of a gcc2
3690 builtin and then its argument prototype would still apply. */
3691 char shmat ();
3692 char (*f) ();
3694 #ifdef F77_DUMMY_MAIN
3695 # ifdef __cplusplus
3696 extern "C"
3697 # endif
3698 int F77_DUMMY_MAIN() { return 1; }
3699 #endif
3701 main ()
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_shmat) || defined (__stub___shmat)
3707 choke me
3708 #else
3709 f = shmat;
3710 #endif
3713 return 0;
3715 _ACEOF
3716 rm -f conftest.$ac_objext conftest$ac_exeext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3718 (eval $ac_link) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -s conftest$ac_exeext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_func_shmat=yes
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 ac_cv_func_shmat=no
3734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3736 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3737 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3739 if test $ac_cv_func_shmat = no; then
3740 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3741 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3742 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 ac_check_lib_save_LIBS=$LIBS
3746 LIBS="-lipc $LIBS"
3747 cat >conftest.$ac_ext <<_ACEOF
3748 #line $LINENO "configure"
3749 #include "confdefs.h"
3751 /* Override any gcc2 internal prototype to avoid an error. */
3752 #ifdef __cplusplus
3753 extern "C"
3754 #endif
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757 char shmat ();
3758 #ifdef F77_DUMMY_MAIN
3759 # ifdef __cplusplus
3760 extern "C"
3761 # endif
3762 int F77_DUMMY_MAIN() { return 1; }
3763 #endif
3765 main ()
3767 shmat ();
3769 return 0;
3771 _ACEOF
3772 rm -f conftest.$ac_objext conftest$ac_exeext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774 (eval $ac_link) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try='test -s conftest$ac_exeext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_lib_ipc_shmat=yes
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 ac_cv_lib_ipc_shmat=no
3790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3791 LIBS=$ac_check_lib_save_LIBS
3793 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3794 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3795 if test $ac_cv_lib_ipc_shmat = yes; then
3796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3802 # Check for libraries that X11R6 Xt/Xaw programs need.
3803 ac_save_LDFLAGS=$LDFLAGS
3804 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3805 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3806 # check for ICE first), but we must link in the order -lSM -lICE or
3807 # we get undefined symbols. So assume we have SM if we have ICE.
3808 # These have to be linked with before -lX11, unlike the other
3809 # libraries we check for below, so use a different variable.
3810 # John Interrante, Karl Berry
3811 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3812 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3813 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 ac_check_lib_save_LIBS=$LIBS
3817 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3818 cat >conftest.$ac_ext <<_ACEOF
3819 #line $LINENO "configure"
3820 #include "confdefs.h"
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 #ifdef __cplusplus
3824 extern "C"
3825 #endif
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char IceConnectionNumber ();
3829 #ifdef F77_DUMMY_MAIN
3830 # ifdef __cplusplus
3831 extern "C"
3832 # endif
3833 int F77_DUMMY_MAIN() { return 1; }
3834 #endif
3836 main ()
3838 IceConnectionNumber ();
3840 return 0;
3842 _ACEOF
3843 rm -f conftest.$ac_objext conftest$ac_exeext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 (eval $ac_link) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -s conftest$ac_exeext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 (eval $ac_try) 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 ac_cv_lib_ICE_IceConnectionNumber=yes
3856 else
3857 echo "$as_me: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3859 ac_cv_lib_ICE_IceConnectionNumber=no
3861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3864 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3865 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3866 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3867 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3870 LDFLAGS=$ac_save_LDFLAGS
3875 X_LIBRARY_PATH=$x_libraries
3877 XCFLAGS="$X_CFLAGS"
3879 XLFLAGS="$X_LIBS"
3881 XLIBS="-lX11 $X_EXTRA_LIBS"
3883 lib_search_path="$lib_search_path $XLFLAGS -L/usr/local/lib"
3884 inc_search_path="$inc_search_path $XCFLAGS -I/usr/local/include"
3888 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
3889 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
3890 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 ac_check_lib_save_LIBS=$LIBS
3894 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
3895 cat >conftest.$ac_ext <<_ACEOF
3896 #line $LINENO "configure"
3897 #include "confdefs.h"
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 #ifdef __cplusplus
3901 extern "C"
3902 #endif
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905 char XShapeCombineMask ();
3906 #ifdef F77_DUMMY_MAIN
3907 # ifdef __cplusplus
3908 extern "C"
3909 # endif
3910 int F77_DUMMY_MAIN() { return 1; }
3911 #endif
3913 main ()
3915 XShapeCombineMask ();
3917 return 0;
3919 _ACEOF
3920 rm -f conftest.$ac_objext conftest$ac_exeext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922 (eval $ac_link) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -s conftest$ac_exeext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_cv_lib_Xext_XShapeCombineMask=yes
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 ac_cv_lib_Xext_XShapeCombineMask=no
3938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3939 LIBS=$ac_check_lib_save_LIBS
3941 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
3942 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
3943 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
3944 XLIBS="$XLIBS -lXext"
3945 else
3946 echo "The shape extension stuff could not be found in the X client libraries"
3947 exit 1
3951 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
3952 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
3953 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 ac_check_lib_save_LIBS=$LIBS
3957 LIBS="-lXpm $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line $LINENO "configure"
3960 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 #ifdef __cplusplus
3964 extern "C"
3965 #endif
3966 /* We use char because int might match the return type of a gcc2
3967 builtin and then its argument prototype would still apply. */
3968 char XpmCreatePixmapFromData ();
3969 #ifdef F77_DUMMY_MAIN
3970 # ifdef __cplusplus
3971 extern "C"
3972 # endif
3973 int F77_DUMMY_MAIN() { return 1; }
3974 #endif
3976 main ()
3978 XpmCreatePixmapFromData ();
3980 return 0;
3982 _ACEOF
3983 rm -f conftest.$ac_objext conftest$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -s conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
3999 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
4001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4002 LIBS=$ac_check_lib_save_LIBS
4004 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4005 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4006 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4007 XLIBS="$XLIBS -lXpm"
4008 else
4009 echo "The libXpm library was not found, but is necessary to build this library"
4010 exit 1
4021 # Check whether --enable-debug or --disable-debug was given.
4022 if test "${enable_debug+set}" = set; then
4023 enableval="$enable_debug"
4025 else
4026 enable_debug=no
4028 if test "$enable_debug" = yes; then
4029 DFLAGS="-Wall -g -ansi -pedantic"
4031 cat >>confdefs.h <<\_ACEOF
4032 #define DEBUG 1
4033 _ACEOF
4040 ignore_buffers=no
4041 ignore_cached=no
4042 ignore_wired=no
4044 case ${host_os} in
4045 linux*)
4046 OS=linux
4047 ignore_buffers=yes
4048 ignore_cached=yes
4050 freebsd*)
4051 OS=freebsd
4052 ignore_wired=yes
4053 ignore_cached=yes
4054 LIBS="$LIBS -lkvm"
4055 SETGID_FLAGS="-g kmem -m 2755 -o root"
4057 openbsd*)
4058 OS=openbsd
4060 solaris*)
4061 OS=solaris
4064 echo ""
4065 echo "Sorry, ${host_os} is not supported yet"
4066 echo ""
4067 exit 1
4069 esac
4075 if test "$ignore_buffers" = yes; then
4077 cat >>confdefs.h <<\_ACEOF
4078 #define IGNORE_BUFFERS 1
4079 _ACEOF
4082 if test "$ignore_cached" = yes; then
4084 cat >>confdefs.h <<\_ACEOF
4085 #define IGNORE_CACHED 1
4086 _ACEOF
4089 if test "$ignore_wired" = yes; then
4091 cat >>confdefs.h <<\_ACEOF
4092 #define IGNORE_WIRED 1
4093 _ACEOF
4099 LIBRARY_SEARCH_PATH="$lib_search_path"
4100 HEADER_SEARCH_PATH="$inc_search_path"
4105 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4107 if test "${ac_cv_header_stdc+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 cat >conftest.$ac_ext <<_ACEOF
4111 #line $LINENO "configure"
4112 #include "confdefs.h"
4113 #include <stdlib.h>
4114 #include <stdarg.h>
4115 #include <string.h>
4116 #include <float.h>
4118 _ACEOF
4119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4121 ac_status=$?
4122 egrep -v '^ *\+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } >/dev/null; then
4127 if test -s conftest.err; then
4128 ac_cpp_err=$ac_c_preproc_warn_flag
4129 else
4130 ac_cpp_err=
4132 else
4133 ac_cpp_err=yes
4135 if test -z "$ac_cpp_err"; then
4136 ac_cv_header_stdc=yes
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 ac_cv_header_stdc=no
4142 rm -f conftest.err conftest.$ac_ext
4144 if test $ac_cv_header_stdc = yes; then
4145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 #line $LINENO "configure"
4148 #include "confdefs.h"
4149 #include <string.h>
4151 _ACEOF
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 egrep "memchr" >/dev/null 2>&1; then
4155 else
4156 ac_cv_header_stdc=no
4158 rm -f conftest*
4162 if test $ac_cv_header_stdc = yes; then
4163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4164 cat >conftest.$ac_ext <<_ACEOF
4165 #line $LINENO "configure"
4166 #include "confdefs.h"
4167 #include <stdlib.h>
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 egrep "free" >/dev/null 2>&1; then
4173 else
4174 ac_cv_header_stdc=no
4176 rm -f conftest*
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4184 else
4185 cat >conftest.$ac_ext <<_ACEOF
4186 #line $LINENO "configure"
4187 #include "confdefs.h"
4188 #include <ctype.h>
4189 #if ((' ' & 0x0FF) == 0x020)
4190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4192 #else
4193 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197 #endif
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4201 main ()
4203 int i;
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4207 exit(2);
4208 exit (0);
4210 _ACEOF
4211 rm -f conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4223 else
4224 echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 ( exit $ac_status )
4228 ac_cv_header_stdc=no
4230 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4236 if test $ac_cv_header_stdc = yes; then
4238 cat >>confdefs.h <<\_ACEOF
4239 #define STDC_HEADERS 1
4240 _ACEOF
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 #include "confdefs.h"
4266 $ac_includes_default
4268 #include <$ac_header>
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 eval "$as_ac_Header=yes"
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 eval "$as_ac_Header=no"
4288 rm -f conftest.$ac_objext conftest.$ac_ext
4290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 _ACEOF
4299 done
4311 for ac_header in fcntl.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
4313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4315 echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4322 else
4323 # Is the header compilable?
4324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4326 cat >conftest.$ac_ext <<_ACEOF
4327 #line $LINENO "configure"
4328 #include "confdefs.h"
4329 $ac_includes_default
4330 #include <$ac_header>
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_header_compiler=yes
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 ac_header_compiler=no
4350 rm -f conftest.$ac_objext conftest.$ac_ext
4351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4352 echo "${ECHO_T}$ac_header_compiler" >&6
4354 # Is the header present?
4355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4357 cat >conftest.$ac_ext <<_ACEOF
4358 #line $LINENO "configure"
4359 #include "confdefs.h"
4360 #include <$ac_header>
4361 _ACEOF
4362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364 ac_status=$?
4365 egrep -v '^ *\+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } >/dev/null; then
4370 if test -s conftest.err; then
4371 ac_cpp_err=$ac_c_preproc_warn_flag
4372 else
4373 ac_cpp_err=
4375 else
4376 ac_cpp_err=yes
4378 if test -z "$ac_cpp_err"; then
4379 ac_header_preproc=yes
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4383 ac_header_preproc=no
4385 rm -f conftest.err conftest.$ac_ext
4386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4387 echo "${ECHO_T}$ac_header_preproc" >&6
4389 # So? What about this header?
4390 case $ac_header_compiler:$ac_header_preproc in
4391 yes:no )
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4396 no:yes )
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4403 esac
4404 echo "$as_me:$LINENO: checking for $ac_header" >&5
4405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409 eval "$as_ac_Header=$ac_header_preproc"
4411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4416 cat >>confdefs.h <<_ACEOF
4417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4418 _ACEOF
4422 done
4425 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4426 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4427 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 ac_cv_prog_cc_stdc=no
4431 ac_save_CC=$CC
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 #include "confdefs.h"
4435 #include <stdarg.h>
4436 #include <stdio.h>
4437 #include <sys/types.h>
4438 #include <sys/stat.h>
4439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4440 struct buf { int x; };
4441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4442 static char *e (p, i)
4443 char **p;
4444 int i;
4446 return p[i];
4448 static char *f (char * (*g) (char **, int), char **p, ...)
4450 char *s;
4451 va_list v;
4452 va_start (v,p);
4453 s = g (p, va_arg (v,int));
4454 va_end (v);
4455 return s;
4457 int test (int i, double x);
4458 struct s1 {int (*f) (int a);};
4459 struct s2 {int (*f) (double a);};
4460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4461 int argc;
4462 char **argv;
4463 #ifdef F77_DUMMY_MAIN
4464 # ifdef __cplusplus
4465 extern "C"
4466 # endif
4467 int F77_DUMMY_MAIN() { return 1; }
4468 #endif
4470 main ()
4472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4474 return 0;
4476 _ACEOF
4477 # Don't try gcc -ansi; that turns off useful extensions and
4478 # breaks some systems' header files.
4479 # AIX -qlanglvl=ansi
4480 # Ultrix and OSF/1 -std1
4481 # HP-UX 10.20 and later -Ae
4482 # HP-UX older versions -Aa -D_HPUX_SOURCE
4483 # SVR4 -Xc -D__EXTENSIONS__
4484 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4486 CC="$ac_save_CC $ac_arg"
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_prog_cc_stdc=$ac_arg
4500 break
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 rm -f conftest.$ac_objext
4506 done
4507 rm -f conftest.$ac_ext conftest.$ac_objext
4508 CC=$ac_save_CC
4512 case "x$ac_cv_prog_cc_stdc" in
4513 x|xno)
4514 echo "$as_me:$LINENO: result: none needed" >&5
4515 echo "${ECHO_T}none needed" >&6 ;;
4517 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4518 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4519 CC="$CC $ac_cv_prog_cc_stdc" ;;
4520 esac
4522 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4523 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4524 if test "${ac_cv_c_const+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 cat >conftest.$ac_ext <<_ACEOF
4528 #line $LINENO "configure"
4529 #include "confdefs.h"
4531 #ifdef F77_DUMMY_MAIN
4532 # ifdef __cplusplus
4533 extern "C"
4534 # endif
4535 int F77_DUMMY_MAIN() { return 1; }
4536 #endif
4538 main ()
4540 /* FIXME: Include the comments suggested by Paul. */
4541 #ifndef __cplusplus
4542 /* Ultrix mips cc rejects this. */
4543 typedef int charset[2];
4544 const charset x;
4545 /* SunOS 4.1.1 cc rejects this. */
4546 char const *const *ccp;
4547 char **p;
4548 /* NEC SVR4.0.2 mips cc rejects this. */
4549 struct point {int x, y;};
4550 static struct point const zero = {0,0};
4551 /* AIX XL C 1.02.0.0 rejects this.
4552 It does not let you subtract one const X* pointer from another in
4553 an arm of an if-expression whose if-part is not a constant
4554 expression */
4555 const char *g = "string";
4556 ccp = &g + (g ? g-g : 0);
4557 /* HPUX 7.0 cc rejects these. */
4558 ++ccp;
4559 p = (char**) ccp;
4560 ccp = (char const *const *) p;
4561 { /* SCO 3.2v4 cc rejects this. */
4562 char *t;
4563 char const *s = 0 ? (char *) 0 : (char const *) 0;
4565 *t++ = 0;
4567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4568 int x[] = {25, 17};
4569 const int *foo = &x[0];
4570 ++foo;
4572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4573 typedef const int *iptr;
4574 iptr p = 0;
4575 ++p;
4577 { /* AIX XL C 1.02.0.0 rejects this saying
4578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4579 struct s { int j; const int *ap[3]; };
4580 struct s *b; b->j = 5;
4582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4583 const int foo = 10;
4585 #endif
4588 return 0;
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_c_const=yes
4604 else
4605 echo "$as_me: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 ac_cv_c_const=no
4609 rm -f conftest.$ac_objext conftest.$ac_ext
4611 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4612 echo "${ECHO_T}$ac_cv_c_const" >&6
4613 if test $ac_cv_c_const = no; then
4615 cat >>confdefs.h <<\_ACEOF
4616 #define const
4617 _ACEOF
4621 echo "$as_me:$LINENO: checking for size_t" >&5
4622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4623 if test "${ac_cv_type_size_t+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 cat >conftest.$ac_ext <<_ACEOF
4627 #line $LINENO "configure"
4628 #include "confdefs.h"
4629 $ac_includes_default
4630 #ifdef F77_DUMMY_MAIN
4631 # ifdef __cplusplus
4632 extern "C"
4633 # endif
4634 int F77_DUMMY_MAIN() { return 1; }
4635 #endif
4637 main ()
4639 if ((size_t *) 0)
4640 return 0;
4641 if (sizeof (size_t))
4642 return 0;
4644 return 0;
4646 _ACEOF
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_type_size_t=yes
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 ac_cv_type_size_t=no
4665 rm -f conftest.$ac_objext conftest.$ac_ext
4667 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4668 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4669 if test $ac_cv_type_size_t = yes; then
4671 else
4673 cat >>confdefs.h <<_ACEOF
4674 #define size_t unsigned
4675 _ACEOF
4679 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4680 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4681 if test "${ac_cv_header_time+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 #include "confdefs.h"
4687 #include <sys/types.h>
4688 #include <sys/time.h>
4689 #include <time.h>
4691 #ifdef F77_DUMMY_MAIN
4692 # ifdef __cplusplus
4693 extern "C"
4694 # endif
4695 int F77_DUMMY_MAIN() { return 1; }
4696 #endif
4698 main ()
4700 if ((struct tm *) 0)
4701 return 0;
4703 return 0;
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_cv_header_time=yes
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 ac_cv_header_time=no
4724 rm -f conftest.$ac_objext conftest.$ac_ext
4726 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4727 echo "${ECHO_T}$ac_cv_header_time" >&6
4728 if test $ac_cv_header_time = yes; then
4730 cat >>confdefs.h <<\_ACEOF
4731 #define TIME_WITH_SYS_TIME 1
4732 _ACEOF
4738 for ac_header in stdlib.h
4740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4742 echo "$as_me:$LINENO: checking for $ac_header" >&5
4743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4749 else
4750 # Is the header compilable?
4751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 #include "confdefs.h"
4756 $ac_includes_default
4757 #include <$ac_header>
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -s conftest.$ac_objext'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4771 ac_header_compiler=yes
4772 else
4773 echo "$as_me: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 ac_header_compiler=no
4777 rm -f conftest.$ac_objext conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4779 echo "${ECHO_T}$ac_header_compiler" >&6
4781 # Is the header present?
4782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4786 #include "confdefs.h"
4787 #include <$ac_header>
4788 _ACEOF
4789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4791 ac_status=$?
4792 egrep -v '^ *\+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } >/dev/null; then
4797 if test -s conftest.err; then
4798 ac_cpp_err=$ac_c_preproc_warn_flag
4799 else
4800 ac_cpp_err=
4802 else
4803 ac_cpp_err=yes
4805 if test -z "$ac_cpp_err"; then
4806 ac_header_preproc=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_header_preproc=no
4812 rm -f conftest.err conftest.$ac_ext
4813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4814 echo "${ECHO_T}$ac_header_preproc" >&6
4816 # So? What about this header?
4817 case $ac_header_compiler:$ac_header_preproc in
4818 yes:no )
4819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4823 no:yes )
4824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4830 esac
4831 echo "$as_me:$LINENO: checking for $ac_header" >&5
4832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 eval "$as_ac_Header=$ac_header_preproc"
4838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4843 cat >>confdefs.h <<_ACEOF
4844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4845 _ACEOF
4849 done
4851 echo "$as_me:$LINENO: checking for working malloc" >&5
4852 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4853 if test "${ac_cv_func_malloc_works+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 if test "$cross_compiling" = yes; then
4857 ac_cv_func_malloc_works=no
4858 else
4859 cat >conftest.$ac_ext <<_ACEOF
4860 #line $LINENO "configure"
4861 #include "confdefs.h"
4862 #if STDC_HEADERS || HAVE_STDLIB_H
4863 # include <stdlib.h>
4864 #else
4865 char *malloc ();
4866 #endif
4868 #ifdef F77_DUMMY_MAIN
4869 # ifdef __cplusplus
4870 extern "C"
4871 # endif
4872 int F77_DUMMY_MAIN() { return 1; }
4873 #endif
4875 main ()
4877 exit (malloc (0) ? 0 : 1);
4879 return 0;
4881 _ACEOF
4882 rm -f conftest$ac_exeext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884 (eval $ac_link) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_func_malloc_works=yes
4894 else
4895 echo "$as_me: program exited with status $ac_status" >&5
4896 echo "$as_me: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4898 ( exit $ac_status )
4899 ac_cv_func_malloc_works=no
4901 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4904 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
4905 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
4906 if test $ac_cv_func_malloc_works = yes; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define HAVE_MALLOC 1
4910 _ACEOF
4917 for ac_func in select strtoul uname
4919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4920 echo "$as_me:$LINENO: checking for $ac_func" >&5
4921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4922 if eval "test \"\${$as_ac_var+set}\" = set"; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 cat >conftest.$ac_ext <<_ACEOF
4926 #line $LINENO "configure"
4927 #include "confdefs.h"
4928 /* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char $ac_func (); below. */
4930 #include <assert.h>
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 #ifdef __cplusplus
4933 extern "C"
4934 #endif
4935 /* We use char because int might match the return type of a gcc2
4936 builtin and then its argument prototype would still apply. */
4937 char $ac_func ();
4938 char (*f) ();
4940 #ifdef F77_DUMMY_MAIN
4941 # ifdef __cplusplus
4942 extern "C"
4943 # endif
4944 int F77_DUMMY_MAIN() { return 1; }
4945 #endif
4947 main ()
4949 /* The GNU C library defines this for functions which it implements
4950 to always fail with ENOSYS. Some functions are actually named
4951 something starting with __ and the normal name is an alias. */
4952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4953 choke me
4954 #else
4955 f = $ac_func;
4956 #endif
4959 return 0;
4961 _ACEOF
4962 rm -f conftest.$ac_objext conftest$ac_exeext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4964 (eval $ac_link) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -s conftest$ac_exeext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 eval "$as_ac_var=yes"
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 eval "$as_ac_var=no"
4980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4984 if test `eval echo '${'$as_ac_var'}'` = yes; then
4985 cat >>confdefs.h <<_ACEOF
4986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4987 _ACEOF
4990 done
4993 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
4995 cat >confcache <<\_ACEOF
4996 # This file is a shell script that caches the results of configure
4997 # tests run on this system so they can be shared between configure
4998 # scripts and configure runs, see configure's option --config-cache.
4999 # It is not useful on other systems. If it contains results you don't
5000 # want to keep, you may remove or edit it.
5002 # config.status only pays attention to the cache file if you give it
5003 # the --recheck option to rerun configure.
5005 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5007 # following values.
5009 _ACEOF
5011 # The following way of writing the cache mishandles newlines in values,
5012 # but we know of no workaround that is simple, portable, and efficient.
5013 # So, don't put newlines in cache variables' values.
5014 # Ultrix sh set writes to stderr and can't be redirected directly,
5015 # and sets the high bit in the cache file unless we assign to the vars.
5017 (set) 2>&1 |
5018 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5019 *ac_space=\ *)
5020 # `set' does not quote correctly, so add quotes (double-quote
5021 # substitution turns \\\\ into \\, and sed turns \\ into \).
5022 sed -n \
5023 "s/'/'\\\\''/g;
5024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5027 # `set' quotes correctly as required by POSIX, so do not add quotes.
5028 sed -n \
5029 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5031 esac;
5033 sed '
5034 t clear
5035 : clear
5036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5037 t end
5038 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5039 : end' >>confcache
5040 if cmp -s $cache_file confcache; then :; else
5041 if test -w $cache_file; then
5042 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5043 cat confcache >$cache_file
5044 else
5045 echo "not updating unwritable cache $cache_file"
5048 rm -f confcache
5050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5051 # Let make expand exec_prefix.
5052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5054 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5055 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5056 # trailing colons and then remove the whole line if VPATH becomes empty
5057 # (actually we leave an empty line to preserve line numbers).
5058 if test "x$srcdir" = x.; then
5059 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5060 s/:*\$(srcdir):*/:/;
5061 s/:*\${srcdir}:*/:/;
5062 s/:*@srcdir@:*/:/;
5063 s/^\([^=]*=[ ]*\):*/\1/;
5064 s/:*$//;
5065 s/^[^=]*=[ ]*$//;
5069 DEFS=-DHAVE_CONFIG_H
5072 : ${CONFIG_STATUS=./config.status}
5073 ac_clean_files_save=$ac_clean_files
5074 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5075 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5076 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5077 cat >$CONFIG_STATUS <<_ACEOF
5078 #! $SHELL
5079 # Generated by $as_me.
5080 # Run this file to recreate the current configuration.
5081 # Compiler output produced by configure, useful for debugging
5082 # configure, is in config.log if it exists.
5084 debug=false
5085 SHELL=\${CONFIG_SHELL-$SHELL}
5086 _ACEOF
5088 cat >>$CONFIG_STATUS <<\_ACEOF
5090 ## --------------------- ##
5091 ## M4sh Initialization. ##
5092 ## --------------------- ##
5094 # Be Bourne compatible
5095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5096 emulate sh
5097 NULLCMD=:
5098 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5099 set -o posix
5102 # NLS nuisances.
5103 # Support unset when possible.
5104 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5105 as_unset=unset
5106 else
5107 as_unset=false
5110 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5111 { $as_unset LANG || test "${LANG+set}" != set; } ||
5112 { LANG=C; export LANG; }
5113 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5114 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5115 { LC_ALL=C; export LC_ALL; }
5116 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5117 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5118 { LC_TIME=C; export LC_TIME; }
5119 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5120 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5121 { LC_CTYPE=C; export LC_CTYPE; }
5122 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5123 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5124 { LANGUAGE=C; export LANGUAGE; }
5125 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5126 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5127 { LC_COLLATE=C; export LC_COLLATE; }
5128 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5129 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5130 { LC_NUMERIC=C; export LC_NUMERIC; }
5131 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5132 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5133 { LC_MESSAGES=C; export LC_MESSAGES; }
5136 # Name of the executable.
5137 as_me=`(basename "$0") 2>/dev/null ||
5138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5139 X"$0" : 'X\(//\)$' \| \
5140 X"$0" : 'X\(/\)$' \| \
5141 . : '\(.\)' 2>/dev/null ||
5142 echo X/"$0" |
5143 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5144 /^X\/\(\/\/\)$/{ s//\1/; q; }
5145 /^X\/\(\/\).*/{ s//\1/; q; }
5146 s/.*/./; q'`
5148 # PATH needs CR, and LINENO needs CR and PATH.
5149 # Avoid depending upon Character Ranges.
5150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5153 as_cr_digits='0123456789'
5154 as_cr_alnum=$as_cr_Letters$as_cr_digits
5156 # The user is always right.
5157 if test "${PATH_SEPARATOR+set}" != set; then
5158 echo "#! /bin/sh" >conftest.sh
5159 echo "exit 0" >>conftest.sh
5160 chmod +x conftest.sh
5161 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5162 PATH_SEPARATOR=';'
5163 else
5164 PATH_SEPARATOR=:
5166 rm -f conftest.sh
5170 as_lineno_1=$LINENO
5171 as_lineno_2=$LINENO
5172 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5173 test "x$as_lineno_1" != "x$as_lineno_2" &&
5174 test "x$as_lineno_3" = "x$as_lineno_2" || {
5175 # Find who we are. Look in the path if we contain no path at all
5176 # relative or not.
5177 case $0 in
5178 *[\\/]* ) as_myself=$0 ;;
5179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5185 done
5188 esac
5189 # We did not find ourselves, most probably we were run as `sh COMMAND'
5190 # in which case we are not to be found in the path.
5191 if test "x$as_myself" = x; then
5192 as_myself=$0
5194 if test ! -f "$as_myself"; then
5195 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5196 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5197 { (exit 1); exit 1; }; }
5199 case $CONFIG_SHELL in
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for as_base in sh bash ksh sh5; do
5207 case $as_dir in
5209 if ("$as_dir/$as_base" -c '
5210 as_lineno_1=$LINENO
5211 as_lineno_2=$LINENO
5212 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5213 test "x$as_lineno_1" != "x$as_lineno_2" &&
5214 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5215 CONFIG_SHELL=$as_dir/$as_base
5216 export CONFIG_SHELL
5217 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5218 fi;;
5219 esac
5220 done
5221 done
5223 esac
5225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5226 # uniformly replaced by the line number. The first 'sed' inserts a
5227 # line-number line before each line; the second 'sed' does the real
5228 # work. The second script uses 'N' to pair each line-number line
5229 # with the numbered line, and appends trailing '-' during
5230 # substitution so that $LINENO is not a special case at line end.
5231 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5232 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5233 sed '=' <$as_myself |
5234 sed '
5236 s,$,-,
5237 : loop
5238 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5239 t loop
5240 s,-$,,
5241 s,^['$as_cr_digits']*\n,,
5242 ' >$as_me.lineno &&
5243 chmod +x $as_me.lineno ||
5244 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5245 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5246 { (exit 1); exit 1; }; }
5248 # Don't try to exec as it changes $[0], causing all sort of problems
5249 # (the dirname of $[0] is not the place where we might find the
5250 # original and so on. Autoconf is especially sensible to this).
5251 . ./$as_me.lineno
5252 # Exit status is that of the last command.
5253 exit
5257 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5258 *c*,-n*) ECHO_N= ECHO_C='
5259 ' ECHO_T=' ' ;;
5260 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5261 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5262 esac
5264 if expr a : '\(a\)' >/dev/null 2>&1; then
5265 as_expr=expr
5266 else
5267 as_expr=false
5270 rm -f conf$$ conf$$.exe conf$$.file
5271 echo >conf$$.file
5272 if ln -s conf$$.file conf$$ 2>/dev/null; then
5273 # We could just check for DJGPP; but this test a) works b) is more generic
5274 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5275 if test -f conf$$.exe; then
5276 # Don't use ln at all; we don't have any links
5277 as_ln_s='cp -p'
5278 else
5279 as_ln_s='ln -s'
5281 elif ln conf$$.file conf$$ 2>/dev/null; then
5282 as_ln_s=ln
5283 else
5284 as_ln_s='cp -p'
5286 rm -f conf$$ conf$$.exe conf$$.file
5288 as_executable_p="test -f"
5290 # Sed expression to map a string onto a valid CPP name.
5291 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5293 # Sed expression to map a string onto a valid variable name.
5294 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5297 # IFS
5298 # We need space, tab and new line, in precisely that order.
5299 as_nl='
5301 IFS=" $as_nl"
5303 # CDPATH.
5304 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5306 exec 6>&1
5308 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5309 # report actual input values of CONFIG_FILES etc. instead of their
5310 # values after options handling. Logging --version etc. is OK.
5311 exec 5>>config.log
5313 echo
5314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5315 ## Running $as_me. ##
5316 _ASBOX
5317 } >&5
5318 cat >&5 <<_CSEOF
5320 This file was extended by wmapmload $as_me 0.3.2, which was
5321 generated by GNU Autoconf 2.53. Invocation command line was
5323 CONFIG_FILES = $CONFIG_FILES
5324 CONFIG_HEADERS = $CONFIG_HEADERS
5325 CONFIG_LINKS = $CONFIG_LINKS
5326 CONFIG_COMMANDS = $CONFIG_COMMANDS
5327 $ $0 $@
5329 _CSEOF
5330 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5331 echo >&5
5332 _ACEOF
5334 # Files that config.status was made for.
5335 if test -n "$ac_config_files"; then
5336 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5339 if test -n "$ac_config_headers"; then
5340 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5343 if test -n "$ac_config_links"; then
5344 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5347 if test -n "$ac_config_commands"; then
5348 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5351 cat >>$CONFIG_STATUS <<\_ACEOF
5353 ac_cs_usage="\
5354 \`$as_me' instantiates files from templates according to the
5355 current configuration.
5357 Usage: $0 [OPTIONS] [FILE]...
5359 -h, --help print this help, then exit
5360 -V, --version print version number, then exit
5361 -d, --debug don't remove temporary files
5362 --recheck update $as_me by reconfiguring in the same conditions
5363 --file=FILE[:TEMPLATE]
5364 instantiate the configuration file FILE
5365 --header=FILE[:TEMPLATE]
5366 instantiate the configuration header FILE
5368 Configuration files:
5369 $config_files
5371 Configuration headers:
5372 $config_headers
5374 Configuration commands:
5375 $config_commands
5377 Report bugs to <bug-autoconf@gnu.org>."
5378 _ACEOF
5380 cat >>$CONFIG_STATUS <<_ACEOF
5381 ac_cs_version="\\
5382 wmapmload config.status 0.3.2
5383 configured by $0, generated by GNU Autoconf 2.53,
5384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5386 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5387 Free Software Foundation, Inc.
5388 This config.status script is free software; the Free Software Foundation
5389 gives unlimited permission to copy, distribute and modify it."
5390 srcdir=$srcdir
5391 INSTALL="$INSTALL"
5392 _ACEOF
5394 cat >>$CONFIG_STATUS <<\_ACEOF
5395 # If no file are specified by the user, then we need to provide default
5396 # value. By we need to know if files were specified by the user.
5397 ac_need_defaults=:
5398 while test $# != 0
5400 case $1 in
5401 --*=*)
5402 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5403 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5404 shift
5405 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5406 shift
5408 -*);;
5409 *) # This is not an option, so the user has probably given explicit
5410 # arguments.
5411 ac_need_defaults=false;;
5412 esac
5414 case $1 in
5415 # Handling of the options.
5416 _ACEOF
5417 cat >>$CONFIG_STATUS <<_ACEOF
5418 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5419 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5420 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5421 _ACEOF
5422 cat >>$CONFIG_STATUS <<\_ACEOF
5423 --version | --vers* | -V )
5424 echo "$ac_cs_version"; exit 0 ;;
5425 --he | --h)
5426 # Conflict between --help and --header
5427 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5428 Try \`$0 --help' for more information." >&5
5429 echo "$as_me: error: ambiguous option: $1
5430 Try \`$0 --help' for more information." >&2;}
5431 { (exit 1); exit 1; }; };;
5432 --help | --hel | -h )
5433 echo "$ac_cs_usage"; exit 0 ;;
5434 --debug | --d* | -d )
5435 debug=: ;;
5436 --file | --fil | --fi | --f )
5437 shift
5438 CONFIG_FILES="$CONFIG_FILES $1"
5439 ac_need_defaults=false;;
5440 --header | --heade | --head | --hea )
5441 shift
5442 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5443 ac_need_defaults=false;;
5445 # This is an error.
5446 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5447 Try \`$0 --help' for more information." >&5
5448 echo "$as_me: error: unrecognized option: $1
5449 Try \`$0 --help' for more information." >&2;}
5450 { (exit 1); exit 1; }; } ;;
5452 *) ac_config_targets="$ac_config_targets $1" ;;
5454 esac
5455 shift
5456 done
5458 _ACEOF
5460 cat >>$CONFIG_STATUS <<_ACEOF
5462 # INIT-COMMANDS section.
5467 _ACEOF
5471 cat >>$CONFIG_STATUS <<\_ACEOF
5472 for ac_config_target in $ac_config_targets
5474 case "$ac_config_target" in
5475 # Handling of arguments.
5476 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5477 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5478 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5479 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5480 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5481 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5482 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5483 { (exit 1); exit 1; }; };;
5484 esac
5485 done
5487 # If the user did not use the arguments to specify the items to instantiate,
5488 # then the envvar interface is used. Set only those that are not.
5489 # We use the long form for the default assignment because of an extremely
5490 # bizarre bug on SunOS 4.1.3.
5491 if $ac_need_defaults; then
5492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5497 # Create a temporary directory, and hook for its removal unless debugging.
5498 $debug ||
5500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5501 trap '{ (exit 1); exit 1; }' 1 2 13 15
5504 # Create a (secure) tmp directory for tmp files.
5505 : ${TMPDIR=/tmp}
5507 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5508 test -n "$tmp" && test -d "$tmp"
5509 } ||
5511 tmp=$TMPDIR/cs$$-$RANDOM
5512 (umask 077 && mkdir $tmp)
5513 } ||
5515 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5516 { (exit 1); exit 1; }
5519 _ACEOF
5521 cat >>$CONFIG_STATUS <<_ACEOF
5524 # CONFIG_FILES section.
5527 # No need to generate the scripts if there are no CONFIG_FILES.
5528 # This happens for instance when ./config.status config.h
5529 if test -n "\$CONFIG_FILES"; then
5530 # Protect against being on the right side of a sed subst in config.status.
5531 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5532 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5533 s,@SHELL@,$SHELL,;t t
5534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5540 s,@exec_prefix@,$exec_prefix,;t t
5541 s,@prefix@,$prefix,;t t
5542 s,@program_transform_name@,$program_transform_name,;t t
5543 s,@bindir@,$bindir,;t t
5544 s,@sbindir@,$sbindir,;t t
5545 s,@libexecdir@,$libexecdir,;t t
5546 s,@datadir@,$datadir,;t t
5547 s,@sysconfdir@,$sysconfdir,;t t
5548 s,@sharedstatedir@,$sharedstatedir,;t t
5549 s,@localstatedir@,$localstatedir,;t t
5550 s,@libdir@,$libdir,;t t
5551 s,@includedir@,$includedir,;t t
5552 s,@oldincludedir@,$oldincludedir,;t t
5553 s,@infodir@,$infodir,;t t
5554 s,@mandir@,$mandir,;t t
5555 s,@build_alias@,$build_alias,;t t
5556 s,@host_alias@,$host_alias,;t t
5557 s,@target_alias@,$target_alias,;t t
5558 s,@DEFS@,$DEFS,;t t
5559 s,@ECHO_C@,$ECHO_C,;t t
5560 s,@ECHO_N@,$ECHO_N,;t t
5561 s,@ECHO_T@,$ECHO_T,;t t
5562 s,@LIBS@,$LIBS,;t t
5563 s,@build@,$build,;t t
5564 s,@build_cpu@,$build_cpu,;t t
5565 s,@build_vendor@,$build_vendor,;t t
5566 s,@build_os@,$build_os,;t t
5567 s,@host@,$host,;t t
5568 s,@host_cpu@,$host_cpu,;t t
5569 s,@host_vendor@,$host_vendor,;t t
5570 s,@host_os@,$host_os,;t t
5571 s,@target@,$target,;t t
5572 s,@target_cpu@,$target_cpu,;t t
5573 s,@target_vendor@,$target_vendor,;t t
5574 s,@target_os@,$target_os,;t t
5575 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5576 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5577 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5578 s,@PACKAGE@,$PACKAGE,;t t
5579 s,@VERSION@,$VERSION,;t t
5580 s,@ACLOCAL@,$ACLOCAL,;t t
5581 s,@AUTOCONF@,$AUTOCONF,;t t
5582 s,@AUTOMAKE@,$AUTOMAKE,;t t
5583 s,@AUTOHEADER@,$AUTOHEADER,;t t
5584 s,@MAKEINFO@,$MAKEINFO,;t t
5585 s,@SET_MAKE@,$SET_MAKE,;t t
5586 s,@AWK@,$AWK,;t t
5587 s,@CC@,$CC,;t t
5588 s,@CFLAGS@,$CFLAGS,;t t
5589 s,@LDFLAGS@,$LDFLAGS,;t t
5590 s,@CPPFLAGS@,$CPPFLAGS,;t t
5591 s,@ac_ct_CC@,$ac_ct_CC,;t t
5592 s,@EXEEXT@,$EXEEXT,;t t
5593 s,@OBJEXT@,$OBJEXT,;t t
5594 s,@LN_S@,$LN_S,;t t
5595 s,@CPP@,$CPP,;t t
5596 s,@X_CFLAGS@,$X_CFLAGS,;t t
5597 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5598 s,@X_LIBS@,$X_LIBS,;t t
5599 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5600 s,@X_LIBRARY_PATH@,$X_LIBRARY_PATH,;t t
5601 s,@XCFLAGS@,$XCFLAGS,;t t
5602 s,@XLFLAGS@,$XLFLAGS,;t t
5603 s,@XLIBS@,$XLIBS,;t t
5604 s,@DFLAGS@,$DFLAGS,;t t
5605 s,@OS@,$OS,;t t
5606 s,@SETGID_FLAGS@,$SETGID_FLAGS,;t t
5607 s,@LIBRARY_SEARCH_PATH@,$LIBRARY_SEARCH_PATH,;t t
5608 s,@HEADER_SEARCH_PATH@,$HEADER_SEARCH_PATH,;t t
5609 CEOF
5611 _ACEOF
5613 cat >>$CONFIG_STATUS <<\_ACEOF
5614 # Split the substitutions into bite-sized pieces for seds with
5615 # small command number limits, like on Digital OSF/1 and HP-UX.
5616 ac_max_sed_lines=48
5617 ac_sed_frag=1 # Number of current file.
5618 ac_beg=1 # First line for current file.
5619 ac_end=$ac_max_sed_lines # Line after last line for current file.
5620 ac_more_lines=:
5621 ac_sed_cmds=
5622 while $ac_more_lines; do
5623 if test $ac_beg -gt 1; then
5624 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5625 else
5626 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5628 if test ! -s $tmp/subs.frag; then
5629 ac_more_lines=false
5630 else
5631 # The purpose of the label and of the branching condition is to
5632 # speed up the sed processing (if there are no `@' at all, there
5633 # is no need to browse any of the substitutions).
5634 # These are the two extra sed commands mentioned above.
5635 (echo ':t
5636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5637 if test -z "$ac_sed_cmds"; then
5638 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5639 else
5640 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5642 ac_sed_frag=`expr $ac_sed_frag + 1`
5643 ac_beg=$ac_end
5644 ac_end=`expr $ac_end + $ac_max_sed_lines`
5646 done
5647 if test -z "$ac_sed_cmds"; then
5648 ac_sed_cmds=cat
5650 fi # test -n "$CONFIG_FILES"
5652 _ACEOF
5653 cat >>$CONFIG_STATUS <<\_ACEOF
5654 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5656 case $ac_file in
5657 - | *:- | *:-:* ) # input from stdin
5658 cat >$tmp/stdin
5659 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5660 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5661 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5663 * ) ac_file_in=$ac_file.in ;;
5664 esac
5666 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5667 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5669 X"$ac_file" : 'X\(//\)[^/]' \| \
5670 X"$ac_file" : 'X\(//\)$' \| \
5671 X"$ac_file" : 'X\(/\)' \| \
5672 . : '\(.\)' 2>/dev/null ||
5673 echo X"$ac_file" |
5674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5676 /^X\(\/\/\)$/{ s//\1/; q; }
5677 /^X\(\/\).*/{ s//\1/; q; }
5678 s/.*/./; q'`
5679 { case "$ac_dir" in
5680 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5681 *) as_incr_dir=.;;
5682 esac
5683 as_dummy="$ac_dir"
5684 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5685 case $as_mkdir_dir in
5686 # Skip DOS drivespec
5687 ?:) as_incr_dir=$as_mkdir_dir ;;
5689 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5690 test -d "$as_incr_dir" ||
5691 mkdir "$as_incr_dir" ||
5692 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5693 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5694 { (exit 1); exit 1; }; }
5696 esac
5697 done; }
5699 ac_builddir=.
5701 if test "$ac_dir" != .; then
5702 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5703 # A "../" for each directory in $ac_dir_suffix.
5704 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5705 else
5706 ac_dir_suffix= ac_top_builddir=
5709 case $srcdir in
5710 .) # No --srcdir option. We are building in place.
5711 ac_srcdir=.
5712 if test -z "$ac_top_builddir"; then
5713 ac_top_srcdir=.
5714 else
5715 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5716 fi ;;
5717 [\\/]* | ?:[\\/]* ) # Absolute path.
5718 ac_srcdir=$srcdir$ac_dir_suffix;
5719 ac_top_srcdir=$srcdir ;;
5720 *) # Relative path.
5721 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5722 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5723 esac
5724 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5725 # absolute.
5726 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5727 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5728 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5729 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5732 case $INSTALL in
5733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5734 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5735 esac
5737 if test x"$ac_file" != x-; then
5738 { echo "$as_me:$LINENO: creating $ac_file" >&5
5739 echo "$as_me: creating $ac_file" >&6;}
5740 rm -f "$ac_file"
5742 # Let's still pretend it is `configure' which instantiates (i.e., don't
5743 # use $as_me), people would be surprised to read:
5744 # /* config.h. Generated by config.status. */
5745 if test x"$ac_file" = x-; then
5746 configure_input=
5747 else
5748 configure_input="$ac_file. "
5750 configure_input=$configure_input"Generated from `echo $ac_file_in |
5751 sed 's,.*/,,'` by configure."
5753 # First look for the input files in the build tree, otherwise in the
5754 # src tree.
5755 ac_file_inputs=`IFS=:
5756 for f in $ac_file_in; do
5757 case $f in
5758 -) echo $tmp/stdin ;;
5759 [\\/$]*)
5760 # Absolute (can't be DOS-style, as IFS=:)
5761 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5762 echo "$as_me: error: cannot find input file: $f" >&2;}
5763 { (exit 1); exit 1; }; }
5764 echo $f;;
5765 *) # Relative
5766 if test -f "$f"; then
5767 # Build tree
5768 echo $f
5769 elif test -f "$srcdir/$f"; then
5770 # Source tree
5771 echo $srcdir/$f
5772 else
5773 # /dev/null tree
5774 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5775 echo "$as_me: error: cannot find input file: $f" >&2;}
5776 { (exit 1); exit 1; }; }
5777 fi;;
5778 esac
5779 done` || { (exit 1); exit 1; }
5780 _ACEOF
5781 cat >>$CONFIG_STATUS <<_ACEOF
5782 sed "$ac_vpsub
5783 $extrasub
5784 _ACEOF
5785 cat >>$CONFIG_STATUS <<\_ACEOF
5787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5788 s,@configure_input@,$configure_input,;t t
5789 s,@srcdir@,$ac_srcdir,;t t
5790 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5791 s,@top_srcdir@,$ac_top_srcdir,;t t
5792 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5793 s,@builddir@,$ac_builddir,;t t
5794 s,@abs_builddir@,$ac_abs_builddir,;t t
5795 s,@top_builddir@,$ac_top_builddir,;t t
5796 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5797 s,@INSTALL@,$ac_INSTALL,;t t
5798 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5799 rm -f $tmp/stdin
5800 if test x"$ac_file" != x-; then
5801 mv $tmp/out $ac_file
5802 else
5803 cat $tmp/out
5804 rm -f $tmp/out
5807 done
5808 _ACEOF
5809 cat >>$CONFIG_STATUS <<\_ACEOF
5812 # CONFIG_HEADER section.
5815 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5816 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5818 # ac_d sets the value in "#define NAME VALUE" lines.
5819 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5820 ac_dB='[ ].*$,\1#\2'
5821 ac_dC=' '
5822 ac_dD=',;t'
5823 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5824 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5825 ac_uB='$,\1#\2define\3'
5826 ac_uC=' '
5827 ac_uD=',;t'
5829 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5831 case $ac_file in
5832 - | *:- | *:-:* ) # input from stdin
5833 cat >$tmp/stdin
5834 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5835 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5836 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5838 * ) ac_file_in=$ac_file.in ;;
5839 esac
5841 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5842 echo "$as_me: creating $ac_file" >&6;}
5844 # First look for the input files in the build tree, otherwise in the
5845 # src tree.
5846 ac_file_inputs=`IFS=:
5847 for f in $ac_file_in; do
5848 case $f in
5849 -) echo $tmp/stdin ;;
5850 [\\/$]*)
5851 # Absolute (can't be DOS-style, as IFS=:)
5852 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5853 echo "$as_me: error: cannot find input file: $f" >&2;}
5854 { (exit 1); exit 1; }; }
5855 echo $f;;
5856 *) # Relative
5857 if test -f "$f"; then
5858 # Build tree
5859 echo $f
5860 elif test -f "$srcdir/$f"; then
5861 # Source tree
5862 echo $srcdir/$f
5863 else
5864 # /dev/null tree
5865 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5866 echo "$as_me: error: cannot find input file: $f" >&2;}
5867 { (exit 1); exit 1; }; }
5868 fi;;
5869 esac
5870 done` || { (exit 1); exit 1; }
5871 # Remove the trailing spaces.
5872 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5874 _ACEOF
5876 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5877 # `conftest.undefs', that substitutes the proper values into
5878 # config.h.in to produce config.h. The first handles `#define'
5879 # templates, and the second `#undef' templates.
5880 # And first: Protect against being on the right side of a sed subst in
5881 # config.status. Protect against being in an unquoted here document
5882 # in config.status.
5883 rm -f conftest.defines conftest.undefs
5884 # Using a here document instead of a string reduces the quoting nightmare.
5885 # Putting comments in sed scripts is not portable.
5887 # `end' is used to avoid that the second main sed command (meant for
5888 # 0-ary CPP macros) applies to n-ary macro definitions.
5889 # See the Autoconf documentation for `clear'.
5890 cat >confdef2sed.sed <<\_ACEOF
5891 s/[\\&,]/\\&/g
5892 s,[\\$`],\\&,g
5893 t clear
5894 : clear
5895 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5896 t end
5897 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5898 : end
5899 _ACEOF
5900 # If some macros were called several times there might be several times
5901 # the same #defines, which is useless. Nevertheless, we may not want to
5902 # sort them, since we want the *last* AC-DEFINE to be honored.
5903 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5904 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5905 rm -f confdef2sed.sed
5907 # This sed command replaces #undef with comments. This is necessary, for
5908 # example, in the case of _POSIX_SOURCE, which is predefined and required
5909 # on some systems where configure will not decide to define it.
5910 cat >>conftest.undefs <<\_ACEOF
5911 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5912 _ACEOF
5914 # Break up conftest.defines because some shells have a limit on the size
5915 # of here documents, and old seds have small limits too (100 cmds).
5916 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5917 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5918 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5919 echo ' :' >>$CONFIG_STATUS
5920 rm -f conftest.tail
5921 while grep . conftest.defines >/dev/null
5923 # Write a limited-size here document to $tmp/defines.sed.
5924 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5925 # Speed up: don't consider the non `#define' lines.
5926 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5927 # Work around the forget-to-reset-the-flag bug.
5928 echo 't clr' >>$CONFIG_STATUS
5929 echo ': clr' >>$CONFIG_STATUS
5930 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5931 echo 'CEOF
5932 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5933 rm -f $tmp/in
5934 mv $tmp/out $tmp/in
5935 ' >>$CONFIG_STATUS
5936 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5937 rm -f conftest.defines
5938 mv conftest.tail conftest.defines
5939 done
5940 rm -f conftest.defines
5941 echo ' fi # egrep' >>$CONFIG_STATUS
5942 echo >>$CONFIG_STATUS
5944 # Break up conftest.undefs because some shells have a limit on the size
5945 # of here documents, and old seds have small limits too (100 cmds).
5946 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5947 rm -f conftest.tail
5948 while grep . conftest.undefs >/dev/null
5950 # Write a limited-size here document to $tmp/undefs.sed.
5951 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5952 # Speed up: don't consider the non `#undef'
5953 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5954 # Work around the forget-to-reset-the-flag bug.
5955 echo 't clr' >>$CONFIG_STATUS
5956 echo ': clr' >>$CONFIG_STATUS
5957 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5958 echo 'CEOF
5959 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5960 rm -f $tmp/in
5961 mv $tmp/out $tmp/in
5962 ' >>$CONFIG_STATUS
5963 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5964 rm -f conftest.undefs
5965 mv conftest.tail conftest.undefs
5966 done
5967 rm -f conftest.undefs
5969 cat >>$CONFIG_STATUS <<\_ACEOF
5970 # Let's still pretend it is `configure' which instantiates (i.e., don't
5971 # use $as_me), people would be surprised to read:
5972 # /* config.h. Generated by config.status. */
5973 if test x"$ac_file" = x-; then
5974 echo "/* Generated by configure. */" >$tmp/config.h
5975 else
5976 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5978 cat $tmp/in >>$tmp/config.h
5979 rm -f $tmp/in
5980 if test x"$ac_file" != x-; then
5981 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5982 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5983 echo "$as_me: $ac_file is unchanged" >&6;}
5984 else
5985 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5987 X"$ac_file" : 'X\(//\)[^/]' \| \
5988 X"$ac_file" : 'X\(//\)$' \| \
5989 X"$ac_file" : 'X\(/\)' \| \
5990 . : '\(.\)' 2>/dev/null ||
5991 echo X"$ac_file" |
5992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5994 /^X\(\/\/\)$/{ s//\1/; q; }
5995 /^X\(\/\).*/{ s//\1/; q; }
5996 s/.*/./; q'`
5997 { case "$ac_dir" in
5998 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5999 *) as_incr_dir=.;;
6000 esac
6001 as_dummy="$ac_dir"
6002 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6003 case $as_mkdir_dir in
6004 # Skip DOS drivespec
6005 ?:) as_incr_dir=$as_mkdir_dir ;;
6007 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6008 test -d "$as_incr_dir" ||
6009 mkdir "$as_incr_dir" ||
6010 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6011 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6012 { (exit 1); exit 1; }; }
6014 esac
6015 done; }
6017 rm -f $ac_file
6018 mv $tmp/config.h $ac_file
6020 else
6021 cat $tmp/config.h
6022 rm -f $tmp/config.h
6024 done
6025 _ACEOF
6026 cat >>$CONFIG_STATUS <<\_ACEOF
6029 # CONFIG_COMMANDS section.
6031 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6032 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6033 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6034 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6035 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6036 X"$ac_dest" : 'X\(//\)[^/]' \| \
6037 X"$ac_dest" : 'X\(//\)$' \| \
6038 X"$ac_dest" : 'X\(/\)' \| \
6039 . : '\(.\)' 2>/dev/null ||
6040 echo X"$ac_dest" |
6041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6043 /^X\(\/\/\)$/{ s//\1/; q; }
6044 /^X\(\/\).*/{ s//\1/; q; }
6045 s/.*/./; q'`
6046 ac_builddir=.
6048 if test "$ac_dir" != .; then
6049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6050 # A "../" for each directory in $ac_dir_suffix.
6051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6052 else
6053 ac_dir_suffix= ac_top_builddir=
6056 case $srcdir in
6057 .) # No --srcdir option. We are building in place.
6058 ac_srcdir=.
6059 if test -z "$ac_top_builddir"; then
6060 ac_top_srcdir=.
6061 else
6062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6063 fi ;;
6064 [\\/]* | ?:[\\/]* ) # Absolute path.
6065 ac_srcdir=$srcdir$ac_dir_suffix;
6066 ac_top_srcdir=$srcdir ;;
6067 *) # Relative path.
6068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6070 esac
6071 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6072 # absolute.
6073 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6074 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6075 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6076 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6079 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6080 echo "$as_me: executing $ac_dest commands" >&6;}
6081 case $ac_dest in
6082 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
6083 esac
6084 done
6085 _ACEOF
6087 cat >>$CONFIG_STATUS <<\_ACEOF
6089 { (exit 0); exit 0; }
6090 _ACEOF
6091 chmod +x $CONFIG_STATUS
6092 ac_clean_files=$ac_clean_files_save
6095 # configure is writing to config.log, and then calls config.status.
6096 # config.status does its own redirection, appending to config.log.
6097 # Unfortunately, on DOS this fails, as config.log is still kept open
6098 # by configure, so config.status won't be able to write to it; its
6099 # output is simply discarded. So we exec the FD to /dev/null,
6100 # effectively closing config.log, so it can be properly (re)opened and
6101 # appended to by config.status. When coming back to configure, we
6102 # need to make the FD available again.
6103 if test "$no_create" != yes; then
6104 ac_cs_success=:
6105 exec 5>/dev/null
6106 $SHELL $CONFIG_STATUS || ac_cs_success=false
6107 exec 5>>config.log
6108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6109 # would make configure fail if this is the last instruction.
6110 $ac_cs_success || { (exit 1); exit 1; }