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