]> Dogcows Code - chaz/openbox/blob - configure
4a2aa002901cb084b673d63bcf2ab49c39905fb1
[chaz/openbox] / configure
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
3129
3130 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 string.h stdlib.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
3131 do
3132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134 echo "$as_me:$LINENO: checking for $ac_header" >&5
3135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 fi
3139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3141 else
3142 # Is the header compilable?
3143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line $LINENO "configure"
3147 #include "confdefs.h"
3148 $ac_includes_default
3149 #include <$ac_header>
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_header_compiler=yes
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 ac_header_compiler=no
3168 fi
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3171 echo "${ECHO_T}$ac_header_compiler" >&6
3172
3173 # Is the header present?
3174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line $LINENO "configure"
3178 #include "confdefs.h"
3179 #include <$ac_header>
3180 _ACEOF
3181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3183 ac_status=$?
3184 egrep -v '^ *\+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3191 else
3192 ac_cpp_err=
3193 fi
3194 else
3195 ac_cpp_err=yes
3196 fi
3197 if test -z "$ac_cpp_err"; then
3198 ac_header_preproc=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3202 ac_header_preproc=no
3203 fi
3204 rm -f conftest.err conftest.$ac_ext
3205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3206 echo "${ECHO_T}$ac_header_preproc" >&6
3207
3208 # So? What about this header?
3209 case $ac_header_compiler:$ac_header_preproc in
3210 yes:no )
3211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3215 no:yes )
3216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3222 esac
3223 echo "$as_me:$LINENO: checking for $ac_header" >&5
3224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 eval "$as_ac_Header=$ac_header_preproc"
3229 fi
3230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3232
3233 fi
3234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3235 cat >>confdefs.h <<_ACEOF
3236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3237 _ACEOF
3238
3239 fi
3240
3241 done
3242
3243 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3244 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3245 if test "${ac_cv_header_time+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 #include <sys/types.h>
3252 #include <sys/time.h>
3253 #include <time.h>
3254
3255 #ifdef F77_DUMMY_MAIN
3256 # ifdef __cplusplus
3257 extern "C"
3258 # endif
3259 int F77_DUMMY_MAIN() { return 1; }
3260 #endif
3261 int
3262 main ()
3263 {
3264 if ((struct tm *) 0)
3265 return 0;
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_cv_header_time=yes
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 ac_cv_header_time=no
3287 fi
3288 rm -f conftest.$ac_objext conftest.$ac_ext
3289 fi
3290 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3291 echo "${ECHO_T}$ac_cv_header_time" >&6
3292 if test $ac_cv_header_time = yes; then
3293
3294 cat >>confdefs.h <<\_ACEOF
3295 #define TIME_WITH_SYS_TIME 1
3296 _ACEOF
3297
3298 fi
3299
3300
3301
3302 for ac_func in basename
3303 do
3304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3305 echo "$as_me:$LINENO: checking for $ac_func" >&5
3306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3307 if eval "test \"\${$as_ac_var+set}\" = set"; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 cat >conftest.$ac_ext <<_ACEOF
3311 #line $LINENO "configure"
3312 #include "confdefs.h"
3313 /* System header to define __stub macros and hopefully few prototypes,
3314 which can conflict with char $ac_func (); below. */
3315 #include <assert.h>
3316 /* Override any gcc2 internal prototype to avoid an error. */
3317 #ifdef __cplusplus
3318 extern "C"
3319 #endif
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3322 char $ac_func ();
3323 char (*f) ();
3324
3325 #ifdef F77_DUMMY_MAIN
3326 # ifdef __cplusplus
3327 extern "C"
3328 # endif
3329 int F77_DUMMY_MAIN() { return 1; }
3330 #endif
3331 int
3332 main ()
3333 {
3334 /* The GNU C library defines this for functions which it implements
3335 to always fail with ENOSYS. Some functions are actually named
3336 something starting with __ and the normal name is an alias. */
3337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3338 choke me
3339 #else
3340 f = $ac_func;
3341 #endif
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext conftest$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349 (eval $ac_link) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -s conftest$ac_exeext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 eval "$as_ac_var=yes"
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3363 eval "$as_ac_var=no"
3364 fi
3365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3366 fi
3367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3369 if test `eval echo '${'$as_ac_var'}'` = yes; then
3370 cat >>confdefs.h <<_ACEOF
3371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3372 _ACEOF
3373
3374 else
3375 echo "$as_me:$LINENO: checking for basename in -lgen" >&5
3376 echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6
3377 if test "${ac_cv_lib_gen_basename+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 ac_check_lib_save_LIBS=$LIBS
3381 LIBS="-lgen $LIBS"
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3384 #include "confdefs.h"
3385
3386 /* Override any gcc2 internal prototype to avoid an error. */
3387 #ifdef __cplusplus
3388 extern "C"
3389 #endif
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3392 char basename ();
3393 #ifdef F77_DUMMY_MAIN
3394 # ifdef __cplusplus
3395 extern "C"
3396 # endif
3397 int F77_DUMMY_MAIN() { return 1; }
3398 #endif
3399 int
3400 main ()
3401 {
3402 basename ();
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.$ac_objext conftest$ac_exeext
3408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3409 (eval $ac_link) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -s conftest$ac_exeext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_cv_lib_gen_basename=yes
3420 else
3421 echo "$as_me: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3423 ac_cv_lib_gen_basename=no
3424 fi
3425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3426 LIBS=$ac_check_lib_save_LIBS
3427 fi
3428 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_basename" >&5
3429 echo "${ECHO_T}$ac_cv_lib_gen_basename" >&6
3430 if test $ac_cv_lib_gen_basename = yes; then
3431 cat >>confdefs.h <<\_ACEOF
3432 #define HAVE_BASENAME 1
3433 _ACEOF
3434 LIBS="$LIBS -lgen"
3435 fi
3436
3437 fi
3438 done
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450 for ac_func in getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose
3451 do
3452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3453 echo "$as_me:$LINENO: checking for $ac_func" >&5
3454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3455 if eval "test \"\${$as_ac_var+set}\" = set"; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 cat >conftest.$ac_ext <<_ACEOF
3459 #line $LINENO "configure"
3460 #include "confdefs.h"
3461 /* System header to define __stub macros and hopefully few prototypes,
3462 which can conflict with char $ac_func (); below. */
3463 #include <assert.h>
3464 /* Override any gcc2 internal prototype to avoid an error. */
3465 #ifdef __cplusplus
3466 extern "C"
3467 #endif
3468 /* We use char because int might match the return type of a gcc2
3469 builtin and then its argument prototype would still apply. */
3470 char $ac_func ();
3471 char (*f) ();
3472
3473 #ifdef F77_DUMMY_MAIN
3474 # ifdef __cplusplus
3475 extern "C"
3476 # endif
3477 int F77_DUMMY_MAIN() { return 1; }
3478 #endif
3479 int
3480 main ()
3481 {
3482 /* The GNU C library defines this for functions which it implements
3483 to always fail with ENOSYS. Some functions are actually named
3484 something starting with __ and the normal name is an alias. */
3485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3486 choke me
3487 #else
3488 f = $ac_func;
3489 #endif
3490
3491 ;
3492 return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext conftest$ac_exeext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3497 (eval $ac_link) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -s conftest$ac_exeext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 eval "$as_ac_var=yes"
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3511 eval "$as_ac_var=no"
3512 fi
3513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3514 fi
3515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3517 if test `eval echo '${'$as_ac_var'}'` = yes; then
3518 cat >>confdefs.h <<_ACEOF
3519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3520 _ACEOF
3521
3522 fi
3523 done
3524
3525 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
3526 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
3527 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 ac_check_lib_save_LIBS=$LIBS
3531 LIBS="-lnsl $LIBS"
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 #include "confdefs.h"
3535
3536 /* Override any gcc2 internal prototype to avoid an error. */
3537 #ifdef __cplusplus
3538 extern "C"
3539 #endif
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char t_open ();
3543 #ifdef F77_DUMMY_MAIN
3544 # ifdef __cplusplus
3545 extern "C"
3546 # endif
3547 int F77_DUMMY_MAIN() { return 1; }
3548 #endif
3549 int
3550 main ()
3551 {
3552 t_open ();
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext conftest$ac_exeext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3559 (eval $ac_link) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -s conftest$ac_exeext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 ac_cv_lib_nsl_t_open=yes
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 ac_cv_lib_nsl_t_open=no
3574 fi
3575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3576 LIBS=$ac_check_lib_save_LIBS
3577 fi
3578 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
3579 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
3580 if test $ac_cv_lib_nsl_t_open = yes; then
3581 LIBS="$LIBS -lnsl"
3582 fi
3583
3584 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3585 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3586 if test "${ac_cv_lib_socket_socket+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 ac_check_lib_save_LIBS=$LIBS
3590 LIBS="-lsocket $LIBS"
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 #include "confdefs.h"
3594
3595 /* Override any gcc2 internal prototype to avoid an error. */
3596 #ifdef __cplusplus
3597 extern "C"
3598 #endif
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3601 char socket ();
3602 #ifdef F77_DUMMY_MAIN
3603 # ifdef __cplusplus
3604 extern "C"
3605 # endif
3606 int F77_DUMMY_MAIN() { return 1; }
3607 #endif
3608 int
3609 main ()
3610 {
3611 socket ();
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_lib_socket_socket=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 ac_cv_lib_socket_socket=no
3633 fi
3634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3638 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3639 if test $ac_cv_lib_socket_socket = yes; then
3640 LIBS="$LIBS -lsocket"
3641 fi
3642
3643
3644 echo "$as_me:$LINENO: checking for X" >&5
3645 echo $ECHO_N "checking for X... $ECHO_C" >&6
3646
3647
3648 # Check whether --with-x or --without-x was given.
3649 if test "${with_x+set}" = set; then
3650 withval="$with_x"
3651
3652 fi;
3653 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3654 if test "x$with_x" = xno; then
3655 # The user explicitly disabled X.
3656 have_x=disabled
3657 else
3658 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3659 # Both variables are already set.
3660 have_x=yes
3661 else
3662 if test "${ac_cv_have_x+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 # One or both of the vars are not set, and there is no cached value.
3666 ac_x_includes=no ac_x_libraries=no
3667 rm -fr conftest.dir
3668 if mkdir conftest.dir; then
3669 cd conftest.dir
3670 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3671 cat >Imakefile <<'_ACEOF'
3672 acfindx:
3673 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3674 _ACEOF
3675 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3677 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3678 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3679 for ac_extension in a so sl; do
3680 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3681 test -f $ac_im_libdir/libX11.$ac_extension; then
3682 ac_im_usrlibdir=$ac_im_libdir; break
3683 fi
3684 done
3685 # Screen out bogus values from the imake configuration. They are
3686 # bogus both because they are the default anyway, and because
3687 # using them would break gcc on systems where it needs fixed includes.
3688 case $ac_im_incroot in
3689 /usr/include) ;;
3690 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3691 esac
3692 case $ac_im_usrlibdir in
3693 /usr/lib | /lib) ;;
3694 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3695 esac
3696 fi
3697 cd ..
3698 rm -fr conftest.dir
3699 fi
3700
3701 # Standard set of common directories for X headers.
3702 # Check X11 before X11Rn because it is often a symlink to the current release.
3703 ac_x_header_dirs='
3704 /usr/X11/include
3705 /usr/X11R6/include
3706 /usr/X11R5/include
3707 /usr/X11R4/include
3708
3709 /usr/include/X11
3710 /usr/include/X11R6
3711 /usr/include/X11R5
3712 /usr/include/X11R4
3713
3714 /usr/local/X11/include
3715 /usr/local/X11R6/include
3716 /usr/local/X11R5/include
3717 /usr/local/X11R4/include
3718
3719 /usr/local/include/X11
3720 /usr/local/include/X11R6
3721 /usr/local/include/X11R5
3722 /usr/local/include/X11R4
3723
3724 /usr/X386/include
3725 /usr/x386/include
3726 /usr/XFree86/include/X11
3727
3728 /usr/include
3729 /usr/local/include
3730 /usr/unsupported/include
3731 /usr/athena/include
3732 /usr/local/x11r5/include
3733 /usr/lpp/Xamples/include
3734
3735 /usr/openwin/include
3736 /usr/openwin/share/include'
3737
3738 if test "$ac_x_includes" = no; then
3739 # Guess where to find include files, by looking for Intrinsic.h.
3740 # First, try using that file with no special directory specified.
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line $LINENO "configure"
3743 #include "confdefs.h"
3744 #include <X11/Intrinsic.h>
3745 _ACEOF
3746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3748 ac_status=$?
3749 egrep -v '^ *\+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null; then
3754 if test -s conftest.err; then
3755 ac_cpp_err=$ac_c_preproc_warn_flag
3756 else
3757 ac_cpp_err=
3758 fi
3759 else
3760 ac_cpp_err=yes
3761 fi
3762 if test -z "$ac_cpp_err"; then
3763 # We can compile using X headers with no special include directory.
3764 ac_x_includes=
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3768 for ac_dir in $ac_x_header_dirs; do
3769 if test -r "$ac_dir/X11/Intrinsic.h"; then
3770 ac_x_includes=$ac_dir
3771 break
3772 fi
3773 done
3774 fi
3775 rm -f conftest.err conftest.$ac_ext
3776 fi # $ac_x_includes = no
3777
3778 if test "$ac_x_libraries" = no; then
3779 # Check for the libraries.
3780 # See if we find them without any special options.
3781 # Don't add to $LIBS permanently.
3782 ac_save_LIBS=$LIBS
3783 LIBS="-lXt $LIBS"
3784 cat >conftest.$ac_ext <<_ACEOF
3785 #line $LINENO "configure"
3786 #include "confdefs.h"
3787 #include <X11/Intrinsic.h>
3788 #ifdef F77_DUMMY_MAIN
3789 # ifdef __cplusplus
3790 extern "C"
3791 # endif
3792 int F77_DUMMY_MAIN() { return 1; }
3793 #endif
3794 int
3795 main ()
3796 {
3797 XtMalloc (0)
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.$ac_objext conftest$ac_exeext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804 (eval $ac_link) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 LIBS=$ac_save_LIBS
3815 # We can link X programs with no special library path.
3816 ac_x_libraries=
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 LIBS=$ac_save_LIBS
3821 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3822 do
3823 # Don't even attempt the hair of trying to link an X program!
3824 for ac_extension in a so sl; do
3825 if test -r $ac_dir/libXt.$ac_extension; then
3826 ac_x_libraries=$ac_dir
3827 break 2
3828 fi
3829 done
3830 done
3831 fi
3832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3833 fi # $ac_x_libraries = no
3834
3835 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3836 # Didn't find X anywhere. Cache the known absence of X.
3837 ac_cv_have_x="have_x=no"
3838 else
3839 # Record where we found X for the cache.
3840 ac_cv_have_x="have_x=yes \
3841 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3842 fi
3843 fi
3844
3845 fi
3846 eval "$ac_cv_have_x"
3847 fi # $with_x != no
3848
3849 if test "$have_x" != yes; then
3850 echo "$as_me:$LINENO: result: $have_x" >&5
3851 echo "${ECHO_T}$have_x" >&6
3852 no_x=yes
3853 else
3854 # If each of the values was on the command line, it overrides each guess.
3855 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3856 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3857 # Update the cache value to reflect the command line values.
3858 ac_cv_have_x="have_x=yes \
3859 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3860 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3861 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3862 fi
3863
3864 if test "$no_x" = yes; then
3865 # Not all programs may use this symbol, but it does not hurt to define it.
3866
3867 cat >>confdefs.h <<\_ACEOF
3868 #define X_DISPLAY_MISSING 1
3869 _ACEOF
3870
3871 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3872 else
3873 if test -n "$x_includes"; then
3874 X_CFLAGS="$X_CFLAGS -I$x_includes"
3875 fi
3876
3877 # It would also be nice to do this for all -L options, not just this one.
3878 if test -n "$x_libraries"; then
3879 X_LIBS="$X_LIBS -L$x_libraries"
3880 # For Solaris; some versions of Sun CC require a space after -R and
3881 # others require no space. Words are not sufficient . . . .
3882 case `(uname -sr) 2>/dev/null` in
3883 "SunOS 5"*)
3884 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3885 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3886 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3887 cat >conftest.$ac_ext <<_ACEOF
3888 #line $LINENO "configure"
3889 #include "confdefs.h"
3890
3891 #ifdef F77_DUMMY_MAIN
3892 # ifdef __cplusplus
3893 extern "C"
3894 # endif
3895 int F77_DUMMY_MAIN() { return 1; }
3896 #endif
3897 int
3898 main ()
3899 {
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907 (eval $ac_link) 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -s conftest$ac_exeext'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 (eval $ac_try) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 ac_R_nospace=yes
3918 else
3919 echo "$as_me: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 ac_R_nospace=no
3922 fi
3923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3924 if test $ac_R_nospace = yes; then
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 X_LIBS="$X_LIBS -R$x_libraries"
3928 else
3929 LIBS="$ac_xsave_LIBS -R $x_libraries"
3930 cat >conftest.$ac_ext <<_ACEOF
3931 #line $LINENO "configure"
3932 #include "confdefs.h"
3933
3934 #ifdef F77_DUMMY_MAIN
3935 # ifdef __cplusplus
3936 extern "C"
3937 # endif
3938 int F77_DUMMY_MAIN() { return 1; }
3939 #endif
3940 int
3941 main ()
3942 {
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest.$ac_objext conftest$ac_exeext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -s conftest$ac_exeext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_R_space=yes
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3964 ac_R_space=no
3965 fi
3966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3967 if test $ac_R_space = yes; then
3968 echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6
3970 X_LIBS="$X_LIBS -R $x_libraries"
3971 else
3972 echo "$as_me:$LINENO: result: neither works" >&5
3973 echo "${ECHO_T}neither works" >&6
3974 fi
3975 fi
3976 LIBS=$ac_xsave_LIBS
3977 esac
3978 fi
3979
3980 # Check for system-dependent libraries X programs must link with.
3981 # Do this before checking for the system-independent R6 libraries
3982 # (-lICE), since we may need -lsocket or whatever for X linking.
3983
3984 if test "$ISC" = yes; then
3985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3986 else
3987 # Martyn Johnson says this is needed for Ultrix, if the X
3988 # libraries were built with DECnet support. And Karl Berry says
3989 # the Alpha needs dnet_stub (dnet does not exist).
3990 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3991 cat >conftest.$ac_ext <<_ACEOF
3992 #line $LINENO "configure"
3993 #include "confdefs.h"
3994
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 #ifdef __cplusplus
3997 extern "C"
3998 #endif
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4001 char XOpenDisplay ();
4002 #ifdef F77_DUMMY_MAIN
4003 # ifdef __cplusplus
4004 extern "C"
4005 # endif
4006 int F77_DUMMY_MAIN() { return 1; }
4007 #endif
4008 int
4009 main ()
4010 {
4011 XOpenDisplay ();
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext conftest$ac_exeext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4018 (eval $ac_link) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 :
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4033 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4034 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-ldnet $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 #include "confdefs.h"
4042
4043 /* Override any gcc2 internal prototype to avoid an error. */
4044 #ifdef __cplusplus
4045 extern "C"
4046 #endif
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4049 char dnet_ntoa ();
4050 #ifdef F77_DUMMY_MAIN
4051 # ifdef __cplusplus
4052 extern "C"
4053 # endif
4054 int F77_DUMMY_MAIN() { return 1; }
4055 #endif
4056 int
4057 main ()
4058 {
4059 dnet_ntoa ();
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext conftest$ac_exeext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066 (eval $ac_link) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -s conftest$ac_exeext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_lib_dnet_dnet_ntoa=yes
4077 else
4078 echo "$as_me: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4080 ac_cv_lib_dnet_dnet_ntoa=no
4081 fi
4082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4083 LIBS=$ac_check_lib_save_LIBS
4084 fi
4085 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4086 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4087 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4088 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4089 fi
4090
4091 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4092 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4093 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4094 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 ac_check_lib_save_LIBS=$LIBS
4098 LIBS="-ldnet_stub $LIBS"
4099 cat >conftest.$ac_ext <<_ACEOF
4100 #line $LINENO "configure"
4101 #include "confdefs.h"
4102
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 #ifdef __cplusplus
4105 extern "C"
4106 #endif
4107 /* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109 char dnet_ntoa ();
4110 #ifdef F77_DUMMY_MAIN
4111 # ifdef __cplusplus
4112 extern "C"
4113 # endif
4114 int F77_DUMMY_MAIN() { return 1; }
4115 #endif
4116 int
4117 main ()
4118 {
4119 dnet_ntoa ();
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext conftest$ac_exeext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4126 (eval $ac_link) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -s conftest$ac_exeext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 ac_cv_lib_dnet_stub_dnet_ntoa=no
4141 fi
4142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4143 LIBS=$ac_check_lib_save_LIBS
4144 fi
4145 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4146 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4147 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4148 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4149 fi
4150
4151 fi
4152 fi
4153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4154 LIBS="$ac_xsave_LIBS"
4155
4156 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4157 # to get the SysV transport functions.
4158 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4159 # needs -lnsl.
4160 # The nsl library prevents programs from opening the X display
4161 # on Irix 5.2, according to T.E. Dickey.
4162 # The functions gethostbyname, getservbyname, and inet_addr are
4163 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4164 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4165 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4166 if test "${ac_cv_func_gethostbyname+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 cat >conftest.$ac_ext <<_ACEOF
4170 #line $LINENO "configure"
4171 #include "confdefs.h"
4172 /* System header to define __stub macros and hopefully few prototypes,
4173 which can conflict with char gethostbyname (); below. */
4174 #include <assert.h>
4175 /* Override any gcc2 internal prototype to avoid an error. */
4176 #ifdef __cplusplus
4177 extern "C"
4178 #endif
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4181 char gethostbyname ();
4182 char (*f) ();
4183
4184 #ifdef F77_DUMMY_MAIN
4185 # ifdef __cplusplus
4186 extern "C"
4187 # endif
4188 int F77_DUMMY_MAIN() { return 1; }
4189 #endif
4190 int
4191 main ()
4192 {
4193 /* The GNU C library defines this for functions which it implements
4194 to always fail with ENOSYS. Some functions are actually named
4195 something starting with __ and the normal name is an alias. */
4196 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4197 choke me
4198 #else
4199 f = gethostbyname;
4200 #endif
4201
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest$ac_exeext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_func_gethostbyname=yes
4219 else
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 ac_cv_func_gethostbyname=no
4223 fi
4224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4225 fi
4226 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4227 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4228
4229 if test $ac_cv_func_gethostbyname = no; then
4230 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4231 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4232 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 ac_check_lib_save_LIBS=$LIBS
4236 LIBS="-lnsl $LIBS"
4237 cat >conftest.$ac_ext <<_ACEOF
4238 #line $LINENO "configure"
4239 #include "confdefs.h"
4240
4241 /* Override any gcc2 internal prototype to avoid an error. */
4242 #ifdef __cplusplus
4243 extern "C"
4244 #endif
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4247 char gethostbyname ();
4248 #ifdef F77_DUMMY_MAIN
4249 # ifdef __cplusplus
4250 extern "C"
4251 # endif
4252 int F77_DUMMY_MAIN() { return 1; }
4253 #endif
4254 int
4255 main ()
4256 {
4257 gethostbyname ();
4258 ;
4259 return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -s conftest$ac_exeext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 ac_cv_lib_nsl_gethostbyname=yes
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4278 ac_cv_lib_nsl_gethostbyname=no
4279 fi
4280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4281 LIBS=$ac_check_lib_save_LIBS
4282 fi
4283 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4284 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4285 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4287 fi
4288
4289 if test $ac_cv_lib_nsl_gethostbyname = no; then
4290 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4291 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4292 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 ac_check_lib_save_LIBS=$LIBS
4296 LIBS="-lbsd $LIBS"
4297 cat >conftest.$ac_ext <<_ACEOF
4298 #line $LINENO "configure"
4299 #include "confdefs.h"
4300
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 #ifdef __cplusplus
4303 extern "C"
4304 #endif
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4307 char gethostbyname ();
4308 #ifdef F77_DUMMY_MAIN
4309 # ifdef __cplusplus
4310 extern "C"
4311 # endif
4312 int F77_DUMMY_MAIN() { return 1; }
4313 #endif
4314 int
4315 main ()
4316 {
4317 gethostbyname ();
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -s conftest$ac_exeext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 ac_cv_lib_bsd_gethostbyname=yes
4335 else
4336 echo "$as_me: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 ac_cv_lib_bsd_gethostbyname=no
4339 fi
4340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4341 LIBS=$ac_check_lib_save_LIBS
4342 fi
4343 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4344 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4345 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4347 fi
4348
4349 fi
4350 fi
4351
4352 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4353 # socket/setsockopt and other routines are undefined under SCO ODT
4354 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4355 # on later versions), says Simon Leinen: it contains gethostby*
4356 # variants that don't use the nameserver (or something). -lsocket
4357 # must be given before -lnsl if both are needed. We assume that
4358 # if connect needs -lnsl, so does gethostbyname.
4359 echo "$as_me:$LINENO: checking for connect" >&5
4360 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4361 if test "${ac_cv_func_connect+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 cat >conftest.$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4366 #include "confdefs.h"
4367 /* System header to define __stub macros and hopefully few prototypes,
4368 which can conflict with char connect (); below. */
4369 #include <assert.h>
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 #ifdef __cplusplus
4372 extern "C"
4373 #endif
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char connect ();
4377 char (*f) ();
4378
4379 #ifdef F77_DUMMY_MAIN
4380 # ifdef __cplusplus
4381 extern "C"
4382 # endif
4383 int F77_DUMMY_MAIN() { return 1; }
4384 #endif
4385 int
4386 main ()
4387 {
4388 /* The GNU C library defines this for functions which it implements
4389 to always fail with ENOSYS. Some functions are actually named
4390 something starting with __ and the normal name is an alias. */
4391 #if defined (__stub_connect) || defined (__stub___connect)
4392 choke me
4393 #else
4394 f = connect;
4395 #endif
4396
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 rm -f conftest.$ac_objext conftest$ac_exeext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4403 (eval $ac_link) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 ac_cv_func_connect=yes
4414 else
4415 echo "$as_me: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 ac_cv_func_connect=no
4418 fi
4419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4420 fi
4421 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4422 echo "${ECHO_T}$ac_cv_func_connect" >&6
4423
4424 if test $ac_cv_func_connect = no; then
4425 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4426 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4427 if test "${ac_cv_lib_socket_connect+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 ac_check_lib_save_LIBS=$LIBS
4431 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 #include "confdefs.h"
4435
4436 /* Override any gcc2 internal prototype to avoid an error. */
4437 #ifdef __cplusplus
4438 extern "C"
4439 #endif
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char connect ();
4443 #ifdef F77_DUMMY_MAIN
4444 # ifdef __cplusplus
4445 extern "C"
4446 # endif
4447 int F77_DUMMY_MAIN() { return 1; }
4448 #endif
4449 int
4450 main ()
4451 {
4452 connect ();
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -s conftest$ac_exeext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_cv_lib_socket_connect=yes
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 ac_cv_lib_socket_connect=no
4474 fi
4475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4477 fi
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4479 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4480 if test $ac_cv_lib_socket_connect = yes; then
4481 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4482 fi
4483
4484 fi
4485
4486 # Guillermo Gomez says -lposix is necessary on A/UX.
4487 echo "$as_me:$LINENO: checking for remove" >&5
4488 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4489 if test "${ac_cv_func_remove+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 #include "confdefs.h"
4495 /* System header to define __stub macros and hopefully few prototypes,
4496 which can conflict with char remove (); below. */
4497 #include <assert.h>
4498 /* Override any gcc2 internal prototype to avoid an error. */
4499 #ifdef __cplusplus
4500 extern "C"
4501 #endif
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4504 char remove ();
4505 char (*f) ();
4506
4507 #ifdef F77_DUMMY_MAIN
4508 # ifdef __cplusplus
4509 extern "C"
4510 # endif
4511 int F77_DUMMY_MAIN() { return 1; }
4512 #endif
4513 int
4514 main ()
4515 {
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_remove) || defined (__stub___remove)
4520 choke me
4521 #else
4522 f = remove;
4523 #endif
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531 (eval $ac_link) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -s conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_cv_func_remove=yes
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 ac_cv_func_remove=no
4546 fi
4547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4548 fi
4549 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4550 echo "${ECHO_T}$ac_cv_func_remove" >&6
4551
4552 if test $ac_cv_func_remove = no; then
4553 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4554 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4555 if test "${ac_cv_lib_posix_remove+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 ac_check_lib_save_LIBS=$LIBS
4559 LIBS="-lposix $LIBS"
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 #include "confdefs.h"
4563
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 #ifdef __cplusplus
4566 extern "C"
4567 #endif
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4570 char remove ();
4571 #ifdef F77_DUMMY_MAIN
4572 # ifdef __cplusplus
4573 extern "C"
4574 # endif
4575 int F77_DUMMY_MAIN() { return 1; }
4576 #endif
4577 int
4578 main ()
4579 {
4580 remove ();
4581 ;
4582 return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext conftest$ac_exeext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -s conftest$ac_exeext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_lib_posix_remove=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4601 ac_cv_lib_posix_remove=no
4602 fi
4603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4604 LIBS=$ac_check_lib_save_LIBS
4605 fi
4606 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4607 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4608 if test $ac_cv_lib_posix_remove = yes; then
4609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4610 fi
4611
4612 fi
4613
4614 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4615 echo "$as_me:$LINENO: checking for shmat" >&5
4616 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4617 if test "${ac_cv_func_shmat+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line $LINENO "configure"
4622 #include "confdefs.h"
4623 /* System header to define __stub macros and hopefully few prototypes,
4624 which can conflict with char shmat (); below. */
4625 #include <assert.h>
4626 /* Override any gcc2 internal prototype to avoid an error. */
4627 #ifdef __cplusplus
4628 extern "C"
4629 #endif
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4632 char shmat ();
4633 char (*f) ();
4634
4635 #ifdef F77_DUMMY_MAIN
4636 # ifdef __cplusplus
4637 extern "C"
4638 # endif
4639 int F77_DUMMY_MAIN() { return 1; }
4640 #endif
4641 int
4642 main ()
4643 {
4644 /* The GNU C library defines this for functions which it implements
4645 to always fail with ENOSYS. Some functions are actually named
4646 something starting with __ and the normal name is an alias. */
4647 #if defined (__stub_shmat) || defined (__stub___shmat)
4648 choke me
4649 #else
4650 f = shmat;
4651 #endif
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext conftest$ac_exeext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659 (eval $ac_link) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -s conftest$ac_exeext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 ac_cv_func_shmat=yes
4670 else
4671 echo "$as_me: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4673 ac_cv_func_shmat=no
4674 fi
4675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4676 fi
4677 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4678 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4679
4680 if test $ac_cv_func_shmat = no; then
4681 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4682 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4683 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 ac_check_lib_save_LIBS=$LIBS
4687 LIBS="-lipc $LIBS"
4688 cat >conftest.$ac_ext <<_ACEOF
4689 #line $LINENO "configure"
4690 #include "confdefs.h"
4691
4692 /* Override any gcc2 internal prototype to avoid an error. */
4693 #ifdef __cplusplus
4694 extern "C"
4695 #endif
4696 /* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
4698 char shmat ();
4699 #ifdef F77_DUMMY_MAIN
4700 # ifdef __cplusplus
4701 extern "C"
4702 # endif
4703 int F77_DUMMY_MAIN() { return 1; }
4704 #endif
4705 int
4706 main ()
4707 {
4708 shmat ();
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 rm -f conftest.$ac_objext conftest$ac_exeext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4715 (eval $ac_link) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_cv_lib_ipc_shmat=yes
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4729 ac_cv_lib_ipc_shmat=no
4730 fi
4731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4732 LIBS=$ac_check_lib_save_LIBS
4733 fi
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4735 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4736 if test $ac_cv_lib_ipc_shmat = yes; then
4737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4738 fi
4739
4740 fi
4741 fi
4742
4743 # Check for libraries that X11R6 Xt/Xaw programs need.
4744 ac_save_LDFLAGS=$LDFLAGS
4745 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4746 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4747 # check for ICE first), but we must link in the order -lSM -lICE or
4748 # we get undefined symbols. So assume we have SM if we have ICE.
4749 # These have to be linked with before -lX11, unlike the other
4750 # libraries we check for below, so use a different variable.
4751 # John Interrante, Karl Berry
4752 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4753 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4754 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 ac_check_lib_save_LIBS=$LIBS
4758 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4762
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 #ifdef __cplusplus
4765 extern "C"
4766 #endif
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4769 char IceConnectionNumber ();
4770 #ifdef F77_DUMMY_MAIN
4771 # ifdef __cplusplus
4772 extern "C"
4773 # endif
4774 int F77_DUMMY_MAIN() { return 1; }
4775 #endif
4776 int
4777 main ()
4778 {
4779 IceConnectionNumber ();
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_lib_ICE_IceConnectionNumber=yes
4797 else
4798 echo "$as_me: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 ac_cv_lib_ICE_IceConnectionNumber=no
4801 fi
4802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_check_lib_save_LIBS
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4806 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4807 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4808 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4809 fi
4810
4811 LDFLAGS=$ac_save_LDFLAGS
4812
4813 fi
4814
4815
4816 test x$no_x = "xyes" && { { echo "$as_me:$LINENO: error: Openbox requires the X Window System libraries and headers." >&5
4817 echo "$as_me: error: Openbox requires the X Window System libraries and headers." >&2;}
4818 { (exit 1); exit 1; }; }
4819
4820 test x$x_includes = "x" && x_includes="/usr/include"
4821 test x$x_libraries = "x" && x_libraries="/usr/lib"
4822
4823 CFLAGS="$CFLAGS $X_CFLAGS"
4824 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
4825 LIBS="$LIBS $X_LIBS"
4826 LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
4827
4828 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
4829 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
4830 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 ac_check_lib_save_LIBS=$LIBS
4834 LIBS="-lX11 $LIBS"
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 #include "confdefs.h"
4838
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 #ifdef __cplusplus
4841 extern "C"
4842 #endif
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4845 char XOpenDisplay ();
4846 #ifdef F77_DUMMY_MAIN
4847 # ifdef __cplusplus
4848 extern "C"
4849 # endif
4850 int F77_DUMMY_MAIN() { return 1; }
4851 #endif
4852 int
4853 main ()
4854 {
4855 XOpenDisplay ();
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_lib_X11_XOpenDisplay=yes
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 ac_cv_lib_X11_XOpenDisplay=no
4877 fi
4878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4880 fi
4881 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
4882 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
4883 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
4884 LIBS="$LIBS -lX11"
4885 else
4886 { { echo "$as_me:$LINENO: error: Could not find XOpenDisplay in -lX11." >&5
4887 echo "$as_me: error: Could not find XOpenDisplay in -lX11." >&2;}
4888 { (exit 1); exit 1; }; }
4889
4890 fi
4891
4892
4893 LIBS="$LIBS $X_EXTRA_LIBS"
4894
4895 Xext_lib=""
4896
4897 SHAPE=""
4898 echo "$as_me:$LINENO: checking whether to build support for the XShape extension" >&5
4899 echo $ECHO_N "checking whether to build support for the XShape extension... $ECHO_C" >&6
4900 # Check whether --enable-shape or --disable-shape was given.
4901 if test "${enable_shape+set}" = set; then
4902 enableval="$enable_shape"
4903
4904 fi;
4905
4906 : ${enableval="yes"}
4907 if test x$enableval = "xyes"; then
4908 echo "$as_me:$LINENO: result: yes" >&5
4909 echo "${ECHO_T}yes" >&6
4910 echo "$as_me:$LINENO: checking for XShapeCombineShape in -lXext" >&5
4911 echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6
4912 if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 ac_check_lib_save_LIBS=$LIBS
4916 LIBS="-lXext $LIBS"
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 #include "confdefs.h"
4920
4921 /* Override any gcc2 internal prototype to avoid an error. */
4922 #ifdef __cplusplus
4923 extern "C"
4924 #endif
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4927 char XShapeCombineShape ();
4928 #ifdef F77_DUMMY_MAIN
4929 # ifdef __cplusplus
4930 extern "C"
4931 # endif
4932 int F77_DUMMY_MAIN() { return 1; }
4933 #endif
4934 int
4935 main ()
4936 {
4937 XShapeCombineShape ();
4938 ;
4939 return 0;
4940 }
4941 _ACEOF
4942 rm -f conftest.$ac_objext conftest$ac_exeext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4944 (eval $ac_link) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -s conftest$ac_exeext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_cv_lib_Xext_XShapeCombineShape=yes
4955 else
4956 echo "$as_me: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4958 ac_cv_lib_Xext_XShapeCombineShape=no
4959 fi
4960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4961 LIBS=$ac_check_lib_save_LIBS
4962 fi
4963 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
4964 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6
4965 if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
4966 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
4967 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
4968 cat >conftest.$ac_ext <<_ACEOF
4969 #line $LINENO "configure"
4970 #include "confdefs.h"
4971 #include <X11/Xlib.h>
4972 #include <X11/Xutil.h>
4973 #include <X11/extensions/shape.h>
4974
4975 #ifdef F77_DUMMY_MAIN
4976 # ifdef __cplusplus
4977 extern "C"
4978 # endif
4979 int F77_DUMMY_MAIN() { return 1; }
4980 #endif
4981 int
4982 main ()
4983 {
4984 long foo = ShapeSet
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 rm -f conftest.$ac_objext conftest$ac_exeext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -s conftest$ac_exeext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5003 SHAPE="-DSHAPE"; Xext_lib="-lXext"
5004 else
5005 echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5009
5010 fi
5011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5012
5013 fi
5014
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5018 fi
5019
5020
5021 LIBS="$LIBS $Xext_lib"
5022
5023 SLIT=""
5024 echo "$as_me:$LINENO: checking whether to include the Slit" >&5
5025 echo $ECHO_N "checking whether to include the Slit... $ECHO_C" >&6
5026 # Check whether --enable-slit or --disable-slit was given.
5027 if test "${enable_slit+set}" = set; then
5028 enableval="$enable_slit"
5029 if test x$enableval = "xyes"; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031 echo "${ECHO_T}yes" >&6
5032 SLIT="-DSLIT"
5033 else
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5036 fi
5037 else
5038 echo "$as_me:$LINENO: result: yes" >&5
5039 echo "${ECHO_T}yes" >&6
5040 SLIT="-DSLIT"
5041
5042 fi;
5043
5044
5045 NEWWMSPEC=""
5046 echo "$as_me:$LINENO: checking whether to include the new WM Spec (DOES NOTHING)" >&5
5047 echo $ECHO_N "checking whether to include the new WM Spec (DOES NOTHING)... $ECHO_C" >&6
5048 # Check whether --enable-newspec or --disable-newspec was given.
5049 if test "${enable_newspec+set}" = set; then
5050 enableval="$enable_newspec"
5051 if test x$enableval = "xyes"; then
5052 echo "$as_me:$LINENO: result: yes" >&5
5053 echo "${ECHO_T}yes" >&6
5054 NEWWMSPEC="-DNEWWMSPEC"
5055 else
5056 echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5058 fi
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5062
5063 fi;
5064
5065
5066
5067 INTERLACE=""
5068 echo "$as_me:$LINENO: checking whether to include interlacing image code" >&5
5069 echo $ECHO_N "checking whether to include interlacing image code... $ECHO_C" >&6
5070 # Check whether --enable-interlace or --disable-interlace was given.
5071 if test "${enable_interlace+set}" = set; then
5072 enableval="$enable_interlace"
5073 if test x$enableval = "xyes"; then
5074 echo "$as_me:$LINENO: result: yes" >&5
5075 echo "${ECHO_T}yes" >&6
5076 INTERLACE="-DINTERLACE"
5077 else
5078 echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5080 fi
5081 else
5082 echo "$as_me:$LINENO: result: yes" >&5
5083 echo "${ECHO_T}yes" >&6
5084 INTERLACE="-DINTERLACE"
5085
5086 fi;
5087
5088
5089 ORDEREDPSEUDO=""
5090 echo "$as_me:$LINENO: checking whether to include Pseudocolor ordered dithering code" >&5
5091 echo $ECHO_N "checking whether to include Pseudocolor ordered dithering code... $ECHO_C" >&6
5092 # Check whether --enable-ordered-pseudo or --disable-ordered-pseudo was given.
5093 if test "${enable_ordered_pseudo+set}" = set; then
5094 enableval="$enable_ordered_pseudo"
5095 if test x$enableval = "xyes"; then
5096 echo "$as_me:$LINENO: result: yes" >&5
5097 echo "${ECHO_T}yes" >&6
5098 ORDEREDPSEUDO="-DORDEREDPSEUDO"
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6
5102 fi
5103 else
5104 echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6
5106
5107 fi;
5108
5109
5110 CLOBBER=""
5111 echo "$as_me:$LINENO: checking whether to intercept mouse events to clients" >&5
5112 echo $ECHO_N "checking whether to intercept mouse events to clients... $ECHO_C" >&6
5113 # Check whether --enable-clobber or --disable-clobber was given.
5114 if test "${enable_clobber+set}" = set; then
5115 enableval="$enable_clobber"
5116 if test x$enableval = "xno"; then
5117 echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5119 CLOBBER="-DNOCLOBBER"
5120 else
5121 echo "$as_me:$LINENO: result: yes" >&5
5122 echo "${ECHO_T}yes" >&6
5123 fi
5124 else
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5127
5128 fi;
5129
5130
5131 DEBUG=""
5132 echo "$as_me:$LINENO: checking whether to include verbose debugging code" >&5
5133 echo $ECHO_N "checking whether to include verbose debugging code... $ECHO_C" >&6
5134 # Check whether --enable-debug or --disable-debug was given.
5135 if test "${enable_debug+set}" = set; then
5136 enableval="$enable_debug"
5137 if test x$enableval = "xyes"; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139 echo "${ECHO_T}yes" >&6
5140 DEBUG="-DDEBUG"
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5144 fi
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5148
5149 fi;
5150
5151
5152 NLS=""
5153 echo "$as_me:$LINENO: checking whether to include NLS support" >&5
5154 echo $ECHO_N "checking whether to include NLS support... $ECHO_C" >&6
5155 # Check whether --enable-nls or --disable-nls was given.
5156 if test "${enable_nls+set}" = set; then
5157 enableval="$enable_nls"
5158 if test x$enableval = "xyes"; then
5159 echo "$as_me:$LINENO: result: yes" >&5
5160 echo "${ECHO_T}yes" >&6
5161 NLS="-DNLS"
5162 else
5163 echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5165 fi
5166 else
5167 echo "$as_me:$LINENO: result: yes" >&5
5168 echo "${ECHO_T}yes" >&6
5169 NLS="-DNLS"
5170
5171 fi;
5172
5173
5174 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
5175 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
5176 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 ac_check_lib_save_LIBS=$LIBS
5180 LIBS="-lxpg4 $LIBS"
5181 cat >conftest.$ac_ext <<_ACEOF
5182 #line $LINENO "configure"
5183 #include "confdefs.h"
5184
5185 /* Override any gcc2 internal prototype to avoid an error. */
5186 #ifdef __cplusplus
5187 extern "C"
5188 #endif
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5191 char setlocale ();
5192 #ifdef F77_DUMMY_MAIN
5193 # ifdef __cplusplus
5194 extern "C"
5195 # endif
5196 int F77_DUMMY_MAIN() { return 1; }
5197 #endif
5198 int
5199 main ()
5200 {
5201 setlocale ();
5202 ;
5203 return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -s conftest$ac_exeext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_lib_xpg4_setlocale=yes
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 ac_cv_lib_xpg4_setlocale=no
5223 fi
5224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5226 fi
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
5228 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
5229 if test $ac_cv_lib_xpg4_setlocale = yes; then
5230 LIBS="$LIBS -lxpg4"
5231 fi
5232
5233
5234 for ac_prog in gencat
5235 do
5236 # Extract the first word of "$ac_prog", so it can be a program name with args.
5237 set dummy $ac_prog; ac_word=$2
5238 echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240 if test "${ac_cv_prog_gencat_cmd+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 if test -n "$gencat_cmd"; then
5244 ac_cv_prog_gencat_cmd="$gencat_cmd" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_gencat_cmd="$ac_prog"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257 done
5258 done
5259
5260 fi
5261 fi
5262 gencat_cmd=$ac_cv_prog_gencat_cmd
5263 if test -n "$gencat_cmd"; then
5264 echo "$as_me:$LINENO: result: $gencat_cmd" >&5
5265 echo "${ECHO_T}$gencat_cmd" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5269 fi
5270
5271 test -n "$gencat_cmd" && break
5272 done
5273
5274 if test x$gencat_cmd = "x"; then
5275 NLS=""
5276 fi
5277
5278
5279 TIMEDCACHE=""
5280 echo "$as_me:$LINENO: checking whether to use the new timed pixmap cache" >&5
5281 echo $ECHO_N "checking whether to use the new timed pixmap cache... $ECHO_C" >&6
5282 # Check whether --enable-timed-cache or --disable-timed-cache was given.
5283 if test "${enable_timed_cache+set}" = set; then
5284 enableval="$enable_timed_cache"
5285 if test x$enableval = "xyes"; then
5286 echo "$as_me:$LINENO: result: yes" >&5
5287 echo "${ECHO_T}yes" >&6
5288 TIMEDCACHE="-DTIMEDCACHE"
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5292 fi
5293 else
5294 echo "$as_me:$LINENO: result: yes" >&5
5295 echo "${ECHO_T}yes" >&6
5296 TIMEDCACHE="-DTIMEDCACHE"
5297
5298 fi;
5299
5300
5301 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5302 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5303 if test "${ac_cv_type_signal+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 cat >conftest.$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5308 #include "confdefs.h"
5309 #include <sys/types.h>
5310 #include <signal.h>
5311 #ifdef signal
5312 # undef signal
5313 #endif
5314 #ifdef __cplusplus
5315 extern "C" void (*signal (int, void (*)(int)))(int);
5316 #else
5317 void (*signal ()) ();
5318 #endif
5319
5320 #ifdef F77_DUMMY_MAIN
5321 # ifdef __cplusplus
5322 extern "C"
5323 # endif
5324 int F77_DUMMY_MAIN() { return 1; }
5325 #endif
5326 int
5327 main ()
5328 {
5329 int i;
5330 ;
5331 return 0;
5332 }
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 (eval $ac_compile) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_type_signal=void
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5350 ac_cv_type_signal=int
5351 fi
5352 rm -f conftest.$ac_objext conftest.$ac_ext
5353 fi
5354 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5355 echo "${ECHO_T}$ac_cv_type_signal" >&6
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define RETSIGTYPE $ac_cv_type_signal
5359 _ACEOF
5360
5361
5362
5363 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5364 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5365 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5366 if test "${enable_maintainer_mode+set}" = set; then
5367 enableval="$enable_maintainer_mode"
5368 USE_MAINTAINER_MODE=$enableval
5369 else
5370 USE_MAINTAINER_MODE=no
5371 fi;
5372 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5373 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5374
5375
5376 if test $USE_MAINTAINER_MODE = yes; then
5377 MAINTAINER_MODE_TRUE=
5378 MAINTAINER_MODE_FALSE='#'
5379 else
5380 MAINTAINER_MODE_TRUE='#'
5381 MAINTAINER_MODE_FALSE=
5382 fi
5383 MAINT=$MAINTAINER_MODE_TRUE
5384
5385
5386
5387 echo "$as_me:$LINENO: result: " >&5
5388 echo "${ECHO_T}" >&6
5389 echo "$as_me:$LINENO: result: $PACKAGE version $VERSION configured successfully." >&5
5390 echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6
5391 echo "$as_me:$LINENO: result: " >&5
5392 echo "${ECHO_T}" >&6
5393 echo "$as_me:$LINENO: result: Using '$prefix' for installation." >&5
5394 echo "${ECHO_T}Using '$prefix' for installation." >&6
5395 echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
5396 echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6
5397 echo "$as_me:$LINENO: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
5398 echo "${ECHO_T}Building with '$CXXFLAGS' for C++ compiler flags." >&6
5399 echo "$as_me:$LINENO: result: Building with '$LIBS' for linker flags." >&5
5400 echo "${ECHO_T}Building with '$LIBS' for linker flags." >&6
5401 echo "$as_me:$LINENO: result: " >&5
5402 echo "${ECHO_T}" >&6
5403
5404
5405 ac_config_headers="$ac_config_headers config.h"
5406
5407 ac_config_commands="$ac_config_commands default-1"
5408
5409 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"
5410 cat >confcache <<\_ACEOF
5411 # This file is a shell script that caches the results of configure
5412 # tests run on this system so they can be shared between configure
5413 # scripts and configure runs, see configure's option --config-cache.
5414 # It is not useful on other systems. If it contains results you don't
5415 # want to keep, you may remove or edit it.
5416 #
5417 # config.status only pays attention to the cache file if you give it
5418 # the --recheck option to rerun configure.
5419 #
5420 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5422 # following values.
5423
5424 _ACEOF
5425
5426 # The following way of writing the cache mishandles newlines in values,
5427 # but we know of no workaround that is simple, portable, and efficient.
5428 # So, don't put newlines in cache variables' values.
5429 # Ultrix sh set writes to stderr and can't be redirected directly,
5430 # and sets the high bit in the cache file unless we assign to the vars.
5431 {
5432 (set) 2>&1 |
5433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5434 *ac_space=\ *)
5435 # `set' does not quote correctly, so add quotes (double-quote
5436 # substitution turns \\\\ into \\, and sed turns \\ into \).
5437 sed -n \
5438 "s/'/'\\\\''/g;
5439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5440 ;;
5441 *)
5442 # `set' quotes correctly as required by POSIX, so do not add quotes.
5443 sed -n \
5444 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5445 ;;
5446 esac;
5447 } |
5448 sed '
5449 t clear
5450 : clear
5451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5452 t end
5453 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5454 : end' >>confcache
5455 if cmp -s $cache_file confcache; then :; else
5456 if test -w $cache_file; then
5457 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5458 cat confcache >$cache_file
5459 else
5460 echo "not updating unwritable cache $cache_file"
5461 fi
5462 fi
5463 rm -f confcache
5464
5465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5466 # Let make expand exec_prefix.
5467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5468
5469 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5470 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5471 # trailing colons and then remove the whole line if VPATH becomes empty
5472 # (actually we leave an empty line to preserve line numbers).
5473 if test "x$srcdir" = x.; then
5474 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5475 s/:*\$(srcdir):*/:/;
5476 s/:*\${srcdir}:*/:/;
5477 s/:*@srcdir@:*/:/;
5478 s/^\([^=]*=[ ]*\):*/\1/;
5479 s/:*$//;
5480 s/^[^=]*=[ ]*$//;
5481 }'
5482 fi
5483
5484 DEFS=-DHAVE_CONFIG_H
5485
5486
5487 : ${CONFIG_STATUS=./config.status}
5488 ac_clean_files_save=$ac_clean_files
5489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5492 cat >$CONFIG_STATUS <<_ACEOF
5493 #! $SHELL
5494 # Generated by $as_me.
5495 # Run this file to recreate the current configuration.
5496 # Compiler output produced by configure, useful for debugging
5497 # configure, is in config.log if it exists.
5498
5499 debug=false
5500 SHELL=\${CONFIG_SHELL-$SHELL}
5501 _ACEOF
5502
5503 cat >>$CONFIG_STATUS <<\_ACEOF
5504
5505 ## --------------------- ##
5506 ## M4sh Initialization. ##
5507 ## --------------------- ##
5508
5509 # Be Bourne compatible
5510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5511 emulate sh
5512 NULLCMD=:
5513 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5514 set -o posix
5515 fi
5516
5517 # NLS nuisances.
5518 # Support unset when possible.
5519 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5520 as_unset=unset
5521 else
5522 as_unset=false
5523 fi
5524
5525 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5526 { $as_unset LANG || test "${LANG+set}" != set; } ||
5527 { LANG=C; export LANG; }
5528 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5529 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5530 { LC_ALL=C; export LC_ALL; }
5531 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5532 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5533 { LC_TIME=C; export LC_TIME; }
5534 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5535 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5536 { LC_CTYPE=C; export LC_CTYPE; }
5537 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5538 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5539 { LANGUAGE=C; export LANGUAGE; }
5540 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5541 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5542 { LC_COLLATE=C; export LC_COLLATE; }
5543 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5544 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5545 { LC_NUMERIC=C; export LC_NUMERIC; }
5546 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5547 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5548 { LC_MESSAGES=C; export LC_MESSAGES; }
5549
5550
5551 # Name of the executable.
5552 as_me=`(basename "$0") 2>/dev/null ||
5553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5554 X"$0" : 'X\(//\)$' \| \
5555 X"$0" : 'X\(/\)$' \| \
5556 . : '\(.\)' 2>/dev/null ||
5557 echo X/"$0" |
5558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5559 /^X\/\(\/\/\)$/{ s//\1/; q; }
5560 /^X\/\(\/\).*/{ s//\1/; q; }
5561 s/.*/./; q'`
5562
5563 # PATH needs CR, and LINENO needs CR and PATH.
5564 # Avoid depending upon Character Ranges.
5565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5568 as_cr_digits='0123456789'
5569 as_cr_alnum=$as_cr_Letters$as_cr_digits
5570
5571 # The user is always right.
5572 if test "${PATH_SEPARATOR+set}" != set; then
5573 echo "#! /bin/sh" >conftest.sh
5574 echo "exit 0" >>conftest.sh
5575 chmod +x conftest.sh
5576 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5577 PATH_SEPARATOR=';'
5578 else
5579 PATH_SEPARATOR=:
5580 fi
5581 rm -f conftest.sh
5582 fi
5583
5584
5585 as_lineno_1=$LINENO
5586 as_lineno_2=$LINENO
5587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5588 test "x$as_lineno_1" != "x$as_lineno_2" &&
5589 test "x$as_lineno_3" = "x$as_lineno_2" || {
5590 # Find who we are. Look in the path if we contain no path at all
5591 # relative or not.
5592 case $0 in
5593 *[\\/]* ) as_myself=$0 ;;
5594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5600 done
5601
5602 ;;
5603 esac
5604 # We did not find ourselves, most probably we were run as `sh COMMAND'
5605 # in which case we are not to be found in the path.
5606 if test "x$as_myself" = x; then
5607 as_myself=$0
5608 fi
5609 if test ! -f "$as_myself"; then
5610 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5611 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5612 { (exit 1); exit 1; }; }
5613 fi
5614 case $CONFIG_SHELL in
5615 '')
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5618 do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for as_base in sh bash ksh sh5; do
5622 case $as_dir in
5623 /*)
5624 if ("$as_dir/$as_base" -c '
5625 as_lineno_1=$LINENO
5626 as_lineno_2=$LINENO
5627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5628 test "x$as_lineno_1" != "x$as_lineno_2" &&
5629 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5630 CONFIG_SHELL=$as_dir/$as_base
5631 export CONFIG_SHELL
5632 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5633 fi;;
5634 esac
5635 done
5636 done
5637 ;;
5638 esac
5639
5640 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5641 # uniformly replaced by the line number. The first 'sed' inserts a
5642 # line-number line before each line; the second 'sed' does the real
5643 # work. The second script uses 'N' to pair each line-number line
5644 # with the numbered line, and appends trailing '-' during
5645 # substitution so that $LINENO is not a special case at line end.
5646 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5647 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5648 sed '=' <$as_myself |
5649 sed '
5650 N
5651 s,$,-,
5652 : loop
5653 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5654 t loop
5655 s,-$,,
5656 s,^['$as_cr_digits']*\n,,
5657 ' >$as_me.lineno &&
5658 chmod +x $as_me.lineno ||
5659 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5660 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5661 { (exit 1); exit 1; }; }
5662
5663 # Don't try to exec as it changes $[0], causing all sort of problems
5664 # (the dirname of $[0] is not the place where we might find the
5665 # original and so on. Autoconf is especially sensible to this).
5666 . ./$as_me.lineno
5667 # Exit status is that of the last command.
5668 exit
5669 }
5670
5671
5672 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5673 *c*,-n*) ECHO_N= ECHO_C='
5674 ' ECHO_T=' ' ;;
5675 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5676 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5677 esac
5678
5679 if expr a : '\(a\)' >/dev/null 2>&1; then
5680 as_expr=expr
5681 else
5682 as_expr=false
5683 fi
5684
5685 rm -f conf$$ conf$$.exe conf$$.file
5686 echo >conf$$.file
5687 if ln -s conf$$.file conf$$ 2>/dev/null; then
5688 # We could just check for DJGPP; but this test a) works b) is more generic
5689 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5690 if test -f conf$$.exe; then
5691 # Don't use ln at all; we don't have any links
5692 as_ln_s='cp -p'
5693 else
5694 as_ln_s='ln -s'
5695 fi
5696 elif ln conf$$.file conf$$ 2>/dev/null; then
5697 as_ln_s=ln
5698 else
5699 as_ln_s='cp -p'
5700 fi
5701 rm -f conf$$ conf$$.exe conf$$.file
5702
5703 as_executable_p="test -f"
5704
5705 # Sed expression to map a string onto a valid CPP name.
5706 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5707
5708 # Sed expression to map a string onto a valid variable name.
5709 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5710
5711
5712 # IFS
5713 # We need space, tab and new line, in precisely that order.
5714 as_nl='
5715 '
5716 IFS=" $as_nl"
5717
5718 # CDPATH.
5719 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5720
5721 exec 6>&1
5722
5723 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5724 # report actual input values of CONFIG_FILES etc. instead of their
5725 # values after options handling. Logging --version etc. is OK.
5726 exec 5>>config.log
5727 {
5728 echo
5729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5730 ## Running $as_me. ##
5731 _ASBOX
5732 } >&5
5733 cat >&5 <<_CSEOF
5734
5735 This file was extended by $as_me, which was
5736 generated by GNU Autoconf 2.53. Invocation command line was
5737
5738 CONFIG_FILES = $CONFIG_FILES
5739 CONFIG_HEADERS = $CONFIG_HEADERS
5740 CONFIG_LINKS = $CONFIG_LINKS
5741 CONFIG_COMMANDS = $CONFIG_COMMANDS
5742 $ $0 $@
5743
5744 _CSEOF
5745 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5746 echo >&5
5747 _ACEOF
5748
5749 # Files that config.status was made for.
5750 if test -n "$ac_config_files"; then
5751 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5752 fi
5753
5754 if test -n "$ac_config_headers"; then
5755 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5756 fi
5757
5758 if test -n "$ac_config_links"; then
5759 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5760 fi
5761
5762 if test -n "$ac_config_commands"; then
5763 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5764 fi
5765
5766 cat >>$CONFIG_STATUS <<\_ACEOF
5767
5768 ac_cs_usage="\
5769 \`$as_me' instantiates files from templates according to the
5770 current configuration.
5771
5772 Usage: $0 [OPTIONS] [FILE]...
5773
5774 -h, --help print this help, then exit
5775 -V, --version print version number, then exit
5776 -d, --debug don't remove temporary files
5777 --recheck update $as_me by reconfiguring in the same conditions
5778 --file=FILE[:TEMPLATE]
5779 instantiate the configuration file FILE
5780 --header=FILE[:TEMPLATE]
5781 instantiate the configuration header FILE
5782
5783 Configuration files:
5784 $config_files
5785
5786 Configuration headers:
5787 $config_headers
5788
5789 Configuration commands:
5790 $config_commands
5791
5792 Report bugs to <bug-autoconf@gnu.org>."
5793 _ACEOF
5794
5795 cat >>$CONFIG_STATUS <<_ACEOF
5796 ac_cs_version="\\
5797 config.status
5798 configured by $0, generated by GNU Autoconf 2.53,
5799 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5800
5801 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5802 Free Software Foundation, Inc.
5803 This config.status script is free software; the Free Software Foundation
5804 gives unlimited permission to copy, distribute and modify it."
5805 srcdir=$srcdir
5806 INSTALL="$INSTALL"
5807 _ACEOF
5808
5809 cat >>$CONFIG_STATUS <<\_ACEOF
5810 # If no file are specified by the user, then we need to provide default
5811 # value. By we need to know if files were specified by the user.
5812 ac_need_defaults=:
5813 while test $# != 0
5814 do
5815 case $1 in
5816 --*=*)
5817 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5818 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5819 shift
5820 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5821 shift
5822 ;;
5823 -*);;
5824 *) # This is not an option, so the user has probably given explicit
5825 # arguments.
5826 ac_need_defaults=false;;
5827 esac
5828
5829 case $1 in
5830 # Handling of the options.
5831 _ACEOF
5832 cat >>$CONFIG_STATUS <<_ACEOF
5833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5834 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5835 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5836 _ACEOF
5837 cat >>$CONFIG_STATUS <<\_ACEOF
5838 --version | --vers* | -V )
5839 echo "$ac_cs_version"; exit 0 ;;
5840 --he | --h)
5841 # Conflict between --help and --header
5842 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5843 Try \`$0 --help' for more information." >&5
5844 echo "$as_me: error: ambiguous option: $1
5845 Try \`$0 --help' for more information." >&2;}
5846 { (exit 1); exit 1; }; };;
5847 --help | --hel | -h )
5848 echo "$ac_cs_usage"; exit 0 ;;
5849 --debug | --d* | -d )
5850 debug=: ;;
5851 --file | --fil | --fi | --f )
5852 shift
5853 CONFIG_FILES="$CONFIG_FILES $1"
5854 ac_need_defaults=false;;
5855 --header | --heade | --head | --hea )
5856 shift
5857 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5858 ac_need_defaults=false;;
5859
5860 # This is an error.
5861 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5862 Try \`$0 --help' for more information." >&5
5863 echo "$as_me: error: unrecognized option: $1
5864 Try \`$0 --help' for more information." >&2;}
5865 { (exit 1); exit 1; }; } ;;
5866
5867 *) ac_config_targets="$ac_config_targets $1" ;;
5868
5869 esac
5870 shift
5871 done
5872
5873 _ACEOF
5874
5875 cat >>$CONFIG_STATUS <<_ACEOF
5876 #
5877 # INIT-COMMANDS section.
5878 #
5879
5880
5881
5882 _ACEOF
5883
5884
5885
5886 cat >>$CONFIG_STATUS <<\_ACEOF
5887 for ac_config_target in $ac_config_targets
5888 do
5889 case "$ac_config_target" in
5890 # Handling of arguments.
5891 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5892 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5893 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
5894 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
5895 "data/styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/styles/Makefile" ;;
5896 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5897 "nls/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
5898 "nls/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;;
5899 "nls/da_DK/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/da_DK/Makefile" ;;
5900 "nls/de_DE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/de_DE/Makefile" ;;
5901 "nls/es_ES/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/es_ES/Makefile" ;;
5902 "nls/et_EE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/et_EE/Makefile" ;;
5903 "nls/fr_FR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/fr_FR/Makefile" ;;
5904 "nls/it_IT/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/it_IT/Makefile" ;;
5905 "nls/ja_JP/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/ja_JP/Makefile" ;;
5906 "nls/nl_NL/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/nl_NL/Makefile" ;;
5907 "nls/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/pt_BR/Makefile" ;;
5908 "nls/ru_RU/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/ru_RU/Makefile" ;;
5909 "nls/sl_SI/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/sl_SI/Makefile" ;;
5910 "nls/sv_SE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/sv_SE/Makefile" ;;
5911 "nls/tr_TR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/tr_TR/Makefile" ;;
5912 "nls/zh_CN/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;;
5913 "version.h" ) CONFIG_FILES="$CONFIG_FILES version.h" ;;
5914 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5915 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5916 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5917 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5918 { (exit 1); exit 1; }; };;
5919 esac
5920 done
5921
5922 # If the user did not use the arguments to specify the items to instantiate,
5923 # then the envvar interface is used. Set only those that are not.
5924 # We use the long form for the default assignment because of an extremely
5925 # bizarre bug on SunOS 4.1.3.
5926 if $ac_need_defaults; then
5927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5930 fi
5931
5932 # Create a temporary directory, and hook for its removal unless debugging.
5933 $debug ||
5934 {
5935 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5936 trap '{ (exit 1); exit 1; }' 1 2 13 15
5937 }
5938
5939 # Create a (secure) tmp directory for tmp files.
5940 : ${TMPDIR=/tmp}
5941 {
5942 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5943 test -n "$tmp" && test -d "$tmp"
5944 } ||
5945 {
5946 tmp=$TMPDIR/cs$$-$RANDOM
5947 (umask 077 && mkdir $tmp)
5948 } ||
5949 {
5950 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5951 { (exit 1); exit 1; }
5952 }
5953
5954 _ACEOF
5955
5956 cat >>$CONFIG_STATUS <<_ACEOF
5957
5958 #
5959 # CONFIG_FILES section.
5960 #
5961
5962 # No need to generate the scripts if there are no CONFIG_FILES.
5963 # This happens for instance when ./config.status config.h
5964 if test -n "\$CONFIG_FILES"; then
5965 # Protect against being on the right side of a sed subst in config.status.
5966 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5967 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5968 s,@SHELL@,$SHELL,;t t
5969 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5970 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5971 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5972 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5973 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5974 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5975 s,@exec_prefix@,$exec_prefix,;t t
5976 s,@prefix@,$prefix,;t t
5977 s,@program_transform_name@,$program_transform_name,;t t
5978 s,@bindir@,$bindir,;t t
5979 s,@sbindir@,$sbindir,;t t
5980 s,@libexecdir@,$libexecdir,;t t
5981 s,@datadir@,$datadir,;t t
5982 s,@sysconfdir@,$sysconfdir,;t t
5983 s,@sharedstatedir@,$sharedstatedir,;t t
5984 s,@localstatedir@,$localstatedir,;t t
5985 s,@libdir@,$libdir,;t t
5986 s,@includedir@,$includedir,;t t
5987 s,@oldincludedir@,$oldincludedir,;t t
5988 s,@infodir@,$infodir,;t t
5989 s,@mandir@,$mandir,;t t
5990 s,@build_alias@,$build_alias,;t t
5991 s,@host_alias@,$host_alias,;t t
5992 s,@target_alias@,$target_alias,;t t
5993 s,@DEFS@,$DEFS,;t t
5994 s,@ECHO_C@,$ECHO_C,;t t
5995 s,@ECHO_N@,$ECHO_N,;t t
5996 s,@ECHO_T@,$ECHO_T,;t t
5997 s,@LIBS@,$LIBS,;t t
5998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6001 s,@PACKAGE@,$PACKAGE,;t t
6002 s,@VERSION@,$VERSION,;t t
6003 s,@ACLOCAL@,$ACLOCAL,;t t
6004 s,@AUTOCONF@,$AUTOCONF,;t t
6005 s,@AUTOMAKE@,$AUTOMAKE,;t t
6006 s,@AUTOHEADER@,$AUTOHEADER,;t t
6007 s,@MAKEINFO@,$MAKEINFO,;t t
6008 s,@SET_MAKE@,$SET_MAKE,;t t
6009 s,@CC@,$CC,;t t
6010 s,@CFLAGS@,$CFLAGS,;t t
6011 s,@LDFLAGS@,$LDFLAGS,;t t
6012 s,@CPPFLAGS@,$CPPFLAGS,;t t
6013 s,@ac_ct_CC@,$ac_ct_CC,;t t
6014 s,@EXEEXT@,$EXEEXT,;t t
6015 s,@OBJEXT@,$OBJEXT,;t t
6016 s,@CXX@,$CXX,;t t
6017 s,@CXXFLAGS@,$CXXFLAGS,;t t
6018 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6019 s,@regex_cmd@,$regex_cmd,;t t
6020 s,@CPP@,$CPP,;t t
6021 s,@X_CFLAGS@,$X_CFLAGS,;t t
6022 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6023 s,@X_LIBS@,$X_LIBS,;t t
6024 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6025 s,@SHAPE@,$SHAPE,;t t
6026 s,@SLIT@,$SLIT,;t t
6027 s,@NEWWMSPEC@,$NEWWMSPEC,;t t
6028 s,@INTERLACE@,$INTERLACE,;t t
6029 s,@ORDEREDPSEUDO@,$ORDEREDPSEUDO,;t t
6030 s,@CLOBBER@,$CLOBBER,;t t
6031 s,@DEBUG@,$DEBUG,;t t
6032 s,@NLS@,$NLS,;t t
6033 s,@gencat_cmd@,$gencat_cmd,;t t
6034 s,@TIMEDCACHE@,$TIMEDCACHE,;t t
6035 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6036 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6037 s,@MAINT@,$MAINT,;t t
6038 CEOF
6039
6040 _ACEOF
6041
6042 cat >>$CONFIG_STATUS <<\_ACEOF
6043 # Split the substitutions into bite-sized pieces for seds with
6044 # small command number limits, like on Digital OSF/1 and HP-UX.
6045 ac_max_sed_lines=48
6046 ac_sed_frag=1 # Number of current file.
6047 ac_beg=1 # First line for current file.
6048 ac_end=$ac_max_sed_lines # Line after last line for current file.
6049 ac_more_lines=:
6050 ac_sed_cmds=
6051 while $ac_more_lines; do
6052 if test $ac_beg -gt 1; then
6053 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6054 else
6055 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6056 fi
6057 if test ! -s $tmp/subs.frag; then
6058 ac_more_lines=false
6059 else
6060 # The purpose of the label and of the branching condition is to
6061 # speed up the sed processing (if there are no `@' at all, there
6062 # is no need to browse any of the substitutions).
6063 # These are the two extra sed commands mentioned above.
6064 (echo ':t
6065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6066 if test -z "$ac_sed_cmds"; then
6067 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6068 else
6069 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6070 fi
6071 ac_sed_frag=`expr $ac_sed_frag + 1`
6072 ac_beg=$ac_end
6073 ac_end=`expr $ac_end + $ac_max_sed_lines`
6074 fi
6075 done
6076 if test -z "$ac_sed_cmds"; then
6077 ac_sed_cmds=cat
6078 fi
6079 fi # test -n "$CONFIG_FILES"
6080
6081 _ACEOF
6082 cat >>$CONFIG_STATUS <<\_ACEOF
6083 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6085 case $ac_file in
6086 - | *:- | *:-:* ) # input from stdin
6087 cat >$tmp/stdin
6088 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6090 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6092 * ) ac_file_in=$ac_file.in ;;
6093 esac
6094
6095 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6096 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6098 X"$ac_file" : 'X\(//\)[^/]' \| \
6099 X"$ac_file" : 'X\(//\)$' \| \
6100 X"$ac_file" : 'X\(/\)' \| \
6101 . : '\(.\)' 2>/dev/null ||
6102 echo X"$ac_file" |
6103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6105 /^X\(\/\/\)$/{ s//\1/; q; }
6106 /^X\(\/\).*/{ s//\1/; q; }
6107 s/.*/./; q'`
6108 { case "$ac_dir" in
6109 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6110 *) as_incr_dir=.;;
6111 esac
6112 as_dummy="$ac_dir"
6113 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6114 case $as_mkdir_dir in
6115 # Skip DOS drivespec
6116 ?:) as_incr_dir=$as_mkdir_dir ;;
6117 *)
6118 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6119 test -d "$as_incr_dir" ||
6120 mkdir "$as_incr_dir" ||
6121 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6122 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6123 { (exit 1); exit 1; }; }
6124 ;;
6125 esac
6126 done; }
6127
6128 ac_builddir=.
6129
6130 if test "$ac_dir" != .; then
6131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6132 # A "../" for each directory in $ac_dir_suffix.
6133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6134 else
6135 ac_dir_suffix= ac_top_builddir=
6136 fi
6137
6138 case $srcdir in
6139 .) # No --srcdir option. We are building in place.
6140 ac_srcdir=.
6141 if test -z "$ac_top_builddir"; then
6142 ac_top_srcdir=.
6143 else
6144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6145 fi ;;
6146 [\\/]* | ?:[\\/]* ) # Absolute path.
6147 ac_srcdir=$srcdir$ac_dir_suffix;
6148 ac_top_srcdir=$srcdir ;;
6149 *) # Relative path.
6150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6152 esac
6153 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6154 # absolute.
6155 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6156 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6157 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6158 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6159
6160
6161 case $INSTALL in
6162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6163 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6164 esac
6165
6166 if test x"$ac_file" != x-; then
6167 { echo "$as_me:$LINENO: creating $ac_file" >&5
6168 echo "$as_me: creating $ac_file" >&6;}
6169 rm -f "$ac_file"
6170 fi
6171 # Let's still pretend it is `configure' which instantiates (i.e., don't
6172 # use $as_me), people would be surprised to read:
6173 # /* config.h. Generated by config.status. */
6174 if test x"$ac_file" = x-; then
6175 configure_input=
6176 else
6177 configure_input="$ac_file. "
6178 fi
6179 configure_input=$configure_input"Generated from `echo $ac_file_in |
6180 sed 's,.*/,,'` by configure."
6181
6182 # First look for the input files in the build tree, otherwise in the
6183 # src tree.
6184 ac_file_inputs=`IFS=:
6185 for f in $ac_file_in; do
6186 case $f in
6187 -) echo $tmp/stdin ;;
6188 [\\/$]*)
6189 # Absolute (can't be DOS-style, as IFS=:)
6190 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6191 echo "$as_me: error: cannot find input file: $f" >&2;}
6192 { (exit 1); exit 1; }; }
6193 echo $f;;
6194 *) # Relative
6195 if test -f "$f"; then
6196 # Build tree
6197 echo $f
6198 elif test -f "$srcdir/$f"; then
6199 # Source tree
6200 echo $srcdir/$f
6201 else
6202 # /dev/null tree
6203 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6204 echo "$as_me: error: cannot find input file: $f" >&2;}
6205 { (exit 1); exit 1; }; }
6206 fi;;
6207 esac
6208 done` || { (exit 1); exit 1; }
6209 _ACEOF
6210 cat >>$CONFIG_STATUS <<_ACEOF
6211 sed "$ac_vpsub
6212 $extrasub
6213 _ACEOF
6214 cat >>$CONFIG_STATUS <<\_ACEOF
6215 :t
6216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6217 s,@configure_input@,$configure_input,;t t
6218 s,@srcdir@,$ac_srcdir,;t t
6219 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6220 s,@top_srcdir@,$ac_top_srcdir,;t t
6221 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6222 s,@builddir@,$ac_builddir,;t t
6223 s,@abs_builddir@,$ac_abs_builddir,;t t
6224 s,@top_builddir@,$ac_top_builddir,;t t
6225 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6226 s,@INSTALL@,$ac_INSTALL,;t t
6227 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6228 rm -f $tmp/stdin
6229 if test x"$ac_file" != x-; then
6230 mv $tmp/out $ac_file
6231 else
6232 cat $tmp/out
6233 rm -f $tmp/out
6234 fi
6235
6236 done
6237 _ACEOF
6238 cat >>$CONFIG_STATUS <<\_ACEOF
6239
6240 #
6241 # CONFIG_HEADER section.
6242 #
6243
6244 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6245 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6246 #
6247 # ac_d sets the value in "#define NAME VALUE" lines.
6248 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6249 ac_dB='[ ].*$,\1#\2'
6250 ac_dC=' '
6251 ac_dD=',;t'
6252 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6253 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6254 ac_uB='$,\1#\2define\3'
6255 ac_uC=' '
6256 ac_uD=',;t'
6257
6258 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6260 case $ac_file in
6261 - | *:- | *:-:* ) # input from stdin
6262 cat >$tmp/stdin
6263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6267 * ) ac_file_in=$ac_file.in ;;
6268 esac
6269
6270 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6271 echo "$as_me: creating $ac_file" >&6;}
6272
6273 # First look for the input files in the build tree, otherwise in the
6274 # src tree.
6275 ac_file_inputs=`IFS=:
6276 for f in $ac_file_in; do
6277 case $f in
6278 -) echo $tmp/stdin ;;
6279 [\\/$]*)
6280 # Absolute (can't be DOS-style, as IFS=:)
6281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6282 echo "$as_me: error: cannot find input file: $f" >&2;}
6283 { (exit 1); exit 1; }; }
6284 echo $f;;
6285 *) # Relative
6286 if test -f "$f"; then
6287 # Build tree
6288 echo $f
6289 elif test -f "$srcdir/$f"; then
6290 # Source tree
6291 echo $srcdir/$f
6292 else
6293 # /dev/null tree
6294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6295 echo "$as_me: error: cannot find input file: $f" >&2;}
6296 { (exit 1); exit 1; }; }
6297 fi;;
6298 esac
6299 done` || { (exit 1); exit 1; }
6300 # Remove the trailing spaces.
6301 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6302
6303 _ACEOF
6304
6305 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6306 # `conftest.undefs', that substitutes the proper values into
6307 # config.h.in to produce config.h. The first handles `#define'
6308 # templates, and the second `#undef' templates.
6309 # And first: Protect against being on the right side of a sed subst in
6310 # config.status. Protect against being in an unquoted here document
6311 # in config.status.
6312 rm -f conftest.defines conftest.undefs
6313 # Using a here document instead of a string reduces the quoting nightmare.
6314 # Putting comments in sed scripts is not portable.
6315 #
6316 # `end' is used to avoid that the second main sed command (meant for
6317 # 0-ary CPP macros) applies to n-ary macro definitions.
6318 # See the Autoconf documentation for `clear'.
6319 cat >confdef2sed.sed <<\_ACEOF
6320 s/[\\&,]/\\&/g
6321 s,[\\$`],\\&,g
6322 t clear
6323 : clear
6324 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6325 t end
6326 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6327 : end
6328 _ACEOF
6329 # If some macros were called several times there might be several times
6330 # the same #defines, which is useless. Nevertheless, we may not want to
6331 # sort them, since we want the *last* AC-DEFINE to be honored.
6332 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6333 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6334 rm -f confdef2sed.sed
6335
6336 # This sed command replaces #undef with comments. This is necessary, for
6337 # example, in the case of _POSIX_SOURCE, which is predefined and required
6338 # on some systems where configure will not decide to define it.
6339 cat >>conftest.undefs <<\_ACEOF
6340 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6341 _ACEOF
6342
6343 # Break up conftest.defines because some shells have a limit on the size
6344 # of here documents, and old seds have small limits too (100 cmds).
6345 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6346 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6347 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6348 echo ' :' >>$CONFIG_STATUS
6349 rm -f conftest.tail
6350 while grep . conftest.defines >/dev/null
6351 do
6352 # Write a limited-size here document to $tmp/defines.sed.
6353 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6354 # Speed up: don't consider the non `#define' lines.
6355 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6356 # Work around the forget-to-reset-the-flag bug.
6357 echo 't clr' >>$CONFIG_STATUS
6358 echo ': clr' >>$CONFIG_STATUS
6359 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6360 echo 'CEOF
6361 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6362 rm -f $tmp/in
6363 mv $tmp/out $tmp/in
6364 ' >>$CONFIG_STATUS
6365 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6366 rm -f conftest.defines
6367 mv conftest.tail conftest.defines
6368 done
6369 rm -f conftest.defines
6370 echo ' fi # egrep' >>$CONFIG_STATUS
6371 echo >>$CONFIG_STATUS
6372
6373 # Break up conftest.undefs because some shells have a limit on the size
6374 # of here documents, and old seds have small limits too (100 cmds).
6375 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6376 rm -f conftest.tail
6377 while grep . conftest.undefs >/dev/null
6378 do
6379 # Write a limited-size here document to $tmp/undefs.sed.
6380 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6381 # Speed up: don't consider the non `#undef'
6382 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6383 # Work around the forget-to-reset-the-flag bug.
6384 echo 't clr' >>$CONFIG_STATUS
6385 echo ': clr' >>$CONFIG_STATUS
6386 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6387 echo 'CEOF
6388 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6389 rm -f $tmp/in
6390 mv $tmp/out $tmp/in
6391 ' >>$CONFIG_STATUS
6392 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6393 rm -f conftest.undefs
6394 mv conftest.tail conftest.undefs
6395 done
6396 rm -f conftest.undefs
6397
6398 cat >>$CONFIG_STATUS <<\_ACEOF
6399 # Let's still pretend it is `configure' which instantiates (i.e., don't
6400 # use $as_me), people would be surprised to read:
6401 # /* config.h. Generated by config.status. */
6402 if test x"$ac_file" = x-; then
6403 echo "/* Generated by configure. */" >$tmp/config.h
6404 else
6405 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6406 fi
6407 cat $tmp/in >>$tmp/config.h
6408 rm -f $tmp/in
6409 if test x"$ac_file" != x-; then
6410 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6411 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6412 echo "$as_me: $ac_file is unchanged" >&6;}
6413 else
6414 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6416 X"$ac_file" : 'X\(//\)[^/]' \| \
6417 X"$ac_file" : 'X\(//\)$' \| \
6418 X"$ac_file" : 'X\(/\)' \| \
6419 . : '\(.\)' 2>/dev/null ||
6420 echo X"$ac_file" |
6421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6423 /^X\(\/\/\)$/{ s//\1/; q; }
6424 /^X\(\/\).*/{ s//\1/; q; }
6425 s/.*/./; q'`
6426 { case "$ac_dir" in
6427 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6428 *) as_incr_dir=.;;
6429 esac
6430 as_dummy="$ac_dir"
6431 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6432 case $as_mkdir_dir in
6433 # Skip DOS drivespec
6434 ?:) as_incr_dir=$as_mkdir_dir ;;
6435 *)
6436 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6437 test -d "$as_incr_dir" ||
6438 mkdir "$as_incr_dir" ||
6439 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6440 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6441 { (exit 1); exit 1; }; }
6442 ;;
6443 esac
6444 done; }
6445
6446 rm -f $ac_file
6447 mv $tmp/config.h $ac_file
6448 fi
6449 else
6450 cat $tmp/config.h
6451 rm -f $tmp/config.h
6452 fi
6453 done
6454 _ACEOF
6455 cat >>$CONFIG_STATUS <<\_ACEOF
6456
6457 #
6458 # CONFIG_COMMANDS section.
6459 #
6460 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6461 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6462 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6463 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6464 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6465 X"$ac_dest" : 'X\(//\)[^/]' \| \
6466 X"$ac_dest" : 'X\(//\)$' \| \
6467 X"$ac_dest" : 'X\(/\)' \| \
6468 . : '\(.\)' 2>/dev/null ||
6469 echo X"$ac_dest" |
6470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6472 /^X\(\/\/\)$/{ s//\1/; q; }
6473 /^X\(\/\).*/{ s//\1/; q; }
6474 s/.*/./; q'`
6475 ac_builddir=.
6476
6477 if test "$ac_dir" != .; then
6478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6479 # A "../" for each directory in $ac_dir_suffix.
6480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6481 else
6482 ac_dir_suffix= ac_top_builddir=
6483 fi
6484
6485 case $srcdir in
6486 .) # No --srcdir option. We are building in place.
6487 ac_srcdir=.
6488 if test -z "$ac_top_builddir"; then
6489 ac_top_srcdir=.
6490 else
6491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6492 fi ;;
6493 [\\/]* | ?:[\\/]* ) # Absolute path.
6494 ac_srcdir=$srcdir$ac_dir_suffix;
6495 ac_top_srcdir=$srcdir ;;
6496 *) # Relative path.
6497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6499 esac
6500 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6501 # absolute.
6502 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6503 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6504 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6505 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6506
6507
6508 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6509 echo "$as_me: executing $ac_dest commands" >&6;}
6510 case $ac_dest in
6511 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
6512 esac
6513 done
6514 _ACEOF
6515
6516 cat >>$CONFIG_STATUS <<\_ACEOF
6517
6518 { (exit 0); exit 0; }
6519 _ACEOF
6520 chmod +x $CONFIG_STATUS
6521 ac_clean_files=$ac_clean_files_save
6522
6523
6524 # configure is writing to config.log, and then calls config.status.
6525 # config.status does its own redirection, appending to config.log.
6526 # Unfortunately, on DOS this fails, as config.log is still kept open
6527 # by configure, so config.status won't be able to write to it; its
6528 # output is simply discarded. So we exec the FD to /dev/null,
6529 # effectively closing config.log, so it can be properly (re)opened and
6530 # appended to by config.status. When coming back to configure, we
6531 # need to make the FD available again.
6532 if test "$no_create" != yes; then
6533 ac_cs_success=:
6534 exec 5>/dev/null
6535 $SHELL $CONFIG_STATUS || ac_cs_success=false
6536 exec 5>>config.log
6537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6538 # would make configure fail if this is the last instruction.
6539 $ac_cs_success || { (exit 1); exit 1; }
6540 fi
6541
This page took 0.352047 seconds and 3 git commands to generate.