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