fookb: Add version 3.1 to repository.
[dockapps.git] / fookb / configure
blobb5a3a278b0b11064dbb5d2df1a4cb33306d38ece
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
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'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="fookb.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT WUTIL_LIB CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP HAVE_WMAKER LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
837 _ACEOF
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-libWUtil try to use property lists handling in libWUtil
848 --enable-wmaker create windowmaker dockable application
850 Optional Packages:
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853 --with-x use the X Window System
855 Some influential environment variables:
856 CC C compiler command
857 CFLAGS C compiler flags
858 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
859 nonstandard directory <lib dir>
860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
861 headers in a nonstandard directory <include dir>
862 CPP C preprocessor
864 Use these variables to override the choices made by `configure' or to help
865 it to find libraries and programs with nonstandard names/locations.
867 _ACEOF
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
872 ac_popdir=`pwd`
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
875 ac_builddir=.
877 if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881 else
882 ac_dir_suffix= ac_top_builddir=
885 case $srcdir in
886 .) # No --srcdir option. We are building in place.
887 ac_srcdir=.
888 if test -z "$ac_top_builddir"; then
889 ac_top_srcdir=.
890 else
891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892 fi ;;
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
896 *) # Relative path.
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
899 esac
901 # Do not use `cd foo && pwd` to compute absolute paths, because
902 # the directories may not exist.
903 case `pwd` in
904 .) ac_abs_builddir="$ac_dir";;
906 case "$ac_dir" in
907 .) ac_abs_builddir=`pwd`;;
908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
910 esac;;
911 esac
912 case $ac_abs_builddir in
913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
915 case ${ac_top_builddir}. in
916 .) ac_abs_top_builddir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919 esac;;
920 esac
921 case $ac_abs_builddir in
922 .) ac_abs_srcdir=$ac_srcdir;;
924 case $ac_srcdir in
925 .) ac_abs_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
933 case $ac_top_srcdir in
934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937 esac;;
938 esac
940 cd $ac_dir
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
943 echo
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
946 echo
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
949 test -f $ac_srcdir/configure.in; then
950 echo
951 $ac_configure --help
952 else
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 cd "$ac_popdir"
956 done
959 test -n "$ac_init_help" && exit 0
960 if $ac_init_version; then
961 cat <<\_ACEOF
963 Copyright (C) 2003 Free Software Foundation, Inc.
964 This configure script is free software; the Free Software Foundation
965 gives unlimited permission to copy, distribute and modify it.
966 _ACEOF
967 exit 0
969 exec 5>config.log
970 cat >&5 <<_ACEOF
971 This file contains any messages produced by compilers while
972 running configure, to aid debugging if configure makes a mistake.
974 It was created by $as_me, which was
975 generated by GNU Autoconf 2.59. Invocation command line was
977 $ $0 $@
979 _ACEOF
981 cat <<_ASUNAME
982 ## --------- ##
983 ## Platform. ##
984 ## --------- ##
986 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987 uname -m = `(uname -m) 2>/dev/null || echo unknown`
988 uname -r = `(uname -r) 2>/dev/null || echo unknown`
989 uname -s = `(uname -s) 2>/dev/null || echo unknown`
990 uname -v = `(uname -v) 2>/dev/null || echo unknown`
992 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
995 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
996 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
997 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
999 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1000 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1001 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003 _ASUNAME
1005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 for as_dir in $PATH
1008 IFS=$as_save_IFS
1009 test -z "$as_dir" && as_dir=.
1010 echo "PATH: $as_dir"
1011 done
1013 } >&5
1015 cat >&5 <<_ACEOF
1018 ## ----------- ##
1019 ## Core tests. ##
1020 ## ----------- ##
1022 _ACEOF
1025 # Keep a trace of the command line.
1026 # Strip out --no-create and --no-recursion so they do not pile up.
1027 # Strip out --silent because we don't want to record it for future runs.
1028 # Also quote any args containing shell meta-characters.
1029 # Make two passes to allow for proper duplicate-argument suppression.
1030 ac_configure_args=
1031 ac_configure_args0=
1032 ac_configure_args1=
1033 ac_sep=
1034 ac_must_keep_next=false
1035 for ac_pass in 1 2
1037 for ac_arg
1039 case $ac_arg in
1040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 continue ;;
1044 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1045 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 esac
1047 case $ac_pass in
1048 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1050 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1051 if test $ac_must_keep_next = true; then
1052 ac_must_keep_next=false # Got value, back to normal.
1053 else
1054 case $ac_arg in
1055 *=* | --config-cache | -C | -disable-* | --disable-* \
1056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1058 | -with-* | --with-* | -without-* | --without-* | --x)
1059 case "$ac_configure_args0 " in
1060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 esac
1063 -* ) ac_must_keep_next=true ;;
1064 esac
1066 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1067 # Get rid of the leading space.
1068 ac_sep=" "
1070 esac
1071 done
1072 done
1073 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1074 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1076 # When interrupted or exit'd, cleanup temporary files, and complete
1077 # config.log. We remove comments because anyway the quotes in there
1078 # would cause problems or look ugly.
1079 # WARNING: Be sure not to use single quotes in there, as some shells,
1080 # such as our DU 5.0 friend, will then `close' the trap.
1081 trap 'exit_status=$?
1082 # Save into config.log some information that might help in debugging.
1084 echo
1086 cat <<\_ASBOX
1087 ## ---------------- ##
1088 ## Cache variables. ##
1089 ## ---------------- ##
1090 _ASBOX
1091 echo
1092 # The following way of writing the cache mishandles newlines in values,
1094 (set) 2>&1 |
1095 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 *ac_space=\ *)
1097 sed -n \
1098 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 sed -n \
1103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105 esac;
1107 echo
1109 cat <<\_ASBOX
1110 ## ----------------- ##
1111 ## Output variables. ##
1112 ## ----------------- ##
1113 _ASBOX
1114 echo
1115 for ac_var in $ac_subst_vars
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1122 if test -n "$ac_subst_files"; then
1123 cat <<\_ASBOX
1124 ## ------------- ##
1125 ## Output files. ##
1126 ## ------------- ##
1127 _ASBOX
1128 echo
1129 for ac_var in $ac_subst_files
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1137 if test -s confdefs.h; then
1138 cat <<\_ASBOX
1139 ## ----------- ##
1140 ## confdefs.h. ##
1141 ## ----------- ##
1142 _ASBOX
1143 echo
1144 sed "/^$/d" confdefs.h | sort
1145 echo
1147 test "$ac_signal" != 0 &&
1148 echo "$as_me: caught signal $ac_signal"
1149 echo "$as_me: exit $exit_status"
1150 } >&5
1151 rm -f core *.core &&
1152 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 exit $exit_status
1155 for ac_signal in 1 2 13 15; do
1156 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157 done
1158 ac_signal=0
1160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1161 rm -rf conftest* confdefs.h
1162 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163 echo >confdefs.h
1165 # Predefined preprocessor variables.
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_NAME "$PACKAGE_NAME"
1169 _ACEOF
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174 _ACEOF
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1179 _ACEOF
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_STRING "$PACKAGE_STRING"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189 _ACEOF
1192 # Let the site file select an alternate cache file if it wants to.
1193 # Prefer explicitly selected file to automatically selected ones.
1194 if test -z "$CONFIG_SITE"; then
1195 if test "x$prefix" != xNONE; then
1196 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 else
1198 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201 for ac_site_file in $CONFIG_SITE; do
1202 if test -r "$ac_site_file"; then
1203 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1204 echo "$as_me: loading site script $ac_site_file" >&6;}
1205 sed 's/^/| /' "$ac_site_file" >&5
1206 . "$ac_site_file"
1208 done
1210 if test -r "$cache_file"; then
1211 # Some versions of bash will fail to source /dev/null (special
1212 # files actually), so we avoid doing that.
1213 if test -f "$cache_file"; then
1214 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1215 echo "$as_me: loading cache $cache_file" >&6;}
1216 case $cache_file in
1217 [\\/]* | ?:[\\/]* ) . $cache_file;;
1218 *) . ./$cache_file;;
1219 esac
1221 else
1222 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1223 echo "$as_me: creating cache $cache_file" >&6;}
1224 >$cache_file
1227 # Check that the precious variables saved in the cache have kept the same
1228 # value.
1229 ac_cache_corrupted=false
1230 for ac_var in `(set) 2>&1 |
1231 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1233 eval ac_new_set=\$ac_env_${ac_var}_set
1234 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1235 eval ac_new_val="\$ac_env_${ac_var}_value"
1236 case $ac_old_set,$ac_new_set in
1237 set,)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,set)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,);;
1247 if test "x$ac_old_val" != "x$ac_new_val"; then
1248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1249 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1251 echo "$as_me: former value: $ac_old_val" >&2;}
1252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1253 echo "$as_me: current value: $ac_new_val" >&2;}
1254 ac_cache_corrupted=:
1255 fi;;
1256 esac
1257 # Pass precious variables to config.status.
1258 if test "$ac_new_set" = set; then
1259 case $ac_new_val in
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 *) ac_arg=$ac_var=$ac_new_val ;;
1263 esac
1264 case " $ac_configure_args " in
1265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1266 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 esac
1269 done
1270 if $ac_cache_corrupted; then
1271 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1272 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1273 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1274 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1275 { (exit 1); exit 1; }; }
1278 ac_ext=c
1279 ac_cpp='$CPP $CPPFLAGS'
1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308 if test -n "$ac_tool_prefix"; then
1309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1311 echo "$as_me:$LINENO: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 else
1319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1320 for as_dir in $PATH
1322 IFS=$as_save_IFS
1323 test -z "$as_dir" && as_dir=.
1324 for ac_exec_ext in '' $ac_executable_extensions; do
1325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1328 break 2
1330 done
1331 done
1335 CC=$ac_cv_prog_CC
1336 if test -n "$CC"; then
1337 echo "$as_me:$LINENO: result: $CC" >&5
1338 echo "${ECHO_T}$CC" >&6
1339 else
1340 echo "$as_me:$LINENO: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1345 if test -z "$ac_cv_prog_CC"; then
1346 ac_ct_CC=$CC
1347 # Extract the first word of "gcc", so it can be a program name with args.
1348 set dummy gcc; ac_word=$2
1349 echo "$as_me:$LINENO: checking for $ac_word" >&5
1350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 if test -n "$ac_ct_CC"; then
1355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1356 else
1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 for as_dir in $PATH
1360 IFS=$as_save_IFS
1361 test -z "$as_dir" && as_dir=.
1362 for ac_exec_ext in '' $ac_executable_extensions; do
1363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1364 ac_cv_prog_ac_ct_CC="gcc"
1365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1366 break 2
1368 done
1369 done
1373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1374 if test -n "$ac_ct_CC"; then
1375 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1376 echo "${ECHO_T}$ac_ct_CC" >&6
1377 else
1378 echo "$as_me:$LINENO: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1382 CC=$ac_ct_CC
1383 else
1384 CC="$ac_cv_prog_CC"
1387 if test -z "$CC"; then
1388 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1390 set dummy ${ac_tool_prefix}cc; ac_word=$2
1391 echo "$as_me:$LINENO: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1398 else
1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 for as_dir in $PATH
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406 ac_cv_prog_CC="${ac_tool_prefix}cc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
1410 done
1411 done
1415 CC=$ac_cv_prog_CC
1416 if test -n "$CC"; then
1417 echo "$as_me:$LINENO: result: $CC" >&5
1418 echo "${ECHO_T}$CC" >&6
1419 else
1420 echo "$as_me:$LINENO: result: no" >&5
1421 echo "${ECHO_T}no" >&6
1425 if test -z "$ac_cv_prog_CC"; then
1426 ac_ct_CC=$CC
1427 # Extract the first word of "cc", so it can be a program name with args.
1428 set dummy cc; ac_word=$2
1429 echo "$as_me:$LINENO: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 if test -n "$ac_ct_CC"; then
1435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436 else
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1440 IFS=$as_save_IFS
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_prog_ac_ct_CC="cc"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 break 2
1448 done
1449 done
1453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454 if test -n "$ac_ct_CC"; then
1455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456 echo "${ECHO_T}$ac_ct_CC" >&6
1457 else
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1462 CC=$ac_ct_CC
1463 else
1464 CC="$ac_cv_prog_CC"
1468 if test -z "$CC"; then
1469 # Extract the first word of "cc", so it can be a program name with args.
1470 set dummy cc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 else
1479 ac_prog_rejected=no
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1488 ac_prog_rejected=yes
1489 continue
1491 ac_cv_prog_CC="cc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1498 if test $ac_prog_rejected = yes; then
1499 # We found a bogon in the path, so make sure we never use it.
1500 set dummy $ac_cv_prog_CC
1501 shift
1502 if test $# != 0; then
1503 # We chose a different compiler from the bogus one.
1504 # However, it has the same basename, so the bogon will be chosen
1505 # first if we set CC to just the basename; use the full file name.
1506 shift
1507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1512 CC=$ac_cv_prog_CC
1513 if test -n "$CC"; then
1514 echo "$as_me:$LINENO: result: $CC" >&5
1515 echo "${ECHO_T}$CC" >&6
1516 else
1517 echo "$as_me:$LINENO: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1522 if test -z "$CC"; then
1523 if test -n "$ac_tool_prefix"; then
1524 for ac_prog in cl
1526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1547 done
1548 done
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1561 test -n "$CC" && break
1562 done
1564 if test -z "$CC"; then
1565 ac_ct_CC=$CC
1566 for ac_prog in cl
1568 # Extract the first word of "$ac_prog", so it can be a program name with args.
1569 set dummy $ac_prog; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="$ac_prog"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1589 done
1590 done
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1603 test -n "$ac_ct_CC" && break
1604 done
1606 CC=$ac_ct_CC
1612 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1613 See \`config.log' for more details." >&5
1614 echo "$as_me: error: no acceptable C compiler found in \$PATH
1615 See \`config.log' for more details." >&2;}
1616 { (exit 1); exit 1; }; }
1618 # Provide some information about the compiler.
1619 echo "$as_me:$LINENO:" \
1620 "checking for C compiler version" >&5
1621 ac_compiler=`set X $ac_compile; echo $2`
1622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1623 (eval $ac_compiler --version </dev/null >&5) 2>&5
1624 ac_status=$?
1625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626 (exit $ac_status); }
1627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1628 (eval $ac_compiler -v </dev/null >&5) 2>&5
1629 ac_status=$?
1630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631 (exit $ac_status); }
1632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1633 (eval $ac_compiler -V </dev/null >&5) 2>&5
1634 ac_status=$?
1635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636 (exit $ac_status); }
1638 cat >conftest.$ac_ext <<_ACEOF
1639 /* confdefs.h. */
1640 _ACEOF
1641 cat confdefs.h >>conftest.$ac_ext
1642 cat >>conftest.$ac_ext <<_ACEOF
1643 /* end confdefs.h. */
1646 main ()
1650 return 0;
1652 _ACEOF
1653 ac_clean_files_save=$ac_clean_files
1654 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1655 # Try to create an executable without -o first, disregard a.out.
1656 # It will help us diagnose broken compilers, and finding out an intuition
1657 # of exeext.
1658 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1659 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1660 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1661 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1662 (eval $ac_link_default) 2>&5
1663 ac_status=$?
1664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1665 (exit $ac_status); }; then
1666 # Find the output, starting from the most likely. This scheme is
1667 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1668 # resort.
1670 # Be careful to initialize this variable, since it used to be cached.
1671 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1672 ac_cv_exeext=
1673 # b.out is created by i960 compilers.
1674 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1676 test -f "$ac_file" || continue
1677 case $ac_file in
1678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1680 conftest.$ac_ext )
1681 # This is the source file.
1683 [ab].out )
1684 # We found the default executable, but exeext='' is most
1685 # certainly right.
1686 break;;
1687 *.* )
1688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1689 # FIXME: I believe we export ac_cv_exeext for Libtool,
1690 # but it would be cool to find out if it's true. Does anybody
1691 # maintain Libtool? --akim.
1692 export ac_cv_exeext
1693 break;;
1695 break;;
1696 esac
1697 done
1698 else
1699 echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1703 See \`config.log' for more details." >&5
1704 echo "$as_me: error: C compiler cannot create executables
1705 See \`config.log' for more details." >&2;}
1706 { (exit 77); exit 77; }; }
1709 ac_exeext=$ac_cv_exeext
1710 echo "$as_me:$LINENO: result: $ac_file" >&5
1711 echo "${ECHO_T}$ac_file" >&6
1713 # Check the compiler produces executables we can run. If not, either
1714 # the compiler is broken, or we cross compile.
1715 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1716 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1718 # If not cross compiling, check that we can run a simple program.
1719 if test "$cross_compiling" != yes; then
1720 if { ac_try='./$ac_file'
1721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1722 (eval $ac_try) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }; }; then
1726 cross_compiling=no
1727 else
1728 if test "$cross_compiling" = maybe; then
1729 cross_compiling=yes
1730 else
1731 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1732 If you meant to cross compile, use \`--host'.
1733 See \`config.log' for more details." >&5
1734 echo "$as_me: error: cannot run C compiled programs.
1735 If you meant to cross compile, use \`--host'.
1736 See \`config.log' for more details." >&2;}
1737 { (exit 1); exit 1; }; }
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1744 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1745 ac_clean_files=$ac_clean_files_save
1746 # Check the compiler produces executables we can run. If not, either
1747 # the compiler is broken, or we cross compile.
1748 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1750 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1751 echo "${ECHO_T}$cross_compiling" >&6
1753 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1754 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1756 (eval $ac_link) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1761 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1762 # work properly (i.e., refer to `conftest.exe'), while it won't with
1763 # `rm'.
1764 for ac_file in conftest.exe conftest conftest.*; do
1765 test -f "$ac_file" || continue
1766 case $ac_file in
1767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769 export ac_cv_exeext
1770 break;;
1771 * ) break;;
1772 esac
1773 done
1774 else
1775 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1776 See \`config.log' for more details." >&5
1777 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1778 See \`config.log' for more details." >&2;}
1779 { (exit 1); exit 1; }; }
1782 rm -f conftest$ac_cv_exeext
1783 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1784 echo "${ECHO_T}$ac_cv_exeext" >&6
1786 rm -f conftest.$ac_ext
1787 EXEEXT=$ac_cv_exeext
1788 ac_exeext=$EXEEXT
1789 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1790 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1791 if test "${ac_cv_objext+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 cat >conftest.$ac_ext <<_ACEOF
1795 /* confdefs.h. */
1796 _ACEOF
1797 cat confdefs.h >>conftest.$ac_ext
1798 cat >>conftest.$ac_ext <<_ACEOF
1799 /* end confdefs.h. */
1802 main ()
1806 return 0;
1808 _ACEOF
1809 rm -f conftest.o conftest.obj
1810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1811 (eval $ac_compile) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }; then
1815 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1816 case $ac_file in
1817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1818 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1819 break;;
1820 esac
1821 done
1822 else
1823 echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1829 See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1835 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1836 echo "${ECHO_T}$ac_cv_objext" >&6
1837 OBJEXT=$ac_cv_objext
1838 ac_objext=$OBJEXT
1839 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1840 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1841 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 cat >conftest.$ac_ext <<_ACEOF
1845 /* confdefs.h. */
1846 _ACEOF
1847 cat confdefs.h >>conftest.$ac_ext
1848 cat >>conftest.$ac_ext <<_ACEOF
1849 /* end confdefs.h. */
1852 main ()
1854 #ifndef __GNUC__
1855 choke me
1856 #endif
1859 return 0;
1861 _ACEOF
1862 rm -f conftest.$ac_objext
1863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>conftest.er1
1865 ac_status=$?
1866 grep -v '^ *+' conftest.er1 >conftest.err
1867 rm -f conftest.er1
1868 cat conftest.err >&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); } &&
1871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1873 (eval $ac_try) 2>&5
1874 ac_status=$?
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; } &&
1877 { ac_try='test -s conftest.$ac_objext'
1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1883 ac_compiler_gnu=yes
1884 else
1885 echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_compiler_gnu=no
1890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1894 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1895 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1896 GCC=`test $ac_compiler_gnu = yes && echo yes`
1897 ac_test_CFLAGS=${CFLAGS+set}
1898 ac_save_CFLAGS=$CFLAGS
1899 CFLAGS="-g"
1900 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1902 if test "${ac_cv_prog_cc_g+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 cat >conftest.$ac_ext <<_ACEOF
1906 /* confdefs.h. */
1907 _ACEOF
1908 cat confdefs.h >>conftest.$ac_ext
1909 cat >>conftest.$ac_ext <<_ACEOF
1910 /* end confdefs.h. */
1913 main ()
1917 return 0;
1919 _ACEOF
1920 rm -f conftest.$ac_objext
1921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1922 (eval $ac_compile) 2>conftest.er1
1923 ac_status=$?
1924 grep -v '^ *+' conftest.er1 >conftest.err
1925 rm -f conftest.er1
1926 cat conftest.err >&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1941 ac_cv_prog_cc_g=yes
1942 else
1943 echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_cv_prog_cc_g=no
1948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1950 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1951 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1952 if test "$ac_test_CFLAGS" = set; then
1953 CFLAGS=$ac_save_CFLAGS
1954 elif test $ac_cv_prog_cc_g = yes; then
1955 if test "$GCC" = yes; then
1956 CFLAGS="-g -O2"
1957 else
1958 CFLAGS="-g"
1960 else
1961 if test "$GCC" = yes; then
1962 CFLAGS="-O2"
1963 else
1964 CFLAGS=
1967 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1968 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1969 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 ac_cv_prog_cc_stdc=no
1973 ac_save_CC=$CC
1974 cat >conftest.$ac_ext <<_ACEOF
1975 /* confdefs.h. */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1980 #include <stdarg.h>
1981 #include <stdio.h>
1982 #include <sys/types.h>
1983 #include <sys/stat.h>
1984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1985 struct buf { int x; };
1986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1987 static char *e (p, i)
1988 char **p;
1989 int i;
1991 return p[i];
1993 static char *f (char * (*g) (char **, int), char **p, ...)
1995 char *s;
1996 va_list v;
1997 va_start (v,p);
1998 s = g (p, va_arg (v,int));
1999 va_end (v);
2000 return s;
2003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2004 function prototypes and stuff, but not '\xHH' hex character constants.
2005 These don't provoke an error unfortunately, instead are silently treated
2006 as 'x'. The following induces an error, until -std1 is added to get
2007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2008 array size at least. It's necessary to write '\x00'==0 to get something
2009 that's true only with -std1. */
2010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2012 int test (int i, double x);
2013 struct s1 {int (*f) (int a);};
2014 struct s2 {int (*f) (double a);};
2015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2016 int argc;
2017 char **argv;
2019 main ()
2021 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2023 return 0;
2025 _ACEOF
2026 # Don't try gcc -ansi; that turns off useful extensions and
2027 # breaks some systems' header files.
2028 # AIX -qlanglvl=ansi
2029 # Ultrix and OSF/1 -std1
2030 # HP-UX 10.20 and later -Ae
2031 # HP-UX older versions -Aa -D_HPUX_SOURCE
2032 # SVR4 -Xc -D__EXTENSIONS__
2033 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2035 CC="$ac_save_CC $ac_arg"
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>conftest.er1
2039 ac_status=$?
2040 grep -v '^ *+' conftest.er1 >conftest.err
2041 rm -f conftest.er1
2042 cat conftest.err >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); } &&
2045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 ac_cv_prog_cc_stdc=$ac_arg
2058 break
2059 else
2060 echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2064 rm -f conftest.err conftest.$ac_objext
2065 done
2066 rm -f conftest.$ac_ext conftest.$ac_objext
2067 CC=$ac_save_CC
2071 case "x$ac_cv_prog_cc_stdc" in
2072 x|xno)
2073 echo "$as_me:$LINENO: result: none needed" >&5
2074 echo "${ECHO_T}none needed" >&6 ;;
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2078 CC="$CC $ac_cv_prog_cc_stdc" ;;
2079 esac
2081 # Some people use a C++ compiler to compile C. Since we use `exit',
2082 # in C++ we need to declare it. In case someone uses the same compiler
2083 # for both compiling C and C++ we need to have the C++ compiler decide
2084 # the declaration of exit, since it's the most demanding environment.
2085 cat >conftest.$ac_ext <<_ACEOF
2086 #ifndef __cplusplus
2087 choke me
2088 #endif
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2093 ac_status=$?
2094 grep -v '^ *+' conftest.er1 >conftest.err
2095 rm -f conftest.er1
2096 cat conftest.err >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 for ac_declaration in \
2112 '' \
2113 'extern "C" void std::exit (int) throw (); using std::exit;' \
2114 'extern "C" void std::exit (int); using std::exit;' \
2115 'extern "C" void exit (int) throw ();' \
2116 'extern "C" void exit (int);' \
2117 'void exit (int);'
2119 cat >conftest.$ac_ext <<_ACEOF
2120 /* confdefs.h. */
2121 _ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2125 $ac_declaration
2126 #include <stdlib.h>
2128 main ()
2130 exit (42);
2132 return 0;
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2138 ac_status=$?
2139 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2157 else
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2161 continue
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 cat >conftest.$ac_ext <<_ACEOF
2165 /* confdefs.h. */
2166 _ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2170 $ac_declaration
2172 main ()
2174 exit (42);
2176 return 0;
2178 _ACEOF
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2182 ac_status=$?
2183 grep -v '^ *+' conftest.er1 >conftest.err
2184 rm -f conftest.er1
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 break
2201 else
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 done
2208 rm -f conftest*
2209 if test -n "$ac_declaration"; then
2210 echo '#ifdef __cplusplus' >>confdefs.h
2211 echo $ac_declaration >>confdefs.h
2212 echo '#endif' >>confdefs.h
2215 else
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 WUTIL_LIB="-lWUtil"
2234 ac_ext=c
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2241 # On Suns, sometimes $CPP names a directory.
2242 if test -n "$CPP" && test -d "$CPP"; then
2243 CPP=
2245 if test -z "$CPP"; then
2246 if test "${ac_cv_prog_CPP+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 # Double quotes because CPP needs to be expanded
2250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2252 ac_preproc_ok=false
2253 for ac_c_preproc_warn_flag in '' yes
2255 # Use a header file that comes with gcc, so configuring glibc
2256 # with a fresh cross-compiler works.
2257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2258 # <limits.h> exists even on freestanding compilers.
2259 # On the NeXT, cc -E runs the code through the compiler's parser,
2260 # not just through cpp. "Syntax error" is here to catch this case.
2261 cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h. */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2267 #ifdef __STDC__
2268 # include <limits.h>
2269 #else
2270 # include <assert.h>
2271 #endif
2272 Syntax error
2273 _ACEOF
2274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2276 ac_status=$?
2277 grep -v '^ *+' conftest.er1 >conftest.err
2278 rm -f conftest.er1
2279 cat conftest.err >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); } >/dev/null; then
2282 if test -s conftest.err; then
2283 ac_cpp_err=$ac_c_preproc_warn_flag
2284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2285 else
2286 ac_cpp_err=
2288 else
2289 ac_cpp_err=yes
2291 if test -z "$ac_cpp_err"; then
2293 else
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 # Broken: fails on valid input.
2298 continue
2300 rm -f conftest.err conftest.$ac_ext
2302 # OK, works on sane cases. Now check whether non-existent headers
2303 # can be detected and how.
2304 cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h. */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2310 #include <ac_nonexistent.h>
2311 _ACEOF
2312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } >/dev/null; then
2320 if test -s conftest.err; then
2321 ac_cpp_err=$ac_c_preproc_warn_flag
2322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2323 else
2324 ac_cpp_err=
2326 else
2327 ac_cpp_err=yes
2329 if test -z "$ac_cpp_err"; then
2330 # Broken: success on invalid input.
2331 continue
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 # Passes both tests.
2337 ac_preproc_ok=:
2338 break
2340 rm -f conftest.err conftest.$ac_ext
2342 done
2343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2344 rm -f conftest.err conftest.$ac_ext
2345 if $ac_preproc_ok; then
2346 break
2349 done
2350 ac_cv_prog_CPP=$CPP
2353 CPP=$ac_cv_prog_CPP
2354 else
2355 ac_cv_prog_CPP=$CPP
2357 echo "$as_me:$LINENO: result: $CPP" >&5
2358 echo "${ECHO_T}$CPP" >&6
2359 ac_preproc_ok=false
2360 for ac_c_preproc_warn_flag in '' yes
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2374 #ifdef __STDC__
2375 # include <limits.h>
2376 #else
2377 # include <assert.h>
2378 #endif
2379 Syntax error
2380 _ACEOF
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2395 else
2396 ac_cpp_err=yes
2398 if test -z "$ac_cpp_err"; then
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 # Broken: fails on valid input.
2405 continue
2407 rm -f conftest.err conftest.$ac_ext
2409 # OK, works on sane cases. Now check whether non-existent headers
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h. */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2417 #include <ac_nonexistent.h>
2418 _ACEOF
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2433 else
2434 ac_cpp_err=yes
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438 continue
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2443 # Passes both tests.
2444 ac_preproc_ok=:
2445 break
2447 rm -f conftest.err conftest.$ac_ext
2449 done
2450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451 rm -f conftest.err conftest.$ac_ext
2452 if $ac_preproc_ok; then
2454 else
2455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2456 See \`config.log' for more details." >&5
2457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2458 See \`config.log' for more details." >&2;}
2459 { (exit 1); exit 1; }; }
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 echo "$as_me:$LINENO: checking for X" >&5
2470 echo $ECHO_N "checking for X... $ECHO_C" >&6
2473 # Check whether --with-x or --without-x was given.
2474 if test "${with_x+set}" = set; then
2475 withval="$with_x"
2478 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2479 if test "x$with_x" = xno; then
2480 # The user explicitly disabled X.
2481 have_x=disabled
2482 else
2483 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2484 # Both variables are already set.
2485 have_x=yes
2486 else
2487 if test "${ac_cv_have_x+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 # One or both of the vars are not set, and there is no cached value.
2491 ac_x_includes=no ac_x_libraries=no
2492 rm -fr conftest.dir
2493 if mkdir conftest.dir; then
2494 cd conftest.dir
2495 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2496 cat >Imakefile <<'_ACEOF'
2497 acfindx:
2498 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2499 _ACEOF
2500 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2502 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2503 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2504 for ac_extension in a so sl; do
2505 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2506 test -f $ac_im_libdir/libX11.$ac_extension; then
2507 ac_im_usrlibdir=$ac_im_libdir; break
2509 done
2510 # Screen out bogus values from the imake configuration. They are
2511 # bogus both because they are the default anyway, and because
2512 # using them would break gcc on systems where it needs fixed includes.
2513 case $ac_im_incroot in
2514 /usr/include) ;;
2515 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2516 esac
2517 case $ac_im_usrlibdir in
2518 /usr/lib | /lib) ;;
2519 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2520 esac
2522 cd ..
2523 rm -fr conftest.dir
2526 # Standard set of common directories for X headers.
2527 # Check X11 before X11Rn because it is often a symlink to the current release.
2528 ac_x_header_dirs='
2529 /usr/X11/include
2530 /usr/X11R6/include
2531 /usr/X11R5/include
2532 /usr/X11R4/include
2534 /usr/include/X11
2535 /usr/include/X11R6
2536 /usr/include/X11R5
2537 /usr/include/X11R4
2539 /usr/local/X11/include
2540 /usr/local/X11R6/include
2541 /usr/local/X11R5/include
2542 /usr/local/X11R4/include
2544 /usr/local/include/X11
2545 /usr/local/include/X11R6
2546 /usr/local/include/X11R5
2547 /usr/local/include/X11R4
2549 /usr/X386/include
2550 /usr/x386/include
2551 /usr/XFree86/include/X11
2553 /usr/include
2554 /usr/local/include
2555 /usr/unsupported/include
2556 /usr/athena/include
2557 /usr/local/x11r5/include
2558 /usr/lpp/Xamples/include
2560 /usr/openwin/include
2561 /usr/openwin/share/include'
2563 if test "$ac_x_includes" = no; then
2564 # Guess where to find include files, by looking for Intrinsic.h.
2565 # First, try using that file with no special directory specified.
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 #include <X11/Intrinsic.h>
2573 _ACEOF
2574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } >/dev/null; then
2582 if test -s conftest.err; then
2583 ac_cpp_err=$ac_c_preproc_warn_flag
2584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2585 else
2586 ac_cpp_err=
2588 else
2589 ac_cpp_err=yes
2591 if test -z "$ac_cpp_err"; then
2592 # We can compile using X headers with no special include directory.
2593 ac_x_includes=
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2598 for ac_dir in $ac_x_header_dirs; do
2599 if test -r "$ac_dir/X11/Intrinsic.h"; then
2600 ac_x_includes=$ac_dir
2601 break
2603 done
2605 rm -f conftest.err conftest.$ac_ext
2606 fi # $ac_x_includes = no
2608 if test "$ac_x_libraries" = no; then
2609 # Check for the libraries.
2610 # See if we find them without any special options.
2611 # Don't add to $LIBS permanently.
2612 ac_save_LIBS=$LIBS
2613 LIBS="-lXt $LIBS"
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620 #include <X11/Intrinsic.h>
2622 main ()
2624 XtMalloc (0)
2626 return 0;
2628 _ACEOF
2629 rm -f conftest.$ac_objext conftest$ac_exeext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2631 (eval $ac_link) 2>conftest.er1
2632 ac_status=$?
2633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest$ac_exeext'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 LIBS=$ac_save_LIBS
2651 # We can link X programs with no special library path.
2652 ac_x_libraries=
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 LIBS=$ac_save_LIBS
2658 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2660 # Don't even attempt the hair of trying to link an X program!
2661 for ac_extension in a so sl; do
2662 if test -r $ac_dir/libXt.$ac_extension; then
2663 ac_x_libraries=$ac_dir
2664 break 2
2666 done
2667 done
2669 rm -f conftest.err conftest.$ac_objext \
2670 conftest$ac_exeext conftest.$ac_ext
2671 fi # $ac_x_libraries = no
2673 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2674 # Didn't find X anywhere. Cache the known absence of X.
2675 ac_cv_have_x="have_x=no"
2676 else
2677 # Record where we found X for the cache.
2678 ac_cv_have_x="have_x=yes \
2679 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2684 eval "$ac_cv_have_x"
2685 fi # $with_x != no
2687 if test "$have_x" != yes; then
2688 echo "$as_me:$LINENO: result: $have_x" >&5
2689 echo "${ECHO_T}$have_x" >&6
2690 no_x=yes
2691 else
2692 # If each of the values was on the command line, it overrides each guess.
2693 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2694 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2695 # Update the cache value to reflect the command line values.
2696 ac_cv_have_x="have_x=yes \
2697 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2698 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2699 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2702 if test "$no_x" = yes; then
2703 # Not all programs may use this symbol, but it does not hurt to define it.
2705 cat >>confdefs.h <<\_ACEOF
2706 #define X_DISPLAY_MISSING 1
2707 _ACEOF
2709 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2710 else
2711 if test -n "$x_includes"; then
2712 X_CFLAGS="$X_CFLAGS -I$x_includes"
2715 # It would also be nice to do this for all -L options, not just this one.
2716 if test -n "$x_libraries"; then
2717 X_LIBS="$X_LIBS -L$x_libraries"
2718 # For Solaris; some versions of Sun CC require a space after -R and
2719 # others require no space. Words are not sufficient . . . .
2720 case `(uname -sr) 2>/dev/null` in
2721 "SunOS 5"*)
2722 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2723 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2724 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 main ()
2737 return 0;
2739 _ACEOF
2740 rm -f conftest.$ac_objext conftest$ac_exeext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2742 (eval $ac_link) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest$ac_exeext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_R_nospace=yes
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 ac_R_nospace=no
2768 rm -f conftest.err conftest.$ac_objext \
2769 conftest$ac_exeext conftest.$ac_ext
2770 if test $ac_R_nospace = yes; then
2771 echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2773 X_LIBS="$X_LIBS -R$x_libraries"
2774 else
2775 LIBS="$ac_xsave_LIBS -R $x_libraries"
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2784 main ()
2788 return 0;
2790 _ACEOF
2791 rm -f conftest.$ac_objext conftest$ac_exeext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2793 (eval $ac_link) 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest$ac_exeext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_R_space=yes
2813 else
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 ac_R_space=no
2819 rm -f conftest.err conftest.$ac_objext \
2820 conftest$ac_exeext conftest.$ac_ext
2821 if test $ac_R_space = yes; then
2822 echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6
2824 X_LIBS="$X_LIBS -R $x_libraries"
2825 else
2826 echo "$as_me:$LINENO: result: neither works" >&5
2827 echo "${ECHO_T}neither works" >&6
2830 LIBS=$ac_xsave_LIBS
2831 esac
2834 # Check for system-dependent libraries X programs must link with.
2835 # Do this before checking for the system-independent R6 libraries
2836 # (-lICE), since we may need -lsocket or whatever for X linking.
2838 if test "$ISC" = yes; then
2839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2840 else
2841 # Martyn Johnson says this is needed for Ultrix, if the X
2842 # libraries were built with DECnet support. And Karl Berry says
2843 # the Alpha needs dnet_stub (dnet does not exist).
2844 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2845 cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2852 /* Override any gcc2 internal prototype to avoid an error. */
2853 #ifdef __cplusplus
2854 extern "C"
2855 #endif
2856 /* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
2858 char XOpenDisplay ();
2860 main ()
2862 XOpenDisplay ();
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.$ac_objext conftest$ac_exeext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest$ac_exeext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2894 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2895 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 ac_check_lib_save_LIBS=$LIBS
2899 LIBS="-ldnet $LIBS"
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2907 /* Override any gcc2 internal prototype to avoid an error. */
2908 #ifdef __cplusplus
2909 extern "C"
2910 #endif
2911 /* We use char because int might match the return type of a gcc2
2912 builtin and then its argument prototype would still apply. */
2913 char dnet_ntoa ();
2915 main ()
2917 dnet_ntoa ();
2919 return 0;
2921 _ACEOF
2922 rm -f conftest.$ac_objext conftest$ac_exeext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2924 (eval $ac_link) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try='test -s conftest$ac_exeext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 ac_cv_lib_dnet_dnet_ntoa=yes
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 ac_cv_lib_dnet_dnet_ntoa=no
2950 rm -f conftest.err conftest.$ac_objext \
2951 conftest$ac_exeext conftest.$ac_ext
2952 LIBS=$ac_check_lib_save_LIBS
2954 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2955 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2956 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2957 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2960 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2961 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2962 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2963 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 ac_check_lib_save_LIBS=$LIBS
2967 LIBS="-ldnet_stub $LIBS"
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2975 /* Override any gcc2 internal prototype to avoid an error. */
2976 #ifdef __cplusplus
2977 extern "C"
2978 #endif
2979 /* We use char because int might match the return type of a gcc2
2980 builtin and then its argument prototype would still apply. */
2981 char dnet_ntoa ();
2983 main ()
2985 dnet_ntoa ();
2987 return 0;
2989 _ACEOF
2990 rm -f conftest.$ac_objext conftest$ac_exeext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992 (eval $ac_link) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest$ac_exeext'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3011 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 ac_cv_lib_dnet_stub_dnet_ntoa=no
3018 rm -f conftest.err conftest.$ac_objext \
3019 conftest$ac_exeext conftest.$ac_ext
3020 LIBS=$ac_check_lib_save_LIBS
3022 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3023 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3024 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3025 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3030 rm -f conftest.err conftest.$ac_objext \
3031 conftest$ac_exeext conftest.$ac_ext
3032 LIBS="$ac_xsave_LIBS"
3034 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3035 # to get the SysV transport functions.
3036 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3037 # needs -lnsl.
3038 # The nsl library prevents programs from opening the X display
3039 # on Irix 5.2, according to T.E. Dickey.
3040 # The functions gethostbyname, getservbyname, and inet_addr are
3041 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3042 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3043 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3044 if test "${ac_cv_func_gethostbyname+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3055 #define gethostbyname innocuous_gethostbyname
3057 /* System header to define __stub macros and hopefully few prototypes,
3058 which can conflict with char gethostbyname (); below.
3059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 <limits.h> exists even on freestanding compilers. */
3062 #ifdef __STDC__
3063 # include <limits.h>
3064 #else
3065 # include <assert.h>
3066 #endif
3068 #undef gethostbyname
3070 /* Override any gcc2 internal prototype to avoid an error. */
3071 #ifdef __cplusplus
3072 extern "C"
3074 #endif
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3077 char gethostbyname ();
3078 /* The GNU C library defines this for functions which it implements
3079 to always fail with ENOSYS. Some functions are actually named
3080 something starting with __ and the normal name is an alias. */
3081 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3082 choke me
3083 #else
3084 char (*f) () = gethostbyname;
3085 #endif
3086 #ifdef __cplusplus
3088 #endif
3091 main ()
3093 return f != gethostbyname;
3095 return 0;
3097 _ACEOF
3098 rm -f conftest.$ac_objext conftest$ac_exeext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100 (eval $ac_link) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest$ac_exeext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 ac_cv_func_gethostbyname=yes
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 ac_cv_func_gethostbyname=no
3126 rm -f conftest.err conftest.$ac_objext \
3127 conftest$ac_exeext conftest.$ac_ext
3129 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3130 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3132 if test $ac_cv_func_gethostbyname = no; then
3133 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3134 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3135 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 ac_check_lib_save_LIBS=$LIBS
3139 LIBS="-lnsl $LIBS"
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3147 /* Override any gcc2 internal prototype to avoid an error. */
3148 #ifdef __cplusplus
3149 extern "C"
3150 #endif
3151 /* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */
3153 char gethostbyname ();
3155 main ()
3157 gethostbyname ();
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.$ac_objext conftest$ac_exeext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3164 (eval $ac_link) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_lib_nsl_gethostbyname=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 ac_cv_lib_nsl_gethostbyname=no
3190 rm -f conftest.err conftest.$ac_objext \
3191 conftest$ac_exeext conftest.$ac_ext
3192 LIBS=$ac_check_lib_save_LIBS
3194 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3195 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3196 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3197 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3200 if test $ac_cv_lib_nsl_gethostbyname = no; then
3201 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3202 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3203 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 ac_check_lib_save_LIBS=$LIBS
3207 LIBS="-lbsd $LIBS"
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3215 /* Override any gcc2 internal prototype to avoid an error. */
3216 #ifdef __cplusplus
3217 extern "C"
3218 #endif
3219 /* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3221 char gethostbyname ();
3223 main ()
3225 gethostbyname ();
3227 return 0;
3229 _ACEOF
3230 rm -f conftest.$ac_objext conftest$ac_exeext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232 (eval $ac_link) 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest$ac_exeext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_lib_bsd_gethostbyname=yes
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 ac_cv_lib_bsd_gethostbyname=no
3258 rm -f conftest.err conftest.$ac_objext \
3259 conftest$ac_exeext conftest.$ac_ext
3260 LIBS=$ac_check_lib_save_LIBS
3262 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3263 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3264 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3271 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3272 # socket/setsockopt and other routines are undefined under SCO ODT
3273 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3274 # on later versions), says Simon Leinen: it contains gethostby*
3275 # variants that don't use the name server (or something). -lsocket
3276 # must be given before -lnsl if both are needed. We assume that
3277 # if connect needs -lnsl, so does gethostbyname.
3278 echo "$as_me:$LINENO: checking for connect" >&5
3279 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3280 if test "${ac_cv_func_connect+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3291 #define connect innocuous_connect
3293 /* System header to define __stub macros and hopefully few prototypes,
3294 which can conflict with char connect (); below.
3295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3296 <limits.h> exists even on freestanding compilers. */
3298 #ifdef __STDC__
3299 # include <limits.h>
3300 #else
3301 # include <assert.h>
3302 #endif
3304 #undef connect
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 #ifdef __cplusplus
3308 extern "C"
3310 #endif
3311 /* We use char because int might match the return type of a gcc2
3312 builtin and then its argument prototype would still apply. */
3313 char connect ();
3314 /* The GNU C library defines this for functions which it implements
3315 to always fail with ENOSYS. Some functions are actually named
3316 something starting with __ and the normal name is an alias. */
3317 #if defined (__stub_connect) || defined (__stub___connect)
3318 choke me
3319 #else
3320 char (*f) () = connect;
3321 #endif
3322 #ifdef __cplusplus
3324 #endif
3327 main ()
3329 return f != connect;
3331 return 0;
3333 _ACEOF
3334 rm -f conftest.$ac_objext conftest$ac_exeext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3336 (eval $ac_link) 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest$ac_exeext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_func_connect=yes
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 ac_cv_func_connect=no
3362 rm -f conftest.err conftest.$ac_objext \
3363 conftest$ac_exeext conftest.$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3366 echo "${ECHO_T}$ac_cv_func_connect" >&6
3368 if test $ac_cv_func_connect = no; then
3369 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3370 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3371 if test "${ac_cv_lib_socket_connect+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 ac_check_lib_save_LIBS=$LIBS
3375 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3383 /* Override any gcc2 internal prototype to avoid an error. */
3384 #ifdef __cplusplus
3385 extern "C"
3386 #endif
3387 /* We use char because int might match the return type of a gcc2
3388 builtin and then its argument prototype would still apply. */
3389 char connect ();
3391 main ()
3393 connect ();
3395 return 0;
3397 _ACEOF
3398 rm -f conftest.$ac_objext conftest$ac_exeext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3400 (eval $ac_link) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest$ac_exeext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_cv_lib_socket_connect=yes
3420 else
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 ac_cv_lib_socket_connect=no
3426 rm -f conftest.err conftest.$ac_objext \
3427 conftest$ac_exeext conftest.$ac_ext
3428 LIBS=$ac_check_lib_save_LIBS
3430 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3431 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3432 if test $ac_cv_lib_socket_connect = yes; then
3433 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3438 # Guillermo Gomez says -lposix is necessary on A/UX.
3439 echo "$as_me:$LINENO: checking for remove" >&5
3440 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3441 if test "${ac_cv_func_remove+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3452 #define remove innocuous_remove
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char remove (); below.
3456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 <limits.h> exists even on freestanding compilers. */
3459 #ifdef __STDC__
3460 # include <limits.h>
3461 #else
3462 # include <assert.h>
3463 #endif
3465 #undef remove
3467 /* Override any gcc2 internal prototype to avoid an error. */
3468 #ifdef __cplusplus
3469 extern "C"
3471 #endif
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3474 char remove ();
3475 /* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478 #if defined (__stub_remove) || defined (__stub___remove)
3479 choke me
3480 #else
3481 char (*f) () = remove;
3482 #endif
3483 #ifdef __cplusplus
3485 #endif
3488 main ()
3490 return f != remove;
3492 return 0;
3494 _ACEOF
3495 rm -f conftest.$ac_objext conftest$ac_exeext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3497 (eval $ac_link) 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest$ac_exeext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_func_remove=yes
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 ac_cv_func_remove=no
3523 rm -f conftest.err conftest.$ac_objext \
3524 conftest$ac_exeext conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3527 echo "${ECHO_T}$ac_cv_func_remove" >&6
3529 if test $ac_cv_func_remove = no; then
3530 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3531 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3532 if test "${ac_cv_lib_posix_remove+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 ac_check_lib_save_LIBS=$LIBS
3536 LIBS="-lposix $LIBS"
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3544 /* Override any gcc2 internal prototype to avoid an error. */
3545 #ifdef __cplusplus
3546 extern "C"
3547 #endif
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3550 char remove ();
3552 main ()
3554 remove ();
3556 return 0;
3558 _ACEOF
3559 rm -f conftest.$ac_objext conftest$ac_exeext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3561 (eval $ac_link) 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest$ac_exeext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_lib_posix_remove=yes
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 ac_cv_lib_posix_remove=no
3587 rm -f conftest.err conftest.$ac_objext \
3588 conftest$ac_exeext conftest.$ac_ext
3589 LIBS=$ac_check_lib_save_LIBS
3591 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3592 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3593 if test $ac_cv_lib_posix_remove = yes; then
3594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3599 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3600 echo "$as_me:$LINENO: checking for shmat" >&5
3601 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3602 if test "${ac_cv_func_shmat+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
3612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3613 #define shmat innocuous_shmat
3615 /* System header to define __stub macros and hopefully few prototypes,
3616 which can conflict with char shmat (); below.
3617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618 <limits.h> exists even on freestanding compilers. */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3626 #undef shmat
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 #ifdef __cplusplus
3630 extern "C"
3632 #endif
3633 /* We use char because int might match the return type of a gcc2
3634 builtin and then its argument prototype would still apply. */
3635 char shmat ();
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_shmat) || defined (__stub___shmat)
3640 choke me
3641 #else
3642 char (*f) () = shmat;
3643 #endif
3644 #ifdef __cplusplus
3646 #endif
3649 main ()
3651 return f != shmat;
3653 return 0;
3655 _ACEOF
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_func_shmat=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_cv_func_shmat=no
3684 rm -f conftest.err conftest.$ac_objext \
3685 conftest$ac_exeext conftest.$ac_ext
3687 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3688 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3690 if test $ac_cv_func_shmat = no; then
3691 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3692 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3693 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 ac_check_lib_save_LIBS=$LIBS
3697 LIBS="-lipc $LIBS"
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 #ifdef __cplusplus
3707 extern "C"
3708 #endif
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3711 char shmat ();
3713 main ()
3715 shmat ();
3717 return 0;
3719 _ACEOF
3720 rm -f conftest.$ac_objext conftest$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722 (eval $ac_link) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest$ac_exeext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_cv_lib_ipc_shmat=yes
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 ac_cv_lib_ipc_shmat=no
3748 rm -f conftest.err conftest.$ac_objext \
3749 conftest$ac_exeext conftest.$ac_ext
3750 LIBS=$ac_check_lib_save_LIBS
3752 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3753 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3754 if test $ac_cv_lib_ipc_shmat = yes; then
3755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3761 # Check for libraries that X11R6 Xt/Xaw programs need.
3762 ac_save_LDFLAGS=$LDFLAGS
3763 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3764 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3765 # check for ICE first), but we must link in the order -lSM -lICE or
3766 # we get undefined symbols. So assume we have SM if we have ICE.
3767 # These have to be linked with before -lX11, unlike the other
3768 # libraries we check for below, so use a different variable.
3769 # John Interrante, Karl Berry
3770 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3771 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3772 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 ac_check_lib_save_LIBS=$LIBS
3776 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3784 /* Override any gcc2 internal prototype to avoid an error. */
3785 #ifdef __cplusplus
3786 extern "C"
3787 #endif
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3790 char IceConnectionNumber ();
3792 main ()
3794 IceConnectionNumber ();
3796 return 0;
3798 _ACEOF
3799 rm -f conftest.$ac_objext conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest$ac_exeext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 ac_cv_lib_ICE_IceConnectionNumber=yes
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 ac_cv_lib_ICE_IceConnectionNumber=no
3827 rm -f conftest.err conftest.$ac_objext \
3828 conftest$ac_exeext conftest.$ac_ext
3829 LIBS=$ac_check_lib_save_LIBS
3831 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3832 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3833 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3834 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3837 LDFLAGS=$ac_save_LDFLAGS
3843 echo "$as_me:$LINENO: checking for XkbOpenDisplay in -lX11" >&5
3844 echo $ECHO_N "checking for XkbOpenDisplay in -lX11... $ECHO_C" >&6
3845 if test "${ac_cv_lib_X11_XkbOpenDisplay+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 ac_check_lib_save_LIBS=$LIBS
3849 LIBS="-lX11 $X_LIBS
3850 $LIBS"
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 #ifdef __cplusplus
3860 extern "C"
3861 #endif
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3864 char XkbOpenDisplay ();
3866 main ()
3868 XkbOpenDisplay ();
3870 return 0;
3872 _ACEOF
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
3882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; } &&
3888 { ac_try='test -s conftest$ac_exeext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_cv_lib_X11_XkbOpenDisplay=yes
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 ac_cv_lib_X11_XkbOpenDisplay=no
3901 rm -f conftest.err conftest.$ac_objext \
3902 conftest$ac_exeext conftest.$ac_ext
3903 LIBS=$ac_check_lib_save_LIBS
3905 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbOpenDisplay" >&5
3906 echo "${ECHO_T}$ac_cv_lib_X11_XkbOpenDisplay" >&6
3907 if test $ac_cv_lib_X11_XkbOpenDisplay = yes; then
3908 cat >>confdefs.h <<_ACEOF
3909 #define HAVE_LIBX11 1
3910 _ACEOF
3912 LIBS="-lX11 $LIBS"
3914 else
3915 { { echo "$as_me:$LINENO: error: Fatal: no libX11 or no XkbOpenDisplay() in libX11" >&5
3916 echo "$as_me: error: Fatal: no libX11 or no XkbOpenDisplay() in libX11" >&2;}
3917 { (exit 1); exit 1; }; }
3922 echo "$as_me:$LINENO: checking for XpmReadFileToImage in -lXpm" >&5
3923 echo $ECHO_N "checking for XpmReadFileToImage in -lXpm... $ECHO_C" >&6
3924 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 ac_check_lib_save_LIBS=$LIBS
3928 LIBS="-lXpm $X_LIBS
3929 $LIBS"
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3937 /* Override any gcc2 internal prototype to avoid an error. */
3938 #ifdef __cplusplus
3939 extern "C"
3940 #endif
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3943 char XpmReadFileToImage ();
3945 main ()
3947 XpmReadFileToImage ();
3949 return 0;
3951 _ACEOF
3952 rm -f conftest.$ac_objext conftest$ac_exeext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3954 (eval $ac_link) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest$ac_exeext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 ac_cv_lib_Xpm_XpmReadFileToImage=yes
3974 else
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 ac_cv_lib_Xpm_XpmReadFileToImage=no
3980 rm -f conftest.err conftest.$ac_objext \
3981 conftest$ac_exeext conftest.$ac_ext
3982 LIBS=$ac_check_lib_save_LIBS
3984 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
3985 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToImage" >&6
3986 if test $ac_cv_lib_Xpm_XpmReadFileToImage = yes; then
3987 cat >>confdefs.h <<_ACEOF
3988 #define HAVE_LIBXPM 1
3989 _ACEOF
3991 LIBS="-lXpm $LIBS"
3993 else
3994 { { echo "$as_me:$LINENO: error: Fatal: no libXpm found!" >&5
3995 echo "$as_me: error: Fatal: no libXpm found!" >&2;}
3996 { (exit 1); exit 1; }; }
4002 echo "$as_me:$LINENO: checking for egrep" >&5
4003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4004 if test "${ac_cv_prog_egrep+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4008 then ac_cv_prog_egrep='grep -E'
4009 else ac_cv_prog_egrep='egrep'
4012 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4013 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4014 EGREP=$ac_cv_prog_egrep
4017 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4018 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4019 if test "${ac_cv_header_stdc+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 #include <stdlib.h>
4029 #include <stdarg.h>
4030 #include <string.h>
4031 #include <float.h>
4034 main ()
4038 return 0;
4040 _ACEOF
4041 rm -f conftest.$ac_objext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>conftest.er1
4044 ac_status=$?
4045 grep -v '^ *+' conftest.er1 >conftest.err
4046 rm -f conftest.er1
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_cv_header_stdc=yes
4063 else
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 ac_cv_header_stdc=no
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 if test $ac_cv_header_stdc = yes; then
4072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <string.h>
4081 _ACEOF
4082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083 $EGREP "memchr" >/dev/null 2>&1; then
4085 else
4086 ac_cv_header_stdc=no
4088 rm -f conftest*
4092 if test $ac_cv_header_stdc = yes; then
4093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <stdlib.h>
4102 _ACEOF
4103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4104 $EGREP "free" >/dev/null 2>&1; then
4106 else
4107 ac_cv_header_stdc=no
4109 rm -f conftest*
4113 if test $ac_cv_header_stdc = yes; then
4114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4115 if test "$cross_compiling" = yes; then
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 #include <ctype.h>
4125 #if ((' ' & 0x0FF) == 0x020)
4126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4128 #else
4129 # define ISLOWER(c) \
4130 (('a' <= (c) && (c) <= 'i') \
4131 || ('j' <= (c) && (c) <= 'r') \
4132 || ('s' <= (c) && (c) <= 'z'))
4133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4134 #endif
4136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4138 main ()
4140 int i;
4141 for (i = 0; i < 256; i++)
4142 if (XOR (islower (i), ISLOWER (i))
4143 || toupper (i) != TOUPPER (i))
4144 exit(2);
4145 exit (0);
4147 _ACEOF
4148 rm -f conftest$ac_exeext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4150 (eval $ac_link) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4160 else
4161 echo "$as_me: program exited with status $ac_status" >&5
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 ( exit $ac_status )
4166 ac_cv_header_stdc=no
4168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4174 if test $ac_cv_header_stdc = yes; then
4176 cat >>confdefs.h <<\_ACEOF
4177 #define STDC_HEADERS 1
4178 _ACEOF
4182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4193 inttypes.h stdint.h unistd.h
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 $ac_includes_default
4209 #include <$ac_header>
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213 (eval $ac_compile) 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 eval "$as_ac_Header=yes"
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 eval "$as_ac_Header=no"
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4244 cat >>confdefs.h <<_ACEOF
4245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4246 _ACEOF
4250 done
4253 # Check whether --enable-libWUtil or --disable-libWUtil was given.
4254 if test "${enable_libWUtil+set}" = set; then
4255 enableval="$enable_libWUtil"
4257 if test $enable_libWUtil = yes ; then
4259 echo "$as_me:$LINENO: checking for WMReadPropListFromFile in -lWUtil" >&5
4260 echo $ECHO_N "checking for WMReadPropListFromFile in -lWUtil... $ECHO_C" >&6
4261 if test "${ac_cv_lib_WUtil_WMReadPropListFromFile+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 ac_check_lib_save_LIBS=$LIBS
4265 LIBS="-lWUtil $X_LIBS
4266 $LIBS"
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 #ifdef __cplusplus
4276 extern "C"
4277 #endif
4278 /* We use char because int might match the return type of a gcc2
4279 builtin and then its argument prototype would still apply. */
4280 char WMReadPropListFromFile ();
4282 main ()
4284 WMReadPropListFromFile ();
4286 return 0;
4288 _ACEOF
4289 rm -f conftest.$ac_objext conftest$ac_exeext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4291 (eval $ac_link) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest$ac_exeext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_cv_lib_WUtil_WMReadPropListFromFile=yes
4311 else
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cv_lib_WUtil_WMReadPropListFromFile=no
4317 rm -f conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4319 LIBS=$ac_check_lib_save_LIBS
4321 echo "$as_me:$LINENO: result: $ac_cv_lib_WUtil_WMReadPropListFromFile" >&5
4322 echo "${ECHO_T}$ac_cv_lib_WUtil_WMReadPropListFromFile" >&6
4323 if test $ac_cv_lib_WUtil_WMReadPropListFromFile = yes; then
4326 for ac_header in WINGs/WUtil.h
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337 else
4338 # Is the header compilable?
4339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4348 #include <$ac_header>
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_header_compiler=yes
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 ac_header_compiler=no
4378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4380 echo "${ECHO_T}$ac_header_compiler" >&6
4382 # Is the header present?
4383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h. */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 #include <$ac_header>
4392 _ACEOF
4393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } >/dev/null; then
4401 if test -s conftest.err; then
4402 ac_cpp_err=$ac_c_preproc_warn_flag
4403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4404 else
4405 ac_cpp_err=
4407 else
4408 ac_cpp_err=yes
4410 if test -z "$ac_cpp_err"; then
4411 ac_header_preproc=yes
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 ac_header_preproc=no
4418 rm -f conftest.err conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4420 echo "${ECHO_T}$ac_header_preproc" >&6
4422 # So? What about this header?
4423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4424 yes:no: )
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4429 ac_header_preproc=yes
4431 no:yes:* )
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4445 cat <<\_ASBOX
4446 ## ------------------------------------------ ##
4447 ## Report this to the AC_PACKAGE_NAME lists. ##
4448 ## ------------------------------------------ ##
4449 _ASBOX
4451 sed "s/^/$as_me: WARNING: /" >&2
4453 esac
4454 echo "$as_me:$LINENO: checking for $ac_header" >&5
4455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 eval "$as_ac_Header=\$ac_header_preproc"
4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4466 cat >>confdefs.h <<_ACEOF
4467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4468 _ACEOF
4470 else
4472 { echo "$as_me:$LINENO: WARNING: No WINGs/WUtil.h found -- cannot compile version with property lists support. You should use X resources for customizing fookb; or, if you have libproplist, use older version of fookb" >&5
4473 echo "$as_me: WARNING: No WINGs/WUtil.h found -- cannot compile version with property lists support. You should use X resources for customizing fookb; or, if you have libproplist, use older version of fookb" >&2;}
4474 WUTIL_LIB=""
4479 done
4482 else
4484 { echo "$as_me:$LINENO: WARNING: No libWUtil found or old libWUtil version. You should use X resources for setting up fookb. If you have libproplist, use older version of fookb" >&5
4485 echo "$as_me: WARNING: No libWUtil found or old libWUtil version. You should use X resources for setting up fookb. If you have libproplist, use older version of fookb" >&2;}
4486 WUTIL_LIB=""
4491 else
4492 UTIL_LIB=""
4495 else
4497 echo "$as_me:$LINENO: checking for WMReadPropListFromFile in -lWUtil" >&5
4498 echo $ECHO_N "checking for WMReadPropListFromFile in -lWUtil... $ECHO_C" >&6
4499 if test "${ac_cv_lib_WUtil_WMReadPropListFromFile+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 ac_check_lib_save_LIBS=$LIBS
4503 LIBS="-lWUtil $X_LIBS
4504 $LIBS"
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4512 /* Override any gcc2 internal prototype to avoid an error. */
4513 #ifdef __cplusplus
4514 extern "C"
4515 #endif
4516 /* We use char because int might match the return type of a gcc2
4517 builtin and then its argument prototype would still apply. */
4518 char WMReadPropListFromFile ();
4520 main ()
4522 WMReadPropListFromFile ();
4524 return 0;
4526 _ACEOF
4527 rm -f conftest.$ac_objext conftest$ac_exeext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4529 (eval $ac_link) 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest$ac_exeext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_cv_lib_WUtil_WMReadPropListFromFile=yes
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 ac_cv_lib_WUtil_WMReadPropListFromFile=no
4555 rm -f conftest.err conftest.$ac_objext \
4556 conftest$ac_exeext conftest.$ac_ext
4557 LIBS=$ac_check_lib_save_LIBS
4559 echo "$as_me:$LINENO: result: $ac_cv_lib_WUtil_WMReadPropListFromFile" >&5
4560 echo "${ECHO_T}$ac_cv_lib_WUtil_WMReadPropListFromFile" >&6
4561 if test $ac_cv_lib_WUtil_WMReadPropListFromFile = yes; then
4564 for ac_header in WINGs/WUtil.h
4566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575 else
4576 # Is the header compilable?
4577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4586 #include <$ac_header>
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 ac_header_compiler=yes
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 ac_header_compiler=no
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4618 echo "${ECHO_T}$ac_header_compiler" >&6
4620 # Is the header present?
4621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 #include <$ac_header>
4630 _ACEOF
4631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } >/dev/null; then
4639 if test -s conftest.err; then
4640 ac_cpp_err=$ac_c_preproc_warn_flag
4641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4642 else
4643 ac_cpp_err=
4645 else
4646 ac_cpp_err=yes
4648 if test -z "$ac_cpp_err"; then
4649 ac_header_preproc=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_header_preproc=no
4656 rm -f conftest.err conftest.$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4658 echo "${ECHO_T}$ac_header_preproc" >&6
4660 # So? What about this header?
4661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4662 yes:no: )
4663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4667 ac_header_preproc=yes
4669 no:yes:* )
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4683 cat <<\_ASBOX
4684 ## ------------------------------------------ ##
4685 ## Report this to the AC_PACKAGE_NAME lists. ##
4686 ## ------------------------------------------ ##
4687 _ASBOX
4689 sed "s/^/$as_me: WARNING: /" >&2
4691 esac
4692 echo "$as_me:$LINENO: checking for $ac_header" >&5
4693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 eval "$as_ac_Header=\$ac_header_preproc"
4699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4704 cat >>confdefs.h <<_ACEOF
4705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4706 _ACEOF
4708 else
4710 { echo "$as_me:$LINENO: WARNING: No WINGs/WUtil.h found -- cannot compile version with property lists support. You should use X resources for customizing fookb; or, if you have libproplist, use older version of fookb" >&5
4711 echo "$as_me: WARNING: No WINGs/WUtil.h found -- cannot compile version with property lists support. You should use X resources for customizing fookb; or, if you have libproplist, use older version of fookb" >&2;}
4712 WUTIL_LIB=""
4717 done
4720 else
4722 { echo "$as_me:$LINENO: WARNING: No libWUtil found or old libWUtil version. You should use X resources for setting up fookb. If you have libproplist, use older version of fookb" >&5
4723 echo "$as_me: WARNING: No libWUtil found or old libWUtil version. You should use X resources for setting up fookb. If you have libproplist, use older version of fookb" >&2;}
4724 WUTIL_LIB=""
4735 # Check whether --enable-wmaker or --disable-wmaker was given.
4736 if test "${enable_wmaker+set}" = set; then
4737 enableval="$enable_wmaker"
4739 if test $enable_wmaker = yes ; then
4740 cat >>confdefs.h <<\_ACEOF
4741 #define WMAKER 1
4742 _ACEOF
4746 else
4748 # Extract the first word of "wmaker", so it can be a program name with args.
4749 set dummy wmaker; ac_word=$2
4750 echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752 if test "${ac_cv_prog_HAVE_WMAKER+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 if test -n "$HAVE_WMAKER"; then
4756 ac_cv_prog_HAVE_WMAKER="$HAVE_WMAKER" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_HAVE_WMAKER="yes"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4769 done
4770 done
4772 test -z "$ac_cv_prog_HAVE_WMAKER" && ac_cv_prog_HAVE_WMAKER="no"
4775 HAVE_WMAKER=$ac_cv_prog_HAVE_WMAKER
4776 if test -n "$HAVE_WMAKER"; then
4777 echo "$as_me:$LINENO: result: $HAVE_WMAKER" >&5
4778 echo "${ECHO_T}$HAVE_WMAKER" >&6
4779 else
4780 echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6
4785 if test $HAVE_WMAKER = yes ; then
4786 cat >>confdefs.h <<\_ACEOF
4787 #define WMAKER 1
4788 _ACEOF
4795 ac_config_files="$ac_config_files Makefile"
4796 cat >confcache <<\_ACEOF
4797 # This file is a shell script that caches the results of configure
4798 # tests run on this system so they can be shared between configure
4799 # scripts and configure runs, see configure's option --config-cache.
4800 # It is not useful on other systems. If it contains results you don't
4801 # want to keep, you may remove or edit it.
4803 # config.status only pays attention to the cache file if you give it
4804 # the --recheck option to rerun configure.
4806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4808 # following values.
4810 _ACEOF
4812 # The following way of writing the cache mishandles newlines in values,
4813 # but we know of no workaround that is simple, portable, and efficient.
4814 # So, don't put newlines in cache variables' values.
4815 # Ultrix sh set writes to stderr and can't be redirected directly,
4816 # and sets the high bit in the cache file unless we assign to the vars.
4818 (set) 2>&1 |
4819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4820 *ac_space=\ *)
4821 # `set' does not quote correctly, so add quotes (double-quote
4822 # substitution turns \\\\ into \\, and sed turns \\ into \).
4823 sed -n \
4824 "s/'/'\\\\''/g;
4825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4828 # `set' quotes correctly as required by POSIX, so do not add quotes.
4829 sed -n \
4830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4832 esac;
4834 sed '
4835 t clear
4836 : clear
4837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4838 t end
4839 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4840 : end' >>confcache
4841 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4842 if test -w $cache_file; then
4843 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4844 cat confcache >$cache_file
4845 else
4846 echo "not updating unwritable cache $cache_file"
4849 rm -f confcache
4851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4852 # Let make expand exec_prefix.
4853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4857 # trailing colons and then remove the whole line if VPATH becomes empty
4858 # (actually we leave an empty line to preserve line numbers).
4859 if test "x$srcdir" = x.; then
4860 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4861 s/:*\$(srcdir):*/:/;
4862 s/:*\${srcdir}:*/:/;
4863 s/:*@srcdir@:*/:/;
4864 s/^\([^=]*=[ ]*\):*/\1/;
4865 s/:*$//;
4866 s/^[^=]*=[ ]*$//;
4870 # Transform confdefs.h into DEFS.
4871 # Protect against shell expansion while executing Makefile rules.
4872 # Protect against Makefile macro expansion.
4874 # If the first sed substitution is executed (which looks for macros that
4875 # take arguments), then we branch to the quote section. Otherwise,
4876 # look for a macro that doesn't take arguments.
4877 cat >confdef2opt.sed <<\_ACEOF
4878 t clear
4879 : clear
4880 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4881 t quote
4882 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4883 t quote
4885 : quote
4886 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4887 s,\[,\\&,g
4888 s,\],\\&,g
4889 s,\$,$$,g
4891 _ACEOF
4892 # We use echo to avoid assuming a particular line-breaking character.
4893 # The extra dot is to prevent the shell from consuming trailing
4894 # line-breaks from the sub-command output. A line-break within
4895 # single-quotes doesn't work because, if this script is created in a
4896 # platform that uses two characters for line-breaks (e.g., DOS), tr
4897 # would break.
4898 ac_LF_and_DOT=`echo; echo .`
4899 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4900 rm -f confdef2opt.sed
4903 ac_libobjs=
4904 ac_ltlibobjs=
4905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4906 # 1. Remove the extension, and $U if already installed.
4907 ac_i=`echo "$ac_i" |
4908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4909 # 2. Add them.
4910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4912 done
4913 LIBOBJS=$ac_libobjs
4915 LTLIBOBJS=$ac_ltlibobjs
4919 : ${CONFIG_STATUS=./config.status}
4920 ac_clean_files_save=$ac_clean_files
4921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4922 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4923 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4924 cat >$CONFIG_STATUS <<_ACEOF
4925 #! $SHELL
4926 # Generated by $as_me.
4927 # Run this file to recreate the current configuration.
4928 # Compiler output produced by configure, useful for debugging
4929 # configure, is in config.log if it exists.
4931 debug=false
4932 ac_cs_recheck=false
4933 ac_cs_silent=false
4934 SHELL=\${CONFIG_SHELL-$SHELL}
4935 _ACEOF
4937 cat >>$CONFIG_STATUS <<\_ACEOF
4938 ## --------------------- ##
4939 ## M4sh Initialization. ##
4940 ## --------------------- ##
4942 # Be Bourne compatible
4943 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4944 emulate sh
4945 NULLCMD=:
4946 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4947 # is contrary to our usage. Disable this feature.
4948 alias -g '${1+"$@"}'='"$@"'
4949 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4950 set -o posix
4952 DUALCASE=1; export DUALCASE # for MKS sh
4954 # Support unset when possible.
4955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4956 as_unset=unset
4957 else
4958 as_unset=false
4962 # Work around bugs in pre-3.0 UWIN ksh.
4963 $as_unset ENV MAIL MAILPATH
4964 PS1='$ '
4965 PS2='> '
4966 PS4='+ '
4968 # NLS nuisances.
4969 for as_var in \
4970 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4971 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4972 LC_TELEPHONE LC_TIME
4974 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4975 eval $as_var=C; export $as_var
4976 else
4977 $as_unset $as_var
4979 done
4981 # Required to use basename.
4982 if expr a : '\(a\)' >/dev/null 2>&1; then
4983 as_expr=expr
4984 else
4985 as_expr=false
4988 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4989 as_basename=basename
4990 else
4991 as_basename=false
4995 # Name of the executable.
4996 as_me=`$as_basename "$0" ||
4997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4998 X"$0" : 'X\(//\)$' \| \
4999 X"$0" : 'X\(/\)$' \| \
5000 . : '\(.\)' 2>/dev/null ||
5001 echo X/"$0" |
5002 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5003 /^X\/\(\/\/\)$/{ s//\1/; q; }
5004 /^X\/\(\/\).*/{ s//\1/; q; }
5005 s/.*/./; q'`
5008 # PATH needs CR, and LINENO needs CR and PATH.
5009 # Avoid depending upon Character Ranges.
5010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5013 as_cr_digits='0123456789'
5014 as_cr_alnum=$as_cr_Letters$as_cr_digits
5016 # The user is always right.
5017 if test "${PATH_SEPARATOR+set}" != set; then
5018 echo "#! /bin/sh" >conf$$.sh
5019 echo "exit 0" >>conf$$.sh
5020 chmod +x conf$$.sh
5021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5022 PATH_SEPARATOR=';'
5023 else
5024 PATH_SEPARATOR=:
5026 rm -f conf$$.sh
5030 as_lineno_1=$LINENO
5031 as_lineno_2=$LINENO
5032 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5033 test "x$as_lineno_1" != "x$as_lineno_2" &&
5034 test "x$as_lineno_3" = "x$as_lineno_2" || {
5035 # Find who we are. Look in the path if we contain no path at all
5036 # relative or not.
5037 case $0 in
5038 *[\\/]* ) as_myself=$0 ;;
5039 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5045 done
5048 esac
5049 # We did not find ourselves, most probably we were run as `sh COMMAND'
5050 # in which case we are not to be found in the path.
5051 if test "x$as_myself" = x; then
5052 as_myself=$0
5054 if test ! -f "$as_myself"; then
5055 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5056 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5057 { (exit 1); exit 1; }; }
5059 case $CONFIG_SHELL in
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for as_base in sh bash ksh sh5; do
5067 case $as_dir in
5069 if ("$as_dir/$as_base" -c '
5070 as_lineno_1=$LINENO
5071 as_lineno_2=$LINENO
5072 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5073 test "x$as_lineno_1" != "x$as_lineno_2" &&
5074 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5075 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5076 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5077 CONFIG_SHELL=$as_dir/$as_base
5078 export CONFIG_SHELL
5079 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5080 fi;;
5081 esac
5082 done
5083 done
5085 esac
5087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5088 # uniformly replaced by the line number. The first 'sed' inserts a
5089 # line-number line before each line; the second 'sed' does the real
5090 # work. The second script uses 'N' to pair each line-number line
5091 # with the numbered line, and appends trailing '-' during
5092 # substitution so that $LINENO is not a special case at line end.
5093 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5094 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5095 sed '=' <$as_myself |
5096 sed '
5098 s,$,-,
5099 : loop
5100 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5101 t loop
5102 s,-$,,
5103 s,^['$as_cr_digits']*\n,,
5104 ' >$as_me.lineno &&
5105 chmod +x $as_me.lineno ||
5106 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5107 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5108 { (exit 1); exit 1; }; }
5110 # Don't try to exec as it changes $[0], causing all sort of problems
5111 # (the dirname of $[0] is not the place where we might find the
5112 # original and so on. Autoconf is especially sensible to this).
5113 . ./$as_me.lineno
5114 # Exit status is that of the last command.
5115 exit
5119 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5120 *c*,-n*) ECHO_N= ECHO_C='
5121 ' ECHO_T=' ' ;;
5122 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5123 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5124 esac
5126 if expr a : '\(a\)' >/dev/null 2>&1; then
5127 as_expr=expr
5128 else
5129 as_expr=false
5132 rm -f conf$$ conf$$.exe conf$$.file
5133 echo >conf$$.file
5134 if ln -s conf$$.file conf$$ 2>/dev/null; then
5135 # We could just check for DJGPP; but this test a) works b) is more generic
5136 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5137 if test -f conf$$.exe; then
5138 # Don't use ln at all; we don't have any links
5139 as_ln_s='cp -p'
5140 else
5141 as_ln_s='ln -s'
5143 elif ln conf$$.file conf$$ 2>/dev/null; then
5144 as_ln_s=ln
5145 else
5146 as_ln_s='cp -p'
5148 rm -f conf$$ conf$$.exe conf$$.file
5150 if mkdir -p . 2>/dev/null; then
5151 as_mkdir_p=:
5152 else
5153 test -d ./-p && rmdir ./-p
5154 as_mkdir_p=false
5157 as_executable_p="test -f"
5159 # Sed expression to map a string onto a valid CPP name.
5160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5162 # Sed expression to map a string onto a valid variable name.
5163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5166 # IFS
5167 # We need space, tab and new line, in precisely that order.
5168 as_nl='
5170 IFS=" $as_nl"
5172 # CDPATH.
5173 $as_unset CDPATH
5175 exec 6>&1
5177 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5178 # report actual input values of CONFIG_FILES etc. instead of their
5179 # values after options handling. Logging --version etc. is OK.
5180 exec 5>>config.log
5182 echo
5183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5184 ## Running $as_me. ##
5185 _ASBOX
5186 } >&5
5187 cat >&5 <<_CSEOF
5189 This file was extended by $as_me, which was
5190 generated by GNU Autoconf 2.59. Invocation command line was
5192 CONFIG_FILES = $CONFIG_FILES
5193 CONFIG_HEADERS = $CONFIG_HEADERS
5194 CONFIG_LINKS = $CONFIG_LINKS
5195 CONFIG_COMMANDS = $CONFIG_COMMANDS
5196 $ $0 $@
5198 _CSEOF
5199 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5200 echo >&5
5201 _ACEOF
5203 # Files that config.status was made for.
5204 if test -n "$ac_config_files"; then
5205 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5208 if test -n "$ac_config_headers"; then
5209 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5212 if test -n "$ac_config_links"; then
5213 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5216 if test -n "$ac_config_commands"; then
5217 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5220 cat >>$CONFIG_STATUS <<\_ACEOF
5222 ac_cs_usage="\
5223 \`$as_me' instantiates files from templates according to the
5224 current configuration.
5226 Usage: $0 [OPTIONS] [FILE]...
5228 -h, --help print this help, then exit
5229 -V, --version print version number, then exit
5230 -q, --quiet do not print progress messages
5231 -d, --debug don't remove temporary files
5232 --recheck update $as_me by reconfiguring in the same conditions
5233 --file=FILE[:TEMPLATE]
5234 instantiate the configuration file FILE
5236 Configuration files:
5237 $config_files
5239 Report bugs to <bug-autoconf@gnu.org>."
5240 _ACEOF
5242 cat >>$CONFIG_STATUS <<_ACEOF
5243 ac_cs_version="\\
5244 config.status
5245 configured by $0, generated by GNU Autoconf 2.59,
5246 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5248 Copyright (C) 2003 Free Software Foundation, Inc.
5249 This config.status script is free software; the Free Software Foundation
5250 gives unlimited permission to copy, distribute and modify it."
5251 srcdir=$srcdir
5252 _ACEOF
5254 cat >>$CONFIG_STATUS <<\_ACEOF
5255 # If no file are specified by the user, then we need to provide default
5256 # value. By we need to know if files were specified by the user.
5257 ac_need_defaults=:
5258 while test $# != 0
5260 case $1 in
5261 --*=*)
5262 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5263 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5264 ac_shift=:
5267 ac_option=$1
5268 ac_optarg=$2
5269 ac_shift=shift
5271 *) # This is not an option, so the user has probably given explicit
5272 # arguments.
5273 ac_option=$1
5274 ac_need_defaults=false;;
5275 esac
5277 case $ac_option in
5278 # Handling of the options.
5279 _ACEOF
5280 cat >>$CONFIG_STATUS <<\_ACEOF
5281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5282 ac_cs_recheck=: ;;
5283 --version | --vers* | -V )
5284 echo "$ac_cs_version"; exit 0 ;;
5285 --he | --h)
5286 # Conflict between --help and --header
5287 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5288 Try \`$0 --help' for more information." >&5
5289 echo "$as_me: error: ambiguous option: $1
5290 Try \`$0 --help' for more information." >&2;}
5291 { (exit 1); exit 1; }; };;
5292 --help | --hel | -h )
5293 echo "$ac_cs_usage"; exit 0 ;;
5294 --debug | --d* | -d )
5295 debug=: ;;
5296 --file | --fil | --fi | --f )
5297 $ac_shift
5298 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5299 ac_need_defaults=false;;
5300 --header | --heade | --head | --hea )
5301 $ac_shift
5302 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5303 ac_need_defaults=false;;
5304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5305 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5306 ac_cs_silent=: ;;
5308 # This is an error.
5309 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5310 Try \`$0 --help' for more information." >&5
5311 echo "$as_me: error: unrecognized option: $1
5312 Try \`$0 --help' for more information." >&2;}
5313 { (exit 1); exit 1; }; } ;;
5315 *) ac_config_targets="$ac_config_targets $1" ;;
5317 esac
5318 shift
5319 done
5321 ac_configure_extra_args=
5323 if $ac_cs_silent; then
5324 exec 6>/dev/null
5325 ac_configure_extra_args="$ac_configure_extra_args --silent"
5328 _ACEOF
5329 cat >>$CONFIG_STATUS <<_ACEOF
5330 if \$ac_cs_recheck; then
5331 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5332 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5335 _ACEOF
5341 cat >>$CONFIG_STATUS <<\_ACEOF
5342 for ac_config_target in $ac_config_targets
5344 case "$ac_config_target" in
5345 # Handling of arguments.
5346 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5347 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5348 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5349 { (exit 1); exit 1; }; };;
5350 esac
5351 done
5353 # If the user did not use the arguments to specify the items to instantiate,
5354 # then the envvar interface is used. Set only those that are not.
5355 # We use the long form for the default assignment because of an extremely
5356 # bizarre bug on SunOS 4.1.3.
5357 if $ac_need_defaults; then
5358 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5361 # Have a temporary directory for convenience. Make it in the build tree
5362 # simply because there is no reason to put it here, and in addition,
5363 # creating and moving files from /tmp can sometimes cause problems.
5364 # Create a temporary directory, and hook for its removal unless debugging.
5365 $debug ||
5367 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5368 trap '{ (exit 1); exit 1; }' 1 2 13 15
5371 # Create a (secure) tmp directory for tmp files.
5374 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5375 test -n "$tmp" && test -d "$tmp"
5376 } ||
5378 tmp=./confstat$$-$RANDOM
5379 (umask 077 && mkdir $tmp)
5380 } ||
5382 echo "$me: cannot create a temporary directory in ." >&2
5383 { (exit 1); exit 1; }
5386 _ACEOF
5388 cat >>$CONFIG_STATUS <<_ACEOF
5391 # CONFIG_FILES section.
5394 # No need to generate the scripts if there are no CONFIG_FILES.
5395 # This happens for instance when ./config.status config.h
5396 if test -n "\$CONFIG_FILES"; then
5397 # Protect against being on the right side of a sed subst in config.status.
5398 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5399 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5400 s,@SHELL@,$SHELL,;t t
5401 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5402 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5403 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5404 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5405 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5406 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5407 s,@exec_prefix@,$exec_prefix,;t t
5408 s,@prefix@,$prefix,;t t
5409 s,@program_transform_name@,$program_transform_name,;t t
5410 s,@bindir@,$bindir,;t t
5411 s,@sbindir@,$sbindir,;t t
5412 s,@libexecdir@,$libexecdir,;t t
5413 s,@datadir@,$datadir,;t t
5414 s,@sysconfdir@,$sysconfdir,;t t
5415 s,@sharedstatedir@,$sharedstatedir,;t t
5416 s,@localstatedir@,$localstatedir,;t t
5417 s,@libdir@,$libdir,;t t
5418 s,@includedir@,$includedir,;t t
5419 s,@oldincludedir@,$oldincludedir,;t t
5420 s,@infodir@,$infodir,;t t
5421 s,@mandir@,$mandir,;t t
5422 s,@build_alias@,$build_alias,;t t
5423 s,@host_alias@,$host_alias,;t t
5424 s,@target_alias@,$target_alias,;t t
5425 s,@DEFS@,$DEFS,;t t
5426 s,@ECHO_C@,$ECHO_C,;t t
5427 s,@ECHO_N@,$ECHO_N,;t t
5428 s,@ECHO_T@,$ECHO_T,;t t
5429 s,@LIBS@,$LIBS,;t t
5430 s,@CC@,$CC,;t t
5431 s,@CFLAGS@,$CFLAGS,;t t
5432 s,@LDFLAGS@,$LDFLAGS,;t t
5433 s,@CPPFLAGS@,$CPPFLAGS,;t t
5434 s,@ac_ct_CC@,$ac_ct_CC,;t t
5435 s,@EXEEXT@,$EXEEXT,;t t
5436 s,@OBJEXT@,$OBJEXT,;t t
5437 s,@WUTIL_LIB@,$WUTIL_LIB,;t t
5438 s,@CPP@,$CPP,;t t
5439 s,@X_CFLAGS@,$X_CFLAGS,;t t
5440 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5441 s,@X_LIBS@,$X_LIBS,;t t
5442 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5443 s,@EGREP@,$EGREP,;t t
5444 s,@HAVE_WMAKER@,$HAVE_WMAKER,;t t
5445 s,@LIBOBJS@,$LIBOBJS,;t t
5446 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5447 CEOF
5449 _ACEOF
5451 cat >>$CONFIG_STATUS <<\_ACEOF
5452 # Split the substitutions into bite-sized pieces for seds with
5453 # small command number limits, like on Digital OSF/1 and HP-UX.
5454 ac_max_sed_lines=48
5455 ac_sed_frag=1 # Number of current file.
5456 ac_beg=1 # First line for current file.
5457 ac_end=$ac_max_sed_lines # Line after last line for current file.
5458 ac_more_lines=:
5459 ac_sed_cmds=
5460 while $ac_more_lines; do
5461 if test $ac_beg -gt 1; then
5462 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5463 else
5464 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5466 if test ! -s $tmp/subs.frag; then
5467 ac_more_lines=false
5468 else
5469 # The purpose of the label and of the branching condition is to
5470 # speed up the sed processing (if there are no `@' at all, there
5471 # is no need to browse any of the substitutions).
5472 # These are the two extra sed commands mentioned above.
5473 (echo ':t
5474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5475 if test -z "$ac_sed_cmds"; then
5476 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5477 else
5478 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5480 ac_sed_frag=`expr $ac_sed_frag + 1`
5481 ac_beg=$ac_end
5482 ac_end=`expr $ac_end + $ac_max_sed_lines`
5484 done
5485 if test -z "$ac_sed_cmds"; then
5486 ac_sed_cmds=cat
5488 fi # test -n "$CONFIG_FILES"
5490 _ACEOF
5491 cat >>$CONFIG_STATUS <<\_ACEOF
5492 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5494 case $ac_file in
5495 - | *:- | *:-:* ) # input from stdin
5496 cat >$tmp/stdin
5497 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5499 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5500 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5501 * ) ac_file_in=$ac_file.in ;;
5502 esac
5504 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5505 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5507 X"$ac_file" : 'X\(//\)[^/]' \| \
5508 X"$ac_file" : 'X\(//\)$' \| \
5509 X"$ac_file" : 'X\(/\)' \| \
5510 . : '\(.\)' 2>/dev/null ||
5511 echo X"$ac_file" |
5512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5514 /^X\(\/\/\)$/{ s//\1/; q; }
5515 /^X\(\/\).*/{ s//\1/; q; }
5516 s/.*/./; q'`
5517 { if $as_mkdir_p; then
5518 mkdir -p "$ac_dir"
5519 else
5520 as_dir="$ac_dir"
5521 as_dirs=
5522 while test ! -d "$as_dir"; do
5523 as_dirs="$as_dir $as_dirs"
5524 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5526 X"$as_dir" : 'X\(//\)[^/]' \| \
5527 X"$as_dir" : 'X\(//\)$' \| \
5528 X"$as_dir" : 'X\(/\)' \| \
5529 . : '\(.\)' 2>/dev/null ||
5530 echo X"$as_dir" |
5531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5533 /^X\(\/\/\)$/{ s//\1/; q; }
5534 /^X\(\/\).*/{ s//\1/; q; }
5535 s/.*/./; q'`
5536 done
5537 test ! -n "$as_dirs" || mkdir $as_dirs
5538 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5539 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5540 { (exit 1); exit 1; }; }; }
5542 ac_builddir=.
5544 if test "$ac_dir" != .; then
5545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5546 # A "../" for each directory in $ac_dir_suffix.
5547 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5548 else
5549 ac_dir_suffix= ac_top_builddir=
5552 case $srcdir in
5553 .) # No --srcdir option. We are building in place.
5554 ac_srcdir=.
5555 if test -z "$ac_top_builddir"; then
5556 ac_top_srcdir=.
5557 else
5558 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5559 fi ;;
5560 [\\/]* | ?:[\\/]* ) # Absolute path.
5561 ac_srcdir=$srcdir$ac_dir_suffix;
5562 ac_top_srcdir=$srcdir ;;
5563 *) # Relative path.
5564 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5565 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5566 esac
5568 # Do not use `cd foo && pwd` to compute absolute paths, because
5569 # the directories may not exist.
5570 case `pwd` in
5571 .) ac_abs_builddir="$ac_dir";;
5573 case "$ac_dir" in
5574 .) ac_abs_builddir=`pwd`;;
5575 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5576 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5577 esac;;
5578 esac
5579 case $ac_abs_builddir in
5580 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5582 case ${ac_top_builddir}. in
5583 .) ac_abs_top_builddir=$ac_abs_builddir;;
5584 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5585 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5586 esac;;
5587 esac
5588 case $ac_abs_builddir in
5589 .) ac_abs_srcdir=$ac_srcdir;;
5591 case $ac_srcdir in
5592 .) ac_abs_srcdir=$ac_abs_builddir;;
5593 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5594 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5595 esac;;
5596 esac
5597 case $ac_abs_builddir in
5598 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5600 case $ac_top_srcdir in
5601 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5602 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5603 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5604 esac;;
5605 esac
5609 # Let's still pretend it is `configure' which instantiates (i.e., don't
5610 # use $as_me), people would be surprised to read:
5611 # /* config.h. Generated by config.status. */
5612 if test x"$ac_file" = x-; then
5613 configure_input=
5614 else
5615 configure_input="$ac_file. "
5617 configure_input=$configure_input"Generated from `echo $ac_file_in |
5618 sed 's,.*/,,'` by configure."
5620 # First look for the input files in the build tree, otherwise in the
5621 # src tree.
5622 ac_file_inputs=`IFS=:
5623 for f in $ac_file_in; do
5624 case $f in
5625 -) echo $tmp/stdin ;;
5626 [\\/$]*)
5627 # Absolute (can't be DOS-style, as IFS=:)
5628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5629 echo "$as_me: error: cannot find input file: $f" >&2;}
5630 { (exit 1); exit 1; }; }
5631 echo "$f";;
5632 *) # Relative
5633 if test -f "$f"; then
5634 # Build tree
5635 echo "$f"
5636 elif test -f "$srcdir/$f"; then
5637 # Source tree
5638 echo "$srcdir/$f"
5639 else
5640 # /dev/null tree
5641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5642 echo "$as_me: error: cannot find input file: $f" >&2;}
5643 { (exit 1); exit 1; }; }
5644 fi;;
5645 esac
5646 done` || { (exit 1); exit 1; }
5648 if test x"$ac_file" != x-; then
5649 { echo "$as_me:$LINENO: creating $ac_file" >&5
5650 echo "$as_me: creating $ac_file" >&6;}
5651 rm -f "$ac_file"
5653 _ACEOF
5654 cat >>$CONFIG_STATUS <<_ACEOF
5655 sed "$ac_vpsub
5656 $extrasub
5657 _ACEOF
5658 cat >>$CONFIG_STATUS <<\_ACEOF
5660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5661 s,@configure_input@,$configure_input,;t t
5662 s,@srcdir@,$ac_srcdir,;t t
5663 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5664 s,@top_srcdir@,$ac_top_srcdir,;t t
5665 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5666 s,@builddir@,$ac_builddir,;t t
5667 s,@abs_builddir@,$ac_abs_builddir,;t t
5668 s,@top_builddir@,$ac_top_builddir,;t t
5669 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5670 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5671 rm -f $tmp/stdin
5672 if test x"$ac_file" != x-; then
5673 mv $tmp/out $ac_file
5674 else
5675 cat $tmp/out
5676 rm -f $tmp/out
5679 done
5680 _ACEOF
5682 cat >>$CONFIG_STATUS <<\_ACEOF
5684 { (exit 0); exit 0; }
5685 _ACEOF
5686 chmod +x $CONFIG_STATUS
5687 ac_clean_files=$ac_clean_files_save
5690 # configure is writing to config.log, and then calls config.status.
5691 # config.status does its own redirection, appending to config.log.
5692 # Unfortunately, on DOS this fails, as config.log is still kept open
5693 # by configure, so config.status won't be able to write to it; its
5694 # output is simply discarded. So we exec the FD to /dev/null,
5695 # effectively closing config.log, so it can be properly (re)opened and
5696 # appended to by config.status. When coming back to configure, we
5697 # need to make the FD available again.
5698 if test "$no_create" != yes; then
5699 ac_cs_success=:
5700 ac_config_status_args=
5701 test "$silent" = yes &&
5702 ac_config_status_args="$ac_config_status_args --quiet"
5703 exec 5>/dev/null
5704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5705 exec 5>>config.log
5706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5707 # would make configure fail if this is the last instruction.
5708 $ac_cs_success || { (exit 1); exit 1; }